Class: Google::Apis::BatchV1::TaskGroupStatus
- Inherits:
-
Object
- Object
- Google::Apis::BatchV1::TaskGroupStatus
- 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
Aggregated task status for a TaskGroup.
Instance Attribute Summary collapse
-
#counts ⇒ Hash<String,Fixnum>
Count of task in each state in the TaskGroup.
-
#instances ⇒ Array<Google::Apis::BatchV1::InstanceStatus>
Status of instances allocated for the TaskGroup.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TaskGroupStatus
constructor
A new instance of TaskGroupStatus.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TaskGroupStatus
Returns a new instance of TaskGroupStatus.
2418 2419 2420 |
# File 'lib/google/apis/batch_v1/classes.rb', line 2418 def initialize(**args) update!(**args) end |
Instance Attribute Details
#counts ⇒ Hash<String,Fixnum>
Count of task in each state in the TaskGroup. The map key is task state name.
Corresponds to the JSON property counts
2411 2412 2413 |
# File 'lib/google/apis/batch_v1/classes.rb', line 2411 def counts @counts end |
#instances ⇒ Array<Google::Apis::BatchV1::InstanceStatus>
Status of instances allocated for the TaskGroup.
Corresponds to the JSON property instances
2416 2417 2418 |
# File 'lib/google/apis/batch_v1/classes.rb', line 2416 def instances @instances end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2423 2424 2425 2426 |
# File 'lib/google/apis/batch_v1/classes.rb', line 2423 def update!(**args) @counts = args[:counts] if args.key?(:counts) @instances = args[:instances] if args.key?(:instances) end |