Class: MistApi::NacAuthTypeEnum
- Inherits:
-
Object
- Object
- MistApi::NacAuthTypeEnum
- Defined in:
- lib/mist_api/models/nac_auth_type_enum.rb
Overview
enum: ‘cert`, `device-auth`, `eap-teap`, `eap-tls`, `eap-ttls`, `idp`, `mab`, `eap-peap`
Constant Summary collapse
- NAC_AUTH_TYPE_ENUM =
[ # TODO: Write general description for CERT CERT = 'cert'.freeze, # TODO: Write general description for DEVICEAUTH DEVICEAUTH = 'device-auth'.freeze, # TODO: Write general description for EAPTEAP EAPTEAP = 'eap-teap'.freeze, # TODO: Write general description for EAPTLS EAPTLS = 'eap-tls'.freeze, # TODO: Write general description for EAPTTLS EAPTTLS = 'eap-ttls'.freeze, # TODO: Write general description for IDP IDP = 'idp'.freeze, # TODO: Write general description for MAB MAB = 'mab'.freeze, # TODO: Write general description for EAPPEAP EAPPEAP = 'eap-peap'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = CERT) ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/mist_api/models/nac_auth_type_enum.rb', line 42 def self.from_value(value, default_value = CERT) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'cert' then CERT when 'deviceauth' then DEVICEAUTH when 'eapteap' then EAPTEAP when 'eaptls' then EAPTLS when 'eapttls' then EAPTTLS when 'idp' then IDP when 'mab' then MAB when 'eappeap' then EAPPEAP else default_value end end |
.validate(value) ⇒ Object
36 37 38 39 40 |
# File 'lib/mist_api/models/nac_auth_type_enum.rb', line 36 def self.validate(value) return false if value.nil? NAC_AUTH_TYPE_ENUM.include?(value) end |