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.



1920
1921
1922
# File 'lib/google/apis/batch_v1/classes.rb', line 1920

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>)


1913
1914
1915
# File 'lib/google/apis/batch_v1/classes.rb', line 1913

def counts
  @counts
end

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

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



1918
1919
1920
# File 'lib/google/apis/batch_v1/classes.rb', line 1918

def instances
  @instances
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1925
1926
1927
1928
# File 'lib/google/apis/batch_v1/classes.rb', line 1925

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