Google Cloud Run V2 Client - Class Overrides (1.15.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<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.

↳ delay_execution bool

Optional. If true, the system will start the execution within the next 12 hours depending on available capacity.

getContainerOverrides

Per container override specification.

Returns
Type Description
Google\Protobuf\RepeatedField<Overrides\ContainerOverride>

setContainerOverrides

Per container override specification.

Parameter
Name Description
var array<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

getDelayExecution

Optional. If true, the system will start the execution within the next 12 hours depending on available capacity.

Returns
Type Description
bool

hasDelayExecution

clearDelayExecution

setDelayExecution

Optional. If true, the system will start the execution within the next 12 hours depending on available capacity.

Parameter
Name Description
var bool
Returns
Type Description
$this