azure.mgmt.resource.policy.v2015_10_01_preview.models module

class azure.mgmt.resource.policy.v2015_10_01_preview.models.PolicyDefinition(policy_type=None, display_name=None, description=None, policy_rule=None, id=None, name=None)[source]

Bases: msrest.serialization.Model

The policy definition.

Parameters:
  • policy_type (str or PolicyType) – The type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom. Possible values include: ‘NotSpecified’, ‘BuiltIn’, ‘Custom’
  • display_name (str) – The display name of the policy definition.
  • description (str) – The policy definition description.
  • policy_rule (object) – The policy rule.
  • id (str) – The ID of the policy definition.
  • 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.
class azure.mgmt.resource.policy.v2015_10_01_preview.models.PolicyAssignment(display_name=None, policy_definition_id=None, scope=None, id=None, type=None, name=None)[source]

Bases: msrest.serialization.Model

The policy definition.

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.
  • id (str) – The ID of the policy assignment.
  • type (str) – The type of the policy assignment.
  • name (str) – The name of the policy assignment.
class azure.mgmt.resource.policy.v2015_10_01_preview.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.v2015_10_01_preview.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.v2015_10_01_preview.models.PolicyType[source]

Bases: enum.Enum

built_in = 'BuiltIn'
custom = 'Custom'
not_specified = 'NotSpecified'