Class: Authentik::Api::EventsRequestedEnum

Inherits:
Object
  • Object
show all
Defined in:
lib/authentik/api/models/events_requested_enum.rb

Constant Summary collapse

HTTPS___SCHEMAS_OPENID_NET_SECEVENT_CAEP_EVENT_TYPE_SESSION_REVOKED =
"https://schemas.openid.net/secevent/caep/event-type/session-revoked".freeze
HTTPS___SCHEMAS_OPENID_NET_SECEVENT_CAEP_EVENT_TYPE_TOKEN_CLAIMS_CHANGE =
"https://schemas.openid.net/secevent/caep/event-type/token-claims-change".freeze
HTTPS___SCHEMAS_OPENID_NET_SECEVENT_CAEP_EVENT_TYPE_CREDENTIAL_CHANGE =
"https://schemas.openid.net/secevent/caep/event-type/credential-change".freeze
HTTPS___SCHEMAS_OPENID_NET_SECEVENT_CAEP_EVENT_TYPE_ASSURANCE_LEVEL_CHANGE =
"https://schemas.openid.net/secevent/caep/event-type/assurance-level-change".freeze
HTTPS___SCHEMAS_OPENID_NET_SECEVENT_CAEP_EVENT_TYPE_DEVICE_COMPLIANCE_CHANGE =
"https://schemas.openid.net/secevent/caep/event-type/device-compliance-change".freeze
HTTPS___SCHEMAS_OPENID_NET_SECEVENT_CAEP_EVENT_TYPE_SESSION_ESTABLISHED =
"https://schemas.openid.net/secevent/caep/event-type/session-established".freeze
HTTPS___SCHEMAS_OPENID_NET_SECEVENT_CAEP_EVENT_TYPE_SESSION_PRESENTED =
"https://schemas.openid.net/secevent/caep/event-type/session-presented".freeze
HTTPS___SCHEMAS_OPENID_NET_SECEVENT_CAEP_EVENT_TYPE_RISK_LEVEL_CHANGE =
"https://schemas.openid.net/secevent/caep/event-type/risk-level-change".freeze
HTTPS___SCHEMAS_OPENID_NET_SECEVENT_SSF_EVENT_TYPE_VERIFICATION =
"https://schemas.openid.net/secevent/ssf/event-type/verification".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



29
30
31
# File 'lib/authentik/api/models/events_requested_enum.rb', line 29

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

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



36
37
38
39
# File 'lib/authentik/api/models/events_requested_enum.rb', line 36

def build_from_hash(value)
  return value if EventsRequestedEnum.all_vars.include?(value)
  raise "Invalid ENUM value #{value} for class #EventsRequestedEnum"
end