Struct google_api_proto::google::spanner::admin::database::v1::CopyBackupEncryptionConfig
source · pub struct CopyBackupEncryptionConfig {
pub encryption_type: i32,
pub kms_key_name: String,
pub kms_key_names: Vec<String>,
}
Expand description
Encryption configuration for the copied backup.
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.CopyBackupEncryptionConfig.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>
.
Kms keys specified can be in any order.
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 CopyBackupEncryptionConfig
impl CopyBackupEncryptionConfig
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 CopyBackupEncryptionConfig
impl Clone for CopyBackupEncryptionConfig
source§fn clone(&self) -> CopyBackupEncryptionConfig
fn clone(&self) -> CopyBackupEncryptionConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CopyBackupEncryptionConfig
impl Debug for CopyBackupEncryptionConfig
source§impl Default for CopyBackupEncryptionConfig
impl Default for CopyBackupEncryptionConfig
source§impl Message for CopyBackupEncryptionConfig
impl Message for CopyBackupEncryptionConfig
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 CopyBackupEncryptionConfig
impl PartialEq for CopyBackupEncryptionConfig
source§fn eq(&self, other: &CopyBackupEncryptionConfig) -> bool
fn eq(&self, other: &CopyBackupEncryptionConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CopyBackupEncryptionConfig
Auto Trait Implementations§
impl Freeze for CopyBackupEncryptionConfig
impl RefUnwindSafe for CopyBackupEncryptionConfig
impl Send for CopyBackupEncryptionConfig
impl Sync for CopyBackupEncryptionConfig
impl Unpin for CopyBackupEncryptionConfig
impl UnwindSafe for CopyBackupEncryptionConfig
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