azure.mgmt.resource.policy.v2016_12_01.models module

class azure.mgmt.resource.policy.v2016_12_01.models.PolicyDefinition(policy_type=None, mode=None, display_name=None, description=None, policy_rule=None, metadata=None, parameters=None)[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.PolicyAssignment(display_name=None, policy_definition_id=None, scope=None, parameters=None, description=None, type=None, name=None)[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.PolicyDefinitionPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of PolicyDefinition object

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 object

class azure.mgmt.resource.policy.v2016_12_01.models.PolicyType[source]

Bases: enum.Enum

built_in = 'BuiltIn'
custom = 'Custom'
not_specified = 'NotSpecified'
class azure.mgmt.resource.policy.v2016_12_01.models.PolicyMode[source]

Bases: enum.Enum

all = 'All'
indexed = 'Indexed'
not_specified = 'NotSpecified'