CryptoKeyVersionResponse

data class CryptoKeyVersionResponse(val algorithm: String, val attestation: KeyOperationAttestationResponse, val createTime: String, val destroyEventTime: String, val destroyTime: String, val externalDestructionFailureReason: String, val externalProtectionLevelOptions: ExternalProtectionLevelOptionsResponse, val generateTime: String, val generationFailureReason: String, val importFailureReason: String, val importJob: String, val importTime: String, val name: String, val protectionLevel: String, val reimportEligible: Boolean, val state: String)

A CryptoKeyVersion represents an individual cryptographic key, and the associated key material. An ENABLED version can be used for cryptographic operations. For security reasons, the raw cryptographic key material represented by a CryptoKeyVersion can never be viewed or exported. It can only be used to encrypt, decrypt, or sign data when an authorized user or application invokes Cloud KMS.

Constructors

Link copied to clipboard
fun CryptoKeyVersionResponse(algorithm: String, attestation: KeyOperationAttestationResponse, createTime: String, destroyEventTime: String, destroyTime: String, externalDestructionFailureReason: String, externalProtectionLevelOptions: ExternalProtectionLevelOptionsResponse, generateTime: String, generationFailureReason: String, importFailureReason: String, importJob: String, importTime: String, name: String, protectionLevel: String, reimportEligible: Boolean, state: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The CryptoKeyVersionAlgorithm that this CryptoKeyVersion supports.

Link copied to clipboard

Statement that was generated and signed by the HSM at key creation time. Use this statement to verify attributes of the key as stored on the HSM, independently of Google. Only provided for key versions with protection_level HSM.

Link copied to clipboard

The time at which this CryptoKeyVersion was created.

Link copied to clipboard

The time this CryptoKeyVersion's key material was destroyed. Only present if state is DESTROYED.

Link copied to clipboard

The time this CryptoKeyVersion's key material is scheduled for destruction. Only present if state is DESTROY_SCHEDULED.

Link copied to clipboard

The root cause of the most recent external destruction failure. Only present if state is EXTERNAL_DESTRUCTION_FAILED.

Link copied to clipboard

ExternalProtectionLevelOptions stores a group of additional fields for configuring a CryptoKeyVersion that are specific to the EXTERNAL protection level and EXTERNAL_VPC protection levels.

Link copied to clipboard

The time this CryptoKeyVersion's key material was generated.

Link copied to clipboard

The root cause of the most recent generation failure. Only present if state is GENERATION_FAILED.

Link copied to clipboard

The root cause of the most recent import failure. Only present if state is IMPORT_FAILED.

Link copied to clipboard

The name of the ImportJob used in the most recent import of this CryptoKeyVersion. Only present if the underlying key material was imported.

Link copied to clipboard

The time at which this CryptoKeyVersion's key material was most recently imported.

Link copied to clipboard

The resource name for this CryptoKeyVersion in the format projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*.

Link copied to clipboard

The ProtectionLevel describing how crypto operations are performed with this CryptoKeyVersion.

Link copied to clipboard

Whether or not this key version is eligible for reimport, by being specified as a target in ImportCryptoKeyVersionRequest.crypto_key_version.

Link copied to clipboard

The current state of the CryptoKeyVersion. ////*/