CryptoKeyVersionResponse class

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

CryptoKeyVersionResponse({required Input<String> algorithm, required Input<KeyOperationAttestationResponse> attestation, required Input<String> createTime, required Input<String> destroyEventTime, required Input<String> destroyTime, required Input<String> externalDestructionFailureReason, required Input<ExternalProtectionLevelOptionsResponse> externalProtectionLevelOptions, required Input<String> generateTime, required Input<String> generationFailureReason, required Input<String> importFailureReason, required Input<String> importJob, required Input<String> importTime, required Input<String> name, required Input<String> protectionLevel, required Input<bool> reimportEligible, required Input<String> state})
Creates a new CryptoKeyVersionResponse. algorithm The CryptoKeyVersionAlgorithm that this CryptoKeyVersion supports. attestation 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. createTime The time at which this CryptoKeyVersion was created. destroyEventTime The time this CryptoKeyVersion's key material was destroyed. Only present if state is DESTROYED. destroyTime The time this CryptoKeyVersion's key material is scheduled for destruction. Only present if state is DESTROY_SCHEDULED. externalDestructionFailureReason The root cause of the most recent external destruction failure. Only present if state is EXTERNAL_DESTRUCTION_FAILED. externalProtectionLevelOptions ExternalProtectionLevelOptions stores a group of additional fields for configuring a CryptoKeyVersion that are specific to the EXTERNAL protection level and EXTERNAL_VPC protection levels. generateTime The time this CryptoKeyVersion's key material was generated. generationFailureReason The root cause of the most recent generation failure. Only present if state is GENERATION_FAILED. importFailureReason The root cause of the most recent import failure. Only present if state is IMPORT_FAILED. importJob The name of the ImportJob used in the most recent import of this CryptoKeyVersion. Only present if the underlying key material was imported. importTime The time at which this CryptoKeyVersion's key material was most recently imported. name The resource name for this CryptoKeyVersion in the format projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*. protectionLevel The ProtectionLevel describing how crypto operations are performed with this CryptoKeyVersion. reimportEligible Whether or not this key version is eligible for reimport, by being specified as a target in ImportCryptoKeyVersionRequest.crypto_key_version. state The current state of the CryptoKeyVersion.
const
CryptoKeyVersionResponse.fromMap(Map<String, dynamic> map)
factory

Properties

algorithm → Input<String>
The CryptoKeyVersionAlgorithm that this CryptoKeyVersion supports.
final
attestation → Input<KeyOperationAttestationResponse>
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.
final
createTime → Input<String>
The time at which this CryptoKeyVersion was created.
final
destroyEventTime → Input<String>
The time this CryptoKeyVersion's key material was destroyed. Only present if state is DESTROYED.
final
destroyTime → Input<String>
The time this CryptoKeyVersion's key material is scheduled for destruction. Only present if state is DESTROY_SCHEDULED.
final
externalDestructionFailureReason → Input<String>
The root cause of the most recent external destruction failure. Only present if state is EXTERNAL_DESTRUCTION_FAILED.
final
externalProtectionLevelOptions → Input<ExternalProtectionLevelOptionsResponse>
ExternalProtectionLevelOptions stores a group of additional fields for configuring a CryptoKeyVersion that are specific to the EXTERNAL protection level and EXTERNAL_VPC protection levels.
final
generateTime → Input<String>
The time this CryptoKeyVersion's key material was generated.
final
generationFailureReason → Input<String>
The root cause of the most recent generation failure. Only present if state is GENERATION_FAILED.
final
hashCode → int
The hash code for this object.
no setterinherited
importFailureReason → Input<String>
The root cause of the most recent import failure. Only present if state is IMPORT_FAILED.
final
importJob → Input<String>
The name of the ImportJob used in the most recent import of this CryptoKeyVersion. Only present if the underlying key material was imported.
final
importTime → Input<String>
The time at which this CryptoKeyVersion's key material was most recently imported.
final
name → Input<String>
The resource name for this CryptoKeyVersion in the format projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*.
final
protectionLevel → Input<String>
The ProtectionLevel describing how crypto operations are performed with this CryptoKeyVersion.
final
reimportEligible → Input<bool>
Whether or not this key version is eligible for reimport, by being specified as a target in ImportCryptoKeyVersionRequest.crypto_key_version.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → Input<String>
The current state of the CryptoKeyVersion.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited