SDK reference / Models / Governance

GovernanceRule

Kind: class

Namespace: Egulu.Sdk.Models.Governance

A rule.

Properties

NameTypeJSON nameDescription
CreateTimeDateTimeOffset?createTimeThe createTime property
CreatedBystring?createdByThe createdBy property
Descriptionstring?descriptionUp to 300 characters: what the rule is for. Shown in the refusal.
DisplayNamestring?displayName1 to 63 characters.
Etagstring?etagThe etag property
Inheritedbool?inheritedTrue when the rule is the organisation's, shown in this project. Only an owner of the organisation changes it.
KindModels.Governance.GovernanceRule_kind?kindPOLICY (a forbid statement) or LABEL (required labels). Fixed when the rule is made.
ModeModels.Governance.GovernanceRule_mode?modeAUDIT: a would-be refusal is recorded and the request goes on. ENFORCE: the request is refused. A new rule is always AUDIT; use :enforce to change it.
Namestring?nameprojects/{project}/locations/{location}/governanceRules/{rule}.
ScopeModels.Governance.GovernanceRule_scope?scopePROJECT (this project) or ORGANIZATION (every project of the organisation in this cell; written by an owner). Default PROJECT. Fixed when the rule is made.
Templatestring?templateThe template the rule was made from, when it was (allowed-locations, allowed-machine-sizes, no-public-buckets, required-labels).
Textstring?textFor POLICY: Cedar forbid statements (at most 16 KiB, 20 statements). For LABEL: JSON {"types":["instances"],"labels":[{"key":"owner","required":true,"pattern":"^[a-z0-9-]+$","allowed":["a","b"]}]}. A text that does not validate is refused with the problems in place.
UpdateTimeDateTimeOffset?updateTimeThe updateTime property
UpdatedBystring?updatedByThe updatedBy property