Class: Google::Apis::BatchV1::AgentTaskInfo

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AgentTaskInfo

Returns a new instance of AgentTaskInfo.



256
257
258
# File 'lib/google/apis/batch_v1/classes.rb', line 256

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#runnableFixnum

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

Returns:

  • (Fixnum)


244
245
246
# File 'lib/google/apis/batch_v1/classes.rb', line 244

def runnable
  @runnable
end

#task_idString

ID of the Task Corresponds to the JSON property taskId

Returns:

  • (String)


249
250
251
# File 'lib/google/apis/batch_v1/classes.rb', line 249

def task_id
  @task_id
end

#task_statusGoogle::Apis::BatchV1::TaskStatus

Status of a task Corresponds to the JSON property taskStatus



254
255
256
# File 'lib/google/apis/batch_v1/classes.rb', line 254

def task_status
  @task_status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



261
262
263
264
265
# File 'lib/google/apis/batch_v1/classes.rb', line 261

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