Struct google_api_proto::google::spanner::admin::database::v1::RestoreDatabaseEncryptionConfig
source · pub struct RestoreDatabaseEncryptionConfig {
pub encryption_type: i32,
pub kms_key_name: String,
pub kms_key_names: Vec<String>,
}
Expand description
Encryption configuration for the restored database.
Fields§
§encryption_type: i32
Required. The encryption type of the restored database.
kms_key_name: String
Optional. The Cloud KMS key that will be used to encrypt/decrypt the
restored database. This field should be set only when
[encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.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
encrypt the database. 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 database instance configuration. Some examples:
- For single region database instance configs, specify a single regional location KMS key.
- For multi-regional database 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 a database 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 RestoreDatabaseEncryptionConfig
impl RestoreDatabaseEncryptionConfig
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 RestoreDatabaseEncryptionConfig
impl Clone for RestoreDatabaseEncryptionConfig
source§fn clone(&self) -> RestoreDatabaseEncryptionConfig
fn clone(&self) -> RestoreDatabaseEncryptionConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for RestoreDatabaseEncryptionConfig
impl Message for RestoreDatabaseEncryptionConfig
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 RestoreDatabaseEncryptionConfig
impl PartialEq for RestoreDatabaseEncryptionConfig
source§fn eq(&self, other: &RestoreDatabaseEncryptionConfig) -> bool
fn eq(&self, other: &RestoreDatabaseEncryptionConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RestoreDatabaseEncryptionConfig
Auto Trait Implementations§
impl Freeze for RestoreDatabaseEncryptionConfig
impl RefUnwindSafe for RestoreDatabaseEncryptionConfig
impl Send for RestoreDatabaseEncryptionConfig
impl Sync for RestoreDatabaseEncryptionConfig
impl Unpin for RestoreDatabaseEncryptionConfig
impl UnwindSafe for RestoreDatabaseEncryptionConfig
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