Reference documentation and code samples for the Google Cloud Run V2 Client class SandboxTemplate.
Template for a single sandbox.
Generated from protobuf message google.cloud.run.v2.SandboxTemplate
Namespace
Google \ Cloud \ Run \ V2Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Required. Name of the sandbox specified as a DNS_LABEL (RFC 1123). |
↳ image |
string
Required. Name of the container image in Dockerhub or Artifact Registry. If the host is not provided, Dockerhub is assumed. |
↳ command |
string[]
Optional. Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. |
↳ args |
string[]
Optional. Arguments to the entrypoint. The docker image's CMD is used if this is not provided. |
↳ env |
array<EnvVar>
Optional. List of environment variables to set in the sandbox. |
↳ volume_mounts |
array<VolumeMount>
Optional. Volume to mount into the container's filesystem. |
↳ working_dir |
string
Optional. Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. |
getName
Required. Name of the sandbox specified as a DNS_LABEL (RFC 1123).
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Required. Name of the sandbox specified as a DNS_LABEL (RFC 1123).
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getImage
Required. Name of the container image in Dockerhub or Artifact Registry. If the host is not provided, Dockerhub is assumed.
| Returns | |
|---|---|
| Type | Description |
string |
|
setImage
Required. Name of the container image in Dockerhub or Artifact Registry. If the host is not provided, Dockerhub is assumed.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCommand
Optional. Entrypoint array. Not executed within a shell.
The docker image's ENTRYPOINT is used if this is not provided.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<string> |
|
setCommand
Optional. Entrypoint array. Not executed within a shell.
The docker image's ENTRYPOINT is used if this is not provided.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getArgs
Optional. Arguments to the entrypoint.
The docker image's CMD is used if this is not provided.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<string> |
|
setArgs
Optional. Arguments to the entrypoint.
The docker image's CMD is used if this is not provided.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getEnv
Optional. List of environment variables to set in the sandbox.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<EnvVar> |
|
setEnv
Optional. List of environment variables to set in the sandbox.
| Parameter | |
|---|---|
| Name | Description |
var |
array<EnvVar>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getVolumeMounts
Optional. Volume to mount into the container's filesystem.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<VolumeMount> |
|
setVolumeMounts
Optional. Volume to mount into the container's filesystem.
| Parameter | |
|---|---|
| Name | Description |
var |
array<VolumeMount>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getWorkingDir
Optional. Container's working directory.
If not specified, the container runtime's default will be used, which might be configured in the container image.
| Returns | |
|---|---|
| Type | Description |
string |
|
setWorkingDir
Optional. Container's working directory.
If not specified, the container runtime's default will be used, which might be configured in the container image.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|