SDK reference / Models

Models.DeployPolicy namespace

Types

TypeKindDescription
DeployAdmissionclassThe record of one deployment the gate decided: admitted, refused, would have been refused (a dry-run rule failed and the deployment wenton), overridden with a reason, or a rollback. The log is append-only.
DeployAdmission_outcomeenum
DeployOverrideclassA break-glass override: for one resource and one image digest it admits a deployment although an enforced rule fails, until it expires.It needs a reason (10 to 500 characters), lasts at most 24 hours and is recorded in the audit log and on every deployment it admits.
DeployOverrideCreateclassA break-glass override: for one resource and one image digest it admits a deployment although an enforced rule fails, until it expires.It needs a reason (10 to 500 characters), lasts at most 24 hours and is recorded in the audit log and on every deployment it admits.
DeployPolicyclassA 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.
DeployPolicyEvaluateRequestclassAsks what the policy would say about an image, without deploying or recording anything.
DeployPolicyEvaluateResponseclassWhat the policy says.
DeployPolicyEvaluateResponse_outcomeenum
DeployPolicyVersionclassOne kept version of the policy; versions never change.
DeployRuleclassOne rule of a deploy policy. Kinds: `registry` (images only from the project's own registry or the hosts in `values`), `digest` (the image isreferenced by digest), `platform-built` (a verified provenance attestation from the platform's builder; `values` may name builder IDs),`signed` (a verified signature from a key ID or identity in `values`), `no-critical-vulnerabilities` (the platform's stored scan record hasno finding of the blocked `severities`, critical by default) and `production-approver` (a deployment to a production environment is approvedby a person in `values` other than the one who asks).
DeployRule_modeenum`enforce` refuses a deployment that breaks the rule; `dry-run` admits it and records what it would have refused.
DeployViolationclassOne rule's failure, in the rule's words.
DeployViolation_modeenumThe mode the rule was in.