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)[source]

Bases: msrest.serialization.Model

The policy assignment.

Parameters
  • 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[PolicyAssignment]] = None, next_link: Optional[str] = None, **kwargs)[source]

Bases: msrest.serialization.Model

List of policy assignments.

Parameters
  • 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, PolicyType]] = None, display_name: Optional[str] = None, description: Optional[str] = None, policy_rule: object = 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.

Variables

id (str) – The ID of the policy definition.

Parameters
  • 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. 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.

class azure.mgmt.resource.policy.v2015_10_01_preview.models.PolicyDefinitionListResult(*, value: Optional[List[PolicyDefinition]] = None, next_link: Optional[str] = None, **kwargs)[source]

Bases: msrest.serialization.Model

List of policy definitions.

Parameters
  • value (list[PolicyDefinition]) – An array of policy definitions.

  • next_link (str) – The URL to use for getting the next set of results.

class azure.mgmt.resource.policy.v2015_10_01_preview.models.PolicyType(value)[source]

Bases: str, enum.Enum

The type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom.

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