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
-
#agent_task_spec ⇒ Google::Apis::BatchV1::AgentTaskSpec
AgentTaskSpec is the user's TaskSpec representation between Agent and CLH communication.
-
#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.
385 386 387 |
# File 'lib/google/apis/batch_v1/classes.rb', line 385 def initialize(**args) update!(**args) end |
Instance Attribute Details
#agent_task_spec ⇒ Google::Apis::BatchV1::AgentTaskSpec
AgentTaskSpec is the user's TaskSpec representation between Agent and CLH
communication.
Corresponds to the JSON property agentTaskSpec
353 354 355 |
# File 'lib/google/apis/batch_v1/classes.rb', line 353 def agent_task_spec @agent_task_spec end |
#intended_state ⇒ String
The intended state of the task.
Corresponds to the JSON property intendedState
358 359 360 |
# File 'lib/google/apis/batch_v1/classes.rb', line 358 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
363 364 365 |
# File 'lib/google/apis/batch_v1/classes.rb', line 363 def @reached_barrier end |
#spec ⇒ Google::Apis::BatchV1::TaskSpec
Spec of a task
Corresponds to the JSON property spec
368 369 370 |
# File 'lib/google/apis/batch_v1/classes.rb', line 368 def spec @spec end |
#status ⇒ Google::Apis::BatchV1::TaskStatus
Status of a task
Corresponds to the JSON property status
373 374 375 |
# File 'lib/google/apis/batch_v1/classes.rb', line 373 def status @status end |
#task ⇒ String
Task name.
Corresponds to the JSON property task
378 379 380 |
# File 'lib/google/apis/batch_v1/classes.rb', line 378 def task @task end |
#task_source ⇒ String
TaskSource represents the source of the task.
Corresponds to the JSON property taskSource
383 384 385 |
# File 'lib/google/apis/batch_v1/classes.rb', line 383 def task_source @task_source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
390 391 392 393 394 395 396 397 398 |
# File 'lib/google/apis/batch_v1/classes.rb', line 390 def update!(**args) @agent_task_spec = args[:agent_task_spec] if args.key?(:agent_task_spec) @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 |