Class: Google::Apis::BatchV1::AgentTask
- Inherits:
-
Object
- Object
- Google::Apis::BatchV1::AgentTask
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/batch_v1/classes.rb,
lib/google/apis/batch_v1/representations.rb,
lib/google/apis/batch_v1/representations.rb
Overview
TODO(b/182501497) The message needs to be redefined when the Agent API server updates data in storage per the backend design.
Instance Attribute Summary collapse
-
#intended_state ⇒ String
The intended state of the task.
-
#reached_barrier ⇒ Fixnum
The highest barrier reached by all tasks in the task's TaskGroup.
-
#spec ⇒ Google::Apis::BatchV1::TaskSpec
Spec of a task Corresponds to the JSON property
spec. -
#status ⇒ Google::Apis::BatchV1::TaskStatus
Status of a task Corresponds to the JSON property
status. -
#task ⇒ String
Task name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AgentTask
constructor
A new instance of AgentTask.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AgentTask
Returns a new instance of AgentTask.
209 210 211 |
# File 'lib/google/apis/batch_v1/classes.rb', line 209 def initialize(**args) update!(**args) end |
Instance Attribute Details
#intended_state ⇒ String
The intended state of the task.
Corresponds to the JSON property intendedState
187 188 189 |
# File 'lib/google/apis/batch_v1/classes.rb', line 187 def intended_state @intended_state end |
#reached_barrier ⇒ Fixnum
The highest barrier reached by all tasks in the task's TaskGroup.
Corresponds to the JSON property reachedBarrier
192 193 194 |
# File 'lib/google/apis/batch_v1/classes.rb', line 192 def @reached_barrier end |
#spec ⇒ Google::Apis::BatchV1::TaskSpec
Spec of a task
Corresponds to the JSON property spec
197 198 199 |
# File 'lib/google/apis/batch_v1/classes.rb', line 197 def spec @spec end |
#status ⇒ Google::Apis::BatchV1::TaskStatus
Status of a task
Corresponds to the JSON property status
202 203 204 |
# File 'lib/google/apis/batch_v1/classes.rb', line 202 def status @status end |
#task ⇒ String
Task name.
Corresponds to the JSON property task
207 208 209 |
# File 'lib/google/apis/batch_v1/classes.rb', line 207 def task @task end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
214 215 216 217 218 219 220 |
# File 'lib/google/apis/batch_v1/classes.rb', line 214 def update!(**args) @intended_state = args[:intended_state] if args.key?(:intended_state) @reached_barrier = args[:reached_barrier] if args.key?(:reached_barrier) @spec = args[:spec] if args.key?(:spec) @status = args[:status] if args.key?(:status) @task = args[:task] if args.key?(:task) end |