SDK reference / Models / Secrets
SecretVersion
Kind: class
Namespace: Egulu.Sdk.Models.Secrets
Metadata of one immutable encrypted secret version (ADR-0208). Never carries secret plaintext.
Properties
| Name | Type | JSON name | Description |
|---|---|---|---|
Crc32c | long? | crc32c | Castagnoli CRC32C checksum (0..4294967295) of the unencrypted payload bytes. |
CreateTime | DateTimeOffset? | createTime | The createTime property |
DestroyTime | DateTimeOffset? | destroyTime | The destroyTime property |
Etag | string? | etag | `"{generation}"`; send back in `If-Match`. |
KekVersion | int? | kekVersion | OpenBao Transit KEK version that wrapped this version's DEK. |
Name | string? | name | Resource name: `projects/{project}/locations/{location}/secrets/{secret}/versions/{version}`. |
PinnedRef | Models.Secrets.SecretVersionRef? | pinnedRef | Canonical pinned reference for this immutable version. |
SizeBytes | int? | sizeBytes | Unencrypted payload size in bytes (at most 65536 = 64 KiB). |
State | Models.Secrets.SecretVersionState? | state | Immutable secret version lifecycle states (ADR-0208, ADR-1346). `:destroyVersion` moves a version to `DESTROY_SCHEDULED` and24 hours later the platform destroys it (`DESTROYED`, with a signed deletion receipt); `:cancelDestroy` inside the delay makes it `DISABLED`. |
Uid | string? | uid | UUIDv7 bound into AES-256-GCM AAD `(projectUid, versionUid)`. |
Version | string? | version | Monotonic integer version string (`"1"`, `"2"`, …). |