[SDK reference](../../index.md) / [Models](../index.md) / [Secrets](index.md)

# Secret

**Kind:** class  
**Namespace:** `Egulu.Sdk.Models.Secrets`  

A customer secret container (ADR-0208). Metadata only: `get` and `list` never carry secret values.Versions hold immutable encrypted payloads wrapped under per-project OpenBao Transit KEKs (`kek-{projectUid}`).

## Properties

| Name | Type | JSON name | Description |
|---|---|---|---|
| `Annotations` | `Models.Secrets.Secret_annotations?` | `annotations` | At most 256 KiB in all; never policy input. |
| `CreateTime` | `DateTimeOffset?` | `createTime` | The createTime property |
| `DeleteTime` | `DateTimeOffset?` | `deleteTime` | The deleteTime property |
| `DisplayName` | `string?` | `displayName` | Up to 63 characters. |
| `Etag` | `string?` | `etag` | "{generation}"; send it back in If-Match. |
| `ExpireTime` | `DateTimeOffset?` | `expireTime` | Optional expiration timestamp after which `:access` refuses all versions of this secret. |
| `ExpiryState` | `string?` | `expiryState` | `NONE`, `OK`, `EXPIRING` (within 30 days of `expireTime`) or `EXPIRED` (`:access` refuses). The platform warns at 30, 7 and 1 days and at expiry (`secrets.secret.expiring.v1`). |
| `KekVersion` | `int?` | `kekVersion` | OpenBao Transit KEK version currently active for this project (`kek-{projectUid}`). |
| `Labels` | `Models.Secrets.Secret_labels?` | `labels` | At most 64. |
| `LastRotationTime` | `DateTimeOffset?` | `lastRotationTime` | When the newest version was added (the start of the current rotation period); unset while the secret has no version. |
| `LatestVersion` | `string?` | `latestVersion` | Highest enabled integer version identifier (`"1"`, `"2"`, …), if any. Metadata only. |
| `Name` | `string?` | `name` | The resource name, for example projects/p/locations/l/instances/i. |
| `NextRotationTime` | `DateTimeOffset?` | `nextRotationTime` | When the secret is due for a new version: `lastRotationTime` plus the period; unset without a schedule. |
| `PurgeProtection` | `bool?` | `purgeProtection` | Purge protection (key vault, ADR-0293): while on, even an owner cannot destroy the secret early. Destroying a version is scheduled forthe soft-delete retention (7 days) instead of 24 hours, and `:purge` is refused until `purgeTime`. It can be switched on, never off. |
| `PurgeTime` | `DateTimeOffset?` | `purgeTime` | The purgeTime property |
| `Reconciling` | `bool?` | `reconciling` | True while the platform works toward the spec. |
| `ReplicationLocations` | `List<string>?` | `replicationLocations` | Optional target locations for replication within residency policy; empty means single-location in the project's home location. |
| `RotationPeriodDays` | `int?` | `rotationPeriodDays` | Rotation schedule: how often a new version should be added (1..3650 days). The platform cannot invent a secret's value, so it reminds:once `nextRotationTime` passes, `rotationState` becomes `DUE` and the platform writes one `secrets.secret.rotation-due.v1` event(an event subscription can route it); adding a version starts the next period. Unset means no schedule. |
| `RotationState` | `string?` | `rotationState` | `NONE` (no schedule), `OK` (not yet due) or `DUE` (`nextRotationTime` has passed). |
| `State` | `Models.Secrets.SecretState?` | `state` | Secret lifecycle states. |
| `Uid` | `string?` | `uid` | UUIDv7, never reused. |
| `UpdateTime` | `DateTimeOffset?` | `updateTime` | The updateTime property |
| `VersionCount` | `int?` | `versionCount` | Total count of versions created under this secret. |
