# Cloud Shell v1 API - Class CloudShellServiceClientImpl (2.6.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.6.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClientImpl)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/2.5.0/Google.Cloud.Shell.V1.CloudShellServiceClientImpl)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/2.4.0/Google.Cloud.Shell.V1.CloudShellServiceClientImpl)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/2.3.0/Google.Cloud.Shell.V1.CloudShellServiceClientImpl)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/2.2.0/Google.Cloud.Shell.V1.CloudShellServiceClientImpl)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/2.1.0/Google.Cloud.Shell.V1.CloudShellServiceClientImpl)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/2.0.0/Google.Cloud.Shell.V1.CloudShellServiceClientImpl)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/1.1.0/Google.Cloud.Shell.V1.CloudShellServiceClientImpl)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/1.0.0/Google.Cloud.Shell.V1.CloudShellServiceClientImpl)

    public sealed class CloudShellServiceClientImpl : CloudShellServiceClient

Reference documentation and code samples for the Cloud Shell v1 API class CloudShellServiceClientImpl.

CloudShellService client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [CloudShellServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient) \> CloudShellServiceClientImpl

## Inherited Members

[CloudShellServiceClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_DefaultEndpoint) [CloudShellServiceClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_DefaultScopes) [CloudShellServiceClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_ServiceMetadata) [CloudShellServiceClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_CreateAsync_System_Threading_CancellationToken_) [CloudShellServiceClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_Create) [CloudShellServiceClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_ShutdownDefaultChannelsAsync) [CloudShellServiceClient.GetEnvironmentAsync(GetEnvironmentRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_GetEnvironmentAsync_Google_Cloud_Shell_V1_GetEnvironmentRequest_System_Threading_CancellationToken_) [CloudShellServiceClient.GetEnvironment(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_GetEnvironment_System_String_Google_Api_Gax_Grpc_CallSettings_) [CloudShellServiceClient.GetEnvironmentAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_GetEnvironmentAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [CloudShellServiceClient.GetEnvironmentAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_GetEnvironmentAsync_System_String_System_Threading_CancellationToken_) [CloudShellServiceClient.GetEnvironment(EnvironmentName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_GetEnvironment_Google_Cloud_Shell_V1_EnvironmentName_Google_Api_Gax_Grpc_CallSettings_) [CloudShellServiceClient.GetEnvironmentAsync(EnvironmentName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_GetEnvironmentAsync_Google_Cloud_Shell_V1_EnvironmentName_Google_Api_Gax_Grpc_CallSettings_) [CloudShellServiceClient.GetEnvironmentAsync(EnvironmentName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_GetEnvironmentAsync_Google_Cloud_Shell_V1_EnvironmentName_System_Threading_CancellationToken_) [CloudShellServiceClient.StartEnvironmentAsync(StartEnvironmentRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_StartEnvironmentAsync_Google_Cloud_Shell_V1_StartEnvironmentRequest_System_Threading_CancellationToken_) [CloudShellServiceClient.PollOnceStartEnvironment(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_PollOnceStartEnvironment_System_String_Google_Api_Gax_Grpc_CallSettings_) [CloudShellServiceClient.PollOnceStartEnvironmentAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_PollOnceStartEnvironmentAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [CloudShellServiceClient.AuthorizeEnvironmentAsync(AuthorizeEnvironmentRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_AuthorizeEnvironmentAsync_Google_Cloud_Shell_V1_AuthorizeEnvironmentRequest_System_Threading_CancellationToken_) [CloudShellServiceClient.PollOnceAuthorizeEnvironment(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_PollOnceAuthorizeEnvironment_System_String_Google_Api_Gax_Grpc_CallSettings_) [CloudShellServiceClient.PollOnceAuthorizeEnvironmentAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_PollOnceAuthorizeEnvironmentAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [CloudShellServiceClient.AddPublicKeyAsync(AddPublicKeyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_AddPublicKeyAsync_Google_Cloud_Shell_V1_AddPublicKeyRequest_System_Threading_CancellationToken_) [CloudShellServiceClient.PollOnceAddPublicKey(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_PollOnceAddPublicKey_System_String_Google_Api_Gax_Grpc_CallSettings_) [CloudShellServiceClient.PollOnceAddPublicKeyAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_PollOnceAddPublicKeyAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [CloudShellServiceClient.RemovePublicKeyAsync(RemovePublicKeyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_RemovePublicKeyAsync_Google_Cloud_Shell_V1_RemovePublicKeyRequest_System_Threading_CancellationToken_) [CloudShellServiceClient.PollOnceRemovePublicKey(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_PollOnceRemovePublicKey_System_String_Google_Api_Gax_Grpc_CallSettings_) [CloudShellServiceClient.PollOnceRemovePublicKeyAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_PollOnceRemovePublicKeyAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Shell.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1)

## Assembly

Google.Cloud.Shell.V1.dll

## Remarks

API for interacting with Google Cloud Shell. Each user of Cloud Shell has at
least one environment, which has the ID "default". Environment consists of a
Docker image defining what is installed on the environment and a home
directory containing the user's data that will remain across sessions.
Clients use this API to start and fetch information about their environment,
which can then be used to connect to that environment via a separate SSH
client.

## Constructors

### CloudShellServiceClientImpl(CloudShellServiceClient, CloudShellServiceSettings, ILogger)

    public CloudShellServiceClientImpl(CloudShellService.CloudShellServiceClient grpcClient, CloudShellServiceSettings settings, ILogger logger)

Constructs a client wrapper for the CloudShellService service, with the specified gRPC client and settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellService.CloudShellServiceClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceSettings` The base [CloudShellServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceSettings) used within this client. |
| `logger` | `https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger` Optional [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger) to use within this client. |

## Properties

### AddPublicKeyOperationsClient

    public override OperationsClient AddPublicKeyOperationsClient { get; }

The long-running operations client for `AddPublicKey`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

**Overrides** [CloudShellServiceClient.AddPublicKeyOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_AddPublicKeyOperationsClient)

### AuthorizeEnvironmentOperationsClient

    public override OperationsClient AuthorizeEnvironmentOperationsClient { get; }

The long-running operations client for `AuthorizeEnvironment`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

**Overrides** [CloudShellServiceClient.AuthorizeEnvironmentOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_AuthorizeEnvironmentOperationsClient)

### GrpcClient

    public override CloudShellService.CloudShellServiceClient GrpcClient { get; }

The underlying gRPC CloudShellService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellService.CloudShellServiceClient` |   |

**Overrides** [CloudShellServiceClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_GrpcClient)

### RemovePublicKeyOperationsClient

    public override OperationsClient RemovePublicKeyOperationsClient { get; }

The long-running operations client for `RemovePublicKey`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

**Overrides** [CloudShellServiceClient.RemovePublicKeyOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_RemovePublicKeyOperationsClient)

### StartEnvironmentOperationsClient

    public override OperationsClient StartEnvironmentOperationsClient { get; }

The long-running operations client for `StartEnvironment`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

**Overrides** [CloudShellServiceClient.StartEnvironmentOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_StartEnvironmentOperationsClient)

## Methods

### AddPublicKey(AddPublicKeyRequest, CallSettings)

    public override Operation<AddPublicKeyResponse, AddPublicKeyMetadata> AddPublicKey(AddPublicKeyRequest request, CallSettings callSettings = null)

Adds a public SSH key to an environment, allowing clients with the
corresponding private key to connect to that environment via SSH. If a key
with the same content already exists, this will error with ALREADY_EXISTS.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.AddPublicKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.AddPublicKeyResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.AddPublicKeyMetadata` | The RPC response. |

**Overrides** [CloudShellServiceClient.AddPublicKey(AddPublicKeyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_AddPublicKey_Google_Cloud_Shell_V1_AddPublicKeyRequest_Google_Api_Gax_Grpc_CallSettings_)

### AddPublicKeyAsync(AddPublicKeyRequest, CallSettings)

    public override Task<Operation<AddPublicKeyResponse, AddPublicKeyMetadata>> AddPublicKeyAsync(AddPublicKeyRequest request, CallSettings callSettings = null)

Adds a public SSH key to an environment, allowing clients with the
corresponding private key to connect to that environment via SSH. If a key
with the same content already exists, this will error with ALREADY_EXISTS.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.AddPublicKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.AddPublicKeyResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.AddPublicKeyMetadata` | A Task containing the RPC response. |

**Overrides** [CloudShellServiceClient.AddPublicKeyAsync(AddPublicKeyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_AddPublicKeyAsync_Google_Cloud_Shell_V1_AddPublicKeyRequest_Google_Api_Gax_Grpc_CallSettings_)

### AuthorizeEnvironment(AuthorizeEnvironmentRequest, CallSettings)

    public override Operation<AuthorizeEnvironmentResponse, AuthorizeEnvironmentMetadata> AuthorizeEnvironment(AuthorizeEnvironmentRequest request, CallSettings callSettings = null)

Sends OAuth credentials to a running environment on behalf of a user. When
this completes, the environment will be authorized to run various Google
Cloud command line tools without requiring the user to manually
authenticate.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.AuthorizeEnvironmentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.AuthorizeEnvironmentResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.AuthorizeEnvironmentMetadata` | The RPC response. |

**Overrides** [CloudShellServiceClient.AuthorizeEnvironment(AuthorizeEnvironmentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_AuthorizeEnvironment_Google_Cloud_Shell_V1_AuthorizeEnvironmentRequest_Google_Api_Gax_Grpc_CallSettings_)

### AuthorizeEnvironmentAsync(AuthorizeEnvironmentRequest, CallSettings)

    public override Task<Operation<AuthorizeEnvironmentResponse, AuthorizeEnvironmentMetadata>> AuthorizeEnvironmentAsync(AuthorizeEnvironmentRequest request, CallSettings callSettings = null)

Sends OAuth credentials to a running environment on behalf of a user. When
this completes, the environment will be authorized to run various Google
Cloud command line tools without requiring the user to manually
authenticate.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.AuthorizeEnvironmentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.AuthorizeEnvironmentResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.AuthorizeEnvironmentMetadata` | A Task containing the RPC response. |

**Overrides** [CloudShellServiceClient.AuthorizeEnvironmentAsync(AuthorizeEnvironmentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_AuthorizeEnvironmentAsync_Google_Cloud_Shell_V1_AuthorizeEnvironmentRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetEnvironment(GetEnvironmentRequest, CallSettings)

    public override Environment GetEnvironment(GetEnvironmentRequest request, CallSettings callSettings = null)

Gets an environment. Returns NOT_FOUND if the environment does not exist.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.GetEnvironmentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.Environment` | The RPC response. |

**Overrides** [CloudShellServiceClient.GetEnvironment(GetEnvironmentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_GetEnvironment_Google_Cloud_Shell_V1_GetEnvironmentRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetEnvironmentAsync(GetEnvironmentRequest, CallSettings)

    public override Task<Environment> GetEnvironmentAsync(GetEnvironmentRequest request, CallSettings callSettings = null)

Gets an environment. Returns NOT_FOUND if the environment does not exist.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.GetEnvironmentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.Environment` | A Task containing the RPC response. |

**Overrides** [CloudShellServiceClient.GetEnvironmentAsync(GetEnvironmentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_GetEnvironmentAsync_Google_Cloud_Shell_V1_GetEnvironmentRequest_Google_Api_Gax_Grpc_CallSettings_)

### RemovePublicKey(RemovePublicKeyRequest, CallSettings)

    public override Operation<RemovePublicKeyResponse, RemovePublicKeyMetadata> RemovePublicKey(RemovePublicKeyRequest request, CallSettings callSettings = null)

Removes a public SSH key from an environment. Clients will no longer be
able to connect to the environment using the corresponding private key.
If a key with the same content is not present, this will error with
NOT_FOUND.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.RemovePublicKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.RemovePublicKeyResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.RemovePublicKeyMetadata` | The RPC response. |

**Overrides** [CloudShellServiceClient.RemovePublicKey(RemovePublicKeyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_RemovePublicKey_Google_Cloud_Shell_V1_RemovePublicKeyRequest_Google_Api_Gax_Grpc_CallSettings_)

### RemovePublicKeyAsync(RemovePublicKeyRequest, CallSettings)

    public override Task<Operation<RemovePublicKeyResponse, RemovePublicKeyMetadata>> RemovePublicKeyAsync(RemovePublicKeyRequest request, CallSettings callSettings = null)

Removes a public SSH key from an environment. Clients will no longer be
able to connect to the environment using the corresponding private key.
If a key with the same content is not present, this will error with
NOT_FOUND.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.RemovePublicKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.RemovePublicKeyResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.RemovePublicKeyMetadata` | A Task containing the RPC response. |

**Overrides** [CloudShellServiceClient.RemovePublicKeyAsync(RemovePublicKeyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_RemovePublicKeyAsync_Google_Cloud_Shell_V1_RemovePublicKeyRequest_Google_Api_Gax_Grpc_CallSettings_)

### StartEnvironment(StartEnvironmentRequest, CallSettings)

    public override Operation<StartEnvironmentResponse, StartEnvironmentMetadata> StartEnvironment(StartEnvironmentRequest request, CallSettings callSettings = null)

Starts an existing environment, allowing clients to connect to it. The
returned operation will contain an instance of StartEnvironmentMetadata in
its metadata field. Users can wait for the environment to start by polling
this operation via GetOperation. Once the environment has finished starting
and is ready to accept connections, the operation will contain a
StartEnvironmentResponse in its response field.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.StartEnvironmentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.StartEnvironmentResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.StartEnvironmentMetadata` | The RPC response. |

**Overrides** [CloudShellServiceClient.StartEnvironment(StartEnvironmentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_StartEnvironment_Google_Cloud_Shell_V1_StartEnvironmentRequest_Google_Api_Gax_Grpc_CallSettings_)

### StartEnvironmentAsync(StartEnvironmentRequest, CallSettings)

    public override Task<Operation<StartEnvironmentResponse, StartEnvironmentMetadata>> StartEnvironmentAsync(StartEnvironmentRequest request, CallSettings callSettings = null)

Starts an existing environment, allowing clients to connect to it. The
returned operation will contain an instance of StartEnvironmentMetadata in
its metadata field. Users can wait for the environment to start by polling
this operation via GetOperation. Once the environment has finished starting
and is ready to accept connections, the operation will contain a
StartEnvironmentResponse in its response field.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.StartEnvironmentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.StartEnvironmentResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.StartEnvironmentMetadata` | A Task containing the RPC response. |

**Overrides** [CloudShellServiceClient.StartEnvironmentAsync(StartEnvironmentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.CloudShellServiceClient#Google_Cloud_Shell_V1_CloudShellServiceClient_StartEnvironmentAsync_Google_Cloud_Shell_V1_StartEnvironmentRequest_Google_Api_Gax_Grpc_CallSettings_)