JobRequestedState enum

The job's requested state. Applies to UpdateJob requests. Set requested_state with UpdateJob requests to switch between the states JOB_STATE_STOPPED and JOB_STATE_RUNNING. You can also use UpdateJob requests to change a job's state from JOB_STATE_RUNNING to JOB_STATE_CANCELLED, JOB_STATE_DONE, or JOB_STATE_DRAINED. These states irrevocably terminate the job if it hasn't already reached a terminal state. This field has no effect on CreateJob requests.

Inheritance
Available extensions

Values

jobStateUnknown → const JobRequestedState
const JobRequestedState("JOB_STATE_UNKNOWN")
jobStateStopped → const JobRequestedState
const JobRequestedState("JOB_STATE_STOPPED")
jobStateRunning → const JobRequestedState
const JobRequestedState("JOB_STATE_RUNNING")
jobStateDone → const JobRequestedState
const JobRequestedState("JOB_STATE_DONE")
jobStateFailed → const JobRequestedState
const JobRequestedState("JOB_STATE_FAILED")
jobStateCancelled → const JobRequestedState
const JobRequestedState("JOB_STATE_CANCELLED")
jobStateUpdated → const JobRequestedState
const JobRequestedState("JOB_STATE_UPDATED")
jobStateDraining → const JobRequestedState
const JobRequestedState("JOB_STATE_DRAINING")
jobStateDrained → const JobRequestedState
const JobRequestedState("JOB_STATE_DRAINED")
jobStatePending → const JobRequestedState
const JobRequestedState("JOB_STATE_PENDING")
jobStateCancelling → const JobRequestedState
const JobRequestedState("JOB_STATE_CANCELLING")
jobStateQueued → const JobRequestedState
const JobRequestedState("JOB_STATE_QUEUED")
jobStateResourceCleaningUp → const JobRequestedState
const JobRequestedState("JOB_STATE_RESOURCE_CLEANING_UP")

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
wireValue → String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromValue(String value) → JobRequestedState

Constants

values → const List<JobRequestedState>
A constant List of the values in this enum, in order of their declaration.