azure.mgmt.resource.policy.v2015_10_01_preview.models module¶
-
class
azure.mgmt.resource.policy.v2015_10_01_preview.models.
PolicyAssignment
(*, id: Optional[str] = None, type: Optional[str] = None, name: Optional[str] = None, display_name: Optional[str] = None, policy_definition_id: Optional[str] = None, scope: Optional[str] = None, **kwargs: Any)[source]¶ Bases:
azure.mgmt.resource.policy._serialization.Model
The policy assignment.
- Variables
- Keyword Arguments
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.
-
class
azure.mgmt.resource.policy.v2015_10_01_preview.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.v2015_10_01_preview.models.
PolicyDefinition
(*, name: Optional[str] = None, policy_type: Optional[Union[str, _models.PolicyType]] = None, display_name: Optional[str] = None, description: Optional[str] = None, policy_rule: 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. If you do not specify a value for name, the value is inferred from the name value in the request URI.
policy_type (str or PolicyType) – The type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom. Known values are: “NotSpecified”, “BuiltIn”, and “Custom”.
display_name (str) – The display name of the policy definition.
description (str) – The policy definition description.
policy_rule (JSON) – The policy rule.
- Keyword Arguments
name (str) – The name of the policy definition. If you do not specify a value for name, the value is inferred from the name value in the request URI.
policy_type (str or PolicyType) – The type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom. Known values are: “NotSpecified”, “BuiltIn”, and “Custom”.
display_name (str) – The display name of the policy definition.
description (str) – The policy definition description.
policy_rule (JSON) – The policy rule.
-
class
azure.mgmt.resource.policy.v2015_10_01_preview.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.