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 \ OverridesMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
string |
setName
The name of the container specified as a DNS_LABEL.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getArgs
Optional. Arguments to the entrypoint. Will replace existing args for override.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setArgs
Optional. Arguments to the entrypoint. Will replace existing args for override.
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |
getEnv
List of environment variables to set in the container. Will be merged with existing env for override.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setEnv
List of environment variables to set in the container. Will be merged with existing env for override.
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\Run\V2\EnvVar>
|
Returns | |
---|---|
Type | Description |
$this |
getClearArgs
Optional. True if the intention is to clear out existing args list.
Returns | |
---|---|
Type | Description |
bool |
setClearArgs
Optional. True if the intention is to clear out existing args list.
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |