Class: MistApi::SsoOauthTypeEnum
- Inherits:
-
Object
- Object
- MistApi::SsoOauthTypeEnum
- Defined in:
- lib/mist_api/models/sso_oauth_type_enum.rb
Overview
if ‘idp_type`==`oauth`. enum: `azure`, `azure-gov`, `okta`, `ping_identity`
Constant Summary collapse
- SSO_OAUTH_TYPE_ENUM =
[ # TODO: Write general description for AZURE AZURE = 'azure'.freeze, # TODO: Write general description for AZUREGOV AZUREGOV = 'azure-gov'.freeze, # TODO: Write general description for OKTA OKTA = 'okta'.freeze, # TODO: Write general description for PING_IDENTITY PING_IDENTITY = 'ping_identity'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = AZURE) ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/mist_api/models/sso_oauth_type_enum.rb', line 29 def self.from_value(value, default_value = AZURE) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'azure' then AZURE when 'azuregov' then AZUREGOV when 'okta' then OKTA when 'ping_identity' then PING_IDENTITY else default_value end end |
.validate(value) ⇒ Object
23 24 25 26 27 |
# File 'lib/mist_api/models/sso_oauth_type_enum.rb', line 23 def self.validate(value) return false if value.nil? SSO_OAUTH_TYPE_ENUM.include?(value) end |