azure.mgmt.resource.policy.v2016_12_01.models module¶
-
class
azure.mgmt.resource.policy.v2016_12_01.models.
PolicyAssignment
(*, type: Optional[str] = None, name: Optional[str] = None, display_name: Optional[str] = None, policy_definition_id: Optional[str] = None, scope: Optional[str] = None, parameters: Optional[collections.abc.MutableMapping[str, Any]] = None, description: Optional[str] = None, **kwargs: Any)[source]¶ Bases:
azure.mgmt.resource.policy._serialization.Model
The policy assignment.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
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: Optional[List[_models.PolicyAssignment]] = None, next_link: Optional[str] = None, **kwargs: Any)[source]¶ Bases:
azure.mgmt.resource.policy._serialization.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: Optional[Union[str, _models.PolicyType]] = None, mode: Optional[Union[str, _models.PolicyMode]] = None, display_name: Optional[str] = None, description: Optional[str] = None, policy_rule: Optional[collections.abc.MutableMapping[str, Any]] = None, metadata: Optional[collections.abc.MutableMapping[str, Any]] = None, parameters: Optional[collections.abc.MutableMapping[str, Any]] = None, **kwargs: Any)[source]¶ Bases:
azure.mgmt.resource.policy._serialization.Model
The policy definition.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
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: Optional[List[_models.PolicyDefinition]] = None, next_link: Optional[str] = None, **kwargs: Any)[source]¶ Bases:
azure.mgmt.resource.policy._serialization.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.