Class: Zitadel::Client::Models::BetaAppServiceApplicationKeysSorting

Inherits:
Object
  • Object
show all
Defined in:
lib/zitadel/client/models/beta_app_service_application_keys_sorting.rb

Constant Summary collapse

APPLICATION_KEYS_SORT_BY_ID =
"APPLICATION_KEYS_SORT_BY_ID".freeze
APPLICATION_KEYS_SORT_BY_PROJECT_ID =
"APPLICATION_KEYS_SORT_BY_PROJECT_ID".freeze
APPLICATION_KEYS_SORT_BY_APPLICATION_ID =
"APPLICATION_KEYS_SORT_BY_APPLICATION_ID".freeze
APPLICATION_KEYS_SORT_BY_CREATION_DATE =
"APPLICATION_KEYS_SORT_BY_CREATION_DATE".freeze
APPLICATION_KEYS_SORT_BY_ORGANIZATION_ID =
"APPLICATION_KEYS_SORT_BY_ORGANIZATION_ID".freeze
APPLICATION_KEYS_SORT_BY_EXPIRATION =
"APPLICATION_KEYS_SORT_BY_EXPIRATION".freeze
APPLICATION_KEYS_SORT_BY_TYPE =
"APPLICATION_KEYS_SORT_BY_TYPE".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.all_varsObject



26
27
28
# File 'lib/zitadel/client/models/beta_app_service_application_keys_sorting.rb', line 26

def self.all_vars
  @all_vars ||= [APPLICATION_KEYS_SORT_BY_ID, APPLICATION_KEYS_SORT_BY_PROJECT_ID, APPLICATION_KEYS_SORT_BY_APPLICATION_ID, APPLICATION_KEYS_SORT_BY_CREATION_DATE, APPLICATION_KEYS_SORT_BY_ORGANIZATION_ID, APPLICATION_KEYS_SORT_BY_EXPIRATION, APPLICATION_KEYS_SORT_BY_TYPE].freeze
end

.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



33
34
35
# File 'lib/zitadel/client/models/beta_app_service_application_keys_sorting.rb', line 33

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



40
41
42
43
# File 'lib/zitadel/client/models/beta_app_service_application_keys_sorting.rb', line 40

def build_from_hash(value)
  return value if BetaAppServiceApplicationKeysSorting.all_vars.include?(value)
  raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::BetaAppServiceApplicationKeysSorting"
end