Class: DaytonaApiClient::SandboxState
- Inherits:
-
Object
- Object
- DaytonaApiClient::SandboxState
- Defined in:
- lib/daytona_api_client/models/sandbox_state.rb
Constant Summary collapse
- CREATING =
"creating".freeze
- RESTORING =
"restoring".freeze
- DESTROYED =
"destroyed".freeze
- DESTROYING =
"destroying".freeze
- STARTED =
"started".freeze
- STOPPED =
"stopped".freeze
- STARTING =
"starting".freeze
- STOPPING =
"stopping".freeze
- ERROR =
"error".freeze
- BUILD_FAILED =
"build_failed".freeze
- PENDING_BUILD =
"pending_build".freeze
- BUILDING_SNAPSHOT =
"building_snapshot".freeze
- UNKNOWN =
"unknown".freeze
- PULLING_SNAPSHOT =
"pulling_snapshot".freeze
- ARCHIVED =
"archived".freeze
- ARCHIVING =
"archiving".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
35 36 37 |
# File 'lib/daytona_api_client/models/sandbox_state.rb', line 35 def self.all_vars @all_vars ||= [CREATING, RESTORING, DESTROYED, DESTROYING, STARTED, STOPPED, STARTING, STOPPING, ERROR, BUILD_FAILED, PENDING_BUILD, BUILDING_SNAPSHOT, UNKNOWN, PULLING_SNAPSHOT, ARCHIVED, ARCHIVING].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
42 43 44 |
# File 'lib/daytona_api_client/models/sandbox_state.rb', line 42 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
49 50 51 52 |
# File 'lib/daytona_api_client/models/sandbox_state.rb', line 49 def build_from_hash(value) return value if SandboxState.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #SandboxState" end |