#[non_exhaustive]pub struct CmekConfig {
pub name: String,
pub kms_key: String,
pub kms_key_version: String,
pub state: State,
pub is_default: bool,
pub last_rotation_timestamp_micros: i64,
pub single_region_keys: Vec<SingleRegionKey>,
pub notebooklm_state: NotebookLMState,
/* private fields */
}cmek-config-service or data-store-service or identity-mapping-store-service only.Expand description
Configurations used to enable CMEK data encryption with Cloud KMS keys.
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: StringRequired. The name of the CmekConfig of the form
projects/{project}/locations/{location}/cmekConfig or
projects/{project}/locations/{location}/cmekConfigs/{cmek_config}.
kms_key: StringKMS key resource name which will be used to encrypt resources
projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}.
kms_key_version: StringKMS key version resource name which will be used to encrypt resources
<kms_key>/cryptoKeyVersions/{keyVersion}.
state: StateOutput only. The states of the CmekConfig.
is_default: boolOutput only. The default CmekConfig for the Customer.
last_rotation_timestamp_micros: i64Output only. The timestamp of the last key rotation.
single_region_keys: Vec<SingleRegionKey>Optional. Single-regional CMEKs that are required for some VAIS features.
notebooklm_state: NotebookLMStateOutput only. Whether the NotebookLM Corpus is ready to be used.
Implementations§
Source§impl CmekConfig
impl CmekConfig
Sourcepub fn set_kms_key<T: Into<String>>(self, v: T) -> Self
pub fn set_kms_key<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_kms_key_version<T: Into<String>>(self, v: T) -> Self
pub fn set_kms_key_version<T: Into<String>>(self, v: T) -> Self
Sets the value of kms_key_version.
§Example
let x = CmekConfig::new().set_kms_key_version("example");Sourcepub fn set_is_default<T: Into<bool>>(self, v: T) -> Self
pub fn set_is_default<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_last_rotation_timestamp_micros<T: Into<i64>>(self, v: T) -> Self
pub fn set_last_rotation_timestamp_micros<T: Into<i64>>(self, v: T) -> Self
Sets the value of last_rotation_timestamp_micros.
§Example
let x = CmekConfig::new().set_last_rotation_timestamp_micros(42);Sourcepub fn set_single_region_keys<T, V>(self, v: T) -> Self
pub fn set_single_region_keys<T, V>(self, v: T) -> Self
Sets the value of single_region_keys.
§Example
use google_cloud_discoveryengine_v1::model::SingleRegionKey;
let x = CmekConfig::new()
.set_single_region_keys([
SingleRegionKey::default()/* use setters */,
SingleRegionKey::default()/* use (different) setters */,
]);Sourcepub fn set_notebooklm_state<T: Into<NotebookLMState>>(self, v: T) -> Self
pub fn set_notebooklm_state<T: Into<NotebookLMState>>(self, v: T) -> Self
Sets the value of notebooklm_state.
§Example
use google_cloud_discoveryengine_v1::model::cmek_config::NotebookLMState;
let x0 = CmekConfig::new().set_notebooklm_state(NotebookLMState::NotebookLmNotReady);
let x1 = CmekConfig::new().set_notebooklm_state(NotebookLMState::NotebookLmReady);
let x2 = CmekConfig::new().set_notebooklm_state(NotebookLMState::NotebookLmNotEnabled);Trait Implementations§
Source§impl Clone for CmekConfig
impl Clone for CmekConfig
Source§fn clone(&self) -> CmekConfig
fn clone(&self) -> CmekConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CmekConfig
impl Debug for CmekConfig
Source§impl Default for CmekConfig
impl Default for CmekConfig
Source§fn default() -> CmekConfig
fn default() -> CmekConfig
Source§impl PartialEq for CmekConfig
impl PartialEq for CmekConfig
impl StructuralPartialEq for CmekConfig
Auto Trait Implementations§
impl Freeze for CmekConfig
impl RefUnwindSafe for CmekConfig
impl Send for CmekConfig
impl Sync for CmekConfig
impl Unpin for CmekConfig
impl UnsafeUnpin for CmekConfig
impl UnwindSafe for CmekConfig
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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