Class: MistApi::ApClientBridgeAuthTypeEnum
- Inherits:
-
Object
- Object
- MistApi::ApClientBridgeAuthTypeEnum
- Defined in:
- lib/mist_api/models/ap_client_bridge_auth_type_enum.rb
Overview
wpa2-AES/CCMPp is assumed when ‘type`==`psk`. enum: `open`, `psk`
Constant Summary collapse
- AP_CLIENT_BRIDGE_AUTH_TYPE_ENUM =
[ # TODO: Write general description for OPEN OPEN = 'open'.freeze, # TODO: Write general description for PSK PSK = 'psk'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = OPEN) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/mist_api/models/ap_client_bridge_auth_type_enum.rb', line 23 def self.from_value(value, default_value = OPEN) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'open' then OPEN when 'psk' then PSK else default_value end end |
.validate(value) ⇒ Object
17 18 19 20 21 |
# File 'lib/mist_api/models/ap_client_bridge_auth_type_enum.rb', line 17 def self.validate(value) return false if value.nil? AP_CLIENT_BRIDGE_AUTH_TYPE_ENUM.include?(value) end |