SDK reference / Models / DeployPolicy

DeployPolicy

Kind: class

Namespace: Egulu.Sdk.Models.DeployPolicy

A project's deploy policy in a location (projects/{p}/locations/{l}/deployPolicies/default; default is the only ID): the rules every deployment to the project's containerapps, web apps and jobs there must satisfy. A project has one; each write makes a new version that is kept. Without one nothing is checked.

Properties

NameTypeJSON nameDescription
EnforceOnRollbackbool?enforceOnRollbackWhether a rollback is checked like a new deployment. False by default: an enforced policy never blocks a rollback to an earlier revision unless the owner asks it to.
Etagstring?etag"{version}"; send it back in If-Match so two writers cannot overwrite each other.
Namestring?nameThe name property
Reasonstring?reasonWhy this version was written (required on a write; 10 to 500 characters). It is kept with the version and in the audit log.
RulesList<Models.DeployPolicy.DeployRule>?rulesAt most 6 rules, one of each kind.
TargetsList<string>?targetsThe resource kinds the policy governs: `container-app`, `web-app`, `job`. All three when omitted or empty.
UpdateTimeDateTimeOffset?updateTimeThe updateTime property
UpdatedBystring?updatedByThe updatedBy property
Versionint?versionThe version, counted from 1 by the platform; 0 while the project has never set a policy.