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.
-
#task_source ⇒ String
TaskSource represents the source of the task.
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.
227 228 229 |
# File 'lib/google/apis/batch_v1/classes.rb', line 227 def initialize(**args) update!(**args) end |
Instance Attribute Details
#intended_state ⇒ String
The intended state of the task.
Corresponds to the JSON property intendedState
200 201 202 |
# File 'lib/google/apis/batch_v1/classes.rb', line 200 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
205 206 207 |
# File 'lib/google/apis/batch_v1/classes.rb', line 205 def @reached_barrier end |
#spec ⇒ Google::Apis::BatchV1::TaskSpec
Spec of a task
Corresponds to the JSON property spec
210 211 212 |
# File 'lib/google/apis/batch_v1/classes.rb', line 210 def spec @spec end |
#status ⇒ Google::Apis::BatchV1::TaskStatus
Status of a task
Corresponds to the JSON property status
215 216 217 |
# File 'lib/google/apis/batch_v1/classes.rb', line 215 def status @status end |
#task ⇒ String
Task name.
Corresponds to the JSON property task
220 221 222 |
# File 'lib/google/apis/batch_v1/classes.rb', line 220 def task @task end |
#task_source ⇒ String
TaskSource represents the source of the task.
Corresponds to the JSON property taskSource
225 226 227 |
# File 'lib/google/apis/batch_v1/classes.rb', line 225 def task_source @task_source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
232 233 234 235 236 237 238 239 |
# File 'lib/google/apis/batch_v1/classes.rb', line 232 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) @task_source = args[:task_source] if args.key?(:task_source) end |