Class: Authentik::Api::ProviderTypeEnum
- Inherits:
-
Object
- Object
- Authentik::Api::ProviderTypeEnum
- Defined in:
- lib/authentik/api/models/provider_type_enum.rb
Constant Summary collapse
- APPLE =
"apple".freeze
- OPENIDCONNECT =
"openidconnect".freeze
- ENTRAID =
"entraid".freeze
- AZUREAD =
"azuread".freeze
- DISCORD =
"discord".freeze
- FACEBOOK =
"facebook".freeze
- GITHUB =
"github".freeze
- GITLAB =
"gitlab".freeze
- GOOGLE =
"google".freeze
- MAILCOW =
"mailcow".freeze
- OKTA =
"okta".freeze
- PATREON =
"patreon".freeze
- REDDIT =
"reddit".freeze
- SLACK =
"slack".freeze
- TWITCH =
"twitch".freeze
- TWITTER =
"twitter".freeze
- WECHAT =
"wechat".freeze
Class Method Summary collapse
- .all_vars ⇒ Object
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.all_vars ⇒ Object
30 31 32 |
# File 'lib/authentik/api/models/provider_type_enum.rb', line 30 def self.all_vars @all_vars ||= [APPLE, OPENIDCONNECT, ENTRAID, AZUREAD, DISCORD, FACEBOOK, GITHUB, GITLAB, GOOGLE, MAILCOW, OKTA, PATREON, REDDIT, SLACK, TWITCH, TWITTER, WECHAT].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
37 38 39 |
# File 'lib/authentik/api/models/provider_type_enum.rb', line 37 def self.build_from_hash(value) new.build_from_hash(value) end |
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
44 45 46 47 |
# File 'lib/authentik/api/models/provider_type_enum.rb', line 44 def build_from_hash(value) return value if ProviderTypeEnum.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #ProviderTypeEnum" end |