1.8.0 (latest) 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

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

Reference documentation and code samples for the Bare Metal Solution v2 API class CreateSSHKeyRequest.

Message for registering a public SSH key in a project.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[CreateSSHKeyRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.CreateSSHKeyRequest.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateSSHKeyRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.CreateSSHKeyRequest.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[CreateSSHKeyRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.CreateSSHKeyRequest.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.BareMetalSolution.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.md.txt)

## Assembly

Google.Cloud.BareMetalSolution.V2.dll

## Constructors

### CreateSSHKeyRequest()

    public CreateSSHKeyRequest()

### CreateSSHKeyRequest(CreateSSHKeyRequest)

    public CreateSSHKeyRequest(CreateSSHKeyRequest other)

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

## Properties

### Parent

    public string Parent { get; set; }

Required. The parent containing the SSH keys.

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

### ParentAsLocationName

    public LocationName ParentAsLocationName { get; set; }

[LocationName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.md.txt)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.CreateSSHKeyRequest.md.txt#Google_Cloud_BareMetalSolution_V2_CreateSSHKeyRequest_Parent) resource name property.

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

### SshKey

    public SSHKey SshKey { get; set; }

Required. The SSH key to register.

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

### SshKeyId

    public string SshKeyId { get; set; }

Required. The ID to use for the key, which will become the final component
of the key's resource name.

This value must match the regex:
\[a-zA-Z0-9@.-_\]{1,64}

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