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
Optional.
-
#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.
200 201 202 |
# File 'lib/google/apis/batch_v1/classes.rb', line 200 def initialize(**args) update!(**args) end |
Instance Attribute Details
#job_id ⇒ String
Optional. The assigned Job ID
Corresponds to the JSON property jobId
178 179 180 |
# File 'lib/google/apis/batch_v1/classes.rb', line 178 def job_id @job_id end |
#report_time ⇒ String
When the AgentInfo is generated.
Corresponds to the JSON property reportTime
183 184 185 |
# File 'lib/google/apis/batch_v1/classes.rb', line 183 def report_time @report_time end |
#state ⇒ String
Agent state.
Corresponds to the JSON property state
188 189 190 |
# File 'lib/google/apis/batch_v1/classes.rb', line 188 def state @state end |
#task_group_id ⇒ String
The assigned task group ID.
Corresponds to the JSON property taskGroupId
193 194 195 |
# File 'lib/google/apis/batch_v1/classes.rb', line 193 def task_group_id @task_group_id end |
#tasks ⇒ Array<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 |