Reference documentation and code samples for the Cloud Run V2 API class Google::Cloud::Run::V2::SandboxTemplate.
Template for a single sandbox.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#args
def args() -> ::Array<::String>
Returns
- (::Array<::String>) — Optional. Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
#args=
def args=(value) -> ::Array<::String>
Parameter
- value (::Array<::String>) — Optional. Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
Returns
- (::Array<::String>) — Optional. Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
#command
def command() -> ::Array<::String>
Returns
- (::Array<::String>) — Optional. Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
#command=
def command=(value) -> ::Array<::String>
Parameter
- value (::Array<::String>) — Optional. Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
Returns
- (::Array<::String>) — Optional. Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
#env
def env() -> ::Array<::Google::Cloud::Run::V2::EnvVar>
Returns
- (::Array<::Google::Cloud::Run::V2::EnvVar>) — Optional. List of environment variables to set in the sandbox.
#env=
def env=(value) -> ::Array<::Google::Cloud::Run::V2::EnvVar>
Parameter
- value (::Array<::Google::Cloud::Run::V2::EnvVar>) — Optional. List of environment variables to set in the sandbox.
Returns
- (::Array<::Google::Cloud::Run::V2::EnvVar>) — Optional. List of environment variables to set in the sandbox.
#image
def image() -> ::String
Returns
- (::String) — Required. Name of the container image in Dockerhub or Artifact Registry. If the host is not provided, Dockerhub is assumed.
#image=
def image=(value) -> ::String
Parameter
- value (::String) — Required. Name of the container image in Dockerhub or Artifact Registry. If the host is not provided, Dockerhub is assumed.
Returns
- (::String) — Required. Name of the container image in Dockerhub or Artifact Registry. If the host is not provided, Dockerhub is assumed.
#name
def name() -> ::String
Returns
- (::String) — Required. Name of the sandbox specified as a DNS_LABEL (RFC 1123).
#name=
def name=(value) -> ::String
Parameter
- value (::String) — Required. Name of the sandbox specified as a DNS_LABEL (RFC 1123).
Returns
- (::String) — Required. Name of the sandbox specified as a DNS_LABEL (RFC 1123).
#volume_mounts
def volume_mounts() -> ::Array<::Google::Cloud::Run::V2::VolumeMount>
Returns
- (::Array<::Google::Cloud::Run::V2::VolumeMount>) — Optional. Volume to mount into the container's filesystem.
#volume_mounts=
def volume_mounts=(value) -> ::Array<::Google::Cloud::Run::V2::VolumeMount>
Parameter
- value (::Array<::Google::Cloud::Run::V2::VolumeMount>) — Optional. Volume to mount into the container's filesystem.
Returns
- (::Array<::Google::Cloud::Run::V2::VolumeMount>) — Optional. Volume to mount into the container's filesystem.
#working_dir
def working_dir() -> ::String
Returns
- (::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.
#working_dir=
def working_dir=(value) -> ::String
Parameter
- value (::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.
Returns
- (::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.