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.



427
428
429
# File 'lib/google/apis/batch_v1/classes.rb', line 427

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)


415
416
417
# File 'lib/google/apis/batch_v1/classes.rb', line 415

def runnable
  @runnable
end

#task_idString

ID of the Task Corresponds to the JSON property taskId

Returns:

  • (String)


420
421
422
# File 'lib/google/apis/batch_v1/classes.rb', line 420

def task_id
  @task_id
end

#task_statusGoogle::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