#[non_exhaustive]pub struct LocalDiskEncryption {
pub kms_key: String,
pub kms_key_active_version: String,
pub kms_key_state: KmsKeyState,
pub kms_status: Option<Status>,
pub resource_state: ResourceState,
/* private fields */
}Expand description
Configuration for CMEK support for edge machine local disk encryption.
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.kms_key: StringOptional. The Cloud KMS CryptoKey e.g. projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey} to use for protecting node local disks. If not specified, a Google-managed key will be used instead.
kms_key_active_version: StringOutput only. The Cloud KMS CryptoKeyVersion currently in use for protecting node local disks. Only applicable if kms_key is set.
kms_key_state: KmsKeyStateOutput only. Availability of the Cloud KMS CryptoKey. If not
KEY_AVAILABLE, then nodes may go offline as they cannot access their
local data. This can be caused by a lack of permissions to use the key,
or if the key is disabled or deleted.
kms_status: Option<Status>Output only. Error status returned by Cloud KMS when using this key. This
field may be populated only if kms_key_state is not
KMS_KEY_STATE_KEY_AVAILABLE. If populated, this field contains the
error status reported by Cloud KMS.
resource_state: ResourceStateOutput only. The current resource state associated with the cmek.
Implementations§
Source§impl LocalDiskEncryption
impl LocalDiskEncryption
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_active_version<T: Into<String>>(self, v: T) -> Self
pub fn set_kms_key_active_version<T: Into<String>>(self, v: T) -> Self
Sets the value of kms_key_active_version.
§Example
let x = LocalDiskEncryption::new().set_kms_key_active_version("example");Sourcepub fn set_kms_key_state<T: Into<KmsKeyState>>(self, v: T) -> Self
pub fn set_kms_key_state<T: Into<KmsKeyState>>(self, v: T) -> Self
Sets the value of kms_key_state.
§Example
use google_cloud_edgecontainer_v1::model::KmsKeyState;
let x0 = LocalDiskEncryption::new().set_kms_key_state(KmsKeyState::KeyAvailable);
let x1 = LocalDiskEncryption::new().set_kms_key_state(KmsKeyState::KeyUnavailable);Sourcepub fn set_kms_status<T>(self, v: T) -> Self
pub fn set_kms_status<T>(self, v: T) -> Self
Sets the value of kms_status.
§Example
use google_cloud_rpc::model::Status;
let x = LocalDiskEncryption::new().set_kms_status(Status::default()/* use setters */);Sourcepub fn set_or_clear_kms_status<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_kms_status<T>(self, v: Option<T>) -> Self
Sets or clears the value of kms_status.
§Example
use google_cloud_rpc::model::Status;
let x = LocalDiskEncryption::new().set_or_clear_kms_status(Some(Status::default()/* use setters */));
let x = LocalDiskEncryption::new().set_or_clear_kms_status(None::<Status>);Sourcepub fn set_resource_state<T: Into<ResourceState>>(self, v: T) -> Self
pub fn set_resource_state<T: Into<ResourceState>>(self, v: T) -> Self
Sets the value of resource_state.
§Example
use google_cloud_edgecontainer_v1::model::ResourceState;
let x0 = LocalDiskEncryption::new().set_resource_state(ResourceState::LockDown);
let x1 = LocalDiskEncryption::new().set_resource_state(ResourceState::LockDownPending);Trait Implementations§
Source§impl Clone for LocalDiskEncryption
impl Clone for LocalDiskEncryption
Source§fn clone(&self) -> LocalDiskEncryption
fn clone(&self) -> LocalDiskEncryption
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 LocalDiskEncryption
impl Debug for LocalDiskEncryption
Source§impl Default for LocalDiskEncryption
impl Default for LocalDiskEncryption
Source§fn default() -> LocalDiskEncryption
fn default() -> LocalDiskEncryption
Source§impl Message for LocalDiskEncryption
impl Message for LocalDiskEncryption
Source§impl PartialEq for LocalDiskEncryption
impl PartialEq for LocalDiskEncryption
impl StructuralPartialEq for LocalDiskEncryption
Auto Trait Implementations§
impl Freeze for LocalDiskEncryption
impl RefUnwindSafe for LocalDiskEncryption
impl Send for LocalDiskEncryption
impl Sync for LocalDiskEncryption
impl Unpin for LocalDiskEncryption
impl UnsafeUnpin for LocalDiskEncryption
impl UnwindSafe for LocalDiskEncryption
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