azure.mgmt.resource.policy.v2016_12_01.models module¶
-
class
azure.mgmt.resource.policy.v2016_12_01.models.
PolicyAssignment
(*, display_name: str = None, policy_definition_id: str = None, scope: str = None, parameters=None, description: str = None, type: str = None, name: str = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The policy assignment.
Variables are only populated by the server, and will be ignored when sending a request.
- Parameters
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 (object) – Required if a parameter is used in policy rule.
description (str) – This message will be part of response in case of policy violation.
type (str) – The type of the policy assignment.
name (str) – The name of the policy assignment.
- Variables
id (str) – The ID of the policy assignment.
-
class
azure.mgmt.resource.policy.v2016_12_01.models.
PolicyAssignmentPaged
(*args, **kwargs)[source]¶ Bases:
msrest.paging.Paged
A paging container for iterating over a list of
PolicyAssignment
objectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.resource.policy.v2016_12_01.models.
PolicyDefinition
(*, policy_type=None, mode=None, display_name: str = None, description: str = None, policy_rule=None, metadata=None, parameters=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The policy definition.
Variables are only populated by the server, and will be ignored when sending a request.
- Parameters
policy_type (str or PolicyType) – The type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom. Possible values include: ‘NotSpecified’, ‘BuiltIn’, ‘Custom’
mode (str or PolicyMode) – The policy definition mode. Possible values are NotSpecified, Indexed, and All. Possible values include: ‘NotSpecified’, ‘Indexed’, ‘All’
display_name (str) – The display name of the policy definition.
description (str) – The policy definition description.
policy_rule (object) – The policy rule.
metadata (object) – The policy definition metadata.
parameters (object) – Required if a parameter is used in policy rule.
- Variables
id (str) – The ID of the policy definition.
name (str) – The name of the policy definition.
-
class
azure.mgmt.resource.policy.v2016_12_01.models.
PolicyDefinitionPaged
(*args, **kwargs)[source]¶ Bases:
msrest.paging.Paged
A paging container for iterating over a list of
PolicyDefinition
objectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.