azure.mgmt.resource.policy.v2016_12_01.models module
- class azure.mgmt.resource.policy.v2016_12_01.models.PolicyAssignment(*, type: str | None = None, name: str | None = None, display_name: str | None = None, policy_definition_id: str | None = None, scope: str | None = None, parameters: MutableMapping[str, Any] | None = None, description: str | None = None, **kwargs: Any)[source]
Bases:
Model
The policy assignment.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables:
id (str) – The ID of the policy assignment.
type (str) – The type of the policy assignment.
name (str) – The name of the policy assignment.
display_name (str) – The display name of the policy assignment.
policy_definition_id (str) – The ID of the policy definition.
scope (str) – The scope for the policy assignment.
parameters (JSON) – Required if a parameter is used in policy rule.
description (str) – This message will be part of response in case of policy violation.
- Keyword Arguments:
type (str) – The type of the policy assignment.
name (str) – The name of the policy assignment.
display_name (str) – The display name of the policy assignment.
policy_definition_id (str) – The ID of the policy definition.
scope (str) – The scope for the policy assignment.
parameters (JSON) – Required if a parameter is used in policy rule.
description (str) – This message will be part of response in case of policy violation.
- class azure.mgmt.resource.policy.v2016_12_01.models.PolicyAssignmentListResult(*, value: List[_models.PolicyAssignment] | None = None, next_link: str | None = None, **kwargs: Any)[source]
Bases:
Model
List of policy assignments.
- Variables:
value (list[PolicyAssignment]) – An array of policy assignments.
next_link (str) – The URL to use for getting the next set of results.
- Keyword Arguments:
value (list[PolicyAssignment]) – An array of policy assignments.
next_link (str) – The URL to use for getting the next set of results.
- class azure.mgmt.resource.policy.v2016_12_01.models.PolicyDefinition(*, policy_type: str | _models.PolicyType | None = None, mode: str | _models.PolicyMode | None = None, display_name: str | None = None, description: str | None = None, policy_rule: MutableMapping[str, Any] | None = None, metadata: MutableMapping[str, Any] | None = None, parameters: MutableMapping[str, Any] | None = None, **kwargs: Any)[source]
Bases:
Model
The policy definition.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables:
id (str) – The ID of the policy definition.
name (str) – The name of the policy definition.
policy_type (str or PolicyType) – The type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom. Known values are: “NotSpecified”, “BuiltIn”, and “Custom”.
mode (str or PolicyMode) – The policy definition mode. Possible values are NotSpecified, Indexed, and All. Known values are: “NotSpecified”, “Indexed”, and “All”.
display_name (str) – The display name of the policy definition.
description (str) – The policy definition description.
policy_rule (JSON) – The policy rule.
metadata (JSON) – The policy definition metadata.
parameters (JSON) – Required if a parameter is used in policy rule.
- Keyword Arguments:
policy_type (str or PolicyType) – The type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom. Known values are: “NotSpecified”, “BuiltIn”, and “Custom”.
mode (str or PolicyMode) – The policy definition mode. Possible values are NotSpecified, Indexed, and All. Known values are: “NotSpecified”, “Indexed”, and “All”.
display_name (str) – The display name of the policy definition.
description (str) – The policy definition description.
policy_rule (JSON) – The policy rule.
metadata (JSON) – The policy definition metadata.
parameters (JSON) – Required if a parameter is used in policy rule.
- class azure.mgmt.resource.policy.v2016_12_01.models.PolicyDefinitionListResult(*, value: List[_models.PolicyDefinition] | None = None, next_link: str | None = None, **kwargs: Any)[source]
Bases:
Model
List of policy definitions.
- Variables:
value (list[PolicyDefinition]) – An array of policy definitions.
next_link (str) – The URL to use for getting the next set of results.
- Keyword Arguments:
value (list[PolicyDefinition]) – An array of policy definitions.
next_link (str) – The URL to use for getting the next set of results.
- class azure.mgmt.resource.policy.v2016_12_01.models.PolicyMode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]
-
The policy definition mode. Possible values are NotSpecified, Indexed, and All.
- ALL = 'All'
- INDEXED = 'Indexed'
- NOT_SPECIFIED = 'NotSpecified'
- class azure.mgmt.resource.policy.v2016_12_01.models.PolicyType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]
-
The type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom.
- BUILT_IN = 'BuiltIn'
- CUSTOM = 'Custom'
- NOT_SPECIFIED = 'NotSpecified'