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

# EnvironmentObject

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

A deployment environment with its protection rules: who must approve, how long a deployment waits, and which refs may deploy (W36; ADR-0701, ADR-0208).

## Properties

| Name | Type | JSON name | Description |
|---|---|---|---|
| `AllowedRefs` | `List<string>?` | `allowedRefs` | Git refs that may deploy to this environment; empty means any ref. |
| `Annotations` | `Models.Delivery.Environment_annotations?` | `annotations` | At most 256 KiB in all; never policy input. |
| `Apps` | `List<string>?` | `apps` | The apps that deploy to this environment. |
| `CreateTime` | `DateTimeOffset?` | `createTime` | The createTime property |
| `DeleteTime` | `DateTimeOffset?` | `deleteTime` | The deleteTime property |
| `Description` | `string?` | `description` | Human-readable description. |
| `DisplayName` | `string?` | `displayName` | Up to 63 characters. |
| `Etag` | `string?` | `etag` | "{generation}"; send it back in If-Match. |
| `Generation` | `long?` | `generation` | The generation of the spec; it rises with every change. |
| `IsProduction` | `bool?` | `isProduction` | Whether this is a production environment. Set at creation. |
| `Labels` | `Models.Delivery.Environment_labels?` | `labels` | At most 64. |
| `Location` | `string?` | `location` | The location the environment lives in. |
| `Name` | `string?` | `name` | The resource name, for example projects/p/locations/l/instances/i. |
| `ObservedGeneration` | `long?` | `observedGeneration` | The generation the platform last acted on. |
| `Overlay` | `Models.Delivery.EnvironmentOverlay?` | `overlay` | Variables and secret references laid over each app's own. |
| `ProtectionEnforcement` | `string?` | `protectionEnforcement` | Where the protection rules are enforced: `release-promotion` (W98 part 3; it was `admission-check-only` before): allowedRefs,requiredChecks, waitTimerSeconds and requiredApprovers (an ADR-0102 plan with passkey approvals) apply when a release is promoted intothe environment and again before its deploy. Other deploy paths (an app's own deployRevision, previews) do not read them. |
| `PurgeTime` | `DateTimeOffset?` | `purgeTime` | The purgeTime property |
| `Reconciling` | `bool?` | `reconciling` | True while the platform works toward the spec. |
| `RequiredApprovers` | `int?` | `requiredApprovers` | Approvals a deployment needs before it starts: 0 to 2. |
| `RequiredChecks` | `List<string>?` | `requiredChecks` | Checks that must have passed on the commit. Set at creation. |
| `State` | `Models.Delivery.EnvironmentState?` | `state` | Lifecycle states of an environment. |
| `Uid` | `string?` | `uid` | UUIDv7, never reused. |
| `UpdateTime` | `DateTimeOffset?` | `updateTime` | The updateTime property |
| `WaitTimerSeconds` | `int?` | `waitTimerSeconds` | Seconds a deployment waits before it starts; 0 or more. |
