Class: Google::Apis::BatchV1::TaskGroupStatus

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

Aggregated task status for a TaskGroup.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TaskGroupStatus

Returns a new instance of TaskGroupStatus.



2486
2487
2488
# File 'lib/google/apis/batch_v1/classes.rb', line 2486

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

Instance Attribute Details

#countsHash<String,Fixnum>

Count of task in each state in the TaskGroup. The map key is task state name. Corresponds to the JSON property counts

Returns:

  • (Hash<String,Fixnum>)


2479
2480
2481
# File 'lib/google/apis/batch_v1/classes.rb', line 2479

def counts
  @counts
end

#instancesArray<Google::Apis::BatchV1::InstanceStatus>

Status of instances allocated for the TaskGroup. Corresponds to the JSON property instances



2484
2485
2486
# File 'lib/google/apis/batch_v1/classes.rb', line 2484

def instances
  @instances
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2491
2492
2493
2494
# File 'lib/google/apis/batch_v1/classes.rb', line 2491

def update!(**args)
  @counts = args[:counts] if args.key?(:counts)
  @instances = args[:instances] if args.key?(:instances)
end