#[non_exhaustive]pub struct ControlPlaneEncryption {
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 Customer-managed KMS key support for control plane nodes.
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 control plane 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 control plane 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 ControlPlaneEncryption
impl ControlPlaneEncryption
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 = ControlPlaneEncryption::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 = ControlPlaneEncryption::new().set_kms_key_state(KmsKeyState::KeyAvailable);
let x1 = ControlPlaneEncryption::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 = ControlPlaneEncryption::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 = ControlPlaneEncryption::new().set_or_clear_kms_status(Some(Status::default()/* use setters */));
let x = ControlPlaneEncryption::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 = ControlPlaneEncryption::new().set_resource_state(ResourceState::LockDown);
let x1 = ControlPlaneEncryption::new().set_resource_state(ResourceState::LockDownPending);Trait Implementations§
Source§impl Clone for ControlPlaneEncryption
impl Clone for ControlPlaneEncryption
Source§fn clone(&self) -> ControlPlaneEncryption
fn clone(&self) -> ControlPlaneEncryption
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 ControlPlaneEncryption
impl Debug for ControlPlaneEncryption
Source§impl Default for ControlPlaneEncryption
impl Default for ControlPlaneEncryption
Source§fn default() -> ControlPlaneEncryption
fn default() -> ControlPlaneEncryption
Source§impl Message for ControlPlaneEncryption
impl Message for ControlPlaneEncryption
Source§impl PartialEq for ControlPlaneEncryption
impl PartialEq for ControlPlaneEncryption
impl StructuralPartialEq for ControlPlaneEncryption
Auto Trait Implementations§
impl Freeze for ControlPlaneEncryption
impl RefUnwindSafe for ControlPlaneEncryption
impl Send for ControlPlaneEncryption
impl Sync for ControlPlaneEncryption
impl Unpin for ControlPlaneEncryption
impl UnsafeUnpin for ControlPlaneEncryption
impl UnwindSafe for ControlPlaneEncryption
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