Google Cloud Run V2 Client - Class Overrides (1.3.0)

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
Name Description
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
Type Description
Google\Protobuf\Internal\RepeatedField

setContainerOverrides

Per container override specification.

Parameter
Name Description
var array<Google\Cloud\Run\V2\RunJobRequest\Overrides\ContainerOverride>
Returns
Type Description
$this

getTaskCount

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

Returns
Type Description
int

setTaskCount

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

Parameter
Name Description
var int
Returns
Type Description
$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
Type Description
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
Name Description
var Google\Protobuf\Duration
Returns
Type Description
$this