class Google::Apis::CloudshellV1::Environment
A Cloud Shell environment, which is defined as the combination of a Docker image specifying what is installed on the environment and a home directory containing the user's data that will remain across sessions. Each user has at least an environment with the ID “default”.
Attributes
Required. Immutable. Full path to the Docker image used to run this environment, e.g. “gcr.io/dev-con/cloud-devshell:latest”. Corresponds to the JSON property `dockerImage` @return [String]
Output only. The environment's identifier, unique among the user's environments. Corresponds to the JSON property `id` @return [String]
Immutable. Full name of this resource, in the format `users/`owner_email`/ environments/`environment_id“. “owner_email“ is the email address of the user to whom this environment belongs, and “environment_id“ is the identifier of this environment. For example, `users/someone@example.com/ environments/default`. Corresponds to the JSON property `name` @return [String]
Output only. Public keys associated with the environment. Clients can connect to this environment via SSH only if they possess a private key corresponding to at least one of these public keys. Keys can be added to or removed from the environment using the AddPublicKey and RemovePublicKey methods. Corresponds to the JSON property `publicKeys` @return [Array<String>]
Output only. Host to which clients can connect to initiate SSH sessions with the environment. Corresponds to the JSON property `sshHost` @return [String]
Output only. Port to which clients can connect to initiate SSH sessions with the environment. Corresponds to the JSON property `sshPort` @return [Fixnum]
Output only. Username that clients should use when initiating SSH sessions with the environment. Corresponds to the JSON property `sshUsername` @return [String]
Output only. Current execution state of this environment. Corresponds to the JSON property `state` @return [String]
Output only. Host to which clients can connect to initiate HTTPS or WSS connections with the environment. Corresponds to the JSON property `webHost` @return [String]
Public Class Methods
# File lib/google/apis/cloudshell_v1/classes.rb, line 263 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/cloudshell_v1/classes.rb, line 268 def update!(**args) @docker_image = args[:docker_image] if args.key?(:docker_image) @id = args[:id] if args.key?(:id) @name = args[:name] if args.key?(:name) @public_keys = args[:public_keys] if args.key?(:public_keys) @ssh_host = args[:ssh_host] if args.key?(:ssh_host) @ssh_port = args[:ssh_port] if args.key?(:ssh_port) @ssh_username = args[:ssh_username] if args.key?(:ssh_username) @state = args[:state] if args.key?(:state) @web_host = args[:web_host] if args.key?(:web_host) end