Cloud Workstations V1BETA API - Class Google::Cloud::Workstations::V1beta::WorkstationConfig::Container (v0.1.3)

Reference documentation and code samples for the Cloud Workstations V1BETA API class Google::Cloud::Workstations::V1beta::WorkstationConfig::Container.

A Docker container.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#args

def args() -> ::Array<::String>
Returns
  • (::Array<::String>) — Optional. Arguments passed to the entrypoint.

#args=

def args=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Optional. Arguments passed to the entrypoint.
Returns
  • (::Array<::String>) — Optional. Arguments passed to the entrypoint.

#command

def command() -> ::Array<::String>
Returns
  • (::Array<::String>) — Optional. If set, overrides the default ENTRYPOINT specified by the image.

#command=

def command=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Optional. If set, overrides the default ENTRYPOINT specified by the image.
Returns
  • (::Array<::String>) — Optional. If set, overrides the default ENTRYPOINT specified by the image.

#env

def env() -> ::Google::Protobuf::Map{::String => ::String}
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — Optional. Environment variables passed to the container's entrypoint.

#env=

def env=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
  • value (::Google::Protobuf::Map{::String => ::String}) — Optional. Environment variables passed to the container's entrypoint.
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — Optional. Environment variables passed to the container's entrypoint.

#image

def image() -> ::String
Returns
  • (::String) — Optional. A Docker container image that defines a custom environment.

    Cloud Workstations provides a number of preconfigured images, but you can create your own custom container images. If using a private image, the host.gceInstance.serviceAccount field must be specified in the workstation configuration and must have permission to pull the specified image. Otherwise, the image must be publicly accessible.

#image=

def image=(value) -> ::String
Parameter
  • value (::String) — Optional. A Docker container image that defines a custom environment.

    Cloud Workstations provides a number of preconfigured images, but you can create your own custom container images. If using a private image, the host.gceInstance.serviceAccount field must be specified in the workstation configuration and must have permission to pull the specified image. Otherwise, the image must be publicly accessible.

Returns
  • (::String) — Optional. A Docker container image that defines a custom environment.

    Cloud Workstations provides a number of preconfigured images, but you can create your own custom container images. If using a private image, the host.gceInstance.serviceAccount field must be specified in the workstation configuration and must have permission to pull the specified image. Otherwise, the image must be publicly accessible.

#run_as_user

def run_as_user() -> ::Integer
Returns
  • (::Integer) — Optional. If set, overrides the USER specified in the image with the given uid.

#run_as_user=

def run_as_user=(value) -> ::Integer
Parameter
  • value (::Integer) — Optional. If set, overrides the USER specified in the image with the given uid.
Returns
  • (::Integer) — Optional. If set, overrides the USER specified in the image with the given uid.

#working_dir

def working_dir() -> ::String
Returns
  • (::String) — Optional. If set, overrides the default DIR specified by the image.

#working_dir=

def working_dir=(value) -> ::String
Parameter
  • value (::String) — Optional. If set, overrides the default DIR specified by the image.
Returns
  • (::String) — Optional. If set, overrides the default DIR specified by the image.