#[non_exhaustive]pub struct EncryptionConfig {
pub name: String,
pub key: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub encryption_state: EncryptionState,
pub etag: String,
pub failure_details: Option<FailureDetails>,
pub enable_metastore_encryption: bool,
/* private fields */
}Expand description
A Resource designed to manage encryption configurations for customers to support Customer Managed Encryption Keys (CMEK).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringIdentifier. The resource name of the EncryptionConfig. Format: organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config} Global location is not supported.
key: StringOptional. If a key is chosen, it means that the customer is using CMEK. If a key is not chosen, it means that the customer is using Google managed encryption.
create_time: Option<Timestamp>Output only. The time when the Encryption configuration was created.
update_time: Option<Timestamp>Output only. The time when the Encryption configuration was last updated.
encryption_state: EncryptionStateOutput only. The state of encryption of the databases.
etag: StringEtag of the EncryptionConfig. This is a strong etag.
failure_details: Option<FailureDetails>Output only. Details of the failure if anything related to Cmek db fails.
enable_metastore_encryption: boolOptional. Represent the state of CMEK opt-in for metastore.
Implementations§
Source§impl EncryptionConfig
impl EncryptionConfig
pub fn new() -> Self
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
Sourcepub fn set_encryption_state<T: Into<EncryptionState>>(self, v: T) -> Self
pub fn set_encryption_state<T: Into<EncryptionState>>(self, v: T) -> Self
Sets the value of encryption_state.
Sourcepub fn set_failure_details<T>(self, v: T) -> Selfwhere
T: Into<FailureDetails>,
pub fn set_failure_details<T>(self, v: T) -> Selfwhere
T: Into<FailureDetails>,
Sets the value of failure_details.
Sourcepub fn set_or_clear_failure_details<T>(self, v: Option<T>) -> Selfwhere
T: Into<FailureDetails>,
pub fn set_or_clear_failure_details<T>(self, v: Option<T>) -> Selfwhere
T: Into<FailureDetails>,
Sets or clears the value of failure_details.
Sourcepub fn set_enable_metastore_encryption<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_metastore_encryption<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_metastore_encryption.
Trait Implementations§
Source§impl Clone for EncryptionConfig
impl Clone for EncryptionConfig
Source§fn clone(&self) -> EncryptionConfig
fn clone(&self) -> EncryptionConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more