Struct google_api_proto::google::spanner::admin::database::v1::CreateBackupEncryptionConfig
source · pub struct CreateBackupEncryptionConfig {
pub encryption_type: i32,
pub kms_key_name: String,
pub kms_key_names: Vec<String>,
}
Expand description
Encryption configuration for the backup to create.
Fields§
§encryption_type: i32
Required. The encryption type of the backup.
kms_key_name: String
Optional. The Cloud KMS key that will be used to protect the backup.
This field should be set only when
[encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type]
is CUSTOMER_MANAGED_ENCRYPTION
. Values are of the form
projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>
.
kms_key_names: Vec<String>
Optional. Specifies the KMS configuration for the one or more keys used to
protect the backup. Values are of the form
projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>
.
The keys referenced by kms_key_names must fully cover all regions of the backup’s instance configuration. Some examples:
- For single region instance configs, specify a single regional location KMS key.
- For multi-regional instance configs of type GOOGLE_MANAGED, either specify a multi-regional location KMS key or multiple regional location KMS keys that cover all regions in the instance config.
- For an instance config of type USER_MANAGED, please specify only regional location KMS keys to cover each region in the instance config. Multi-regional location KMS keys are not supported for USER_MANAGED instance configs.
Implementations§
source§impl CreateBackupEncryptionConfig
impl CreateBackupEncryptionConfig
sourcepub fn encryption_type(&self) -> EncryptionType
pub fn encryption_type(&self) -> EncryptionType
Returns the enum value of encryption_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_encryption_type(&mut self, value: EncryptionType)
pub fn set_encryption_type(&mut self, value: EncryptionType)
Sets encryption_type
to the provided enum value.
Trait Implementations§
source§impl Clone for CreateBackupEncryptionConfig
impl Clone for CreateBackupEncryptionConfig
source§fn clone(&self) -> CreateBackupEncryptionConfig
fn clone(&self) -> CreateBackupEncryptionConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateBackupEncryptionConfig
impl Debug for CreateBackupEncryptionConfig
source§impl Message for CreateBackupEncryptionConfig
impl Message for CreateBackupEncryptionConfig
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 CreateBackupEncryptionConfig
impl PartialEq for CreateBackupEncryptionConfig
source§fn eq(&self, other: &CreateBackupEncryptionConfig) -> bool
fn eq(&self, other: &CreateBackupEncryptionConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateBackupEncryptionConfig
Auto Trait Implementations§
impl Freeze for CreateBackupEncryptionConfig
impl RefUnwindSafe for CreateBackupEncryptionConfig
impl Send for CreateBackupEncryptionConfig
impl Sync for CreateBackupEncryptionConfig
impl Unpin for CreateBackupEncryptionConfig
impl UnwindSafe for CreateBackupEncryptionConfig
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