Class: Authentik::Api::EventActions

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

Constant Summary collapse

LOGIN =
"login".freeze
LOGIN_FAILED =
"login_failed".freeze
LOGOUT =
"logout".freeze
USER_WRITE =
"user_write".freeze
SUSPICIOUS_REQUEST =
"suspicious_request".freeze
PASSWORD_SET =
"password_set".freeze
SECRET_VIEW =
"secret_view".freeze
SECRET_ROTATE =
"secret_rotate".freeze
INVITATION_USED =
"invitation_used".freeze
AUTHORIZE_APPLICATION =
"authorize_application".freeze
SOURCE_LINKED =
"source_linked".freeze
IMPERSONATION_STARTED =
"impersonation_started".freeze
IMPERSONATION_ENDED =
"impersonation_ended".freeze
FLOW_EXECUTION =
"flow_execution".freeze
POLICY_EXECUTION =
"policy_execution".freeze
POLICY_EXCEPTION =
"policy_exception".freeze
PROPERTY_MAPPING_EXCEPTION =
"property_mapping_exception".freeze
SYSTEM_TASK_EXECUTION =
"system_task_execution".freeze
SYSTEM_TASK_EXCEPTION =
"system_task_exception".freeze
SYSTEM_EXCEPTION =
"system_exception".freeze
CONFIGURATION_ERROR =
"configuration_error".freeze
CONFIGURATION_WARNING =
"configuration_warning".freeze
MODEL_CREATED =
"model_created".freeze
MODEL_UPDATED =
"model_updated".freeze
MODEL_DELETED =
"model_deleted".freeze
EMAIL_SENT =
"email_sent".freeze
UPDATE_AVAILABLE =
"update_available".freeze
EXPORT_READY =
"export_ready".freeze
REVIEW_INITIATED =
"review_initiated".freeze
REVIEW_OVERDUE =
"review_overdue".freeze
REVIEW_ATTESTED =
"review_attested".freeze
REVIEW_COMPLETED =
"review_completed".freeze
CUSTOM =
"custom_".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



53
54
55
# File 'lib/authentik/api/models/event_actions.rb', line 53

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



60
61
62
63
# File 'lib/authentik/api/models/event_actions.rb', line 60

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