SDK reference / Models / Kms
CryptoKey
Kind: class
Namespace: Egulu.Sdk.Models.Kms
A symmetric key for encryption and decryption (AES-256-GCM in OpenBao Transit).
Properties
| Name | Type | JSON name | Description |
|---|---|---|---|
CreateTime | DateTimeOffset? | createTime | The createTime property |
DeleteTime | DateTimeOffset? | deleteTime | When the key was deleted. |
ExpireTime | DateTimeOffset? | expireTime | When the key expires (key vault, ADR-0293). From that moment `:encrypt` and `:decrypt` refuse with `failed-precondition` naming the date;the owner extends the expiry with `updateMask=expireTime` or rotates to a new key. The platform warns at 30, 7 and 1 days and at expiry(`kms.crypto-key.expiring.v1`). Unset means the key does not expire. |
ExpiryState | string? | expiryState | `NONE`, `OK`, `EXPIRING` (within 30 days) or `EXPIRED`. |
LastRotationTime | DateTimeOffset? | lastRotationTime | When the newest version was created (the start of the current rotation period). |
Name | string? | name | projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}. |
NextRotationTime | DateTimeOffset? | nextRotationTime | When the key is due for a new version: `lastRotationTime` plus the period; unset without a schedule. |
Primary | string? | primary | The version new ciphertexts are made with (the newest enabled one). |
PurgeProtection | bool? | purgeProtection | Purge protection: while on, even an owner cannot make the key's material unreadable early. Destroying a version is scheduled for theretention period (30 days) instead of 24 hours, and a deleted key cannot be purged before `purgeTime`. It can be switched on, never off. |
PurgeTime | DateTimeOffset? | purgeTime | When a deleted key's versions are scheduled for destruction (30 days after the deletion). |
Purpose | Models.Kms.CryptoKey_purpose? | purpose | ENCRYPT_DECRYPT, the one purpose for now. |
RotationPeriodDays | int? | rotationPeriodDays | Rotation schedule: how often a new version should be made (1..3650 days). The platform reminds, it does not rotate by itself: once`nextRotationTime` passes, `rotationState` becomes `DUE` and one `kms.crypto-key.rotation-due.v1` event is written; creating a versionstarts the next period. Unset means no schedule. |
RotationState | string? | rotationState | `NONE` (no schedule), `OK` or `DUE`. |
State | string? | state | `ACTIVE`, or `DELETED` (soft deleted: recoverable with `:undelete` until `purgeTime`; it encrypts and decrypts nothing meanwhile). |
Uid | string? | uid | The uid property |
UpdateTime | DateTimeOffset? | updateTime | The updateTime property |