diff --git a/sdk/resources/azure-mgmt-resource-policy/CHANGELOG.md b/sdk/resources/azure-mgmt-resource-policy/CHANGELOG.md
index a048b2c08f54..a44c4e6908fa 100644
--- a/sdk/resources/azure-mgmt-resource-policy/CHANGELOG.md
+++ b/sdk/resources/azure-mgmt-resource-policy/CHANGELOG.md
@@ -1,5 +1,9 @@
# Release History
+## 1.0.0b4 (2026-08-25)
+
+tool can't generate changelog for this release, please update manually.
+
## 1.0.0b3 (2026-05-26)
### Features Added
diff --git a/sdk/resources/azure-mgmt-resource-policy/README.md b/sdk/resources/azure-mgmt-resource-policy/README.md
index f48fd1ce600b..96c8ae15b7c7 100644
--- a/sdk/resources/azure-mgmt-resource-policy/README.md
+++ b/sdk/resources/azure-mgmt-resource-policy/README.md
@@ -24,7 +24,7 @@ pip install azure-identity
### Authentication
-By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.
+By default, [Microsoft Entra](https://learn.microsoft.com/entra/fundamentals/what-is-entra) token authentication depends on correct configuration of the following environment variables.
- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
diff --git a/sdk/resources/azure-mgmt-resource-policy/_metadata.json b/sdk/resources/azure-mgmt-resource-policy/_metadata.json
index edd242ecde16..5f831140d000 100644
--- a/sdk/resources/azure-mgmt-resource-policy/_metadata.json
+++ b/sdk/resources/azure-mgmt-resource-policy/_metadata.json
@@ -3,8 +3,9 @@
"apiVersions": {
"Microsoft.Authorization": "2026-01-01-preview"
},
- "commit": "090fd0dc3ee03fb63ad7d60b14027c495b7b4b25",
+ "commit": "befd1687368facdf2e5f0878725c66107c2cd8d5",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"typespec_src": "specification/resources/resource-manager/Microsoft.Authorization/policy",
- "emitterVersion": "0.62.1"
+ "emitterVersion": "0.63.5",
+ "httpClientPythonVersion": "^0.36.0"
}
\ No newline at end of file
diff --git a/sdk/resources/azure-mgmt-resource-policy/api.md b/sdk/resources/azure-mgmt-resource-policy/api.md
new file mode 100644
index 000000000000..9233ff03a34c
--- /dev/null
+++ b/sdk/resources/azure-mgmt-resource-policy/api.md
@@ -0,0 +1,4936 @@
+```py
+namespace azure.mgmt.resource.policy
+
+ class azure.mgmt.resource.policy.PolicyClient: implements ContextManager
+ data_policy_manifests: DataPolicyManifestsOperations
+ policy_assignments: PolicyAssignmentsOperations
+ policy_definition_versions: PolicyDefinitionVersionsOperations
+ policy_definitions: PolicyDefinitionsOperations
+ policy_enrollments: PolicyEnrollmentsOperations
+ policy_exemptions: PolicyExemptionsOperations
+ policy_set_definition_versions: PolicySetDefinitionVersionsOperations
+ policy_set_definitions: PolicySetDefinitionsOperations
+ policy_tokens: PolicyTokensOperations
+ variable_values: VariableValuesOperations
+ variables: VariablesOperations
+
+ def __init__(
+ self,
+ credential: TokenCredential,
+ subscription_id: str,
+ base_url: Optional[str] = None,
+ *,
+ api_version: str = ...,
+ cloud_setting: Optional[AzureClouds] = ...,
+ **kwargs: Any
+ ) -> None: ...
+
+ def close(self) -> None: ...
+
+ def send_request(
+ self,
+ request: HttpRequest,
+ *,
+ stream: bool = False,
+ **kwargs: Any
+ ) -> HttpResponse: ...
+
+
+namespace azure.mgmt.resource.policy.aio
+
+ class azure.mgmt.resource.policy.aio.PolicyClient: implements AsyncContextManager
+ data_policy_manifests: DataPolicyManifestsOperations
+ policy_assignments: PolicyAssignmentsOperations
+ policy_definition_versions: PolicyDefinitionVersionsOperations
+ policy_definitions: PolicyDefinitionsOperations
+ policy_enrollments: PolicyEnrollmentsOperations
+ policy_exemptions: PolicyExemptionsOperations
+ policy_set_definition_versions: PolicySetDefinitionVersionsOperations
+ policy_set_definitions: PolicySetDefinitionsOperations
+ policy_tokens: PolicyTokensOperations
+ variable_values: VariableValuesOperations
+ variables: VariablesOperations
+
+ def __init__(
+ self,
+ credential: AsyncTokenCredential,
+ subscription_id: str,
+ base_url: Optional[str] = None,
+ *,
+ api_version: str = ...,
+ cloud_setting: Optional[AzureClouds] = ...,
+ **kwargs: Any
+ ) -> None: ...
+
+ async def close(self) -> None: ...
+
+ def send_request(
+ self,
+ request: HttpRequest,
+ *,
+ stream: bool = False,
+ **kwargs: Any
+ ) -> Awaitable[AsyncHttpResponse]: ...
+
+
+namespace azure.mgmt.resource.policy.aio.operations
+
+ class azure.mgmt.resource.policy.aio.operations.DataPolicyManifestsOperations:
+
+ def __init__(
+ self,
+ *args,
+ **kwargs
+ ) -> None: ...
+
+ @distributed_trace_async
+ @api_version_validation(method_added_on='2025-11-01', params_added_on={'2025-11-01': ['api_version', 'policy_mode', 'accept']}, api_versions_list=['2025-11-01', '2025-12-01-preview', '2026-01-01-preview'])
+ async def get_by_policy_mode(
+ self,
+ policy_mode: str,
+ **kwargs: Any
+ ) -> DataPolicyManifest: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2025-11-01', params_added_on={'2025-11-01': ['api_version', 'filter', 'accept']}, api_versions_list=['2025-11-01', '2025-12-01-preview', '2026-01-01-preview'])
+ def list(
+ self,
+ *,
+ filter: Optional[str] = ...,
+ **kwargs: Any
+ ) -> AsyncItemPaged[DataPolicyManifest]: ...
+
+
+ class azure.mgmt.resource.policy.aio.operations.PolicyAssignmentsOperations:
+
+ def __init__(
+ self,
+ *args,
+ **kwargs
+ ) -> None: ...
+
+ @overload
+ async def create(
+ self,
+ scope: str,
+ policy_assignment_name: str,
+ parameters: PolicyAssignment,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyAssignment: ...
+
+ @overload
+ async def create(
+ self,
+ scope: str,
+ policy_assignment_name: str,
+ parameters: PolicyAssignment,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyAssignment: ...
+
+ @overload
+ async def create(
+ self,
+ scope: str,
+ policy_assignment_name: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyAssignment: ...
+
+ @overload
+ async def create_by_id(
+ self,
+ policy_assignment_id: str,
+ parameters: PolicyAssignment,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyAssignment: ...
+
+ @overload
+ async def create_by_id(
+ self,
+ policy_assignment_id: str,
+ parameters: PolicyAssignment,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyAssignment: ...
+
+ @overload
+ async def create_by_id(
+ self,
+ policy_assignment_id: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyAssignment: ...
+
+ @distributed_trace_async
+ async def delete(
+ self,
+ scope: str,
+ policy_assignment_name: str,
+ **kwargs: Any
+ ) -> Optional[PolicyAssignment]: ...
+
+ @distributed_trace_async
+ async def delete_by_id(
+ self,
+ policy_assignment_id: str,
+ **kwargs: Any
+ ) -> Optional[PolicyAssignment]: ...
+
+ @distributed_trace_async
+ async def get(
+ self,
+ scope: str,
+ policy_assignment_name: str,
+ *,
+ expand: Optional[str] = ...,
+ **kwargs: Any
+ ) -> PolicyAssignment: ...
+
+ @distributed_trace_async
+ async def get_by_id(
+ self,
+ policy_assignment_id: str,
+ **kwargs: Any
+ ) -> PolicyAssignment: ...
+
+ @distributed_trace
+ def list(
+ self,
+ *,
+ expand: Optional[str] = ...,
+ filter: Optional[str] = ...,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> AsyncItemPaged[PolicyAssignment]: ...
+
+ @distributed_trace
+ def list_for_management_group(
+ self,
+ management_group_id: str,
+ *,
+ expand: Optional[str] = ...,
+ filter: Optional[str] = ...,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> AsyncItemPaged[PolicyAssignment]: ...
+
+ @distributed_trace
+ def list_for_resource(
+ self,
+ resource_group_name: str,
+ resource_provider_namespace: str,
+ parent_resource_path: str,
+ resource_type: str,
+ resource_name: str,
+ *,
+ expand: Optional[str] = ...,
+ filter: Optional[str] = ...,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> AsyncItemPaged[PolicyAssignment]: ...
+
+ @distributed_trace
+ def list_for_resource_group(
+ self,
+ resource_group_name: str,
+ *,
+ expand: Optional[str] = ...,
+ filter: Optional[str] = ...,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> AsyncItemPaged[PolicyAssignment]: ...
+
+ @overload
+ async def update(
+ self,
+ scope: str,
+ policy_assignment_name: str,
+ parameters: PolicyAssignmentUpdate,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyAssignment: ...
+
+ @overload
+ async def update(
+ self,
+ scope: str,
+ policy_assignment_name: str,
+ parameters: PolicyAssignmentUpdate,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyAssignment: ...
+
+ @overload
+ async def update(
+ self,
+ scope: str,
+ policy_assignment_name: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyAssignment: ...
+
+ @overload
+ async def update_by_id(
+ self,
+ policy_assignment_id: str,
+ parameters: PolicyAssignmentUpdate,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyAssignment: ...
+
+ @overload
+ async def update_by_id(
+ self,
+ policy_assignment_id: str,
+ parameters: PolicyAssignmentUpdate,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyAssignment: ...
+
+ @overload
+ async def update_by_id(
+ self,
+ policy_assignment_id: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyAssignment: ...
+
+
+ class azure.mgmt.resource.policy.aio.operations.PolicyDefinitionVersionsOperations:
+
+ def __init__(
+ self,
+ *args,
+ **kwargs
+ ) -> None: ...
+
+ @overload
+ async def create_or_update(
+ self,
+ policy_definition_name: str,
+ policy_definition_version: str,
+ parameters: PolicyDefinitionVersion,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyDefinitionVersion: ...
+
+ @overload
+ async def create_or_update(
+ self,
+ policy_definition_name: str,
+ policy_definition_version: str,
+ parameters: PolicyDefinitionVersion,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyDefinitionVersion: ...
+
+ @overload
+ async def create_or_update(
+ self,
+ policy_definition_name: str,
+ policy_definition_version: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyDefinitionVersion: ...
+
+ @overload
+ async def create_or_update_at_management_group(
+ self,
+ management_group_name: str,
+ policy_definition_name: str,
+ policy_definition_version: str,
+ parameters: PolicyDefinitionVersion,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyDefinitionVersion: ...
+
+ @overload
+ async def create_or_update_at_management_group(
+ self,
+ management_group_name: str,
+ policy_definition_name: str,
+ policy_definition_version: str,
+ parameters: PolicyDefinitionVersion,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyDefinitionVersion: ...
+
+ @overload
+ async def create_or_update_at_management_group(
+ self,
+ management_group_name: str,
+ policy_definition_name: str,
+ policy_definition_version: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyDefinitionVersion: ...
+
+ @distributed_trace_async
+ async def delete(
+ self,
+ policy_definition_name: str,
+ policy_definition_version: str,
+ **kwargs: Any
+ ) -> None: ...
+
+ @distributed_trace_async
+ async def delete_at_management_group(
+ self,
+ management_group_name: str,
+ policy_definition_name: str,
+ policy_definition_version: str,
+ **kwargs: Any
+ ) -> None: ...
+
+ @distributed_trace_async
+ async def get(
+ self,
+ policy_definition_name: str,
+ policy_definition_version: str,
+ **kwargs: Any
+ ) -> PolicyDefinitionVersion: ...
+
+ @distributed_trace_async
+ async def get_at_management_group(
+ self,
+ management_group_name: str,
+ policy_definition_name: str,
+ policy_definition_version: str,
+ **kwargs: Any
+ ) -> PolicyDefinitionVersion: ...
+
+ @distributed_trace_async
+ async def get_built_in(
+ self,
+ policy_definition_name: str,
+ policy_definition_version: str,
+ **kwargs: Any
+ ) -> PolicyDefinitionVersion: ...
+
+ @distributed_trace
+ def list(
+ self,
+ policy_definition_name: str,
+ *,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> AsyncItemPaged[PolicyDefinitionVersion]: ...
+
+ @distributed_trace_async
+ async def list_all(self, **kwargs: Any) -> PolicyDefinitionVersionListResult: ...
+
+ @distributed_trace_async
+ async def list_all_at_management_group(
+ self,
+ management_group_name: str,
+ **kwargs: Any
+ ) -> PolicyDefinitionVersionListResult: ...
+
+ @distributed_trace_async
+ async def list_all_builtins(self, **kwargs: Any) -> PolicyDefinitionVersionListResult: ...
+
+ @distributed_trace
+ def list_built_in(
+ self,
+ policy_definition_name: str,
+ *,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> AsyncItemPaged[PolicyDefinitionVersion]: ...
+
+ @distributed_trace
+ def list_by_management_group(
+ self,
+ management_group_name: str,
+ policy_definition_name: str,
+ *,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> AsyncItemPaged[PolicyDefinitionVersion]: ...
+
+
+ class azure.mgmt.resource.policy.aio.operations.PolicyDefinitionsOperations:
+
+ def __init__(
+ self,
+ *args,
+ **kwargs
+ ) -> None: ...
+
+ @overload
+ async def create_or_update(
+ self,
+ policy_definition_name: str,
+ parameters: PolicyDefinition,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyDefinition: ...
+
+ @overload
+ async def create_or_update(
+ self,
+ policy_definition_name: str,
+ parameters: PolicyDefinition,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyDefinition: ...
+
+ @overload
+ async def create_or_update(
+ self,
+ policy_definition_name: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyDefinition: ...
+
+ @overload
+ async def create_or_update_at_management_group(
+ self,
+ management_group_id: str,
+ policy_definition_name: str,
+ parameters: PolicyDefinition,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyDefinition: ...
+
+ @overload
+ async def create_or_update_at_management_group(
+ self,
+ management_group_id: str,
+ policy_definition_name: str,
+ parameters: PolicyDefinition,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyDefinition: ...
+
+ @overload
+ async def create_or_update_at_management_group(
+ self,
+ management_group_id: str,
+ policy_definition_name: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyDefinition: ...
+
+ @distributed_trace_async
+ async def delete(
+ self,
+ policy_definition_name: str,
+ **kwargs: Any
+ ) -> None: ...
+
+ @distributed_trace_async
+ async def delete_at_management_group(
+ self,
+ management_group_id: str,
+ policy_definition_name: str,
+ **kwargs: Any
+ ) -> None: ...
+
+ @distributed_trace_async
+ async def get(
+ self,
+ policy_definition_name: str,
+ **kwargs: Any
+ ) -> PolicyDefinition: ...
+
+ @distributed_trace_async
+ async def get_at_management_group(
+ self,
+ management_group_id: str,
+ policy_definition_name: str,
+ **kwargs: Any
+ ) -> PolicyDefinition: ...
+
+ @distributed_trace_async
+ async def get_built_in(
+ self,
+ policy_definition_name: str,
+ **kwargs: Any
+ ) -> PolicyDefinition: ...
+
+ @distributed_trace
+ def list(
+ self,
+ *,
+ filter: Optional[str] = ...,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> AsyncItemPaged[PolicyDefinition]: ...
+
+ @distributed_trace
+ def list_built_in(
+ self,
+ *,
+ filter: Optional[str] = ...,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> AsyncItemPaged[PolicyDefinition]: ...
+
+ @distributed_trace
+ def list_by_management_group(
+ self,
+ management_group_id: str,
+ *,
+ filter: Optional[str] = ...,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> AsyncItemPaged[PolicyDefinition]: ...
+
+
+ class azure.mgmt.resource.policy.aio.operations.PolicyEnrollmentsOperations:
+
+ def __init__(
+ self,
+ *args,
+ **kwargs
+ ) -> None: ...
+
+ @overload
+ async def create_or_update(
+ self,
+ scope: str,
+ policy_enrollment_name: str,
+ parameters: PolicyEnrollment,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyEnrollment: ...
+
+ @overload
+ async def create_or_update(
+ self,
+ scope: str,
+ policy_enrollment_name: str,
+ parameters: PolicyEnrollment,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyEnrollment: ...
+
+ @overload
+ async def create_or_update(
+ self,
+ scope: str,
+ policy_enrollment_name: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyEnrollment: ...
+
+ @distributed_trace_async
+ @api_version_validation(method_added_on='2026-01-01-preview', params_added_on={'2026-01-01-preview': ['api_version', 'scope', 'policy_enrollment_name']}, api_versions_list=['2026-01-01-preview'])
+ async def delete(
+ self,
+ scope: str,
+ policy_enrollment_name: str,
+ **kwargs: Any
+ ) -> None: ...
+
+ @distributed_trace_async
+ @api_version_validation(method_added_on='2026-01-01-preview', params_added_on={'2026-01-01-preview': ['api_version', 'scope', 'policy_enrollment_name', 'accept']}, api_versions_list=['2026-01-01-preview'])
+ async def get(
+ self,
+ scope: str,
+ policy_enrollment_name: str,
+ **kwargs: Any
+ ) -> PolicyEnrollment: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2026-01-01-preview', params_added_on={'2026-01-01-preview': ['api_version', 'subscription_id', 'filter', 'accept']}, api_versions_list=['2026-01-01-preview'])
+ def list(
+ self,
+ *,
+ filter: Optional[str] = ...,
+ **kwargs: Any
+ ) -> AsyncItemPaged[PolicyEnrollment]: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2026-01-01-preview', params_added_on={'2026-01-01-preview': ['api_version', 'management_group_id', 'filter', 'accept']}, api_versions_list=['2026-01-01-preview'])
+ def list_for_management_group(
+ self,
+ management_group_id: str,
+ *,
+ filter: Optional[str] = ...,
+ **kwargs: Any
+ ) -> AsyncItemPaged[PolicyEnrollment]: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2026-01-01-preview', params_added_on={'2026-01-01-preview': ['subscription_id', 'resource_group_name', 'resource_provider_namespace', 'parent_resource_path', 'resource_type', 'resource_name', 'api_version', 'filter', 'accept']}, api_versions_list=['2026-01-01-preview'])
+ def list_for_resource(
+ self,
+ resource_group_name: str,
+ resource_provider_namespace: str,
+ parent_resource_path: str,
+ resource_type: str,
+ resource_name: str,
+ *,
+ filter: Optional[str] = ...,
+ **kwargs: Any
+ ) -> AsyncItemPaged[PolicyEnrollment]: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2026-01-01-preview', params_added_on={'2026-01-01-preview': ['api_version', 'subscription_id', 'resource_group_name', 'filter', 'accept']}, api_versions_list=['2026-01-01-preview'])
+ def list_for_resource_group(
+ self,
+ resource_group_name: str,
+ *,
+ filter: Optional[str] = ...,
+ **kwargs: Any
+ ) -> AsyncItemPaged[PolicyEnrollment]: ...
+
+ @overload
+ async def update(
+ self,
+ scope: str,
+ policy_enrollment_name: str,
+ parameters: PolicyEnrollmentUpdate,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyEnrollment: ...
+
+ @overload
+ async def update(
+ self,
+ scope: str,
+ policy_enrollment_name: str,
+ parameters: PolicyEnrollmentUpdate,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyEnrollment: ...
+
+ @overload
+ async def update(
+ self,
+ scope: str,
+ policy_enrollment_name: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyEnrollment: ...
+
+
+ class azure.mgmt.resource.policy.aio.operations.PolicyExemptionsOperations:
+
+ def __init__(
+ self,
+ *args,
+ **kwargs
+ ) -> None: ...
+
+ @overload
+ async def create_or_update(
+ self,
+ scope: str,
+ policy_exemption_name: str,
+ parameters: PolicyExemption,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyExemption: ...
+
+ @overload
+ async def create_or_update(
+ self,
+ scope: str,
+ policy_exemption_name: str,
+ parameters: PolicyExemption,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyExemption: ...
+
+ @overload
+ async def create_or_update(
+ self,
+ scope: str,
+ policy_exemption_name: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyExemption: ...
+
+ @distributed_trace_async
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'scope', 'policy_exemption_name']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ async def delete(
+ self,
+ scope: str,
+ policy_exemption_name: str,
+ **kwargs: Any
+ ) -> None: ...
+
+ @distributed_trace_async
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'scope', 'policy_exemption_name', 'accept']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ async def get(
+ self,
+ scope: str,
+ policy_exemption_name: str,
+ **kwargs: Any
+ ) -> PolicyExemption: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'subscription_id', 'filter', 'accept']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ def list(
+ self,
+ *,
+ filter: Optional[str] = ...,
+ **kwargs: Any
+ ) -> AsyncItemPaged[PolicyExemption]: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'management_group_id', 'filter', 'accept']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ def list_for_management_group(
+ self,
+ management_group_id: str,
+ *,
+ filter: Optional[str] = ...,
+ **kwargs: Any
+ ) -> AsyncItemPaged[PolicyExemption]: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['subscription_id', 'resource_group_name', 'resource_provider_namespace', 'parent_resource_path', 'resource_type', 'resource_name', 'api_version', 'filter', 'accept']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ def list_for_resource(
+ self,
+ resource_group_name: str,
+ resource_provider_namespace: str,
+ parent_resource_path: str,
+ resource_type: str,
+ resource_name: str,
+ *,
+ filter: Optional[str] = ...,
+ **kwargs: Any
+ ) -> AsyncItemPaged[PolicyExemption]: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'subscription_id', 'resource_group_name', 'filter', 'accept']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ def list_for_resource_group(
+ self,
+ resource_group_name: str,
+ *,
+ filter: Optional[str] = ...,
+ **kwargs: Any
+ ) -> AsyncItemPaged[PolicyExemption]: ...
+
+ @overload
+ async def update(
+ self,
+ scope: str,
+ policy_exemption_name: str,
+ parameters: PolicyExemptionUpdate,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyExemption: ...
+
+ @overload
+ async def update(
+ self,
+ scope: str,
+ policy_exemption_name: str,
+ parameters: PolicyExemptionUpdate,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyExemption: ...
+
+ @overload
+ async def update(
+ self,
+ scope: str,
+ policy_exemption_name: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyExemption: ...
+
+
+ class azure.mgmt.resource.policy.aio.operations.PolicySetDefinitionVersionsOperations:
+
+ def __init__(
+ self,
+ *args,
+ **kwargs
+ ) -> None: ...
+
+ @overload
+ async def create_or_update(
+ self,
+ policy_set_definition_name: str,
+ policy_definition_version: str,
+ parameters: PolicySetDefinitionVersion,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicySetDefinitionVersion: ...
+
+ @overload
+ async def create_or_update(
+ self,
+ policy_set_definition_name: str,
+ policy_definition_version: str,
+ parameters: PolicySetDefinitionVersion,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicySetDefinitionVersion: ...
+
+ @overload
+ async def create_or_update(
+ self,
+ policy_set_definition_name: str,
+ policy_definition_version: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicySetDefinitionVersion: ...
+
+ @overload
+ async def create_or_update_at_management_group(
+ self,
+ management_group_name: str,
+ policy_set_definition_name: str,
+ policy_definition_version: str,
+ parameters: PolicySetDefinitionVersion,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicySetDefinitionVersion: ...
+
+ @overload
+ async def create_or_update_at_management_group(
+ self,
+ management_group_name: str,
+ policy_set_definition_name: str,
+ policy_definition_version: str,
+ parameters: PolicySetDefinitionVersion,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicySetDefinitionVersion: ...
+
+ @overload
+ async def create_or_update_at_management_group(
+ self,
+ management_group_name: str,
+ policy_set_definition_name: str,
+ policy_definition_version: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicySetDefinitionVersion: ...
+
+ @distributed_trace_async
+ async def delete(
+ self,
+ policy_set_definition_name: str,
+ policy_definition_version: str,
+ **kwargs: Any
+ ) -> None: ...
+
+ @distributed_trace_async
+ async def delete_at_management_group(
+ self,
+ management_group_name: str,
+ policy_set_definition_name: str,
+ policy_definition_version: str,
+ **kwargs: Any
+ ) -> None: ...
+
+ @distributed_trace_async
+ async def get(
+ self,
+ policy_set_definition_name: str,
+ policy_definition_version: str,
+ *,
+ expand: Optional[str] = ...,
+ **kwargs: Any
+ ) -> PolicySetDefinitionVersion: ...
+
+ @distributed_trace_async
+ async def get_at_management_group(
+ self,
+ management_group_name: str,
+ policy_set_definition_name: str,
+ policy_definition_version: str,
+ *,
+ expand: Optional[str] = ...,
+ **kwargs: Any
+ ) -> PolicySetDefinitionVersion: ...
+
+ @distributed_trace_async
+ async def get_built_in(
+ self,
+ policy_set_definition_name: str,
+ policy_definition_version: str,
+ *,
+ expand: Optional[str] = ...,
+ **kwargs: Any
+ ) -> PolicySetDefinitionVersion: ...
+
+ @distributed_trace
+ def list(
+ self,
+ policy_set_definition_name: str,
+ *,
+ expand: Optional[str] = ...,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> AsyncItemPaged[PolicySetDefinitionVersion]: ...
+
+ @distributed_trace_async
+ async def list_all(self, **kwargs: Any) -> PolicySetDefinitionVersionListResult: ...
+
+ @distributed_trace_async
+ async def list_all_at_management_group(
+ self,
+ management_group_name: str,
+ **kwargs: Any
+ ) -> PolicySetDefinitionVersionListResult: ...
+
+ @distributed_trace_async
+ async def list_all_builtins(self, **kwargs: Any) -> PolicySetDefinitionVersionListResult: ...
+
+ @distributed_trace
+ def list_built_in(
+ self,
+ policy_set_definition_name: str,
+ *,
+ expand: Optional[str] = ...,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> AsyncItemPaged[PolicySetDefinitionVersion]: ...
+
+ @distributed_trace
+ def list_by_management_group(
+ self,
+ management_group_name: str,
+ policy_set_definition_name: str,
+ *,
+ expand: Optional[str] = ...,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> AsyncItemPaged[PolicySetDefinitionVersion]: ...
+
+
+ class azure.mgmt.resource.policy.aio.operations.PolicySetDefinitionsOperations:
+
+ def __init__(
+ self,
+ *args,
+ **kwargs
+ ) -> None: ...
+
+ @overload
+ async def create_or_update(
+ self,
+ policy_set_definition_name: str,
+ parameters: PolicySetDefinition,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicySetDefinition: ...
+
+ @overload
+ async def create_or_update(
+ self,
+ policy_set_definition_name: str,
+ parameters: PolicySetDefinition,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicySetDefinition: ...
+
+ @overload
+ async def create_or_update(
+ self,
+ policy_set_definition_name: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicySetDefinition: ...
+
+ @overload
+ async def create_or_update_at_management_group(
+ self,
+ management_group_id: str,
+ policy_set_definition_name: str,
+ parameters: PolicySetDefinition,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicySetDefinition: ...
+
+ @overload
+ async def create_or_update_at_management_group(
+ self,
+ management_group_id: str,
+ policy_set_definition_name: str,
+ parameters: PolicySetDefinition,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicySetDefinition: ...
+
+ @overload
+ async def create_or_update_at_management_group(
+ self,
+ management_group_id: str,
+ policy_set_definition_name: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicySetDefinition: ...
+
+ @distributed_trace_async
+ async def delete(
+ self,
+ policy_set_definition_name: str,
+ **kwargs: Any
+ ) -> None: ...
+
+ @distributed_trace_async
+ async def delete_at_management_group(
+ self,
+ management_group_id: str,
+ policy_set_definition_name: str,
+ **kwargs: Any
+ ) -> None: ...
+
+ @distributed_trace_async
+ async def get(
+ self,
+ policy_set_definition_name: str,
+ *,
+ expand: Optional[str] = ...,
+ **kwargs: Any
+ ) -> PolicySetDefinition: ...
+
+ @distributed_trace_async
+ async def get_at_management_group(
+ self,
+ management_group_id: str,
+ policy_set_definition_name: str,
+ *,
+ expand: Optional[str] = ...,
+ **kwargs: Any
+ ) -> PolicySetDefinition: ...
+
+ @distributed_trace_async
+ async def get_built_in(
+ self,
+ policy_set_definition_name: str,
+ *,
+ expand: Optional[str] = ...,
+ **kwargs: Any
+ ) -> PolicySetDefinition: ...
+
+ @distributed_trace
+ def list(
+ self,
+ *,
+ expand: Optional[str] = ...,
+ filter: Optional[str] = ...,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> AsyncItemPaged[PolicySetDefinition]: ...
+
+ @distributed_trace
+ def list_built_in(
+ self,
+ *,
+ expand: Optional[str] = ...,
+ filter: Optional[str] = ...,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> AsyncItemPaged[PolicySetDefinition]: ...
+
+ @distributed_trace
+ def list_by_management_group(
+ self,
+ management_group_id: str,
+ *,
+ expand: Optional[str] = ...,
+ filter: Optional[str] = ...,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> AsyncItemPaged[PolicySetDefinition]: ...
+
+
+ class azure.mgmt.resource.policy.aio.operations.PolicyTokensOperations:
+
+ def __init__(
+ self,
+ *args,
+ **kwargs
+ ) -> None: ...
+
+ @overload
+ async def acquire(
+ self,
+ parameters: PolicyTokenRequest,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyTokenResponse: ...
+
+ @overload
+ async def acquire(
+ self,
+ parameters: PolicyTokenRequest,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyTokenResponse: ...
+
+ @overload
+ async def acquire(
+ self,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyTokenResponse: ...
+
+ @overload
+ async def acquire_at_management_group(
+ self,
+ management_group_name: str,
+ parameters: PolicyTokenRequest,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyTokenResponse: ...
+
+ @overload
+ async def acquire_at_management_group(
+ self,
+ management_group_name: str,
+ parameters: PolicyTokenRequest,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyTokenResponse: ...
+
+ @overload
+ async def acquire_at_management_group(
+ self,
+ management_group_name: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyTokenResponse: ...
+
+
+ class azure.mgmt.resource.policy.aio.operations.VariableValuesOperations:
+
+ def __init__(
+ self,
+ *args,
+ **kwargs
+ ) -> None: ...
+
+ @overload
+ async def create_or_update(
+ self,
+ variable_name: str,
+ variable_value_name: str,
+ parameters: VariableValue,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> VariableValue: ...
+
+ @overload
+ async def create_or_update(
+ self,
+ variable_name: str,
+ variable_value_name: str,
+ parameters: VariableValue,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> VariableValue: ...
+
+ @overload
+ async def create_or_update(
+ self,
+ variable_name: str,
+ variable_value_name: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> VariableValue: ...
+
+ @overload
+ async def create_or_update_at_management_group(
+ self,
+ management_group_id: str,
+ variable_name: str,
+ variable_value_name: str,
+ parameters: VariableValue,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> VariableValue: ...
+
+ @overload
+ async def create_or_update_at_management_group(
+ self,
+ management_group_id: str,
+ variable_name: str,
+ variable_value_name: str,
+ parameters: VariableValue,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> VariableValue: ...
+
+ @overload
+ async def create_or_update_at_management_group(
+ self,
+ management_group_id: str,
+ variable_name: str,
+ variable_value_name: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> VariableValue: ...
+
+ @distributed_trace_async
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'subscription_id', 'variable_name', 'variable_value_name']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ async def delete(
+ self,
+ variable_name: str,
+ variable_value_name: str,
+ **kwargs: Any
+ ) -> None: ...
+
+ @distributed_trace_async
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'management_group_id', 'variable_name', 'variable_value_name']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ async def delete_at_management_group(
+ self,
+ management_group_id: str,
+ variable_name: str,
+ variable_value_name: str,
+ **kwargs: Any
+ ) -> None: ...
+
+ @distributed_trace_async
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'subscription_id', 'variable_name', 'variable_value_name', 'accept']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ async def get(
+ self,
+ variable_name: str,
+ variable_value_name: str,
+ **kwargs: Any
+ ) -> VariableValue: ...
+
+ @distributed_trace_async
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'management_group_id', 'variable_name', 'variable_value_name', 'accept']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ async def get_at_management_group(
+ self,
+ management_group_id: str,
+ variable_name: str,
+ variable_value_name: str,
+ **kwargs: Any
+ ) -> VariableValue: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'subscription_id', 'variable_name', 'accept']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ def list(
+ self,
+ variable_name: str,
+ **kwargs: Any
+ ) -> AsyncItemPaged[VariableValue]: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'management_group_id', 'variable_name', 'accept']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ def list_for_management_group(
+ self,
+ management_group_id: str,
+ variable_name: str,
+ **kwargs: Any
+ ) -> AsyncItemPaged[VariableValue]: ...
+
+
+ class azure.mgmt.resource.policy.aio.operations.VariablesOperations:
+
+ def __init__(
+ self,
+ *args,
+ **kwargs
+ ) -> None: ...
+
+ @overload
+ async def create_or_update(
+ self,
+ variable_name: str,
+ parameters: Variable,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> Variable: ...
+
+ @overload
+ async def create_or_update(
+ self,
+ variable_name: str,
+ parameters: Variable,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> Variable: ...
+
+ @overload
+ async def create_or_update(
+ self,
+ variable_name: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> Variable: ...
+
+ @overload
+ async def create_or_update_at_management_group(
+ self,
+ management_group_id: str,
+ variable_name: str,
+ parameters: Variable,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> Variable: ...
+
+ @overload
+ async def create_or_update_at_management_group(
+ self,
+ management_group_id: str,
+ variable_name: str,
+ parameters: Variable,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> Variable: ...
+
+ @overload
+ async def create_or_update_at_management_group(
+ self,
+ management_group_id: str,
+ variable_name: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> Variable: ...
+
+ @distributed_trace_async
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'subscription_id', 'variable_name']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ async def delete(
+ self,
+ variable_name: str,
+ **kwargs: Any
+ ) -> None: ...
+
+ @distributed_trace_async
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'management_group_id', 'variable_name']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ async def delete_at_management_group(
+ self,
+ management_group_id: str,
+ variable_name: str,
+ **kwargs: Any
+ ) -> None: ...
+
+ @distributed_trace_async
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'subscription_id', 'variable_name', 'accept']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ async def get(
+ self,
+ variable_name: str,
+ **kwargs: Any
+ ) -> Variable: ...
+
+ @distributed_trace_async
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'management_group_id', 'variable_name', 'accept']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ async def get_at_management_group(
+ self,
+ management_group_id: str,
+ variable_name: str,
+ **kwargs: Any
+ ) -> Variable: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'subscription_id', 'accept']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ def list(self, **kwargs: Any) -> AsyncItemPaged[Variable]: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'management_group_id', 'accept']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ def list_for_management_group(
+ self,
+ management_group_id: str,
+ **kwargs: Any
+ ) -> AsyncItemPaged[Variable]: ...
+
+
+namespace azure.mgmt.resource.policy.models
+
+ class azure.mgmt.resource.policy.models.Alias(_Model):
+ default_metadata: Optional[AliasPathMetadata]
+ default_path: Optional[str]
+ default_pattern: Optional[AliasPattern]
+ name: Optional[str]
+ paths: Optional[list[AliasPath]]
+ type: Optional[Union[str, AliasType]]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ default_metadata: Optional[AliasPathMetadata] = ...,
+ default_path: Optional[str] = ...,
+ default_pattern: Optional[AliasPattern] = ...,
+ name: Optional[str] = ...,
+ paths: Optional[list[AliasPath]] = ...,
+ type: Optional[Union[str, AliasType]] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.AliasPath(_Model):
+ api_versions: Optional[list[str]]
+ metadata: Optional[AliasPathMetadata]
+ path: Optional[str]
+ pattern: Optional[AliasPattern]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ api_versions: Optional[list[str]] = ...,
+ path: Optional[str] = ...,
+ pattern: Optional[AliasPattern] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.AliasPathAttributes(str, Enum, metaclass=CaseInsensitiveEnumMeta):
+ MODIFIABLE = "Modifiable"
+ NONE = "None"
+
+
+ class azure.mgmt.resource.policy.models.AliasPathMetadata(_Model):
+ attributes: Optional[Union[str, AliasPathAttributes]]
+ type: Optional[Union[str, AliasPathTokenType]]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ attributes: Optional[Union[str, AliasPathAttributes]] = ...,
+ type: Optional[Union[str, AliasPathTokenType]] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.AliasPathTokenType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
+ ANY = "Any"
+ ARRAY = "Array"
+ BOOLEAN = "Boolean"
+ INTEGER = "Integer"
+ NOT_SPECIFIED = "NotSpecified"
+ NUMBER = "Number"
+ OBJECT = "Object"
+ STRING = "String"
+
+
+ class azure.mgmt.resource.policy.models.AliasPattern(_Model):
+ phrase: Optional[str]
+ type: Optional[Union[str, AliasPatternType]]
+ variable: Optional[str]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ phrase: Optional[str] = ...,
+ type: Optional[Union[str, AliasPatternType]] = ...,
+ variable: Optional[str] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.AliasPatternType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
+ EXTRACT = "Extract"
+ NOT_SPECIFIED = "NotSpecified"
+
+
+ class azure.mgmt.resource.policy.models.AliasType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
+ MASK = "Mask"
+ NOT_SPECIFIED = "NotSpecified"
+ PLAIN_TEXT = "PlainText"
+
+
+ class azure.mgmt.resource.policy.models.AssignmentScopeValidation(str, Enum, metaclass=CaseInsensitiveEnumMeta):
+ DEFAULT = "Default"
+ DO_NOT_VALIDATE = "DoNotValidate"
+
+
+ class azure.mgmt.resource.policy.models.AssignmentType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
+ CUSTOM = "Custom"
+ NOT_SPECIFIED = "NotSpecified"
+ SYSTEM = "System"
+ SYSTEM_HIDDEN = "SystemHidden"
+
+
+ class azure.mgmt.resource.policy.models.CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
+ APPLICATION = "Application"
+ KEY = "Key"
+ MANAGED_IDENTITY = "ManagedIdentity"
+ USER = "User"
+
+
+ class azure.mgmt.resource.policy.models.DataEffect(_Model):
+ details_schema: Optional[Any]
+ name: Optional[str]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ details_schema: Optional[Any] = ...,
+ name: Optional[str] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.DataManifestCustomResourceFunctionDefinition(_Model):
+ allow_custom_properties: Optional[bool]
+ default_properties: Optional[list[str]]
+ fully_qualified_resource_type: Optional[str]
+ name: Optional[str]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ allow_custom_properties: Optional[bool] = ...,
+ default_properties: Optional[list[str]] = ...,
+ fully_qualified_resource_type: Optional[str] = ...,
+ name: Optional[str] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.DataManifestResourceFunctionsDefinition(_Model):
+ custom: Optional[list[DataManifestCustomResourceFunctionDefinition]]
+ standard: Optional[list[str]]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ custom: Optional[list[DataManifestCustomResourceFunctionDefinition]] = ...,
+ standard: Optional[list[str]] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.DataPolicyManifest(ProxyResource):
+ id: str
+ name: str
+ properties: Optional[DataPolicyManifestProperties]
+ system_data: SystemData
+ type: str
+
+ @overload
+ def __init__(
+ self,
+ *,
+ properties: Optional[DataPolicyManifestProperties] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.DataPolicyManifestProperties(_Model):
+ effects: Optional[list[DataEffect]]
+ field_values: Optional[list[str]]
+ is_built_in_only: Optional[bool]
+ namespaces: Optional[list[str]]
+ policy_mode: Optional[str]
+ resource_functions: Optional[DataManifestResourceFunctionsDefinition]
+ resource_type_aliases: Optional[list[ResourceTypeAliases]]
+
+ def __getattr__(self, name: str) -> Any: ...
+
+ @overload
+ def __init__(
+ self,
+ *,
+ effects: Optional[list[DataEffect]] = ...,
+ field_values: Optional[list[str]] = ...,
+ is_built_in_only: Optional[bool] = ...,
+ namespaces: Optional[list[str]] = ...,
+ policy_mode: Optional[str] = ...,
+ resource_functions: Optional[DataManifestResourceFunctionsDefinition] = ...,
+ resource_type_aliases: Optional[list[ResourceTypeAliases]] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+ def __setattr__(
+ self,
+ key: str,
+ value: Any
+ ) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.EnforcementMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
+ DEFAULT = "Default"
+ DO_NOT_ENFORCE = "DoNotEnforce"
+ ENROLL = "Enroll"
+
+
+ class azure.mgmt.resource.policy.models.ErrorAdditionalInfo(_Model):
+ info: Optional[Any]
+ type: Optional[str]
+
+
+ class azure.mgmt.resource.policy.models.ErrorDetail(_Model):
+ additional_info: Optional[list[ErrorAdditionalInfo]]
+ code: Optional[str]
+ details: Optional[list[ErrorDetail]]
+ message: Optional[str]
+ target: Optional[str]
+
+
+ class azure.mgmt.resource.policy.models.ErrorResponse(_Model):
+ error: Optional[ErrorDetail]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ error: Optional[ErrorDetail] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.ExemptionCategory(str, Enum, metaclass=CaseInsensitiveEnumMeta):
+ MITIGATED = "Mitigated"
+ WAIVER = "Waiver"
+
+
+ class azure.mgmt.resource.policy.models.ExtensionResource(Resource):
+ id: str
+ name: str
+ system_data: SystemData
+ type: str
+
+
+ class azure.mgmt.resource.policy.models.ExternalEndpointResult(str, Enum, metaclass=CaseInsensitiveEnumMeta):
+ FAILED = "Failed"
+ SUCCEEDED = "Succeeded"
+
+
+ class azure.mgmt.resource.policy.models.ExternalEvaluationEndpointInvocationResult(_Model):
+ additional_info: Optional[Any]
+ claims: Optional[Any]
+ endpoint_kind: Optional[str]
+ expiration: Optional[datetime]
+ message: Optional[str]
+ policy_action: Optional[Union[str, PolicyAction]]
+ policy_evaluation_details: Optional[Any]
+ policy_info: Optional[PolicyLogInfo]
+ result: Optional[Union[str, ExternalEndpointResult]]
+ retry_after: Optional[datetime]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ additional_info: Optional[Any] = ...,
+ claims: Optional[Any] = ...,
+ endpoint_kind: Optional[str] = ...,
+ expiration: Optional[datetime] = ...,
+ message: Optional[str] = ...,
+ policy_action: Optional[Union[str, PolicyAction]] = ...,
+ policy_evaluation_details: Optional[Any] = ...,
+ policy_info: Optional[PolicyLogInfo] = ...,
+ result: Optional[Union[str, ExternalEndpointResult]] = ...,
+ retry_after: Optional[datetime] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.ExternalEvaluationEndpointSettings(_Model):
+ details: Optional[Any]
+ kind: Optional[str]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ details: Optional[Any] = ...,
+ kind: Optional[str] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.ExternalEvaluationEnforcementSettings(_Model):
+ endpoint_settings: Optional[ExternalEvaluationEndpointSettings]
+ missing_token_action: Optional[str]
+ result_lifespan: Optional[str]
+ role_definition_ids: Optional[list[str]]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ endpoint_settings: Optional[ExternalEvaluationEndpointSettings] = ...,
+ missing_token_action: Optional[str] = ...,
+ result_lifespan: Optional[str] = ...,
+ role_definition_ids: Optional[list[str]] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.Identity(_Model):
+ principal_id: Optional[str]
+ tenant_id: Optional[str]
+ type: Optional[Union[str, ResourceIdentityType]]
+ user_assigned_identities: Optional[dict[str, UserAssignedIdentitiesValue]]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ type: Optional[Union[str, ResourceIdentityType]] = ...,
+ user_assigned_identities: Optional[dict[str, UserAssignedIdentitiesValue]] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.NonComplianceMessage(_Model):
+ message: str
+ policy_definition_reference_id: Optional[str]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ message: str,
+ policy_definition_reference_id: Optional[str] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.Override(_Model):
+ kind: Optional[Union[str, OverrideKind]]
+ selectors: Optional[list[Selector]]
+ value: Optional[str]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ kind: Optional[Union[str, OverrideKind]] = ...,
+ selectors: Optional[list[Selector]] = ...,
+ value: Optional[str] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.OverrideKind(str, Enum, metaclass=CaseInsensitiveEnumMeta):
+ DEFINITION_VERSION = "definitionVersion"
+ POLICY_EFFECT = "policyEffect"
+
+
+ class azure.mgmt.resource.policy.models.ParameterDefinitionsValue(_Model):
+ allowed_values: Optional[list[Any]]
+ default_value: Optional[Any]
+ metadata: Optional[ParameterDefinitionsValueMetadata]
+ schema: Optional[Any]
+ type: Optional[Union[str, ParameterType]]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ allowed_values: Optional[list[Any]] = ...,
+ default_value: Optional[Any] = ...,
+ metadata: Optional[ParameterDefinitionsValueMetadata] = ...,
+ schema: Optional[Any] = ...,
+ type: Optional[Union[str, ParameterType]] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.ParameterDefinitionsValueMetadata(_Model):
+ assign_permissions: Optional[bool]
+ description: Optional[str]
+ display_name: Optional[str]
+ strong_type: Optional[str]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ assign_permissions: Optional[bool] = ...,
+ description: Optional[str] = ...,
+ display_name: Optional[str] = ...,
+ strong_type: Optional[str] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.ParameterType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
+ ARRAY = "Array"
+ BOOLEAN = "Boolean"
+ DATE_TIME = "DateTime"
+ FLOAT = "Float"
+ INTEGER = "Integer"
+ OBJECT = "Object"
+ STRING = "String"
+
+
+ class azure.mgmt.resource.policy.models.ParameterValuesValue(_Model):
+ value: Optional[Any]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ value: Optional[Any] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicyAction(str, Enum, metaclass=CaseInsensitiveEnumMeta):
+ ALLOW = "Allow"
+ AUDIT = "Audit"
+ DENY = "Deny"
+ ERROR = "Error"
+ UNKNOWN = "Unknown"
+
+
+ class azure.mgmt.resource.policy.models.PolicyAssignment(ExtensionResource):
+ id: str
+ identity: Optional[Identity]
+ location: Optional[str]
+ name: str
+ properties: Optional[PolicyAssignmentProperties]
+ system_data: SystemData
+ type: str
+
+ def __getattr__(self, name: str) -> Any: ...
+
+ @overload
+ def __init__(
+ self,
+ *,
+ identity: Optional[Identity] = ...,
+ location: Optional[str] = ...,
+ properties: Optional[PolicyAssignmentProperties] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+ def __setattr__(
+ self,
+ key: str,
+ value: Any
+ ) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicyAssignmentProperties(_Model):
+ assignment_type: Optional[Union[str, AssignmentType]]
+ definition_version: Optional[str]
+ description: Optional[str]
+ display_name: Optional[str]
+ effective_definition_version: Optional[str]
+ enforcement_mode: Optional[Union[str, EnforcementMode]]
+ instance_id: Optional[str]
+ latest_definition_version: Optional[str]
+ metadata: Optional[Any]
+ non_compliance_messages: Optional[list[NonComplianceMessage]]
+ not_scopes: Optional[list[str]]
+ overrides: Optional[list[Override]]
+ parameters: Optional[dict[str, ParameterValuesValue]]
+ policy_definition_id: Optional[str]
+ resource_selectors: Optional[list[ResourceSelector]]
+ scope: Optional[str]
+ self_serve_exemption_settings: Optional[SelfServeExemptionSettings]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ assignment_type: Optional[Union[str, AssignmentType]] = ...,
+ definition_version: Optional[str] = ...,
+ description: Optional[str] = ...,
+ display_name: Optional[str] = ...,
+ enforcement_mode: Optional[Union[str, EnforcementMode]] = ...,
+ metadata: Optional[Any] = ...,
+ non_compliance_messages: Optional[list[NonComplianceMessage]] = ...,
+ not_scopes: Optional[list[str]] = ...,
+ overrides: Optional[list[Override]] = ...,
+ parameters: Optional[dict[str, ParameterValuesValue]] = ...,
+ policy_definition_id: Optional[str] = ...,
+ resource_selectors: Optional[list[ResourceSelector]] = ...,
+ self_serve_exemption_settings: Optional[SelfServeExemptionSettings] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicyAssignmentUpdate(_Model):
+ identity: Optional[Identity]
+ location: Optional[str]
+ properties: Optional[PolicyAssignmentUpdateProperties]
+
+ def __getattr__(self, name: str) -> Any: ...
+
+ @overload
+ def __init__(
+ self,
+ *,
+ identity: Optional[Identity] = ...,
+ location: Optional[str] = ...,
+ properties: Optional[PolicyAssignmentUpdateProperties] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+ def __setattr__(
+ self,
+ key: str,
+ value: Any
+ ) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicyAssignmentUpdateProperties(_Model):
+ overrides: Optional[list[Override]]
+ resource_selectors: Optional[list[ResourceSelector]]
+ self_serve_exemption_settings: Optional[SelfServeExemptionSettings]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ overrides: Optional[list[Override]] = ...,
+ resource_selectors: Optional[list[ResourceSelector]] = ...,
+ self_serve_exemption_settings: Optional[SelfServeExemptionSettings] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicyDefinition(ProxyResource):
+ id: str
+ name: str
+ properties: Optional[PolicyDefinitionProperties]
+ system_data: SystemData
+ type: str
+
+ def __getattr__(self, name: str) -> Any: ...
+
+ @overload
+ def __init__(
+ self,
+ *,
+ properties: Optional[PolicyDefinitionProperties] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+ def __setattr__(
+ self,
+ key: str,
+ value: Any
+ ) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicyDefinitionGroup(_Model):
+ additional_metadata_id: Optional[str]
+ category: Optional[str]
+ description: Optional[str]
+ display_name: Optional[str]
+ name: str
+
+ @overload
+ def __init__(
+ self,
+ *,
+ additional_metadata_id: Optional[str] = ...,
+ category: Optional[str] = ...,
+ description: Optional[str] = ...,
+ display_name: Optional[str] = ...,
+ name: str
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicyDefinitionProperties(_Model):
+ description: Optional[str]
+ display_name: Optional[str]
+ external_evaluation_enforcement_settings: Optional[ExternalEvaluationEnforcementSettings]
+ metadata: Optional[Any]
+ mode: Optional[str]
+ parameters: Optional[dict[str, ParameterDefinitionsValue]]
+ policy_rule: Optional[Any]
+ policy_type: Optional[Union[str, PolicyType]]
+ version: Optional[str]
+ versions: Optional[list[str]]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ description: Optional[str] = ...,
+ display_name: Optional[str] = ...,
+ external_evaluation_enforcement_settings: Optional[ExternalEvaluationEnforcementSettings] = ...,
+ metadata: Optional[Any] = ...,
+ mode: Optional[str] = ...,
+ parameters: Optional[dict[str, ParameterDefinitionsValue]] = ...,
+ policy_rule: Optional[Any] = ...,
+ policy_type: Optional[Union[str, PolicyType]] = ...,
+ version: Optional[str] = ...,
+ versions: Optional[list[str]] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicyDefinitionReference(_Model):
+ definition_version: Optional[str]
+ effective_definition_version: Optional[str]
+ group_names: Optional[list[str]]
+ latest_definition_version: Optional[str]
+ parameters: Optional[dict[str, ParameterValuesValue]]
+ policy_definition_id: str
+ policy_definition_reference_id: Optional[str]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ definition_version: Optional[str] = ...,
+ group_names: Optional[list[str]] = ...,
+ parameters: Optional[dict[str, ParameterValuesValue]] = ...,
+ policy_definition_id: str,
+ policy_definition_reference_id: Optional[str] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicyDefinitionVersion(ProxyResource):
+ id: str
+ name: str
+ properties: Optional[PolicyDefinitionVersionProperties]
+ system_data: SystemData
+ type: str
+
+ def __getattr__(self, name: str) -> Any: ...
+
+ @overload
+ def __init__(
+ self,
+ *,
+ properties: Optional[PolicyDefinitionVersionProperties] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+ def __setattr__(
+ self,
+ key: str,
+ value: Any
+ ) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicyDefinitionVersionListResult(_Model):
+ next_link: Optional[str]
+ value: list[PolicyDefinitionVersion]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ next_link: Optional[str] = ...,
+ value: list[PolicyDefinitionVersion]
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicyDefinitionVersionProperties(_Model):
+ description: Optional[str]
+ display_name: Optional[str]
+ external_evaluation_enforcement_settings: Optional[ExternalEvaluationEnforcementSettings]
+ metadata: Optional[Any]
+ mode: Optional[str]
+ parameters: Optional[dict[str, ParameterDefinitionsValue]]
+ policy_rule: Optional[Any]
+ policy_type: Optional[Union[str, PolicyType]]
+ version: Optional[str]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ description: Optional[str] = ...,
+ display_name: Optional[str] = ...,
+ external_evaluation_enforcement_settings: Optional[ExternalEvaluationEnforcementSettings] = ...,
+ metadata: Optional[Any] = ...,
+ mode: Optional[str] = ...,
+ parameters: Optional[dict[str, ParameterDefinitionsValue]] = ...,
+ policy_rule: Optional[Any] = ...,
+ policy_type: Optional[Union[str, PolicyType]] = ...,
+ version: Optional[str] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicyEnrollment(ExtensionResource):
+ e_tag: Optional[str]
+ id: str
+ name: str
+ properties: Optional[PolicyEnrollmentProperties]
+ system_data: SystemData
+ type: str
+
+ def __getattr__(self, name: str) -> Any: ...
+
+ @overload
+ def __init__(
+ self,
+ *,
+ e_tag: Optional[str] = ...,
+ properties: Optional[PolicyEnrollmentProperties] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+ def __setattr__(
+ self,
+ key: str,
+ value: Any
+ ) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicyEnrollmentProperties(_Model):
+ assignment_scope_validation: Optional[Union[str, AssignmentScopeValidation]]
+ description: Optional[str]
+ display_name: Optional[str]
+ metadata: Optional[Any]
+ policy_assignment_id: str
+ policy_assignment_instance_id: Optional[str]
+ policy_definition_reference_ids: Optional[list[str]]
+ resource_selectors: Optional[list[ResourceSelector]]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ assignment_scope_validation: Optional[Union[str, AssignmentScopeValidation]] = ...,
+ description: Optional[str] = ...,
+ display_name: Optional[str] = ...,
+ metadata: Optional[Any] = ...,
+ policy_assignment_id: str,
+ policy_definition_reference_ids: Optional[list[str]] = ...,
+ resource_selectors: Optional[list[ResourceSelector]] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicyEnrollmentUpdate(_Model):
+ properties: Optional[PolicyEnrollmentUpdateProperties]
+
+ def __getattr__(self, name: str) -> Any: ...
+
+ @overload
+ def __init__(
+ self,
+ *,
+ properties: Optional[PolicyEnrollmentUpdateProperties] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+ def __setattr__(
+ self,
+ key: str,
+ value: Any
+ ) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicyEnrollmentUpdateProperties(_Model):
+ assignment_scope_validation: Optional[Union[str, AssignmentScopeValidation]]
+ resource_selectors: Optional[list[ResourceSelector]]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ assignment_scope_validation: Optional[Union[str, AssignmentScopeValidation]] = ...,
+ resource_selectors: Optional[list[ResourceSelector]] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicyExemption(ExtensionResource):
+ id: str
+ name: str
+ properties: Optional[PolicyExemptionProperties]
+ system_data: SystemData
+ type: str
+
+ def __getattr__(self, name: str) -> Any: ...
+
+ @overload
+ def __init__(
+ self,
+ *,
+ properties: Optional[PolicyExemptionProperties] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+ def __setattr__(
+ self,
+ key: str,
+ value: Any
+ ) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicyExemptionProperties(_Model):
+ assignment_scope_validation: Optional[Union[str, AssignmentScopeValidation]]
+ description: Optional[str]
+ display_name: Optional[str]
+ exemption_category: Union[str, ExemptionCategory]
+ expires_on: Optional[datetime]
+ metadata: Optional[Any]
+ policy_assignment_id: str
+ policy_definition_reference_ids: Optional[list[str]]
+ resource_selectors: Optional[list[ResourceSelector]]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ assignment_scope_validation: Optional[Union[str, AssignmentScopeValidation]] = ...,
+ description: Optional[str] = ...,
+ display_name: Optional[str] = ...,
+ exemption_category: Union[str, ExemptionCategory],
+ expires_on: Optional[datetime] = ...,
+ metadata: Optional[Any] = ...,
+ policy_assignment_id: str,
+ policy_definition_reference_ids: Optional[list[str]] = ...,
+ resource_selectors: Optional[list[ResourceSelector]] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicyExemptionUpdate(_Model):
+ properties: Optional[PolicyExemptionUpdateProperties]
+
+ def __getattr__(self, name: str) -> Any: ...
+
+ @overload
+ def __init__(
+ self,
+ *,
+ properties: Optional[PolicyExemptionUpdateProperties] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+ def __setattr__(
+ self,
+ key: str,
+ value: Any
+ ) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicyExemptionUpdateProperties(_Model):
+ assignment_scope_validation: Optional[Union[str, AssignmentScopeValidation]]
+ resource_selectors: Optional[list[ResourceSelector]]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ assignment_scope_validation: Optional[Union[str, AssignmentScopeValidation]] = ...,
+ resource_selectors: Optional[list[ResourceSelector]] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicyLogInfo(_Model):
+ policy_assignment_id: Optional[str]
+ policy_assignment_name: Optional[str]
+ policy_assignment_scope: Optional[str]
+ policy_assignment_version: Optional[str]
+ policy_definition_effect: Optional[str]
+ policy_definition_id: Optional[str]
+ policy_definition_name: Optional[str]
+ policy_definition_reference_id: Optional[str]
+ policy_definition_version: Optional[str]
+ policy_set_definition_id: Optional[str]
+ policy_set_definition_name: Optional[str]
+ policy_set_definition_version: Optional[str]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ policy_assignment_id: Optional[str] = ...,
+ policy_assignment_name: Optional[str] = ...,
+ policy_assignment_scope: Optional[str] = ...,
+ policy_assignment_version: Optional[str] = ...,
+ policy_definition_effect: Optional[str] = ...,
+ policy_definition_id: Optional[str] = ...,
+ policy_definition_name: Optional[str] = ...,
+ policy_definition_reference_id: Optional[str] = ...,
+ policy_definition_version: Optional[str] = ...,
+ policy_set_definition_id: Optional[str] = ...,
+ policy_set_definition_name: Optional[str] = ...,
+ policy_set_definition_version: Optional[str] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicySetDefinition(ProxyResource):
+ id: str
+ name: str
+ properties: Optional[PolicySetDefinitionProperties]
+ system_data: SystemData
+ type: str
+
+ def __getattr__(self, name: str) -> Any: ...
+
+ @overload
+ def __init__(
+ self,
+ *,
+ properties: Optional[PolicySetDefinitionProperties] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+ def __setattr__(
+ self,
+ key: str,
+ value: Any
+ ) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicySetDefinitionProperties(_Model):
+ description: Optional[str]
+ display_name: Optional[str]
+ metadata: Optional[Any]
+ parameters: Optional[dict[str, ParameterDefinitionsValue]]
+ policy_definition_groups: Optional[list[PolicyDefinitionGroup]]
+ policy_definitions: list[PolicyDefinitionReference]
+ policy_type: Optional[Union[str, PolicyType]]
+ version: Optional[str]
+ versions: Optional[list[str]]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ description: Optional[str] = ...,
+ display_name: Optional[str] = ...,
+ metadata: Optional[Any] = ...,
+ parameters: Optional[dict[str, ParameterDefinitionsValue]] = ...,
+ policy_definition_groups: Optional[list[PolicyDefinitionGroup]] = ...,
+ policy_definitions: list[PolicyDefinitionReference],
+ policy_type: Optional[Union[str, PolicyType]] = ...,
+ version: Optional[str] = ...,
+ versions: Optional[list[str]] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicySetDefinitionVersion(ProxyResource):
+ id: str
+ name: str
+ properties: Optional[PolicySetDefinitionVersionProperties]
+ system_data: SystemData
+ type: str
+
+ def __getattr__(self, name: str) -> Any: ...
+
+ @overload
+ def __init__(
+ self,
+ *,
+ properties: Optional[PolicySetDefinitionVersionProperties] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+ def __setattr__(
+ self,
+ key: str,
+ value: Any
+ ) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicySetDefinitionVersionListResult(_Model):
+ next_link: Optional[str]
+ value: list[PolicySetDefinitionVersion]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ next_link: Optional[str] = ...,
+ value: list[PolicySetDefinitionVersion]
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicySetDefinitionVersionProperties(_Model):
+ description: Optional[str]
+ display_name: Optional[str]
+ metadata: Optional[Any]
+ parameters: Optional[dict[str, ParameterDefinitionsValue]]
+ policy_definition_groups: Optional[list[PolicyDefinitionGroup]]
+ policy_definitions: list[PolicyDefinitionReference]
+ policy_type: Optional[Union[str, PolicyType]]
+ version: Optional[str]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ description: Optional[str] = ...,
+ display_name: Optional[str] = ...,
+ metadata: Optional[Any] = ...,
+ parameters: Optional[dict[str, ParameterDefinitionsValue]] = ...,
+ policy_definition_groups: Optional[list[PolicyDefinitionGroup]] = ...,
+ policy_definitions: list[PolicyDefinitionReference],
+ policy_type: Optional[Union[str, PolicyType]] = ...,
+ version: Optional[str] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicyTokenEvaluatedRequestDetails(_Model):
+ api_version: str
+ authorization_action: str
+ content_hash: str
+ http_method: str
+ resource_id: str
+ uri: str
+
+ @overload
+ def __init__(
+ self,
+ *,
+ api_version: str,
+ authorization_action: str,
+ content_hash: str,
+ http_method: str,
+ resource_id: str,
+ uri: str
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicyTokenOperation(_Model):
+ content: Optional[Any]
+ http_method: str
+ uri: str
+
+ @overload
+ def __init__(
+ self,
+ *,
+ content: Optional[Any] = ...,
+ http_method: str,
+ uri: str
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicyTokenRequest(_Model):
+ change_reference: Optional[str]
+ operation: PolicyTokenOperation
+
+ @overload
+ def __init__(
+ self,
+ *,
+ change_reference: Optional[str] = ...,
+ operation: PolicyTokenOperation
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicyTokenResponse(_Model):
+ change_reference: Optional[str]
+ expiration: Optional[datetime]
+ message: Optional[str]
+ request_details: Optional[PolicyTokenEvaluatedRequestDetails]
+ result: Optional[Union[str, PolicyTokenResult]]
+ results: Optional[list[ExternalEvaluationEndpointInvocationResult]]
+ retry_after: Optional[datetime]
+ token: Optional[str]
+ token_id: Optional[str]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ change_reference: Optional[str] = ...,
+ expiration: Optional[datetime] = ...,
+ message: Optional[str] = ...,
+ request_details: Optional[PolicyTokenEvaluatedRequestDetails] = ...,
+ result: Optional[Union[str, PolicyTokenResult]] = ...,
+ results: Optional[list[ExternalEvaluationEndpointInvocationResult]] = ...,
+ retry_after: Optional[datetime] = ...,
+ token: Optional[str] = ...,
+ token_id: Optional[str] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicyTokenResult(str, Enum, metaclass=CaseInsensitiveEnumMeta):
+ FAILED = "Failed"
+ SUCCEEDED = "Succeeded"
+
+
+ class azure.mgmt.resource.policy.models.PolicyType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
+ BUILT_IN = "BuiltIn"
+ CUSTOM = "Custom"
+ NOT_SPECIFIED = "NotSpecified"
+ STATIC = "Static"
+
+
+ class azure.mgmt.resource.policy.models.PolicyVariableColumn(_Model):
+ column_name: str
+
+ @overload
+ def __init__(
+ self,
+ *,
+ column_name: str
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicyVariableProperties(_Model):
+ columns: list[PolicyVariableColumn]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ columns: list[PolicyVariableColumn]
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicyVariableValueColumnValue(_Model):
+ column_name: str
+ column_value: Any
+
+ @overload
+ def __init__(
+ self,
+ *,
+ column_name: str,
+ column_value: Any
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.PolicyVariableValueProperties(_Model):
+ values_property: list[PolicyVariableValueColumnValue]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ values_property: list[PolicyVariableValueColumnValue]
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.ProxyResource(Resource):
+ id: str
+ name: str
+ system_data: SystemData
+ type: str
+
+
+ class azure.mgmt.resource.policy.models.Resource(_Model):
+ id: Optional[str]
+ name: Optional[str]
+ system_data: Optional[SystemData]
+ type: Optional[str]
+
+
+ class azure.mgmt.resource.policy.models.ResourceIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
+ NONE = "None"
+ SYSTEM_ASSIGNED = "SystemAssigned"
+ USER_ASSIGNED = "UserAssigned"
+
+
+ class azure.mgmt.resource.policy.models.ResourceSelector(_Model):
+ name: Optional[str]
+ selectors: Optional[list[Selector]]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ name: Optional[str] = ...,
+ selectors: Optional[list[Selector]] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.ResourceTypeAliases(_Model):
+ aliases: Optional[list[Alias]]
+ resource_type: Optional[str]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ aliases: Optional[list[Alias]] = ...,
+ resource_type: Optional[str] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.Selector(_Model):
+ in_property: Optional[list[str]]
+ kind: Optional[Union[str, SelectorKind]]
+ not_in: Optional[list[str]]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ in_property: Optional[list[str]] = ...,
+ kind: Optional[Union[str, SelectorKind]] = ...,
+ not_in: Optional[list[str]] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.SelectorKind(str, Enum, metaclass=CaseInsensitiveEnumMeta):
+ GROUP_PRINCIPAL_ID = "groupPrincipalId"
+ POLICY_DEFINITION_REFERENCE_ID = "policyDefinitionReferenceId"
+ RESOURCE_LOCATION = "resourceLocation"
+ RESOURCE_TYPE = "resourceType"
+ RESOURCE_WITHOUT_LOCATION = "resourceWithoutLocation"
+ USER_PRINCIPAL_ID = "userPrincipalId"
+
+
+ class azure.mgmt.resource.policy.models.SelfServeExemptionSettings(_Model):
+ enabled: Optional[bool]
+ policy_definition_reference_ids: Optional[list[str]]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ enabled: Optional[bool] = ...,
+ policy_definition_reference_ids: Optional[list[str]] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.SystemData(_Model):
+ created_at: Optional[datetime]
+ created_by: Optional[str]
+ created_by_type: Optional[Union[str, CreatedByType]]
+ last_modified_at: Optional[datetime]
+ last_modified_by: Optional[str]
+ last_modified_by_type: Optional[Union[str, CreatedByType]]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ created_at: Optional[datetime] = ...,
+ created_by: Optional[str] = ...,
+ created_by_type: Optional[Union[str, CreatedByType]] = ...,
+ last_modified_at: Optional[datetime] = ...,
+ last_modified_by: Optional[str] = ...,
+ last_modified_by_type: Optional[Union[str, CreatedByType]] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.UserAssignedIdentitiesValue(_Model):
+ client_id: Optional[str]
+ principal_id: Optional[str]
+
+
+ class azure.mgmt.resource.policy.models.Variable(ProxyResource):
+ id: str
+ name: str
+ properties: Optional[PolicyVariableProperties]
+ system_data: SystemData
+ type: str
+
+ def __getattr__(self, name: str) -> Any: ...
+
+ @overload
+ def __init__(
+ self,
+ *,
+ properties: Optional[PolicyVariableProperties] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+ def __setattr__(
+ self,
+ key: str,
+ value: Any
+ ) -> None: ...
+
+
+ class azure.mgmt.resource.policy.models.VariableValue(ProxyResource):
+ id: str
+ name: str
+ properties: Optional[PolicyVariableValueProperties]
+ system_data: SystemData
+ type: str
+
+ def __getattr__(self, name: str) -> Any: ...
+
+ @overload
+ def __init__(
+ self,
+ *,
+ properties: Optional[PolicyVariableValueProperties] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+ def __setattr__(
+ self,
+ key: str,
+ value: Any
+ ) -> None: ...
+
+
+namespace azure.mgmt.resource.policy.operations
+
+ class azure.mgmt.resource.policy.operations.DataPolicyManifestsOperations:
+
+ def __init__(
+ self,
+ *args,
+ **kwargs
+ ) -> None: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2025-11-01', params_added_on={'2025-11-01': ['api_version', 'policy_mode', 'accept']}, api_versions_list=['2025-11-01', '2025-12-01-preview', '2026-01-01-preview'])
+ def get_by_policy_mode(
+ self,
+ policy_mode: str,
+ **kwargs: Any
+ ) -> DataPolicyManifest: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2025-11-01', params_added_on={'2025-11-01': ['api_version', 'filter', 'accept']}, api_versions_list=['2025-11-01', '2025-12-01-preview', '2026-01-01-preview'])
+ def list(
+ self,
+ *,
+ filter: Optional[str] = ...,
+ **kwargs: Any
+ ) -> ItemPaged[DataPolicyManifest]: ...
+
+
+ class azure.mgmt.resource.policy.operations.PolicyAssignmentsOperations:
+
+ def __init__(
+ self,
+ *args,
+ **kwargs
+ ) -> None: ...
+
+ @overload
+ def create(
+ self,
+ scope: str,
+ policy_assignment_name: str,
+ parameters: PolicyAssignment,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyAssignment: ...
+
+ @overload
+ def create(
+ self,
+ scope: str,
+ policy_assignment_name: str,
+ parameters: PolicyAssignment,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyAssignment: ...
+
+ @overload
+ def create(
+ self,
+ scope: str,
+ policy_assignment_name: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyAssignment: ...
+
+ @overload
+ def create_by_id(
+ self,
+ policy_assignment_id: str,
+ parameters: PolicyAssignment,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyAssignment: ...
+
+ @overload
+ def create_by_id(
+ self,
+ policy_assignment_id: str,
+ parameters: PolicyAssignment,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyAssignment: ...
+
+ @overload
+ def create_by_id(
+ self,
+ policy_assignment_id: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyAssignment: ...
+
+ @distributed_trace
+ def delete(
+ self,
+ scope: str,
+ policy_assignment_name: str,
+ **kwargs: Any
+ ) -> Optional[PolicyAssignment]: ...
+
+ @distributed_trace
+ def delete_by_id(
+ self,
+ policy_assignment_id: str,
+ **kwargs: Any
+ ) -> Optional[PolicyAssignment]: ...
+
+ @distributed_trace
+ def get(
+ self,
+ scope: str,
+ policy_assignment_name: str,
+ *,
+ expand: Optional[str] = ...,
+ **kwargs: Any
+ ) -> PolicyAssignment: ...
+
+ @distributed_trace
+ def get_by_id(
+ self,
+ policy_assignment_id: str,
+ **kwargs: Any
+ ) -> PolicyAssignment: ...
+
+ @distributed_trace
+ def list(
+ self,
+ *,
+ expand: Optional[str] = ...,
+ filter: Optional[str] = ...,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> ItemPaged[PolicyAssignment]: ...
+
+ @distributed_trace
+ def list_for_management_group(
+ self,
+ management_group_id: str,
+ *,
+ expand: Optional[str] = ...,
+ filter: Optional[str] = ...,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> ItemPaged[PolicyAssignment]: ...
+
+ @distributed_trace
+ def list_for_resource(
+ self,
+ resource_group_name: str,
+ resource_provider_namespace: str,
+ parent_resource_path: str,
+ resource_type: str,
+ resource_name: str,
+ *,
+ expand: Optional[str] = ...,
+ filter: Optional[str] = ...,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> ItemPaged[PolicyAssignment]: ...
+
+ @distributed_trace
+ def list_for_resource_group(
+ self,
+ resource_group_name: str,
+ *,
+ expand: Optional[str] = ...,
+ filter: Optional[str] = ...,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> ItemPaged[PolicyAssignment]: ...
+
+ @overload
+ def update(
+ self,
+ scope: str,
+ policy_assignment_name: str,
+ parameters: PolicyAssignmentUpdate,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyAssignment: ...
+
+ @overload
+ def update(
+ self,
+ scope: str,
+ policy_assignment_name: str,
+ parameters: PolicyAssignmentUpdate,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyAssignment: ...
+
+ @overload
+ def update(
+ self,
+ scope: str,
+ policy_assignment_name: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyAssignment: ...
+
+ @overload
+ def update_by_id(
+ self,
+ policy_assignment_id: str,
+ parameters: PolicyAssignmentUpdate,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyAssignment: ...
+
+ @overload
+ def update_by_id(
+ self,
+ policy_assignment_id: str,
+ parameters: PolicyAssignmentUpdate,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyAssignment: ...
+
+ @overload
+ def update_by_id(
+ self,
+ policy_assignment_id: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyAssignment: ...
+
+
+ class azure.mgmt.resource.policy.operations.PolicyDefinitionVersionsOperations:
+
+ def __init__(
+ self,
+ *args,
+ **kwargs
+ ) -> None: ...
+
+ @overload
+ def create_or_update(
+ self,
+ policy_definition_name: str,
+ policy_definition_version: str,
+ parameters: PolicyDefinitionVersion,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyDefinitionVersion: ...
+
+ @overload
+ def create_or_update(
+ self,
+ policy_definition_name: str,
+ policy_definition_version: str,
+ parameters: PolicyDefinitionVersion,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyDefinitionVersion: ...
+
+ @overload
+ def create_or_update(
+ self,
+ policy_definition_name: str,
+ policy_definition_version: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyDefinitionVersion: ...
+
+ @overload
+ def create_or_update_at_management_group(
+ self,
+ management_group_name: str,
+ policy_definition_name: str,
+ policy_definition_version: str,
+ parameters: PolicyDefinitionVersion,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyDefinitionVersion: ...
+
+ @overload
+ def create_or_update_at_management_group(
+ self,
+ management_group_name: str,
+ policy_definition_name: str,
+ policy_definition_version: str,
+ parameters: PolicyDefinitionVersion,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyDefinitionVersion: ...
+
+ @overload
+ def create_or_update_at_management_group(
+ self,
+ management_group_name: str,
+ policy_definition_name: str,
+ policy_definition_version: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyDefinitionVersion: ...
+
+ @distributed_trace
+ def delete(
+ self,
+ policy_definition_name: str,
+ policy_definition_version: str,
+ **kwargs: Any
+ ) -> None: ...
+
+ @distributed_trace
+ def delete_at_management_group(
+ self,
+ management_group_name: str,
+ policy_definition_name: str,
+ policy_definition_version: str,
+ **kwargs: Any
+ ) -> None: ...
+
+ @distributed_trace
+ def get(
+ self,
+ policy_definition_name: str,
+ policy_definition_version: str,
+ **kwargs: Any
+ ) -> PolicyDefinitionVersion: ...
+
+ @distributed_trace
+ def get_at_management_group(
+ self,
+ management_group_name: str,
+ policy_definition_name: str,
+ policy_definition_version: str,
+ **kwargs: Any
+ ) -> PolicyDefinitionVersion: ...
+
+ @distributed_trace
+ def get_built_in(
+ self,
+ policy_definition_name: str,
+ policy_definition_version: str,
+ **kwargs: Any
+ ) -> PolicyDefinitionVersion: ...
+
+ @distributed_trace
+ def list(
+ self,
+ policy_definition_name: str,
+ *,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> ItemPaged[PolicyDefinitionVersion]: ...
+
+ @distributed_trace
+ def list_all(self, **kwargs: Any) -> PolicyDefinitionVersionListResult: ...
+
+ @distributed_trace
+ def list_all_at_management_group(
+ self,
+ management_group_name: str,
+ **kwargs: Any
+ ) -> PolicyDefinitionVersionListResult: ...
+
+ @distributed_trace
+ def list_all_builtins(self, **kwargs: Any) -> PolicyDefinitionVersionListResult: ...
+
+ @distributed_trace
+ def list_built_in(
+ self,
+ policy_definition_name: str,
+ *,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> ItemPaged[PolicyDefinitionVersion]: ...
+
+ @distributed_trace
+ def list_by_management_group(
+ self,
+ management_group_name: str,
+ policy_definition_name: str,
+ *,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> ItemPaged[PolicyDefinitionVersion]: ...
+
+
+ class azure.mgmt.resource.policy.operations.PolicyDefinitionsOperations:
+
+ def __init__(
+ self,
+ *args,
+ **kwargs
+ ) -> None: ...
+
+ @overload
+ def create_or_update(
+ self,
+ policy_definition_name: str,
+ parameters: PolicyDefinition,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyDefinition: ...
+
+ @overload
+ def create_or_update(
+ self,
+ policy_definition_name: str,
+ parameters: PolicyDefinition,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyDefinition: ...
+
+ @overload
+ def create_or_update(
+ self,
+ policy_definition_name: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyDefinition: ...
+
+ @overload
+ def create_or_update_at_management_group(
+ self,
+ management_group_id: str,
+ policy_definition_name: str,
+ parameters: PolicyDefinition,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyDefinition: ...
+
+ @overload
+ def create_or_update_at_management_group(
+ self,
+ management_group_id: str,
+ policy_definition_name: str,
+ parameters: PolicyDefinition,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyDefinition: ...
+
+ @overload
+ def create_or_update_at_management_group(
+ self,
+ management_group_id: str,
+ policy_definition_name: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyDefinition: ...
+
+ @distributed_trace
+ def delete(
+ self,
+ policy_definition_name: str,
+ **kwargs: Any
+ ) -> None: ...
+
+ @distributed_trace
+ def delete_at_management_group(
+ self,
+ management_group_id: str,
+ policy_definition_name: str,
+ **kwargs: Any
+ ) -> None: ...
+
+ @distributed_trace
+ def get(
+ self,
+ policy_definition_name: str,
+ **kwargs: Any
+ ) -> PolicyDefinition: ...
+
+ @distributed_trace
+ def get_at_management_group(
+ self,
+ management_group_id: str,
+ policy_definition_name: str,
+ **kwargs: Any
+ ) -> PolicyDefinition: ...
+
+ @distributed_trace
+ def get_built_in(
+ self,
+ policy_definition_name: str,
+ **kwargs: Any
+ ) -> PolicyDefinition: ...
+
+ @distributed_trace
+ def list(
+ self,
+ *,
+ filter: Optional[str] = ...,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> ItemPaged[PolicyDefinition]: ...
+
+ @distributed_trace
+ def list_built_in(
+ self,
+ *,
+ filter: Optional[str] = ...,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> ItemPaged[PolicyDefinition]: ...
+
+ @distributed_trace
+ def list_by_management_group(
+ self,
+ management_group_id: str,
+ *,
+ filter: Optional[str] = ...,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> ItemPaged[PolicyDefinition]: ...
+
+
+ class azure.mgmt.resource.policy.operations.PolicyEnrollmentsOperations:
+
+ def __init__(
+ self,
+ *args,
+ **kwargs
+ ) -> None: ...
+
+ @overload
+ def create_or_update(
+ self,
+ scope: str,
+ policy_enrollment_name: str,
+ parameters: PolicyEnrollment,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyEnrollment: ...
+
+ @overload
+ def create_or_update(
+ self,
+ scope: str,
+ policy_enrollment_name: str,
+ parameters: PolicyEnrollment,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyEnrollment: ...
+
+ @overload
+ def create_or_update(
+ self,
+ scope: str,
+ policy_enrollment_name: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyEnrollment: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2026-01-01-preview', params_added_on={'2026-01-01-preview': ['api_version', 'scope', 'policy_enrollment_name']}, api_versions_list=['2026-01-01-preview'])
+ def delete(
+ self,
+ scope: str,
+ policy_enrollment_name: str,
+ **kwargs: Any
+ ) -> None: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2026-01-01-preview', params_added_on={'2026-01-01-preview': ['api_version', 'scope', 'policy_enrollment_name', 'accept']}, api_versions_list=['2026-01-01-preview'])
+ def get(
+ self,
+ scope: str,
+ policy_enrollment_name: str,
+ **kwargs: Any
+ ) -> PolicyEnrollment: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2026-01-01-preview', params_added_on={'2026-01-01-preview': ['api_version', 'subscription_id', 'filter', 'accept']}, api_versions_list=['2026-01-01-preview'])
+ def list(
+ self,
+ *,
+ filter: Optional[str] = ...,
+ **kwargs: Any
+ ) -> ItemPaged[PolicyEnrollment]: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2026-01-01-preview', params_added_on={'2026-01-01-preview': ['api_version', 'management_group_id', 'filter', 'accept']}, api_versions_list=['2026-01-01-preview'])
+ def list_for_management_group(
+ self,
+ management_group_id: str,
+ *,
+ filter: Optional[str] = ...,
+ **kwargs: Any
+ ) -> ItemPaged[PolicyEnrollment]: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2026-01-01-preview', params_added_on={'2026-01-01-preview': ['subscription_id', 'resource_group_name', 'resource_provider_namespace', 'parent_resource_path', 'resource_type', 'resource_name', 'api_version', 'filter', 'accept']}, api_versions_list=['2026-01-01-preview'])
+ def list_for_resource(
+ self,
+ resource_group_name: str,
+ resource_provider_namespace: str,
+ parent_resource_path: str,
+ resource_type: str,
+ resource_name: str,
+ *,
+ filter: Optional[str] = ...,
+ **kwargs: Any
+ ) -> ItemPaged[PolicyEnrollment]: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2026-01-01-preview', params_added_on={'2026-01-01-preview': ['api_version', 'subscription_id', 'resource_group_name', 'filter', 'accept']}, api_versions_list=['2026-01-01-preview'])
+ def list_for_resource_group(
+ self,
+ resource_group_name: str,
+ *,
+ filter: Optional[str] = ...,
+ **kwargs: Any
+ ) -> ItemPaged[PolicyEnrollment]: ...
+
+ @overload
+ def update(
+ self,
+ scope: str,
+ policy_enrollment_name: str,
+ parameters: PolicyEnrollmentUpdate,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyEnrollment: ...
+
+ @overload
+ def update(
+ self,
+ scope: str,
+ policy_enrollment_name: str,
+ parameters: PolicyEnrollmentUpdate,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyEnrollment: ...
+
+ @overload
+ def update(
+ self,
+ scope: str,
+ policy_enrollment_name: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyEnrollment: ...
+
+
+ class azure.mgmt.resource.policy.operations.PolicyExemptionsOperations:
+
+ def __init__(
+ self,
+ *args,
+ **kwargs
+ ) -> None: ...
+
+ @overload
+ def create_or_update(
+ self,
+ scope: str,
+ policy_exemption_name: str,
+ parameters: PolicyExemption,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyExemption: ...
+
+ @overload
+ def create_or_update(
+ self,
+ scope: str,
+ policy_exemption_name: str,
+ parameters: PolicyExemption,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyExemption: ...
+
+ @overload
+ def create_or_update(
+ self,
+ scope: str,
+ policy_exemption_name: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyExemption: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'scope', 'policy_exemption_name']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ def delete(
+ self,
+ scope: str,
+ policy_exemption_name: str,
+ **kwargs: Any
+ ) -> None: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'scope', 'policy_exemption_name', 'accept']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ def get(
+ self,
+ scope: str,
+ policy_exemption_name: str,
+ **kwargs: Any
+ ) -> PolicyExemption: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'subscription_id', 'filter', 'accept']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ def list(
+ self,
+ *,
+ filter: Optional[str] = ...,
+ **kwargs: Any
+ ) -> ItemPaged[PolicyExemption]: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'management_group_id', 'filter', 'accept']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ def list_for_management_group(
+ self,
+ management_group_id: str,
+ *,
+ filter: Optional[str] = ...,
+ **kwargs: Any
+ ) -> ItemPaged[PolicyExemption]: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['subscription_id', 'resource_group_name', 'resource_provider_namespace', 'parent_resource_path', 'resource_type', 'resource_name', 'api_version', 'filter', 'accept']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ def list_for_resource(
+ self,
+ resource_group_name: str,
+ resource_provider_namespace: str,
+ parent_resource_path: str,
+ resource_type: str,
+ resource_name: str,
+ *,
+ filter: Optional[str] = ...,
+ **kwargs: Any
+ ) -> ItemPaged[PolicyExemption]: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'subscription_id', 'resource_group_name', 'filter', 'accept']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ def list_for_resource_group(
+ self,
+ resource_group_name: str,
+ *,
+ filter: Optional[str] = ...,
+ **kwargs: Any
+ ) -> ItemPaged[PolicyExemption]: ...
+
+ @overload
+ def update(
+ self,
+ scope: str,
+ policy_exemption_name: str,
+ parameters: PolicyExemptionUpdate,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyExemption: ...
+
+ @overload
+ def update(
+ self,
+ scope: str,
+ policy_exemption_name: str,
+ parameters: PolicyExemptionUpdate,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyExemption: ...
+
+ @overload
+ def update(
+ self,
+ scope: str,
+ policy_exemption_name: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyExemption: ...
+
+
+ class azure.mgmt.resource.policy.operations.PolicySetDefinitionVersionsOperations:
+
+ def __init__(
+ self,
+ *args,
+ **kwargs
+ ) -> None: ...
+
+ @overload
+ def create_or_update(
+ self,
+ policy_set_definition_name: str,
+ policy_definition_version: str,
+ parameters: PolicySetDefinitionVersion,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicySetDefinitionVersion: ...
+
+ @overload
+ def create_or_update(
+ self,
+ policy_set_definition_name: str,
+ policy_definition_version: str,
+ parameters: PolicySetDefinitionVersion,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicySetDefinitionVersion: ...
+
+ @overload
+ def create_or_update(
+ self,
+ policy_set_definition_name: str,
+ policy_definition_version: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicySetDefinitionVersion: ...
+
+ @overload
+ def create_or_update_at_management_group(
+ self,
+ management_group_name: str,
+ policy_set_definition_name: str,
+ policy_definition_version: str,
+ parameters: PolicySetDefinitionVersion,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicySetDefinitionVersion: ...
+
+ @overload
+ def create_or_update_at_management_group(
+ self,
+ management_group_name: str,
+ policy_set_definition_name: str,
+ policy_definition_version: str,
+ parameters: PolicySetDefinitionVersion,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicySetDefinitionVersion: ...
+
+ @overload
+ def create_or_update_at_management_group(
+ self,
+ management_group_name: str,
+ policy_set_definition_name: str,
+ policy_definition_version: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicySetDefinitionVersion: ...
+
+ @distributed_trace
+ def delete(
+ self,
+ policy_set_definition_name: str,
+ policy_definition_version: str,
+ **kwargs: Any
+ ) -> None: ...
+
+ @distributed_trace
+ def delete_at_management_group(
+ self,
+ management_group_name: str,
+ policy_set_definition_name: str,
+ policy_definition_version: str,
+ **kwargs: Any
+ ) -> None: ...
+
+ @distributed_trace
+ def get(
+ self,
+ policy_set_definition_name: str,
+ policy_definition_version: str,
+ *,
+ expand: Optional[str] = ...,
+ **kwargs: Any
+ ) -> PolicySetDefinitionVersion: ...
+
+ @distributed_trace
+ def get_at_management_group(
+ self,
+ management_group_name: str,
+ policy_set_definition_name: str,
+ policy_definition_version: str,
+ *,
+ expand: Optional[str] = ...,
+ **kwargs: Any
+ ) -> PolicySetDefinitionVersion: ...
+
+ @distributed_trace
+ def get_built_in(
+ self,
+ policy_set_definition_name: str,
+ policy_definition_version: str,
+ *,
+ expand: Optional[str] = ...,
+ **kwargs: Any
+ ) -> PolicySetDefinitionVersion: ...
+
+ @distributed_trace
+ def list(
+ self,
+ policy_set_definition_name: str,
+ *,
+ expand: Optional[str] = ...,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> ItemPaged[PolicySetDefinitionVersion]: ...
+
+ @distributed_trace
+ def list_all(self, **kwargs: Any) -> PolicySetDefinitionVersionListResult: ...
+
+ @distributed_trace
+ def list_all_at_management_group(
+ self,
+ management_group_name: str,
+ **kwargs: Any
+ ) -> PolicySetDefinitionVersionListResult: ...
+
+ @distributed_trace
+ def list_all_builtins(self, **kwargs: Any) -> PolicySetDefinitionVersionListResult: ...
+
+ @distributed_trace
+ def list_built_in(
+ self,
+ policy_set_definition_name: str,
+ *,
+ expand: Optional[str] = ...,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> ItemPaged[PolicySetDefinitionVersion]: ...
+
+ @distributed_trace
+ def list_by_management_group(
+ self,
+ management_group_name: str,
+ policy_set_definition_name: str,
+ *,
+ expand: Optional[str] = ...,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> ItemPaged[PolicySetDefinitionVersion]: ...
+
+
+ class azure.mgmt.resource.policy.operations.PolicySetDefinitionsOperations:
+
+ def __init__(
+ self,
+ *args,
+ **kwargs
+ ) -> None: ...
+
+ @overload
+ def create_or_update(
+ self,
+ policy_set_definition_name: str,
+ parameters: PolicySetDefinition,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicySetDefinition: ...
+
+ @overload
+ def create_or_update(
+ self,
+ policy_set_definition_name: str,
+ parameters: PolicySetDefinition,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicySetDefinition: ...
+
+ @overload
+ def create_or_update(
+ self,
+ policy_set_definition_name: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicySetDefinition: ...
+
+ @overload
+ def create_or_update_at_management_group(
+ self,
+ management_group_id: str,
+ policy_set_definition_name: str,
+ parameters: PolicySetDefinition,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicySetDefinition: ...
+
+ @overload
+ def create_or_update_at_management_group(
+ self,
+ management_group_id: str,
+ policy_set_definition_name: str,
+ parameters: PolicySetDefinition,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicySetDefinition: ...
+
+ @overload
+ def create_or_update_at_management_group(
+ self,
+ management_group_id: str,
+ policy_set_definition_name: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicySetDefinition: ...
+
+ @distributed_trace
+ def delete(
+ self,
+ policy_set_definition_name: str,
+ **kwargs: Any
+ ) -> None: ...
+
+ @distributed_trace
+ def delete_at_management_group(
+ self,
+ management_group_id: str,
+ policy_set_definition_name: str,
+ **kwargs: Any
+ ) -> None: ...
+
+ @distributed_trace
+ def get(
+ self,
+ policy_set_definition_name: str,
+ *,
+ expand: Optional[str] = ...,
+ **kwargs: Any
+ ) -> PolicySetDefinition: ...
+
+ @distributed_trace
+ def get_at_management_group(
+ self,
+ management_group_id: str,
+ policy_set_definition_name: str,
+ *,
+ expand: Optional[str] = ...,
+ **kwargs: Any
+ ) -> PolicySetDefinition: ...
+
+ @distributed_trace
+ def get_built_in(
+ self,
+ policy_set_definition_name: str,
+ *,
+ expand: Optional[str] = ...,
+ **kwargs: Any
+ ) -> PolicySetDefinition: ...
+
+ @distributed_trace
+ def list(
+ self,
+ *,
+ expand: Optional[str] = ...,
+ filter: Optional[str] = ...,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> ItemPaged[PolicySetDefinition]: ...
+
+ @distributed_trace
+ def list_built_in(
+ self,
+ *,
+ expand: Optional[str] = ...,
+ filter: Optional[str] = ...,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> ItemPaged[PolicySetDefinition]: ...
+
+ @distributed_trace
+ def list_by_management_group(
+ self,
+ management_group_id: str,
+ *,
+ expand: Optional[str] = ...,
+ filter: Optional[str] = ...,
+ top: Optional[int] = ...,
+ **kwargs: Any
+ ) -> ItemPaged[PolicySetDefinition]: ...
+
+
+ class azure.mgmt.resource.policy.operations.PolicyTokensOperations:
+
+ def __init__(
+ self,
+ *args,
+ **kwargs
+ ) -> None: ...
+
+ @overload
+ def acquire(
+ self,
+ parameters: PolicyTokenRequest,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyTokenResponse: ...
+
+ @overload
+ def acquire(
+ self,
+ parameters: PolicyTokenRequest,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyTokenResponse: ...
+
+ @overload
+ def acquire(
+ self,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyTokenResponse: ...
+
+ @overload
+ def acquire_at_management_group(
+ self,
+ management_group_name: str,
+ parameters: PolicyTokenRequest,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyTokenResponse: ...
+
+ @overload
+ def acquire_at_management_group(
+ self,
+ management_group_name: str,
+ parameters: PolicyTokenRequest,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyTokenResponse: ...
+
+ @overload
+ def acquire_at_management_group(
+ self,
+ management_group_name: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> PolicyTokenResponse: ...
+
+
+ class azure.mgmt.resource.policy.operations.VariableValuesOperations:
+
+ def __init__(
+ self,
+ *args,
+ **kwargs
+ ) -> None: ...
+
+ @overload
+ def create_or_update(
+ self,
+ variable_name: str,
+ variable_value_name: str,
+ parameters: VariableValue,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> VariableValue: ...
+
+ @overload
+ def create_or_update(
+ self,
+ variable_name: str,
+ variable_value_name: str,
+ parameters: VariableValue,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> VariableValue: ...
+
+ @overload
+ def create_or_update(
+ self,
+ variable_name: str,
+ variable_value_name: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> VariableValue: ...
+
+ @overload
+ def create_or_update_at_management_group(
+ self,
+ management_group_id: str,
+ variable_name: str,
+ variable_value_name: str,
+ parameters: VariableValue,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> VariableValue: ...
+
+ @overload
+ def create_or_update_at_management_group(
+ self,
+ management_group_id: str,
+ variable_name: str,
+ variable_value_name: str,
+ parameters: VariableValue,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> VariableValue: ...
+
+ @overload
+ def create_or_update_at_management_group(
+ self,
+ management_group_id: str,
+ variable_name: str,
+ variable_value_name: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> VariableValue: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'subscription_id', 'variable_name', 'variable_value_name']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ def delete(
+ self,
+ variable_name: str,
+ variable_value_name: str,
+ **kwargs: Any
+ ) -> None: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'management_group_id', 'variable_name', 'variable_value_name']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ def delete_at_management_group(
+ self,
+ management_group_id: str,
+ variable_name: str,
+ variable_value_name: str,
+ **kwargs: Any
+ ) -> None: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'subscription_id', 'variable_name', 'variable_value_name', 'accept']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ def get(
+ self,
+ variable_name: str,
+ variable_value_name: str,
+ **kwargs: Any
+ ) -> VariableValue: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'management_group_id', 'variable_name', 'variable_value_name', 'accept']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ def get_at_management_group(
+ self,
+ management_group_id: str,
+ variable_name: str,
+ variable_value_name: str,
+ **kwargs: Any
+ ) -> VariableValue: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'subscription_id', 'variable_name', 'accept']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ def list(
+ self,
+ variable_name: str,
+ **kwargs: Any
+ ) -> ItemPaged[VariableValue]: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'management_group_id', 'variable_name', 'accept']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ def list_for_management_group(
+ self,
+ management_group_id: str,
+ variable_name: str,
+ **kwargs: Any
+ ) -> ItemPaged[VariableValue]: ...
+
+
+ class azure.mgmt.resource.policy.operations.VariablesOperations:
+
+ def __init__(
+ self,
+ *args,
+ **kwargs
+ ) -> None: ...
+
+ @overload
+ def create_or_update(
+ self,
+ variable_name: str,
+ parameters: Variable,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> Variable: ...
+
+ @overload
+ def create_or_update(
+ self,
+ variable_name: str,
+ parameters: Variable,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> Variable: ...
+
+ @overload
+ def create_or_update(
+ self,
+ variable_name: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> Variable: ...
+
+ @overload
+ def create_or_update_at_management_group(
+ self,
+ management_group_id: str,
+ variable_name: str,
+ parameters: Variable,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> Variable: ...
+
+ @overload
+ def create_or_update_at_management_group(
+ self,
+ management_group_id: str,
+ variable_name: str,
+ parameters: Variable,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> Variable: ...
+
+ @overload
+ def create_or_update_at_management_group(
+ self,
+ management_group_id: str,
+ variable_name: str,
+ parameters: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> Variable: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'subscription_id', 'variable_name']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ def delete(
+ self,
+ variable_name: str,
+ **kwargs: Any
+ ) -> None: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'management_group_id', 'variable_name']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ def delete_at_management_group(
+ self,
+ management_group_id: str,
+ variable_name: str,
+ **kwargs: Any
+ ) -> None: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'subscription_id', 'variable_name', 'accept']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ def get(
+ self,
+ variable_name: str,
+ **kwargs: Any
+ ) -> Variable: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'management_group_id', 'variable_name', 'accept']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ def get_at_management_group(
+ self,
+ management_group_id: str,
+ variable_name: str,
+ **kwargs: Any
+ ) -> Variable: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'subscription_id', 'accept']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ def list(self, **kwargs: Any) -> ItemPaged[Variable]: ...
+
+ @distributed_trace
+ @api_version_validation(method_added_on='2025-12-01-preview', params_added_on={'2025-12-01-preview': ['api_version', 'management_group_id', 'accept']}, api_versions_list=['2025-12-01-preview', '2026-01-01-preview'])
+ def list_for_management_group(
+ self,
+ management_group_id: str,
+ **kwargs: Any
+ ) -> ItemPaged[Variable]: ...
+
+
+namespace azure.mgmt.resource.policy.types
+
+ class azure.mgmt.resource.policy.types.ExtensionResource(Resource):
+ key "id": str
+ key "name": str
+ key "systemData": ForwardRef('SystemData', module='types')
+ key "type": str
+ id: str
+ name: str
+ systemData: SystemData
+ type: str
+
+
+ class azure.mgmt.resource.policy.types.ExternalEvaluationEndpointSettings(TypedDict, total=False):
+ key "details": Any
+ key "kind": str
+ details: Any
+ kind: str
+
+
+ class azure.mgmt.resource.policy.types.ExternalEvaluationEnforcementSettings(TypedDict, total=False):
+ key "endpointSettings": ForwardRef('ExternalEvaluationEndpointSettings', module='types')
+ key "missingTokenAction": str
+ key "resultLifespan": str
+ endpointSettings: ExternalEvaluationEndpointSettings
+ missingTokenAction: str
+ resultLifespan: str
+ roleDefinitionIds: list[str]
+
+
+ class azure.mgmt.resource.policy.types.Identity(TypedDict, total=False):
+ key "principalId": str
+ key "tenantId": str
+ key "type": Union[str, ResourceIdentityType]
+ principalId: str
+ tenantId: str
+ type: Union[str, ResourceIdentityType]
+ userAssignedIdentities: dict[str, UserAssignedIdentitiesValue]
+
+
+ class azure.mgmt.resource.policy.types.NonComplianceMessage(TypedDict, total=False):
+ key "message": Required[str]
+ key "policyDefinitionReferenceId": str
+ message: str
+ policyDefinitionReferenceId: str
+
+
+ class azure.mgmt.resource.policy.types.Override(TypedDict, total=False):
+ key "kind": Union[str, OverrideKind]
+ key "value": str
+ kind: Union[str, OverrideKind]
+ selectors: list[Selector]
+ value: str
+
+
+ class azure.mgmt.resource.policy.types.ParameterDefinitionsValue(TypedDict, total=False):
+ key "defaultValue": Any
+ key "metadata": ForwardRef('ParameterDefinitionsValueMetadata', module='types')
+ key "schema": Any
+ key "type": Union[str, ParameterType]
+ allowedValues: list[Any]
+ defaultValue: Any
+ metadata: ParameterDefinitionsValueMetadata
+ schema: Any
+ type: Union[str, ParameterType]
+
+
+ class azure.mgmt.resource.policy.types.ParameterDefinitionsValueMetadata(TypedDict, total=False):
+ key "assignPermissions": bool
+ key "description": str
+ key "displayName": str
+ key "strongType": str
+ assignPermissions: bool
+ description: str
+ displayName: str
+ strongType: str
+
+
+ class azure.mgmt.resource.policy.types.ParameterValuesValue(TypedDict, total=False):
+ key "value": Any
+ value: Any
+
+
+ class azure.mgmt.resource.policy.types.PolicyAssignment(ExtensionResource):
+ key "id": str
+ key "identity": ForwardRef('Identity', module='types')
+ key "location": str
+ key "name": str
+ key "properties": ForwardRef('PolicyAssignmentProperties', module='types')
+ key "systemData": ForwardRef('SystemData', module='types')
+ key "type": str
+ id: str
+ identity: Identity
+ location: str
+ name: str
+ properties: PolicyAssignmentProperties
+ systemData: SystemData
+ type: str
+
+
+ class azure.mgmt.resource.policy.types.PolicyAssignmentProperties(TypedDict, total=False):
+ key "assignmentType": Union[str, AssignmentType]
+ key "definitionVersion": str
+ key "description": str
+ key "displayName": str
+ key "effectiveDefinitionVersion": str
+ key "enforcementMode": Union[str, EnforcementMode]
+ key "instanceId": str
+ key "latestDefinitionVersion": str
+ key "metadata": Any
+ key "policyDefinitionId": str
+ key "scope": str
+ key "selfServeExemptionSettings": ForwardRef('SelfServeExemptionSettings', module='types')
+ assignmentType: Union[str, AssignmentType]
+ definitionVersion: str
+ description: str
+ displayName: str
+ effectiveDefinitionVersion: str
+ enforcementMode: Union[str, EnforcementMode]
+ instanceId: str
+ latestDefinitionVersion: str
+ metadata: Any
+ nonComplianceMessages: list[NonComplianceMessage]
+ notScopes: list[str]
+ overrides: list[Override]
+ parameters: dict[str, ParameterValuesValue]
+ policyDefinitionId: str
+ resourceSelectors: list[ResourceSelector]
+ scope: str
+ selfServeExemptionSettings: SelfServeExemptionSettings
+
+
+ class azure.mgmt.resource.policy.types.PolicyAssignmentUpdate(TypedDict, total=False):
+ key "identity": ForwardRef('Identity', module='types')
+ key "location": str
+ key "properties": ForwardRef('PolicyAssignmentUpdateProperties', module='types')
+ identity: Identity
+ location: str
+ properties: PolicyAssignmentUpdateProperties
+
+
+ class azure.mgmt.resource.policy.types.PolicyAssignmentUpdateProperties(TypedDict, total=False):
+ key "selfServeExemptionSettings": ForwardRef('SelfServeExemptionSettings', module='types')
+ overrides: list[Override]
+ resourceSelectors: list[ResourceSelector]
+ selfServeExemptionSettings: SelfServeExemptionSettings
+
+
+ class azure.mgmt.resource.policy.types.PolicyDefinition(ProxyResource):
+ key "id": str
+ key "name": str
+ key "properties": ForwardRef('PolicyDefinitionProperties', module='types')
+ key "systemData": ForwardRef('SystemData', module='types')
+ key "type": str
+ id: str
+ name: str
+ properties: PolicyDefinitionProperties
+ systemData: SystemData
+ type: str
+
+
+ class azure.mgmt.resource.policy.types.PolicyDefinitionGroup(TypedDict, total=False):
+ key "additionalMetadataId": str
+ key "category": str
+ key "description": str
+ key "displayName": str
+ key "name": Required[str]
+ additionalMetadataId: str
+ category: str
+ description: str
+ displayName: str
+ name: str
+
+
+ class azure.mgmt.resource.policy.types.PolicyDefinitionProperties(TypedDict, total=False):
+ key "description": str
+ key "displayName": str
+ key "externalEvaluationEnforcementSettings": ForwardRef('ExternalEvaluationEnforcementSettings', module='types')
+ key "metadata": Any
+ key "mode": str
+ key "policyRule": Any
+ key "policyType": Union[str, PolicyType]
+ key "version": str
+ description: str
+ displayName: str
+ externalEvaluationEnforcementSettings: ExternalEvaluationEnforcementSettings
+ metadata: Any
+ mode: str
+ parameters: dict[str, ParameterDefinitionsValue]
+ policyRule: Any
+ policyType: Union[str, PolicyType]
+ version: str
+ versions: list[str]
+
+
+ class azure.mgmt.resource.policy.types.PolicyDefinitionReference(TypedDict, total=False):
+ key "definitionVersion": str
+ key "effectiveDefinitionVersion": str
+ key "latestDefinitionVersion": str
+ key "policyDefinitionId": Required[str]
+ key "policyDefinitionReferenceId": str
+ definitionVersion: str
+ effectiveDefinitionVersion: str
+ groupNames: list[str]
+ latestDefinitionVersion: str
+ parameters: dict[str, ParameterValuesValue]
+ policyDefinitionId: str
+ policyDefinitionReferenceId: str
+
+
+ class azure.mgmt.resource.policy.types.PolicyDefinitionVersion(ProxyResource):
+ key "id": str
+ key "name": str
+ key "properties": ForwardRef('PolicyDefinitionVersionProperties', module='types')
+ key "systemData": ForwardRef('SystemData', module='types')
+ key "type": str
+ id: str
+ name: str
+ properties: PolicyDefinitionVersionProperties
+ systemData: SystemData
+ type: str
+
+
+ class azure.mgmt.resource.policy.types.PolicyDefinitionVersionProperties(TypedDict, total=False):
+ key "description": str
+ key "displayName": str
+ key "externalEvaluationEnforcementSettings": ForwardRef('ExternalEvaluationEnforcementSettings', module='types')
+ key "metadata": Any
+ key "mode": str
+ key "policyRule": Any
+ key "policyType": Union[str, PolicyType]
+ key "version": str
+ description: str
+ displayName: str
+ externalEvaluationEnforcementSettings: ExternalEvaluationEnforcementSettings
+ metadata: Any
+ mode: str
+ parameters: dict[str, ParameterDefinitionsValue]
+ policyRule: Any
+ policyType: Union[str, PolicyType]
+ version: str
+
+
+ class azure.mgmt.resource.policy.types.PolicyEnrollment(ExtensionResource):
+ key "eTag": str
+ key "id": str
+ key "name": str
+ key "properties": ForwardRef('PolicyEnrollmentProperties', module='types')
+ key "systemData": ForwardRef('SystemData', module='types')
+ key "type": str
+ eTag: str
+ id: str
+ name: str
+ properties: PolicyEnrollmentProperties
+ systemData: SystemData
+ type: str
+
+
+ class azure.mgmt.resource.policy.types.PolicyEnrollmentProperties(TypedDict, total=False):
+ key "assignmentScopeValidation": Union[str, AssignmentScopeValidation]
+ key "description": str
+ key "displayName": str
+ key "metadata": Any
+ key "policyAssignmentId": Required[str]
+ key "policyAssignmentInstanceId": str
+ assignmentScopeValidation: Union[str, AssignmentScopeValidation]
+ description: str
+ displayName: str
+ metadata: Any
+ policyAssignmentId: str
+ policyAssignmentInstanceId: str
+ policyDefinitionReferenceIds: list[str]
+ resourceSelectors: list[ResourceSelector]
+
+
+ class azure.mgmt.resource.policy.types.PolicyEnrollmentUpdate(TypedDict, total=False):
+ key "properties": ForwardRef('PolicyEnrollmentUpdateProperties', module='types')
+ properties: PolicyEnrollmentUpdateProperties
+
+
+ class azure.mgmt.resource.policy.types.PolicyEnrollmentUpdateProperties(TypedDict, total=False):
+ key "assignmentScopeValidation": Union[str, AssignmentScopeValidation]
+ assignmentScopeValidation: Union[str, AssignmentScopeValidation]
+ resourceSelectors: list[ResourceSelector]
+
+
+ class azure.mgmt.resource.policy.types.PolicyExemption(ExtensionResource):
+ key "id": str
+ key "name": str
+ key "properties": ForwardRef('PolicyExemptionProperties', module='types')
+ key "systemData": ForwardRef('SystemData', module='types')
+ key "type": str
+ id: str
+ name: str
+ properties: PolicyExemptionProperties
+ systemData: SystemData
+ type: str
+
+
+ class azure.mgmt.resource.policy.types.PolicyExemptionProperties(TypedDict, total=False):
+ key "assignmentScopeValidation": Union[str, AssignmentScopeValidation]
+ key "description": str
+ key "displayName": str
+ key "exemptionCategory": Required[Union[str, ExemptionCategory]]
+ key "expiresOn": str
+ key "metadata": Any
+ key "policyAssignmentId": Required[str]
+ assignmentScopeValidation: Union[str, AssignmentScopeValidation]
+ description: str
+ displayName: str
+ exemptionCategory: Union[str, ExemptionCategory]
+ expiresOn: str
+ metadata: Any
+ policyAssignmentId: str
+ policyDefinitionReferenceIds: list[str]
+ resourceSelectors: list[ResourceSelector]
+
+
+ class azure.mgmt.resource.policy.types.PolicyExemptionUpdate(TypedDict, total=False):
+ key "properties": ForwardRef('PolicyExemptionUpdateProperties', module='types')
+ properties: PolicyExemptionUpdateProperties
+
+
+ class azure.mgmt.resource.policy.types.PolicyExemptionUpdateProperties(TypedDict, total=False):
+ key "assignmentScopeValidation": Union[str, AssignmentScopeValidation]
+ assignmentScopeValidation: Union[str, AssignmentScopeValidation]
+ resourceSelectors: list[ResourceSelector]
+
+
+ class azure.mgmt.resource.policy.types.PolicySetDefinition(ProxyResource):
+ key "id": str
+ key "name": str
+ key "properties": ForwardRef('PolicySetDefinitionProperties', module='types')
+ key "systemData": ForwardRef('SystemData', module='types')
+ key "type": str
+ id: str
+ name: str
+ properties: PolicySetDefinitionProperties
+ systemData: SystemData
+ type: str
+
+
+ class azure.mgmt.resource.policy.types.PolicySetDefinitionProperties(TypedDict, total=False):
+ key "description": str
+ key "displayName": str
+ key "metadata": Any
+ key "policyDefinitions": Required[list[PolicyDefinitionReference]]
+ key "policyType": Union[str, PolicyType]
+ key "version": str
+ description: str
+ displayName: str
+ metadata: Any
+ parameters: dict[str, ParameterDefinitionsValue]
+ policyDefinitionGroups: list[PolicyDefinitionGroup]
+ policyDefinitions: list[PolicyDefinitionReference]
+ policyType: Union[str, PolicyType]
+ version: str
+ versions: list[str]
+
+
+ class azure.mgmt.resource.policy.types.PolicySetDefinitionVersion(ProxyResource):
+ key "id": str
+ key "name": str
+ key "properties": ForwardRef('PolicySetDefinitionVersionProperties', module='types')
+ key "systemData": ForwardRef('SystemData', module='types')
+ key "type": str
+ id: str
+ name: str
+ properties: PolicySetDefinitionVersionProperties
+ systemData: SystemData
+ type: str
+
+
+ class azure.mgmt.resource.policy.types.PolicySetDefinitionVersionProperties(TypedDict, total=False):
+ key "description": str
+ key "displayName": str
+ key "metadata": Any
+ key "policyDefinitions": Required[list[PolicyDefinitionReference]]
+ key "policyType": Union[str, PolicyType]
+ key "version": str
+ description: str
+ displayName: str
+ metadata: Any
+ parameters: dict[str, ParameterDefinitionsValue]
+ policyDefinitionGroups: list[PolicyDefinitionGroup]
+ policyDefinitions: list[PolicyDefinitionReference]
+ policyType: Union[str, PolicyType]
+ version: str
+
+
+ class azure.mgmt.resource.policy.types.PolicyTokenOperation(TypedDict, total=False):
+ key "content": Any
+ key "httpMethod": Required[str]
+ key "uri": Required[str]
+ content: Any
+ httpMethod: str
+ uri: str
+
+
+ class azure.mgmt.resource.policy.types.PolicyTokenRequest(TypedDict, total=False):
+ key "changeReference": str
+ key "operation": Required[PolicyTokenOperation]
+ changeReference: str
+ operation: PolicyTokenOperation
+
+
+ class azure.mgmt.resource.policy.types.PolicyVariableColumn(TypedDict, total=False):
+ key "columnName": Required[str]
+ columnName: str
+
+
+ class azure.mgmt.resource.policy.types.PolicyVariableProperties(TypedDict, total=False):
+ key "columns": Required[list[PolicyVariableColumn]]
+ columns: list[PolicyVariableColumn]
+
+
+ class azure.mgmt.resource.policy.types.PolicyVariableValueColumnValue(TypedDict, total=False):
+ key "columnName": Required[str]
+ key "columnValue": Required[Any]
+ columnName: str
+ columnValue: Any
+
+
+ class azure.mgmt.resource.policy.types.PolicyVariableValueProperties(TypedDict, total=False):
+ key "values": Required[list[PolicyVariableValueColumnValue]]
+ values: list[PolicyVariableValueColumnValue]
+
+
+ class azure.mgmt.resource.policy.types.ProxyResource(Resource):
+ key "id": str
+ key "name": str
+ key "systemData": ForwardRef('SystemData', module='types')
+ key "type": str
+ id: str
+ name: str
+ systemData: SystemData
+ type: str
+
+
+ class azure.mgmt.resource.policy.types.Resource(TypedDict, total=False):
+ key "id": str
+ key "name": str
+ key "systemData": ForwardRef('SystemData', module='types')
+ key "type": str
+ id: str
+ name: str
+ systemData: SystemData
+ type: str
+
+
+ class azure.mgmt.resource.policy.types.ResourceSelector(TypedDict, total=False):
+ key "name": str
+ name: str
+ selectors: list[Selector]
+
+
+ class azure.mgmt.resource.policy.types.Selector(TypedDict):
+ key "kind": Union[str, SelectorKind]
+ in: list[str]
+ kind: Union[str, SelectorKind]
+ notIn: list[str]
+
+
+ class azure.mgmt.resource.policy.types.SelfServeExemptionSettings(TypedDict, total=False):
+ key "enabled": bool
+ enabled: bool
+ policyDefinitionReferenceIds: list[str]
+
+
+ class azure.mgmt.resource.policy.types.SystemData(TypedDict, total=False):
+ key "createdAt": str
+ key "createdBy": str
+ key "createdByType": Union[str, CreatedByType]
+ key "lastModifiedAt": str
+ key "lastModifiedBy": str
+ key "lastModifiedByType": Union[str, CreatedByType]
+ createdAt: str
+ createdBy: str
+ createdByType: Union[str, CreatedByType]
+ lastModifiedAt: str
+ lastModifiedBy: str
+ lastModifiedByType: Union[str, CreatedByType]
+
+
+ class azure.mgmt.resource.policy.types.UserAssignedIdentitiesValue(TypedDict, total=False):
+ key "clientId": str
+ key "principalId": str
+ clientId: str
+ principalId: str
+
+
+ class azure.mgmt.resource.policy.types.Variable(ProxyResource):
+ key "id": str
+ key "name": str
+ key "properties": ForwardRef('PolicyVariableProperties', module='types')
+ key "systemData": ForwardRef('SystemData', module='types')
+ key "type": str
+ id: str
+ name: str
+ properties: PolicyVariableProperties
+ systemData: SystemData
+ type: str
+
+
+ class azure.mgmt.resource.policy.types.VariableValue(ProxyResource):
+ key "id": str
+ key "name": str
+ key "properties": ForwardRef('PolicyVariableValueProperties', module='types')
+ key "systemData": ForwardRef('SystemData', module='types')
+ key "type": str
+ id: str
+ name: str
+ properties: PolicyVariableValueProperties
+ systemData: SystemData
+ type: str
+
+
+```
\ No newline at end of file
diff --git a/sdk/resources/azure-mgmt-resource-policy/api.metadata.yml b/sdk/resources/azure-mgmt-resource-policy/api.metadata.yml
new file mode 100644
index 000000000000..8c2f7a2f0da6
--- /dev/null
+++ b/sdk/resources/azure-mgmt-resource-policy/api.metadata.yml
@@ -0,0 +1,3 @@
+apiMdSha256: 18a21545b6cd429480571fd62fd6bbd547720e8636fc8bedc00567227977f3c3
+parserVersion: 0.3.31
+pythonVersion: 3.13.15
diff --git a/sdk/resources/azure-mgmt-resource-policy/apiview-properties.json b/sdk/resources/azure-mgmt-resource-policy/apiview-properties.json
index b4c6f7dd9de7..66e776aaafb1 100644
--- a/sdk/resources/azure-mgmt-resource-policy/apiview-properties.json
+++ b/sdk/resources/azure-mgmt-resource-policy/apiview-properties.json
@@ -272,5 +272,5 @@
"azure.mgmt.resource.policy.operations.PolicyTokensOperations.acquire_at_management_group": "Microsoft.Authorization.PolicyTokensOperationGroup.acquireAtManagementGroup",
"azure.mgmt.resource.policy.aio.operations.PolicyTokensOperations.acquire_at_management_group": "Microsoft.Authorization.PolicyTokensOperationGroup.acquireAtManagementGroup"
},
- "CrossLanguageVersion": "11055b5de797"
+ "CrossLanguageVersion": "e6f61f4356b1"
}
\ No newline at end of file
diff --git a/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/_client.py b/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/_client.py
index 95fa893dd2d2..6c8cbbd76082 100644
--- a/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/_client.py
+++ b/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/_client.py
@@ -43,7 +43,7 @@
from azure.core.credentials import TokenCredential
-class PolicyClient: # pylint: disable=too-many-instance-attributes
+class PolicyClient: # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only
"""To manage and control access to your resources, you can define customized policies and assign
them at a scope.
diff --git a/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/_configuration.py b/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/_configuration.py
index 86a47d2a8ec4..c7180331dc39 100644
--- a/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/_configuration.py
+++ b/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/_configuration.py
@@ -1,3 +1,4 @@
+# pylint: disable=line-too-long,useless-suppression
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -18,7 +19,7 @@
from azure.core.credentials import TokenCredential
-class PolicyClientConfiguration: # pylint: disable=too-many-instance-attributes
+class PolicyClientConfiguration: # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only
"""Configuration for PolicyClient.
Note that all parameters used to create this instance are saved as instance
diff --git a/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/_utils/model_base.py b/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/_utils/model_base.py
index bd5b9caf1022..88aaf1823543 100644
--- a/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/_utils/model_base.py
+++ b/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/_utils/model_base.py
@@ -109,6 +109,29 @@ def _serialize_bytes(o, format: typing.Optional[str] = None) -> str:
return encoded
+def _serialize_duration(td: timedelta, format: typing.Optional[str] = None):
+ """Serialize a timedelta to its wire representation.
+
+ For the ``seconds``/``milliseconds`` encodings the value is converted to a
+ numeric value, otherwise it falls back to an ISO 8601 duration string.
+
+ :param timedelta td: The timedelta to serialize.
+ :param str format: The duration encoding format.
+ :rtype: int or float or str
+ :return: serialized duration
+ """
+ seconds = td.total_seconds()
+ if format == "duration-seconds-int":
+ return int(seconds)
+ if format == "duration-seconds-float":
+ return seconds
+ if format == "duration-milliseconds-int":
+ return int(seconds * 1000)
+ if format == "duration-milliseconds-float":
+ return seconds * 1000
+ return _timedelta_as_isostr(td)
+
+
def _serialize_datetime(o, format: typing.Optional[str] = None):
if hasattr(o, "year") and hasattr(o, "hour"):
if format == "rfc7231":
@@ -135,7 +158,15 @@ def _is_readonly(p):
class SdkJSONEncoder(JSONEncoder):
- """A JSON encoder that's capable of serializing datetime objects and bytes."""
+ """A JSON encoder that's capable of serializing datetime objects and bytes.
+
+ :param args: Additional positional arguments passed to the base ``JSONEncoder``.
+ :type args: typing.Any
+ :keyword exclude_readonly: Whether to exclude readonly properties. Defaults to False.
+ :paramtype exclude_readonly: bool
+ :keyword format: The format to use for serialization. Defaults to None.
+ :paramtype format: typing.Optional[str]
+ """
def __init__(self, *args, exclude_readonly: bool = False, format: typing.Optional[str] = None, **kwargs):
super().__init__(*args, **kwargs)
@@ -301,6 +332,12 @@ def _deserialize_duration(attr):
return isodate.parse_duration(attr)
+def _deserialize_duration_numeric(attr, unit):
+ if isinstance(attr, timedelta):
+ return attr
+ return timedelta(**{unit: float(attr)})
+
+
def _deserialize_decimal(attr):
if isinstance(attr, decimal.Decimal):
return attr
@@ -313,6 +350,12 @@ def _deserialize_int_as_str(attr):
return int(attr)
+def _deserialize_bool_as_str(attr):
+ if isinstance(attr, bool):
+ return attr
+ return attr.lower() == "true"
+
+
_DESERIALIZE_MAPPING = {
datetime: _deserialize_datetime,
date: _deserialize_date,
@@ -330,12 +373,18 @@ def _deserialize_int_as_str(attr):
"unix-timestamp": _deserialize_datetime_unix_timestamp,
"base64": _deserialize_bytes,
"base64url": _deserialize_bytes_base64,
+ "duration-seconds-int": functools.partial(_deserialize_duration_numeric, unit="seconds"),
+ "duration-seconds-float": functools.partial(_deserialize_duration_numeric, unit="seconds"),
+ "duration-milliseconds-int": functools.partial(_deserialize_duration_numeric, unit="milliseconds"),
+ "duration-milliseconds-float": functools.partial(_deserialize_duration_numeric, unit="milliseconds"),
}
def get_deserializer(annotation: typing.Any, rf: typing.Optional["_RestField"] = None):
if annotation is int and rf and rf._format == "str":
return _deserialize_int_as_str
+ if annotation is bool and rf and rf._format == "str":
+ return _deserialize_bool_as_str
if annotation is str and rf and rf._format in _ARRAY_ENCODE_MAPPING:
return functools.partial(_deserialize_array_encoded, _ARRAY_ENCODE_MAPPING[rf._format])
if rf and rf._format:
@@ -425,21 +474,21 @@ def __ne__(self, other: typing.Any) -> bool:
def keys(self) -> typing.KeysView[str]:
"""
- :returns: a set-like object providing a view on D's keys
+ :returns: a set-like object providing a view on the mapping's keys
:rtype: ~typing.KeysView
"""
return self._data.keys()
def values(self) -> typing.ValuesView[typing.Any]:
"""
- :returns: an object providing a view on D's values
+ :returns: an object providing a view on the mapping's values
:rtype: ~typing.ValuesView
"""
return self._data.values()
def items(self) -> typing.ItemsView[str, typing.Any]:
"""
- :returns: set-like object providing a view on D's items
+ :returns: a set-like object providing a view on the mapping's items
:rtype: ~typing.ItemsView
"""
return self._data.items()
@@ -449,7 +498,7 @@ def get(self, key: str, default: typing.Any = None) -> typing.Any:
Get the value for key if key is in the dictionary, else default.
:param str key: The key to look up.
:param any default: The value to return if key is not in the dictionary. Defaults to None
- :returns: D[k] if k in D, else d.
+ :returns: The value for key if key is in the dictionary, else default.
:rtype: any
"""
try:
@@ -484,19 +533,19 @@ def popitem(self) -> tuple[str, typing.Any]:
Removes and returns some (key, value) pair
:returns: The (key, value) pair.
:rtype: tuple
- :raises KeyError: if D is empty.
+ :raises KeyError: if the dictionary is empty.
"""
return self._data.popitem()
def clear(self) -> None:
"""
- Remove all items from D.
+ Remove all items from the dictionary.
"""
self._data.clear()
def update(self, *args: typing.Any, **kwargs: typing.Any) -> None: # pylint: disable=arguments-differ
"""
- Updates D from mapping/iterable E and F.
+ Update the dictionary from a mapping or an iterable of key-value pairs.
:param any args: Either a mapping object or an iterable of key-value pairs.
"""
self._data.update(*args, **kwargs)
@@ -509,10 +558,11 @@ def setdefault(self, key: str, default: typing.Any) -> typing.Any: ... # pylint
def setdefault(self, key: str, default: typing.Any = _UNSET) -> typing.Any:
"""
- Same as calling D.get(k, d), and setting D[k]=d if k not found
+ Return the value for key if key is in the dictionary; otherwise set the key to
+ default and return default.
:param str key: The key to look up.
:param any default: The value to set if key is not in the dictionary
- :returns: D[k] if k in D, else d.
+ :returns: The value for key if key is in the dictionary, else default.
:rtype: any
"""
if default is _UNSET:
@@ -564,7 +614,7 @@ def _serialize(o, format: typing.Optional[str] = None): # pylint: disable=too-m
pass
# Last, try datetime.timedelta
try:
- return _timedelta_as_isostr(o)
+ return _serialize_duration(o, format)
except AttributeError:
# This will be raised when it hits value.total_seconds in the method above
pass
diff --git a/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/_utils/serialization.py b/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/_utils/serialization.py
index a088671e9c51..ae08f9d89f74 100644
--- a/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/_utils/serialization.py
+++ b/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/_utils/serialization.py
@@ -480,7 +480,11 @@ def _decode_attribute_map_key(key):
class Serializer: # pylint: disable=too-many-public-methods
- """Request object model serializer."""
+ """Request object model serializer.
+
+ :param classes: Mapping of model names to model types, used to resolve models during serialization.
+ :type classes: typing.Optional[typing.Mapping[str, type]]
+ """
basic_types = {str: "str", int: "int", bool: "bool", float: "float"}
@@ -520,6 +524,10 @@ def __init__(self, classes: Optional[Mapping[str, type]] = None) -> None:
"rfc-1123": Serializer.serialize_rfc,
"unix-time": Serializer.serialize_unix,
"duration": Serializer.serialize_duration,
+ "duration-seconds-int": Serializer.serialize_duration_seconds_int,
+ "duration-seconds-float": Serializer.serialize_duration_seconds_float,
+ "duration-milliseconds-int": Serializer.serialize_duration_milliseconds_int,
+ "duration-milliseconds-float": Serializer.serialize_duration_milliseconds_float,
"date": Serializer.serialize_date,
"time": Serializer.serialize_time,
"decimal": Serializer.serialize_decimal,
@@ -1109,6 +1117,61 @@ def serialize_duration(attr, **kwargs): # pylint: disable=unused-argument
attr = isodate.parse_duration(attr)
return isodate.duration_isoformat(attr)
+ @staticmethod
+ def _serialize_duration_numeric(attr, scale, as_int):
+ """Serialize a TimeDelta into a numeric value scaled to the wire unit.
+
+ :param TimeDelta attr: Object to be serialized.
+ :param int scale: Multiplier applied to total seconds (1 for seconds, 1000 for milliseconds).
+ :param bool as_int: Whether to truncate the result to an int.
+ :rtype: int or float
+ :return: serialized duration
+ """
+ if isinstance(attr, str):
+ attr = isodate.parse_duration(attr)
+ value = attr.total_seconds() * scale if isinstance(attr, datetime.timedelta) else attr
+ return int(value) if as_int else float(value)
+
+ @staticmethod
+ def serialize_duration_seconds_int(attr, **kwargs): # pylint: disable=unused-argument
+ """Serialize TimeDelta object into an integer number of seconds.
+
+ :param TimeDelta attr: Object to be serialized.
+ :rtype: int
+ :return: serialized duration
+ """
+ return Serializer._serialize_duration_numeric(attr, 1, True)
+
+ @staticmethod
+ def serialize_duration_seconds_float(attr, **kwargs): # pylint: disable=unused-argument
+ """Serialize TimeDelta object into a floating point number of seconds.
+
+ :param TimeDelta attr: Object to be serialized.
+ :rtype: float
+ :return: serialized duration
+ """
+ return Serializer._serialize_duration_numeric(attr, 1, False)
+
+ @staticmethod
+ def serialize_duration_milliseconds_int(attr, **kwargs): # pylint: disable=unused-argument
+ """Serialize TimeDelta object into an integer number of milliseconds.
+
+ :param TimeDelta attr: Object to be serialized.
+ :rtype: int
+ :return: serialized duration
+ """
+ return Serializer._serialize_duration_numeric(attr, 1000, True)
+
+ @staticmethod
+ def serialize_duration_milliseconds_float(attr, **kwargs): # pylint: disable=unused-argument
+ """Serialize TimeDelta object into a floating point number of milliseconds.
+
+ :param TimeDelta attr: Object to be serialized.
+ :rtype: float
+ :return: serialized duration
+ """
+ return Serializer._serialize_duration_numeric(attr, 1000, False)
+
@staticmethod
def serialize_rfc(attr, **kwargs): # pylint: disable=unused-argument
"""Serialize Datetime object into RFC-1123 formatted string.
@@ -1381,6 +1444,10 @@ def __init__(self, classes: Optional[Mapping[str, type]] = None) -> None:
"rfc-1123": Deserializer.deserialize_rfc,
"unix-time": Deserializer.deserialize_unix,
"duration": Deserializer.deserialize_duration,
+ "duration-seconds-int": Deserializer.deserialize_duration_seconds,
+ "duration-seconds-float": Deserializer.deserialize_duration_seconds,
+ "duration-milliseconds-int": Deserializer.deserialize_duration_milliseconds,
+ "duration-milliseconds-float": Deserializer.deserialize_duration_milliseconds,
"date": Deserializer.deserialize_date,
"time": Deserializer.deserialize_time,
"decimal": Deserializer.deserialize_decimal,
@@ -1393,6 +1460,10 @@ def __init__(self, classes: Optional[Mapping[str, type]] = None) -> None:
}
self.deserialize_expected_types = {
"duration": (isodate.Duration, datetime.timedelta),
+ "duration-seconds-int": (isodate.Duration, datetime.timedelta),
+ "duration-seconds-float": (isodate.Duration, datetime.timedelta),
+ "duration-milliseconds-int": (isodate.Duration, datetime.timedelta),
+ "duration-milliseconds-float": (isodate.Duration, datetime.timedelta),
"iso-8601": (datetime.datetime),
}
self.dependencies: dict[str, type] = dict(classes) if classes else {}
@@ -1954,6 +2025,48 @@ def deserialize_duration(attr):
raise DeserializationError(msg) from err
return duration
+ @staticmethod
+ def _deserialize_duration_numeric(attr, unit):
+ """Deserialize a numeric duration value into a TimeDelta object.
+
+ :param float attr: response value to be deserialized.
+ :param str unit: The wire unit, used as the ``timedelta`` keyword
+ (``"seconds"`` or ``"milliseconds"``).
+ :return: Deserialized duration
+ :rtype: TimeDelta
+ :raises DeserializationError: if value is invalid.
+ """
+ if isinstance(attr, ET.Element):
+ attr = attr.text
+ try:
+ duration = datetime.timedelta(**{unit: float(attr)}) # type: ignore
+ except (ValueError, OverflowError, TypeError) as err:
+ msg = "Cannot deserialize duration object."
+ raise DeserializationError(msg) from err
+ return duration
+
+ @staticmethod
+ def deserialize_duration_seconds(attr):
+ """Deserialize a numeric number of seconds into a TimeDelta object.
+
+ :param float attr: response value to be deserialized.
+ :return: Deserialized duration
+ :rtype: TimeDelta
+ :raises DeserializationError: if value is invalid.
+ """
+ return Deserializer._deserialize_duration_numeric(attr, "seconds")
+
+ @staticmethod
+ def deserialize_duration_milliseconds(attr):
+ """Deserialize a numeric number of milliseconds into a TimeDelta object.
+
+ :param float attr: response value to be deserialized.
+ :return: Deserialized duration
+ :rtype: TimeDelta
+ :raises DeserializationError: if value is invalid.
+ """
+ return Deserializer._deserialize_duration_numeric(attr, "milliseconds")
+
@staticmethod
def deserialize_date(attr):
"""Deserialize ISO-8601 formatted string into Date object.
diff --git a/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/_version.py b/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/_version.py
index c43fdbc2e239..22553b18fb7e 100644
--- a/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/_version.py
+++ b/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/_version.py
@@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-VERSION = "1.0.0b3"
+VERSION = "1.0.0b4"
diff --git a/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/aio/_client.py b/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/aio/_client.py
index ba3b25c2eff5..fdf618885a8c 100644
--- a/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/aio/_client.py
+++ b/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/aio/_client.py
@@ -43,7 +43,7 @@
from azure.core.credentials_async import AsyncTokenCredential
-class PolicyClient: # pylint: disable=too-many-instance-attributes
+class PolicyClient: # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only
"""To manage and control access to your resources, you can define customized policies and assign
them at a scope.
diff --git a/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/aio/_configuration.py b/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/aio/_configuration.py
index 5fb49eb6fe4d..947d936e5559 100644
--- a/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/aio/_configuration.py
+++ b/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/aio/_configuration.py
@@ -1,3 +1,4 @@
+# pylint: disable=line-too-long,useless-suppression
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -18,7 +19,7 @@
from azure.core.credentials_async import AsyncTokenCredential
-class PolicyClientConfiguration: # pylint: disable=too-many-instance-attributes
+class PolicyClientConfiguration: # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only
"""Configuration for PolicyClient.
Note that all parameters used to create this instance are saved as instance
diff --git a/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/aio/operations/_operations.py b/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/aio/operations/_operations.py
index 4d89a0c031aa..aac633993d61 100644
--- a/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/aio/operations/_operations.py
+++ b/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/aio/operations/_operations.py
@@ -31,7 +31,7 @@
from azure.core.utils import case_insensitive_dict
from azure.mgmt.core.exceptions import ARMErrorFormat
-from ... import models as _models
+from ... import models as _models, types as _types
from ..._utils.model_base import SdkJSONEncoder, _deserialize, _failsafe_deserialize
from ..._utils.serialization import Deserializer, Serializer
from ..._validation import api_version_validation
@@ -133,13 +133,12 @@
)
from .._configuration import PolicyClientConfiguration
-JSON = MutableMapping[str, Any]
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]]
List = list
-class PolicyAssignmentsOperations:
+class PolicyAssignmentsOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
@@ -268,7 +267,12 @@ async def create_by_id(
@overload
async def create_by_id(
- self, policy_assignment_id: str, parameters: JSON, *, content_type: str = "application/json", **kwargs: Any
+ self,
+ policy_assignment_id: str,
+ parameters: _types.PolicyAssignment,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
) -> _models.PolicyAssignment:
"""Creates or updates a policy assignment.
@@ -287,7 +291,7 @@ async def create_by_id(
'{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Required.
:type policy_assignment_id: str
:param parameters: Parameters for policy assignment. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicyAssignment
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -328,7 +332,10 @@ async def create_by_id(
@distributed_trace_async
async def create_by_id(
- self, policy_assignment_id: str, parameters: Union[_models.PolicyAssignment, JSON, IO[bytes]], **kwargs: Any
+ self,
+ policy_assignment_id: str,
+ parameters: Union[_models.PolicyAssignment, _types.PolicyAssignment, IO[bytes]],
+ **kwargs: Any
) -> _models.PolicyAssignment:
"""Creates or updates a policy assignment.
@@ -346,9 +353,10 @@ async def create_by_id(
:param policy_assignment_id: The ID of the policy assignment to get. Use the format
'{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Required.
:type policy_assignment_id: str
- :param parameters: Parameters for policy assignment. Is one of the following types:
- PolicyAssignment, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicyAssignment or JSON or IO[bytes]
+ :param parameters: Parameters for policy assignment. Is either a PolicyAssignment type or a
+ IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicyAssignment or
+ ~azure.mgmt.resource.policy.types.PolicyAssignment or IO[bytes]
:return: PolicyAssignment. The PolicyAssignment is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicyAssignment
:raises ~azure.core.exceptions.HttpResponseError:
@@ -455,7 +463,12 @@ async def update_by_id(
@overload
async def update_by_id(
- self, policy_assignment_id: str, parameters: JSON, *, content_type: str = "application/json", **kwargs: Any
+ self,
+ policy_assignment_id: str,
+ parameters: _types.PolicyAssignmentUpdate,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
) -> _models.PolicyAssignment:
"""Updates a policy assignment.
@@ -474,7 +487,7 @@ async def update_by_id(
'{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Required.
:type policy_assignment_id: str
:param parameters: Parameters for policy assignment patch request. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicyAssignmentUpdate
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -517,7 +530,7 @@ async def update_by_id(
async def update_by_id(
self,
policy_assignment_id: str,
- parameters: Union[_models.PolicyAssignmentUpdate, JSON, IO[bytes]],
+ parameters: Union[_models.PolicyAssignmentUpdate, _types.PolicyAssignmentUpdate, IO[bytes]],
**kwargs: Any
) -> _models.PolicyAssignment:
"""Updates a policy assignment.
@@ -536,10 +549,10 @@ async def update_by_id(
:param policy_assignment_id: The ID of the policy assignment to get. Use the format
'{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Required.
:type policy_assignment_id: str
- :param parameters: Parameters for policy assignment patch request. Is one of the following
- types: PolicyAssignmentUpdate, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicyAssignmentUpdate or JSON or
- IO[bytes]
+ :param parameters: Parameters for policy assignment patch request. Is either a
+ PolicyAssignmentUpdate type or a IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicyAssignmentUpdate or
+ ~azure.mgmt.resource.policy.types.PolicyAssignmentUpdate or IO[bytes]
:return: PolicyAssignment. The PolicyAssignment is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicyAssignment
:raises ~azure.core.exceptions.HttpResponseError:
@@ -794,7 +807,7 @@ async def create(
self,
scope: str,
policy_assignment_name: str,
- parameters: JSON,
+ parameters: _types.PolicyAssignment,
*,
content_type: str = "application/json",
**kwargs: Any
@@ -808,7 +821,7 @@ async def create(
:param policy_assignment_name: The name of the policy assignment to get. Required.
:type policy_assignment_name: str
:param parameters: Parameters for the policy assignment. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicyAssignment
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -850,7 +863,7 @@ async def create(
self,
scope: str,
policy_assignment_name: str,
- parameters: Union[_models.PolicyAssignment, JSON, IO[bytes]],
+ parameters: Union[_models.PolicyAssignment, _types.PolicyAssignment, IO[bytes]],
**kwargs: Any
) -> _models.PolicyAssignment:
"""This operation creates or updates a policy assignment with the given scope and name. Policy
@@ -861,9 +874,10 @@ async def create(
:type scope: str
:param policy_assignment_name: The name of the policy assignment to get. Required.
:type policy_assignment_name: str
- :param parameters: Parameters for the policy assignment. Is one of the following types:
- PolicyAssignment, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicyAssignment or JSON or IO[bytes]
+ :param parameters: Parameters for the policy assignment. Is either a PolicyAssignment type or a
+ IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicyAssignment or
+ ~azure.mgmt.resource.policy.types.PolicyAssignment or IO[bytes]
:return: PolicyAssignment. The PolicyAssignment is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicyAssignment
:raises ~azure.core.exceptions.HttpResponseError:
@@ -967,7 +981,7 @@ async def update(
self,
scope: str,
policy_assignment_name: str,
- parameters: JSON,
+ parameters: _types.PolicyAssignmentUpdate,
*,
content_type: str = "application/json",
**kwargs: Any
@@ -981,7 +995,7 @@ async def update(
:param policy_assignment_name: The name of the policy assignment to get. Required.
:type policy_assignment_name: str
:param parameters: Parameters for policy assignment patch request. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicyAssignmentUpdate
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -1023,7 +1037,7 @@ async def update(
self,
scope: str,
policy_assignment_name: str,
- parameters: Union[_models.PolicyAssignmentUpdate, JSON, IO[bytes]],
+ parameters: Union[_models.PolicyAssignmentUpdate, _types.PolicyAssignmentUpdate, IO[bytes]],
**kwargs: Any
) -> _models.PolicyAssignment:
"""This operation updates a policy assignment with the given scope and name. Policy assignments
@@ -1034,10 +1048,10 @@ async def update(
:type scope: str
:param policy_assignment_name: The name of the policy assignment to get. Required.
:type policy_assignment_name: str
- :param parameters: Parameters for policy assignment patch request. Is one of the following
- types: PolicyAssignmentUpdate, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicyAssignmentUpdate or JSON or
- IO[bytes]
+ :param parameters: Parameters for policy assignment patch request. Is either a
+ PolicyAssignmentUpdate type or a IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicyAssignmentUpdate or
+ ~azure.mgmt.resource.policy.types.PolicyAssignmentUpdate or IO[bytes]
:return: PolicyAssignment. The PolicyAssignment is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicyAssignment
:raises ~azure.core.exceptions.HttpResponseError:
@@ -1747,7 +1761,7 @@ async def get_next(next_link=None):
return AsyncItemPaged(get_next, extract_data)
-class DataPolicyManifestsOperations:
+class DataPolicyManifestsOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
@@ -1947,7 +1961,7 @@ async def get_next(next_link=None):
return AsyncItemPaged(get_next, extract_data)
-class PolicyDefinitionsOperations:
+class PolicyDefinitionsOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
@@ -2056,7 +2070,12 @@ async def create_or_update(
@overload
async def create_or_update(
- self, policy_definition_name: str, parameters: JSON, *, content_type: str = "application/json", **kwargs: Any
+ self,
+ policy_definition_name: str,
+ parameters: _types.PolicyDefinition,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
) -> _models.PolicyDefinition:
"""This operation creates or updates a policy definition in the given subscription with the given
name.
@@ -2064,7 +2083,7 @@ async def create_or_update(
:param policy_definition_name: The name of the policy definition to get. Required.
:type policy_definition_name: str
:param parameters: The policy definition properties. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicyDefinition
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -2099,16 +2118,20 @@ async def create_or_update(
@distributed_trace_async
async def create_or_update(
- self, policy_definition_name: str, parameters: Union[_models.PolicyDefinition, JSON, IO[bytes]], **kwargs: Any
+ self,
+ policy_definition_name: str,
+ parameters: Union[_models.PolicyDefinition, _types.PolicyDefinition, IO[bytes]],
+ **kwargs: Any
) -> _models.PolicyDefinition:
"""This operation creates or updates a policy definition in the given subscription with the given
name.
:param policy_definition_name: The name of the policy definition to get. Required.
:type policy_definition_name: str
- :param parameters: The policy definition properties. Is one of the following types:
- PolicyDefinition, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicyDefinition or JSON or IO[bytes]
+ :param parameters: The policy definition properties. Is either a PolicyDefinition type or a
+ IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicyDefinition or
+ ~azure.mgmt.resource.policy.types.PolicyDefinition or IO[bytes]
:return: PolicyDefinition. The PolicyDefinition is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicyDefinition
:raises ~azure.core.exceptions.HttpResponseError:
@@ -2632,7 +2655,7 @@ async def create_or_update_at_management_group(
self,
management_group_id: str,
policy_definition_name: str,
- parameters: JSON,
+ parameters: _types.PolicyDefinition,
*,
content_type: str = "application/json",
**kwargs: Any
@@ -2645,7 +2668,7 @@ async def create_or_update_at_management_group(
:param policy_definition_name: The name of the policy definition to get. Required.
:type policy_definition_name: str
:param parameters: The policy definition properties. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicyDefinition
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -2686,7 +2709,7 @@ async def create_or_update_at_management_group(
self,
management_group_id: str,
policy_definition_name: str,
- parameters: Union[_models.PolicyDefinition, JSON, IO[bytes]],
+ parameters: Union[_models.PolicyDefinition, _types.PolicyDefinition, IO[bytes]],
**kwargs: Any
) -> _models.PolicyDefinition:
"""This operation creates or updates a policy definition in the given management group with the
@@ -2696,9 +2719,10 @@ async def create_or_update_at_management_group(
:type management_group_id: str
:param policy_definition_name: The name of the policy definition to get. Required.
:type policy_definition_name: str
- :param parameters: The policy definition properties. Is one of the following types:
- PolicyDefinition, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicyDefinition or JSON or IO[bytes]
+ :param parameters: The policy definition properties. Is either a PolicyDefinition type or a
+ IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicyDefinition or
+ ~azure.mgmt.resource.policy.types.PolicyDefinition or IO[bytes]
:return: PolicyDefinition. The PolicyDefinition is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicyDefinition
:raises ~azure.core.exceptions.HttpResponseError:
@@ -2949,7 +2973,7 @@ async def get_next(next_link=None):
return AsyncItemPaged(get_next, extract_data)
-class PolicyDefinitionVersionsOperations:
+class PolicyDefinitionVersionsOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
@@ -3074,7 +3098,7 @@ async def create_or_update(
self,
policy_definition_name: str,
policy_definition_version: str,
- parameters: JSON,
+ parameters: _types.PolicyDefinitionVersion,
*,
content_type: str = "application/json",
**kwargs: Any
@@ -3089,7 +3113,7 @@ async def create_or_update(
Required.
:type policy_definition_version: str
:param parameters: The policy definition properties. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicyDefinitionVersion
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -3132,7 +3156,7 @@ async def create_or_update(
self,
policy_definition_name: str,
policy_definition_version: str,
- parameters: Union[_models.PolicyDefinitionVersion, JSON, IO[bytes]],
+ parameters: Union[_models.PolicyDefinitionVersion, _types.PolicyDefinitionVersion, IO[bytes]],
**kwargs: Any
) -> _models.PolicyDefinitionVersion:
"""This operation creates or updates a policy definition in the given subscription with the given
@@ -3144,10 +3168,10 @@ async def create_or_update(
is the major version number, y is the minor version number, and z is the patch number.
Required.
:type policy_definition_version: str
- :param parameters: The policy definition properties. Is one of the following types:
- PolicyDefinitionVersion, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicyDefinitionVersion or JSON or
- IO[bytes]
+ :param parameters: The policy definition properties. Is either a PolicyDefinitionVersion type
+ or a IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicyDefinitionVersion or
+ ~azure.mgmt.resource.policy.types.PolicyDefinitionVersion or IO[bytes]
:return: PolicyDefinitionVersion. The PolicyDefinitionVersion is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicyDefinitionVersion
:raises ~azure.core.exceptions.HttpResponseError:
@@ -3673,7 +3697,7 @@ async def create_or_update_at_management_group(
management_group_name: str,
policy_definition_name: str,
policy_definition_version: str,
- parameters: JSON,
+ parameters: _types.PolicyDefinitionVersion,
*,
content_type: str = "application/json",
**kwargs: Any
@@ -3691,7 +3715,7 @@ async def create_or_update_at_management_group(
Required.
:type policy_definition_version: str
:param parameters: The policy definition properties. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicyDefinitionVersion
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -3739,7 +3763,7 @@ async def create_or_update_at_management_group(
management_group_name: str,
policy_definition_name: str,
policy_definition_version: str,
- parameters: Union[_models.PolicyDefinitionVersion, JSON, IO[bytes]],
+ parameters: Union[_models.PolicyDefinitionVersion, _types.PolicyDefinitionVersion, IO[bytes]],
**kwargs: Any
) -> _models.PolicyDefinitionVersion:
"""This operation creates or updates a policy definition version in the given management group
@@ -3754,10 +3778,10 @@ async def create_or_update_at_management_group(
is the major version number, y is the minor version number, and z is the patch number.
Required.
:type policy_definition_version: str
- :param parameters: The policy definition properties. Is one of the following types:
- PolicyDefinitionVersion, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicyDefinitionVersion or JSON or
- IO[bytes]
+ :param parameters: The policy definition properties. Is either a PolicyDefinitionVersion type
+ or a IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicyDefinitionVersion or
+ ~azure.mgmt.resource.policy.types.PolicyDefinitionVersion or IO[bytes]
:return: PolicyDefinitionVersion. The PolicyDefinitionVersion is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicyDefinitionVersion
:raises ~azure.core.exceptions.HttpResponseError:
@@ -4205,7 +4229,7 @@ async def list_all(self, **kwargs: Any) -> _models.PolicyDefinitionVersionListRe
return deserialized # type: ignore
-class PolicyEnrollmentsOperations:
+class PolicyEnrollmentsOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
@@ -4334,7 +4358,7 @@ async def create_or_update(
self,
scope: str,
policy_enrollment_name: str,
- parameters: JSON,
+ parameters: _types.PolicyEnrollment,
*,
content_type: str = "application/json",
**kwargs: Any
@@ -4351,7 +4375,7 @@ async def create_or_update(
:param policy_enrollment_name: The name of the policy enrollment. Required.
:type policy_enrollment_name: str
:param parameters: The policy enrollment resource to create or replace. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicyEnrollment
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -4403,7 +4427,7 @@ async def create_or_update(
self,
scope: str,
policy_enrollment_name: str,
- parameters: Union[_models.PolicyEnrollment, JSON, IO[bytes]],
+ parameters: Union[_models.PolicyEnrollment, _types.PolicyEnrollment, IO[bytes]],
**kwargs: Any
) -> _models.PolicyEnrollment:
"""Creates or updates a policy enrollment.
@@ -4417,9 +4441,10 @@ async def create_or_update(
:type scope: str
:param policy_enrollment_name: The name of the policy enrollment. Required.
:type policy_enrollment_name: str
- :param parameters: The policy enrollment resource to create or replace. Is one of the following
- types: PolicyEnrollment, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicyEnrollment or JSON or IO[bytes]
+ :param parameters: The policy enrollment resource to create or replace. Is either a
+ PolicyEnrollment type or a IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicyEnrollment or
+ ~azure.mgmt.resource.policy.types.PolicyEnrollment or IO[bytes]
:return: PolicyEnrollment. The PolicyEnrollment is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicyEnrollment
:raises ~azure.core.exceptions.HttpResponseError:
@@ -4523,7 +4548,7 @@ async def update(
self,
scope: str,
policy_enrollment_name: str,
- parameters: JSON,
+ parameters: _types.PolicyEnrollmentUpdate,
*,
content_type: str = "application/json",
**kwargs: Any
@@ -4537,7 +4562,7 @@ async def update(
:param policy_enrollment_name: The name of the policy enrollment. Required.
:type policy_enrollment_name: str
:param parameters: The properties to update in the policy enrollment. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicyEnrollmentUpdate
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -4586,7 +4611,7 @@ async def update(
self,
scope: str,
policy_enrollment_name: str,
- parameters: Union[_models.PolicyEnrollmentUpdate, JSON, IO[bytes]],
+ parameters: Union[_models.PolicyEnrollmentUpdate, _types.PolicyEnrollmentUpdate, IO[bytes]],
**kwargs: Any
) -> _models.PolicyEnrollment:
"""Updates a policy enrollment.
@@ -4597,10 +4622,10 @@ async def update(
:type scope: str
:param policy_enrollment_name: The name of the policy enrollment. Required.
:type policy_enrollment_name: str
- :param parameters: The properties to update in the policy enrollment. Is one of the following
- types: PolicyEnrollmentUpdate, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicyEnrollmentUpdate or JSON or
- IO[bytes]
+ :param parameters: The properties to update in the policy enrollment. Is either a
+ PolicyEnrollmentUpdate type or a IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicyEnrollmentUpdate or
+ ~azure.mgmt.resource.policy.types.PolicyEnrollmentUpdate or IO[bytes]
:return: PolicyEnrollment. The PolicyEnrollment is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicyEnrollment
:raises ~azure.core.exceptions.HttpResponseError:
@@ -5263,7 +5288,7 @@ async def get_next(next_link=None):
return AsyncItemPaged(get_next, extract_data)
-class PolicyExemptionsOperations:
+class PolicyExemptionsOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
@@ -5392,7 +5417,7 @@ async def create_or_update(
self,
scope: str,
policy_exemption_name: str,
- parameters: JSON,
+ parameters: _types.PolicyExemption,
*,
content_type: str = "application/json",
**kwargs: Any
@@ -5409,7 +5434,7 @@ async def create_or_update(
:param policy_exemption_name: The name of the policy exemption to get. Required.
:type policy_exemption_name: str
:param parameters: Parameters for the policy exemption. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicyExemption
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -5461,7 +5486,7 @@ async def create_or_update(
self,
scope: str,
policy_exemption_name: str,
- parameters: Union[_models.PolicyExemption, JSON, IO[bytes]],
+ parameters: Union[_models.PolicyExemption, _types.PolicyExemption, IO[bytes]],
**kwargs: Any
) -> _models.PolicyExemption:
"""Creates or updates a policy exemption.
@@ -5475,9 +5500,10 @@ async def create_or_update(
:type scope: str
:param policy_exemption_name: The name of the policy exemption to get. Required.
:type policy_exemption_name: str
- :param parameters: Parameters for the policy exemption. Is one of the following types:
- PolicyExemption, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicyExemption or JSON or IO[bytes]
+ :param parameters: Parameters for the policy exemption. Is either a PolicyExemption type or a
+ IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicyExemption or
+ ~azure.mgmt.resource.policy.types.PolicyExemption or IO[bytes]
:return: PolicyExemption. The PolicyExemption is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicyExemption
:raises ~azure.core.exceptions.HttpResponseError:
@@ -5581,7 +5607,7 @@ async def update(
self,
scope: str,
policy_exemption_name: str,
- parameters: JSON,
+ parameters: _types.PolicyExemptionUpdate,
*,
content_type: str = "application/json",
**kwargs: Any
@@ -5595,7 +5621,7 @@ async def update(
:param policy_exemption_name: The name of the policy exemption to get. Required.
:type policy_exemption_name: str
:param parameters: Parameters for policy exemption patch request. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicyExemptionUpdate
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -5644,7 +5670,7 @@ async def update(
self,
scope: str,
policy_exemption_name: str,
- parameters: Union[_models.PolicyExemptionUpdate, JSON, IO[bytes]],
+ parameters: Union[_models.PolicyExemptionUpdate, _types.PolicyExemptionUpdate, IO[bytes]],
**kwargs: Any
) -> _models.PolicyExemption:
"""Updates a policy exemption.
@@ -5655,9 +5681,10 @@ async def update(
:type scope: str
:param policy_exemption_name: The name of the policy exemption to get. Required.
:type policy_exemption_name: str
- :param parameters: Parameters for policy exemption patch request. Is one of the following
- types: PolicyExemptionUpdate, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicyExemptionUpdate or JSON or IO[bytes]
+ :param parameters: Parameters for policy exemption patch request. Is either a
+ PolicyExemptionUpdate type or a IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicyExemptionUpdate or
+ ~azure.mgmt.resource.policy.types.PolicyExemptionUpdate or IO[bytes]
:return: PolicyExemption. The PolicyExemption is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicyExemption
:raises ~azure.core.exceptions.HttpResponseError:
@@ -6338,7 +6365,7 @@ async def get_next(next_link=None):
return AsyncItemPaged(get_next, extract_data)
-class PolicySetDefinitionsOperations:
+class PolicySetDefinitionsOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
@@ -6457,7 +6484,7 @@ async def create_or_update(
async def create_or_update(
self,
policy_set_definition_name: str,
- parameters: JSON,
+ parameters: _types.PolicySetDefinition,
*,
content_type: str = "application/json",
**kwargs: Any
@@ -6468,7 +6495,7 @@ async def create_or_update(
:param policy_set_definition_name: The name of the policy set definition to get. Required.
:type policy_set_definition_name: str
:param parameters: The policy set definition properties. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicySetDefinition
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -6505,7 +6532,7 @@ async def create_or_update(
async def create_or_update(
self,
policy_set_definition_name: str,
- parameters: Union[_models.PolicySetDefinition, JSON, IO[bytes]],
+ parameters: Union[_models.PolicySetDefinition, _types.PolicySetDefinition, IO[bytes]],
**kwargs: Any
) -> _models.PolicySetDefinition:
"""This operation creates or updates a policy set definition in the given subscription with the
@@ -6513,9 +6540,10 @@ async def create_or_update(
:param policy_set_definition_name: The name of the policy set definition to get. Required.
:type policy_set_definition_name: str
- :param parameters: The policy set definition properties. Is one of the following types:
- PolicySetDefinition, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicySetDefinition or JSON or IO[bytes]
+ :param parameters: The policy set definition properties. Is either a PolicySetDefinition type
+ or a IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicySetDefinition or
+ ~azure.mgmt.resource.policy.types.PolicySetDefinition or IO[bytes]
:return: PolicySetDefinition. The PolicySetDefinition is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicySetDefinition
:raises ~azure.core.exceptions.HttpResponseError:
@@ -7059,7 +7087,7 @@ async def create_or_update_at_management_group(
self,
management_group_id: str,
policy_set_definition_name: str,
- parameters: JSON,
+ parameters: _types.PolicySetDefinition,
*,
content_type: str = "application/json",
**kwargs: Any
@@ -7072,7 +7100,7 @@ async def create_or_update_at_management_group(
:param policy_set_definition_name: The name of the policy set definition to get. Required.
:type policy_set_definition_name: str
:param parameters: The policy set definition properties. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicySetDefinition
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -7113,7 +7141,7 @@ async def create_or_update_at_management_group(
self,
management_group_id: str,
policy_set_definition_name: str,
- parameters: Union[_models.PolicySetDefinition, JSON, IO[bytes]],
+ parameters: Union[_models.PolicySetDefinition, _types.PolicySetDefinition, IO[bytes]],
**kwargs: Any
) -> _models.PolicySetDefinition:
"""This operation creates or updates a policy set definition in the given management group with
@@ -7123,9 +7151,10 @@ async def create_or_update_at_management_group(
:type management_group_id: str
:param policy_set_definition_name: The name of the policy set definition to get. Required.
:type policy_set_definition_name: str
- :param parameters: The policy set definition properties. Is one of the following types:
- PolicySetDefinition, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicySetDefinition or JSON or IO[bytes]
+ :param parameters: The policy set definition properties. Is either a PolicySetDefinition type
+ or a IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicySetDefinition or
+ ~azure.mgmt.resource.policy.types.PolicySetDefinition or IO[bytes]
:return: PolicySetDefinition. The PolicySetDefinition is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicySetDefinition
:raises ~azure.core.exceptions.HttpResponseError:
@@ -7388,7 +7417,7 @@ async def get_next(next_link=None):
return AsyncItemPaged(get_next, extract_data)
-class PolicySetDefinitionVersionsOperations:
+class PolicySetDefinitionVersionsOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
@@ -7525,7 +7554,7 @@ async def create_or_update(
self,
policy_set_definition_name: str,
policy_definition_version: str,
- parameters: JSON,
+ parameters: _types.PolicySetDefinitionVersion,
*,
content_type: str = "application/json",
**kwargs: Any
@@ -7540,7 +7569,7 @@ async def create_or_update(
Required.
:type policy_definition_version: str
:param parameters: The policy set definition properties. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicySetDefinitionVersion
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -7585,7 +7614,7 @@ async def create_or_update(
self,
policy_set_definition_name: str,
policy_definition_version: str,
- parameters: Union[_models.PolicySetDefinitionVersion, JSON, IO[bytes]],
+ parameters: Union[_models.PolicySetDefinitionVersion, _types.PolicySetDefinitionVersion, IO[bytes]],
**kwargs: Any
) -> _models.PolicySetDefinitionVersion:
"""This operation creates or updates a policy set definition version in the given subscription
@@ -7597,10 +7626,10 @@ async def create_or_update(
x is the major version number, y is the minor version number, and z is the patch number.
Required.
:type policy_definition_version: str
- :param parameters: The policy set definition properties. Is one of the following types:
- PolicySetDefinitionVersion, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicySetDefinitionVersion or JSON or
- IO[bytes]
+ :param parameters: The policy set definition properties. Is either a PolicySetDefinitionVersion
+ type or a IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicySetDefinitionVersion or
+ ~azure.mgmt.resource.policy.types.PolicySetDefinitionVersion or IO[bytes]
:return: PolicySetDefinitionVersion. The PolicySetDefinitionVersion is compatible with
MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicySetDefinitionVersion
@@ -8162,7 +8191,7 @@ async def create_or_update_at_management_group(
management_group_name: str,
policy_set_definition_name: str,
policy_definition_version: str,
- parameters: JSON,
+ parameters: _types.PolicySetDefinitionVersion,
*,
content_type: str = "application/json",
**kwargs: Any
@@ -8180,7 +8209,7 @@ async def create_or_update_at_management_group(
Required.
:type policy_definition_version: str
:param parameters: The policy set definition version properties. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicySetDefinitionVersion
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -8230,7 +8259,7 @@ async def create_or_update_at_management_group(
management_group_name: str,
policy_set_definition_name: str,
policy_definition_version: str,
- parameters: Union[_models.PolicySetDefinitionVersion, JSON, IO[bytes]],
+ parameters: Union[_models.PolicySetDefinitionVersion, _types.PolicySetDefinitionVersion, IO[bytes]],
**kwargs: Any
) -> _models.PolicySetDefinitionVersion:
"""This operation creates or updates a policy set definition version in the given management group
@@ -8245,10 +8274,10 @@ async def create_or_update_at_management_group(
x is the major version number, y is the minor version number, and z is the patch number.
Required.
:type policy_definition_version: str
- :param parameters: The policy set definition version properties. Is one of the following types:
- PolicySetDefinitionVersion, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicySetDefinitionVersion or JSON or
- IO[bytes]
+ :param parameters: The policy set definition version properties. Is either a
+ PolicySetDefinitionVersion type or a IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicySetDefinitionVersion or
+ ~azure.mgmt.resource.policy.types.PolicySetDefinitionVersion or IO[bytes]
:return: PolicySetDefinitionVersion. The PolicySetDefinitionVersion is compatible with
MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicySetDefinitionVersion
@@ -8709,7 +8738,7 @@ async def list_all(self, **kwargs: Any) -> _models.PolicySetDefinitionVersionLis
return deserialized # type: ignore
-class VariablesOperations:
+class VariablesOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
@@ -8823,7 +8852,7 @@ async def create_or_update(
@overload
async def create_or_update(
- self, variable_name: str, parameters: JSON, *, content_type: str = "application/json", **kwargs: Any
+ self, variable_name: str, parameters: _types.Variable, *, content_type: str = "application/json", **kwargs: Any
) -> _models.Variable:
"""Creates or updates a variable.
@@ -8833,7 +8862,7 @@ async def create_or_update(
:param variable_name: The name of the variable to operate on. Required.
:type variable_name: str
:param parameters: Parameters for the variable. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.Variable
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -8872,7 +8901,7 @@ async def create_or_update(
api_versions_list=["2025-12-01-preview", "2026-01-01-preview"],
)
async def create_or_update(
- self, variable_name: str, parameters: Union[_models.Variable, JSON, IO[bytes]], **kwargs: Any
+ self, variable_name: str, parameters: Union[_models.Variable, _types.Variable, IO[bytes]], **kwargs: Any
) -> _models.Variable:
"""Creates or updates a variable.
@@ -8881,9 +8910,10 @@ async def create_or_update(
:param variable_name: The name of the variable to operate on. Required.
:type variable_name: str
- :param parameters: Parameters for the variable. Is one of the following types: Variable, JSON,
- IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.Variable or JSON or IO[bytes]
+ :param parameters: Parameters for the variable. Is either a Variable type or a IO[bytes] type.
+ Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.Variable or
+ ~azure.mgmt.resource.policy.types.Variable or IO[bytes]
:return: Variable. The Variable is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.Variable
:raises ~azure.core.exceptions.HttpResponseError:
@@ -9228,7 +9258,7 @@ async def create_or_update_at_management_group(
self,
management_group_id: str,
variable_name: str,
- parameters: JSON,
+ parameters: _types.Variable,
*,
content_type: str = "application/json",
**kwargs: Any
@@ -9243,7 +9273,7 @@ async def create_or_update_at_management_group(
:param variable_name: The name of the variable to operate on. Required.
:type variable_name: str
:param parameters: Parameters for the variable. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.Variable
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -9293,7 +9323,7 @@ async def create_or_update_at_management_group(
self,
management_group_id: str,
variable_name: str,
- parameters: Union[_models.Variable, JSON, IO[bytes]],
+ parameters: Union[_models.Variable, _types.Variable, IO[bytes]],
**kwargs: Any
) -> _models.Variable:
"""Creates or updates a variable.
@@ -9305,9 +9335,10 @@ async def create_or_update_at_management_group(
:type management_group_id: str
:param variable_name: The name of the variable to operate on. Required.
:type variable_name: str
- :param parameters: Parameters for the variable. Is one of the following types: Variable, JSON,
- IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.Variable or JSON or IO[bytes]
+ :param parameters: Parameters for the variable. Is either a Variable type or a IO[bytes] type.
+ Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.Variable or
+ ~azure.mgmt.resource.policy.types.Variable or IO[bytes]
:return: Variable. The Variable is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.Variable
:raises ~azure.core.exceptions.HttpResponseError:
@@ -9545,7 +9576,7 @@ async def get_next(next_link=None):
return AsyncItemPaged(get_next, extract_data)
-class VariableValuesOperations:
+class VariableValuesOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
@@ -9675,7 +9706,7 @@ async def create_or_update(
self,
variable_name: str,
variable_value_name: str,
- parameters: JSON,
+ parameters: _types.VariableValue,
*,
content_type: str = "application/json",
**kwargs: Any
@@ -9690,7 +9721,7 @@ async def create_or_update(
:param variable_value_name: The name of the variable value to operate on. Required.
:type variable_value_name: str
:param parameters: Parameters for the variable value. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.VariableValue
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -9747,7 +9778,7 @@ async def create_or_update(
self,
variable_name: str,
variable_value_name: str,
- parameters: Union[_models.VariableValue, JSON, IO[bytes]],
+ parameters: Union[_models.VariableValue, _types.VariableValue, IO[bytes]],
**kwargs: Any
) -> _models.VariableValue:
"""Creates or updates a variable value.
@@ -9759,9 +9790,10 @@ async def create_or_update(
:type variable_name: str
:param variable_value_name: The name of the variable value to operate on. Required.
:type variable_value_name: str
- :param parameters: Parameters for the variable value. Is one of the following types:
- VariableValue, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.VariableValue or JSON or IO[bytes]
+ :param parameters: Parameters for the variable value. Is either a VariableValue type or a
+ IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.VariableValue or
+ ~azure.mgmt.resource.policy.types.VariableValue or IO[bytes]
:return: VariableValue. The VariableValue is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.VariableValue
:raises ~azure.core.exceptions.HttpResponseError:
@@ -10132,7 +10164,7 @@ async def create_or_update_at_management_group(
management_group_id: str,
variable_name: str,
variable_value_name: str,
- parameters: JSON,
+ parameters: _types.VariableValue,
*,
content_type: str = "application/json",
**kwargs: Any
@@ -10149,7 +10181,7 @@ async def create_or_update_at_management_group(
:param variable_value_name: The name of the variable value to operate on. Required.
:type variable_value_name: str
:param parameters: Parameters for the variable value. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.VariableValue
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -10210,7 +10242,7 @@ async def create_or_update_at_management_group(
management_group_id: str,
variable_name: str,
variable_value_name: str,
- parameters: Union[_models.VariableValue, JSON, IO[bytes]],
+ parameters: Union[_models.VariableValue, _types.VariableValue, IO[bytes]],
**kwargs: Any
) -> _models.VariableValue:
"""Creates or updates a variable value.
@@ -10224,9 +10256,10 @@ async def create_or_update_at_management_group(
:type variable_name: str
:param variable_value_name: The name of the variable value to operate on. Required.
:type variable_value_name: str
- :param parameters: Parameters for the variable value. Is one of the following types:
- VariableValue, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.VariableValue or JSON or IO[bytes]
+ :param parameters: Parameters for the variable value. Is either a VariableValue type or a
+ IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.VariableValue or
+ ~azure.mgmt.resource.policy.types.VariableValue or IO[bytes]
:return: VariableValue. The VariableValue is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.VariableValue
:raises ~azure.core.exceptions.HttpResponseError:
@@ -10479,7 +10512,7 @@ async def get_next(next_link=None):
return AsyncItemPaged(get_next, extract_data)
-class PolicyTokensOperations:
+class PolicyTokensOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
@@ -10516,14 +10549,14 @@ async def acquire(
@overload
async def acquire(
- self, parameters: JSON, *, content_type: str = "application/json", **kwargs: Any
+ self, parameters: _types.PolicyTokenRequest, *, content_type: str = "application/json", **kwargs: Any
) -> _models.PolicyTokenResponse:
"""Acquires a policy token.
This operation acquires a policy token in the given subscription for the given request body.
:param parameters: The request body. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicyTokenRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -10552,15 +10585,16 @@ async def acquire(
@distributed_trace_async
async def acquire(
- self, parameters: Union[_models.PolicyTokenRequest, JSON, IO[bytes]], **kwargs: Any
+ self, parameters: Union[_models.PolicyTokenRequest, _types.PolicyTokenRequest, IO[bytes]], **kwargs: Any
) -> _models.PolicyTokenResponse:
"""Acquires a policy token.
This operation acquires a policy token in the given subscription for the given request body.
- :param parameters: The request body. Is one of the following types: PolicyTokenRequest, JSON,
- IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicyTokenRequest or JSON or IO[bytes]
+ :param parameters: The request body. Is either a PolicyTokenRequest type or a IO[bytes] type.
+ Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicyTokenRequest or
+ ~azure.mgmt.resource.policy.types.PolicyTokenRequest or IO[bytes]
:return: PolicyTokenResponse. The PolicyTokenResponse is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicyTokenResponse
:raises ~azure.core.exceptions.HttpResponseError:
@@ -10659,7 +10693,12 @@ async def acquire_at_management_group(
@overload
async def acquire_at_management_group(
- self, management_group_name: str, parameters: JSON, *, content_type: str = "application/json", **kwargs: Any
+ self,
+ management_group_name: str,
+ parameters: _types.PolicyTokenRequest,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
) -> _models.PolicyTokenResponse:
"""Acquires a policy token at management group level.
@@ -10670,7 +10709,7 @@ async def acquire_at_management_group(
Required.
:type management_group_name: str
:param parameters: The policy token properties. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicyTokenRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -10708,7 +10747,10 @@ async def acquire_at_management_group(
@distributed_trace_async
async def acquire_at_management_group(
- self, management_group_name: str, parameters: Union[_models.PolicyTokenRequest, JSON, IO[bytes]], **kwargs: Any
+ self,
+ management_group_name: str,
+ parameters: Union[_models.PolicyTokenRequest, _types.PolicyTokenRequest, IO[bytes]],
+ **kwargs: Any
) -> _models.PolicyTokenResponse:
"""Acquires a policy token at management group level.
@@ -10718,9 +10760,10 @@ async def acquire_at_management_group(
:param management_group_name: The name of the management group. The name is case insensitive.
Required.
:type management_group_name: str
- :param parameters: The policy token properties. Is one of the following types:
- PolicyTokenRequest, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicyTokenRequest or JSON or IO[bytes]
+ :param parameters: The policy token properties. Is either a PolicyTokenRequest type or a
+ IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicyTokenRequest or
+ ~azure.mgmt.resource.policy.types.PolicyTokenRequest or IO[bytes]
:return: PolicyTokenResponse. The PolicyTokenResponse is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicyTokenResponse
:raises ~azure.core.exceptions.HttpResponseError:
diff --git a/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/models/_enums.py b/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/models/_enums.py
index 1f498115bb08..0e57779b8801 100644
--- a/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/models/_enums.py
+++ b/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/models/_enums.py
@@ -207,7 +207,7 @@ class ResourceIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
SYSTEM_ASSIGNED = "SystemAssigned"
"""Indicates that a system assigned identity is associated with the resource."""
USER_ASSIGNED = "UserAssigned"
- """Indicates that a system assigned identity is associated with the resource."""
+ """Indicates that a user assigned identity is associated with the resource."""
NONE = "None"
"""Indicates that no identity is associated with the resource or that the existing identity should
be removed."""
diff --git a/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/models/_models.py b/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/models/_models.py
index 857b8630ee8d..fac2e11fd3b6 100644
--- a/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/models/_models.py
+++ b/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/models/_models.py
@@ -17,7 +17,7 @@
from .. import models as _models
-class Alias(_Model):
+class Alias(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The alias type.
:ivar name: The alias name.
@@ -80,7 +80,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class AliasPath(_Model):
+class AliasPath(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The type of the paths for alias.
:ivar path: The path of an alias.
@@ -125,7 +125,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class AliasPathMetadata(_Model):
+class AliasPathMetadata(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The alias path metadata.
:ivar type: The type of the token that the alias path is referring to. Known values are:
@@ -166,7 +166,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class AliasPattern(_Model):
+class AliasPattern(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The type of the pattern for an alias path.
:ivar phrase: The alias pattern phrase.
@@ -206,7 +206,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class DataEffect(_Model):
+class DataEffect(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The data effect definition.
:ivar name: The data effect name.
@@ -241,7 +241,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class DataManifestCustomResourceFunctionDefinition(_Model): # pylint: disable=name-too-long
+class DataManifestCustomResourceFunctionDefinition(
+ _Model
+): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only
"""The custom resource function definition.
:ivar name: The function name as it will appear in the policy rule. eg - 'vault'.
@@ -297,7 +299,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class DataManifestResourceFunctionsDefinition(_Model):
+class DataManifestResourceFunctionsDefinition(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The resource functions supported by a manifest.
:ivar standard: The standard resource functions (subscription and/or resourceGroup).
@@ -378,7 +380,7 @@ class ProxyResource(Resource):
"""
-class DataPolicyManifest(ProxyResource):
+class DataPolicyManifest(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The data policy manifest.
:ivar id: Fully qualified resource ID for the resource. Ex -
@@ -419,7 +421,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class DataPolicyManifestProperties(_Model):
+class DataPolicyManifestProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The properties of the data policy manifest.
:ivar namespaces: The list of namespaces for the data policy manifest.
@@ -555,7 +557,7 @@ class ErrorDetail(_Model):
"""The error additional info."""
-class ErrorResponse(_Model):
+class ErrorResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""Error response.
:ivar error: The error object.
@@ -600,7 +602,9 @@ class ExtensionResource(Resource):
"""
-class ExternalEvaluationEndpointInvocationResult(_Model): # pylint: disable=name-too-long
+class ExternalEvaluationEndpointInvocationResult(
+ _Model
+): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only
"""The external evaluation endpoint invocation results.
:ivar policy_info: The details of the policy requiring the external endpoint invocation.
@@ -698,7 +702,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class ExternalEvaluationEndpointSettings(_Model):
+class ExternalEvaluationEndpointSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The settings of an external endpoint providing evaluation results.
:ivar kind: The kind of the endpoint.
@@ -731,7 +735,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class ExternalEvaluationEnforcementSettings(_Model):
+class ExternalEvaluationEnforcementSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The details of the source of external evaluation results required by the policy during
enforcement evaluation.
@@ -792,7 +796,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class Identity(_Model):
+class Identity(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""Identity for the resource. Policy assignments support a maximum of one identity. That is
either a system assigned identity or a single user assigned identity.
@@ -850,7 +854,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class NonComplianceMessage(_Model):
+class NonComplianceMessage(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""A message that describes why a resource is non-compliant with the policy. This is shown in
'deny' error messages and on resource's non-compliant compliance results.
@@ -893,7 +897,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class Override(_Model):
+class Override(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The policy property value override.
:ivar kind: The override kind. Known values are: "policyEffect" and "definitionVersion".
@@ -935,7 +939,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class ParameterDefinitionsValue(_Model):
+class ParameterDefinitionsValue(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The definition of a parameter that can be provided to the policy.
:ivar type: The data type of the parameter. Known values are: "String", "Array", "Object",
@@ -1001,7 +1005,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class ParameterDefinitionsValueMetadata(_Model):
+class ParameterDefinitionsValueMetadata(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""General metadata for the parameter.
:ivar display_name: The display name for the parameter.
@@ -1056,7 +1060,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class ParameterValuesValue(_Model):
+class ParameterValuesValue(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The value of a parameter.
:ivar value: The value of the parameter.
@@ -1084,7 +1088,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class PolicyAssignment(ExtensionResource):
+class PolicyAssignment(ExtensionResource): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The policy assignment.
:ivar id: Fully qualified resource ID for the resource. Ex -
@@ -1174,7 +1178,7 @@ def __setattr__(self, key: str, value: Any) -> None:
super().__setattr__(key, value)
-class PolicyAssignmentProperties(_Model):
+class PolicyAssignmentProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The policy assignment properties.
:ivar display_name: The display name of the policy assignment.
@@ -1319,7 +1323,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class PolicyAssignmentUpdate(_Model):
+class PolicyAssignmentUpdate(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The policy assignment for Patch request.
:ivar properties: The policy assignment properties for Patch request.
@@ -1380,7 +1384,7 @@ def __setattr__(self, key: str, value: Any) -> None:
super().__setattr__(key, value)
-class PolicyAssignmentUpdateProperties(_Model):
+class PolicyAssignmentUpdateProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The policy assignment properties for Patch request.
:ivar resource_selectors: The resource selector list to filter policies by resource properties.
@@ -1426,7 +1430,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class PolicyDefinition(ProxyResource):
+class PolicyDefinition(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The policy definition.
:ivar id: Fully qualified resource ID for the resource. Ex -
@@ -1498,7 +1502,7 @@ def __setattr__(self, key: str, value: Any) -> None:
super().__setattr__(key, value)
-class PolicyDefinitionGroup(_Model):
+class PolicyDefinitionGroup(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The policy definition group.
:ivar name: The name of the group. Required.
@@ -1551,7 +1555,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class PolicyDefinitionProperties(_Model):
+class PolicyDefinitionProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The policy definition properties.
:ivar policy_type: The type of policy definition. Possible values are NotSpecified, BuiltIn,
@@ -1644,7 +1648,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class PolicyDefinitionReference(_Model):
+class PolicyDefinitionReference(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The policy definition reference.
:ivar policy_definition_id: The ID of the policy definition or policy set definition. Required.
@@ -1716,7 +1720,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class PolicyDefinitionVersion(ProxyResource):
+class PolicyDefinitionVersion(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The ID of the policy definition version.
:ivar id: Fully qualified resource ID for the resource. Ex -
@@ -1787,7 +1791,7 @@ def __setattr__(self, key: str, value: Any) -> None:
super().__setattr__(key, value)
-class PolicyDefinitionVersionListResult(_Model):
+class PolicyDefinitionVersionListResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The response of a PolicyDefinitionVersion list operation.
:ivar value: The PolicyDefinitionVersion items on this page. Required.
@@ -1822,7 +1826,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class PolicyDefinitionVersionProperties(_Model):
+class PolicyDefinitionVersionProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The policy definition properties.
:ivar policy_type: The type of policy definition. Possible values are NotSpecified, BuiltIn,
@@ -1910,7 +1914,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class PolicyEnrollment(ExtensionResource):
+class PolicyEnrollment(ExtensionResource): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The policy enrollment.
:ivar id: Fully qualified resource ID for the resource. Ex -
@@ -1985,7 +1989,7 @@ def __setattr__(self, key: str, value: Any) -> None:
super().__setattr__(key, value)
-class PolicyEnrollmentProperties(_Model):
+class PolicyEnrollmentProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The policy enrollment properties.
:ivar policy_assignment_id: The ID of the policy assignment that is being enrolled. Required.
@@ -2074,7 +2078,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class PolicyEnrollmentUpdate(_Model):
+class PolicyEnrollmentUpdate(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The policy enrollment for Patch request.
:ivar properties: The policy enrollment properties for Patch request.
@@ -2124,7 +2128,7 @@ def __setattr__(self, key: str, value: Any) -> None:
super().__setattr__(key, value)
-class PolicyEnrollmentUpdateProperties(_Model):
+class PolicyEnrollmentUpdateProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The policy enrollment properties for Patch request.
:ivar assignment_scope_validation: The option whether to validate the enrollment is at or under
@@ -2164,7 +2168,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class PolicyExemption(ExtensionResource):
+class PolicyExemption(ExtensionResource): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The policy exemption.
:ivar id: Fully qualified resource ID for the resource. Ex -
@@ -2235,7 +2239,7 @@ def __setattr__(self, key: str, value: Any) -> None:
super().__setattr__(key, value)
-class PolicyExemptionProperties(_Model):
+class PolicyExemptionProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The policy exemption properties.
:ivar policy_assignment_id: The ID of the policy assignment that is being exempted. Required.
@@ -2328,7 +2332,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class PolicyExemptionUpdate(_Model):
+class PolicyExemptionUpdate(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The policy exemption for Patch request.
:ivar properties: The policy exemption properties for Patch request.
@@ -2378,7 +2382,7 @@ def __setattr__(self, key: str, value: Any) -> None:
super().__setattr__(key, value)
-class PolicyExemptionUpdateProperties(_Model):
+class PolicyExemptionUpdateProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The policy exemption properties for Patch request.
:ivar resource_selectors: The resource selector list to filter policies by resource properties.
@@ -2418,7 +2422,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class PolicyLogInfo(_Model):
+class PolicyLogInfo(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The policy log info.
:ivar policy_definition_id: The policy definition Id.
@@ -2525,7 +2529,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class PolicySetDefinition(ProxyResource):
+class PolicySetDefinition(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The policy set definition.
:ivar id: Fully qualified resource ID for the resource. Ex -
@@ -2596,7 +2600,7 @@ def __setattr__(self, key: str, value: Any) -> None:
super().__setattr__(key, value)
-class PolicySetDefinitionProperties(_Model):
+class PolicySetDefinitionProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The policy set definition properties.
:ivar policy_type: The type of policy set definition. Possible values are NotSpecified,
@@ -2683,7 +2687,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class PolicySetDefinitionVersion(ProxyResource):
+class PolicySetDefinitionVersion(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The policy set definition version.
:ivar id: Fully qualified resource ID for the resource. Ex -
@@ -2753,7 +2757,7 @@ def __setattr__(self, key: str, value: Any) -> None:
super().__setattr__(key, value)
-class PolicySetDefinitionVersionListResult(_Model):
+class PolicySetDefinitionVersionListResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The response of a PolicySetDefinitionVersion list operation.
:ivar value: The PolicySetDefinitionVersion items on this page. Required.
@@ -2788,7 +2792,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class PolicySetDefinitionVersionProperties(_Model):
+class PolicySetDefinitionVersionProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The policy set definition properties.
:ivar policy_type: The type of policy definition. Possible values are NotSpecified, BuiltIn,
@@ -2869,7 +2873,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class PolicyTokenEvaluatedRequestDetails(_Model):
+class PolicyTokenEvaluatedRequestDetails(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The policy token evaluated request details.
:ivar uri: The request URI of the resource operation that is targeted by the issued token.
@@ -2931,7 +2935,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class PolicyTokenOperation(_Model):
+class PolicyTokenOperation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The resource operation to acquire a token for.
:ivar uri: The request URI of the resource operation. Required.
@@ -2969,7 +2973,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class PolicyTokenRequest(_Model):
+class PolicyTokenRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The policy token request properties.
:ivar operation: The resource operation to acquire a token for. Required.
@@ -3004,7 +3008,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class PolicyTokenResponse(_Model):
+class PolicyTokenResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The policy token response properties.
:ivar result: The result of the completed token acquisition operation. Possible values are
@@ -3091,7 +3095,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class PolicyVariableColumn(_Model):
+class PolicyVariableColumn(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The variable column.
:ivar column_name: The name of this policy variable column. Required.
@@ -3119,7 +3123,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class PolicyVariableProperties(_Model):
+class PolicyVariableProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The variable properties.
:ivar columns: Variable column definitions. Required.
@@ -3149,7 +3153,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class PolicyVariableValueColumnValue(_Model):
+class PolicyVariableValueColumnValue(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The name value tuple for this variable value column.
:ivar column_name: Column name for the variable value. Required.
@@ -3184,7 +3188,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class PolicyVariableValueProperties(_Model):
+class PolicyVariableValueProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The variable value properties.
:ivar values_property: Variable value column value array. Required.
@@ -3215,7 +3219,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class ResourceSelector(_Model):
+class ResourceSelector(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The resource selector to filter policies by resource properties.
:ivar name: The name of the resource selector.
@@ -3250,7 +3254,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class ResourceTypeAliases(_Model):
+class ResourceTypeAliases(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The resource type aliases definition.
:ivar resource_type: The resource type name.
@@ -3285,7 +3289,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class Selector(_Model):
+class Selector(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The selector expression.
:ivar kind: The selector kind. Known values are: "resourceLocation", "resourceType",
@@ -3329,7 +3333,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class SelfServeExemptionSettings(_Model):
+class SelfServeExemptionSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The self-serve exemption settings for a policy assignment.
:ivar enabled: Indicates whether self-serve exemption is enabled.
@@ -3365,7 +3369,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class SystemData(_Model):
+class SystemData(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""Metadata pertaining to creation and last modification of the resource.
:ivar created_by: The identity that created the resource.
@@ -3447,7 +3451,7 @@ class UserAssignedIdentitiesValue(_Model):
"""The client id of user assigned identity."""
-class Variable(ProxyResource):
+class Variable(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The variable.
:ivar id: Fully qualified resource ID for the resource. Ex -
@@ -3508,7 +3512,7 @@ def __setattr__(self, key: str, value: Any) -> None:
super().__setattr__(key, value)
-class VariableValue(ProxyResource):
+class VariableValue(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The variable value.
:ivar id: Fully qualified resource ID for the resource. Ex -
diff --git a/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/operations/_operations.py b/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/operations/_operations.py
index f54fb337420b..c51cab8ec58b 100644
--- a/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/operations/_operations.py
+++ b/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/operations/_operations.py
@@ -30,13 +30,12 @@
from azure.core.utils import case_insensitive_dict
from azure.mgmt.core.exceptions import ARMErrorFormat
-from .. import models as _models
+from .. import models as _models, types as _types
from .._configuration import PolicyClientConfiguration
from .._utils.model_base import SdkJSONEncoder, _deserialize, _failsafe_deserialize
from .._utils.serialization import Deserializer, Serializer
from .._validation import api_version_validation
-JSON = MutableMapping[str, Any]
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]]
List = list
@@ -2684,7 +2683,7 @@ def build_policy_tokens_acquire_at_management_group_request( # pylint: disable=
return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
-class PolicyAssignmentsOperations:
+class PolicyAssignmentsOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
@@ -2813,7 +2812,12 @@ def create_by_id(
@overload
def create_by_id(
- self, policy_assignment_id: str, parameters: JSON, *, content_type: str = "application/json", **kwargs: Any
+ self,
+ policy_assignment_id: str,
+ parameters: _types.PolicyAssignment,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any,
) -> _models.PolicyAssignment:
"""Creates or updates a policy assignment.
@@ -2832,7 +2836,7 @@ def create_by_id(
'{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Required.
:type policy_assignment_id: str
:param parameters: Parameters for policy assignment. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicyAssignment
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -2873,7 +2877,10 @@ def create_by_id(
@distributed_trace
def create_by_id(
- self, policy_assignment_id: str, parameters: Union[_models.PolicyAssignment, JSON, IO[bytes]], **kwargs: Any
+ self,
+ policy_assignment_id: str,
+ parameters: Union[_models.PolicyAssignment, _types.PolicyAssignment, IO[bytes]],
+ **kwargs: Any,
) -> _models.PolicyAssignment:
"""Creates or updates a policy assignment.
@@ -2891,9 +2898,10 @@ def create_by_id(
:param policy_assignment_id: The ID of the policy assignment to get. Use the format
'{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Required.
:type policy_assignment_id: str
- :param parameters: Parameters for policy assignment. Is one of the following types:
- PolicyAssignment, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicyAssignment or JSON or IO[bytes]
+ :param parameters: Parameters for policy assignment. Is either a PolicyAssignment type or a
+ IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicyAssignment or
+ ~azure.mgmt.resource.policy.types.PolicyAssignment or IO[bytes]
:return: PolicyAssignment. The PolicyAssignment is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicyAssignment
:raises ~azure.core.exceptions.HttpResponseError:
@@ -3000,7 +3008,12 @@ def update_by_id(
@overload
def update_by_id(
- self, policy_assignment_id: str, parameters: JSON, *, content_type: str = "application/json", **kwargs: Any
+ self,
+ policy_assignment_id: str,
+ parameters: _types.PolicyAssignmentUpdate,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any,
) -> _models.PolicyAssignment:
"""Updates a policy assignment.
@@ -3019,7 +3032,7 @@ def update_by_id(
'{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Required.
:type policy_assignment_id: str
:param parameters: Parameters for policy assignment patch request. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicyAssignmentUpdate
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -3062,7 +3075,7 @@ def update_by_id(
def update_by_id(
self,
policy_assignment_id: str,
- parameters: Union[_models.PolicyAssignmentUpdate, JSON, IO[bytes]],
+ parameters: Union[_models.PolicyAssignmentUpdate, _types.PolicyAssignmentUpdate, IO[bytes]],
**kwargs: Any,
) -> _models.PolicyAssignment:
"""Updates a policy assignment.
@@ -3081,10 +3094,10 @@ def update_by_id(
:param policy_assignment_id: The ID of the policy assignment to get. Use the format
'{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Required.
:type policy_assignment_id: str
- :param parameters: Parameters for policy assignment patch request. Is one of the following
- types: PolicyAssignmentUpdate, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicyAssignmentUpdate or JSON or
- IO[bytes]
+ :param parameters: Parameters for policy assignment patch request. Is either a
+ PolicyAssignmentUpdate type or a IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicyAssignmentUpdate or
+ ~azure.mgmt.resource.policy.types.PolicyAssignmentUpdate or IO[bytes]
:return: PolicyAssignment. The PolicyAssignment is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicyAssignment
:raises ~azure.core.exceptions.HttpResponseError:
@@ -3339,7 +3352,7 @@ def create(
self,
scope: str,
policy_assignment_name: str,
- parameters: JSON,
+ parameters: _types.PolicyAssignment,
*,
content_type: str = "application/json",
**kwargs: Any,
@@ -3353,7 +3366,7 @@ def create(
:param policy_assignment_name: The name of the policy assignment to get. Required.
:type policy_assignment_name: str
:param parameters: Parameters for the policy assignment. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicyAssignment
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -3395,7 +3408,7 @@ def create(
self,
scope: str,
policy_assignment_name: str,
- parameters: Union[_models.PolicyAssignment, JSON, IO[bytes]],
+ parameters: Union[_models.PolicyAssignment, _types.PolicyAssignment, IO[bytes]],
**kwargs: Any,
) -> _models.PolicyAssignment:
"""This operation creates or updates a policy assignment with the given scope and name. Policy
@@ -3406,9 +3419,10 @@ def create(
:type scope: str
:param policy_assignment_name: The name of the policy assignment to get. Required.
:type policy_assignment_name: str
- :param parameters: Parameters for the policy assignment. Is one of the following types:
- PolicyAssignment, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicyAssignment or JSON or IO[bytes]
+ :param parameters: Parameters for the policy assignment. Is either a PolicyAssignment type or a
+ IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicyAssignment or
+ ~azure.mgmt.resource.policy.types.PolicyAssignment or IO[bytes]
:return: PolicyAssignment. The PolicyAssignment is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicyAssignment
:raises ~azure.core.exceptions.HttpResponseError:
@@ -3512,7 +3526,7 @@ def update(
self,
scope: str,
policy_assignment_name: str,
- parameters: JSON,
+ parameters: _types.PolicyAssignmentUpdate,
*,
content_type: str = "application/json",
**kwargs: Any,
@@ -3526,7 +3540,7 @@ def update(
:param policy_assignment_name: The name of the policy assignment to get. Required.
:type policy_assignment_name: str
:param parameters: Parameters for policy assignment patch request. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicyAssignmentUpdate
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -3568,7 +3582,7 @@ def update(
self,
scope: str,
policy_assignment_name: str,
- parameters: Union[_models.PolicyAssignmentUpdate, JSON, IO[bytes]],
+ parameters: Union[_models.PolicyAssignmentUpdate, _types.PolicyAssignmentUpdate, IO[bytes]],
**kwargs: Any,
) -> _models.PolicyAssignment:
"""This operation updates a policy assignment with the given scope and name. Policy assignments
@@ -3579,10 +3593,10 @@ def update(
:type scope: str
:param policy_assignment_name: The name of the policy assignment to get. Required.
:type policy_assignment_name: str
- :param parameters: Parameters for policy assignment patch request. Is one of the following
- types: PolicyAssignmentUpdate, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicyAssignmentUpdate or JSON or
- IO[bytes]
+ :param parameters: Parameters for policy assignment patch request. Is either a
+ PolicyAssignmentUpdate type or a IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicyAssignmentUpdate or
+ ~azure.mgmt.resource.policy.types.PolicyAssignmentUpdate or IO[bytes]
:return: PolicyAssignment. The PolicyAssignment is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicyAssignment
:raises ~azure.core.exceptions.HttpResponseError:
@@ -4286,7 +4300,7 @@ def get_next(next_link=None):
return ItemPaged(get_next, extract_data)
-class DataPolicyManifestsOperations:
+class DataPolicyManifestsOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
@@ -4485,7 +4499,7 @@ def get_next(next_link=None):
return ItemPaged(get_next, extract_data)
-class PolicyDefinitionsOperations:
+class PolicyDefinitionsOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
@@ -4594,7 +4608,12 @@ def create_or_update(
@overload
def create_or_update(
- self, policy_definition_name: str, parameters: JSON, *, content_type: str = "application/json", **kwargs: Any
+ self,
+ policy_definition_name: str,
+ parameters: _types.PolicyDefinition,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any,
) -> _models.PolicyDefinition:
"""This operation creates or updates a policy definition in the given subscription with the given
name.
@@ -4602,7 +4621,7 @@ def create_or_update(
:param policy_definition_name: The name of the policy definition to get. Required.
:type policy_definition_name: str
:param parameters: The policy definition properties. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicyDefinition
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -4637,16 +4656,20 @@ def create_or_update(
@distributed_trace
def create_or_update(
- self, policy_definition_name: str, parameters: Union[_models.PolicyDefinition, JSON, IO[bytes]], **kwargs: Any
+ self,
+ policy_definition_name: str,
+ parameters: Union[_models.PolicyDefinition, _types.PolicyDefinition, IO[bytes]],
+ **kwargs: Any,
) -> _models.PolicyDefinition:
"""This operation creates or updates a policy definition in the given subscription with the given
name.
:param policy_definition_name: The name of the policy definition to get. Required.
:type policy_definition_name: str
- :param parameters: The policy definition properties. Is one of the following types:
- PolicyDefinition, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicyDefinition or JSON or IO[bytes]
+ :param parameters: The policy definition properties. Is either a PolicyDefinition type or a
+ IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicyDefinition or
+ ~azure.mgmt.resource.policy.types.PolicyDefinition or IO[bytes]
:return: PolicyDefinition. The PolicyDefinition is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicyDefinition
:raises ~azure.core.exceptions.HttpResponseError:
@@ -5170,7 +5193,7 @@ def create_or_update_at_management_group(
self,
management_group_id: str,
policy_definition_name: str,
- parameters: JSON,
+ parameters: _types.PolicyDefinition,
*,
content_type: str = "application/json",
**kwargs: Any,
@@ -5183,7 +5206,7 @@ def create_or_update_at_management_group(
:param policy_definition_name: The name of the policy definition to get. Required.
:type policy_definition_name: str
:param parameters: The policy definition properties. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicyDefinition
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -5224,7 +5247,7 @@ def create_or_update_at_management_group(
self,
management_group_id: str,
policy_definition_name: str,
- parameters: Union[_models.PolicyDefinition, JSON, IO[bytes]],
+ parameters: Union[_models.PolicyDefinition, _types.PolicyDefinition, IO[bytes]],
**kwargs: Any,
) -> _models.PolicyDefinition:
"""This operation creates or updates a policy definition in the given management group with the
@@ -5234,9 +5257,10 @@ def create_or_update_at_management_group(
:type management_group_id: str
:param policy_definition_name: The name of the policy definition to get. Required.
:type policy_definition_name: str
- :param parameters: The policy definition properties. Is one of the following types:
- PolicyDefinition, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicyDefinition or JSON or IO[bytes]
+ :param parameters: The policy definition properties. Is either a PolicyDefinition type or a
+ IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicyDefinition or
+ ~azure.mgmt.resource.policy.types.PolicyDefinition or IO[bytes]
:return: PolicyDefinition. The PolicyDefinition is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicyDefinition
:raises ~azure.core.exceptions.HttpResponseError:
@@ -5486,7 +5510,7 @@ def get_next(next_link=None):
return ItemPaged(get_next, extract_data)
-class PolicyDefinitionVersionsOperations:
+class PolicyDefinitionVersionsOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
@@ -5611,7 +5635,7 @@ def create_or_update(
self,
policy_definition_name: str,
policy_definition_version: str,
- parameters: JSON,
+ parameters: _types.PolicyDefinitionVersion,
*,
content_type: str = "application/json",
**kwargs: Any,
@@ -5626,7 +5650,7 @@ def create_or_update(
Required.
:type policy_definition_version: str
:param parameters: The policy definition properties. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicyDefinitionVersion
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -5669,7 +5693,7 @@ def create_or_update(
self,
policy_definition_name: str,
policy_definition_version: str,
- parameters: Union[_models.PolicyDefinitionVersion, JSON, IO[bytes]],
+ parameters: Union[_models.PolicyDefinitionVersion, _types.PolicyDefinitionVersion, IO[bytes]],
**kwargs: Any,
) -> _models.PolicyDefinitionVersion:
"""This operation creates or updates a policy definition in the given subscription with the given
@@ -5681,10 +5705,10 @@ def create_or_update(
is the major version number, y is the minor version number, and z is the patch number.
Required.
:type policy_definition_version: str
- :param parameters: The policy definition properties. Is one of the following types:
- PolicyDefinitionVersion, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicyDefinitionVersion or JSON or
- IO[bytes]
+ :param parameters: The policy definition properties. Is either a PolicyDefinitionVersion type
+ or a IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicyDefinitionVersion or
+ ~azure.mgmt.resource.policy.types.PolicyDefinitionVersion or IO[bytes]
:return: PolicyDefinitionVersion. The PolicyDefinitionVersion is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicyDefinitionVersion
:raises ~azure.core.exceptions.HttpResponseError:
@@ -6212,7 +6236,7 @@ def create_or_update_at_management_group(
management_group_name: str,
policy_definition_name: str,
policy_definition_version: str,
- parameters: JSON,
+ parameters: _types.PolicyDefinitionVersion,
*,
content_type: str = "application/json",
**kwargs: Any,
@@ -6230,7 +6254,7 @@ def create_or_update_at_management_group(
Required.
:type policy_definition_version: str
:param parameters: The policy definition properties. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicyDefinitionVersion
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -6278,7 +6302,7 @@ def create_or_update_at_management_group(
management_group_name: str,
policy_definition_name: str,
policy_definition_version: str,
- parameters: Union[_models.PolicyDefinitionVersion, JSON, IO[bytes]],
+ parameters: Union[_models.PolicyDefinitionVersion, _types.PolicyDefinitionVersion, IO[bytes]],
**kwargs: Any,
) -> _models.PolicyDefinitionVersion:
"""This operation creates or updates a policy definition version in the given management group
@@ -6293,10 +6317,10 @@ def create_or_update_at_management_group(
is the major version number, y is the minor version number, and z is the patch number.
Required.
:type policy_definition_version: str
- :param parameters: The policy definition properties. Is one of the following types:
- PolicyDefinitionVersion, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicyDefinitionVersion or JSON or
- IO[bytes]
+ :param parameters: The policy definition properties. Is either a PolicyDefinitionVersion type
+ or a IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicyDefinitionVersion or
+ ~azure.mgmt.resource.policy.types.PolicyDefinitionVersion or IO[bytes]
:return: PolicyDefinitionVersion. The PolicyDefinitionVersion is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicyDefinitionVersion
:raises ~azure.core.exceptions.HttpResponseError:
@@ -6744,7 +6768,7 @@ def list_all(self, **kwargs: Any) -> _models.PolicyDefinitionVersionListResult:
return deserialized # type: ignore
-class PolicyEnrollmentsOperations:
+class PolicyEnrollmentsOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
@@ -6873,7 +6897,7 @@ def create_or_update(
self,
scope: str,
policy_enrollment_name: str,
- parameters: JSON,
+ parameters: _types.PolicyEnrollment,
*,
content_type: str = "application/json",
**kwargs: Any,
@@ -6890,7 +6914,7 @@ def create_or_update(
:param policy_enrollment_name: The name of the policy enrollment. Required.
:type policy_enrollment_name: str
:param parameters: The policy enrollment resource to create or replace. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicyEnrollment
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -6942,7 +6966,7 @@ def create_or_update(
self,
scope: str,
policy_enrollment_name: str,
- parameters: Union[_models.PolicyEnrollment, JSON, IO[bytes]],
+ parameters: Union[_models.PolicyEnrollment, _types.PolicyEnrollment, IO[bytes]],
**kwargs: Any,
) -> _models.PolicyEnrollment:
"""Creates or updates a policy enrollment.
@@ -6956,9 +6980,10 @@ def create_or_update(
:type scope: str
:param policy_enrollment_name: The name of the policy enrollment. Required.
:type policy_enrollment_name: str
- :param parameters: The policy enrollment resource to create or replace. Is one of the following
- types: PolicyEnrollment, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicyEnrollment or JSON or IO[bytes]
+ :param parameters: The policy enrollment resource to create or replace. Is either a
+ PolicyEnrollment type or a IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicyEnrollment or
+ ~azure.mgmt.resource.policy.types.PolicyEnrollment or IO[bytes]
:return: PolicyEnrollment. The PolicyEnrollment is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicyEnrollment
:raises ~azure.core.exceptions.HttpResponseError:
@@ -7062,7 +7087,7 @@ def update(
self,
scope: str,
policy_enrollment_name: str,
- parameters: JSON,
+ parameters: _types.PolicyEnrollmentUpdate,
*,
content_type: str = "application/json",
**kwargs: Any,
@@ -7076,7 +7101,7 @@ def update(
:param policy_enrollment_name: The name of the policy enrollment. Required.
:type policy_enrollment_name: str
:param parameters: The properties to update in the policy enrollment. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicyEnrollmentUpdate
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -7125,7 +7150,7 @@ def update(
self,
scope: str,
policy_enrollment_name: str,
- parameters: Union[_models.PolicyEnrollmentUpdate, JSON, IO[bytes]],
+ parameters: Union[_models.PolicyEnrollmentUpdate, _types.PolicyEnrollmentUpdate, IO[bytes]],
**kwargs: Any,
) -> _models.PolicyEnrollment:
"""Updates a policy enrollment.
@@ -7136,10 +7161,10 @@ def update(
:type scope: str
:param policy_enrollment_name: The name of the policy enrollment. Required.
:type policy_enrollment_name: str
- :param parameters: The properties to update in the policy enrollment. Is one of the following
- types: PolicyEnrollmentUpdate, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicyEnrollmentUpdate or JSON or
- IO[bytes]
+ :param parameters: The properties to update in the policy enrollment. Is either a
+ PolicyEnrollmentUpdate type or a IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicyEnrollmentUpdate or
+ ~azure.mgmt.resource.policy.types.PolicyEnrollmentUpdate or IO[bytes]
:return: PolicyEnrollment. The PolicyEnrollment is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicyEnrollment
:raises ~azure.core.exceptions.HttpResponseError:
@@ -7800,7 +7825,7 @@ def get_next(next_link=None):
return ItemPaged(get_next, extract_data)
-class PolicyExemptionsOperations:
+class PolicyExemptionsOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
@@ -7929,7 +7954,7 @@ def create_or_update(
self,
scope: str,
policy_exemption_name: str,
- parameters: JSON,
+ parameters: _types.PolicyExemption,
*,
content_type: str = "application/json",
**kwargs: Any,
@@ -7946,7 +7971,7 @@ def create_or_update(
:param policy_exemption_name: The name of the policy exemption to get. Required.
:type policy_exemption_name: str
:param parameters: Parameters for the policy exemption. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicyExemption
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -7998,7 +8023,7 @@ def create_or_update(
self,
scope: str,
policy_exemption_name: str,
- parameters: Union[_models.PolicyExemption, JSON, IO[bytes]],
+ parameters: Union[_models.PolicyExemption, _types.PolicyExemption, IO[bytes]],
**kwargs: Any,
) -> _models.PolicyExemption:
"""Creates or updates a policy exemption.
@@ -8012,9 +8037,10 @@ def create_or_update(
:type scope: str
:param policy_exemption_name: The name of the policy exemption to get. Required.
:type policy_exemption_name: str
- :param parameters: Parameters for the policy exemption. Is one of the following types:
- PolicyExemption, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicyExemption or JSON or IO[bytes]
+ :param parameters: Parameters for the policy exemption. Is either a PolicyExemption type or a
+ IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicyExemption or
+ ~azure.mgmt.resource.policy.types.PolicyExemption or IO[bytes]
:return: PolicyExemption. The PolicyExemption is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicyExemption
:raises ~azure.core.exceptions.HttpResponseError:
@@ -8118,7 +8144,7 @@ def update(
self,
scope: str,
policy_exemption_name: str,
- parameters: JSON,
+ parameters: _types.PolicyExemptionUpdate,
*,
content_type: str = "application/json",
**kwargs: Any,
@@ -8132,7 +8158,7 @@ def update(
:param policy_exemption_name: The name of the policy exemption to get. Required.
:type policy_exemption_name: str
:param parameters: Parameters for policy exemption patch request. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicyExemptionUpdate
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -8181,7 +8207,7 @@ def update(
self,
scope: str,
policy_exemption_name: str,
- parameters: Union[_models.PolicyExemptionUpdate, JSON, IO[bytes]],
+ parameters: Union[_models.PolicyExemptionUpdate, _types.PolicyExemptionUpdate, IO[bytes]],
**kwargs: Any,
) -> _models.PolicyExemption:
"""Updates a policy exemption.
@@ -8192,9 +8218,10 @@ def update(
:type scope: str
:param policy_exemption_name: The name of the policy exemption to get. Required.
:type policy_exemption_name: str
- :param parameters: Parameters for policy exemption patch request. Is one of the following
- types: PolicyExemptionUpdate, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicyExemptionUpdate or JSON or IO[bytes]
+ :param parameters: Parameters for policy exemption patch request. Is either a
+ PolicyExemptionUpdate type or a IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicyExemptionUpdate or
+ ~azure.mgmt.resource.policy.types.PolicyExemptionUpdate or IO[bytes]
:return: PolicyExemption. The PolicyExemption is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicyExemption
:raises ~azure.core.exceptions.HttpResponseError:
@@ -8873,7 +8900,7 @@ def get_next(next_link=None):
return ItemPaged(get_next, extract_data)
-class PolicySetDefinitionsOperations:
+class PolicySetDefinitionsOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
@@ -8992,7 +9019,7 @@ def create_or_update(
def create_or_update(
self,
policy_set_definition_name: str,
- parameters: JSON,
+ parameters: _types.PolicySetDefinition,
*,
content_type: str = "application/json",
**kwargs: Any,
@@ -9003,7 +9030,7 @@ def create_or_update(
:param policy_set_definition_name: The name of the policy set definition to get. Required.
:type policy_set_definition_name: str
:param parameters: The policy set definition properties. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicySetDefinition
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -9040,7 +9067,7 @@ def create_or_update(
def create_or_update(
self,
policy_set_definition_name: str,
- parameters: Union[_models.PolicySetDefinition, JSON, IO[bytes]],
+ parameters: Union[_models.PolicySetDefinition, _types.PolicySetDefinition, IO[bytes]],
**kwargs: Any,
) -> _models.PolicySetDefinition:
"""This operation creates or updates a policy set definition in the given subscription with the
@@ -9048,9 +9075,10 @@ def create_or_update(
:param policy_set_definition_name: The name of the policy set definition to get. Required.
:type policy_set_definition_name: str
- :param parameters: The policy set definition properties. Is one of the following types:
- PolicySetDefinition, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicySetDefinition or JSON or IO[bytes]
+ :param parameters: The policy set definition properties. Is either a PolicySetDefinition type
+ or a IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicySetDefinition or
+ ~azure.mgmt.resource.policy.types.PolicySetDefinition or IO[bytes]
:return: PolicySetDefinition. The PolicySetDefinition is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicySetDefinition
:raises ~azure.core.exceptions.HttpResponseError:
@@ -9594,7 +9622,7 @@ def create_or_update_at_management_group(
self,
management_group_id: str,
policy_set_definition_name: str,
- parameters: JSON,
+ parameters: _types.PolicySetDefinition,
*,
content_type: str = "application/json",
**kwargs: Any,
@@ -9607,7 +9635,7 @@ def create_or_update_at_management_group(
:param policy_set_definition_name: The name of the policy set definition to get. Required.
:type policy_set_definition_name: str
:param parameters: The policy set definition properties. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicySetDefinition
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -9648,7 +9676,7 @@ def create_or_update_at_management_group(
self,
management_group_id: str,
policy_set_definition_name: str,
- parameters: Union[_models.PolicySetDefinition, JSON, IO[bytes]],
+ parameters: Union[_models.PolicySetDefinition, _types.PolicySetDefinition, IO[bytes]],
**kwargs: Any,
) -> _models.PolicySetDefinition:
"""This operation creates or updates a policy set definition in the given management group with
@@ -9658,9 +9686,10 @@ def create_or_update_at_management_group(
:type management_group_id: str
:param policy_set_definition_name: The name of the policy set definition to get. Required.
:type policy_set_definition_name: str
- :param parameters: The policy set definition properties. Is one of the following types:
- PolicySetDefinition, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicySetDefinition or JSON or IO[bytes]
+ :param parameters: The policy set definition properties. Is either a PolicySetDefinition type
+ or a IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicySetDefinition or
+ ~azure.mgmt.resource.policy.types.PolicySetDefinition or IO[bytes]
:return: PolicySetDefinition. The PolicySetDefinition is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicySetDefinition
:raises ~azure.core.exceptions.HttpResponseError:
@@ -9922,7 +9951,7 @@ def get_next(next_link=None):
return ItemPaged(get_next, extract_data)
-class PolicySetDefinitionVersionsOperations:
+class PolicySetDefinitionVersionsOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
@@ -10059,7 +10088,7 @@ def create_or_update(
self,
policy_set_definition_name: str,
policy_definition_version: str,
- parameters: JSON,
+ parameters: _types.PolicySetDefinitionVersion,
*,
content_type: str = "application/json",
**kwargs: Any,
@@ -10074,7 +10103,7 @@ def create_or_update(
Required.
:type policy_definition_version: str
:param parameters: The policy set definition properties. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicySetDefinitionVersion
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -10119,7 +10148,7 @@ def create_or_update(
self,
policy_set_definition_name: str,
policy_definition_version: str,
- parameters: Union[_models.PolicySetDefinitionVersion, JSON, IO[bytes]],
+ parameters: Union[_models.PolicySetDefinitionVersion, _types.PolicySetDefinitionVersion, IO[bytes]],
**kwargs: Any,
) -> _models.PolicySetDefinitionVersion:
"""This operation creates or updates a policy set definition version in the given subscription
@@ -10131,10 +10160,10 @@ def create_or_update(
x is the major version number, y is the minor version number, and z is the patch number.
Required.
:type policy_definition_version: str
- :param parameters: The policy set definition properties. Is one of the following types:
- PolicySetDefinitionVersion, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicySetDefinitionVersion or JSON or
- IO[bytes]
+ :param parameters: The policy set definition properties. Is either a PolicySetDefinitionVersion
+ type or a IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicySetDefinitionVersion or
+ ~azure.mgmt.resource.policy.types.PolicySetDefinitionVersion or IO[bytes]
:return: PolicySetDefinitionVersion. The PolicySetDefinitionVersion is compatible with
MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicySetDefinitionVersion
@@ -10698,7 +10727,7 @@ def create_or_update_at_management_group(
management_group_name: str,
policy_set_definition_name: str,
policy_definition_version: str,
- parameters: JSON,
+ parameters: _types.PolicySetDefinitionVersion,
*,
content_type: str = "application/json",
**kwargs: Any,
@@ -10716,7 +10745,7 @@ def create_or_update_at_management_group(
Required.
:type policy_definition_version: str
:param parameters: The policy set definition version properties. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicySetDefinitionVersion
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -10766,7 +10795,7 @@ def create_or_update_at_management_group(
management_group_name: str,
policy_set_definition_name: str,
policy_definition_version: str,
- parameters: Union[_models.PolicySetDefinitionVersion, JSON, IO[bytes]],
+ parameters: Union[_models.PolicySetDefinitionVersion, _types.PolicySetDefinitionVersion, IO[bytes]],
**kwargs: Any,
) -> _models.PolicySetDefinitionVersion:
"""This operation creates or updates a policy set definition version in the given management group
@@ -10781,10 +10810,10 @@ def create_or_update_at_management_group(
x is the major version number, y is the minor version number, and z is the patch number.
Required.
:type policy_definition_version: str
- :param parameters: The policy set definition version properties. Is one of the following types:
- PolicySetDefinitionVersion, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicySetDefinitionVersion or JSON or
- IO[bytes]
+ :param parameters: The policy set definition version properties. Is either a
+ PolicySetDefinitionVersion type or a IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicySetDefinitionVersion or
+ ~azure.mgmt.resource.policy.types.PolicySetDefinitionVersion or IO[bytes]
:return: PolicySetDefinitionVersion. The PolicySetDefinitionVersion is compatible with
MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicySetDefinitionVersion
@@ -11245,7 +11274,7 @@ def list_all(self, **kwargs: Any) -> _models.PolicySetDefinitionVersionListResul
return deserialized # type: ignore
-class VariablesOperations:
+class VariablesOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
@@ -11359,7 +11388,7 @@ def create_or_update(
@overload
def create_or_update(
- self, variable_name: str, parameters: JSON, *, content_type: str = "application/json", **kwargs: Any
+ self, variable_name: str, parameters: _types.Variable, *, content_type: str = "application/json", **kwargs: Any
) -> _models.Variable:
"""Creates or updates a variable.
@@ -11369,7 +11398,7 @@ def create_or_update(
:param variable_name: The name of the variable to operate on. Required.
:type variable_name: str
:param parameters: Parameters for the variable. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.Variable
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -11408,7 +11437,7 @@ def create_or_update(
api_versions_list=["2025-12-01-preview", "2026-01-01-preview"],
)
def create_or_update(
- self, variable_name: str, parameters: Union[_models.Variable, JSON, IO[bytes]], **kwargs: Any
+ self, variable_name: str, parameters: Union[_models.Variable, _types.Variable, IO[bytes]], **kwargs: Any
) -> _models.Variable:
"""Creates or updates a variable.
@@ -11417,9 +11446,10 @@ def create_or_update(
:param variable_name: The name of the variable to operate on. Required.
:type variable_name: str
- :param parameters: Parameters for the variable. Is one of the following types: Variable, JSON,
- IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.Variable or JSON or IO[bytes]
+ :param parameters: Parameters for the variable. Is either a Variable type or a IO[bytes] type.
+ Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.Variable or
+ ~azure.mgmt.resource.policy.types.Variable or IO[bytes]
:return: Variable. The Variable is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.Variable
:raises ~azure.core.exceptions.HttpResponseError:
@@ -11762,7 +11792,7 @@ def create_or_update_at_management_group(
self,
management_group_id: str,
variable_name: str,
- parameters: JSON,
+ parameters: _types.Variable,
*,
content_type: str = "application/json",
**kwargs: Any,
@@ -11777,7 +11807,7 @@ def create_or_update_at_management_group(
:param variable_name: The name of the variable to operate on. Required.
:type variable_name: str
:param parameters: Parameters for the variable. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.Variable
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -11827,7 +11857,7 @@ def create_or_update_at_management_group(
self,
management_group_id: str,
variable_name: str,
- parameters: Union[_models.Variable, JSON, IO[bytes]],
+ parameters: Union[_models.Variable, _types.Variable, IO[bytes]],
**kwargs: Any,
) -> _models.Variable:
"""Creates or updates a variable.
@@ -11839,9 +11869,10 @@ def create_or_update_at_management_group(
:type management_group_id: str
:param variable_name: The name of the variable to operate on. Required.
:type variable_name: str
- :param parameters: Parameters for the variable. Is one of the following types: Variable, JSON,
- IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.Variable or JSON or IO[bytes]
+ :param parameters: Parameters for the variable. Is either a Variable type or a IO[bytes] type.
+ Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.Variable or
+ ~azure.mgmt.resource.policy.types.Variable or IO[bytes]
:return: Variable. The Variable is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.Variable
:raises ~azure.core.exceptions.HttpResponseError:
@@ -12081,7 +12112,7 @@ def get_next(next_link=None):
return ItemPaged(get_next, extract_data)
-class VariableValuesOperations:
+class VariableValuesOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
@@ -12211,7 +12242,7 @@ def create_or_update(
self,
variable_name: str,
variable_value_name: str,
- parameters: JSON,
+ parameters: _types.VariableValue,
*,
content_type: str = "application/json",
**kwargs: Any,
@@ -12226,7 +12257,7 @@ def create_or_update(
:param variable_value_name: The name of the variable value to operate on. Required.
:type variable_value_name: str
:param parameters: Parameters for the variable value. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.VariableValue
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -12283,7 +12314,7 @@ def create_or_update(
self,
variable_name: str,
variable_value_name: str,
- parameters: Union[_models.VariableValue, JSON, IO[bytes]],
+ parameters: Union[_models.VariableValue, _types.VariableValue, IO[bytes]],
**kwargs: Any,
) -> _models.VariableValue:
"""Creates or updates a variable value.
@@ -12295,9 +12326,10 @@ def create_or_update(
:type variable_name: str
:param variable_value_name: The name of the variable value to operate on. Required.
:type variable_value_name: str
- :param parameters: Parameters for the variable value. Is one of the following types:
- VariableValue, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.VariableValue or JSON or IO[bytes]
+ :param parameters: Parameters for the variable value. Is either a VariableValue type or a
+ IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.VariableValue or
+ ~azure.mgmt.resource.policy.types.VariableValue or IO[bytes]
:return: VariableValue. The VariableValue is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.VariableValue
:raises ~azure.core.exceptions.HttpResponseError:
@@ -12669,7 +12701,7 @@ def create_or_update_at_management_group(
management_group_id: str,
variable_name: str,
variable_value_name: str,
- parameters: JSON,
+ parameters: _types.VariableValue,
*,
content_type: str = "application/json",
**kwargs: Any,
@@ -12686,7 +12718,7 @@ def create_or_update_at_management_group(
:param variable_value_name: The name of the variable value to operate on. Required.
:type variable_value_name: str
:param parameters: Parameters for the variable value. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.VariableValue
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -12747,7 +12779,7 @@ def create_or_update_at_management_group(
management_group_id: str,
variable_name: str,
variable_value_name: str,
- parameters: Union[_models.VariableValue, JSON, IO[bytes]],
+ parameters: Union[_models.VariableValue, _types.VariableValue, IO[bytes]],
**kwargs: Any,
) -> _models.VariableValue:
"""Creates or updates a variable value.
@@ -12761,9 +12793,10 @@ def create_or_update_at_management_group(
:type variable_name: str
:param variable_value_name: The name of the variable value to operate on. Required.
:type variable_value_name: str
- :param parameters: Parameters for the variable value. Is one of the following types:
- VariableValue, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.VariableValue or JSON or IO[bytes]
+ :param parameters: Parameters for the variable value. Is either a VariableValue type or a
+ IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.VariableValue or
+ ~azure.mgmt.resource.policy.types.VariableValue or IO[bytes]
:return: VariableValue. The VariableValue is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.VariableValue
:raises ~azure.core.exceptions.HttpResponseError:
@@ -13015,7 +13048,7 @@ def get_next(next_link=None):
return ItemPaged(get_next, extract_data)
-class PolicyTokensOperations:
+class PolicyTokensOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
@@ -13052,14 +13085,14 @@ def acquire(
@overload
def acquire(
- self, parameters: JSON, *, content_type: str = "application/json", **kwargs: Any
+ self, parameters: _types.PolicyTokenRequest, *, content_type: str = "application/json", **kwargs: Any
) -> _models.PolicyTokenResponse:
"""Acquires a policy token.
This operation acquires a policy token in the given subscription for the given request body.
:param parameters: The request body. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicyTokenRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -13088,15 +13121,16 @@ def acquire(
@distributed_trace
def acquire(
- self, parameters: Union[_models.PolicyTokenRequest, JSON, IO[bytes]], **kwargs: Any
+ self, parameters: Union[_models.PolicyTokenRequest, _types.PolicyTokenRequest, IO[bytes]], **kwargs: Any
) -> _models.PolicyTokenResponse:
"""Acquires a policy token.
This operation acquires a policy token in the given subscription for the given request body.
- :param parameters: The request body. Is one of the following types: PolicyTokenRequest, JSON,
- IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicyTokenRequest or JSON or IO[bytes]
+ :param parameters: The request body. Is either a PolicyTokenRequest type or a IO[bytes] type.
+ Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicyTokenRequest or
+ ~azure.mgmt.resource.policy.types.PolicyTokenRequest or IO[bytes]
:return: PolicyTokenResponse. The PolicyTokenResponse is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicyTokenResponse
:raises ~azure.core.exceptions.HttpResponseError:
@@ -13195,7 +13229,12 @@ def acquire_at_management_group(
@overload
def acquire_at_management_group(
- self, management_group_name: str, parameters: JSON, *, content_type: str = "application/json", **kwargs: Any
+ self,
+ management_group_name: str,
+ parameters: _types.PolicyTokenRequest,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any,
) -> _models.PolicyTokenResponse:
"""Acquires a policy token at management group level.
@@ -13206,7 +13245,7 @@ def acquire_at_management_group(
Required.
:type management_group_name: str
:param parameters: The policy token properties. Required.
- :type parameters: JSON
+ :type parameters: ~azure.mgmt.resource.policy.types.PolicyTokenRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
@@ -13244,7 +13283,10 @@ def acquire_at_management_group(
@distributed_trace
def acquire_at_management_group(
- self, management_group_name: str, parameters: Union[_models.PolicyTokenRequest, JSON, IO[bytes]], **kwargs: Any
+ self,
+ management_group_name: str,
+ parameters: Union[_models.PolicyTokenRequest, _types.PolicyTokenRequest, IO[bytes]],
+ **kwargs: Any,
) -> _models.PolicyTokenResponse:
"""Acquires a policy token at management group level.
@@ -13254,9 +13296,10 @@ def acquire_at_management_group(
:param management_group_name: The name of the management group. The name is case insensitive.
Required.
:type management_group_name: str
- :param parameters: The policy token properties. Is one of the following types:
- PolicyTokenRequest, JSON, IO[bytes] Required.
- :type parameters: ~azure.mgmt.resource.policy.models.PolicyTokenRequest or JSON or IO[bytes]
+ :param parameters: The policy token properties. Is either a PolicyTokenRequest type or a
+ IO[bytes] type. Required.
+ :type parameters: ~azure.mgmt.resource.policy.models.PolicyTokenRequest or
+ ~azure.mgmt.resource.policy.types.PolicyTokenRequest or IO[bytes]
:return: PolicyTokenResponse. The PolicyTokenResponse is compatible with MutableMapping
:rtype: ~azure.mgmt.resource.policy.models.PolicyTokenResponse
:raises ~azure.core.exceptions.HttpResponseError:
diff --git a/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/types.py b/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/types.py
new file mode 100644
index 000000000000..37ae9a07dcca
--- /dev/null
+++ b/sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/types.py
@@ -0,0 +1,1254 @@
+# pylint: disable=line-too-long,useless-suppression,too-many-lines
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) Python Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+
+from typing import Any, TYPE_CHECKING, Union
+from typing_extensions import Required, TypedDict
+
+if TYPE_CHECKING:
+ from .models import (
+ AssignmentScopeValidation,
+ AssignmentType,
+ CreatedByType,
+ EnforcementMode,
+ ExemptionCategory,
+ OverrideKind,
+ ParameterType,
+ PolicyType,
+ ResourceIdentityType,
+ SelectorKind,
+ )
+
+
+class Resource(TypedDict, total=False):
+ """Resource.
+
+ :ivar id: Fully qualified resource ID for the resource. Ex -
+ /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
+ :vartype id: str
+ :ivar name: The name of the resource.
+ :vartype name: str
+ :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
+ "Microsoft.Storage/storageAccounts".
+ :vartype type: str
+ :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy
+ information.
+ :vartype systemData: "SystemData"
+ """
+
+ id: str
+ """Fully qualified resource ID for the resource. Ex -
+ /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}."""
+ name: str
+ """The name of the resource."""
+ type: str
+ """The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or
+ \"Microsoft.Storage/storageAccounts\"."""
+ systemData: "SystemData"
+ """Azure Resource Manager metadata containing createdBy and modifiedBy information."""
+
+
+class ProxyResource(Resource):
+ """Proxy Resource.
+
+ :ivar id: Fully qualified resource ID for the resource. Ex -
+ /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
+ :vartype id: str
+ :ivar name: The name of the resource.
+ :vartype name: str
+ :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
+ "Microsoft.Storage/storageAccounts".
+ :vartype type: str
+ :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy
+ information.
+ :vartype systemData: "SystemData"
+ """
+
+
+class ExtensionResource(Resource):
+ """The base extension resource.
+
+ :ivar id: Fully qualified resource ID for the resource. Ex -
+ /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
+ :vartype id: str
+ :ivar name: The name of the resource.
+ :vartype name: str
+ :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
+ "Microsoft.Storage/storageAccounts".
+ :vartype type: str
+ :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy
+ information.
+ :vartype systemData: "SystemData"
+ """
+
+
+class ExternalEvaluationEndpointSettings(TypedDict, total=False):
+ """The settings of an external endpoint providing evaluation results.
+
+ :ivar kind: The kind of the endpoint.
+ :vartype kind: str
+ :ivar details: The details of the endpoint.
+ :vartype details: Any
+ """
+
+ kind: str
+ """The kind of the endpoint."""
+ details: Any
+ """The details of the endpoint."""
+
+
+class ExternalEvaluationEnforcementSettings(TypedDict, total=False):
+ """The details of the source of external evaluation results required by the policy during
+ enforcement evaluation.
+
+ :ivar missingTokenAction: What to do when evaluating an enforcement policy that requires an
+ external evaluation and the token is missing. Possible values are Audit and Deny and language
+ expressions are supported.
+ :vartype missingTokenAction: str
+ :ivar resultLifespan: The lifespan of the endpoint invocation result after which it's no longer
+ valid. Value is expected to follow the ISO 8601 duration format and language expressions are
+ supported.
+ :vartype resultLifespan: str
+ :ivar endpointSettings: The settings of an external endpoint providing evaluation results.
+ :vartype endpointSettings: "ExternalEvaluationEndpointSettings"
+ :ivar roleDefinitionIds: An array of the role definition Ids the assignment's MSI will need in
+ order to invoke the endpoint.
+ :vartype roleDefinitionIds: list[str]
+ """
+
+ missingTokenAction: str
+ """What to do when evaluating an enforcement policy that requires an external evaluation and the
+ token is missing. Possible values are Audit and Deny and language expressions are supported."""
+ resultLifespan: str
+ """The lifespan of the endpoint invocation result after which it's no longer valid. Value is
+ expected to follow the ISO 8601 duration format and language expressions are supported."""
+ endpointSettings: "ExternalEvaluationEndpointSettings"
+ """The settings of an external endpoint providing evaluation results."""
+ roleDefinitionIds: list[str]
+ """An array of the role definition Ids the assignment's MSI will need in order to invoke the
+ endpoint."""
+
+
+class Identity(TypedDict, total=False):
+ """Identity for the resource. Policy assignments support a maximum of one identity. That is
+ either a system assigned identity or a single user assigned identity.
+
+ :ivar principalId: The principal ID of the resource identity. This property will only be
+ provided for a system assigned identity.
+ :vartype principalId: str
+ :ivar tenantId: The tenant ID of the resource identity. This property will only be provided
+ for a system assigned identity.
+ :vartype tenantId: str
+ :ivar type: The identity type. This is the only required field when adding a system or user
+ assigned identity to a resource. Known values are: "SystemAssigned", "UserAssigned", and
+ "None".
+ :vartype type: Union[str, "ResourceIdentityType"]
+ :ivar userAssignedIdentities: The user identity associated with the policy. The user identity
+ dictionary key references will be ARM resource ids in the form:
+ '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
+ :vartype userAssignedIdentities: dict[str, "UserAssignedIdentitiesValue"]
+ """
+
+ principalId: str
+ """The principal ID of the resource identity. This property will only be provided for a system
+ assigned identity."""
+ tenantId: str
+ """The tenant ID of the resource identity. This property will only be provided for a system
+ assigned identity."""
+ type: Union[str, "ResourceIdentityType"]
+ """The identity type. This is the only required field when adding a system or user assigned
+ identity to a resource. Known values are: \"SystemAssigned\", \"UserAssigned\", and \"None\"."""
+ userAssignedIdentities: dict[str, "UserAssignedIdentitiesValue"]
+ """The user identity associated with the policy. The user identity dictionary key references will
+ be ARM resource ids in the form:
+ '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'."""
+
+
+class NonComplianceMessage(TypedDict, total=False):
+ """A message that describes why a resource is non-compliant with the policy. This is shown in
+ 'deny' error messages and on resource's non-compliant compliance results.
+
+ :ivar message: A message that describes why a resource is non-compliant with the policy. This
+ is shown in 'deny' error messages and on resource's non-compliant compliance results. Required.
+ :vartype message: str
+ :ivar policyDefinitionReferenceId: The policy definition reference ID within a policy set
+ definition the message is intended for. This is only applicable if the policy assignment
+ assigns a policy set definition. If this is not provided the message applies to all policies
+ assigned by this policy assignment.
+ :vartype policyDefinitionReferenceId: str
+ """
+
+ message: Required[str]
+ """A message that describes why a resource is non-compliant with the policy. This is shown in
+ 'deny' error messages and on resource's non-compliant compliance results. Required."""
+ policyDefinitionReferenceId: str
+ """The policy definition reference ID within a policy set definition the message is intended for.
+ This is only applicable if the policy assignment assigns a policy set definition. If this is
+ not provided the message applies to all policies assigned by this policy assignment."""
+
+
+class Override(TypedDict, total=False):
+ """The policy property value override.
+
+ :ivar kind: The override kind. Known values are: "policyEffect" and "definitionVersion".
+ :vartype kind: Union[str, "OverrideKind"]
+ :ivar value: The value to override the policy property.
+ :vartype value: str
+ :ivar selectors: The list of the selector expressions.
+ :vartype selectors: list["Selector"]
+ """
+
+ kind: Union[str, "OverrideKind"]
+ """The override kind. Known values are: \"policyEffect\" and \"definitionVersion\"."""
+ value: str
+ """The value to override the policy property."""
+ selectors: list["Selector"]
+ """The list of the selector expressions."""
+
+
+class ParameterDefinitionsValue(TypedDict, total=False):
+ """The definition of a parameter that can be provided to the policy.
+
+ :ivar type: The data type of the parameter. Known values are: "String", "Array", "Object",
+ "Boolean", "Integer", "Float", and "DateTime".
+ :vartype type: Union[str, "ParameterType"]
+ :ivar allowedValues: The allowed values for the parameter.
+ :vartype allowedValues: list[Any]
+ :ivar defaultValue: The default value for the parameter if no value is provided.
+ :vartype defaultValue: Any
+ :ivar schema: Provides validation of parameter inputs during assignment using a self-defined
+ JSON schema. This property is only supported for object-type parameters and follows the
+ Json.NET Schema 2019-09 implementation. You can learn more about using schemas at
+ `https://json-schema.org/ `_ and test draft schemas at
+ `https://www.jsonschemavalidator.net/ `_.
+ :vartype schema: Any
+ :ivar metadata: General metadata for the parameter.
+ :vartype metadata: "ParameterDefinitionsValueMetadata"
+ """
+
+ type: Union[str, "ParameterType"]
+ """The data type of the parameter. Known values are: \"String\", \"Array\", \"Object\",
+ \"Boolean\", \"Integer\", \"Float\", and \"DateTime\"."""
+ allowedValues: list[Any]
+ """The allowed values for the parameter."""
+ defaultValue: Any
+ """The default value for the parameter if no value is provided."""
+ schema: Any
+ """Provides validation of parameter inputs during assignment using a self-defined JSON schema.
+ This property is only supported for object-type parameters and follows the Json.NET Schema
+ 2019-09 implementation. You can learn more about using schemas at `https://json-schema.org/
+ `_ and test draft schemas at `https://www.jsonschemavalidator.net/
+ `_."""
+ metadata: "ParameterDefinitionsValueMetadata"
+ """General metadata for the parameter."""
+
+
+class ParameterDefinitionsValueMetadata(TypedDict, total=False):
+ """General metadata for the parameter.
+
+ :ivar displayName: The display name for the parameter.
+ :vartype displayName: str
+ :ivar description: The description of the parameter.
+ :vartype description: str
+ :ivar strongType: Used when assigning the policy definition through the portal. Provides a
+ context aware list of values for the user to choose from.
+ :vartype strongType: str
+ :ivar assignPermissions: Set to true to have Azure portal create role assignments on the
+ resource ID or resource scope value of this parameter during policy assignment. This property
+ is useful in case you wish to assign permissions outside the assignment scope.
+ :vartype assignPermissions: bool
+ """
+
+ displayName: str
+ """The display name for the parameter."""
+ description: str
+ """The description of the parameter."""
+ strongType: str
+ """Used when assigning the policy definition through the portal. Provides a context aware list of
+ values for the user to choose from."""
+ assignPermissions: bool
+ """Set to true to have Azure portal create role assignments on the resource ID or resource scope
+ value of this parameter during policy assignment. This property is useful in case you wish to
+ assign permissions outside the assignment scope."""
+
+
+class ParameterValuesValue(TypedDict, total=False):
+ """The value of a parameter.
+
+ :ivar value: The value of the parameter.
+ :vartype value: Any
+ """
+
+ value: Any
+ """The value of the parameter."""
+
+
+class PolicyAssignment(ExtensionResource):
+ """The policy assignment.
+
+ :ivar id: Fully qualified resource ID for the resource. Ex -
+ /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
+ :vartype id: str
+ :ivar name: The name of the resource.
+ :vartype name: str
+ :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
+ "Microsoft.Storage/storageAccounts".
+ :vartype type: str
+ :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy
+ information.
+ :vartype systemData: "SystemData"
+ :ivar properties: Properties for the policy assignment.
+ :vartype properties: "PolicyAssignmentProperties"
+ :ivar location: The location of the policy assignment. Only required when utilizing managed
+ identity.
+ :vartype location: str
+ :ivar identity: The managed identity associated with the policy assignment.
+ :vartype identity: "Identity"
+ """
+
+ properties: "PolicyAssignmentProperties"
+ """Properties for the policy assignment."""
+ location: str
+ """The location of the policy assignment. Only required when utilizing managed identity."""
+ identity: "Identity"
+ """The managed identity associated with the policy assignment."""
+
+
+class PolicyAssignmentProperties(TypedDict, total=False):
+ """The policy assignment properties.
+
+ :ivar displayName: The display name of the policy assignment.
+ :vartype displayName: str
+ :ivar policyDefinitionId: The ID of the policy definition or policy set definition being
+ assigned.
+ :vartype policyDefinitionId: str
+ :ivar definitionVersion: The version of the policy definition to use.
+ :vartype definitionVersion: str
+ :ivar latestDefinitionVersion: The latest version of the policy definition available. This is
+ only present if requested via the $expand query parameter.
+ :vartype latestDefinitionVersion: str
+ :ivar effectiveDefinitionVersion: The effective version of the policy definition in use. This
+ is only present if requested via the $expand query parameter.
+ :vartype effectiveDefinitionVersion: str
+ :ivar scope: The scope for the policy assignment.
+ :vartype scope: str
+ :ivar notScopes: The policy's excluded scopes.
+ :vartype notScopes: list[str]
+ :ivar parameters: The parameter values for the assigned policy rule. The keys are the parameter
+ names.
+ :vartype parameters: dict[str, "ParameterValuesValue"]
+ :ivar description: This message will be part of response in case of policy violation.
+ :vartype description: str
+ :ivar metadata: The policy assignment metadata. Metadata is an open ended object and is
+ typically a collection of key value pairs.
+ :vartype metadata: Any
+ :ivar enforcementMode: The policy assignment enforcement mode. Possible values are Default,
+ DoNotEnforce, and Enroll. Known values are: "Default", "DoNotEnforce", and "Enroll".
+ :vartype enforcementMode: Union[str, "EnforcementMode"]
+ :ivar nonComplianceMessages: The messages that describe why a resource is non-compliant with
+ the policy.
+ :vartype nonComplianceMessages: list["NonComplianceMessage"]
+ :ivar resourceSelectors: The resource selector list to filter policies by resource properties.
+ :vartype resourceSelectors: list["ResourceSelector"]
+ :ivar overrides: The policy property value override.
+ :vartype overrides: list["Override"]
+ :ivar assignmentType: The type of policy assignment. Possible values are NotSpecified, System,
+ SystemHidden, and Custom. Immutable. Known values are: "NotSpecified", "System",
+ "SystemHidden", and "Custom".
+ :vartype assignmentType: Union[str, "AssignmentType"]
+ :ivar instanceId: The instance ID of the policy assignment. This ID only and always changes
+ when the assignment is deleted and recreated.
+ :vartype instanceId: str
+ :ivar selfServeExemptionSettings: The self-serve exemption settings for the policy assignment.
+ :vartype selfServeExemptionSettings: "SelfServeExemptionSettings"
+ """
+
+ displayName: str
+ """The display name of the policy assignment."""
+ policyDefinitionId: str
+ """The ID of the policy definition or policy set definition being assigned."""
+ definitionVersion: str
+ """The version of the policy definition to use."""
+ latestDefinitionVersion: str
+ """The latest version of the policy definition available. This is only present if requested via
+ the $expand query parameter."""
+ effectiveDefinitionVersion: str
+ """The effective version of the policy definition in use. This is only present if requested via
+ the $expand query parameter."""
+ scope: str
+ """The scope for the policy assignment."""
+ notScopes: list[str]
+ """The policy's excluded scopes."""
+ parameters: dict[str, "ParameterValuesValue"]
+ """The parameter values for the assigned policy rule. The keys are the parameter names."""
+ description: str
+ """This message will be part of response in case of policy violation."""
+ metadata: Any
+ """The policy assignment metadata. Metadata is an open ended object and is typically a collection
+ of key value pairs."""
+ enforcementMode: Union[str, "EnforcementMode"]
+ """The policy assignment enforcement mode. Possible values are Default, DoNotEnforce, and Enroll.
+ Known values are: \"Default\", \"DoNotEnforce\", and \"Enroll\"."""
+ nonComplianceMessages: list["NonComplianceMessage"]
+ """The messages that describe why a resource is non-compliant with the policy."""
+ resourceSelectors: list["ResourceSelector"]
+ """The resource selector list to filter policies by resource properties."""
+ overrides: list["Override"]
+ """The policy property value override."""
+ assignmentType: Union[str, "AssignmentType"]
+ """The type of policy assignment. Possible values are NotSpecified, System, SystemHidden, and
+ Custom. Immutable. Known values are: \"NotSpecified\", \"System\", \"SystemHidden\", and
+ \"Custom\"."""
+ instanceId: str
+ """The instance ID of the policy assignment. This ID only and always changes when the assignment
+ is deleted and recreated."""
+ selfServeExemptionSettings: "SelfServeExemptionSettings"
+ """The self-serve exemption settings for the policy assignment."""
+
+
+class PolicyAssignmentUpdate(TypedDict, total=False):
+ """The policy assignment for Patch request.
+
+ :ivar properties: The policy assignment properties for Patch request.
+ :vartype properties: "PolicyAssignmentUpdateProperties"
+ :ivar location: The location of the policy assignment. Only required when utilizing managed
+ identity.
+ :vartype location: str
+ :ivar identity: The managed identity associated with the policy assignment.
+ :vartype identity: "Identity"
+ """
+
+ properties: "PolicyAssignmentUpdateProperties"
+ """The policy assignment properties for Patch request."""
+ location: str
+ """The location of the policy assignment. Only required when utilizing managed identity."""
+ identity: "Identity"
+ """The managed identity associated with the policy assignment."""
+
+
+class PolicyAssignmentUpdateProperties(TypedDict, total=False):
+ """The policy assignment properties for Patch request.
+
+ :ivar resourceSelectors: The resource selector list to filter policies by resource properties.
+ :vartype resourceSelectors: list["ResourceSelector"]
+ :ivar overrides: The policy property value override.
+ :vartype overrides: list["Override"]
+ :ivar selfServeExemptionSettings: The self-serve exemption settings for the policy assignment.
+ :vartype selfServeExemptionSettings: "SelfServeExemptionSettings"
+ """
+
+ resourceSelectors: list["ResourceSelector"]
+ """The resource selector list to filter policies by resource properties."""
+ overrides: list["Override"]
+ """The policy property value override."""
+ selfServeExemptionSettings: "SelfServeExemptionSettings"
+ """The self-serve exemption settings for the policy assignment."""
+
+
+class PolicyDefinition(ProxyResource):
+ """The policy definition.
+
+ :ivar id: Fully qualified resource ID for the resource. Ex -
+ /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
+ :vartype id: str
+ :ivar name: The name of the resource.
+ :vartype name: str
+ :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
+ "Microsoft.Storage/storageAccounts".
+ :vartype type: str
+ :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy
+ information.
+ :vartype systemData: "SystemData"
+ :ivar properties: The policy definition properties.
+ :vartype properties: "PolicyDefinitionProperties"
+ """
+
+ properties: "PolicyDefinitionProperties"
+ """The policy definition properties."""
+
+
+class PolicyDefinitionGroup(TypedDict, total=False):
+ """The policy definition group.
+
+ :ivar name: The name of the group. Required.
+ :vartype name: str
+ :ivar displayName: The group's display name.
+ :vartype displayName: str
+ :ivar category: The group's category.
+ :vartype category: str
+ :ivar description: The group's description.
+ :vartype description: str
+ :ivar additionalMetadataId: A resource ID of a resource that contains additional metadata about
+ the group.
+ :vartype additionalMetadataId: str
+ """
+
+ name: Required[str]
+ """The name of the group. Required."""
+ displayName: str
+ """The group's display name."""
+ category: str
+ """The group's category."""
+ description: str
+ """The group's description."""
+ additionalMetadataId: str
+ """A resource ID of a resource that contains additional metadata about the group."""
+
+
+class PolicyDefinitionProperties(TypedDict, total=False):
+ """The policy definition properties.
+
+ :ivar policyType: The type of policy definition. Possible values are NotSpecified, BuiltIn,
+ Custom, and Static. Known values are: "NotSpecified", "BuiltIn", "Custom", and "Static".
+ :vartype policyType: Union[str, "PolicyType"]
+ :ivar mode: The policy definition mode. Some examples are All, Indexed,
+ Microsoft.KeyVault.Data.
+ :vartype mode: str
+ :ivar displayName: The display name of the policy definition.
+ :vartype displayName: str
+ :ivar description: The policy definition description.
+ :vartype description: str
+ :ivar policyRule: The policy rule.
+ :vartype policyRule: Any
+ :ivar metadata: The policy definition metadata. Metadata is an open ended object and is
+ typically a collection of key value pairs.
+ :vartype metadata: Any
+ :ivar parameters: The parameter definitions for parameters used in the policy rule. The keys
+ are the parameter names.
+ :vartype parameters: dict[str, "ParameterDefinitionsValue"]
+ :ivar version: The policy definition version in #.#.# format.
+ :vartype version: str
+ :ivar versions: A list of available versions for this policy definition.
+ :vartype versions: list[str]
+ :ivar externalEvaluationEnforcementSettings: The details of the source of external evaluation
+ results required by the policy during enforcement evaluation.
+ :vartype externalEvaluationEnforcementSettings: "ExternalEvaluationEnforcementSettings"
+ """
+
+ policyType: Union[str, "PolicyType"]
+ """The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.
+ Known values are: \"NotSpecified\", \"BuiltIn\", \"Custom\", and \"Static\"."""
+ mode: str
+ """The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data."""
+ displayName: str
+ """The display name of the policy definition."""
+ description: str
+ """The policy definition description."""
+ policyRule: Any
+ """The policy rule."""
+ metadata: Any
+ """The policy definition metadata. Metadata is an open ended object and is typically a collection
+ of key value pairs."""
+ parameters: dict[str, "ParameterDefinitionsValue"]
+ """The parameter definitions for parameters used in the policy rule. The keys are the parameter
+ names."""
+ version: str
+ """The policy definition version in #.#.# format."""
+ versions: list[str]
+ """A list of available versions for this policy definition."""
+ externalEvaluationEnforcementSettings: "ExternalEvaluationEnforcementSettings"
+ """The details of the source of external evaluation results required by the policy during
+ enforcement evaluation."""
+
+
+class PolicyDefinitionReference(TypedDict, total=False):
+ """The policy definition reference.
+
+ :ivar policyDefinitionId: The ID of the policy definition or policy set definition. Required.
+ :vartype policyDefinitionId: str
+ :ivar definitionVersion: The version of the policy definition to use.
+ :vartype definitionVersion: str
+ :ivar latestDefinitionVersion: The latest version of the policy definition available. This is
+ only present if requested via the $expand query parameter.
+ :vartype latestDefinitionVersion: str
+ :ivar effectiveDefinitionVersion: The effective version of the policy definition in use. This
+ is only present if requested via the $expand query parameter.
+ :vartype effectiveDefinitionVersion: str
+ :ivar parameters: The parameter values for the referenced policy rule. The keys are the
+ parameter names.
+ :vartype parameters: dict[str, "ParameterValuesValue"]
+ :ivar policyDefinitionReferenceId: A unique id (within the policy set definition) for this
+ policy definition reference.
+ :vartype policyDefinitionReferenceId: str
+ :ivar groupNames: The name of the groups that this policy definition reference belongs to.
+ :vartype groupNames: list[str]
+ """
+
+ policyDefinitionId: Required[str]
+ """The ID of the policy definition or policy set definition. Required."""
+ definitionVersion: str
+ """The version of the policy definition to use."""
+ latestDefinitionVersion: str
+ """The latest version of the policy definition available. This is only present if requested via
+ the $expand query parameter."""
+ effectiveDefinitionVersion: str
+ """The effective version of the policy definition in use. This is only present if requested via
+ the $expand query parameter."""
+ parameters: dict[str, "ParameterValuesValue"]
+ """The parameter values for the referenced policy rule. The keys are the parameter names."""
+ policyDefinitionReferenceId: str
+ """A unique id (within the policy set definition) for this policy definition reference."""
+ groupNames: list[str]
+ """The name of the groups that this policy definition reference belongs to."""
+
+
+class PolicyDefinitionVersion(ProxyResource):
+ """The ID of the policy definition version.
+
+ :ivar id: Fully qualified resource ID for the resource. Ex -
+ /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
+ :vartype id: str
+ :ivar name: The name of the resource.
+ :vartype name: str
+ :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
+ "Microsoft.Storage/storageAccounts".
+ :vartype type: str
+ :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy
+ information.
+ :vartype systemData: "SystemData"
+ :ivar properties: The policy definition version properties.
+ :vartype properties: "PolicyDefinitionVersionProperties"
+ """
+
+ properties: "PolicyDefinitionVersionProperties"
+ """The policy definition version properties."""
+
+
+class PolicyDefinitionVersionProperties(TypedDict, total=False):
+ """The policy definition properties.
+
+ :ivar policyType: The type of policy definition. Possible values are NotSpecified, BuiltIn,
+ Custom, and Static. Known values are: "NotSpecified", "BuiltIn", "Custom", and "Static".
+ :vartype policyType: Union[str, "PolicyType"]
+ :ivar mode: The policy definition mode. Some examples are All, Indexed,
+ Microsoft.KeyVault.Data.
+ :vartype mode: str
+ :ivar displayName: The display name of the policy definition.
+ :vartype displayName: str
+ :ivar description: The policy definition description.
+ :vartype description: str
+ :ivar policyRule: The policy rule.
+ :vartype policyRule: Any
+ :ivar metadata: The policy definition metadata. Metadata is an open ended object and is
+ typically a collection of key value pairs.
+ :vartype metadata: Any
+ :ivar parameters: The parameter definitions for parameters used in the policy rule. The keys
+ are the parameter names.
+ :vartype parameters: dict[str, "ParameterDefinitionsValue"]
+ :ivar version: The policy definition version in #.#.# format.
+ :vartype version: str
+ :ivar externalEvaluationEnforcementSettings: The details of the source of external evaluation
+ results required by the policy during enforcement evaluation.
+ :vartype externalEvaluationEnforcementSettings: "ExternalEvaluationEnforcementSettings"
+ """
+
+ policyType: Union[str, "PolicyType"]
+ """The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.
+ Known values are: \"NotSpecified\", \"BuiltIn\", \"Custom\", and \"Static\"."""
+ mode: str
+ """The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data."""
+ displayName: str
+ """The display name of the policy definition."""
+ description: str
+ """The policy definition description."""
+ policyRule: Any
+ """The policy rule."""
+ metadata: Any
+ """The policy definition metadata. Metadata is an open ended object and is typically a collection
+ of key value pairs."""
+ parameters: dict[str, "ParameterDefinitionsValue"]
+ """The parameter definitions for parameters used in the policy rule. The keys are the parameter
+ names."""
+ version: str
+ """The policy definition version in #.#.# format."""
+ externalEvaluationEnforcementSettings: "ExternalEvaluationEnforcementSettings"
+ """The details of the source of external evaluation results required by the policy during
+ enforcement evaluation."""
+
+
+class PolicyEnrollment(ExtensionResource):
+ """The policy enrollment.
+
+ :ivar id: Fully qualified resource ID for the resource. Ex -
+ /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
+ :vartype id: str
+ :ivar name: The name of the resource.
+ :vartype name: str
+ :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
+ "Microsoft.Storage/storageAccounts".
+ :vartype type: str
+ :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy
+ information.
+ :vartype systemData: "SystemData"
+ :ivar properties: The properties of the policy enrollment.
+ :vartype properties: "PolicyEnrollmentProperties"
+ :ivar eTag: The ETag for the policy enrollment.
+ :vartype eTag: str
+ """
+
+ properties: "PolicyEnrollmentProperties"
+ """The properties of the policy enrollment."""
+ eTag: str
+ """The ETag for the policy enrollment."""
+
+
+class PolicyEnrollmentProperties(TypedDict, total=False):
+ """The policy enrollment properties.
+
+ :ivar policyAssignmentId: The ID of the policy assignment that is being enrolled. Required.
+ :vartype policyAssignmentId: str
+ :ivar policyAssignmentInstanceId: The policy assignment instance ID associated with this
+ enrollment. The value is set to the instance ID of the policy assignment the policyAssignmentId
+ references when the enrollment is created or updated. The format is a GUID string.
+ :vartype policyAssignmentInstanceId: str
+ :ivar policyDefinitionReferenceIds: The policy definition reference IDs for policy definitions
+ in an assigned policy set definition. These IDs correspond to a subset of
+ ``policyDefinitions[*].policyDefinitionReferenceId`` in the policy set definition. When
+ specified and not empty, only the referenced policy definitions will be enrolled to. Otherwise,
+ the entire policy set is enrolled to.
+ :vartype policyDefinitionReferenceIds: list[str]
+ :ivar displayName: The display name of the policy enrollment.
+ :vartype displayName: str
+ :ivar description: The description of the policy enrollment.
+ :vartype description: str
+ :ivar metadata: The policy enrollment metadata. Metadata is an open ended object and is
+ typically a collection of key value pairs.
+ :vartype metadata: Any
+ :ivar assignmentScopeValidation: The option whether to validate the enrollment is at or under
+ the assignment scope. Known values are: "Default" and "DoNotValidate".
+ :vartype assignmentScopeValidation: Union[str, "AssignmentScopeValidation"]
+ :ivar resourceSelectors: The resource selector list to filter policies by resource properties.
+ :vartype resourceSelectors: list["ResourceSelector"]
+ """
+
+ policyAssignmentId: Required[str]
+ """The ID of the policy assignment that is being enrolled. Required."""
+ policyAssignmentInstanceId: str
+ """The policy assignment instance ID associated with this enrollment. The value is set to the
+ instance ID of the policy assignment the policyAssignmentId references when the enrollment is
+ created or updated. The format is a GUID string."""
+ policyDefinitionReferenceIds: list[str]
+ """The policy definition reference IDs for policy definitions in an assigned policy set
+ definition. These IDs correspond to a subset of
+ ``policyDefinitions[*].policyDefinitionReferenceId`` in the policy set definition. When
+ specified and not empty, only the referenced policy definitions will be enrolled to. Otherwise,
+ the entire policy set is enrolled to."""
+ displayName: str
+ """The display name of the policy enrollment."""
+ description: str
+ """The description of the policy enrollment."""
+ metadata: Any
+ """The policy enrollment metadata. Metadata is an open ended object and is typically a collection
+ of key value pairs."""
+ assignmentScopeValidation: Union[str, "AssignmentScopeValidation"]
+ """The option whether to validate the enrollment is at or under the assignment scope. Known values
+ are: \"Default\" and \"DoNotValidate\"."""
+ resourceSelectors: list["ResourceSelector"]
+ """The resource selector list to filter policies by resource properties."""
+
+
+class PolicyEnrollmentUpdate(TypedDict, total=False):
+ """The policy enrollment for Patch request.
+
+ :ivar properties: The policy enrollment properties for Patch request.
+ :vartype properties: "PolicyEnrollmentUpdateProperties"
+ """
+
+ properties: "PolicyEnrollmentUpdateProperties"
+ """The policy enrollment properties for Patch request."""
+
+
+class PolicyEnrollmentUpdateProperties(TypedDict, total=False):
+ """The policy enrollment properties for Patch request.
+
+ :ivar assignmentScopeValidation: The option whether to validate the enrollment is at or under
+ the assignment scope. Known values are: "Default" and "DoNotValidate".
+ :vartype assignmentScopeValidation: Union[str, "AssignmentScopeValidation"]
+ :ivar resourceSelectors: The resource selector list to filter policies by resource properties.
+ :vartype resourceSelectors: list["ResourceSelector"]
+ """
+
+ assignmentScopeValidation: Union[str, "AssignmentScopeValidation"]
+ """The option whether to validate the enrollment is at or under the assignment scope. Known values
+ are: \"Default\" and \"DoNotValidate\"."""
+ resourceSelectors: list["ResourceSelector"]
+ """The resource selector list to filter policies by resource properties."""
+
+
+class PolicyExemption(ExtensionResource):
+ """The policy exemption.
+
+ :ivar id: Fully qualified resource ID for the resource. Ex -
+ /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
+ :vartype id: str
+ :ivar name: The name of the resource.
+ :vartype name: str
+ :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
+ "Microsoft.Storage/storageAccounts".
+ :vartype type: str
+ :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy
+ information.
+ :vartype systemData: "SystemData"
+ :ivar properties: Properties for the policy exemption.
+ :vartype properties: "PolicyExemptionProperties"
+ """
+
+ properties: "PolicyExemptionProperties"
+ """Properties for the policy exemption."""
+
+
+class PolicyExemptionProperties(TypedDict, total=False):
+ """The policy exemption properties.
+
+ :ivar policyAssignmentId: The ID of the policy assignment that is being exempted. Required.
+ :vartype policyAssignmentId: str
+ :ivar policyDefinitionReferenceIds: The policy definition reference ID list when the associated
+ policy assignment is an assignment of a policy set definition.
+ :vartype policyDefinitionReferenceIds: list[str]
+ :ivar exemptionCategory: The policy exemption category. Possible values are Waiver and
+ Mitigated. Required. Known values are: "Waiver" and "Mitigated".
+ :vartype exemptionCategory: Union[str, "ExemptionCategory"]
+ :ivar expiresOn: The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of
+ the policy exemption.
+ :vartype expiresOn: str
+ :ivar displayName: The display name of the policy exemption.
+ :vartype displayName: str
+ :ivar description: The description of the policy exemption.
+ :vartype description: str
+ :ivar metadata: The policy exemption metadata. Metadata is an open ended object and is
+ typically a collection of key value pairs.
+ :vartype metadata: Any
+ :ivar resourceSelectors: The resource selector list to filter policies by resource properties.
+ :vartype resourceSelectors: list["ResourceSelector"]
+ :ivar assignmentScopeValidation: The option whether validate the exemption is at or under the
+ assignment scope. Known values are: "Default" and "DoNotValidate".
+ :vartype assignmentScopeValidation: Union[str, "AssignmentScopeValidation"]
+ """
+
+ policyAssignmentId: Required[str]
+ """The ID of the policy assignment that is being exempted. Required."""
+ policyDefinitionReferenceIds: list[str]
+ """The policy definition reference ID list when the associated policy assignment is an assignment
+ of a policy set definition."""
+ exemptionCategory: Required[Union[str, "ExemptionCategory"]]
+ """The policy exemption category. Possible values are Waiver and Mitigated. Required. Known values
+ are: \"Waiver\" and \"Mitigated\"."""
+ expiresOn: str
+ """The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy
+ exemption."""
+ displayName: str
+ """The display name of the policy exemption."""
+ description: str
+ """The description of the policy exemption."""
+ metadata: Any
+ """The policy exemption metadata. Metadata is an open ended object and is typically a collection
+ of key value pairs."""
+ resourceSelectors: list["ResourceSelector"]
+ """The resource selector list to filter policies by resource properties."""
+ assignmentScopeValidation: Union[str, "AssignmentScopeValidation"]
+ """The option whether validate the exemption is at or under the assignment scope. Known values
+ are: \"Default\" and \"DoNotValidate\"."""
+
+
+class PolicyExemptionUpdate(TypedDict, total=False):
+ """The policy exemption for Patch request.
+
+ :ivar properties: The policy exemption properties for Patch request.
+ :vartype properties: "PolicyExemptionUpdateProperties"
+ """
+
+ properties: "PolicyExemptionUpdateProperties"
+ """The policy exemption properties for Patch request."""
+
+
+class PolicyExemptionUpdateProperties(TypedDict, total=False):
+ """The policy exemption properties for Patch request.
+
+ :ivar resourceSelectors: The resource selector list to filter policies by resource properties.
+ :vartype resourceSelectors: list["ResourceSelector"]
+ :ivar assignmentScopeValidation: The option whether validate the exemption is at or under the
+ assignment scope. Known values are: "Default" and "DoNotValidate".
+ :vartype assignmentScopeValidation: Union[str, "AssignmentScopeValidation"]
+ """
+
+ resourceSelectors: list["ResourceSelector"]
+ """The resource selector list to filter policies by resource properties."""
+ assignmentScopeValidation: Union[str, "AssignmentScopeValidation"]
+ """The option whether validate the exemption is at or under the assignment scope. Known values
+ are: \"Default\" and \"DoNotValidate\"."""
+
+
+class PolicySetDefinition(ProxyResource):
+ """The policy set definition.
+
+ :ivar id: Fully qualified resource ID for the resource. Ex -
+ /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
+ :vartype id: str
+ :ivar name: The name of the resource.
+ :vartype name: str
+ :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
+ "Microsoft.Storage/storageAccounts".
+ :vartype type: str
+ :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy
+ information.
+ :vartype systemData: "SystemData"
+ :ivar properties: The policy set definition properties.
+ :vartype properties: "PolicySetDefinitionProperties"
+ """
+
+ properties: "PolicySetDefinitionProperties"
+ """The policy set definition properties."""
+
+
+class PolicySetDefinitionProperties(TypedDict, total=False):
+ """The policy set definition properties.
+
+ :ivar policyType: The type of policy set definition. Possible values are NotSpecified, BuiltIn,
+ Custom, and Static. Known values are: "NotSpecified", "BuiltIn", "Custom", and "Static".
+ :vartype policyType: Union[str, "PolicyType"]
+ :ivar displayName: The display name of the policy set definition.
+ :vartype displayName: str
+ :ivar description: The policy set definition description.
+ :vartype description: str
+ :ivar metadata: The policy set definition metadata. Metadata is an open ended object and is
+ typically a collection of key value pairs.
+ :vartype metadata: Any
+ :ivar parameters: The policy set definition parameters that can be used in policy definition
+ references.
+ :vartype parameters: dict[str, "ParameterDefinitionsValue"]
+ :ivar policyDefinitions: An array of policy definition references. Required.
+ :vartype policyDefinitions: list["PolicyDefinitionReference"]
+ :ivar policyDefinitionGroups: The metadata describing groups of policy definition references
+ within the policy set definition.
+ :vartype policyDefinitionGroups: list["PolicyDefinitionGroup"]
+ :ivar version: The policy set definition version in #.#.# format.
+ :vartype version: str
+ :ivar versions: A list of available versions for this policy set definition.
+ :vartype versions: list[str]
+ """
+
+ policyType: Union[str, "PolicyType"]
+ """The type of policy set definition. Possible values are NotSpecified, BuiltIn, Custom, and
+ Static. Known values are: \"NotSpecified\", \"BuiltIn\", \"Custom\", and \"Static\"."""
+ displayName: str
+ """The display name of the policy set definition."""
+ description: str
+ """The policy set definition description."""
+ metadata: Any
+ """The policy set definition metadata. Metadata is an open ended object and is typically a
+ collection of key value pairs."""
+ parameters: dict[str, "ParameterDefinitionsValue"]
+ """The policy set definition parameters that can be used in policy definition references."""
+ policyDefinitions: Required[list["PolicyDefinitionReference"]]
+ """An array of policy definition references. Required."""
+ policyDefinitionGroups: list["PolicyDefinitionGroup"]
+ """The metadata describing groups of policy definition references within the policy set
+ definition."""
+ version: str
+ """The policy set definition version in #.#.# format."""
+ versions: list[str]
+ """A list of available versions for this policy set definition."""
+
+
+class PolicySetDefinitionVersion(ProxyResource):
+ """The policy set definition version.
+
+ :ivar id: Fully qualified resource ID for the resource. Ex -
+ /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
+ :vartype id: str
+ :ivar name: The name of the resource.
+ :vartype name: str
+ :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
+ "Microsoft.Storage/storageAccounts".
+ :vartype type: str
+ :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy
+ information.
+ :vartype systemData: "SystemData"
+ :ivar properties: The policy set definition version properties.
+ :vartype properties: "PolicySetDefinitionVersionProperties"
+ """
+
+ properties: "PolicySetDefinitionVersionProperties"
+ """The policy set definition version properties."""
+
+
+class PolicySetDefinitionVersionProperties(TypedDict, total=False):
+ """The policy set definition properties.
+
+ :ivar policyType: The type of policy definition. Possible values are NotSpecified, BuiltIn,
+ Custom, and Static. Known values are: "NotSpecified", "BuiltIn", "Custom", and "Static".
+ :vartype policyType: Union[str, "PolicyType"]
+ :ivar displayName: The display name of the policy set definition.
+ :vartype displayName: str
+ :ivar description: The policy set definition description.
+ :vartype description: str
+ :ivar metadata: The policy set definition metadata. Metadata is an open ended object and is
+ typically a collection of key value pairs.
+ :vartype metadata: Any
+ :ivar parameters: The policy set definition parameters that can be used in policy definition
+ references.
+ :vartype parameters: dict[str, "ParameterDefinitionsValue"]
+ :ivar policyDefinitions: An array of policy definition references. Required.
+ :vartype policyDefinitions: list["PolicyDefinitionReference"]
+ :ivar policyDefinitionGroups: The metadata describing groups of policy definition references
+ within the policy set definition.
+ :vartype policyDefinitionGroups: list["PolicyDefinitionGroup"]
+ :ivar version: The policy set definition version in #.#.# format.
+ :vartype version: str
+ """
+
+ policyType: Union[str, "PolicyType"]
+ """The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.
+ Known values are: \"NotSpecified\", \"BuiltIn\", \"Custom\", and \"Static\"."""
+ displayName: str
+ """The display name of the policy set definition."""
+ description: str
+ """The policy set definition description."""
+ metadata: Any
+ """The policy set definition metadata. Metadata is an open ended object and is typically a
+ collection of key value pairs."""
+ parameters: dict[str, "ParameterDefinitionsValue"]
+ """The policy set definition parameters that can be used in policy definition references."""
+ policyDefinitions: Required[list["PolicyDefinitionReference"]]
+ """An array of policy definition references. Required."""
+ policyDefinitionGroups: list["PolicyDefinitionGroup"]
+ """The metadata describing groups of policy definition references within the policy set
+ definition."""
+ version: str
+ """The policy set definition version in #.#.# format."""
+
+
+class PolicyTokenOperation(TypedDict, total=False):
+ """The resource operation to acquire a token for.
+
+ :ivar uri: The request URI of the resource operation. Required.
+ :vartype uri: str
+ :ivar httpMethod: The http method of the resource operation. Required.
+ :vartype httpMethod: str
+ :ivar content: The payload of the resource operation.
+ :vartype content: Any
+ """
+
+ uri: Required[str]
+ """The request URI of the resource operation. Required."""
+ httpMethod: Required[str]
+ """The http method of the resource operation. Required."""
+ content: Any
+ """The payload of the resource operation."""
+
+
+class PolicyTokenRequest(TypedDict, total=False):
+ """The policy token request properties.
+
+ :ivar operation: The resource operation to acquire a token for. Required.
+ :vartype operation: "PolicyTokenOperation"
+ :ivar changeReference: The change reference.
+ :vartype changeReference: str
+ """
+
+ operation: Required["PolicyTokenOperation"]
+ """The resource operation to acquire a token for. Required."""
+ changeReference: str
+ """The change reference."""
+
+
+class PolicyVariableColumn(TypedDict, total=False):
+ """The variable column.
+
+ :ivar columnName: The name of this policy variable column. Required.
+ :vartype columnName: str
+ """
+
+ columnName: Required[str]
+ """The name of this policy variable column. Required."""
+
+
+class PolicyVariableProperties(TypedDict, total=False):
+ """The variable properties.
+
+ :ivar columns: Variable column definitions. Required.
+ :vartype columns: list["PolicyVariableColumn"]
+ """
+
+ columns: Required[list["PolicyVariableColumn"]]
+ """Variable column definitions. Required."""
+
+
+class PolicyVariableValueColumnValue(TypedDict, total=False):
+ """The name value tuple for this variable value column.
+
+ :ivar columnName: Column name for the variable value. Required.
+ :vartype columnName: str
+ :ivar columnValue: Column value for the variable value; this can be an integer, double,
+ boolean, null or a string. Required.
+ :vartype columnValue: Any
+ """
+
+ columnName: Required[str]
+ """Column name for the variable value. Required."""
+ columnValue: Required[Any]
+ """Column value for the variable value; this can be an integer, double, boolean, null or a string.
+ Required."""
+
+
+class PolicyVariableValueProperties(TypedDict, total=False):
+ """The variable value properties.
+
+ :ivar values: Variable value column value array. Required.
+ :vartype values: list["PolicyVariableValueColumnValue"]
+ """
+
+ values: Required[list["PolicyVariableValueColumnValue"]]
+ """Variable value column value array. Required."""
+
+
+class ResourceSelector(TypedDict, total=False):
+ """The resource selector to filter policies by resource properties.
+
+ :ivar name: The name of the resource selector.
+ :vartype name: str
+ :ivar selectors: The list of the selector expressions.
+ :vartype selectors: list["Selector"]
+ """
+
+ name: str
+ """The name of the resource selector."""
+ selectors: list["Selector"]
+ """The list of the selector expressions."""
+
+
+Selector = TypedDict(
+ "Selector",
+ {
+ "kind": Union[str, "SelectorKind"],
+ "in": list[str],
+ "notIn": list[str],
+ },
+ total=False,
+)
+Selector.__doc__ = """The selector expression.
+
+:ivar kind: The selector kind. Known values are: "resourceLocation", "resourceType",
+ "resourceWithoutLocation", "policyDefinitionReferenceId", "userPrincipalId", and
+ "groupPrincipalId".
+:vartype kind: Union[str, "SelectorKind"]
+:ivar in: The list of values to filter in.
+:vartype in: list[str]
+:ivar notIn: The list of values to filter out.
+:vartype notIn: list[str]
+"""
+
+
+class SelfServeExemptionSettings(TypedDict, total=False):
+ """The self-serve exemption settings for a policy assignment.
+
+ :ivar enabled: Indicates whether self-serve exemption is enabled.
+ :vartype enabled: bool
+ :ivar policyDefinitionReferenceIds: The policy definition reference IDs for self-serve
+ exemption.
+ :vartype policyDefinitionReferenceIds: list[str]
+ """
+
+ enabled: bool
+ """Indicates whether self-serve exemption is enabled."""
+ policyDefinitionReferenceIds: list[str]
+ """The policy definition reference IDs for self-serve exemption."""
+
+
+class SystemData(TypedDict, total=False):
+ """Metadata pertaining to creation and last modification of the resource.
+
+ :ivar createdBy: The identity that created the resource.
+ :vartype createdBy: str
+ :ivar createdByType: The type of identity that created the resource. Known values are: "User",
+ "Application", "ManagedIdentity", and "Key".
+ :vartype createdByType: Union[str, "CreatedByType"]
+ :ivar createdAt: The timestamp of resource creation (UTC).
+ :vartype createdAt: str
+ :ivar lastModifiedBy: The identity that last modified the resource.
+ :vartype lastModifiedBy: str
+ :ivar lastModifiedByType: The type of identity that last modified the resource. Known values
+ are: "User", "Application", "ManagedIdentity", and "Key".
+ :vartype lastModifiedByType: Union[str, "CreatedByType"]
+ :ivar lastModifiedAt: The timestamp of resource last modification (UTC).
+ :vartype lastModifiedAt: str
+ """
+
+ createdBy: str
+ """The identity that created the resource."""
+ createdByType: Union[str, "CreatedByType"]
+ """The type of identity that created the resource. Known values are: \"User\", \"Application\",
+ \"ManagedIdentity\", and \"Key\"."""
+ createdAt: str
+ """The timestamp of resource creation (UTC)."""
+ lastModifiedBy: str
+ """The identity that last modified the resource."""
+ lastModifiedByType: Union[str, "CreatedByType"]
+ """The type of identity that last modified the resource. Known values are: \"User\",
+ \"Application\", \"ManagedIdentity\", and \"Key\"."""
+ lastModifiedAt: str
+ """The timestamp of resource last modification (UTC)."""
+
+
+class UserAssignedIdentitiesValue(TypedDict, total=False):
+ """UserAssignedIdentitiesValue.
+
+ :ivar principalId: The principal id of user assigned identity.
+ :vartype principalId: str
+ :ivar clientId: The client id of user assigned identity.
+ :vartype clientId: str
+ """
+
+ principalId: str
+ """The principal id of user assigned identity."""
+ clientId: str
+ """The client id of user assigned identity."""
+
+
+class Variable(ProxyResource):
+ """The variable.
+
+ :ivar id: Fully qualified resource ID for the resource. Ex -
+ /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
+ :vartype id: str
+ :ivar name: The name of the resource.
+ :vartype name: str
+ :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
+ "Microsoft.Storage/storageAccounts".
+ :vartype type: str
+ :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy
+ information.
+ :vartype systemData: "SystemData"
+ :ivar properties: Properties for the variable.
+ :vartype properties: "PolicyVariableProperties"
+ """
+
+ properties: "PolicyVariableProperties"
+ """Properties for the variable."""
+
+
+class VariableValue(ProxyResource):
+ """The variable value.
+
+ :ivar id: Fully qualified resource ID for the resource. Ex -
+ /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
+ :vartype id: str
+ :ivar name: The name of the resource.
+ :vartype name: str
+ :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
+ "Microsoft.Storage/storageAccounts".
+ :vartype type: str
+ :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy
+ information.
+ :vartype systemData: "SystemData"
+ :ivar properties: Properties for the variable value.
+ :vartype properties: "PolicyVariableValueProperties"
+ """
+
+ properties: "PolicyVariableValueProperties"
+ """Properties for the variable value."""
diff --git a/sdk/resources/azure-mgmt-resource-policy/pyproject.toml b/sdk/resources/azure-mgmt-resource-policy/pyproject.toml
index fff1dd372728..d8b7599fa7b8 100644
--- a/sdk/resources/azure-mgmt-resource-policy/pyproject.toml
+++ b/sdk/resources/azure-mgmt-resource-policy/pyproject.toml
@@ -21,6 +21,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
+ "Programming Language :: Python :: 3.14",
]
requires-python = ">=3.10"
keywords = [
diff --git a/sdk/resources/azure-mgmt-resource-policy/tsp-location.yaml b/sdk/resources/azure-mgmt-resource-policy/tsp-location.yaml
index 204df7fcc6c9..655f054e25b1 100644
--- a/sdk/resources/azure-mgmt-resource-policy/tsp-location.yaml
+++ b/sdk/resources/azure-mgmt-resource-policy/tsp-location.yaml
@@ -1,4 +1,4 @@
directory: specification/resources/resource-manager/Microsoft.Authorization/policy
-commit: 090fd0dc3ee03fb63ad7d60b14027c495b7b4b25
+commit: befd1687368facdf2e5f0878725c66107c2cd8d5
repo: Azure/azure-rest-api-specs
additionalDirectories: