Class: Google::Apis::BatchV1::AgentInfo
- Inherits:
-
Object
- Object
- Google::Apis::BatchV1::AgentInfo
- 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
-
#job_id ⇒ String
The assigned Job ID Corresponds to the JSON property
jobId
. -
#report_time ⇒ String
When the AgentInfo is generated.
-
#state ⇒ String
Agent state.
-
#task_group_id ⇒ String
The assigned task group ID.
-
#tasks ⇒ Array<Google::Apis::BatchV1::AgentTaskInfo>
Task Info.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AgentInfo
constructor
A new instance of AgentInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_id ⇒ String
The assigned Job ID
Corresponds to the JSON property jobId
86 87 88 |
# File 'lib/google/apis/batch_v1/classes.rb', line 86 def job_id @job_id end |
#report_time ⇒ String
When the AgentInfo is generated.
Corresponds to the JSON property reportTime
91 92 93 |
# File 'lib/google/apis/batch_v1/classes.rb', line 91 def report_time @report_time end |
#state ⇒ String
Agent state.
Corresponds to the JSON property state
96 97 98 |
# File 'lib/google/apis/batch_v1/classes.rb', line 96 def state @state end |
#task_group_id ⇒ String
The assigned task group ID.
Corresponds to the JSON property taskGroupId
101 102 103 |
# File 'lib/google/apis/batch_v1/classes.rb', line 101 def task_group_id @task_group_id end |
#tasks ⇒ Array<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 |