Class: Google::Apis::BatchV1::AgentInfo

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

VM Agent Info.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AgentInfo

Returns a new instance of AgentInfo.



108
109
110
# File 'lib/google/apis/batch_v1/classes.rb', line 108

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

Instance Attribute Details

#job_idString

The assigned Job ID Corresponds to the JSON property jobId

Returns:

  • (String)


86
87
88
# File 'lib/google/apis/batch_v1/classes.rb', line 86

def job_id
  @job_id
end

#report_timeString

When the AgentInfo is generated. Corresponds to the JSON property reportTime

Returns:

  • (String)


91
92
93
# File 'lib/google/apis/batch_v1/classes.rb', line 91

def report_time
  @report_time
end

#stateString

Agent state. Corresponds to the JSON property state

Returns:

  • (String)


96
97
98
# File 'lib/google/apis/batch_v1/classes.rb', line 96

def state
  @state
end

#task_group_idString

The assigned task group ID. Corresponds to the JSON property taskGroupId

Returns:

  • (String)


101
102
103
# File 'lib/google/apis/batch_v1/classes.rb', line 101

def task_group_id
  @task_group_id
end

#tasksArray<Google::Apis::BatchV1::AgentTaskInfo>

Task Info. Corresponds to the JSON property tasks



106
107
108
# File 'lib/google/apis/batch_v1/classes.rb', line 106

def tasks
  @tasks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



113
114
115
116
117
118
119
# File 'lib/google/apis/batch_v1/classes.rb', line 113

def update!(**args)
  @job_id = args[:job_id] if args.key?(:job_id)
  @report_time = args[:report_time] if args.key?(:report_time)
  @state = args[:state] if args.key?(:state)
  @task_group_id = args[:task_group_id] if args.key?(:task_group_id)
  @tasks = args[:tasks] if args.key?(:tasks)
end