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.



200
201
202
# File 'lib/google/apis/batch_v1/classes.rb', line 200

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

Instance Attribute Details

#job_idString

Optional. The assigned Job ID Corresponds to the JSON property jobId

Returns:

  • (String)


178
179
180
# File 'lib/google/apis/batch_v1/classes.rb', line 178

def job_id
  @job_id
end

#report_timeString

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

Returns:

  • (String)


183
184
185
# File 'lib/google/apis/batch_v1/classes.rb', line 183

def report_time
  @report_time
end

#stateString

Agent state. Corresponds to the JSON property state

Returns:

  • (String)


188
189
190
# File 'lib/google/apis/batch_v1/classes.rb', line 188

def state
  @state
end

#task_group_idString

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

Returns:

  • (String)


193
194
195
# File 'lib/google/apis/batch_v1/classes.rb', line 193

def task_group_id
  @task_group_id
end

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

Task Info. Corresponds to the JSON property tasks



198
199
200
# File 'lib/google/apis/batch_v1/classes.rb', line 198

def tasks
  @tasks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



205
206
207
208
209
210
211
# File 'lib/google/apis/batch_v1/classes.rb', line 205

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