Class: Zitadel::Client::Models::InstanceServiceState
- Inherits:
-
Object
- Object
- Zitadel::Client::Models::InstanceServiceState
- Defined in:
- lib/zitadel/client/models/instance_service_state.rb
Constant Summary collapse
- STATE_UNSPECIFIED =
"STATE_UNSPECIFIED".freeze
- STATE_CREATING =
"STATE_CREATING".freeze
- STATE_RUNNING =
"STATE_RUNNING".freeze
- STATE_STOPPING =
"STATE_STOPPING".freeze
- STATE_STOPPED =
"STATE_STOPPED".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
24 25 26 |
# File 'lib/zitadel/client/models/instance_service_state.rb', line 24 def self.all_vars @all_vars ||= [STATE_UNSPECIFIED, STATE_CREATING, STATE_RUNNING, STATE_STOPPING, STATE_STOPPED].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
31 32 33 |
# File 'lib/zitadel/client/models/instance_service_state.rb', line 31 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
38 39 40 41 |
# File 'lib/zitadel/client/models/instance_service_state.rb', line 38 def build_from_hash(value) return value if InstanceServiceState.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::InstanceServiceState" end |