azure.mgmt.resource.policy.v2017_06_01_preview.models module

class azure.mgmt.resource.policy.v2017_06_01_preview.models.ErrorResponse(*, http_status: str | None = None, error_code: str | None = None, error_message: str | None = None, **kwargs: Any)[source]

Bases: Model

Error response indicates ARM is not able to process the incoming request. The reason is provided in the error message.

Variables:
  • http_status (str) – Http status code.

  • error_code (str) – Error code.

  • error_message (str) – Error message indicating why the operation failed.

Keyword Arguments:
  • http_status (str) – Http status code.

  • error_code (str) – Error code.

  • error_message (str) – Error message indicating why the operation failed.

class azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicyAssignment(*, sku: _models.PolicySku | None = None, display_name: str | None = None, policy_definition_id: str | None = None, scope: str | None = None, not_scopes: List[str] | None = None, parameters: MutableMapping[str, Any] | None = None, description: str | None = None, metadata: MutableMapping[str, Any] | None = None, **kwargs: Any)[source]

Bases: Model

The policy assignment.

Variables are only populated by the server, and will be ignored when sending a request.

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.

  • sku (PolicySku) – The policy sku.

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

  • not_scopes (list[str]) – The policy’s excluded scopes.

  • parameters (JSON) – Required if a parameter is used in policy rule.

  • description (str) – This message will be part of response in case of policy violation.

  • metadata (JSON) – The policy assignment metadata.

Keyword Arguments:
  • sku (PolicySku) – The policy sku.

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

  • not_scopes (list[str]) – The policy’s excluded scopes.

  • parameters (JSON) – Required if a parameter is used in policy rule.

  • description (str) – This message will be part of response in case of policy violation.

  • metadata (JSON) – The policy assignment metadata.

class azure.mgmt.resource.policy.v2017_06_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.v2017_06_01_preview.models.PolicyDefinitionReference(*, policy_definition_id: str | None = None, parameters: MutableMapping[str, Any] | None = None, **kwargs: Any)[source]

Bases: Model

The policy definition reference.

Variables:
  • policy_definition_id (str) – The ID of the policy definition or policy set definition.

  • parameters (JSON) – Required if a parameter is used in policy rule.

Keyword Arguments:
  • policy_definition_id (str) – The ID of the policy definition or policy set definition.

  • parameters (JSON) – Required if a parameter is used in policy rule.

class azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicySetDefinition(*, policy_type: str | _models.PolicyType | None = None, display_name: str | None = None, description: str | None = None, metadata: MutableMapping[str, Any] | None = None, parameters: MutableMapping[str, Any] | None = None, policy_definitions: List[_models.PolicyDefinitionReference] | None = None, **kwargs: Any)[source]

Bases: Model

The policy set definition.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The ID of the policy set definition.

  • name (str) – The name of the policy set definition.

  • type (str) – The type of the resource (Microsoft.Authorization/policySetDefinitions).

  • 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 set definition.

  • description (str) – The policy set definition description.

  • metadata (JSON) – The policy set definition metadata.

  • parameters (JSON) – The policy set definition parameters that can be used in policy definition references.

  • policy_definitions (list[PolicyDefinitionReference]) – An array of policy definition references.

Keyword Arguments:
  • 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 set definition.

  • description (str) – The policy set definition description.

  • metadata (JSON) – The policy set definition metadata.

  • parameters (JSON) – The policy set definition parameters that can be used in policy definition references.

  • policy_definitions (list[PolicyDefinitionReference]) – An array of policy definition references.

class azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicySetDefinitionListResult(*, value: List[_models.PolicySetDefinition] | None = None, next_link: str | None = None, **kwargs: Any)[source]

Bases: Model

List of policy set definitions.

Variables:
  • value (list[PolicySetDefinition]) – An array of policy set definitions.

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

Keyword Arguments:
  • value (list[PolicySetDefinition]) – An array of policy set definitions.

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

class azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicySku(*, name: str, tier: str | None = None, **kwargs: Any)[source]

Bases: Model

The policy sku.

All required parameters must be populated in order to send to server.

Variables:
  • name (str) – The name of the policy sku. Possible values are A0 and A1. Required.

  • tier (str) – The policy sku tier. Possible values are Free and Standard.

Keyword Arguments:
  • name (str) – The name of the policy sku. Possible values are A0 and A1. Required.

  • tier (str) – The policy sku tier. Possible values are Free and Standard.

class azure.mgmt.resource.policy.v2017_06_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'