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

# Preview

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

A private preview of a pull request: one revision of an app at 0 % of production traffic, reachable by project members and by share links (W36; ADR-0701, ADR-0605, ADR-1102).

## Properties

| Name | Type | JSON name | Description |
|---|---|---|---|
| `Annotations` | `Models.Delivery.Preview_annotations?` | `annotations` | At most 256 KiB in all; never policy input. |
| `AppName` | `string?` | `appName` | The app the preview is a revision of. |
| `ApprovedHeadSha` | `string?` | `approvedHeadSha` | The head commit a maintainer approved, for a fork. In an update it must equal the current head, or the update is refused. |
| `BaseBranch` | `string?` | `baseBranch` | The base branch; `main` when absent. |
| `CreateTime` | `DateTimeOffset?` | `createTime` | The createTime property |
| `DatabaseBranchCreated` | `bool?` | `databaseBranchCreated` | The databaseBranchCreated property |
| `DatabaseBranchRequested` | `bool?` | `databaseBranchRequested` | Whether a database branch is wanted for the preview. Set at creation. |
| `DeleteTime` | `DateTimeOffset?` | `deleteTime` | The deleteTime property |
| `DisplayName` | `string?` | `displayName` | Up to 63 characters. |
| `DnsHost` | `string?` | `dnsHost` | The dnsHost property |
| `EnvOverlay` | `Models.Delivery.Preview_envOverlay?` | `envOverlay` | The variables laid over the app's own. |
| `Etag` | `string?` | `etag` | "{generation}"; send it back in If-Match. |
| `ExpiresAt` | `DateTimeOffset?` | `expiresAt` | When an idle preview expires. |
| `Generation` | `long?` | `generation` | The generation property |
| `HeadBranch` | `string?` | `headBranch` | The head branch; `pr-{prNumber}` when absent. |
| `HeadSha` | `string?` | `headSha` | The head commit. In a request it is a claim; the git provider's answer wins. |
| `HostLabel` | `string?` | `hostLabel` | The host label of the preview's URL; the app's name when absent. |
| `ImageDigest` | `string?` | `imageDigest` | The imageDigest property |
| `IsFork` | `bool?` | `isFork` | Whether the pull request comes from a fork. The git provider decides; a request cannot set it. |
| `IsPrClosed` | `bool?` | `isPrClosed` | The isPrClosed property |
| `Labels` | `List<string>?` | `labels` | The pull request's labels: an array of names, not a map. The label `ok-to-preview` is a maintainer's approval of a fork's preview. |
| `LastActiveTime` | `DateTimeOffset?` | `lastActiveTime` | The lastActiveTime property |
| `Location` | `string?` | `location` | The location the preview runs in. |
| `Name` | `string?` | `name` | The resource name: projects/{project}/locations/{location}/previews/{preview}. |
| `ObservedGeneration` | `long?` | `observedGeneration` | The observedGeneration property |
| `PrNumber` | `int?` | `prNumber` | The pull request's number; 1 or more. |
| `PreviewUrl` | `string?` | `previewUrl` | Where the preview answers, once it is live. |
| `PurgeTime` | `DateTimeOffset?` | `purgeTime` | The purgeTime property |
| `Reconciling` | `bool?` | `reconciling` | True while the platform works toward the spec. |
| `RevisionTag` | `string?` | `revisionTag` | The revisionTag property |
| `SecretsOverlay` | `Models.Delivery.Preview_secretsOverlay?` | `secretsOverlay` | The secret references laid over the app's own, by variable name; never a secret's value. |
| `ShareLinks` | `List<Models.Delivery.PreviewShareLink>?` | `shareLinks` | The preview's share links, without their tokens. |
| `SourceRepository` | `string?` | `sourceRepository` | The repository of the pull request; the app's name when absent. |
| `State` | `Models.Delivery.PreviewState?` | `state` | Lifecycle states of a pull-request preview (ADR-0701). |
| `TrafficPercent` | `int?` | `trafficPercent` | The share of production traffic the preview's revision takes: 0. |
| `Uid` | `string?` | `uid` | UUIDv7, never reused. |
| `UpdateTime` | `DateTimeOffset?` | `updateTime` | The updateTime property |
