Class: Google::Apis::BatchV1::AgentTaskInfo
- Inherits:
-
Object
- Object
- Google::Apis::BatchV1::AgentTaskInfo
- 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
Task Info
Instance Attribute Summary collapse
-
#runnable ⇒ Fixnum
The highest index of a runnable started by the agent for this task.
-
#task_id ⇒ String
ID of the Task Corresponds to the JSON property
taskId
. -
#task_status ⇒ Google::Apis::BatchV1::TaskStatus
Status of a task.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AgentTaskInfo
constructor
A new instance of AgentTaskInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AgentTaskInfo
Returns a new instance of AgentTaskInfo.
427 428 429 |
# File 'lib/google/apis/batch_v1/classes.rb', line 427 def initialize(**args) update!(**args) end |
Instance Attribute Details
#runnable ⇒ Fixnum
The highest index of a runnable started by the agent for this task. The
runnables are indexed from 1. Value 0 is undefined.
Corresponds to the JSON property runnable
415 416 417 |
# File 'lib/google/apis/batch_v1/classes.rb', line 415 def runnable @runnable end |
#task_id ⇒ String
ID of the Task
Corresponds to the JSON property taskId
420 421 422 |
# File 'lib/google/apis/batch_v1/classes.rb', line 420 def task_id @task_id end |
#task_status ⇒ Google::Apis::BatchV1::TaskStatus
Status of a task.
Corresponds to the JSON property taskStatus
425 426 427 |
# File 'lib/google/apis/batch_v1/classes.rb', line 425 def task_status @task_status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
432 433 434 435 436 |
# File 'lib/google/apis/batch_v1/classes.rb', line 432 def update!(**args) @runnable = args[:runnable] if args.key?(:runnable) @task_id = args[:task_id] if args.key?(:task_id) @task_status = args[:task_status] if args.key?(:task_status) end |