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 ImportTrustedKeyWrappedCryptoKeyVersionRequest : IMessage<ImportTrustedKeyWrappedCryptoKeyVersionRequest>, IEquatable<ImportTrustedKeyWrappedCryptoKeyVersionRequest>, IDeepCloneable<ImportTrustedKeyWrappedCryptoKeyVersionRequest>, IBufferMessage, IMessage

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

Request message for
\[KeyManagementService.ImportTrustedKeyWrappedCryptoKeyVersion\]\[google.cloud.kms.v1.KeyManagementService.ImportTrustedKeyWrappedCryptoKeyVersion\].

## Inheritance

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

## Implements

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

### ImportTrustedKeyWrappedCryptoKeyVersionRequest()

    public ImportTrustedKeyWrappedCryptoKeyVersionRequest()

### ImportTrustedKeyWrappedCryptoKeyVersionRequest(ImportTrustedKeyWrappedCryptoKeyVersionRequest)

    public ImportTrustedKeyWrappedCryptoKeyVersionRequest(ImportTrustedKeyWrappedCryptoKeyVersionRequest other)

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

## Properties

### Algorithm

    public CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm Algorithm { get; set; }

Required. Required - The
\[algorithm\]\[google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm\]
of the key being imported. This does not need to match the
\[version_template\]\[google.cloud.kms.v1.CryptoKey.version_template\] of the
\[CryptoKey\]\[google.cloud.kms.v1.CryptoKey\] this version imports into.

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

### CryptoKeyVersion

    public string CryptoKeyVersion { get; set; }

Optional. The optional \[name\]\[google.cloud.kms.v1.CryptoKeyVersion.name\] of
an existing \[CryptoKeyVersion\]\[google.cloud.kms.v1.CryptoKeyVersion\] to
target for an import operation. If this field is not present, a new
\[CryptoKeyVersion\]\[google.cloud.kms.v1.CryptoKeyVersion\] containing the
supplied key material is created.

If this field is present, the supplied key material is imported into
the existing \[CryptoKeyVersion\]\[google.cloud.kms.v1.CryptoKeyVersion\]. To
import into an existing
\[CryptoKeyVersion\]\[google.cloud.kms.v1.CryptoKeyVersion\], the
\[CryptoKeyVersion\]\[google.cloud.kms.v1.CryptoKeyVersion\] must be a child of
\[ImportTrustedKeyWrappedCryptoKeyVersionRequest.parent\]\[google.cloud.kms.v1.ImportTrustedKeyWrappedCryptoKeyVersionRequest.parent\],
have been previously created via
\[ImportTrustedKeyWrappedCryptoKeyVersion\]\[google.cloud.kms.v1.KeyManagementService.ImportTrustedKeyWrappedCryptoKeyVersion\],
and be in
\[DESTROYED\]\[google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED\]
or
\[IMPORT_FAILED\]\[google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.IMPORT_FAILED\]
state. The key material and algorithm must match the previous
\[CryptoKeyVersion\]\[google.cloud.kms.v1.CryptoKeyVersion\] exactly if the
\[CryptoKeyVersion\]\[google.cloud.kms.v1.CryptoKeyVersion\] has ever contained
key material

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

### ImportingKey

    public string ImportingKey { get; set; }

Required. Required - the CKV of the trusted key used to import.
This can be the name of a CryptoKeyVersion or a CryptoKey.

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

### Parent

    public string Parent { get; set; }

Required. The \[name\]\[google.cloud.kms.v1.CryptoKey.name\] of the
\[CryptoKey\]\[google.cloud.kms.v1.CryptoKey\] to be imported into.

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

### WrappedKey

    public ByteString WrappedKey { get; set; }

Required. The target key pre-wrapped on premises.

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