Google Cloud Batch V1 Client - Class TaskGroupStatus (0.14.0)

Reference documentation and code samples for the Google Cloud Batch V1 Client class TaskGroupStatus.

Aggregated task status for a TaskGroup.

Generated from protobuf message google.cloud.batch.v1.JobStatus.TaskGroupStatus

Namespace

Google \ Cloud \ Batch \ V1 \ JobStatus

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ counts array|Google\Protobuf\Internal\MapField

Count of task in each state in the TaskGroup. The map key is task state name.

↳ instances array<Google\Cloud\Batch\V1\JobStatus\InstanceStatus>

Status of instances allocated for the TaskGroup.

getCounts

Count of task in each state in the TaskGroup.

The map key is task state name.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setCounts

Count of task in each state in the TaskGroup.

The map key is task state name.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getInstances

Status of instances allocated for the TaskGroup.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setInstances

Status of instances allocated for the TaskGroup.

Parameter
NameDescription
var array<Google\Cloud\Batch\V1\JobStatus\InstanceStatus>
Returns
TypeDescription
$this