Cloud Shell v1 API - Class Environment (2.3.0)

public sealed class Environment : IMessage<Environment>, IEquatable<Environment>, IDeepCloneable<Environment>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Shell v1 API class 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".

Inheritance

object > Environment

Namespace

Google.Cloud.Shell.V1

Assembly

Google.Cloud.Shell.V1.dll

Constructors

Environment()

public Environment()

Environment(Environment)

public Environment(Environment other)
Parameter
NameDescription
otherEnvironment

Properties

DockerImage

public string DockerImage { get; set; }

Required. Immutable. Full path to the Docker image used to run this environment, e.g. "gcr.io/dev-con/cloud-devshell:latest".

Property Value
TypeDescription
string

EnvironmentName

public EnvironmentName EnvironmentName { get; set; }

EnvironmentName-typed view over the Name resource name property.

Property Value
TypeDescription
EnvironmentName

Id

public string Id { get; set; }

Output only. The environment's identifier, unique among the user's environments.

Property Value
TypeDescription
string

Name

public string Name { get; set; }

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.

Property Value
TypeDescription
string

PublicKeys

public RepeatedField<string> PublicKeys { get; }

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.

Property Value
TypeDescription
RepeatedFieldstring

SshHost

public string SshHost { get; set; }

Output only. Host to which clients can connect to initiate SSH sessions with the environment.

Property Value
TypeDescription
string

SshPort

public int SshPort { get; set; }

Output only. Port to which clients can connect to initiate SSH sessions with the environment.

Property Value
TypeDescription
int

SshUsername

public string SshUsername { get; set; }

Output only. Username that clients should use when initiating SSH sessions with the environment.

Property Value
TypeDescription
string

State

public Environment.Types.State State { get; set; }

Output only. Current execution state of this environment.

Property Value
TypeDescription
EnvironmentTypesState

WebHost

public string WebHost { get; set; }

Output only. Host to which clients can connect to initiate HTTPS or WSS connections with the environment.

Property Value
TypeDescription
string