Google Cloud Run V2 Client - Class Overrides (0.7.2)

Reference documentation and code samples for the Google Cloud Run V2 Client class Overrides.

RunJob Overrides that contains Execution fields to be overridden.

Generated from protobuf message google.cloud.run.v2.RunJobRequest.Overrides

Namespace

Google \ Cloud \ Run \ V2 \ RunJobRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ container_overrides array<Google\Cloud\Run\V2\RunJobRequest\Overrides\ContainerOverride>

Per container override specification.

↳ task_count int

Optional. The desired number of tasks the execution should run. Will replace existing task_count value.

↳ timeout Google\Protobuf\Duration

Duration in seconds the task may be active before the system will actively try to mark it failed and kill associated containers. Will replace existing timeout_seconds value.

getContainerOverrides

Per container override specification.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setContainerOverrides

Per container override specification.

Parameter
NameDescription
var array<Google\Cloud\Run\V2\RunJobRequest\Overrides\ContainerOverride>
Returns
TypeDescription
$this

getTaskCount

Optional. The desired number of tasks the execution should run. Will replace existing task_count value.

Returns
TypeDescription
int

setTaskCount

Optional. The desired number of tasks the execution should run. Will replace existing task_count value.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getTimeout

Duration in seconds the task may be active before the system will actively try to mark it failed and kill associated containers. Will replace existing timeout_seconds value.

Returns
TypeDescription
Google\Protobuf\Duration|null

hasTimeout

clearTimeout

setTimeout

Duration in seconds the task may be active before the system will actively try to mark it failed and kill associated containers. Will replace existing timeout_seconds value.

Parameter
NameDescription
var Google\Protobuf\Duration
Returns
TypeDescription
$this