Enum CryptoKeyVersion.CryptoKeyVersionState (2.5.3)

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

NameDescription
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;

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_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

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

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

NameDescription
getDescriptorForType()
getNumber()
getValueDescriptor()