SDK reference / Models / Delivery

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

NameTypeJSON nameDescription
AnnotationsModels.Delivery.Preview_annotations?annotationsAt most 256 KiB in all; never policy input.
AppNamestring?appNameThe app the preview is a revision of.
ApprovedHeadShastring?approvedHeadShaThe head commit a maintainer approved, for a fork. In an update it must equal the current head, or the update is refused.
BaseBranchstring?baseBranchThe base branch; `main` when absent.
CreateTimeDateTimeOffset?createTimeThe createTime property
DatabaseBranchCreatedbool?databaseBranchCreatedThe databaseBranchCreated property
DatabaseBranchRequestedbool?databaseBranchRequestedWhether a database branch is wanted for the preview. Set at creation.
DeleteTimeDateTimeOffset?deleteTimeThe deleteTime property
DisplayNamestring?displayNameUp to 63 characters.
DnsHoststring?dnsHostThe dnsHost property
EnvOverlayModels.Delivery.Preview_envOverlay?envOverlayThe variables laid over the app's own.
Etagstring?etag"{generation}"; send it back in If-Match.
ExpiresAtDateTimeOffset?expiresAtWhen an idle preview expires.
Generationlong?generationThe generation property
HeadBranchstring?headBranchThe head branch; `pr-{prNumber}` when absent.
HeadShastring?headShaThe head commit. In a request it is a claim; the git provider's answer wins.
HostLabelstring?hostLabelThe host label of the preview's URL; the app's name when absent.
ImageDigeststring?imageDigestThe imageDigest property
IsForkbool?isForkWhether the pull request comes from a fork. The git provider decides; a request cannot set it.
IsPrClosedbool?isPrClosedThe isPrClosed property
LabelsList<string>?labelsThe 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.
LastActiveTimeDateTimeOffset?lastActiveTimeThe lastActiveTime property
Locationstring?locationThe location the preview runs in.
Namestring?nameThe resource name: projects/{project}/locations/{location}/previews/{preview}.
ObservedGenerationlong?observedGenerationThe observedGeneration property
PrNumberint?prNumberThe pull request's number; 1 or more.
PreviewUrlstring?previewUrlWhere the preview answers, once it is live.
PurgeTimeDateTimeOffset?purgeTimeThe purgeTime property
Reconcilingbool?reconcilingTrue while the platform works toward the spec.
RevisionTagstring?revisionTagThe revisionTag property
SecretsOverlayModels.Delivery.Preview_secretsOverlay?secretsOverlayThe secret references laid over the app's own, by variable name; never a secret's value.
ShareLinksList<Models.Delivery.PreviewShareLink>?shareLinksThe preview's share links, without their tokens.
SourceRepositorystring?sourceRepositoryThe repository of the pull request; the app's name when absent.
StateModels.Delivery.PreviewState?stateLifecycle states of a pull-request preview (ADR-0701).
TrafficPercentint?trafficPercentThe share of production traffic the preview's revision takes: 0.
Uidstring?uidUUIDv7, never reused.
UpdateTimeDateTimeOffset?updateTimeThe updateTime property