Enum CryptoKeyVersion.CryptoKeyVersionState (2.58.0)

public enum CryptoKeyVersion.CryptoKeyVersionState extends Enum<CryptoKeyVersion.CryptoKeyVersionState> implements ProtocolMessageEnum

The state of a CryptoKeyVersion, indicating if it can be used.

Protobuf enum google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState

Implements

ProtocolMessageEnum

Static Fields

Name Description
CRYPTO_KEY_VERSION_STATE_UNSPECIFIED

Not specified.

CRYPTO_KEY_VERSION_STATE_UNSPECIFIED = 0;

CRYPTO_KEY_VERSION_STATE_UNSPECIFIED_VALUE

Not specified.

CRYPTO_KEY_VERSION_STATE_UNSPECIFIED = 0;

DESTROYED

This version is destroyed, and the key material is 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.

DESTROYED = 3;

DESTROYED_VALUE

This version is destroyed, and the key material is 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.

DESTROYED = 3;

DESTROY_SCHEDULED

This version is scheduled for destruction, and will be destroyed soon. Call RestoreCryptoKeyVersion to put it back into the DISABLED state.

DESTROY_SCHEDULED = 4;

DESTROY_SCHEDULED_VALUE

This version is scheduled for destruction, and will be destroyed soon. Call RestoreCryptoKeyVersion to put it back into the DISABLED state.

DESTROY_SCHEDULED = 4;

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.

DISABLED = 2;

DISABLED_VALUE

This version may not be used, but the key material is still available, and the version can be placed back into the ENABLED state.

DISABLED = 2;

ENABLED

This version may be used for cryptographic operations.

ENABLED = 1;

ENABLED_VALUE

This version may be used for cryptographic operations.

ENABLED = 1;

EXTERNAL_DESTRUCTION_FAILED

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.

EXTERNAL_DESTRUCTION_FAILED = 10;

EXTERNAL_DESTRUCTION_FAILED_VALUE

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.

EXTERNAL_DESTRUCTION_FAILED = 10;

GENERATION_FAILED

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.

GENERATION_FAILED = 8;

GENERATION_FAILED_VALUE

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.

GENERATION_FAILED = 8;

IMPORT_FAILED

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.

IMPORT_FAILED = 7;

IMPORT_FAILED_VALUE

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.

IMPORT_FAILED = 7;

PENDING_EXTERNAL_DESTRUCTION

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.

PENDING_EXTERNAL_DESTRUCTION = 9;

PENDING_EXTERNAL_DESTRUCTION_VALUE

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.

PENDING_EXTERNAL_DESTRUCTION = 9;

PENDING_GENERATION

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.

PENDING_GENERATION = 5;

PENDING_GENERATION_VALUE

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.

PENDING_GENERATION = 5;

PENDING_IMPORT

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.

PENDING_IMPORT = 6;

PENDING_IMPORT_VALUE

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.

PENDING_IMPORT = 6;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()