Struct google_api_proto::google::cloud::kms::v1::CreateCryptoKeyRequest
source · pub struct CreateCryptoKeyRequest {
pub parent: String,
pub crypto_key_id: String,
pub crypto_key: Option<CryptoKey>,
pub skip_initial_version_creation: bool,
}
Expand description
Request message for [KeyManagementService.CreateCryptoKey][google.cloud.kms.v1.KeyManagementService.CreateCryptoKey].
Fields§
§parent: String
Required. The [name][google.cloud.kms.v1.KeyRing.name] of the KeyRing associated with the [CryptoKeys][google.cloud.kms.v1.CryptoKey].
crypto_key_id: String
Required. It must be unique within a KeyRing and match the regular
expression \[a-zA-Z0-9_-\]{1,63}
crypto_key: Option<CryptoKey>
Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field values.
skip_initial_version_creation: bool
If set to true, the request will create a [CryptoKey][google.cloud.kms.v1.CryptoKey] without any [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion]. You must manually call [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] or [ImportCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.ImportCryptoKeyVersion] before you can use this [CryptoKey][google.cloud.kms.v1.CryptoKey].
Trait Implementations§
source§impl Clone for CreateCryptoKeyRequest
impl Clone for CreateCryptoKeyRequest
source§fn clone(&self) -> CreateCryptoKeyRequest
fn clone(&self) -> CreateCryptoKeyRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateCryptoKeyRequest
impl Debug for CreateCryptoKeyRequest
source§impl Default for CreateCryptoKeyRequest
impl Default for CreateCryptoKeyRequest
source§impl Message for CreateCryptoKeyRequest
impl Message for CreateCryptoKeyRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for CreateCryptoKeyRequest
impl PartialEq for CreateCryptoKeyRequest
source§fn eq(&self, other: &CreateCryptoKeyRequest) -> bool
fn eq(&self, other: &CreateCryptoKeyRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateCryptoKeyRequest
Auto Trait Implementations§
impl !Freeze for CreateCryptoKeyRequest
impl RefUnwindSafe for CreateCryptoKeyRequest
impl Send for CreateCryptoKeyRequest
impl Sync for CreateCryptoKeyRequest
impl Unpin for CreateCryptoKeyRequest
impl UnwindSafe for CreateCryptoKeyRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request