Google Cloud Run V2 Client - Class ContainerOverride (0.8.0)

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

Per-container override specification.

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

Namespace

Google \ Cloud \ Run \ V2 \ RunJobRequest \ Overrides

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The name of the container specified as a DNS_LABEL.

↳ args array

Optional. Arguments to the entrypoint. Will replace existing args for override.

↳ env array<Google\Cloud\Run\V2\EnvVar>

List of environment variables to set in the container. Will be merged with existing env for override.

↳ clear_args bool

Optional. True if the intention is to clear out existing args list.

getName

The name of the container specified as a DNS_LABEL.

Returns
TypeDescription
string

setName

The name of the container specified as a DNS_LABEL.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getArgs

Optional. Arguments to the entrypoint. Will replace existing args for override.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setArgs

Optional. Arguments to the entrypoint. Will replace existing args for override.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getEnv

List of environment variables to set in the container. Will be merged with existing env for override.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setEnv

List of environment variables to set in the container. Will be merged with existing env for override.

Parameter
NameDescription
var array<Google\Cloud\Run\V2\EnvVar>
Returns
TypeDescription
$this

getClearArgs

Optional. True if the intention is to clear out existing args list.

Returns
TypeDescription
bool

setClearArgs

Optional. True if the intention is to clear out existing args list.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this