2.6.0 (latest) 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.1.0 1.0.0

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

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

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

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> AddPublicKeyResponse

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[AddPublicKeyResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.AddPublicKeyResponse.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AddPublicKeyResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.AddPublicKeyResponse.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[AddPublicKeyResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Shell.V1/latest/Google.Cloud.Shell.V1.AddPublicKeyResponse.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[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.md.txt)

## Assembly

Google.Cloud.Shell.V1.dll

## Constructors

### AddPublicKeyResponse()

    public AddPublicKeyResponse()

### AddPublicKeyResponse(AddPublicKeyResponse)

    public AddPublicKeyResponse(AddPublicKeyResponse other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `AddPublicKeyResponse` |

## Properties

### Key

    public string Key { get; set; }

Key that was added to the environment.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |