[SDK reference](../../index.md) / [Models](../index.md)

# Models.Governance namespace

## Types

| Type | Kind | Description |
|---|---|---|
| [AttributeDescription](AttributeDescription.md) | class |  |
| [ComplianceReport](ComplianceReport.md) | class |  |
| [ComplianceRule](ComplianceRule.md) | class |  |
| [ComplianceViolation](ComplianceViolation.md) | class | One existing resource that breaks a rule, and what to change. |
| [GovernanceRule](GovernanceRule.md) | class | A rule. |
| [GovernanceRuleList](GovernanceRuleList.md) | class |  |
| [GovernanceRuleMergePatchUpdate](GovernanceRuleMergePatchUpdate.md) | class | A rule. |
| [GovernanceRuleMergePatchUpdate_descriptionMember1](GovernanceRuleMergePatchUpdate_descriptionMember1.md) | class |  |
| [GovernanceRuleMergePatchUpdate_displayNameMember1](GovernanceRuleMergePatchUpdate_displayNameMember1.md) | class |  |
| [GovernanceRule_kind](GovernanceRule_kind.md) | enum | POLICY (a forbid statement) or LABEL (required labels). Fixed when the rule is made. |
| [GovernanceRule_mode](GovernanceRule_mode.md) | enum | 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. |
| [GovernanceRule_scope](GovernanceRule_scope.md) | enum | 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. |
| [GovernanceSchema](GovernanceSchema.md) | class |  |
| [GovernanceTemplate](GovernanceTemplate.md) | class |  |
| [GovernanceTemplateList](GovernanceTemplateList.md) | class |  |
| [GovernanceTemplate_kind](GovernanceTemplate_kind.md) | enum |  |
| [GovernanceTemplate_parameters](GovernanceTemplate_parameters.md) | class | The parameters to fill in, each with a hint. |
| [GraphField](GraphField.md) | class |  |
| [GraphLanguage](GraphLanguage.md) | class |  |
| [GraphQueryRequest](GraphQueryRequest.md) | class |  |
| [GraphQueryResult](GraphQueryResult.md) | class |  |
| [GraphQueryResult_rows](GraphQueryResult_rows.md) | class |  |
| [GraphQueryResult_shape](GraphQueryResult_shape.md) | enum | ROWS (resources), COUNT (one number) or GROUPS (a count per value of a field). |
| [LabelFix](LabelFix.md) | class | One label change a fix would make. |
| [LabelFixPreview](LabelFixPreview.md) | class |  |
| [LabelFixRequest](LabelFixRequest.md) | class |  |
| [LabelFixRequest_defaults](LabelFixRequest_defaults.md) | class | The values to set for a missing label, by key (for example owner → platform-team). A label with an allowed set or pattern is checked against it. |
| [Lock](Lock.md) | class | A lock on a resource, a resource group or a project. |
| [LockList](LockList.md) | class |  |
| [Lock_kind](Lock_kind.md) | enum | CAN_NOT_DELETE refuses deletes, purges and destroys. READ_ONLY refuses every change (and deletes); reads and removing the lock still work. One lock per target and kind. |
| [Lock_targetKind](Lock_targetKind.md) | enum | PROJECT, RESOURCE_GROUP or RESOURCE, from the target. |
| [RuleDiagnostic](RuleDiagnostic.md) | class | One problem found in a rule text, with its place. |
| [RuleFinding](RuleFinding.md) | class | What one rule said about the request. |
| [RuleTestRequestFacts](RuleTestRequestFacts.md) | class | A request, as a rule reads it, for a dry run. |
| [RuleTestRequestFacts_existingLabels](RuleTestRequestFacts_existingLabels.md) | class | For a change of an existing resource: the labels it has now. |
| [RuleTestRequestFacts_labels](RuleTestRequestFacts_labels.md) | class | The labels the request sets. |
| [SavedQuery](SavedQuery.md) | class | A query kept by name. |
| [SavedQueryList](SavedQueryList.md) | class |  |
| [TestRuleRequest](TestRuleRequest.md) | class |  |
| [TestRuleRequest_kind](TestRuleRequest_kind.md) | enum | A rule text to try instead of the stored rules (optional). With kind, it is tried alone. |
| [TestRuleResponse](TestRuleResponse.md) | class |  |
| [TestRuleResponse_decision](TestRuleResponse_decision.md) | enum | ALLOWED when no rule says anything, AUDITED when only AUDIT rules do, REFUSED when an ENFORCE rule does. |
| [ValidateRuleRequest](ValidateRuleRequest.md) | class |  |
| [ValidateRuleRequest_kind](ValidateRuleRequest_kind.md) | enum |  |
| [ValidateRuleResponse](ValidateRuleResponse.md) | class |  |
