Class: CloudReactorAPIClient::TaskExecutionStatus
- Inherits:
-
Object
- Object
- CloudReactorAPIClient::TaskExecutionStatus
- Defined in:
- lib/cloudreactor_api_client/models/task_execution_status.rb
Constant Summary collapse
- RUNNING =
"RUNNING".freeze
- SUCCEEDED =
"SUCCEEDED".freeze
- FAILED =
"FAILED".freeze
- TERMINATED_AFTER_TIME_OUT =
"TERMINATED_AFTER_TIME_OUT".freeze
- MARKED_DONE =
"MARKED_DONE".freeze
- EXITED_AFTER_MARKED_DONE =
"EXITED_AFTER_MARKED_DONE".freeze
- STOPPING =
"STOPPING".freeze
- STOPPED =
"STOPPED".freeze
- ABANDONED =
"ABANDONED".freeze
- MANUALLY_STARTED =
"MANUALLY_STARTED".freeze
- ABORTED =
"ABORTED".freeze
Class Method Summary collapse
-
.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
.build_from_hash(value) ⇒ String
Builds the enum from string
33 34 35 |
# File 'lib/cloudreactor_api_client/models/task_execution_status.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
40 41 42 43 44 |
# File 'lib/cloudreactor_api_client/models/task_execution_status.rb', line 40 def build_from_hash(value) constantValues = TaskExecutionStatus.constants.select { |c| TaskExecutionStatus::const_get(c) == value } raise "Invalid ENUM value #{value} for class #TaskExecutionStatus" if constantValues.empty? value end |