GetCryptoKeyVersionResult constructor
- required String algorithm,
- required KeyOperationAttestationResponse attestation,
- required String createTime,
- required String destroyEventTime,
- required String destroyTime,
- required String externalDestructionFailureReason,
- required ExternalProtectionLevelOptionsResponse externalProtectionLevelOptions,
- required String generateTime,
- required String generationFailureReason,
- required String importFailureReason,
- required String importJob,
- required String importTime,
- required String name,
- required String protectionLevel,
- required bool reimportEligible,
- required String state,
Creates a new GetCryptoKeyVersionResult.
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.
Implementation
const GetCryptoKeyVersionResult({
required this.algorithm,
required this.attestation,
required this.createTime,
required this.destroyEventTime,
required this.destroyTime,
required this.externalDestructionFailureReason,
required this.externalProtectionLevelOptions,
required this.generateTime,
required this.generationFailureReason,
required this.importFailureReason,
required this.importJob,
required this.importTime,
required this.name,
required this.protectionLevel,
required this.reimportEligible,
required this.state,
});