#[non_exhaustive]pub enum CryptoKeyVersionState {
Unspecified,
PendingGeneration,
Enabled,
Disabled,
Destroyed,
DestroyScheduled,
PendingImport,
ImportFailed,
GenerationFailed,
PendingExternalDestruction,
ExternalDestructionFailed,
UnknownValue(UnknownValue),
}Expand description
The state of a CryptoKeyVersion, indicating if it can be used.
§Working with unknown values
This enum is defined as #[non_exhaustive] because Google Cloud may add
additional enum variants at any time. Adding new variants is not considered
a breaking change. Applications should write their code in anticipation of:
- New values appearing in future releases of the client library, and
- New values received dynamically, without application changes.
Please consult the Working with enums section in the user guide for some guidelines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unspecified
Not specified.
PendingGeneration
This version is still being generated. It may not be used, enabled, disabled, or destroyed yet. Cloud KMS will automatically mark this version ENABLED as soon as the version is ready.
Enabled
This version may be used for cryptographic operations.
Disabled
This version may not be used, but the key material is still available, and the version can be placed back into the ENABLED state.
Destroyed
The key material of this version is destroyed and no longer stored. This version may only become ENABLED again if this version is reimport_eligible and the original key material is reimported with a call to KeyManagementService.ImportCryptoKeyVersion.
DestroyScheduled
This version is scheduled for destruction, and will be destroyed soon. Call RestoreCryptoKeyVersion to put it back into the DISABLED state.
PendingImport
This version is still being imported. It may not be used, enabled, disabled, or destroyed yet. Cloud KMS will automatically mark this version ENABLED as soon as the version is ready.
ImportFailed
This version was not imported successfully. It may not be used, enabled, disabled, or destroyed. The submitted key material has been discarded. Additional details can be found in CryptoKeyVersion.import_failure_reason.
GenerationFailed
This version was not generated successfully. It may not be used, enabled, disabled, or destroyed. Additional details can be found in CryptoKeyVersion.generation_failure_reason.
PendingExternalDestruction
This version was destroyed, and it may not be used or enabled again. Cloud KMS is waiting for the corresponding key material residing in an external key manager to be destroyed.
ExternalDestructionFailed
This version was destroyed, and it may not be used or enabled again. However, Cloud KMS could not confirm that the corresponding key material residing in an external key manager was destroyed. Additional details can be found in CryptoKeyVersion.external_destruction_failure_reason.
UnknownValue(UnknownValue)
If set, the enum was initialized with an unknown value.
Applications can examine the value using CryptoKeyVersionState::value or CryptoKeyVersionState::name.
Implementations§
Trait Implementations§
Source§impl Clone for CryptoKeyVersionState
impl Clone for CryptoKeyVersionState
Source§fn clone(&self) -> CryptoKeyVersionState
fn clone(&self) -> CryptoKeyVersionState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CryptoKeyVersionState
impl Debug for CryptoKeyVersionState
Source§impl Default for CryptoKeyVersionState
impl Default for CryptoKeyVersionState
Source§impl<'de> Deserialize<'de> for CryptoKeyVersionState
impl<'de> Deserialize<'de> for CryptoKeyVersionState
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl Display for CryptoKeyVersionState
impl Display for CryptoKeyVersionState
Source§impl From<&str> for CryptoKeyVersionState
impl From<&str> for CryptoKeyVersionState
Source§impl From<i32> for CryptoKeyVersionState
impl From<i32> for CryptoKeyVersionState
Source§impl PartialEq for CryptoKeyVersionState
impl PartialEq for CryptoKeyVersionState
Source§impl Serialize for CryptoKeyVersionState
impl Serialize for CryptoKeyVersionState
impl StructuralPartialEq for CryptoKeyVersionState
Auto Trait Implementations§
impl Freeze for CryptoKeyVersionState
impl RefUnwindSafe for CryptoKeyVersionState
impl Send for CryptoKeyVersionState
impl Sync for CryptoKeyVersionState
impl Unpin for CryptoKeyVersionState
impl UnwindSafe for CryptoKeyVersionState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.