3.27.0 (latest) 3.26.0 3.25.0 3.24.0 3.23.0 3.22.0 3.21.0 3.20.0 3.19.0 3.18.0 3.17.0 3.16.0 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0

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

Reference documentation and code samples for the Google Cloud Key Management Service v1 API class SingleTenantHsmInstance.

A \[SingleTenantHsmInstance\]\[google.cloud.kms.v1.SingleTenantHsmInstance\]
represents a single-tenant HSM instance. It can be used for creating
\[CryptoKeys\]\[google.cloud.kms.v1.CryptoKey\] with a
\[ProtectionLevel\]\[google.cloud.kms.v1.ProtectionLevel\] of
\[HSM_SINGLE_TENANT\]\[CryptoKeyVersion.ProtectionLevel.HSM_SINGLE_TENANT\], as
well as performing cryptographic operations using keys created within the
\[SingleTenantHsmInstance\]\[google.cloud.kms.v1.SingleTenantHsmInstance\].

## Inheritance

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

## Implements

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

## 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.Kms.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1)

## Assembly

Google.Cloud.Kms.V1.dll

## Constructors

### SingleTenantHsmInstance()

    public SingleTenantHsmInstance()

### SingleTenantHsmInstance(SingleTenantHsmInstance)

    public SingleTenantHsmInstance(SingleTenantHsmInstance other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.SingleTenantHsmInstance` |

## Properties

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. The time at which the
\[SingleTenantHsmInstance\]\[google.cloud.kms.v1.SingleTenantHsmInstance\] was
created.

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

### DeleteTime

    public Timestamp DeleteTime { get; set; }

Output only. The time at which the
\[SingleTenantHsmInstance\]\[google.cloud.kms.v1.SingleTenantHsmInstance\] was
deleted.

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

### DisableTime

    public Timestamp DisableTime { get; set; }

Output only. The time at which the instance will be automatically disabled
if not refreshed. This field is updated upon creation and after each
successful refresh operation and enable. A
\[RefreshSingleTenantHsmInstance\]\[\] operation must be made via a
\[SingleTenantHsmInstanceProposal\]\[google.cloud.kms.v1.SingleTenantHsmInstanceProposal\]
before this time otherwise the
\[SingleTenantHsmInstance\]\[google.cloud.kms.v1.SingleTenantHsmInstance\] will
become disabled.

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

### KeyPortabilityEnabled

    public bool KeyPortabilityEnabled { get; set; }

Optional. Immutable. Indicates whether key portability is enabled for the
\[SingleTenantHsmInstance\]\[google.cloud.kms.v1.SingleTenantHsmInstance\].
This can only be set at creation time. Key portability features are
disabled by default.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### Name

    public string Name { get; set; }

Identifier. The resource name for this
\[SingleTenantHsmInstance\]\[google.cloud.kms.v1.SingleTenantHsmInstance\] in
the format `projects/*/locations/*/singleTenantHsmInstances/*`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### QuorumAuth

    public SingleTenantHsmInstance.Types.QuorumAuth QuorumAuth { get; set; }

Required. The quorum auth configuration for the
\[SingleTenantHsmInstance\]\[google.cloud.kms.v1.SingleTenantHsmInstance\].

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.SingleTenantHsmInstancehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.SingleTenantHsmInstance.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.SingleTenantHsmInstance.Types.QuorumAuth` |   |

### SingleTenantHsmInstanceName

    public SingleTenantHsmInstanceName SingleTenantHsmInstanceName { get; set; }

[SingleTenantHsmInstanceName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.SingleTenantHsmInstanceName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.SingleTenantHsmInstance#Google_Cloud_Kms_V1_SingleTenantHsmInstance_Name) resource name
property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.SingleTenantHsmInstanceName` |   |

### State

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

Output only. The state of the
\[SingleTenantHsmInstance\]\[google.cloud.kms.v1.SingleTenantHsmInstance\].

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.SingleTenantHsmInstancehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.SingleTenantHsmInstance.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.SingleTenantHsmInstance.Types.State` |   |

### UnrefreshedDurationUntilDisable

    public Duration UnrefreshedDurationUntilDisable { get; set; }

Output only. The system-defined duration that an instance can remain
unrefreshed until it is automatically disabled. This will have a value of
730 days.

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