SDK reference / Models / Governance
GovernanceRule
Kind: class
Namespace: Egulu.Sdk.Models.Governance
A rule.
Properties
| Name | Type | JSON name | Description |
|---|---|---|---|
CreateTime | DateTimeOffset? | createTime | The createTime property |
CreatedBy | string? | createdBy | The createdBy property |
Description | string? | description | Up to 300 characters: what the rule is for. Shown in the refusal. |
DisplayName | string? | displayName | 1 to 63 characters. |
Etag | string? | etag | The etag property |
Inherited | bool? | inherited | True when the rule is the organisation's, shown in this project. Only an owner of the organisation changes it. |
Kind | Models.Governance.GovernanceRule_kind? | kind | POLICY (a forbid statement) or LABEL (required labels). Fixed when the rule is made. |
Mode | Models.Governance.GovernanceRule_mode? | mode | AUDIT: 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. |
Name | string? | name | projects/{project}/locations/{location}/governanceRules/{rule}. |
Scope | Models.Governance.GovernanceRule_scope? | scope | PROJECT (this project) or ORGANIZATION (every project of the organisation in this cell; written by an owner). Default PROJECT. Fixed when the rule is made. |
Template | string? | template | The template the rule was made from, when it was (allowed-locations, allowed-machine-sizes, no-public-buckets, required-labels). |
Text | string? | text | For 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. |
UpdateTime | DateTimeOffset? | updateTime | The updateTime property |
UpdatedBy | string? | updatedBy | The updatedBy property |