[][src]Struct gcp_client::google::cloud::kms::v1::ImportCryptoKeyVersionRequest

pub struct ImportCryptoKeyVersionRequest {
    pub parent: String,
    pub algorithm: i32,
    pub import_job: String,
    pub wrapped_key_material: Option<WrappedKeyMaterial>,
}

Request message for [KeyManagementService.ImportCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.ImportCryptoKeyVersion].

Fields

parent: String

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

algorithm: i32

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.

import_job: String

Required. The [name][google.cloud.kms.v1.ImportJob.name] of the [ImportJob][google.cloud.kms.v1.ImportJob] that was used to wrap this key material.

wrapped_key_material: Option<WrappedKeyMaterial>

Required. The incoming wrapped key material that is to be imported.

Implementations

impl ImportCryptoKeyVersionRequest[src]

pub fn algorithm(&self) -> CryptoKeyVersionAlgorithm[src]

Returns the enum value of algorithm, or the default if the field is set to an invalid enum value.

pub fn set_algorithm(&mut self, value: CryptoKeyVersionAlgorithm)[src]

Sets algorithm to the provided enum value.

Trait Implementations

impl Clone for ImportCryptoKeyVersionRequest[src]

impl Debug for ImportCryptoKeyVersionRequest[src]

impl Default for ImportCryptoKeyVersionRequest[src]

impl Message for ImportCryptoKeyVersionRequest[src]

impl PartialEq<ImportCryptoKeyVersionRequest> for ImportCryptoKeyVersionRequest[src]

impl StructuralPartialEq for ImportCryptoKeyVersionRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]