Service Client: Google::Cloud::Shell::V1::Cloudshell::CloudShellServiceClient

Client stub representing the remote CloudShellService gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to shell.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Shell::V1::Cloudshell - Compiled Protocol Buffers messages for google/cloud/shell/v1/cloudshell.proto

SYNOPSIS

use Google::Cloud::Shell::V1::Cloudshell;

my $msg = Google::Cloud::Shell::V1::Cloudshell::Environment->new({
    name => $name,
    id => $id,
    docker_image => $docker_image,
    state => $state,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Shell::V1::Cloudshell::Environment->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/shell/v1/cloudshell.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Shell::V1::Cloudshell::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".

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: 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`.

  • $msg->id() / $msg->id($value)

    Type: String

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

  • $msg->docker_image() / $msg->docker_image($value)

    Type: String

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

  • $msg->state() / $msg->state($value)

    Type: Enum (Google::Cloud::Shell::V1::Environment::State)

    Output only. Current execution state of this environment.

  • $msg->web_host() / $msg->web_host($value)

    Type: String

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

  • $msg->ssh_username() / $msg->ssh_username($value)

    Type: String

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

  • $msg->ssh_host() / $msg->ssh_host($value)

    Type: String

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

  • $msg->ssh_port() / $msg->ssh_port($value)

    Type: Int32

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

  • $msg->public_keys() / $msg->public_keys($value)

    Type: 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.

Enum: Environment::State

  • STATE_UNSPECIFIED => 0

  • SUSPENDED => 1

  • PENDING => 2

  • RUNNING => 3

  • DELETING => 4

Google::Cloud::Shell::V1::Cloudshell::GetEnvironmentRequest

Request message for [GetEnvironment][google.cloud.shell.v1.CloudShellService.GetEnvironment].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Name of the requested resource, for example `users/me/environments/default` or `users/someone@example.com/environments/default`.

Google::Cloud::Shell::V1::Cloudshell::CreateEnvironmentMetadata

Message included in the metadata field of operations returned from [CreateEnvironment][google.cloud.shell.v1.CloudShellService.CreateEnvironment].

Inherits from Protobuf::Message.

Google::Cloud::Shell::V1::Cloudshell::DeleteEnvironmentMetadata

Message included in the metadata field of operations returned from [DeleteEnvironment][google.cloud.shell.v1.CloudShellService.DeleteEnvironment].

Inherits from Protobuf::Message.

Google::Cloud::Shell::V1::Cloudshell::StartEnvironmentRequest

Request message for [StartEnvironment][google.cloud.shell.v1.CloudShellService.StartEnvironment].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Name of the resource that should be started, for example `users/me/environments/default` or `users/someone@example.com/environments/default`.

  • $msg->access_token() / $msg->access_token($value)

    Type: String

    The initial access token passed to the environment. If this is present and valid, the environment will be pre-authenticated with gcloud so that the user can run gcloud commands in Cloud Shell without having to log in. This code can be updated later by calling AuthorizeEnvironment.

  • $msg->public_keys() / $msg->public_keys($value)

    Type: String

    Public keys that should be added to the environment before it is started.

Google::Cloud::Shell::V1::Cloudshell::AuthorizeEnvironmentRequest

Request message for [AuthorizeEnvironment][google.cloud.shell.v1.CloudShellService.AuthorizeEnvironment].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Name of the resource that should receive the credentials, for example `users/me/environments/default` or `users/someone@example.com/environments/default`.

  • $msg->access_token() / $msg->access_token($value)

    Type: String

    The OAuth access token that should be sent to the environment.

  • $msg->id_token() / $msg->id_token($value)

    Type: String

    The OAuth ID token that should be sent to the environment.

  • $msg->expire_time() / $msg->expire_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    The time when the credentials expire. If not set, defaults to one hour from when the server received the request.

Google::Cloud::Shell::V1::Cloudshell::AuthorizeEnvironmentResponse

Response message for [AuthorizeEnvironment][google.cloud.shell.v1.CloudShellService.AuthorizeEnvironment].

Inherits from Protobuf::Message.

Google::Cloud::Shell::V1::Cloudshell::AuthorizeEnvironmentMetadata

Message included in the metadata field of operations returned from [AuthorizeEnvironment][google.cloud.shell.v1.CloudShellService.AuthorizeEnvironment].

Inherits from Protobuf::Message.

Google::Cloud::Shell::V1::Cloudshell::StartEnvironmentMetadata

Message included in the metadata field of operations returned from [StartEnvironment][google.cloud.shell.v1.CloudShellService.StartEnvironment].

Inherits from Protobuf::Message.

Accessors

Enum: StartEnvironmentMetadata::State

  • STATE_UNSPECIFIED => 0

  • STARTING => 1

  • UNARCHIVING_DISK => 2

  • AWAITING_COMPUTE_RESOURCES => 4

  • FINISHED => 3

Google::Cloud::Shell::V1::Cloudshell::StartEnvironmentResponse

Message included in the response field of operations returned from [StartEnvironment][google.cloud.shell.v1.CloudShellService.StartEnvironment] once the operation is complete.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Shell::V1::Cloudshell::AddPublicKeyRequest

Request message for [AddPublicKey][google.cloud.shell.v1.CloudShellService.AddPublicKey].

Inherits from Protobuf::Message.

Accessors

  • $msg->environment() / $msg->environment($value)

    Type: String

    Environment this key should be added to, e.g. `users/me/environments/default`.

  • $msg->key() / $msg->key($value)

    Type: String

    Key that should be added to the environment. Supported formats are `ssh-dss` (see RFC4253), `ssh-rsa` (see RFC4253), `ecdsa-sha2-nistp256` (see RFC5656), `ecdsa-sha2-nistp384` (see RFC5656) and `ecdsa-sha2-nistp521` (see RFC5656). It should be structured as <format> <content>, where <content> part is encoded with Base64.

Google::Cloud::Shell::V1::Cloudshell::AddPublicKeyResponse

Response message for [AddPublicKey][google.cloud.shell.v1.CloudShellService.AddPublicKey].

Inherits from Protobuf::Message.

Accessors

  • $msg->key() / $msg->key($value)

    Type: String

    Key that was added to the environment.

Google::Cloud::Shell::V1::Cloudshell::AddPublicKeyMetadata

Message included in the metadata field of operations returned from [AddPublicKey][google.cloud.shell.v1.CloudShellService.AddPublicKey].

Inherits from Protobuf::Message.

Google::Cloud::Shell::V1::Cloudshell::RemovePublicKeyRequest

Request message for [RemovePublicKey][google.cloud.shell.v1.CloudShellService.RemovePublicKey].

Inherits from Protobuf::Message.

Accessors

  • $msg->environment() / $msg->environment($value)

    Type: String

    Environment this key should be removed from, e.g. `users/me/environments/default`.

  • $msg->key() / $msg->key($value)

    Type: String

    Key that should be removed from the environment.

Google::Cloud::Shell::V1::Cloudshell::RemovePublicKeyResponse

Response message for [RemovePublicKey][google.cloud.shell.v1.CloudShellService.RemovePublicKey].

Inherits from Protobuf::Message.

Google::Cloud::Shell::V1::Cloudshell::RemovePublicKeyMetadata

Message included in the metadata field of operations returned from [RemovePublicKey][google.cloud.shell.v1.CloudShellService.RemovePublicKey].

Inherits from Protobuf::Message.

Google::Cloud::Shell::V1::Cloudshell::CloudShellErrorDetails

Cloud-shell specific information that will be included as details in failure responses.

Inherits from Protobuf::Message.

Accessors

Enum: CloudShellErrorDetails::CloudShellErrorCode

  • CLOUD_SHELL_ERROR_CODE_UNSPECIFIED => 0

  • IMAGE_UNAVAILABLE => 1

  • CLOUD_SHELL_DISABLED => 2

  • TOS_VIOLATION => 4

  • QUOTA_EXCEEDED => 5

  • ENVIRONMENT_UNAVAILABLE => 6

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Shell::V1::Cloudshell::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.