Enum google_api_proto::google::cloud::kms::v1::ekm_connection::KeyManagementMode
source · #[repr(i32)]pub enum KeyManagementMode {
Unspecified = 0,
Manual = 1,
CloudKms = 2,
}
Expand description
[KeyManagementMode][google.cloud.kms.v1.EkmConnection.KeyManagementMode] describes who can perform control plane cryptographic operations using this [EkmConnection][google.cloud.kms.v1.EkmConnection].
Variants§
Unspecified = 0
Not specified.
Manual = 1
EKM-side key management operations on [CryptoKeys][google.cloud.kms.v1.CryptoKey] created with this [EkmConnection][google.cloud.kms.v1.EkmConnection] must be initiated from the EKM directly and cannot be performed from Cloud KMS. This means that:
- When creating a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] associated with this [EkmConnection][google.cloud.kms.v1.EkmConnection], the caller must supply the key path of pre-existing external key material that will be linked to the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
- Destruction of external key material cannot be requested via the Cloud KMS API and must be performed directly in the EKM.
- Automatic rotation of key material is not supported.
CloudKms = 2
All [CryptoKeys][google.cloud.kms.v1.CryptoKey] created with this [EkmConnection][google.cloud.kms.v1.EkmConnection] use EKM-side key management operations initiated from Cloud KMS. This means that:
- When a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] associated with this [EkmConnection][google.cloud.kms.v1.EkmConnection] is created, the EKM automatically generates new key material and a new key path. The caller cannot supply the key path of pre-existing external key material.
- Destruction of external key material associated with this [EkmConnection][google.cloud.kms.v1.EkmConnection] can be requested by calling [DestroyCryptoKeyVersion][EkmService.DestroyCryptoKeyVersion].
- Automatic rotation of key material is supported.
Implementations§
source§impl KeyManagementMode
impl KeyManagementMode
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for KeyManagementMode
impl Clone for KeyManagementMode
source§fn clone(&self) -> KeyManagementMode
fn clone(&self) -> KeyManagementMode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for KeyManagementMode
impl Debug for KeyManagementMode
source§impl Default for KeyManagementMode
impl Default for KeyManagementMode
source§fn default() -> KeyManagementMode
fn default() -> KeyManagementMode
source§impl From<KeyManagementMode> for i32
impl From<KeyManagementMode> for i32
source§fn from(value: KeyManagementMode) -> i32
fn from(value: KeyManagementMode) -> i32
source§impl Hash for KeyManagementMode
impl Hash for KeyManagementMode
source§impl Ord for KeyManagementMode
impl Ord for KeyManagementMode
source§fn cmp(&self, other: &KeyManagementMode) -> Ordering
fn cmp(&self, other: &KeyManagementMode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for KeyManagementMode
impl PartialEq for KeyManagementMode
source§fn eq(&self, other: &KeyManagementMode) -> bool
fn eq(&self, other: &KeyManagementMode) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for KeyManagementMode
impl PartialOrd for KeyManagementMode
source§fn partial_cmp(&self, other: &KeyManagementMode) -> Option<Ordering>
fn partial_cmp(&self, other: &KeyManagementMode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for KeyManagementMode
impl TryFrom<i32> for KeyManagementMode
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<KeyManagementMode, UnknownEnumValue>
fn try_from(value: i32) -> Result<KeyManagementMode, UnknownEnumValue>
impl Copy for KeyManagementMode
impl Eq for KeyManagementMode
impl StructuralPartialEq for KeyManagementMode
Auto Trait Implementations§
impl Freeze for KeyManagementMode
impl RefUnwindSafe for KeyManagementMode
impl Send for KeyManagementMode
impl Sync for KeyManagementMode
impl Unpin for KeyManagementMode
impl UnwindSafe for KeyManagementMode
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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