Class: Zitadel::Client::Models::UserServiceUserState
- Inherits:
-
Object
- Object
- Zitadel::Client::Models::UserServiceUserState
- Defined in:
- lib/zitadel/client/models/user_service_user_state.rb
Constant Summary collapse
- USER_STATE_UNSPECIFIED =
"USER_STATE_UNSPECIFIED".freeze
- USER_STATE_ACTIVE =
"USER_STATE_ACTIVE".freeze
- USER_STATE_INACTIVE =
"USER_STATE_INACTIVE".freeze
- USER_STATE_DELETED =
"USER_STATE_DELETED".freeze
- USER_STATE_LOCKED =
"USER_STATE_LOCKED".freeze
- USER_STATE_INITIAL =
"USER_STATE_INITIAL".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
25 26 27 |
# File 'lib/zitadel/client/models/user_service_user_state.rb', line 25 def self.all_vars @all_vars ||= [USER_STATE_UNSPECIFIED, USER_STATE_ACTIVE, USER_STATE_INACTIVE, USER_STATE_DELETED, USER_STATE_LOCKED, USER_STATE_INITIAL].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
32 33 34 |
# File 'lib/zitadel/client/models/user_service_user_state.rb', line 32 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
39 40 41 42 |
# File 'lib/zitadel/client/models/user_service_user_state.rb', line 39 def build_from_hash(value) return value if UserServiceUserState.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::UserServiceUserState" end |