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

class azure.mgmt.resource.policy.v2015_10_01_preview.models.PolicyAssignment(*, id: str | None = None, type: str | None = None, name: str | None = None, display_name: str | None = None, policy_definition_id: str | None = None, scope: str | None = None, **kwargs: Any)[source]

Bases: Model

The policy assignment.

Variables:
  • 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.

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: List[_models.PolicyAssignment] | None = None, next_link: str | None = None, **kwargs: Any)[source]

Bases: 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: str | None = None, policy_type: str | _models.PolicyType | None = None, display_name: str | None = None, description: str | None = None, policy_rule: MutableMapping[str, Any] | None = None, **kwargs: Any)[source]

Bases: 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.

  • 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: List[_models.PolicyDefinition] | None = None, next_link: str | None = None, **kwargs: Any)[source]

Bases: 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.

class azure.mgmt.resource.policy.v2015_10_01_preview.models.PolicyType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: str, Enum

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

BUILT_IN = 'BuiltIn'
CUSTOM = 'Custom'
NOT_SPECIFIED = 'NotSpecified'