diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/CHANGELOG.md b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/CHANGELOG.md index 2eaeb3d688f5..1ff690c4b04a 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/CHANGELOG.md +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/CHANGELOG.md @@ -1,5 +1,50 @@ # Release History +## 15.0.0b5 (2026-08-20) + +### Features Added + + - Client `CognitiveServicesManagementClient` added operation group `arc_deployments` + - Model `AccountProperties` added property `a365_logging_enabled` + - Model `AccountProperties` added property `agent_hosting_configurations` + - Model `AccountProperties` added property `capability_settings` + - Model `ClusterComputeProperties` added property `location` + - Model `ComputeProperties` added property `location` + - Model `ContainerInstanceComputeProperties` added property `location` + - Model `DeploymentProperties` added property `context_cache_container_id` + - Model `ProjectProperties` added property `capability_settings` + - Enum `ProvisioningState` added member `EXTENSION_UNREACHABLE` + - Enum `VmPriority` added member `SPOT` + - Added model `AgentHostingConfiguration` + - Added enum `AgentHostingType` + - Added model `ArcDeployment` + - Added enum `ArcDeploymentComputeType` + - Added model `ArcDeploymentCpuMemoryResourceRequirements` + - Added model `ArcDeploymentKubernetesResources` + - Added model `ArcDeploymentModel` + - Added model `ArcDeploymentPatchCpuMemoryResourceRequirements` + - Added model `ArcDeploymentPatchKubernetesResources` + - Added model `ArcDeploymentProperties` + - Added model `ArcDeploymentProvisioningDetails` + - Added model `ArcDeploymentResourceRequirements` + - Added enum `ArcDeploymentRuntime` + - Added model `ArcDeploymentSku` + - Added enum `ArcDeploymentSkuName` + - Added model `ArcDeploymentUpdate` + - Added model `ArcDeploymentUpdateProperties` + - Added model `ArcDeploymentVllmParameters` + - Added model `CapabilitySettings` + - Added model `ManagedClusterAgentHostingConfiguration` + - Added operation group `ArcDeploymentsOperations` + +### Breaking Changes + + - This version introduces new hybrid models which have dual dictionary and model nature. Please follow https://aka.ms/azsdk/python/migrate/hybrid-models for migration. + - Model `Compute` deleted or renamed its instance variable `location` + - Deleted or renamed enum value `VmPriority.LOW_PRIORITY` + - Deleted or renamed method `ComputesOperations.begin_update` + - Method `ComputesOperations.begin_create_or_update` changed return type from `LROPoller[Compute]` to `LROPoller[None]` + ## 15.0.0b4 (2026-07-21) ### Bugs Fixed diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/_metadata.json b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/_metadata.json index 87fe0335de39..1384eabb2f7c 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/_metadata.json +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/_metadata.json @@ -1,11 +1,11 @@ { - "apiVersion": "2026-05-15-preview", + "apiVersion": "2026-07-15-preview", "apiVersions": { - "Microsoft.CognitiveServices": "2026-05-15-preview" + "Microsoft.CognitiveServices": "2026-07-15-preview" }, - "commit": "fc12374be89d7869e1a5cff58b7586c9dcb6bf64", + "commit": "d8ae42826a35b0973ff1bb7900328c5063698a81", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "typespec_src": "specification/cognitiveservices/CognitiveServices.Management", - "emitterVersion": "0.63.2", - "httpClientPythonVersion": "^0.33.0" + "emitterVersion": "0.63.5", + "httpClientPythonVersion": "^0.36.0" } \ No newline at end of file diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/api.md b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/api.md index 3d96f0f62ee4..1bf720eebcca 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/api.md +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/api.md @@ -7,6 +7,7 @@ namespace azure.mgmt.cognitiveservices accounts: AccountsOperations agent_applications: AgentApplicationsOperations agent_deployments: AgentDeploymentsOperations + arc_deployments: ArcDeploymentsOperations commitment_plans: CommitmentPlansOperations commitment_tiers: CommitmentTiersOperations compute_operations: ComputeOperationsOperations @@ -71,7 +72,7 @@ namespace azure.mgmt.cognitiveservices @overload def calculate_model_capacity( self, - parameters: JSON, + parameters: CalculateModelCapacityParameter, *, content_type: str = "application/json", **kwargs: Any @@ -98,7 +99,7 @@ namespace azure.mgmt.cognitiveservices @overload def check_domain_availability( self, - parameters: JSON, + parameters: CheckDomainAvailabilityParameter, *, content_type: str = "application/json", **kwargs: Any @@ -127,7 +128,7 @@ namespace azure.mgmt.cognitiveservices def check_sku_availability( self, location: str, - parameters: JSON, + parameters: CheckSkuAvailabilityParameter, *, content_type: str = "application/json", **kwargs: Any @@ -162,6 +163,7 @@ namespace azure.mgmt.cognitiveservices.aio accounts: AccountsOperations agent_applications: AgentApplicationsOperations agent_deployments: AgentDeploymentsOperations + arc_deployments: ArcDeploymentsOperations commitment_plans: CommitmentPlansOperations commitment_tiers: CommitmentTiersOperations compute_operations: ComputeOperationsOperations @@ -226,7 +228,7 @@ namespace azure.mgmt.cognitiveservices.aio @overload async def calculate_model_capacity( self, - parameters: JSON, + parameters: CalculateModelCapacityParameter, *, content_type: str = "application/json", **kwargs: Any @@ -253,7 +255,7 @@ namespace azure.mgmt.cognitiveservices.aio @overload async def check_domain_availability( self, - parameters: JSON, + parameters: CheckDomainAvailabilityParameter, *, content_type: str = "application/json", **kwargs: Any @@ -282,7 +284,7 @@ namespace azure.mgmt.cognitiveservices.aio async def check_sku_availability( self, location: str, - parameters: JSON, + parameters: CheckSkuAvailabilityParameter, *, content_type: str = "application/json", **kwargs: Any @@ -337,7 +339,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations resource_group_name: str, account_name: str, capability_host_name: str, - capability_host: JSON, + capability_host: CapabilityHost, *, content_type: str = "application/json", **kwargs: Any @@ -408,7 +410,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations resource_group_name: str, account_name: str, connection_name: str, - connection: Optional[JSON] = None, + connection: Optional[ConnectionPropertiesV2BasicResource] = None, *, content_type: str = "application/json", **kwargs: Any @@ -474,7 +476,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations resource_group_name: str, account_name: str, connection_name: str, - connection: Optional[JSON] = None, + connection: Optional[ConnectionUpdateContent] = None, *, content_type: str = "application/json", **kwargs: Any @@ -517,7 +519,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations self, resource_group_name: str, account_name: str, - account: JSON, + account: Account, *, content_type: str = "application/json", **kwargs: Any @@ -558,7 +560,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations self, resource_group_name: str, account_name: str, - account: JSON, + account: Account, *, content_type: str = "application/json", **kwargs: Any @@ -591,7 +593,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations self, resource_group_name: str, account_name: str, - body: JSON, + body: EvaluateDeploymentPoliciesRequest, *, content_type: str = "application/json", **kwargs: Any @@ -676,7 +678,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations self, resource_group_name: str, account_name: str, - parameters: JSON, + parameters: RegenerateKeyParameters, *, content_type: str = "application/json", **kwargs: Any @@ -722,7 +724,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations account_name: str, project_name: str, name: str, - body: JSON, + body: AgentApplication, *, content_type: str = "application/json", **kwargs: Any @@ -839,7 +841,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations project_name: str, app_name: str, deployment_name: str, - body: JSON, + body: AgentDeployment, *, content_type: str = "application/json", **kwargs: Any @@ -920,6 +922,116 @@ namespace azure.mgmt.cognitiveservices.aio.operations ) -> None: ... + class azure.mgmt.cognitiveservices.aio.operations.ArcDeploymentsOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + account_name: str, + deployment_name: str, + resource: ArcDeployment, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[ArcDeployment]: ... + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + account_name: str, + deployment_name: str, + resource: ArcDeployment, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[ArcDeployment]: ... + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + account_name: str, + deployment_name: str, + resource: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[ArcDeployment]: ... + + @distributed_trace_async + @api_version_validation(method_added_on='2026-07-15-preview', params_added_on={'2026-07-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'deployment_name']}, api_versions_list=['2026-07-15-preview']) + async def begin_delete( + self, + resource_group_name: str, + account_name: str, + deployment_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @overload + async def begin_update( + self, + resource_group_name: str, + account_name: str, + deployment_name: str, + properties: ArcDeploymentUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[ArcDeployment]: ... + + @overload + async def begin_update( + self, + resource_group_name: str, + account_name: str, + deployment_name: str, + properties: ArcDeploymentUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[ArcDeployment]: ... + + @overload + async def begin_update( + self, + resource_group_name: str, + account_name: str, + deployment_name: str, + properties: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[ArcDeployment]: ... + + @distributed_trace_async + @api_version_validation(method_added_on='2026-07-15-preview', params_added_on={'2026-07-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'deployment_name', 'accept']}, api_versions_list=['2026-07-15-preview']) + async def get( + self, + resource_group_name: str, + account_name: str, + deployment_name: str, + **kwargs: Any + ) -> ArcDeployment: ... + + @distributed_trace + @api_version_validation(method_added_on='2026-07-15-preview', params_added_on={'2026-07-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'accept']}, api_versions_list=['2026-07-15-preview']) + def list( + self, + resource_group_name: str, + account_name: str, + **kwargs: Any + ) -> AsyncItemPaged[ArcDeployment]: ... + + class azure.mgmt.cognitiveservices.aio.operations.CommitmentPlansOperations: def __init__( @@ -946,7 +1058,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations resource_group_name: str, commitment_plan_name: str, commitment_plan_association_name: str, - association: JSON, + association: CommitmentPlanAccountAssociation, *, content_type: str = "application/json", **kwargs: Any @@ -980,7 +1092,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations self, resource_group_name: str, commitment_plan_name: str, - commitment_plan: JSON, + commitment_plan: CommitmentPlan, *, content_type: str = "application/json", **kwargs: Any @@ -1039,7 +1151,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations self, resource_group_name: str, commitment_plan_name: str, - commitment_plan: JSON, + commitment_plan: PatchResourceTagsAndSku, *, content_type: str = "application/json", **kwargs: Any @@ -1074,7 +1186,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations resource_group_name: str, account_name: str, commitment_plan_name: str, - commitment_plan: JSON, + commitment_plan: CommitmentPlan, *, content_type: str = "application/json", **kwargs: Any @@ -1170,7 +1282,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations ) -> None: ... @distributed_trace_async - @api_version_validation(method_added_on='2026-01-15-preview', params_added_on={'2026-01-15-preview': ['api_version', 'subscription_id', 'location', 'operation_id', 'accept']}, api_versions_list=['2026-01-15-preview', '2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-01-15-preview', params_added_on={'2026-01-15-preview': ['api_version', 'subscription_id', 'location', 'operation_id', 'accept']}, api_versions_list=['2026-01-15-preview', '2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) async def get( self, location: str, @@ -1179,7 +1291,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations ) -> ComputeOperationStatus: ... - class azure.mgmt.cognitiveservices.aio.operations.ComputesOperations(_ComputesOperationsGenerated): + class azure.mgmt.cognitiveservices.aio.operations.ComputesOperations: def __init__( self, @@ -1197,7 +1309,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[Compute]: ... + ) -> AsyncLROPoller[None]: ... @overload async def begin_create_or_update( @@ -1205,11 +1317,11 @@ namespace azure.mgmt.cognitiveservices.aio.operations resource_group_name: str, account_name: str, compute_name: str, - resource: JSON, + resource: Compute, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[Compute]: ... + ) -> AsyncLROPoller[None]: ... @overload async def begin_create_or_update( @@ -1221,10 +1333,10 @@ namespace azure.mgmt.cognitiveservices.aio.operations *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[Compute]: ... + ) -> AsyncLROPoller[None]: ... @distributed_trace_async - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'compute_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'compute_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) async def begin_delete( self, resource_group_name: str, @@ -1234,7 +1346,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations ) -> AsyncLROPoller[None]: ... @distributed_trace_async - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'compute_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'compute_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) async def begin_restart( self, resource_group_name: str, @@ -1244,7 +1356,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations ) -> AsyncLROPoller[None]: ... @distributed_trace_async - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'compute_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'compute_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) async def begin_start( self, resource_group_name: str, @@ -1254,7 +1366,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations ) -> AsyncLROPoller[None]: ... @distributed_trace_async - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'compute_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'compute_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) async def begin_stop( self, resource_group_name: str, @@ -1263,44 +1375,8 @@ namespace azure.mgmt.cognitiveservices.aio.operations **kwargs: Any ) -> AsyncLROPoller[None]: ... - @overload - async def begin_update( - self, - resource_group_name: str, - account_name: str, - compute_name: str, - properties: Compute, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[Compute]: ... - - @overload - async def begin_update( - self, - resource_group_name: str, - account_name: str, - compute_name: str, - properties: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[Compute]: ... - - @overload - async def begin_update( - self, - resource_group_name: str, - account_name: str, - compute_name: str, - properties: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[Compute]: ... - @distributed_trace_async - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'compute_name', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'compute_name', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) async def get( self, resource_group_name: str, @@ -1310,7 +1386,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations ) -> Compute: ... @distributed_trace - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) def list( self, resource_group_name: str, @@ -1345,7 +1421,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations resource_group_name: str, account_name: str, defender_for_ai_setting_name: str, - defender_for_ai_settings: JSON, + defender_for_ai_settings: DefenderForAISetting, *, content_type: str = "application/json", **kwargs: Any @@ -1398,7 +1474,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations resource_group_name: str, account_name: str, defender_for_ai_setting_name: str, - defender_for_ai_settings: JSON, + defender_for_ai_settings: DefenderForAISetting, *, content_type: str = "application/json", **kwargs: Any @@ -1473,7 +1549,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations resource_group_name: str, account_name: str, deployment_name: str, - deployment: JSON, + deployment: Deployment, *, content_type: str = "application/json", **kwargs: Any @@ -1518,7 +1594,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations resource_group_name: str, account_name: str, deployment_name: str, - deployment: JSON, + deployment: PatchResourceTagsAndSku, *, content_type: str = "application/json", **kwargs: Any @@ -1616,7 +1692,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations resource_group_name: str, account_name: str, encryption_scope_name: str, - encryption_scope: JSON, + encryption_scope: EncryptionScope, *, content_type: str = "application/json", **kwargs: Any @@ -1681,7 +1757,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations ) -> None: ... @distributed_trace - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'offer', 'accelerator_type', 'deployment_id', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'offer', 'accelerator_type', 'deployment_id', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) def list( self, *, @@ -1718,7 +1794,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations resource_group_name: str, account_name: str, deployment_name: str, - resource: JSON, + resource: ManagedComputeDeployment, *, content_type: str = "application/json", **kwargs: Any @@ -1737,7 +1813,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations ) -> AsyncLROPoller[ManagedComputeDeployment]: ... @distributed_trace_async - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'deployment_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'deployment_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) async def begin_delete( self, resource_group_name: str, @@ -1764,7 +1840,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations resource_group_name: str, account_name: str, deployment_name: str, - properties: JSON, + properties: PatchResourceSku, *, content_type: str = "application/json", **kwargs: Any @@ -1783,7 +1859,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations ) -> AsyncLROPoller[ManagedComputeDeployment]: ... @distributed_trace_async - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'deployment_name', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'deployment_name', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) async def get( self, resource_group_name: str, @@ -1793,7 +1869,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations ) -> ManagedComputeDeployment: ... @distributed_trace - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) def list( self, resource_group_name: str, @@ -1811,7 +1887,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations ) -> None: ... @distributed_trace - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'location', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'location', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) def list( self, location: str, @@ -1845,7 +1921,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations resource_group_name: str, account_name: str, managed_network_name: str, - body: Optional[JSON] = None, + body: Optional[ManagedNetworkProvisionOptions] = None, *, content_type: str = "application/json", **kwargs: Any @@ -1873,7 +1949,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations ) -> None: ... @distributed_trace_async - @api_version_validation(method_added_on='2026-01-15-preview', params_added_on={'2026-01-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'managed_network_name']}, api_versions_list=['2026-01-15-preview', '2026-03-01', '2026-03-15-preview', '2026-05-01', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-01-15-preview', params_added_on={'2026-01-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'managed_network_name']}, api_versions_list=['2026-01-15-preview', '2026-03-01', '2026-03-15-preview', '2026-05-01', '2026-05-15-preview', '2026-07-01', '2026-07-15-preview']) async def begin_delete( self, resource_group_name: str, @@ -1900,7 +1976,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations resource_group_name: str, account_name: str, managed_network_name: str, - body: Optional[JSON] = None, + body: Optional[ManagedNetworkSettingsPropertiesBasicResource] = None, *, content_type: str = "application/json", **kwargs: Any @@ -1936,7 +2012,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations resource_group_name: str, account_name: str, managed_network_name: str, - body: JSON, + body: ManagedNetworkSettingsPropertiesBasicResource, *, content_type: str = "application/json", **kwargs: Any @@ -2082,7 +2158,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations account_name: str, managed_network_name: str, rule_name: str, - body: JSON, + body: OutboundRuleBasicResource, *, content_type: str = "application/json", **kwargs: Any @@ -2157,7 +2233,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations resource_group_name: str, account_name: str, managed_network_name: str, - body: JSON, + body: ManagedNetworkSettingsBasicResource, *, content_type: str = "application/json", **kwargs: Any @@ -2202,7 +2278,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations resource_group_name: str, account_name: str, private_endpoint_connection_name: str, - properties: JSON, + properties: PrivateEndpointConnection, *, content_type: str = "application/json", **kwargs: Any @@ -2292,7 +2368,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations account_name: str, project_name: str, capability_host_name: str, - capability_host: JSON, + capability_host: ProjectCapabilityHost, *, content_type: str = "application/json", **kwargs: Any @@ -2369,7 +2445,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations account_name: str, project_name: str, connection_name: str, - connection: Optional[JSON] = None, + connection: Optional[ConnectionPropertiesV2BasicResource] = None, *, content_type: str = "application/json", **kwargs: Any @@ -2441,7 +2517,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations account_name: str, project_name: str, connection_name: str, - connection: Optional[JSON] = None, + connection: Optional[ConnectionUpdateContent] = None, *, content_type: str = "application/json", **kwargs: Any @@ -2487,7 +2563,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations resource_group_name: str, account_name: str, project_name: str, - project: JSON, + project: Project, *, content_type: str = "application/json", **kwargs: Any @@ -2532,7 +2608,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations resource_group_name: str, account_name: str, project_name: str, - project: JSON, + project: Project, *, content_type: str = "application/json", **kwargs: Any @@ -2590,7 +2666,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations async def create_or_update( self, default: str, - tier: JSON, + tier: QuotaTier, *, content_type: str = "application/json", **kwargs: Any @@ -2630,7 +2706,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations async def update( self, default: str, - tier: JSON, + tier: QuotaTier, *, content_type: str = "application/json", **kwargs: Any @@ -2673,7 +2749,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations resource_group_name: str, account_name: str, rai_blocklist_name: str, - rai_blocklist_items: List[JSON], + rai_blocklist_items: List[RaiBlocklistItemBulkRequest], *, content_type: str = "application/json", **kwargs: Any @@ -2745,7 +2821,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations account_name: str, rai_blocklist_name: str, rai_blocklist_item_name: str, - rai_blocklist_item: JSON, + rai_blocklist_item: RaiBlocklistItem, *, content_type: str = "application/json", **kwargs: Any @@ -2819,7 +2895,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations resource_group_name: str, account_name: str, rai_blocklist_name: str, - rai_blocklist: JSON, + rai_blocklist: RaiBlocklist, *, content_type: str = "application/json", **kwargs: Any @@ -2908,7 +2984,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations async def create_or_update( self, safety_provider_name: str, - safety_provider: JSON, + safety_provider: RaiExternalSafetyProviderSchema, *, content_type: str = "application/json", **kwargs: Any @@ -2979,7 +3055,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations resource_group_name: str, account_name: str, rai_policy_name: str, - rai_policy: JSON, + rai_policy: RaiPolicy, *, content_type: str = "application/json", **kwargs: Any @@ -3050,7 +3126,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations resource_group_name: str, account_name: str, rai_tool_connection_name: str, - rai_tool_label: JSON, + rai_tool_label: RaiToolLabel, *, content_type: str = "application/json", **kwargs: Any @@ -3121,7 +3197,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations resource_group_name: str, account_name: str, rai_topic_name: str, - rai_topic: JSON, + rai_topic: RaiTopic, *, content_type: str = "application/json", **kwargs: Any @@ -3198,7 +3274,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations async def create_or_update( self, rai_policy_name: str, - rai_policy: JSON, + rai_policy: RaiPolicy, *, content_type: str = "application/json", **kwargs: Any @@ -3248,7 +3324,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations resource_group_name: str, account_name: str, safety_provider_name: str, - safety_provider: JSON, + safety_provider: RaiExternalSafetyProviderSchema, *, content_type: str = "application/json", **kwargs: Any @@ -3313,7 +3389,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations account_name: str, project_name: str, workbench_name: str, - resource: JSON, + resource: Workbench, *, content_type: str = "application/json", **kwargs: Any @@ -3333,7 +3409,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations ) -> AsyncLROPoller[Workbench]: ... @distributed_trace_async - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'project_name', 'workbench_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'project_name', 'workbench_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) async def begin_delete( self, resource_group_name: str, @@ -3344,7 +3420,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations ) -> AsyncLROPoller[None]: ... @distributed_trace_async - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'project_name', 'workbench_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'project_name', 'workbench_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) async def begin_restart( self, resource_group_name: str, @@ -3355,7 +3431,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations ) -> AsyncLROPoller[None]: ... @distributed_trace_async - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'project_name', 'workbench_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'project_name', 'workbench_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) async def begin_start( self, resource_group_name: str, @@ -3366,7 +3442,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations ) -> AsyncLROPoller[None]: ... @distributed_trace_async - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'project_name', 'workbench_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'project_name', 'workbench_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) async def begin_stop( self, resource_group_name: str, @@ -3396,7 +3472,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations account_name: str, project_name: str, workbench_name: str, - properties: JSON, + properties: Workbench, *, content_type: str = "application/json", **kwargs: Any @@ -3416,7 +3492,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations ) -> AsyncLROPoller[Workbench]: ... @distributed_trace_async - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'project_name', 'workbench_name', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'project_name', 'workbench_name', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) async def get( self, resource_group_name: str, @@ -3427,7 +3503,7 @@ namespace azure.mgmt.cognitiveservices.aio.operations ) -> Workbench: ... @distributed_trace - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'project_name', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'project_name', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) def list( self, resource_group_name: str, @@ -3647,7 +3723,9 @@ namespace azure.mgmt.cognitiveservices.models class azure.mgmt.cognitiveservices.models.AccountProperties(_Model): + a365_logging_enabled: Optional[bool] abuse_penalty: Optional[AbusePenalty] + agent_hosting_configurations: Optional[list[AgentHostingConfiguration]] allow_project_management: Optional[bool] allowed_fqdn_list: Optional[list[str]] aml_workspace: Optional[UserOwnedAmlWorkspace] @@ -3655,6 +3733,7 @@ namespace azure.mgmt.cognitiveservices.models associated_projects: Optional[list[str]] call_rate_limit: Optional[CallRateLimit] capabilities: Optional[list[SkuCapability]] + capability_settings: Optional[CapabilitySettings] commitment_plan_associations: Optional[list[CommitmentPlanAssociation]] custom_sub_domain_name: Optional[str] date_created: Optional[str] @@ -3688,11 +3767,14 @@ namespace azure.mgmt.cognitiveservices.models def __init__( self, *, + a365_logging_enabled: Optional[bool] = ..., + agent_hosting_configurations: Optional[list[AgentHostingConfiguration]] = ..., allow_project_management: Optional[bool] = ..., allowed_fqdn_list: Optional[list[str]] = ..., aml_workspace: Optional[UserOwnedAmlWorkspace] = ..., api_properties: Optional[ApiProperties] = ..., associated_projects: Optional[list[str]] = ..., + capability_settings: Optional[CapabilitySettings] = ..., custom_sub_domain_name: Optional[str] = ..., default_project: Optional[str] = ..., disable_local_auth: Optional[bool] = ..., @@ -3840,6 +3922,26 @@ namespace azure.mgmt.cognitiveservices.models MANAGED = "Managed" + class azure.mgmt.cognitiveservices.models.AgentHostingConfiguration(_Model): + hosting_type: str + name: str + + @overload + def __init__( + self, + *, + hosting_type: str, + name: str + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.cognitiveservices.models.AgentHostingType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + MANAGED_CLUSTER = "ManagedCluster" + + class azure.mgmt.cognitiveservices.models.AgentProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): A2_A = "A2A" AGENT = "Agent" @@ -4068,115 +4170,367 @@ namespace azure.mgmt.cognitiveservices.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... - class azure.mgmt.cognitiveservices.models.AssignedIdentity(_Model): - client_id: str - kind: Union[str, IdentityKind] - principal_id: str - provisioning_state: Optional[Union[str, IdentityProvisioningState]] - subject: Optional[str] - tenant_id: str - type: Union[str, IdentityManagementType] + class azure.mgmt.cognitiveservices.models.ArcDeployment(ProxyResource): + etag: Optional[str] + id: str + name: str + properties: ArcDeploymentProperties + sku: ArcDeploymentSku + system_data: SystemData + type: str @overload def __init__( self, *, - client_id: str, - kind: Union[str, IdentityKind], - principal_id: str, - subject: Optional[str] = ..., - tenant_id: str, - type: Union[str, IdentityManagementType] + properties: ArcDeploymentProperties, + sku: ArcDeploymentSku ) -> None: ... @overload def __init__(self, mapping: Mapping[str, Any]) -> None: ... - class azure.mgmt.cognitiveservices.models.BillingMeterInfo(_Model): - meter_id: Optional[str] - name: Optional[str] - unit: Optional[str] + class azure.mgmt.cognitiveservices.models.ArcDeploymentComputeType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + CPU = "cpu" + GPU = "gpu" + + + class azure.mgmt.cognitiveservices.models.ArcDeploymentCpuMemoryResourceRequirements(_Model): + cpu: str + memory: str @overload def __init__( self, *, - meter_id: Optional[str] = ..., - name: Optional[str] = ..., - unit: Optional[str] = ... + cpu: str, + memory: str ) -> None: ... @overload def __init__(self, mapping: Mapping[str, Any]) -> None: ... - class azure.mgmt.cognitiveservices.models.BuiltInAuthorizationScheme(str, Enum, metaclass=CaseInsensitiveEnumMeta): - CHANNELS = "Channels" - CUSTOM = "Custom" - DEFAULT = "Default" - ORGANIZATION_SCOPE = "OrganizationScope" - - - class azure.mgmt.cognitiveservices.models.ByPassSelection(str, Enum, metaclass=CaseInsensitiveEnumMeta): - AZURE_SERVICES = "AzureServices" - NONE = "None" - - - class azure.mgmt.cognitiveservices.models.CalculateModelCapacityParameter(_Model): - model: Optional[DeploymentModel] - sku_name: Optional[str] - workloads: Optional[list[ModelCapacityCalculatorWorkload]] + class azure.mgmt.cognitiveservices.models.ArcDeploymentKubernetesResources(_Model): + limits: Optional[ArcDeploymentResourceRequirements] + requests: Optional[ArcDeploymentCpuMemoryResourceRequirements] @overload def __init__( self, *, - model: Optional[DeploymentModel] = ..., - sku_name: Optional[str] = ..., - workloads: Optional[list[ModelCapacityCalculatorWorkload]] = ... + limits: Optional[ArcDeploymentResourceRequirements] = ..., + requests: Optional[ArcDeploymentCpuMemoryResourceRequirements] = ... ) -> None: ... @overload def __init__(self, mapping: Mapping[str, Any]) -> None: ... - class azure.mgmt.cognitiveservices.models.CalculateModelCapacityResult(_Model): - estimated_capacity: Optional[CalculateModelCapacityResultEstimatedCapacity] - model: Optional[DeploymentModel] - sku_name: Optional[str] + class azure.mgmt.cognitiveservices.models.ArcDeploymentModel(_Model): + format: str + name: str @overload def __init__( self, *, - estimated_capacity: Optional[CalculateModelCapacityResultEstimatedCapacity] = ..., - model: Optional[DeploymentModel] = ..., - sku_name: Optional[str] = ... + format: str, + name: str ) -> None: ... @overload def __init__(self, mapping: Mapping[str, Any]) -> None: ... - class azure.mgmt.cognitiveservices.models.CalculateModelCapacityResultEstimatedCapacity(_Model): - deployable_value: Optional[int] - value: Optional[int] + class azure.mgmt.cognitiveservices.models.ArcDeploymentPatchCpuMemoryResourceRequirements(_Model): + cpu: Optional[str] + memory: Optional[str] @overload def __init__( self, *, - deployable_value: Optional[int] = ..., - value: Optional[int] = ... + cpu: Optional[str] = ..., + memory: Optional[str] = ... ) -> None: ... @overload def __init__(self, mapping: Mapping[str, Any]) -> None: ... - class azure.mgmt.cognitiveservices.models.CallRateLimit(_Model): - count: Optional[float] + class azure.mgmt.cognitiveservices.models.ArcDeploymentPatchKubernetesResources(_Model): + limits: Optional[ArcDeploymentResourceRequirements] + requests: Optional[ArcDeploymentPatchCpuMemoryResourceRequirements] + + @overload + def __init__( + self, + *, + limits: Optional[ArcDeploymentResourceRequirements] = ..., + requests: Optional[ArcDeploymentPatchCpuMemoryResourceRequirements] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.cognitiveservices.models.ArcDeploymentProperties(_Model): + capabilities: Optional[dict[str, str]] + compute: Union[str, ArcDeploymentComputeType] + deployment_state: Optional[Union[str, DeploymentState]] + deployment_template: Optional[str] + extension_id: str + inference_endpoint: Optional[str] + model: ArcDeploymentModel + node_selector: Optional[dict[str, str]] + provisioning_details: Optional[ArcDeploymentProvisioningDetails] + provisioning_state: Optional[Union[str, ProvisioningState]] + rai_policy_name: Optional[str] + replicas: int + resources: ArcDeploymentKubernetesResources + runtime: Union[str, ArcDeploymentRuntime] + vllm_parameters: Optional[ArcDeploymentVllmParameters] + + @overload + def __init__( + self, + *, + compute: Union[str, ArcDeploymentComputeType], + deployment_state: Optional[Union[str, DeploymentState]] = ..., + deployment_template: Optional[str] = ..., + extension_id: str, + model: ArcDeploymentModel, + node_selector: Optional[dict[str, str]] = ..., + rai_policy_name: Optional[str] = ..., + replicas: int, + resources: ArcDeploymentKubernetesResources, + runtime: Union[str, ArcDeploymentRuntime] + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.cognitiveservices.models.ArcDeploymentProvisioningDetails(_Model): + last_operation_timestamp: Optional[datetime] + message: Optional[str] + + @overload + def __init__( + self, + *, + last_operation_timestamp: Optional[datetime] = ..., + message: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.cognitiveservices.models.ArcDeploymentResourceRequirements(_Model): + cpu: Optional[str] + gpu: Optional[int] + memory: Optional[str] + + @overload + def __init__( + self, + *, + cpu: Optional[str] = ..., + gpu: Optional[int] = ..., + memory: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.cognitiveservices.models.ArcDeploymentRuntime(str, Enum, metaclass=CaseInsensitiveEnumMeta): + ONNX = "onnx-genai" + VLLM = "vllm" + + + class azure.mgmt.cognitiveservices.models.ArcDeploymentSku(_Model): + name: Union[str, ArcDeploymentSkuName] + + @overload + def __init__( + self, + *, + name: Union[str, ArcDeploymentSkuName] + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.cognitiveservices.models.ArcDeploymentSkuName(str, Enum, metaclass=CaseInsensitiveEnumMeta): + ARC = "Arc" + + + class azure.mgmt.cognitiveservices.models.ArcDeploymentUpdate(_Model): + properties: Optional[ArcDeploymentUpdateProperties] + + @overload + def __init__( + self, + *, + properties: Optional[ArcDeploymentUpdateProperties] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.cognitiveservices.models.ArcDeploymentUpdateProperties(_Model): + node_selector: Optional[dict[str, str]] + replicas: Optional[int] + resources: Optional[ArcDeploymentPatchKubernetesResources] + + @overload + def __init__( + self, + *, + node_selector: Optional[dict[str, str]] = ..., + replicas: Optional[int] = ..., + resources: Optional[ArcDeploymentPatchKubernetesResources] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.cognitiveservices.models.ArcDeploymentVllmParameters(_Model): + enforce_eager: Optional[bool] + gpu_memory_utilization: Optional[float] + max_model_len: Optional[int] + tensor_parallel_size: Optional[int] + + @overload + def __init__( + self, + *, + enforce_eager: Optional[bool] = ..., + gpu_memory_utilization: Optional[float] = ..., + max_model_len: Optional[int] = ..., + tensor_parallel_size: Optional[int] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.cognitiveservices.models.AssignedIdentity(_Model): + client_id: str + kind: Union[str, IdentityKind] + principal_id: str + provisioning_state: Optional[Union[str, IdentityProvisioningState]] + subject: Optional[str] + tenant_id: str + type: Union[str, IdentityManagementType] + + @overload + def __init__( + self, + *, + client_id: str, + kind: Union[str, IdentityKind], + principal_id: str, + subject: Optional[str] = ..., + tenant_id: str, + type: Union[str, IdentityManagementType] + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.cognitiveservices.models.BillingMeterInfo(_Model): + meter_id: Optional[str] + name: Optional[str] + unit: Optional[str] + + @overload + def __init__( + self, + *, + meter_id: Optional[str] = ..., + name: Optional[str] = ..., + unit: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.cognitiveservices.models.BuiltInAuthorizationScheme(str, Enum, metaclass=CaseInsensitiveEnumMeta): + CHANNELS = "Channels" + CUSTOM = "Custom" + DEFAULT = "Default" + ORGANIZATION_SCOPE = "OrganizationScope" + + + class azure.mgmt.cognitiveservices.models.ByPassSelection(str, Enum, metaclass=CaseInsensitiveEnumMeta): + AZURE_SERVICES = "AzureServices" + NONE = "None" + + + class azure.mgmt.cognitiveservices.models.CalculateModelCapacityParameter(_Model): + model: Optional[DeploymentModel] + sku_name: Optional[str] + workloads: Optional[list[ModelCapacityCalculatorWorkload]] + + @overload + def __init__( + self, + *, + model: Optional[DeploymentModel] = ..., + sku_name: Optional[str] = ..., + workloads: Optional[list[ModelCapacityCalculatorWorkload]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.cognitiveservices.models.CalculateModelCapacityResult(_Model): + estimated_capacity: Optional[CalculateModelCapacityResultEstimatedCapacity] + model: Optional[DeploymentModel] + sku_name: Optional[str] + + @overload + def __init__( + self, + *, + estimated_capacity: Optional[CalculateModelCapacityResultEstimatedCapacity] = ..., + model: Optional[DeploymentModel] = ..., + sku_name: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.cognitiveservices.models.CalculateModelCapacityResultEstimatedCapacity(_Model): + deployable_value: Optional[int] + value: Optional[int] + + @overload + def __init__( + self, + *, + deployable_value: Optional[int] = ..., + value: Optional[int] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.cognitiveservices.models.CallRateLimit(_Model): + count: Optional[float] renewal_period: Optional[float] rules: Optional[list[ThrottlingRule]] @@ -4255,6 +4609,24 @@ namespace azure.mgmt.cognitiveservices.models UPDATING = "Updating" + class azure.mgmt.cognitiveservices.models.CapabilitySettings(_Model): + blob_store: Optional[str] + document_store: Optional[str] + vector_store: Optional[str] + + @overload + def __init__( + self, + *, + blob_store: Optional[str] = ..., + document_store: Optional[str] = ..., + vector_store: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.cognitiveservices.models.CapacityConfig(_Model): allowed_values: Optional[list[int]] default: Optional[int] @@ -4327,6 +4699,7 @@ namespace azure.mgmt.cognitiveservices.models compute_type: Literal[ComputeType.CLUSTER] creation_time: datetime errors: list[ErrorDetail] + location: str pools: list[Pool] provisioning_state: Union[str, ComputeProvisioningState] subnet_arm_id: Optional[str] @@ -4335,6 +4708,7 @@ namespace azure.mgmt.cognitiveservices.models def __init__( self, *, + location: str, pools: list[Pool], subnet_arm_id: Optional[str] = ... ) -> None: ... @@ -4550,7 +4924,6 @@ namespace azure.mgmt.cognitiveservices.models id: str identity: Optional[Identity] kind: Optional[str] - location: Optional[str] name: str properties: ComputeProperties system_data: SystemData @@ -4563,7 +4936,6 @@ namespace azure.mgmt.cognitiveservices.models *, identity: Optional[Identity] = ..., kind: Optional[str] = ..., - location: Optional[str] = ..., properties: ComputeProperties, tags: Optional[dict[str, str]] = ... ) -> None: ... @@ -4619,13 +4991,15 @@ namespace azure.mgmt.cognitiveservices.models compute_type: str creation_time: Optional[datetime] errors: Optional[list[ErrorDetail]] + location: str provisioning_state: Optional[Union[str, ComputeProvisioningState]] @overload def __init__( self, *, - compute_type: str + compute_type: str, + location: str ) -> None: ... @overload @@ -5038,6 +5412,7 @@ namespace azure.mgmt.cognitiveservices.models errors: list[ErrorDetail] idle_time_before_shutdown: Optional[str] image_link: str + location: str provisioning_state: Union[str, ComputeProvisioningState] ssh_settings: Optional[SshSettings] target_cluster_id: str @@ -5048,6 +5423,7 @@ namespace azure.mgmt.cognitiveservices.models *, idle_time_before_shutdown: Optional[str] = ..., image_link: str, + location: str, ssh_settings: Optional[SshSettings] = ..., target_cluster_id: str ) -> None: ... @@ -5278,6 +5654,7 @@ namespace azure.mgmt.cognitiveservices.models call_rate_limit: Optional[CallRateLimit] capabilities: Optional[dict[str, str]] capacity_settings: Optional[DeploymentCapacitySettings] + context_cache_container_id: Optional[str] current_capacity: Optional[int] deployment_state: Optional[Union[str, DeploymentState]] dynamic_throttling_enabled: Optional[bool] @@ -5298,6 +5675,7 @@ namespace azure.mgmt.cognitiveservices.models self, *, capacity_settings: Optional[DeploymentCapacitySettings] = ..., + context_cache_container_id: Optional[str] = ..., current_capacity: Optional[int] = ..., deployment_state: Optional[Union[str, DeploymentState]] = ..., model: Optional[DeploymentModel] = ..., @@ -5785,6 +6163,29 @@ namespace azure.mgmt.cognitiveservices.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.cognitiveservices.models.ManagedClusterAgentHostingConfiguration(AgentHostingConfiguration, discriminator='ManagedCluster'): + cluster_resource_id: str + hosting_management_identity_resource_id: str + hosting_type: Literal[AgentHostingType.MANAGED_CLUSTER] + name: str + storage_account_resource_id: str + workload_identity_resource_id: str + + @overload + def __init__( + self, + *, + cluster_resource_id: str, + hosting_management_identity_resource_id: str, + name: str, + storage_account_resource_id: str, + workload_identity_resource_id: str + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.cognitiveservices.models.ManagedComputeCapacity(ProxyResource): id: str name: str @@ -6794,7 +7195,7 @@ namespace azure.mgmt.cognitiveservices.models instance_type: str name: str node_count: int - vm_priority: Union[str, VmPriority] + vm_priority: Optional[Union[str, VmPriority]] @overload def __init__( @@ -6803,7 +7204,7 @@ namespace azure.mgmt.cognitiveservices.models instance_type: str, name: str, node_count: int, - vm_priority: Union[str, VmPriority] + vm_priority: Optional[Union[str, VmPriority]] = ... ) -> None: ... @overload @@ -7052,6 +7453,7 @@ namespace azure.mgmt.cognitiveservices.models class azure.mgmt.cognitiveservices.models.ProjectProperties(_Model): + capability_settings: Optional[CapabilitySettings] description: Optional[str] display_name: Optional[str] endpoints: Optional[dict[str, str]] @@ -7062,6 +7464,7 @@ namespace azure.mgmt.cognitiveservices.models def __init__( self, *, + capability_settings: Optional[CapabilitySettings] = ..., description: Optional[str] = ..., display_name: Optional[str] = ... ) -> None: ... @@ -7113,6 +7516,7 @@ namespace azure.mgmt.cognitiveservices.models CANCELED = "Canceled" CREATING = "Creating" DELETING = "Deleting" + EXTENSION_UNREACHABLE = "ExtensionUnreachable" FAILED = "Failed" MOVING = "Moving" RESOLVING_DNS = "ResolvingDNS" @@ -8597,8 +9001,8 @@ namespace azure.mgmt.cognitiveservices.models class azure.mgmt.cognitiveservices.models.VmPriority(str, Enum, metaclass=CaseInsensitiveEnumMeta): - LOW_PRIORITY = "LowPriority" REGULAR = "Regular" + SPOT = "Spot" class azure.mgmt.cognitiveservices.models.Workbench(ProxyResource): @@ -8681,7 +9085,7 @@ namespace azure.mgmt.cognitiveservices.operations resource_group_name: str, account_name: str, capability_host_name: str, - capability_host: JSON, + capability_host: CapabilityHost, *, content_type: str = "application/json", **kwargs: Any @@ -8752,7 +9156,7 @@ namespace azure.mgmt.cognitiveservices.operations resource_group_name: str, account_name: str, connection_name: str, - connection: Optional[JSON] = None, + connection: Optional[ConnectionPropertiesV2BasicResource] = None, *, content_type: str = "application/json", **kwargs: Any @@ -8818,7 +9222,7 @@ namespace azure.mgmt.cognitiveservices.operations resource_group_name: str, account_name: str, connection_name: str, - connection: Optional[JSON] = None, + connection: Optional[ConnectionUpdateContent] = None, *, content_type: str = "application/json", **kwargs: Any @@ -8861,7 +9265,7 @@ namespace azure.mgmt.cognitiveservices.operations self, resource_group_name: str, account_name: str, - account: JSON, + account: Account, *, content_type: str = "application/json", **kwargs: Any @@ -8902,7 +9306,7 @@ namespace azure.mgmt.cognitiveservices.operations self, resource_group_name: str, account_name: str, - account: JSON, + account: Account, *, content_type: str = "application/json", **kwargs: Any @@ -8935,7 +9339,7 @@ namespace azure.mgmt.cognitiveservices.operations self, resource_group_name: str, account_name: str, - body: JSON, + body: EvaluateDeploymentPoliciesRequest, *, content_type: str = "application/json", **kwargs: Any @@ -9020,7 +9424,7 @@ namespace azure.mgmt.cognitiveservices.operations self, resource_group_name: str, account_name: str, - parameters: JSON, + parameters: RegenerateKeyParameters, *, content_type: str = "application/json", **kwargs: Any @@ -9066,7 +9470,7 @@ namespace azure.mgmt.cognitiveservices.operations account_name: str, project_name: str, name: str, - body: JSON, + body: AgentApplication, *, content_type: str = "application/json", **kwargs: Any @@ -9183,7 +9587,7 @@ namespace azure.mgmt.cognitiveservices.operations project_name: str, app_name: str, deployment_name: str, - body: JSON, + body: AgentDeployment, *, content_type: str = "application/json", **kwargs: Any @@ -9264,7 +9668,7 @@ namespace azure.mgmt.cognitiveservices.operations ) -> None: ... - class azure.mgmt.cognitiveservices.operations.CommitmentPlansOperations: + class azure.mgmt.cognitiveservices.operations.ArcDeploymentsOperations: def __init__( self, @@ -9273,12 +9677,122 @@ namespace azure.mgmt.cognitiveservices.operations ) -> None: ... @overload - def begin_create_or_update_association( + def begin_create_or_update( self, resource_group_name: str, - commitment_plan_name: str, - commitment_plan_association_name: str, - association: CommitmentPlanAccountAssociation, + account_name: str, + deployment_name: str, + resource: ArcDeployment, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[ArcDeployment]: ... + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + account_name: str, + deployment_name: str, + resource: ArcDeployment, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[ArcDeployment]: ... + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + account_name: str, + deployment_name: str, + resource: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[ArcDeployment]: ... + + @distributed_trace + @api_version_validation(method_added_on='2026-07-15-preview', params_added_on={'2026-07-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'deployment_name']}, api_versions_list=['2026-07-15-preview']) + def begin_delete( + self, + resource_group_name: str, + account_name: str, + deployment_name: str, + **kwargs: Any + ) -> LROPoller[None]: ... + + @overload + def begin_update( + self, + resource_group_name: str, + account_name: str, + deployment_name: str, + properties: ArcDeploymentUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[ArcDeployment]: ... + + @overload + def begin_update( + self, + resource_group_name: str, + account_name: str, + deployment_name: str, + properties: ArcDeploymentUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[ArcDeployment]: ... + + @overload + def begin_update( + self, + resource_group_name: str, + account_name: str, + deployment_name: str, + properties: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[ArcDeployment]: ... + + @distributed_trace + @api_version_validation(method_added_on='2026-07-15-preview', params_added_on={'2026-07-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'deployment_name', 'accept']}, api_versions_list=['2026-07-15-preview']) + def get( + self, + resource_group_name: str, + account_name: str, + deployment_name: str, + **kwargs: Any + ) -> ArcDeployment: ... + + @distributed_trace + @api_version_validation(method_added_on='2026-07-15-preview', params_added_on={'2026-07-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'accept']}, api_versions_list=['2026-07-15-preview']) + def list( + self, + resource_group_name: str, + account_name: str, + **kwargs: Any + ) -> ItemPaged[ArcDeployment]: ... + + + class azure.mgmt.cognitiveservices.operations.CommitmentPlansOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @overload + def begin_create_or_update_association( + self, + resource_group_name: str, + commitment_plan_name: str, + commitment_plan_association_name: str, + association: CommitmentPlanAccountAssociation, *, content_type: str = "application/json", **kwargs: Any @@ -9290,7 +9804,7 @@ namespace azure.mgmt.cognitiveservices.operations resource_group_name: str, commitment_plan_name: str, commitment_plan_association_name: str, - association: JSON, + association: CommitmentPlanAccountAssociation, *, content_type: str = "application/json", **kwargs: Any @@ -9324,7 +9838,7 @@ namespace azure.mgmt.cognitiveservices.operations self, resource_group_name: str, commitment_plan_name: str, - commitment_plan: JSON, + commitment_plan: CommitmentPlan, *, content_type: str = "application/json", **kwargs: Any @@ -9383,7 +9897,7 @@ namespace azure.mgmt.cognitiveservices.operations self, resource_group_name: str, commitment_plan_name: str, - commitment_plan: JSON, + commitment_plan: PatchResourceTagsAndSku, *, content_type: str = "application/json", **kwargs: Any @@ -9418,7 +9932,7 @@ namespace azure.mgmt.cognitiveservices.operations resource_group_name: str, account_name: str, commitment_plan_name: str, - commitment_plan: JSON, + commitment_plan: CommitmentPlan, *, content_type: str = "application/json", **kwargs: Any @@ -9514,7 +10028,7 @@ namespace azure.mgmt.cognitiveservices.operations ) -> None: ... @distributed_trace - @api_version_validation(method_added_on='2026-01-15-preview', params_added_on={'2026-01-15-preview': ['api_version', 'subscription_id', 'location', 'operation_id', 'accept']}, api_versions_list=['2026-01-15-preview', '2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-01-15-preview', params_added_on={'2026-01-15-preview': ['api_version', 'subscription_id', 'location', 'operation_id', 'accept']}, api_versions_list=['2026-01-15-preview', '2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) def get( self, location: str, @@ -9523,7 +10037,7 @@ namespace azure.mgmt.cognitiveservices.operations ) -> ComputeOperationStatus: ... - class azure.mgmt.cognitiveservices.operations.ComputesOperations(_ComputesOperationsGenerated): + class azure.mgmt.cognitiveservices.operations.ComputesOperations: def __init__( self, @@ -9541,7 +10055,7 @@ namespace azure.mgmt.cognitiveservices.operations *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[Compute]: ... + ) -> LROPoller[None]: ... @overload def begin_create_or_update( @@ -9549,11 +10063,11 @@ namespace azure.mgmt.cognitiveservices.operations resource_group_name: str, account_name: str, compute_name: str, - resource: JSON, + resource: Compute, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[Compute]: ... + ) -> LROPoller[None]: ... @overload def begin_create_or_update( @@ -9565,10 +10079,10 @@ namespace azure.mgmt.cognitiveservices.operations *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[Compute]: ... + ) -> LROPoller[None]: ... @distributed_trace - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'compute_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'compute_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) def begin_delete( self, resource_group_name: str, @@ -9578,7 +10092,7 @@ namespace azure.mgmt.cognitiveservices.operations ) -> LROPoller[None]: ... @distributed_trace - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'compute_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'compute_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) def begin_restart( self, resource_group_name: str, @@ -9588,7 +10102,7 @@ namespace azure.mgmt.cognitiveservices.operations ) -> LROPoller[None]: ... @distributed_trace - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'compute_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'compute_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) def begin_start( self, resource_group_name: str, @@ -9598,7 +10112,7 @@ namespace azure.mgmt.cognitiveservices.operations ) -> LROPoller[None]: ... @distributed_trace - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'compute_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'compute_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) def begin_stop( self, resource_group_name: str, @@ -9607,44 +10121,8 @@ namespace azure.mgmt.cognitiveservices.operations **kwargs: Any ) -> LROPoller[None]: ... - @overload - def begin_update( - self, - resource_group_name: str, - account_name: str, - compute_name: str, - properties: Compute, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[Compute]: ... - - @overload - def begin_update( - self, - resource_group_name: str, - account_name: str, - compute_name: str, - properties: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[Compute]: ... - - @overload - def begin_update( - self, - resource_group_name: str, - account_name: str, - compute_name: str, - properties: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[Compute]: ... - @distributed_trace - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'compute_name', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'compute_name', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) def get( self, resource_group_name: str, @@ -9654,7 +10132,7 @@ namespace azure.mgmt.cognitiveservices.operations ) -> Compute: ... @distributed_trace - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) def list( self, resource_group_name: str, @@ -9689,7 +10167,7 @@ namespace azure.mgmt.cognitiveservices.operations resource_group_name: str, account_name: str, defender_for_ai_setting_name: str, - defender_for_ai_settings: JSON, + defender_for_ai_settings: DefenderForAISetting, *, content_type: str = "application/json", **kwargs: Any @@ -9742,7 +10220,7 @@ namespace azure.mgmt.cognitiveservices.operations resource_group_name: str, account_name: str, defender_for_ai_setting_name: str, - defender_for_ai_settings: JSON, + defender_for_ai_settings: DefenderForAISetting, *, content_type: str = "application/json", **kwargs: Any @@ -9817,7 +10295,7 @@ namespace azure.mgmt.cognitiveservices.operations resource_group_name: str, account_name: str, deployment_name: str, - deployment: JSON, + deployment: Deployment, *, content_type: str = "application/json", **kwargs: Any @@ -9862,7 +10340,7 @@ namespace azure.mgmt.cognitiveservices.operations resource_group_name: str, account_name: str, deployment_name: str, - deployment: JSON, + deployment: PatchResourceTagsAndSku, *, content_type: str = "application/json", **kwargs: Any @@ -9960,7 +10438,7 @@ namespace azure.mgmt.cognitiveservices.operations resource_group_name: str, account_name: str, encryption_scope_name: str, - encryption_scope: JSON, + encryption_scope: EncryptionScope, *, content_type: str = "application/json", **kwargs: Any @@ -10025,7 +10503,7 @@ namespace azure.mgmt.cognitiveservices.operations ) -> None: ... @distributed_trace - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'offer', 'accelerator_type', 'deployment_id', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'offer', 'accelerator_type', 'deployment_id', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) def list( self, *, @@ -10062,7 +10540,7 @@ namespace azure.mgmt.cognitiveservices.operations resource_group_name: str, account_name: str, deployment_name: str, - resource: JSON, + resource: ManagedComputeDeployment, *, content_type: str = "application/json", **kwargs: Any @@ -10081,7 +10559,7 @@ namespace azure.mgmt.cognitiveservices.operations ) -> LROPoller[ManagedComputeDeployment]: ... @distributed_trace - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'deployment_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'deployment_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) def begin_delete( self, resource_group_name: str, @@ -10108,7 +10586,7 @@ namespace azure.mgmt.cognitiveservices.operations resource_group_name: str, account_name: str, deployment_name: str, - properties: JSON, + properties: PatchResourceSku, *, content_type: str = "application/json", **kwargs: Any @@ -10127,7 +10605,7 @@ namespace azure.mgmt.cognitiveservices.operations ) -> LROPoller[ManagedComputeDeployment]: ... @distributed_trace - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'deployment_name', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'deployment_name', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) def get( self, resource_group_name: str, @@ -10137,7 +10615,7 @@ namespace azure.mgmt.cognitiveservices.operations ) -> ManagedComputeDeployment: ... @distributed_trace - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) def list( self, resource_group_name: str, @@ -10155,7 +10633,7 @@ namespace azure.mgmt.cognitiveservices.operations ) -> None: ... @distributed_trace - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'location', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'location', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) def list( self, location: str, @@ -10189,7 +10667,7 @@ namespace azure.mgmt.cognitiveservices.operations resource_group_name: str, account_name: str, managed_network_name: str, - body: Optional[JSON] = None, + body: Optional[ManagedNetworkProvisionOptions] = None, *, content_type: str = "application/json", **kwargs: Any @@ -10217,7 +10695,7 @@ namespace azure.mgmt.cognitiveservices.operations ) -> None: ... @distributed_trace - @api_version_validation(method_added_on='2026-01-15-preview', params_added_on={'2026-01-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'managed_network_name']}, api_versions_list=['2026-01-15-preview', '2026-03-01', '2026-03-15-preview', '2026-05-01', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-01-15-preview', params_added_on={'2026-01-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'managed_network_name']}, api_versions_list=['2026-01-15-preview', '2026-03-01', '2026-03-15-preview', '2026-05-01', '2026-05-15-preview', '2026-07-01', '2026-07-15-preview']) def begin_delete( self, resource_group_name: str, @@ -10244,7 +10722,7 @@ namespace azure.mgmt.cognitiveservices.operations resource_group_name: str, account_name: str, managed_network_name: str, - body: Optional[JSON] = None, + body: Optional[ManagedNetworkSettingsPropertiesBasicResource] = None, *, content_type: str = "application/json", **kwargs: Any @@ -10280,7 +10758,7 @@ namespace azure.mgmt.cognitiveservices.operations resource_group_name: str, account_name: str, managed_network_name: str, - body: JSON, + body: ManagedNetworkSettingsPropertiesBasicResource, *, content_type: str = "application/json", **kwargs: Any @@ -10426,7 +10904,7 @@ namespace azure.mgmt.cognitiveservices.operations account_name: str, managed_network_name: str, rule_name: str, - body: JSON, + body: OutboundRuleBasicResource, *, content_type: str = "application/json", **kwargs: Any @@ -10501,7 +10979,7 @@ namespace azure.mgmt.cognitiveservices.operations resource_group_name: str, account_name: str, managed_network_name: str, - body: JSON, + body: ManagedNetworkSettingsBasicResource, *, content_type: str = "application/json", **kwargs: Any @@ -10546,7 +11024,7 @@ namespace azure.mgmt.cognitiveservices.operations resource_group_name: str, account_name: str, private_endpoint_connection_name: str, - properties: JSON, + properties: PrivateEndpointConnection, *, content_type: str = "application/json", **kwargs: Any @@ -10636,7 +11114,7 @@ namespace azure.mgmt.cognitiveservices.operations account_name: str, project_name: str, capability_host_name: str, - capability_host: JSON, + capability_host: ProjectCapabilityHost, *, content_type: str = "application/json", **kwargs: Any @@ -10713,7 +11191,7 @@ namespace azure.mgmt.cognitiveservices.operations account_name: str, project_name: str, connection_name: str, - connection: Optional[JSON] = None, + connection: Optional[ConnectionPropertiesV2BasicResource] = None, *, content_type: str = "application/json", **kwargs: Any @@ -10785,7 +11263,7 @@ namespace azure.mgmt.cognitiveservices.operations account_name: str, project_name: str, connection_name: str, - connection: Optional[JSON] = None, + connection: Optional[ConnectionUpdateContent] = None, *, content_type: str = "application/json", **kwargs: Any @@ -10831,7 +11309,7 @@ namespace azure.mgmt.cognitiveservices.operations resource_group_name: str, account_name: str, project_name: str, - project: JSON, + project: Project, *, content_type: str = "application/json", **kwargs: Any @@ -10876,7 +11354,7 @@ namespace azure.mgmt.cognitiveservices.operations resource_group_name: str, account_name: str, project_name: str, - project: JSON, + project: Project, *, content_type: str = "application/json", **kwargs: Any @@ -10934,7 +11412,7 @@ namespace azure.mgmt.cognitiveservices.operations def create_or_update( self, default: str, - tier: JSON, + tier: QuotaTier, *, content_type: str = "application/json", **kwargs: Any @@ -10974,7 +11452,7 @@ namespace azure.mgmt.cognitiveservices.operations def update( self, default: str, - tier: JSON, + tier: QuotaTier, *, content_type: str = "application/json", **kwargs: Any @@ -11017,7 +11495,7 @@ namespace azure.mgmt.cognitiveservices.operations resource_group_name: str, account_name: str, rai_blocklist_name: str, - rai_blocklist_items: List[JSON], + rai_blocklist_items: List[RaiBlocklistItemBulkRequest], *, content_type: str = "application/json", **kwargs: Any @@ -11089,7 +11567,7 @@ namespace azure.mgmt.cognitiveservices.operations account_name: str, rai_blocklist_name: str, rai_blocklist_item_name: str, - rai_blocklist_item: JSON, + rai_blocklist_item: RaiBlocklistItem, *, content_type: str = "application/json", **kwargs: Any @@ -11163,7 +11641,7 @@ namespace azure.mgmt.cognitiveservices.operations resource_group_name: str, account_name: str, rai_blocklist_name: str, - rai_blocklist: JSON, + rai_blocklist: RaiBlocklist, *, content_type: str = "application/json", **kwargs: Any @@ -11252,7 +11730,7 @@ namespace azure.mgmt.cognitiveservices.operations def create_or_update( self, safety_provider_name: str, - safety_provider: JSON, + safety_provider: RaiExternalSafetyProviderSchema, *, content_type: str = "application/json", **kwargs: Any @@ -11323,7 +11801,7 @@ namespace azure.mgmt.cognitiveservices.operations resource_group_name: str, account_name: str, rai_policy_name: str, - rai_policy: JSON, + rai_policy: RaiPolicy, *, content_type: str = "application/json", **kwargs: Any @@ -11394,7 +11872,7 @@ namespace azure.mgmt.cognitiveservices.operations resource_group_name: str, account_name: str, rai_tool_connection_name: str, - rai_tool_label: JSON, + rai_tool_label: RaiToolLabel, *, content_type: str = "application/json", **kwargs: Any @@ -11465,7 +11943,7 @@ namespace azure.mgmt.cognitiveservices.operations resource_group_name: str, account_name: str, rai_topic_name: str, - rai_topic: JSON, + rai_topic: RaiTopic, *, content_type: str = "application/json", **kwargs: Any @@ -11542,7 +12020,7 @@ namespace azure.mgmt.cognitiveservices.operations def create_or_update( self, rai_policy_name: str, - rai_policy: JSON, + rai_policy: RaiPolicy, *, content_type: str = "application/json", **kwargs: Any @@ -11592,7 +12070,7 @@ namespace azure.mgmt.cognitiveservices.operations resource_group_name: str, account_name: str, safety_provider_name: str, - safety_provider: JSON, + safety_provider: RaiExternalSafetyProviderSchema, *, content_type: str = "application/json", **kwargs: Any @@ -11657,7 +12135,7 @@ namespace azure.mgmt.cognitiveservices.operations account_name: str, project_name: str, workbench_name: str, - resource: JSON, + resource: Workbench, *, content_type: str = "application/json", **kwargs: Any @@ -11677,7 +12155,7 @@ namespace azure.mgmt.cognitiveservices.operations ) -> LROPoller[Workbench]: ... @distributed_trace - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'project_name', 'workbench_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'project_name', 'workbench_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) def begin_delete( self, resource_group_name: str, @@ -11688,7 +12166,7 @@ namespace azure.mgmt.cognitiveservices.operations ) -> LROPoller[None]: ... @distributed_trace - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'project_name', 'workbench_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'project_name', 'workbench_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) def begin_restart( self, resource_group_name: str, @@ -11699,7 +12177,7 @@ namespace azure.mgmt.cognitiveservices.operations ) -> LROPoller[None]: ... @distributed_trace - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'project_name', 'workbench_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'project_name', 'workbench_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) def begin_start( self, resource_group_name: str, @@ -11710,7 +12188,7 @@ namespace azure.mgmt.cognitiveservices.operations ) -> LROPoller[None]: ... @distributed_trace - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'project_name', 'workbench_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'project_name', 'workbench_name']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) def begin_stop( self, resource_group_name: str, @@ -11740,7 +12218,7 @@ namespace azure.mgmt.cognitiveservices.operations account_name: str, project_name: str, workbench_name: str, - properties: JSON, + properties: Workbench, *, content_type: str = "application/json", **kwargs: Any @@ -11760,7 +12238,7 @@ namespace azure.mgmt.cognitiveservices.operations ) -> LROPoller[Workbench]: ... @distributed_trace - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'project_name', 'workbench_name', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'project_name', 'workbench_name', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) def get( self, resource_group_name: str, @@ -11771,7 +12249,7 @@ namespace azure.mgmt.cognitiveservices.operations ) -> Workbench: ... @distributed_trace - @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'project_name', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview']) + @api_version_validation(method_added_on='2026-03-15-preview', params_added_on={'2026-03-15-preview': ['api_version', 'subscription_id', 'resource_group_name', 'account_name', 'project_name', 'accept']}, api_versions_list=['2026-03-15-preview', '2026-05-15-preview', '2026-07-15-preview']) def list( self, resource_group_name: str, @@ -11781,4 +12259,2345 @@ namespace azure.mgmt.cognitiveservices.operations ) -> ItemPaged[Workbench]: ... +namespace azure.mgmt.cognitiveservices.types + + class azure.mgmt.cognitiveservices.types.AADAuthTypeConnectionProperties(TypedDict, total=False): + key "authType": Required[Literal[ConnectionAuthType.AAD]] + key "category": Union[str, ConnectionCategory] + key "createdByWorkspaceArmId": str + key "error": str + key "expiryTime": str + key "group": Union[str, ConnectionGroup] + key "isSharedToAll": bool + key "peRequirement": Union[str, ManagedPERequirement] + key "peStatus": Union[str, ManagedPEStatus] + key "target": str + key "useWorkspaceManagedIdentity": bool + authType: Literal[ConnectionAuthType.AAD] + category: Union[str, ConnectionCategory] + createdByWorkspaceArmId: str + error: str + expiryTime: str + group: Union[str, ConnectionGroup] + isSharedToAll: bool + metadata: dict[str, str] + peRequirement: Union[str, ManagedPERequirement] + peStatus: Union[str, ManagedPEStatus] + sharedUserList: list[str] + target: str + useWorkspaceManagedIdentity: bool + + + class azure.mgmt.cognitiveservices.types.AbusePenalty(TypedDict, total=False): + key "action": Union[str, AbusePenaltyAction] + key "expiration": str + key "rateLimitPercentage": float + action: Union[str, AbusePenaltyAction] + expiration: str + rateLimitPercentage: float + + + class azure.mgmt.cognitiveservices.types.AccessKeyAuthTypeConnectionProperties(TypedDict, total=False): + key "authType": Required[Literal[ConnectionAuthType.ACCESS_KEY]] + key "category": Union[str, ConnectionCategory] + key "createdByWorkspaceArmId": str + key "credentials": ForwardRef('ConnectionAccessKey', module='types') + key "error": str + key "expiryTime": str + key "group": Union[str, ConnectionGroup] + key "isSharedToAll": bool + key "peRequirement": Union[str, ManagedPERequirement] + key "peStatus": Union[str, ManagedPEStatus] + key "target": str + key "useWorkspaceManagedIdentity": bool + authType: Literal[ConnectionAuthType.ACCESS_KEY] + category: Union[str, ConnectionCategory] + createdByWorkspaceArmId: str + credentials: ConnectionAccessKey + error: str + expiryTime: str + group: Union[str, ConnectionGroup] + isSharedToAll: bool + metadata: dict[str, str] + peRequirement: Union[str, ManagedPERequirement] + peStatus: Union[str, ManagedPEStatus] + sharedUserList: list[str] + target: str + useWorkspaceManagedIdentity: bool + + + class azure.mgmt.cognitiveservices.types.Account(ProxyResource): + key "etag": str + key "id": str + key "identity": ForwardRef('Identity', module='types') + key "kind": str + key "location": str + key "name": str + key "properties": ForwardRef('AccountProperties', module='types') + key "sku": ForwardRef('Sku', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + identity: Identity + kind: str + location: str + name: str + properties: AccountProperties + sku: Sku + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.cognitiveservices.types.AccountKeyAuthTypeConnectionProperties(TypedDict, total=False): + key "authType": Required[Literal[ConnectionAuthType.ACCOUNT_KEY]] + key "category": Union[str, ConnectionCategory] + key "createdByWorkspaceArmId": str + key "credentials": ForwardRef('ConnectionAccountKey', module='types') + key "error": str + key "expiryTime": str + key "group": Union[str, ConnectionGroup] + key "isSharedToAll": bool + key "peRequirement": Union[str, ManagedPERequirement] + key "peStatus": Union[str, ManagedPEStatus] + key "target": str + key "useWorkspaceManagedIdentity": bool + authType: Literal[ConnectionAuthType.ACCOUNT_KEY] + category: Union[str, ConnectionCategory] + createdByWorkspaceArmId: str + credentials: ConnectionAccountKey + error: str + expiryTime: str + group: Union[str, ConnectionGroup] + isSharedToAll: bool + metadata: dict[str, str] + peRequirement: Union[str, ManagedPERequirement] + peStatus: Union[str, ManagedPEStatus] + sharedUserList: list[str] + target: str + useWorkspaceManagedIdentity: bool + + + class azure.mgmt.cognitiveservices.types.AccountProperties(TypedDict, total=False): + key "a365LoggingEnabled": bool + key "abusePenalty": ForwardRef('AbusePenalty', module='types') + key "allowProjectManagement": bool + key "amlWorkspace": ForwardRef('UserOwnedAmlWorkspace', module='types') + key "apiProperties": ForwardRef('ApiProperties', module='types') + key "callRateLimit": ForwardRef('CallRateLimit', module='types') + key "capabilitySettings": ForwardRef('CapabilitySettings', module='types') + key "customSubDomainName": str + key "dateCreated": str + key "defaultProject": str + key "deletionDate": str + key "disableLocalAuth": bool + key "dynamicThrottlingEnabled": bool + key "encryption": ForwardRef('Encryption', module='types') + key "endpoint": str + key "foundryAutoUpgrade": ForwardRef('FoundryAutoUpgrade', module='types') + key "internalId": str + key "isMigrated": bool + key "locations": ForwardRef('MultiRegionSettings', module='types') + key "migrationToken": str + key "networkAcls": ForwardRef('NetworkRuleSet', module='types') + key "provisioningState": Union[str, ProvisioningState] + key "publicNetworkAccess": Union[str, PublicNetworkAccess] + key "quotaLimit": ForwardRef('QuotaLimit', module='types') + key "raiMonitorConfig": ForwardRef('RaiMonitorConfig', module='types') + key "restore": bool + key "restrictOutboundNetworkAccess": bool + key "scheduledPurgeDate": str + key "skuChangeInfo": ForwardRef('SkuChangeInfo', module='types') + key "storedCompletionsDisabled": bool + a365LoggingEnabled: bool + abusePenalty: AbusePenalty + agentHostingConfigurations: list[AgentHostingConfiguration] + allowProjectManagement: bool + allowedFqdnList: list[str] + amlWorkspace: UserOwnedAmlWorkspace + apiProperties: ApiProperties + associatedProjects: list[str] + callRateLimit: CallRateLimit + capabilities: list[SkuCapability] + capabilitySettings: CapabilitySettings + commitmentPlanAssociations: list[CommitmentPlanAssociation] + customSubDomainName: str + dateCreated: str + defaultProject: str + deletionDate: str + disableLocalAuth: bool + dynamicThrottlingEnabled: bool + encryption: Encryption + endpoint: str + endpoints: dict[str, str] + foundryAutoUpgrade: FoundryAutoUpgrade + internalId: str + isMigrated: bool + locations: MultiRegionSettings + migrationToken: str + networkAcls: NetworkRuleSet + networkInjections: list[NetworkInjection] + privateEndpointConnections: list[PrivateEndpointConnection] + provisioningState: Union[str, ProvisioningState] + publicNetworkAccess: Union[str, PublicNetworkAccess] + quotaLimit: QuotaLimit + raiMonitorConfig: RaiMonitorConfig + restore: bool + restrictOutboundNetworkAccess: bool + scheduledPurgeDate: str + skuChangeInfo: SkuChangeInfo + storedCompletionsDisabled: bool + userOwnedStorage: list[UserOwnedStorage] + + + class azure.mgmt.cognitiveservices.types.AgentApplication(ProxyResource): + key "id": str + key "name": str + key "properties": Required[AgenticApplicationProperties] + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + name: str + properties: AgenticApplicationProperties + systemData: SystemData + type: str + + + class azure.mgmt.cognitiveservices.types.AgentDeployment(ProxyResource): + key "id": str + key "name": str + key "properties": Required[AgentDeploymentProperties] + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + name: str + properties: AgentDeploymentProperties + systemData: SystemData + type: str + + + class azure.mgmt.cognitiveservices.types.AgentDeploymentType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + CUSTOM = "Custom" + HOSTED = "Hosted" + MANAGED = "Managed" + + + class azure.mgmt.cognitiveservices.types.AgentHostingConfiguration(TypedDict, total=False): + key "clusterResourceId": Required[str] + key "hostingManagementIdentityResourceId": Required[str] + key "hostingType": Required[Literal[AgentHostingType.MANAGED_CLUSTER]] + key "name": Required[str] + key "storageAccountResourceId": Required[str] + key "workloadIdentityResourceId": Required[str] + clusterResourceId: str + hostingManagementIdentityResourceId: str + hostingType: Literal[AgentHostingType.MANAGED_CLUSTER] + name: str + storageAccountResourceId: str + workloadIdentityResourceId: str + + + class azure.mgmt.cognitiveservices.types.AgentHostingType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + MANAGED_CLUSTER = "ManagedCluster" + + + class azure.mgmt.cognitiveservices.types.AgentProtocolVersion(TypedDict, total=False): + key "protocol": Union[str, AgentProtocol] + key "version": Optional[str] + protocol: Union[str, AgentProtocol] + version: str + + + class azure.mgmt.cognitiveservices.types.AgentReferenceProperties(TypedDict, total=False): + key "agentId": Optional[str] + key "agentName": Optional[str] + agentId: str + agentName: str + + + class azure.mgmt.cognitiveservices.types.AgenticApplicationProperties(ResourceBase): + key "agentIdentityBlueprint": Optional[AssignedIdentity] + key "agents": Optional[list[AgentReferenceProperties]] + key "authorizationPolicy": Optional[ApplicationAuthorizationPolicy] + key "baseUrl": Optional[str] + key "defaultInstanceIdentity": Optional[AssignedIdentity] + key "description": Optional[str] + key "displayName": Optional[str] + key "isEnabled": bool + key "provisioningState": Union[str, AgenticApplicationProvisioningState] + key "tags": Optional[dict[str, str]] + key "trafficRoutingPolicy": Optional[ApplicationTrafficRoutingPolicy] + agentIdentityBlueprint: AssignedIdentity + agents: list[AgentReferenceProperties] + authorizationPolicy: ApplicationAuthorizationPolicy + baseUrl: str + defaultInstanceIdentity: AssignedIdentity + description: str + displayName: str + isEnabled: bool + provisioningState: Union[str, AgenticApplicationProvisioningState] + tags: dict[str, str] + trafficRoutingPolicy: ApplicationTrafficRoutingPolicy + + + class azure.mgmt.cognitiveservices.types.ApiKeyAuthConnectionProperties(TypedDict, total=False): + key "authType": Required[Literal[ConnectionAuthType.API_KEY]] + key "category": Union[str, ConnectionCategory] + key "createdByWorkspaceArmId": str + key "credentials": ForwardRef('ConnectionApiKey', module='types') + key "error": str + key "expiryTime": str + key "group": Union[str, ConnectionGroup] + key "isSharedToAll": bool + key "peRequirement": Union[str, ManagedPERequirement] + key "peStatus": Union[str, ManagedPEStatus] + key "target": str + key "useWorkspaceManagedIdentity": bool + authType: Literal[ConnectionAuthType.API_KEY] + category: Union[str, ConnectionCategory] + createdByWorkspaceArmId: str + credentials: ConnectionApiKey + error: str + expiryTime: str + group: Union[str, ConnectionGroup] + isSharedToAll: bool + metadata: dict[str, str] + peRequirement: Union[str, ManagedPERequirement] + peStatus: Union[str, ManagedPEStatus] + sharedUserList: list[str] + target: str + useWorkspaceManagedIdentity: bool + + + class azure.mgmt.cognitiveservices.types.ApiProperties(TypedDict, total=False): + key "aadClientId": str + key "aadTenantId": str + key "eventHubConnectionString": str + key "qnaAzureSearchEndpointId": str + key "qnaAzureSearchEndpointKey": str + key "qnaRuntimeEndpoint": str + key "statisticsEnabled": bool + key "storageAccountConnectionString": str + key "superUser": str + key "websiteName": str + aadClientId: str + aadTenantId: str + eventHubConnectionString: str + qnaAzureSearchEndpointId: str + qnaAzureSearchEndpointKey: str + qnaRuntimeEndpoint: str + statisticsEnabled: bool + storageAccountConnectionString: str + superUser: str + websiteName: str + + + class azure.mgmt.cognitiveservices.types.ApplicationTrafficRoutingPolicy(TypedDict, total=False): + key "protocol": Union[str, TrafficRoutingProtocol] + key "rules": Optional[list[TrafficRoutingRule]] + protocol: Union[str, TrafficRoutingProtocol] + rules: list[TrafficRoutingRule] + + + class azure.mgmt.cognitiveservices.types.ArcDeployment(ProxyResource): + key "etag": str + key "id": str + key "name": str + key "properties": Required[ArcDeploymentProperties] + key "sku": Required[ArcDeploymentSku] + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + name: str + properties: ArcDeploymentProperties + sku: ArcDeploymentSku + systemData: SystemData + type: str + + + class azure.mgmt.cognitiveservices.types.ArcDeploymentCpuMemoryResourceRequirements(TypedDict, total=False): + key "cpu": Required[str] + key "memory": Required[str] + cpu: str + memory: str + + + class azure.mgmt.cognitiveservices.types.ArcDeploymentKubernetesResources(TypedDict, total=False): + key "limits": ForwardRef('ArcDeploymentResourceRequirements', module='types') + key "requests": ForwardRef('ArcDeploymentCpuMemoryResourceRequirements', module='types') + limits: ArcDeploymentResourceRequirements + requests: ArcDeploymentCpuMemoryResourceRequirements + + + class azure.mgmt.cognitiveservices.types.ArcDeploymentModel(TypedDict, total=False): + key "format": Required[str] + key "name": Required[str] + format: str + name: str + + + class azure.mgmt.cognitiveservices.types.ArcDeploymentPatchCpuMemoryResourceRequirements(TypedDict, total=False): + key "cpu": str + key "memory": str + cpu: str + memory: str + + + class azure.mgmt.cognitiveservices.types.ArcDeploymentPatchKubernetesResources(TypedDict, total=False): + key "limits": ForwardRef('ArcDeploymentResourceRequirements', module='types') + key "requests": ForwardRef('ArcDeploymentPatchCpuMemoryResourceRequirements', module='types') + limits: ArcDeploymentResourceRequirements + requests: ArcDeploymentPatchCpuMemoryResourceRequirements + + + class azure.mgmt.cognitiveservices.types.ArcDeploymentProperties(TypedDict, total=False): + key "compute": Required[Union[str, ArcDeploymentComputeType]] + key "deploymentState": Union[str, DeploymentState] + key "deploymentTemplate": str + key "extensionId": Required[str] + key "inferenceEndpoint": str + key "model": Required[ArcDeploymentModel] + key "provisioningDetails": ForwardRef('ArcDeploymentProvisioningDetails', module='types') + key "provisioningState": Union[str, ProvisioningState] + key "raiPolicyName": str + key "replicas": Required[int] + key "resources": Required[ArcDeploymentKubernetesResources] + key "runtime": Required[Union[str, ArcDeploymentRuntime]] + key "vllmParameters": ForwardRef('ArcDeploymentVllmParameters', module='types') + capabilities: dict[str, str] + compute: Union[str, ArcDeploymentComputeType] + deploymentState: Union[str, DeploymentState] + deploymentTemplate: str + extensionId: str + inferenceEndpoint: str + model: ArcDeploymentModel + nodeSelector: dict[str, str] + provisioningDetails: ArcDeploymentProvisioningDetails + provisioningState: Union[str, ProvisioningState] + raiPolicyName: str + replicas: int + resources: ArcDeploymentKubernetesResources + runtime: Union[str, ArcDeploymentRuntime] + vllmParameters: ArcDeploymentVllmParameters + + + class azure.mgmt.cognitiveservices.types.ArcDeploymentProvisioningDetails(TypedDict, total=False): + key "lastOperationTimestamp": str + key "message": str + lastOperationTimestamp: str + message: str + + + class azure.mgmt.cognitiveservices.types.ArcDeploymentResourceRequirements(TypedDict, total=False): + key "cpu": str + key "gpu": int + key "memory": str + cpu: str + gpu: int + memory: str + + + class azure.mgmt.cognitiveservices.types.ArcDeploymentSku(TypedDict, total=False): + key "name": Required[Union[str, ArcDeploymentSkuName]] + name: Union[str, ArcDeploymentSkuName] + + + class azure.mgmt.cognitiveservices.types.ArcDeploymentUpdate(TypedDict, total=False): + key "properties": ForwardRef('ArcDeploymentUpdateProperties', module='types') + properties: ArcDeploymentUpdateProperties + + + class azure.mgmt.cognitiveservices.types.ArcDeploymentUpdateProperties(TypedDict, total=False): + key "replicas": int + key "resources": ForwardRef('ArcDeploymentPatchKubernetesResources', module='types') + nodeSelector: dict[str, str] + replicas: int + resources: ArcDeploymentPatchKubernetesResources + + + class azure.mgmt.cognitiveservices.types.ArcDeploymentVllmParameters(TypedDict, total=False): + key "enforceEager": bool + key "gpuMemoryUtilization": float + key "maxModelLen": int + key "tensorParallelSize": int + enforceEager: bool + gpuMemoryUtilization: float + maxModelLen: int + tensorParallelSize: int + + + class azure.mgmt.cognitiveservices.types.AssignedIdentity(TypedDict, total=False): + key "clientId": Required[str] + key "kind": Required[Union[str, IdentityKind]] + key "principalId": Required[str] + key "provisioningState": Union[str, IdentityProvisioningState] + key "subject": Optional[str] + key "tenantId": Required[str] + key "type": Required[Union[str, IdentityManagementType]] + clientId: str + kind: Union[str, IdentityKind] + principalId: str + provisioningState: Union[str, IdentityProvisioningState] + subject: str + tenantId: str + type: Union[str, IdentityManagementType] + + + class azure.mgmt.cognitiveservices.types.BuiltInAuthorizationScheme(str, Enum, metaclass=CaseInsensitiveEnumMeta): + CHANNELS = "Channels" + CUSTOM = "Custom" + DEFAULT = "Default" + ORGANIZATION_SCOPE = "OrganizationScope" + + + class azure.mgmt.cognitiveservices.types.CalculateModelCapacityParameter(TypedDict, total=False): + key "model": ForwardRef('DeploymentModel', module='types') + key "skuName": str + model: DeploymentModel + skuName: str + workloads: list[ModelCapacityCalculatorWorkload] + + + class azure.mgmt.cognitiveservices.types.CallRateLimit(TypedDict, total=False): + key "count": float + key "renewalPeriod": float + count: float + renewalPeriod: float + rules: list[ThrottlingRule] + + + class azure.mgmt.cognitiveservices.types.CapabilityHost(ProxyResource): + key "id": str + key "name": str + key "properties": Required[CapabilityHostProperties] + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + name: str + properties: CapabilityHostProperties + systemData: SystemData + type: str + + + class azure.mgmt.cognitiveservices.types.CapabilityHostProperties(ResourceBase): + key "aiServicesConnections": Optional[list[str]] + key "capabilityHostKind": Union[str, CapabilityHostKind] + key "customerSubnet": Optional[str] + key "description": Optional[str] + key "enablePublicHostingEnvironment": bool + key "provisioningState": Union[str, CapabilityHostProvisioningState] + key "storageConnections": Optional[list[str]] + key "tags": Optional[dict[str, str]] + key "threadStorageConnections": Optional[list[str]] + key "vectorStoreConnections": Optional[list[str]] + aiServicesConnections: list[str] + capabilityHostKind: Union[str, CapabilityHostKind] + customerSubnet: str + description: str + enablePublicHostingEnvironment: bool + provisioningState: Union[str, CapabilityHostProvisioningState] + storageConnections: list[str] + tags: dict[str, str] + threadStorageConnections: list[str] + vectorStoreConnections: list[str] + + + class azure.mgmt.cognitiveservices.types.CapabilitySettings(TypedDict, total=False): + key "blobStore": str + key "documentStore": str + key "vectorStore": str + blobStore: str + documentStore: str + vectorStore: str + + + class azure.mgmt.cognitiveservices.types.ChannelsBuiltInAuthorizationPolicy(TypedDict, total=False): + key "type": Required[Literal[BuiltInAuthorizationScheme.CHANNELS]] + type: Literal[BuiltInAuthorizationScheme.CHANNELS] + + + class azure.mgmt.cognitiveservices.types.CheckDomainAvailabilityParameter(TypedDict, total=False): + key "kind": str + key "subdomainName": Required[str] + key "type": Required[str] + kind: str + subdomainName: str + type: str + + + class azure.mgmt.cognitiveservices.types.CheckSkuAvailabilityParameter(TypedDict, total=False): + key "kind": Required[str] + key "skus": Required[list[str]] + key "type": Required[str] + kind: str + skus: list[str] + type: str + + + class azure.mgmt.cognitiveservices.types.ClusterComputeProperties(TypedDict, total=False): + key "computeType": Required[Literal[ComputeType.CLUSTER]] + key "creationTime": str + key "location": Required[str] + key "pools": Required[list[Pool]] + key "provisioningState": Union[str, ComputeProvisioningState] + key "subnetArmId": str + computeType: Literal[ComputeType.CLUSTER] + creationTime: str + errors: list[ErrorDetail] + location: str + pools: list[Pool] + provisioningState: Union[str, ComputeProvisioningState] + subnetArmId: str + + + class azure.mgmt.cognitiveservices.types.CommitmentPeriod(TypedDict, total=False): + key "count": int + key "endDate": str + key "quota": ForwardRef('CommitmentQuota', module='types') + key "startDate": str + key "tier": str + count: int + endDate: str + quota: CommitmentQuota + startDate: str + tier: str + + + class azure.mgmt.cognitiveservices.types.CommitmentPlan(ProxyResource): + key "etag": str + key "id": str + key "kind": str + key "location": str + key "name": str + key "properties": ForwardRef('CommitmentPlanProperties', module='types') + key "sku": ForwardRef('Sku', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + kind: str + location: str + name: str + properties: CommitmentPlanProperties + sku: Sku + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.cognitiveservices.types.CommitmentPlanAccountAssociation(ProxyResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('CommitmentPlanAccountAssociationProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + name: str + properties: CommitmentPlanAccountAssociationProperties + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.cognitiveservices.types.CommitmentPlanAccountAssociationProperties(TypedDict, total=False): + key "accountId": str + accountId: str + + + class azure.mgmt.cognitiveservices.types.CommitmentPlanAssociation(TypedDict, total=False): + key "commitmentPlanId": str + key "commitmentPlanLocation": str + commitmentPlanId: str + commitmentPlanLocation: str + + + class azure.mgmt.cognitiveservices.types.CommitmentPlanProperties(TypedDict, total=False): + key "autoRenew": bool + key "commitmentPlanGuid": str + key "current": ForwardRef('CommitmentPeriod', module='types') + key "hostingModel": Union[str, HostingModel] + key "last": ForwardRef('CommitmentPeriod', module='types') + key "next": ForwardRef('CommitmentPeriod', module='types') + key "planType": str + key "provisioningState": Union[str, CommitmentPlanProvisioningState] + autoRenew: bool + commitmentPlanGuid: str + current: CommitmentPeriod + hostingModel: Union[str, HostingModel] + last: CommitmentPeriod + next: CommitmentPeriod + planType: str + provisioningIssues: list[str] + provisioningState: Union[str, CommitmentPlanProvisioningState] + + + class azure.mgmt.cognitiveservices.types.CommitmentQuota(TypedDict, total=False): + key "quantity": int + key "unit": str + quantity: int + unit: str + + + class azure.mgmt.cognitiveservices.types.Compute(ProxyResource): + key "etag": str + key "id": str + key "identity": ForwardRef('Identity', module='types') + key "kind": str + key "name": str + key "properties": Required[ComputeProperties] + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + identity: Identity + kind: str + name: str + properties: ComputeProperties + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.cognitiveservices.types.ComputeType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + CLUSTER = "Cluster" + CONTAINER_INSTANCE = "ContainerInstance" + + + class azure.mgmt.cognitiveservices.types.ConnectionAccessKey(TypedDict, total=False): + key "accessKeyId": str + key "secretAccessKey": str + accessKeyId: str + secretAccessKey: str + + + class azure.mgmt.cognitiveservices.types.ConnectionAccountKey(TypedDict, total=False): + key "key": str + key: str + + + class azure.mgmt.cognitiveservices.types.ConnectionApiKey(TypedDict, total=False): + key "key": str + key: str + + + class azure.mgmt.cognitiveservices.types.ConnectionAuthType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + AAD = "AAD" + ACCESS_KEY = "AccessKey" + ACCOUNT_KEY = "AccountKey" + ACCOUNT_MANAGED_IDENTITY = "AccountManagedIdentity" + AGENTIC_IDENTITY_TOKEN = "AgenticIdentityToken" + AGENTIC_USER = "AgenticUser" + AGENT_USER_IMPERSONATION = "AgentUserImpersonation" + API_KEY = "ApiKey" + CUSTOM_KEYS = "CustomKeys" + DELEGATED_SAS = "DelegatedSAS" + MANAGED_IDENTITY = "ManagedIdentity" + NONE = "None" + O_AUTH2 = "OAuth2" + PAT = "PAT" + PROJECT_MANAGED_IDENTITY = "ProjectManagedIdentity" + SAS = "SAS" + SERVICE_PRINCIPAL = "ServicePrincipal" + USERNAME_PASSWORD = "UsernamePassword" + USER_ENTRA_TOKEN = "UserEntraToken" + + + class azure.mgmt.cognitiveservices.types.ConnectionManagedIdentity(TypedDict, total=False): + key "clientId": str + key "resourceId": str + clientId: str + resourceId: str + + + class azure.mgmt.cognitiveservices.types.ConnectionOAuth2(TypedDict, total=False): + key "authUrl": str + key "clientId": str + key "clientSecret": str + key "developerToken": str + key "password": str + key "refreshToken": str + key "tenantId": str + key "username": str + authUrl: str + clientId: str + clientSecret: str + developerToken: str + password: str + refreshToken: str + tenantId: str + username: str + + + class azure.mgmt.cognitiveservices.types.ConnectionPersonalAccessToken(TypedDict, total=False): + key "pat": str + pat: str + + + class azure.mgmt.cognitiveservices.types.ConnectionPropertiesV2BasicResource(ProxyResource): + key "id": str + key "name": str + key "properties": Required[ConnectionPropertiesV2] + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + name: str + properties: ConnectionPropertiesV2 + systemData: SystemData + type: str + + + class azure.mgmt.cognitiveservices.types.ConnectionServicePrincipal(TypedDict, total=False): + key "clientId": str + key "clientSecret": str + key "tenantId": str + clientId: str + clientSecret: str + tenantId: str + + + class azure.mgmt.cognitiveservices.types.ConnectionSharedAccessSignature(TypedDict, total=False): + key "sas": str + sas: str + + + class azure.mgmt.cognitiveservices.types.ConnectionUpdateContent(TypedDict, total=False): + key "properties": ForwardRef('ConnectionPropertiesV2', module='types') + properties: ConnectionPropertiesV2 + + + class azure.mgmt.cognitiveservices.types.ConnectionUsernamePassword(TypedDict, total=False): + key "password": str + key "securityToken": str + key "username": str + password: str + securityToken: str + username: str + + + class azure.mgmt.cognitiveservices.types.ConnectivityEndpoints(TypedDict, total=False): + key "publicIpAddress": str + key "sshPort": int + publicIpAddress: str + sshPort: int + + + class azure.mgmt.cognitiveservices.types.ContainerInstanceComputeProperties(TypedDict, total=False): + key "computeType": Required[Literal[ComputeType.CONTAINER_INSTANCE]] + key "connectivityEndpoints": ForwardRef('ConnectivityEndpoints', module='types') + key "creationTime": str + key "idleTimeBeforeShutdown": str + key "imageLink": Required[str] + key "location": Required[str] + key "provisioningState": Union[str, ComputeProvisioningState] + key "sshSettings": ForwardRef('SshSettings', module='types') + key "targetClusterId": Required[str] + computeType: Literal[ComputeType.CONTAINER_INSTANCE] + connectivityEndpoints: ConnectivityEndpoints + creationTime: str + errors: list[ErrorDetail] + idleTimeBeforeShutdown: str + imageLink: str + location: str + provisioningState: Union[str, ComputeProvisioningState] + sshSettings: SshSettings + targetClusterId: str + + + class azure.mgmt.cognitiveservices.types.CustomBlocklistConfig(RaiBlocklistConfig): + key "blocking": bool + key "blocklistName": str + key "source": Union[str, RaiPolicyContentSource] + blocking: bool + blocklistName: str + source: Union[str, RaiPolicyContentSource] + + + class azure.mgmt.cognitiveservices.types.CustomKeys(TypedDict, total=False): + keys: dict[str, str] + + + class azure.mgmt.cognitiveservices.types.CustomKeysConnectionProperties(TypedDict, total=False): + key "authType": Required[Literal[ConnectionAuthType.CUSTOM_KEYS]] + key "category": Union[str, ConnectionCategory] + key "createdByWorkspaceArmId": str + key "credentials": ForwardRef('CustomKeys', module='types') + key "error": str + key "expiryTime": str + key "group": Union[str, ConnectionGroup] + key "isSharedToAll": bool + key "peRequirement": Union[str, ManagedPERequirement] + key "peStatus": Union[str, ManagedPEStatus] + key "target": str + key "useWorkspaceManagedIdentity": bool + authType: Literal[ConnectionAuthType.CUSTOM_KEYS] + category: Union[str, ConnectionCategory] + createdByWorkspaceArmId: str + credentials: CustomKeys + error: str + expiryTime: str + group: Union[str, ConnectionGroup] + isSharedToAll: bool + metadata: dict[str, str] + peRequirement: Union[str, ManagedPERequirement] + peStatus: Union[str, ManagedPEStatus] + sharedUserList: list[str] + target: str + useWorkspaceManagedIdentity: bool + + + class azure.mgmt.cognitiveservices.types.DefenderForAISetting(ProxyResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('DefenderForAISettingProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + name: str + properties: DefenderForAISettingProperties + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.cognitiveservices.types.DefenderForAISettingProperties(TypedDict, total=False): + key "state": Union[str, DefenderForAISettingState] + state: Union[str, DefenderForAISettingState] + + + class azure.mgmt.cognitiveservices.types.Deployment(ProxyResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('DeploymentProperties', module='types') + key "sku": ForwardRef('Sku', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + name: str + properties: DeploymentProperties + sku: Sku + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.cognitiveservices.types.DeploymentCapacitySettings(TypedDict, total=False): + key "designatedCapacity": int + key "priority": int + designatedCapacity: int + priority: int + + + class azure.mgmt.cognitiveservices.types.DeploymentModel(TypedDict, total=False): + key "callRateLimit": ForwardRef('CallRateLimit', module='types') + key "format": str + key "name": str + key "publisher": str + key "source": str + key "sourceAccount": str + key "version": str + callRateLimit: CallRateLimit + format: str + name: str + publisher: str + source: str + sourceAccount: str + version: str + + + class azure.mgmt.cognitiveservices.types.DeploymentProperties(TypedDict, total=False): + key "callRateLimit": ForwardRef('CallRateLimit', module='types') + key "capacitySettings": ForwardRef('DeploymentCapacitySettings', module='types') + key "contextCacheContainerId": str + key "currentCapacity": int + key "deploymentState": Optional[Union[str, DeploymentState]] + key "dynamicThrottlingEnabled": bool + key "model": ForwardRef('DeploymentModel', module='types') + key "parentDeploymentName": str + key "provisioningState": Union[str, DeploymentProvisioningState] + key "raiPolicyName": str + key "routing": ForwardRef('DeploymentRouting', module='types') + key "scaleSettings": ForwardRef('DeploymentScaleSettings', module='types') + key "serviceTier": Optional[Union[str, ServiceTier]] + key "speculativeDecoding": ForwardRef('DeploymentSpeculativeDecoding', module='types') + key "spilloverDeploymentName": str + key "versionUpgradeOption": Union[str, DeploymentModelVersionUpgradeOption] + callRateLimit: CallRateLimit + capabilities: dict[str, str] + capacitySettings: DeploymentCapacitySettings + contextCacheContainerId: str + currentCapacity: int + deploymentState: Union[str, DeploymentState] + dynamicThrottlingEnabled: bool + model: DeploymentModel + parentDeploymentName: str + provisioningState: Union[str, DeploymentProvisioningState] + raiPolicyName: str + rateLimits: list[ThrottlingRule] + routing: DeploymentRouting + scaleSettings: DeploymentScaleSettings + serviceTier: Union[str, ServiceTier] + speculativeDecoding: DeploymentSpeculativeDecoding + spilloverDeploymentName: str + versionUpgradeOption: Union[str, DeploymentModelVersionUpgradeOption] + + + class azure.mgmt.cognitiveservices.types.DeploymentRouting(TypedDict, total=False): + key "mode": Union[str, RoutingMode] + mode: Union[str, RoutingMode] + models: list[DeploymentModel] + + + class azure.mgmt.cognitiveservices.types.DeploymentScaleSettings(TypedDict, total=False): + key "activeCapacity": int + key "capacity": int + key "scaleType": Union[str, DeploymentScaleType] + activeCapacity: int + capacity: int + scaleType: Union[str, DeploymentScaleType] + + + class azure.mgmt.cognitiveservices.types.DeploymentSpeculativeDecoding(TypedDict, total=False): + key "draftModel": Required[DeploymentModel] + key "draftTokenCount": int + draftModel: DeploymentModel + draftTokenCount: int + + + class azure.mgmt.cognitiveservices.types.Encryption(TypedDict, total=False): + key "keySource": Union[str, KeySource] + key "keyVaultProperties": ForwardRef('KeyVaultProperties', module='types') + keySource: Union[str, KeySource] + keyVaultProperties: KeyVaultProperties + + + class azure.mgmt.cognitiveservices.types.EncryptionScope(ProxyResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('EncryptionScopeProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + name: str + properties: EncryptionScopeProperties + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.cognitiveservices.types.EncryptionScopeProperties(Encryption): + key "keySource": Union[str, KeySource] + key "keyVaultProperties": ForwardRef('KeyVaultProperties', module='types') + key "provisioningState": Union[str, EncryptionScopeProvisioningState] + key "state": Union[str, EncryptionScopeState] + keySource: Union[str, KeySource] + keyVaultProperties: KeyVaultProperties + provisioningState: Union[str, EncryptionScopeProvisioningState] + state: Union[str, EncryptionScopeState] + + + class azure.mgmt.cognitiveservices.types.ErrorAdditionalInfo(TypedDict, total=False): + key "info": Any + key "type": str + info: Any + type: str + + + class azure.mgmt.cognitiveservices.types.ErrorDetail(TypedDict, total=False): + key "code": str + key "message": str + key "target": str + additionalInfo: list[ErrorAdditionalInfo] + code: str + details: list[ErrorDetail] + message: str + target: str + + + class azure.mgmt.cognitiveservices.types.EvaluateDeploymentPoliciesDeployment(TypedDict, total=False): + key "name": Required[str] + key "properties": Required[EvaluateDeploymentPoliciesDeploymentProperties] + name: str + properties: EvaluateDeploymentPoliciesDeploymentProperties + + + class azure.mgmt.cognitiveservices.types.EvaluateDeploymentPoliciesDeploymentProperties(TypedDict, total=False): + key "model": Required[DeploymentModel] + key "raiPolicyName": str + model: DeploymentModel + raiPolicyName: str + + + class azure.mgmt.cognitiveservices.types.EvaluateDeploymentPoliciesRequest(TypedDict, total=False): + key "deployments": Required[list[EvaluateDeploymentPoliciesDeployment]] + deployments: list[EvaluateDeploymentPoliciesDeployment] + + + class azure.mgmt.cognitiveservices.types.FoundryAutoUpgrade(TypedDict, total=False): + key "mode": Union[str, FoundryAutoUpgradeMode] + key "plannedByMicrosoft": bool + key "scheduledAt": str + key "statusReason": str + mode: Union[str, FoundryAutoUpgradeMode] + plannedByMicrosoft: bool + scheduledAt: str + statusReason: str + + + class azure.mgmt.cognitiveservices.types.FqdnOutboundRule(TypedDict, total=False): + key "category": Union[str, RuleCategory] + key "destination": str + key "errorInformation": str + key "status": Union[str, RuleStatus] + key "type": Required[Literal[RuleType.FQDN]] + category: Union[str, RuleCategory] + destination: str + errorInformation: str + parentRuleNames: list[str] + status: Union[str, RuleStatus] + type: Literal[RuleType.FQDN] + + + class azure.mgmt.cognitiveservices.types.HostedAgentDeployment(TypedDict, total=False): + key "agents": Optional[list[VersionedAgentReference]] + key "deploymentId": Optional[str] + key "deploymentType": Required[Literal[AgentDeploymentType.HOSTED]] + key "description": Optional[str] + key "displayName": Optional[str] + key "maxReplicas": int + key "minReplicas": int + key "protocols": Optional[list[AgentProtocolVersion]] + key "provisioningState": Union[str, AgentDeploymentProvisioningState] + key "state": Optional[Union[str, AgentDeploymentState]] + key "tags": Optional[dict[str, str]] + agents: list[VersionedAgentReference] + deploymentId: str + deploymentType: Literal[AgentDeploymentType.HOSTED] + description: str + displayName: str + maxReplicas: int + minReplicas: int + protocols: list[AgentProtocolVersion] + provisioningState: Union[str, AgentDeploymentProvisioningState] + state: Union[str, AgentDeploymentState] + tags: dict[str, str] + + + class azure.mgmt.cognitiveservices.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, UserAssignedIdentity] + + + class azure.mgmt.cognitiveservices.types.IpRule(TypedDict, total=False): + key "value": Required[str] + value: str + + + class azure.mgmt.cognitiveservices.types.KeyVaultProperties(TypedDict, total=False): + key "identityClientId": str + key "keyName": str + key "keyVaultUri": str + key "keyVersion": str + identityClientId: str + keyName: str + keyVaultUri: str + keyVersion: str + + + class azure.mgmt.cognitiveservices.types.ManagedAgentDeployment(TypedDict, total=False): + key "agents": Optional[list[VersionedAgentReference]] + key "deploymentId": Optional[str] + key "deploymentType": Required[Literal[AgentDeploymentType.MANAGED]] + key "description": Optional[str] + key "displayName": Optional[str] + key "protocols": Optional[list[AgentProtocolVersion]] + key "provisioningState": Union[str, AgentDeploymentProvisioningState] + key "state": Optional[Union[str, AgentDeploymentState]] + key "tags": Optional[dict[str, str]] + agents: list[VersionedAgentReference] + deploymentId: str + deploymentType: Literal[AgentDeploymentType.MANAGED] + description: str + displayName: str + protocols: list[AgentProtocolVersion] + provisioningState: Union[str, AgentDeploymentProvisioningState] + state: Union[str, AgentDeploymentState] + tags: dict[str, str] + + + class azure.mgmt.cognitiveservices.types.ManagedClusterAgentHostingConfiguration(TypedDict, total=False): + key "clusterResourceId": Required[str] + key "hostingManagementIdentityResourceId": Required[str] + key "hostingType": Required[Literal[AgentHostingType.MANAGED_CLUSTER]] + key "name": Required[str] + key "storageAccountResourceId": Required[str] + key "workloadIdentityResourceId": Required[str] + clusterResourceId: str + hostingManagementIdentityResourceId: str + hostingType: Literal[AgentHostingType.MANAGED_CLUSTER] + name: str + storageAccountResourceId: str + workloadIdentityResourceId: str + + + class azure.mgmt.cognitiveservices.types.ManagedComputeDeployment(ProxyResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ManagedComputeDeploymentProperties', module='types') + key "sku": ForwardRef('Sku', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + name: str + properties: ManagedComputeDeploymentProperties + sku: Sku + systemData: SystemData + type: str + + + class azure.mgmt.cognitiveservices.types.ManagedComputeDeploymentProperties(TypedDict, total=False): + key "acceleratorType": str + key "acceleratorsPerInstance": int + key "computeId": str + key "deploymentTemplate": str + key "model": Required[str] + key "priority": str + key "provisioningDetails": ForwardRef('ManagedComputeDeploymentProvisioningDetails', module='types') + key "provisioningState": Union[str, ProvisioningState] + key "routes": ForwardRef('ManagedComputeDeploymentRoutes', module='types') + key "totalAccelerators": int + key "versionUpgradeOption": Union[str, DeploymentModelVersionUpgradeOption] + acceleratorType: str + acceleratorsPerInstance: int + capabilities: dict[str, str] + computeId: str + deploymentTemplate: str + model: str + priority: str + provisioningDetails: ManagedComputeDeploymentProvisioningDetails + provisioningState: Union[str, ProvisioningState] + routes: ManagedComputeDeploymentRoutes + totalAccelerators: int + versionUpgradeOption: Union[str, DeploymentModelVersionUpgradeOption] + + + class azure.mgmt.cognitiveservices.types.ManagedComputeDeploymentProvisioningDetails(TypedDict, total=False): + key "lastOperationTimestamp": str + key "message": str + lastOperationTimestamp: str + message: str + + + class azure.mgmt.cognitiveservices.types.ManagedComputeDeploymentRoutes(TypedDict, total=False): + key "chatCompletionsScoringPath": str + key "messagesApiScoringPath": str + key "swagger": str + chatCompletionsScoringPath: str + messagesApiScoringPath: str + swagger: str + + + class azure.mgmt.cognitiveservices.types.ManagedIdentityAuthTypeConnectionProperties(TypedDict, total=False): + key "authType": Required[Literal[ConnectionAuthType.MANAGED_IDENTITY]] + key "category": Union[str, ConnectionCategory] + key "createdByWorkspaceArmId": str + key "credentials": ForwardRef('ConnectionManagedIdentity', module='types') + key "error": str + key "expiryTime": str + key "group": Union[str, ConnectionGroup] + key "isSharedToAll": bool + key "peRequirement": Union[str, ManagedPERequirement] + key "peStatus": Union[str, ManagedPEStatus] + key "target": str + key "useWorkspaceManagedIdentity": bool + authType: Literal[ConnectionAuthType.MANAGED_IDENTITY] + category: Union[str, ConnectionCategory] + createdByWorkspaceArmId: str + credentials: ConnectionManagedIdentity + error: str + expiryTime: str + group: Union[str, ConnectionGroup] + isSharedToAll: bool + metadata: dict[str, str] + peRequirement: Union[str, ManagedPERequirement] + peStatus: Union[str, ManagedPEStatus] + sharedUserList: list[str] + target: str + useWorkspaceManagedIdentity: bool + + + class azure.mgmt.cognitiveservices.types.ManagedNetworkProvisionOptions(TypedDict, total=False): + + + class azure.mgmt.cognitiveservices.types.ManagedNetworkProvisionStatus(TypedDict, total=False): + key "status": Union[str, ManagedNetworkStatus] + status: Union[str, ManagedNetworkStatus] + + + class azure.mgmt.cognitiveservices.types.ManagedNetworkSettings(TypedDict, total=False): + key "firewallPublicIpAddress": Optional[str] + key "firewallSku": Union[str, FirewallSku] + key "isolationMode": Union[str, IsolationMode] + key "managedNetworkKind": Union[str, ManagedNetworkKind] + key "networkId": str + key "outboundRules": Optional[dict[str, OutboundRule]] + key "provisioningState": Union[str, ManagedNetworkProvisioningState] + key "status": ForwardRef('ManagedNetworkProvisionStatus', module='types') + firewallPublicIpAddress: str + firewallSku: Union[str, FirewallSku] + isolationMode: Union[str, IsolationMode] + managedNetworkKind: Union[str, ManagedNetworkKind] + networkId: str + outboundRules: dict[str, OutboundRule] + provisioningState: Union[str, ManagedNetworkProvisioningState] + status: ManagedNetworkProvisionStatus + + + class azure.mgmt.cognitiveservices.types.ManagedNetworkSettingsBasicResource(Resource): + key "id": str + key "name": str + key "properties": ForwardRef('ManagedNetworkSettings', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + name: str + properties: ManagedNetworkSettings + systemData: SystemData + type: str + + + class azure.mgmt.cognitiveservices.types.ManagedNetworkSettingsEx(ManagedNetworkSettings): + key "firewallPublicIpAddress": Optional[str] + key "firewallSku": Union[str, FirewallSku] + key "isolationMode": Union[str, IsolationMode] + key "managedNetworkKind": Union[str, ManagedNetworkKind] + key "networkId": str + key "outboundRules": Optional[dict[str, OutboundRule]] + key "provisioningState": Union[str, ManagedNetworkProvisioningState] + key "status": ForwardRef('ManagedNetworkProvisionStatus', module='types') + changeableIsolationModes: list[Union[str, IsolationMode]] + firewallPublicIpAddress: str + firewallSku: Union[str, FirewallSku] + isolationMode: Union[str, IsolationMode] + managedNetworkKind: Union[str, ManagedNetworkKind] + networkId: str + outboundRules: dict[str, OutboundRule] + provisioningState: Union[str, ManagedNetworkProvisioningState] + status: ManagedNetworkProvisionStatus + + + class azure.mgmt.cognitiveservices.types.ManagedNetworkSettingsProperties(TypedDict, total=False): + key "managedNetwork": ForwardRef('ManagedNetworkSettingsEx', module='types') + key "provisioningState": Union[str, ManagedNetworkProvisioningState] + managedNetwork: ManagedNetworkSettingsEx + provisioningState: Union[str, ManagedNetworkProvisioningState] + + + class azure.mgmt.cognitiveservices.types.ManagedNetworkSettingsPropertiesBasicResource(ProxyResource): + key "id": str + key "name": str + key "properties": ForwardRef('ManagedNetworkSettingsProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + name: str + properties: ManagedNetworkSettingsProperties + systemData: SystemData + type: str + + + class azure.mgmt.cognitiveservices.types.ModelCapacityCalculatorWorkload(TypedDict, total=False): + key "requestParameters": ForwardRef('ModelCapacityCalculatorWorkloadRequestParam', module='types') + key "requestPerMinute": int + requestParameters: ModelCapacityCalculatorWorkloadRequestParam + requestPerMinute: int + + + class azure.mgmt.cognitiveservices.types.ModelCapacityCalculatorWorkloadRequestParam(TypedDict, total=False): + key "avgGeneratedTokens": int + key "avgPromptTokens": int + avgGeneratedTokens: int + avgPromptTokens: int + + + class azure.mgmt.cognitiveservices.types.MultiRegionSettings(TypedDict, total=False): + key "routingMethod": Union[str, RoutingMethods] + regions: list[RegionSetting] + routingMethod: Union[str, RoutingMethods] + + + class azure.mgmt.cognitiveservices.types.NetworkInjection(TypedDict, total=False): + key "scenario": Union[str, ScenarioType] + key "subnetArmId": str + key "useMicrosoftManagedNetwork": bool + scenario: Union[str, ScenarioType] + subnetArmId: str + useMicrosoftManagedNetwork: bool + + + class azure.mgmt.cognitiveservices.types.NetworkRuleSet(TypedDict, total=False): + key "bypass": Union[str, ByPassSelection] + key "defaultAction": Union[str, NetworkRuleAction] + bypass: Union[str, ByPassSelection] + defaultAction: Union[str, NetworkRuleAction] + ipRules: list[IpRule] + virtualNetworkRules: list[VirtualNetworkRule] + + + class azure.mgmt.cognitiveservices.types.NoneAuthTypeConnectionProperties(TypedDict, total=False): + key "authType": Required[Literal[ConnectionAuthType.NONE]] + key "category": Union[str, ConnectionCategory] + key "createdByWorkspaceArmId": str + key "error": str + key "expiryTime": str + key "group": Union[str, ConnectionGroup] + key "isSharedToAll": bool + key "peRequirement": Union[str, ManagedPERequirement] + key "peStatus": Union[str, ManagedPEStatus] + key "target": str + key "useWorkspaceManagedIdentity": bool + authType: Literal[ConnectionAuthType.NONE] + category: Union[str, ConnectionCategory] + createdByWorkspaceArmId: str + error: str + expiryTime: str + group: Union[str, ConnectionGroup] + isSharedToAll: bool + metadata: dict[str, str] + peRequirement: Union[str, ManagedPERequirement] + peStatus: Union[str, ManagedPEStatus] + sharedUserList: list[str] + target: str + useWorkspaceManagedIdentity: bool + + + class azure.mgmt.cognitiveservices.types.OAuth2AuthTypeConnectionProperties(TypedDict, total=False): + key "authType": Required[Literal[ConnectionAuthType.O_AUTH2]] + key "category": Union[str, ConnectionCategory] + key "createdByWorkspaceArmId": str + key "credentials": ForwardRef('ConnectionOAuth2', module='types') + key "error": str + key "expiryTime": str + key "group": Union[str, ConnectionGroup] + key "isSharedToAll": bool + key "peRequirement": Union[str, ManagedPERequirement] + key "peStatus": Union[str, ManagedPEStatus] + key "target": str + key "useWorkspaceManagedIdentity": bool + authType: Literal[ConnectionAuthType.O_AUTH2] + category: Union[str, ConnectionCategory] + createdByWorkspaceArmId: str + credentials: ConnectionOAuth2 + error: str + expiryTime: str + group: Union[str, ConnectionGroup] + isSharedToAll: bool + metadata: dict[str, str] + peRequirement: Union[str, ManagedPERequirement] + peStatus: Union[str, ManagedPEStatus] + sharedUserList: list[str] + target: str + useWorkspaceManagedIdentity: bool + + + class azure.mgmt.cognitiveservices.types.OrganizationSharedBuiltInAuthorizationPolicy(TypedDict, total=False): + key "type": Required[Literal[BuiltInAuthorizationScheme.ORGANIZATION_SCOPE]] + type: Literal[BuiltInAuthorizationScheme.ORGANIZATION_SCOPE] + + + class azure.mgmt.cognitiveservices.types.OutboundRuleBasicResource(ProxyResource): + key "id": str + key "name": str + key "properties": Required[OutboundRule] + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + name: str + properties: OutboundRule + systemData: SystemData + type: str + + + class azure.mgmt.cognitiveservices.types.PATAuthTypeConnectionProperties(TypedDict, total=False): + key "authType": Required[Literal[ConnectionAuthType.PAT]] + key "category": Union[str, ConnectionCategory] + key "createdByWorkspaceArmId": str + key "credentials": ForwardRef('ConnectionPersonalAccessToken', module='types') + key "error": str + key "expiryTime": str + key "group": Union[str, ConnectionGroup] + key "isSharedToAll": bool + key "peRequirement": Union[str, ManagedPERequirement] + key "peStatus": Union[str, ManagedPEStatus] + key "target": str + key "useWorkspaceManagedIdentity": bool + authType: Literal[ConnectionAuthType.PAT] + category: Union[str, ConnectionCategory] + createdByWorkspaceArmId: str + credentials: ConnectionPersonalAccessToken + error: str + expiryTime: str + group: Union[str, ConnectionGroup] + isSharedToAll: bool + metadata: dict[str, str] + peRequirement: Union[str, ManagedPERequirement] + peStatus: Union[str, ManagedPEStatus] + sharedUserList: list[str] + target: str + useWorkspaceManagedIdentity: bool + + + class azure.mgmt.cognitiveservices.types.PatchResourceSku(TypedDict, total=False): + key "sku": ForwardRef('Sku', module='types') + sku: Sku + + + class azure.mgmt.cognitiveservices.types.PatchResourceTags(TypedDict, total=False): + tags: dict[str, str] + + + class azure.mgmt.cognitiveservices.types.PatchResourceTagsAndSku(PatchResourceTags): + key "sku": ForwardRef('Sku', module='types') + sku: Sku + tags: dict[str, str] + + + class azure.mgmt.cognitiveservices.types.Pool(TypedDict, total=False): + key "instanceType": Required[str] + key "name": Required[str] + key "nodeCount": Required[int] + key "vmPriority": Union[str, VmPriority] + instanceType: str + name: str + nodeCount: int + vmPriority: Union[str, VmPriority] + + + class azure.mgmt.cognitiveservices.types.PrivateEndpoint(TypedDict, total=False): + key "id": str + id: str + + + class azure.mgmt.cognitiveservices.types.PrivateEndpointConnection(ProxyResource): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('PrivateEndpointConnectionProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: PrivateEndpointConnectionProperties + systemData: SystemData + type: str + + + class azure.mgmt.cognitiveservices.types.PrivateEndpointConnectionProperties(TypedDict, total=False): + key "privateEndpoint": ForwardRef('PrivateEndpoint', module='types') + key "privateLinkServiceConnectionState": Required[PrivateLinkServiceConnectionState] + key "provisioningState": Union[str, PrivateEndpointConnectionProvisioningState] + groupIds: list[str] + privateEndpoint: PrivateEndpoint + privateLinkServiceConnectionState: PrivateLinkServiceConnectionState + provisioningState: Union[str, PrivateEndpointConnectionProvisioningState] + + + class azure.mgmt.cognitiveservices.types.PrivateEndpointOutboundRule(TypedDict, total=False): + key "category": Union[str, RuleCategory] + key "destination": ForwardRef('PrivateEndpointOutboundRuleDestination', module='types') + key "errorInformation": str + key "status": Union[str, RuleStatus] + key "type": Required[Literal[RuleType.PRIVATE_ENDPOINT]] + category: Union[str, RuleCategory] + destination: PrivateEndpointOutboundRuleDestination + errorInformation: str + fqdns: list[str] + parentRuleNames: list[str] + status: Union[str, RuleStatus] + type: Literal[RuleType.PRIVATE_ENDPOINT] + + + class azure.mgmt.cognitiveservices.types.PrivateEndpointOutboundRuleDestination(TypedDict, total=False): + key "serviceResourceId": str + key "subresourceTarget": str + serviceResourceId: str + subresourceTarget: str + + + class azure.mgmt.cognitiveservices.types.PrivateLinkServiceConnectionState(TypedDict, total=False): + key "actionsRequired": str + key "description": str + key "status": Union[str, PrivateEndpointServiceConnectionStatus] + actionsRequired: str + description: str + status: Union[str, PrivateEndpointServiceConnectionStatus] + + + class azure.mgmt.cognitiveservices.types.Project(ProxyResource): + key "etag": str + key "id": str + key "identity": ForwardRef('Identity', module='types') + key "location": str + key "name": str + key "properties": ForwardRef('ProjectProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + identity: Identity + location: str + name: str + properties: ProjectProperties + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.cognitiveservices.types.ProjectCapabilityHost(ProxyResource): + key "id": str + key "name": str + key "properties": Required[ProjectCapabilityHostProperties] + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + name: str + properties: ProjectCapabilityHostProperties + systemData: SystemData + type: str + + + class azure.mgmt.cognitiveservices.types.ProjectCapabilityHostProperties(TypedDict, total=False): + key "aiServicesConnections": Optional[list[str]] + key "provisioningState": Union[str, CapabilityHostProvisioningState] + key "storageConnections": Optional[list[str]] + key "threadStorageConnections": Optional[list[str]] + key "vectorStoreConnections": Optional[list[str]] + aiServicesConnections: list[str] + provisioningState: Union[str, CapabilityHostProvisioningState] + storageConnections: list[str] + threadStorageConnections: list[str] + vectorStoreConnections: list[str] + + + class azure.mgmt.cognitiveservices.types.ProjectProperties(TypedDict, total=False): + key "capabilitySettings": ForwardRef('CapabilitySettings', module='types') + key "description": str + key "displayName": str + key "isDefault": bool + key "provisioningState": Union[str, ProvisioningState] + capabilitySettings: CapabilitySettings + description: str + displayName: str + endpoints: dict[str, str] + isDefault: bool + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.cognitiveservices.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.cognitiveservices.types.QuotaLimit(TypedDict, total=False): + key "count": float + key "renewalPeriod": float + count: float + renewalPeriod: float + rules: list[ThrottlingRule] + + + class azure.mgmt.cognitiveservices.types.QuotaTier(ProxyResource): + key "id": str + key "name": str + key "properties": ForwardRef('QuotaTierProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + name: str + properties: QuotaTierProperties + systemData: SystemData + type: str + + + class azure.mgmt.cognitiveservices.types.QuotaTierProperties(TypedDict, total=False): + key "assignmentDate": str + key "currentTierName": str + key "tierUpgradeEligibilityInfo": Optional[QuotaTierUpgradeEligibilityInfo] + key "tierUpgradePolicy": Union[str, TierUpgradePolicy] + assignmentDate: str + currentTierName: str + tierUpgradeEligibilityInfo: QuotaTierUpgradeEligibilityInfo + tierUpgradePolicy: Union[str, TierUpgradePolicy] + + + class azure.mgmt.cognitiveservices.types.QuotaTierUpgradeEligibilityInfo(TypedDict, total=False): + key "nextTierName": Optional[str] + key "upgradeApplicableDate": Optional[str] + key "upgradeAvailabilityStatus": Union[str, UpgradeAvailabilityStatus] + key "upgradeUnavailabilityReason": Optional[str] + nextTierName: str + upgradeApplicableDate: str + upgradeAvailabilityStatus: Union[str, UpgradeAvailabilityStatus] + upgradeUnavailabilityReason: str + + + class azure.mgmt.cognitiveservices.types.RaiBlocklist(ProxyResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('RaiBlocklistProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + name: str + properties: RaiBlocklistProperties + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.cognitiveservices.types.RaiBlocklistConfig(TypedDict, total=False): + key "blocking": bool + key "blocklistName": str + blocking: bool + blocklistName: str + + + class azure.mgmt.cognitiveservices.types.RaiBlocklistItem(ProxyResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('RaiBlocklistItemProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + name: str + properties: RaiBlocklistItemProperties + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.cognitiveservices.types.RaiBlocklistItemBulkRequest(TypedDict, total=False): + key "name": str + key "properties": ForwardRef('RaiBlocklistItemProperties', module='types') + name: str + properties: RaiBlocklistItemProperties + + + class azure.mgmt.cognitiveservices.types.RaiBlocklistItemProperties(TypedDict, total=False): + key "isRegex": bool + key "pattern": str + isRegex: bool + pattern: str + + + class azure.mgmt.cognitiveservices.types.RaiBlocklistProperties(TypedDict, total=False): + key "description": str + description: str + + + class azure.mgmt.cognitiveservices.types.RaiEgressHeaderTransform(TypedDict, total=False): + key "name": Required[str] + key "operation": Required[Union[str, RaiEgressHeaderOperation]] + key "value": str + key "valueRef": ForwardRef('RaiEgressHeaderValueRef', module='types') + name: str + operation: Union[str, RaiEgressHeaderOperation] + value: str + valueRef: RaiEgressHeaderValueRef + + + class azure.mgmt.cognitiveservices.types.RaiEgressHeaderValueRef(TypedDict, total=False): + key "managedIdentityRef": ForwardRef('RaiEgressManagedIdentityRef', module='types') + key "secretRef": ForwardRef('RaiEgressSecretRef', module='types') + managedIdentityRef: RaiEgressManagedIdentityRef + secretRef: RaiEgressSecretRef + + + class azure.mgmt.cognitiveservices.types.RaiEgressManagedIdentityRef(TypedDict, total=False): + key "format": str + key "resource": Required[str] + format: str + resource: str + + + class azure.mgmt.cognitiveservices.types.RaiEgressPolicyConfig(TypedDict, total=False): + key "defaultAction": Union[str, RaiEgressDefaultAction] + key "description": str + key "mode": Union[str, RaiEgressMode] + defaultAction: Union[str, RaiEgressDefaultAction] + description: str + mode: Union[str, RaiEgressMode] + rules: list[RaiEgressRule] + + + class azure.mgmt.cognitiveservices.types.RaiEgressRewriteTarget(TypedDict, total=False): + key "host": str + key "path": str + key "scheme": Union[str, RaiEgressScheme] + host: str + path: str + scheme: Union[str, RaiEgressScheme] + + + class azure.mgmt.cognitiveservices.types.RaiEgressRule(TypedDict, total=False): + key "action": Required[RaiEgressRuleAction] + key "description": str + key "match": ForwardRef('RaiEgressRuleMatch', module='types') + key "name": Required[str] + key "ruleType": Required[Union[str, RaiEgressRuleType]] + action: RaiEgressRuleAction + description: str + match: RaiEgressRuleMatch + name: str + ruleType: Union[str, RaiEgressRuleType] + + + class azure.mgmt.cognitiveservices.types.RaiEgressRuleAction(TypedDict, total=False): + key "actionType": Required[Union[str, RaiEgressRuleActionType]] + key "rewrite": ForwardRef('RaiEgressRewriteTarget', module='types') + actionType: Union[str, RaiEgressRuleActionType] + headers: list[RaiEgressHeaderTransform] + rewrite: RaiEgressRewriteTarget + + + class azure.mgmt.cognitiveservices.types.RaiEgressRuleMatch(TypedDict, total=False): + key "host": str + key "path": str + host: str + path: str + + + class azure.mgmt.cognitiveservices.types.RaiEgressSecretRef(TypedDict, total=False): + key "format": str + key "secretId": Required[str] + key "secretKey": str + format: str + secretId: str + secretKey: str + + + class azure.mgmt.cognitiveservices.types.RaiExternalSafetyProviderSchema(ProxyResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('RaiExternalSafetyProviderSchemaProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + name: str + properties: RaiExternalSafetyProviderSchemaProperties + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.cognitiveservices.types.RaiExternalSafetyProviderSchemaProperties(TypedDict, total=False): + key "createdAt": str + key "keyVaultUri": str + key "lastModifiedAt": str + key "managedIdentity": str + key "mode": str + key "providerId": str + key "providerName": str + key "secretName": str + key "url": str + createdAt: str + keyVaultUri: str + lastModifiedAt: str + managedIdentity: str + mode: str + providerId: str + providerName: str + secretName: str + url: str + + + class azure.mgmt.cognitiveservices.types.RaiMonitorConfig(TypedDict, total=False): + key "adxStorageResourceId": str + key "identityClientId": str + adxStorageResourceId: str + identityClientId: str + + + class azure.mgmt.cognitiveservices.types.RaiPolicy(ProxyResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('RaiPolicyProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + name: str + properties: RaiPolicyProperties + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.cognitiveservices.types.RaiPolicyContentFilter(TypedDict, total=False): + key "action": Union[str, RaiActionType] + key "blocking": bool + key "enabled": bool + key "name": str + key "severityThreshold": Union[str, ContentLevel] + key "source": Union[str, RaiPolicyContentSource] + action: Union[str, RaiActionType] + blocking: bool + enabled: bool + name: str + severityThreshold: Union[str, ContentLevel] + source: Union[str, RaiPolicyContentSource] + + + class azure.mgmt.cognitiveservices.types.RaiPolicyProperties(TypedDict, total=False): + key "basePolicyName": str + key "egressPolicy": ForwardRef('RaiEgressPolicyConfig', module='types') + key "mode": Union[str, RaiPolicyMode] + key "type": Union[str, RaiPolicyType] + basePolicyName: str + contentFilters: list[RaiPolicyContentFilter] + customBlocklists: list[CustomBlocklistConfig] + egressPolicy: RaiEgressPolicyConfig + mode: Union[str, RaiPolicyMode] + safetyProviders: list[SafetyProviderConfig] + type: Union[str, RaiPolicyType] + + + class azure.mgmt.cognitiveservices.types.RaiSafetyProviderConfig(TypedDict, total=False): + key "blocking": bool + key "safetyProviderName": str + blocking: bool + safetyProviderName: str + + + class azure.mgmt.cognitiveservices.types.RaiToolLabel(ProxyResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('RaiToolLabelProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + name: str + properties: RaiToolLabelProperties + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.cognitiveservices.types.RaiToolLabelProperties(TypedDict, total=False): + key "accountScope": ForwardRef('RaiToolLabelPropertiesAccountScope', module='types') + key "toolConnectionName": Required[str] + accountScope: RaiToolLabelPropertiesAccountScope + projectScopes: list[RaiToolLabelPropertiesProjectScopesItem] + toolConnectionName: str + + + class azure.mgmt.cognitiveservices.types.RaiToolLabelPropertiesAccountScope(TypedDict, total=False): + labelValues: dict[str, str] + + + class azure.mgmt.cognitiveservices.types.RaiToolLabelPropertiesProjectScopesItem(TypedDict, total=False): + key "labelValues": Required[dict[str, str]] + key "project": Required[str] + labelValues: dict[str, str] + project: str + + + class azure.mgmt.cognitiveservices.types.RaiTopic(ProxyResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('RaiTopicProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + name: str + properties: RaiTopicProperties + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.cognitiveservices.types.RaiTopicProperties(TypedDict, total=False): + key "createdAt": str + key "description": str + key "failedReason": str + key "lastModifiedAt": str + key "sampleBlobUrl": str + key "status": str + key "topicId": str + key "topicName": str + createdAt: str + description: str + failedReason: str + lastModifiedAt: str + sampleBlobUrl: str + status: str + topicId: str + topicName: str + + + class azure.mgmt.cognitiveservices.types.RegenerateKeyParameters(TypedDict, total=False): + key "keyName": Required[Union[str, KeyName]] + keyName: Union[str, KeyName] + + + class azure.mgmt.cognitiveservices.types.RegionSetting(TypedDict, total=False): + key "customsubdomain": str + key "name": str + key "value": float + customsubdomain: str + name: str + value: float + + + class azure.mgmt.cognitiveservices.types.RequestMatchPattern(TypedDict, total=False): + key "method": str + key "path": str + method: str + path: str + + + class azure.mgmt.cognitiveservices.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.cognitiveservices.types.ResourceBase(TypedDict, total=False): + key "description": Optional[str] + key "tags": Optional[dict[str, str]] + description: str + tags: dict[str, str] + + + class azure.mgmt.cognitiveservices.types.RoleBasedBuiltInAuthorizationPolicy(TypedDict, total=False): + key "type": Required[Literal[BuiltInAuthorizationScheme.DEFAULT]] + type: Literal[BuiltInAuthorizationScheme.DEFAULT] + + + class azure.mgmt.cognitiveservices.types.RuleType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + FQDN = "FQDN" + PRIVATE_ENDPOINT = "PrivateEndpoint" + SERVICE_TAG = "ServiceTag" + + + class azure.mgmt.cognitiveservices.types.SASAuthTypeConnectionProperties(TypedDict, total=False): + key "authType": Required[Literal[ConnectionAuthType.SAS]] + key "category": Union[str, ConnectionCategory] + key "createdByWorkspaceArmId": str + key "credentials": ForwardRef('ConnectionSharedAccessSignature', module='types') + key "error": str + key "expiryTime": str + key "group": Union[str, ConnectionGroup] + key "isSharedToAll": bool + key "peRequirement": Union[str, ManagedPERequirement] + key "peStatus": Union[str, ManagedPEStatus] + key "target": str + key "useWorkspaceManagedIdentity": bool + authType: Literal[ConnectionAuthType.SAS] + category: Union[str, ConnectionCategory] + createdByWorkspaceArmId: str + credentials: ConnectionSharedAccessSignature + error: str + expiryTime: str + group: Union[str, ConnectionGroup] + isSharedToAll: bool + metadata: dict[str, str] + peRequirement: Union[str, ManagedPERequirement] + peStatus: Union[str, ManagedPEStatus] + sharedUserList: list[str] + target: str + useWorkspaceManagedIdentity: bool + + + class azure.mgmt.cognitiveservices.types.SafetyProviderConfig(RaiSafetyProviderConfig): + key "blocking": bool + key "safetyProviderName": str + key "source": Union[str, RaiPolicyContentSource] + blocking: bool + safetyProviderName: str + source: Union[str, RaiPolicyContentSource] + + + class azure.mgmt.cognitiveservices.types.ServicePrincipalAuthTypeConnectionProperties(TypedDict, total=False): + key "authType": Required[Literal[ConnectionAuthType.SERVICE_PRINCIPAL]] + key "category": Union[str, ConnectionCategory] + key "createdByWorkspaceArmId": str + key "credentials": ForwardRef('ConnectionServicePrincipal', module='types') + key "error": str + key "expiryTime": str + key "group": Union[str, ConnectionGroup] + key "isSharedToAll": bool + key "peRequirement": Union[str, ManagedPERequirement] + key "peStatus": Union[str, ManagedPEStatus] + key "target": str + key "useWorkspaceManagedIdentity": bool + authType: Literal[ConnectionAuthType.SERVICE_PRINCIPAL] + category: Union[str, ConnectionCategory] + createdByWorkspaceArmId: str + credentials: ConnectionServicePrincipal + error: str + expiryTime: str + group: Union[str, ConnectionGroup] + isSharedToAll: bool + metadata: dict[str, str] + peRequirement: Union[str, ManagedPERequirement] + peStatus: Union[str, ManagedPEStatus] + sharedUserList: list[str] + target: str + useWorkspaceManagedIdentity: bool + + + class azure.mgmt.cognitiveservices.types.ServiceTagOutboundRule(TypedDict, total=False): + key "category": Union[str, RuleCategory] + key "destination": ForwardRef('ServiceTagOutboundRuleDestination', module='types') + key "errorInformation": str + key "status": Union[str, RuleStatus] + key "type": Required[Literal[RuleType.SERVICE_TAG]] + category: Union[str, RuleCategory] + destination: ServiceTagOutboundRuleDestination + errorInformation: str + parentRuleNames: list[str] + status: Union[str, RuleStatus] + type: Literal[RuleType.SERVICE_TAG] + + + class azure.mgmt.cognitiveservices.types.ServiceTagOutboundRuleDestination(TypedDict, total=False): + key "action": Union[str, RuleAction] + key "portRanges": str + key "protocol": str + key "serviceTag": str + action: Union[str, RuleAction] + addressPrefixes: list[str] + portRanges: str + protocol: str + serviceTag: str + + + class azure.mgmt.cognitiveservices.types.Sku(TypedDict, total=False): + key "capacity": int + key "family": str + key "name": Required[str] + key "size": str + key "tier": Union[str, SkuTier] + capacity: int + family: str + name: str + size: str + tier: Union[str, SkuTier] + + + class azure.mgmt.cognitiveservices.types.SkuCapability(TypedDict, total=False): + key "name": str + key "value": str + name: str + value: str + + + class azure.mgmt.cognitiveservices.types.SkuChangeInfo(TypedDict, total=False): + key "countOfDowngrades": float + key "countOfUpgradesAfterDowngrades": float + key "lastChangeDate": str + countOfDowngrades: float + countOfUpgradesAfterDowngrades: float + lastChangeDate: str + + + class azure.mgmt.cognitiveservices.types.SshSettings(TypedDict, total=False): + key "adminEnabled": bool + key "sshPublicKey": str + adminEnabled: bool + sshPublicKey: str + + + class azure.mgmt.cognitiveservices.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.cognitiveservices.types.ThrottlingRule(TypedDict, total=False): + key "count": float + key "dynamicThrottlingEnabled": bool + key "key": str + key "minCount": float + key "renewalPeriod": float + count: float + dynamicThrottlingEnabled: bool + key: str + matchPatterns: list[RequestMatchPattern] + minCount: float + renewalPeriod: float + + + class azure.mgmt.cognitiveservices.types.TrafficRoutingRule(TypedDict, total=False): + key "deploymentId": Optional[str] + key "description": Optional[str] + key "ruleId": Optional[str] + key "trafficPercentage": int + deploymentId: str + description: str + ruleId: str + trafficPercentage: int + + + class azure.mgmt.cognitiveservices.types.UserAssignedIdentity(TypedDict, total=False): + key "clientId": str + key "principalId": str + clientId: str + principalId: str + + + class azure.mgmt.cognitiveservices.types.UserOwnedAmlWorkspace(TypedDict, total=False): + key "identityClientId": str + key "resourceId": str + identityClientId: str + resourceId: str + + + class azure.mgmt.cognitiveservices.types.UserOwnedStorage(TypedDict, total=False): + key "identityClientId": str + key "resourceId": str + identityClientId: str + resourceId: str + + + class azure.mgmt.cognitiveservices.types.UsernamePasswordAuthTypeConnectionProperties(TypedDict, total=False): + key "authType": Required[Literal[ConnectionAuthType.USERNAME_PASSWORD]] + key "category": Union[str, ConnectionCategory] + key "createdByWorkspaceArmId": str + key "credentials": ForwardRef('ConnectionUsernamePassword', module='types') + key "error": str + key "expiryTime": str + key "group": Union[str, ConnectionGroup] + key "isSharedToAll": bool + key "peRequirement": Union[str, ManagedPERequirement] + key "peStatus": Union[str, ManagedPEStatus] + key "target": str + key "useWorkspaceManagedIdentity": bool + authType: Literal[ConnectionAuthType.USERNAME_PASSWORD] + category: Union[str, ConnectionCategory] + createdByWorkspaceArmId: str + credentials: ConnectionUsernamePassword + error: str + expiryTime: str + group: Union[str, ConnectionGroup] + isSharedToAll: bool + metadata: dict[str, str] + peRequirement: Union[str, ManagedPERequirement] + peStatus: Union[str, ManagedPEStatus] + sharedUserList: list[str] + target: str + useWorkspaceManagedIdentity: bool + + + class azure.mgmt.cognitiveservices.types.VersionedAgentReference(AgentReferenceProperties): + key "agentId": Optional[str] + key "agentName": Optional[str] + key "agentVersion": Optional[str] + agentId: str + agentName: str + agentVersion: str + + + class azure.mgmt.cognitiveservices.types.VirtualNetworkRule(TypedDict, total=False): + key "id": Required[str] + key "ignoreMissingVnetServiceEndpoint": bool + key "state": str + id: str + ignoreMissingVnetServiceEndpoint: bool + state: str + + + class azure.mgmt.cognitiveservices.types.Workbench(ProxyResource): + key "etag": str + key "id": str + key "identity": ForwardRef('Identity', module='types') + key "location": str + key "name": str + key "properties": Required[WorkbenchProperties] + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + identity: Identity + location: str + name: str + properties: WorkbenchProperties + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.cognitiveservices.types.WorkbenchProperties(TypedDict, total=False): + key "connectivityEndpoints": ForwardRef('ConnectivityEndpoints', module='types') + key "creationTime": str + key "datasetId": str + key "idleTimeBeforeShutdown": str + key "imageLink": Required[str] + key "provisioningState": Union[str, ComputeProvisioningState] + key "sshSettings": ForwardRef('SshSettings', module='types') + key "targetClusterId": Required[str] + key "webEndpoint": str + connectivityEndpoints: ConnectivityEndpoints + creationTime: str + datasetId: str + errors: list[ErrorDetail] + idleTimeBeforeShutdown: str + imageLink: str + provisioningState: Union[str, ComputeProvisioningState] + sshSettings: SshSettings + targetClusterId: str + webEndpoint: str + + ``` \ No newline at end of file diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/api.metadata.yml b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/api.metadata.yml index 8814da6e6eb3..0b6c36f81216 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/api.metadata.yml +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/api.metadata.yml @@ -1,3 +1,3 @@ -apiMdSha256: d9ccc3bf57442333ddf38636daad902c89fe92f3b76fc124e3ded208f3ba7af3 -parserVersion: 0.3.30 -pythonVersion: 3.12.10 +apiMdSha256: 55c2f96f5876cbfd8562b37429acf63dd4d1d7dc6ecf64615a6de62d39a9a0f3 +parserVersion: 0.3.31 +pythonVersion: 3.13.15 diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/apiview-properties.json b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/apiview-properties.json index 03de90cad521..17e64458dff4 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/apiview-properties.json +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/apiview-properties.json @@ -18,6 +18,7 @@ "azure.mgmt.cognitiveservices.models.AgentDeployment": "Microsoft.CognitiveServices.AgentDeployment", "azure.mgmt.cognitiveservices.models.ResourceBase": "Microsoft.CognitiveServices.ResourceBase", "azure.mgmt.cognitiveservices.models.AgentDeploymentProperties": "Microsoft.CognitiveServices.AgentDeploymentProperties", + "azure.mgmt.cognitiveservices.models.AgentHostingConfiguration": "Microsoft.CognitiveServices.AgentHostingConfiguration", "azure.mgmt.cognitiveservices.models.AgenticApplicationProperties": "Microsoft.CognitiveServices.AgenticApplicationProperties", "azure.mgmt.cognitiveservices.models.AgentProtocolVersion": "Microsoft.CognitiveServices.AgentProtocolVersion", "azure.mgmt.cognitiveservices.models.AgentReference": "Microsoft.CognitiveServices.AgentReference", @@ -28,6 +29,19 @@ "azure.mgmt.cognitiveservices.models.ApiProperties": "Microsoft.CognitiveServices.ApiProperties", "azure.mgmt.cognitiveservices.models.ApplicationAuthorizationPolicy": "Microsoft.CognitiveServices.ApplicationAuthorizationPolicy", "azure.mgmt.cognitiveservices.models.ApplicationTrafficRoutingPolicy": "Microsoft.CognitiveServices.ApplicationTrafficRoutingPolicy", + "azure.mgmt.cognitiveservices.models.ArcDeployment": "Microsoft.CognitiveServices.ArcDeployment", + "azure.mgmt.cognitiveservices.models.ArcDeploymentCpuMemoryResourceRequirements": "Microsoft.CognitiveServices.ArcDeploymentCpuMemoryResourceRequirements", + "azure.mgmt.cognitiveservices.models.ArcDeploymentKubernetesResources": "Microsoft.CognitiveServices.ArcDeploymentKubernetesResources", + "azure.mgmt.cognitiveservices.models.ArcDeploymentModel": "Microsoft.CognitiveServices.ArcDeploymentModel", + "azure.mgmt.cognitiveservices.models.ArcDeploymentPatchCpuMemoryResourceRequirements": "Microsoft.CognitiveServices.ArcDeploymentPatchCpuMemoryResourceRequirements", + "azure.mgmt.cognitiveservices.models.ArcDeploymentPatchKubernetesResources": "Microsoft.CognitiveServices.ArcDeploymentPatchKubernetesResources", + "azure.mgmt.cognitiveservices.models.ArcDeploymentProperties": "Microsoft.CognitiveServices.ArcDeploymentProperties", + "azure.mgmt.cognitiveservices.models.ArcDeploymentProvisioningDetails": "Microsoft.CognitiveServices.ArcDeploymentProvisioningDetails", + "azure.mgmt.cognitiveservices.models.ArcDeploymentResourceRequirements": "Microsoft.CognitiveServices.ArcDeploymentResourceRequirements", + "azure.mgmt.cognitiveservices.models.ArcDeploymentSku": "Microsoft.CognitiveServices.ArcDeploymentSku", + "azure.mgmt.cognitiveservices.models.ArcDeploymentUpdate": "Microsoft.CognitiveServices.ArcDeploymentUpdate", + "azure.mgmt.cognitiveservices.models.ArcDeploymentUpdateProperties": "Microsoft.CognitiveServices.ArcDeploymentUpdateProperties", + "azure.mgmt.cognitiveservices.models.ArcDeploymentVllmParameters": "Microsoft.CognitiveServices.ArcDeploymentVllmParameters", "azure.mgmt.cognitiveservices.models.AssignedIdentity": "Microsoft.CognitiveServices.AssignedIdentity", "azure.mgmt.cognitiveservices.models.BillingMeterInfo": "Microsoft.CognitiveServices.BillingMeterInfo", "azure.mgmt.cognitiveservices.models.CalculateModelCapacityParameter": "Microsoft.CognitiveServices.CalculateModelCapacityParameter", @@ -36,6 +50,7 @@ "azure.mgmt.cognitiveservices.models.CallRateLimit": "Microsoft.CognitiveServices.CallRateLimit", "azure.mgmt.cognitiveservices.models.CapabilityHost": "Microsoft.CognitiveServices.CapabilityHost", "azure.mgmt.cognitiveservices.models.CapabilityHostProperties": "Microsoft.CognitiveServices.CapabilityHostProperties", + "azure.mgmt.cognitiveservices.models.CapabilitySettings": "Microsoft.CognitiveServices.CapabilitySettings", "azure.mgmt.cognitiveservices.models.CapacityConfig": "Microsoft.CognitiveServices.CapacityConfig", "azure.mgmt.cognitiveservices.models.ChannelsBuiltInAuthorizationPolicy": "Microsoft.CognitiveServices.ChannelsBuiltInAuthorizationPolicy", "azure.mgmt.cognitiveservices.models.CheckDomainAvailabilityParameter": "Microsoft.CognitiveServices.CheckDomainAvailabilityParameter", @@ -100,6 +115,7 @@ "azure.mgmt.cognitiveservices.models.IpRule": "Microsoft.CognitiveServices.IpRule", "azure.mgmt.cognitiveservices.models.KeyVaultProperties": "Microsoft.CognitiveServices.KeyVaultProperties", "azure.mgmt.cognitiveservices.models.ManagedAgentDeployment": "Microsoft.CognitiveServices.ManagedAgentDeployment", + "azure.mgmt.cognitiveservices.models.ManagedClusterAgentHostingConfiguration": "Microsoft.CognitiveServices.ManagedClusterAgentHostingConfiguration", "azure.mgmt.cognitiveservices.models.ManagedComputeCapacity": "Microsoft.CognitiveServices.ManagedComputeCapacity", "azure.mgmt.cognitiveservices.models.ManagedComputeCapacityProperties": "Microsoft.CognitiveServices.ManagedComputeCapacityProperties", "azure.mgmt.cognitiveservices.models.ManagedComputeDeployment": "Microsoft.CognitiveServices.ManagedComputeDeployment", @@ -244,6 +260,7 @@ "azure.mgmt.cognitiveservices.models.AbusePenaltyAction": "Microsoft.CognitiveServices.AbusePenaltyAction", "azure.mgmt.cognitiveservices.models.ScenarioType": "Microsoft.CognitiveServices.ScenarioType", "azure.mgmt.cognitiveservices.models.FoundryAutoUpgradeMode": "Microsoft.CognitiveServices.FoundryAutoUpgradeMode", + "azure.mgmt.cognitiveservices.models.AgentHostingType": "Microsoft.CognitiveServices.AgentHostingType", "azure.mgmt.cognitiveservices.models.SkuTier": "Microsoft.CognitiveServices.SkuTier", "azure.mgmt.cognitiveservices.models.ResourceIdentityType": "Microsoft.CognitiveServices.ResourceIdentityType", "azure.mgmt.cognitiveservices.models.KeyName": "Microsoft.CognitiveServices.KeyName", @@ -284,6 +301,9 @@ "azure.mgmt.cognitiveservices.models.CapabilityHostProvisioningState": "Microsoft.CognitiveServices.CapabilityHostProvisioningState", "azure.mgmt.cognitiveservices.models.TierUpgradePolicy": "Microsoft.CognitiveServices.TierUpgradePolicy", "azure.mgmt.cognitiveservices.models.UpgradeAvailabilityStatus": "Microsoft.CognitiveServices.UpgradeAvailabilityStatus", + "azure.mgmt.cognitiveservices.models.ArcDeploymentRuntime": "Microsoft.CognitiveServices.ArcDeploymentRuntime", + "azure.mgmt.cognitiveservices.models.ArcDeploymentComputeType": "Microsoft.CognitiveServices.ArcDeploymentComputeType", + "azure.mgmt.cognitiveservices.models.ArcDeploymentSkuName": "Microsoft.CognitiveServices.ArcDeploymentSkuName", "azure.mgmt.cognitiveservices.models.IdentityKind": "Microsoft.CognitiveServices.IdentityKind", "azure.mgmt.cognitiveservices.models.IdentityManagementType": "Microsoft.CognitiveServices.IdentityManagementType", "azure.mgmt.cognitiveservices.models.IdentityProvisioningState": "Microsoft.CognitiveServices.IdentityProvisioningState", @@ -506,6 +526,16 @@ "azure.mgmt.cognitiveservices.aio.operations.QuotaTiersOperations.update": "Microsoft.CognitiveServices.QuotaTiers.update", "azure.mgmt.cognitiveservices.operations.QuotaTiersOperations.list_by_subscription": "Microsoft.CognitiveServices.QuotaTiers.listBySubscription", "azure.mgmt.cognitiveservices.aio.operations.QuotaTiersOperations.list_by_subscription": "Microsoft.CognitiveServices.QuotaTiers.listBySubscription", + "azure.mgmt.cognitiveservices.operations.ArcDeploymentsOperations.get": "Microsoft.CognitiveServices.ArcDeployments.get", + "azure.mgmt.cognitiveservices.aio.operations.ArcDeploymentsOperations.get": "Microsoft.CognitiveServices.ArcDeployments.get", + "azure.mgmt.cognitiveservices.operations.ArcDeploymentsOperations.begin_create_or_update": "Microsoft.CognitiveServices.ArcDeployments.createOrUpdate", + "azure.mgmt.cognitiveservices.aio.operations.ArcDeploymentsOperations.begin_create_or_update": "Microsoft.CognitiveServices.ArcDeployments.createOrUpdate", + "azure.mgmt.cognitiveservices.operations.ArcDeploymentsOperations.begin_update": "Microsoft.CognitiveServices.ArcDeployments.update", + "azure.mgmt.cognitiveservices.aio.operations.ArcDeploymentsOperations.begin_update": "Microsoft.CognitiveServices.ArcDeployments.update", + "azure.mgmt.cognitiveservices.operations.ArcDeploymentsOperations.begin_delete": "Microsoft.CognitiveServices.ArcDeployments.delete", + "azure.mgmt.cognitiveservices.aio.operations.ArcDeploymentsOperations.begin_delete": "Microsoft.CognitiveServices.ArcDeployments.delete", + "azure.mgmt.cognitiveservices.operations.ArcDeploymentsOperations.list": "Microsoft.CognitiveServices.ArcDeployments.list", + "azure.mgmt.cognitiveservices.aio.operations.ArcDeploymentsOperations.list": "Microsoft.CognitiveServices.ArcDeployments.list", "azure.mgmt.cognitiveservices.operations.AgentApplicationsOperations.get": "Microsoft.CognitiveServices.AgentApplications.get", "azure.mgmt.cognitiveservices.aio.operations.AgentApplicationsOperations.get": "Microsoft.CognitiveServices.AgentApplications.get", "azure.mgmt.cognitiveservices.operations.AgentApplicationsOperations.begin_create_or_update": "Microsoft.CognitiveServices.AgentApplications.createOrUpdate", @@ -538,8 +568,6 @@ "azure.mgmt.cognitiveservices.aio.operations.ComputesOperations.get": "Microsoft.CognitiveServices.Computes.get", "azure.mgmt.cognitiveservices.operations.ComputesOperations.begin_create_or_update": "Microsoft.CognitiveServices.Computes.createOrUpdate", "azure.mgmt.cognitiveservices.aio.operations.ComputesOperations.begin_create_or_update": "Microsoft.CognitiveServices.Computes.createOrUpdate", - "azure.mgmt.cognitiveservices.operations.ComputesOperations.begin_update": "Microsoft.CognitiveServices.Computes.update", - "azure.mgmt.cognitiveservices.aio.operations.ComputesOperations.begin_update": "Microsoft.CognitiveServices.Computes.update", "azure.mgmt.cognitiveservices.operations.ComputesOperations.begin_delete": "Microsoft.CognitiveServices.Computes.delete", "azure.mgmt.cognitiveservices.aio.operations.ComputesOperations.begin_delete": "Microsoft.CognitiveServices.Computes.delete", "azure.mgmt.cognitiveservices.operations.ComputesOperations.list": "Microsoft.CognitiveServices.Computes.list", @@ -651,5 +679,5 @@ "azure.mgmt.cognitiveservices.CognitiveServicesManagementClient.calculate_model_capacity": "Microsoft.CognitiveServices.calculateModelCapacity", "azure.mgmt.cognitiveservices.aio.CognitiveServicesManagementClient.calculate_model_capacity": "Microsoft.CognitiveServices.calculateModelCapacity" }, - "CrossLanguageVersion": "80649970687f" + "CrossLanguageVersion": "bb17322d6118" } \ No newline at end of file diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_client.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_client.py index 05ac5d8afea0..6e3d546433bc 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_client.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_client.py @@ -25,6 +25,7 @@ AccountsOperations, AgentApplicationsOperations, AgentDeploymentsOperations, + ArcDeploymentsOperations, CommitmentPlansOperations, CommitmentTiersOperations, ComputeOperationsOperations, @@ -79,7 +80,7 @@ class CognitiveServicesManagementClient( _CognitiveServicesManagementClientOperationsMixin -): # pylint: disable=too-many-instance-attributes +): # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only """Cognitive Services Management Client. :ivar operations: Operations operations @@ -131,6 +132,8 @@ class CognitiveServicesManagementClient( azure.mgmt.cognitiveservices.operations.ProjectCapabilityHostsOperations :ivar quota_tiers: QuotaTiersOperations operations :vartype quota_tiers: azure.mgmt.cognitiveservices.operations.QuotaTiersOperations + :ivar arc_deployments: ArcDeploymentsOperations operations + :vartype arc_deployments: azure.mgmt.cognitiveservices.operations.ArcDeploymentsOperations :ivar agent_applications: AgentApplicationsOperations operations :vartype agent_applications: azure.mgmt.cognitiveservices.operations.AgentApplicationsOperations @@ -204,7 +207,7 @@ class CognitiveServicesManagementClient( None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2026-05-15-preview" and None. Default value is None. If not set, the operation's default API + "2026-07-15-preview" and None. Default value is None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str @@ -301,6 +304,7 @@ def __init__( self._client, self._config, self._serialize, self._deserialize ) self.quota_tiers = QuotaTiersOperations(self._client, self._config, self._serialize, self._deserialize) + self.arc_deployments = ArcDeploymentsOperations(self._client, self._config, self._serialize, self._deserialize) self.agent_applications = AgentApplicationsOperations( self._client, self._config, self._serialize, self._deserialize ) diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_configuration.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_configuration.py index 1b2788038244..934288fe2b50 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_configuration.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_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 CognitiveServicesManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long +class CognitiveServicesManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long,docstring-keyword-should-match-keyword-only """Configuration for CognitiveServicesManagementClient. Note that all parameters used to create this instance are saved as instance @@ -34,7 +35,7 @@ class CognitiveServicesManagementClientConfiguration: # pylint: disable=too-man None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2026-05-15-preview" and None. Default value is None. If not set, the operation's default API + "2026-07-15-preview" and None. Default value is None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str @@ -48,7 +49,7 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: - api_version: str = kwargs.pop("api_version", "2026-05-15-preview") + api_version: str = kwargs.pop("api_version", "2026-07-15-preview") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_patch.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_patch.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_utils/model_base.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_utils/model_base.py index a79d3782e99c..88aaf1823543 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_utils/model_base.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_utils/model_base.py @@ -158,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) @@ -342,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, @@ -369,6 +383,8 @@ def _deserialize_int_as_str(attr): 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: @@ -458,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() @@ -482,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: @@ -517,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) @@ -542,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: diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_utils/serialization.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_utils/serialization.py index 75906e2eb77f..ae08f9d89f74 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_utils/serialization.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_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"} diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_version.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_version.py index 6fce30ba3921..04f96da8d5ac 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_version.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "15.0.0b4" +VERSION = "15.0.0b5" diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/_client.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/_client.py index 5b04508153b1..ae37359be63b 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/_client.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/_client.py @@ -25,6 +25,7 @@ AccountsOperations, AgentApplicationsOperations, AgentDeploymentsOperations, + ArcDeploymentsOperations, CommitmentPlansOperations, CommitmentTiersOperations, ComputeOperationsOperations, @@ -79,7 +80,7 @@ class CognitiveServicesManagementClient( _CognitiveServicesManagementClientOperationsMixin -): # pylint: disable=too-many-instance-attributes +): # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only """Cognitive Services Management Client. :ivar operations: Operations operations @@ -134,6 +135,8 @@ class CognitiveServicesManagementClient( azure.mgmt.cognitiveservices.aio.operations.ProjectCapabilityHostsOperations :ivar quota_tiers: QuotaTiersOperations operations :vartype quota_tiers: azure.mgmt.cognitiveservices.aio.operations.QuotaTiersOperations + :ivar arc_deployments: ArcDeploymentsOperations operations + :vartype arc_deployments: azure.mgmt.cognitiveservices.aio.operations.ArcDeploymentsOperations :ivar agent_applications: AgentApplicationsOperations operations :vartype agent_applications: azure.mgmt.cognitiveservices.aio.operations.AgentApplicationsOperations @@ -210,7 +213,7 @@ class CognitiveServicesManagementClient( None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2026-05-15-preview" and None. Default value is None. If not set, the operation's default API + "2026-07-15-preview" and None. Default value is None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str @@ -309,6 +312,7 @@ def __init__( self._client, self._config, self._serialize, self._deserialize ) self.quota_tiers = QuotaTiersOperations(self._client, self._config, self._serialize, self._deserialize) + self.arc_deployments = ArcDeploymentsOperations(self._client, self._config, self._serialize, self._deserialize) self.agent_applications = AgentApplicationsOperations( self._client, self._config, self._serialize, self._deserialize ) diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/_configuration.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/_configuration.py index 8afff6b62059..5a43a8d5438f 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/_configuration.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/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 CognitiveServicesManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long +class CognitiveServicesManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long,docstring-keyword-should-match-keyword-only """Configuration for CognitiveServicesManagementClient. Note that all parameters used to create this instance are saved as instance @@ -34,7 +35,7 @@ class CognitiveServicesManagementClientConfiguration: # pylint: disable=too-man None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2026-05-15-preview" and None. Default value is None. If not set, the operation's default API + "2026-07-15-preview" and None. Default value is None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str @@ -48,7 +49,7 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: - api_version: str = kwargs.pop("api_version", "2026-05-15-preview") + api_version: str = kwargs.pop("api_version", "2026-07-15-preview") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/_patch.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/_patch.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/__init__.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/__init__.py index 27f40ab3440c..4807d2425696 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/__init__.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/__init__.py @@ -33,6 +33,7 @@ from ._operations import ProjectConnectionsOperations # type: ignore from ._operations import ProjectCapabilityHostsOperations # type: ignore from ._operations import QuotaTiersOperations # type: ignore +from ._operations import ArcDeploymentsOperations # type: ignore from ._operations import AgentApplicationsOperations # type: ignore from ._operations import ManagedComputeDeploymentsOperations # type: ignore from ._operations import ComputeOperationsOperations # type: ignore @@ -84,6 +85,7 @@ "ProjectConnectionsOperations", "ProjectCapabilityHostsOperations", "QuotaTiersOperations", + "ArcDeploymentsOperations", "AgentApplicationsOperations", "ManagedComputeDeploymentsOperations", "ComputeOperationsOperations", diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_operations.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_operations.py index b4d77ed038c6..67a8760a7ed2 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_operations.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_operations.py @@ -33,7 +33,7 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling -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 ..._utils.utils import ClientMixinABC @@ -73,6 +73,11 @@ build_agent_deployments_list_request, build_agent_deployments_start_request, build_agent_deployments_stop_request, + build_arc_deployments_create_or_update_request, + build_arc_deployments_delete_request, + build_arc_deployments_get_request, + build_arc_deployments_list_request, + build_arc_deployments_update_request, build_cognitive_services_management_calculate_model_capacity_request, build_cognitive_services_management_check_domain_availability_request, build_cognitive_services_management_check_sku_availability_request, @@ -99,7 +104,6 @@ build_computes_restart_request, build_computes_start_request, build_computes_stop_request, - build_computes_update_request, build_defender_for_ai_settings_create_or_update_request, build_defender_for_ai_settings_get_request, build_defender_for_ai_settings_list_request, @@ -214,11 +218,10 @@ T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -JSON = MutableMapping[str, Any] List = list -class Operations: +class Operations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -330,7 +333,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class AccountsOperations: +class AccountsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -423,7 +426,7 @@ async def _create_initial( self, resource_group_name: str, account_name: str, - account: Union[_models.Account, JSON, IO[bytes]], + account: Union[_models.Account, _types.Account, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -531,7 +534,7 @@ async def begin_create( self, resource_group_name: str, account_name: str, - account: JSON, + account: _types.Account, *, content_type: str = "application/json", **kwargs: Any @@ -545,7 +548,7 @@ async def begin_create( :param account_name: The name of Cognitive Services account. Required. :type account_name: str :param account: The parameters to provide for the created account. Required. - :type account: JSON + :type account: ~azure.mgmt.cognitiveservices.types.Account :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -589,7 +592,7 @@ async def begin_create( self, resource_group_name: str, account_name: str, - account: Union[_models.Account, JSON, IO[bytes]], + account: Union[_models.Account, _types.Account, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.Account]: """Create Cognitive Services Account. Accounts is a resource group wide resource type. It holds @@ -600,9 +603,10 @@ async def begin_create( :type resource_group_name: str :param account_name: The name of Cognitive Services account. Required. :type account_name: str - :param account: The parameters to provide for the created account. Is one of the following - types: Account, JSON, IO[bytes] Required. - :type account: ~azure.mgmt.cognitiveservices.models.Account or JSON or IO[bytes] + :param account: The parameters to provide for the created account. Is either a Account type or + a IO[bytes] type. Required. + :type account: ~azure.mgmt.cognitiveservices.models.Account or + ~azure.mgmt.cognitiveservices.types.Account or IO[bytes] :return: An instance of AsyncLROPoller that returns Account. The Account is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.Account] @@ -664,7 +668,7 @@ async def _update_initial( self, resource_group_name: str, account_name: str, - account: Union[_models.Account, JSON, IO[bytes]], + account: Union[_models.Account, _types.Account, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -768,7 +772,7 @@ async def begin_update( self, resource_group_name: str, account_name: str, - account: JSON, + account: _types.Account, *, content_type: str = "application/json", **kwargs: Any @@ -781,7 +785,7 @@ async def begin_update( :param account_name: The name of Cognitive Services account. Required. :type account_name: str :param account: The parameters to provide for the created account. Required. - :type account: JSON + :type account: ~azure.mgmt.cognitiveservices.types.Account :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -824,7 +828,7 @@ async def begin_update( self, resource_group_name: str, account_name: str, - account: Union[_models.Account, JSON, IO[bytes]], + account: Union[_models.Account, _types.Account, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.Account]: """Updates a Cognitive Services account. @@ -834,9 +838,10 @@ async def begin_update( :type resource_group_name: str :param account_name: The name of Cognitive Services account. Required. :type account_name: str - :param account: The parameters to provide for the created account. Is one of the following - types: Account, JSON, IO[bytes] Required. - :type account: ~azure.mgmt.cognitiveservices.models.Account or JSON or IO[bytes] + :param account: The parameters to provide for the created account. Is either a Account type or + a IO[bytes] type. Required. + :type account: ~azure.mgmt.cognitiveservices.models.Account or + ~azure.mgmt.cognitiveservices.types.Account or IO[bytes] :return: An instance of AsyncLROPoller that returns Account. The Account is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.Account] @@ -1302,7 +1307,7 @@ async def regenerate_key( self, resource_group_name: str, account_name: str, - parameters: JSON, + parameters: _types.RegenerateKeyParameters, *, content_type: str = "application/json", **kwargs: Any @@ -1315,7 +1320,7 @@ async def regenerate_key( :param account_name: The name of Cognitive Services account. Required. :type account_name: str :param parameters: regenerate key parameters. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.cognitiveservices.types.RegenerateKeyParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -1356,7 +1361,7 @@ async def regenerate_key( self, resource_group_name: str, account_name: str, - parameters: Union[_models.RegenerateKeyParameters, JSON, IO[bytes]], + parameters: Union[_models.RegenerateKeyParameters, _types.RegenerateKeyParameters, IO[bytes]], **kwargs: Any ) -> _models.ApiKeys: """Regenerates the specified account key for the specified Cognitive Services account. @@ -1366,10 +1371,10 @@ async def regenerate_key( :type resource_group_name: str :param account_name: The name of Cognitive Services account. Required. :type account_name: str - :param parameters: regenerate key parameters. Is one of the following types: - RegenerateKeyParameters, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.cognitiveservices.models.RegenerateKeyParameters or JSON or - IO[bytes] + :param parameters: regenerate key parameters. Is either a RegenerateKeyParameters type or a + IO[bytes] type. Required. + :type parameters: ~azure.mgmt.cognitiveservices.models.RegenerateKeyParameters or + ~azure.mgmt.cognitiveservices.types.RegenerateKeyParameters or IO[bytes] :return: ApiKeys. The ApiKeys is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.ApiKeys :raises ~azure.core.exceptions.HttpResponseError: @@ -1726,7 +1731,7 @@ async def evaluate_deployment_policies( self, resource_group_name: str, account_name: str, - body: JSON, + body: _types.EvaluateDeploymentPoliciesRequest, *, content_type: str = "application/json", **kwargs: Any @@ -1739,7 +1744,7 @@ async def evaluate_deployment_policies( :param account_name: The name of Cognitive Services account. Required. :type account_name: str :param body: The content of the action request. Required. - :type body: JSON + :type body: ~azure.mgmt.cognitiveservices.types.EvaluateDeploymentPoliciesRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -1790,13 +1795,13 @@ async def evaluate_deployment_policies( "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) async def evaluate_deployment_policies( self, resource_group_name: str, account_name: str, - body: Union[_models.EvaluateDeploymentPoliciesRequest, JSON, IO[bytes]], + body: Union[_models.EvaluateDeploymentPoliciesRequest, _types.EvaluateDeploymentPoliciesRequest, IO[bytes]], **kwargs: Any ) -> _models.EvaluateDeploymentPoliciesResponse: """Evaluate Azure Policy compliance for a set of hypothetical deployments without creating them. @@ -1806,10 +1811,10 @@ async def evaluate_deployment_policies( :type resource_group_name: str :param account_name: The name of Cognitive Services account. Required. :type account_name: str - :param body: The content of the action request. Is one of the following types: - EvaluateDeploymentPoliciesRequest, JSON, IO[bytes] Required. - :type body: ~azure.mgmt.cognitiveservices.models.EvaluateDeploymentPoliciesRequest or JSON or - IO[bytes] + :param body: The content of the action request. Is either a EvaluateDeploymentPoliciesRequest + type or a IO[bytes] type. Required. + :type body: ~azure.mgmt.cognitiveservices.models.EvaluateDeploymentPoliciesRequest or + ~azure.mgmt.cognitiveservices.types.EvaluateDeploymentPoliciesRequest or IO[bytes] :return: EvaluateDeploymentPoliciesResponse. The EvaluateDeploymentPoliciesResponse is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.EvaluateDeploymentPoliciesResponse @@ -1883,7 +1888,7 @@ async def evaluate_deployment_policies( return deserialized # type: ignore -class DeletedAccountsOperations: +class DeletedAccountsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2193,7 +2198,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class PrivateEndpointConnectionsOperations: +class PrivateEndpointConnectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2294,7 +2299,7 @@ async def _create_or_update_initial( resource_group_name: str, account_name: str, private_endpoint_connection_name: str, - properties: Union[_models.PrivateEndpointConnection, JSON, IO[bytes]], + properties: Union[_models.PrivateEndpointConnection, _types.PrivateEndpointConnection, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -2406,7 +2411,7 @@ async def begin_create_or_update( resource_group_name: str, account_name: str, private_endpoint_connection_name: str, - properties: JSON, + properties: _types.PrivateEndpointConnection, *, content_type: str = "application/json", **kwargs: Any @@ -2423,7 +2428,7 @@ async def begin_create_or_update( with the Cognitive Services Account. Required. :type private_endpoint_connection_name: str :param properties: The private endpoint connection properties. Required. - :type properties: JSON + :type properties: ~azure.mgmt.cognitiveservices.types.PrivateEndpointConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -2474,7 +2479,7 @@ async def begin_create_or_update( resource_group_name: str, account_name: str, private_endpoint_connection_name: str, - properties: Union[_models.PrivateEndpointConnection, JSON, IO[bytes]], + properties: Union[_models.PrivateEndpointConnection, _types.PrivateEndpointConnection, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.PrivateEndpointConnection]: """Update the state of specified private endpoint connection associated with the Cognitive @@ -2488,10 +2493,10 @@ async def begin_create_or_update( :param private_endpoint_connection_name: The name of the private endpoint connection associated with the Cognitive Services Account. Required. :type private_endpoint_connection_name: str - :param properties: The private endpoint connection properties. Is one of the following types: - PrivateEndpointConnection, JSON, IO[bytes] Required. - :type properties: ~azure.mgmt.cognitiveservices.models.PrivateEndpointConnection or JSON or - IO[bytes] + :param properties: The private endpoint connection properties. Is either a + PrivateEndpointConnection type or a IO[bytes] type. Required. + :type properties: ~azure.mgmt.cognitiveservices.models.PrivateEndpointConnection or + ~azure.mgmt.cognitiveservices.types.PrivateEndpointConnection or IO[bytes] :return: An instance of AsyncLROPoller that returns PrivateEndpointConnection. The PrivateEndpointConnection is compatible with MutableMapping :rtype: @@ -2751,7 +2756,7 @@ async def list( return deserialized # type: ignore -class DeploymentsOperations: +class DeploymentsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2851,7 +2856,7 @@ async def _create_or_update_initial( resource_group_name: str, account_name: str, deployment_name: str, - deployment: Union[_models.Deployment, JSON, IO[bytes]], + deployment: Union[_models.Deployment, _types.Deployment, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -2963,7 +2968,7 @@ async def begin_create_or_update( resource_group_name: str, account_name: str, deployment_name: str, - deployment: JSON, + deployment: _types.Deployment, *, content_type: str = "application/json", **kwargs: Any @@ -2979,7 +2984,7 @@ async def begin_create_or_update( Account. Required. :type deployment_name: str :param deployment: The deployment properties. Required. - :type deployment: JSON + :type deployment: ~azure.mgmt.cognitiveservices.types.Deployment :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -3027,7 +3032,7 @@ async def begin_create_or_update( resource_group_name: str, account_name: str, deployment_name: str, - deployment: Union[_models.Deployment, JSON, IO[bytes]], + deployment: Union[_models.Deployment, _types.Deployment, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.Deployment]: """Update the state of specified deployments associated with the Cognitive Services account. @@ -3040,9 +3045,10 @@ async def begin_create_or_update( :param deployment_name: The name of the deployment associated with the Cognitive Services Account. Required. :type deployment_name: str - :param deployment: The deployment properties. Is one of the following types: Deployment, JSON, - IO[bytes] Required. - :type deployment: ~azure.mgmt.cognitiveservices.models.Deployment or JSON or IO[bytes] + :param deployment: The deployment properties. Is either a Deployment type or a IO[bytes] type. + Required. + :type deployment: ~azure.mgmt.cognitiveservices.models.Deployment or + ~azure.mgmt.cognitiveservices.types.Deployment or IO[bytes] :return: An instance of AsyncLROPoller that returns Deployment. The Deployment is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.Deployment] @@ -3106,7 +3112,7 @@ async def _update_initial( resource_group_name: str, account_name: str, deployment_name: str, - deployment: Union[_models.PatchResourceTagsAndSku, JSON, IO[bytes]], + deployment: Union[_models.PatchResourceTagsAndSku, _types.PatchResourceTagsAndSku, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -3216,7 +3222,7 @@ async def begin_update( resource_group_name: str, account_name: str, deployment_name: str, - deployment: JSON, + deployment: _types.PatchResourceTagsAndSku, *, content_type: str = "application/json", **kwargs: Any @@ -3232,7 +3238,7 @@ async def begin_update( Account. Required. :type deployment_name: str :param deployment: The deployment properties. Required. - :type deployment: JSON + :type deployment: ~azure.mgmt.cognitiveservices.types.PatchResourceTagsAndSku :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -3280,7 +3286,7 @@ async def begin_update( resource_group_name: str, account_name: str, deployment_name: str, - deployment: Union[_models.PatchResourceTagsAndSku, JSON, IO[bytes]], + deployment: Union[_models.PatchResourceTagsAndSku, _types.PatchResourceTagsAndSku, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.Deployment]: """Update specified deployments associated with the Cognitive Services account. @@ -3293,10 +3299,10 @@ async def begin_update( :param deployment_name: The name of the deployment associated with the Cognitive Services Account. Required. :type deployment_name: str - :param deployment: The deployment properties. Is one of the following types: - PatchResourceTagsAndSku, JSON, IO[bytes] Required. - :type deployment: ~azure.mgmt.cognitiveservices.models.PatchResourceTagsAndSku or JSON or - IO[bytes] + :param deployment: The deployment properties. Is either a PatchResourceTagsAndSku type or a + IO[bytes] type. Required. + :type deployment: ~azure.mgmt.cognitiveservices.models.PatchResourceTagsAndSku or + ~azure.mgmt.cognitiveservices.types.PatchResourceTagsAndSku or IO[bytes] :return: An instance of AsyncLROPoller that returns Deployment. The Deployment is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.Deployment] @@ -3850,7 +3856,7 @@ async def resume( return deserialized # type: ignore -class CommitmentPlansOperations: +class CommitmentPlansOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -3982,7 +3988,7 @@ async def create_or_update( resource_group_name: str, account_name: str, commitment_plan_name: str, - commitment_plan: JSON, + commitment_plan: _types.CommitmentPlan, *, content_type: str = "application/json", **kwargs: Any @@ -3998,7 +4004,7 @@ async def create_or_update( Services Account. Required. :type commitment_plan_name: str :param commitment_plan: The commitmentPlan properties. Required. - :type commitment_plan: JSON + :type commitment_plan: ~azure.mgmt.cognitiveservices.types.CommitmentPlan :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -4044,7 +4050,7 @@ async def create_or_update( resource_group_name: str, account_name: str, commitment_plan_name: str, - commitment_plan: Union[_models.CommitmentPlan, JSON, IO[bytes]], + commitment_plan: Union[_models.CommitmentPlan, _types.CommitmentPlan, IO[bytes]], **kwargs: Any ) -> _models.CommitmentPlan: """Update the state of specified commitmentPlans associated with the Cognitive Services account. @@ -4057,9 +4063,10 @@ async def create_or_update( :param commitment_plan_name: The name of the commitmentPlan associated with the Cognitive Services Account. Required. :type commitment_plan_name: str - :param commitment_plan: The commitmentPlan properties. Is one of the following types: - CommitmentPlan, JSON, IO[bytes] Required. - :type commitment_plan: ~azure.mgmt.cognitiveservices.models.CommitmentPlan or JSON or IO[bytes] + :param commitment_plan: The commitmentPlan properties. Is either a CommitmentPlan type or a + IO[bytes] type. Required. + :type commitment_plan: ~azure.mgmt.cognitiveservices.models.CommitmentPlan or + ~azure.mgmt.cognitiveservices.types.CommitmentPlan or IO[bytes] :return: CommitmentPlan. The CommitmentPlan is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.CommitmentPlan :raises ~azure.core.exceptions.HttpResponseError: @@ -4437,7 +4444,7 @@ async def _create_or_update_plan_initial( self, resource_group_name: str, commitment_plan_name: str, - commitment_plan: Union[_models.CommitmentPlan, JSON, IO[bytes]], + commitment_plan: Union[_models.CommitmentPlan, _types.CommitmentPlan, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -4544,7 +4551,7 @@ async def begin_create_or_update_plan( self, resource_group_name: str, commitment_plan_name: str, - commitment_plan: JSON, + commitment_plan: _types.CommitmentPlan, *, content_type: str = "application/json", **kwargs: Any @@ -4558,7 +4565,7 @@ async def begin_create_or_update_plan( Services Account. Required. :type commitment_plan_name: str :param commitment_plan: The parameters to provide for the created commitment plan. Required. - :type commitment_plan: JSON + :type commitment_plan: ~azure.mgmt.cognitiveservices.types.CommitmentPlan :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -4602,7 +4609,7 @@ async def begin_create_or_update_plan( self, resource_group_name: str, commitment_plan_name: str, - commitment_plan: Union[_models.CommitmentPlan, JSON, IO[bytes]], + commitment_plan: Union[_models.CommitmentPlan, _types.CommitmentPlan, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.CommitmentPlan]: """Create Cognitive Services commitment plan. @@ -4613,9 +4620,10 @@ async def begin_create_or_update_plan( :param commitment_plan_name: The name of the commitmentPlan associated with the Cognitive Services Account. Required. :type commitment_plan_name: str - :param commitment_plan: The parameters to provide for the created commitment plan. Is one of - the following types: CommitmentPlan, JSON, IO[bytes] Required. - :type commitment_plan: ~azure.mgmt.cognitiveservices.models.CommitmentPlan or JSON or IO[bytes] + :param commitment_plan: The parameters to provide for the created commitment plan. Is either a + CommitmentPlan type or a IO[bytes] type. Required. + :type commitment_plan: ~azure.mgmt.cognitiveservices.models.CommitmentPlan or + ~azure.mgmt.cognitiveservices.types.CommitmentPlan or IO[bytes] :return: An instance of AsyncLROPoller that returns CommitmentPlan. The CommitmentPlan is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.CommitmentPlan] @@ -4677,7 +4685,7 @@ async def _update_plan_initial( self, resource_group_name: str, commitment_plan_name: str, - commitment_plan: Union[_models.PatchResourceTagsAndSku, JSON, IO[bytes]], + commitment_plan: Union[_models.PatchResourceTagsAndSku, _types.PatchResourceTagsAndSku, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -4782,7 +4790,7 @@ async def begin_update_plan( self, resource_group_name: str, commitment_plan_name: str, - commitment_plan: JSON, + commitment_plan: _types.PatchResourceTagsAndSku, *, content_type: str = "application/json", **kwargs: Any @@ -4796,7 +4804,7 @@ async def begin_update_plan( Services Account. Required. :type commitment_plan_name: str :param commitment_plan: The parameters to provide for the created commitment plan. Required. - :type commitment_plan: JSON + :type commitment_plan: ~azure.mgmt.cognitiveservices.types.PatchResourceTagsAndSku :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -4840,7 +4848,7 @@ async def begin_update_plan( self, resource_group_name: str, commitment_plan_name: str, - commitment_plan: Union[_models.PatchResourceTagsAndSku, JSON, IO[bytes]], + commitment_plan: Union[_models.PatchResourceTagsAndSku, _types.PatchResourceTagsAndSku, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.CommitmentPlan]: """Create Cognitive Services commitment plan. @@ -4851,10 +4859,10 @@ async def begin_update_plan( :param commitment_plan_name: The name of the commitmentPlan associated with the Cognitive Services Account. Required. :type commitment_plan_name: str - :param commitment_plan: The parameters to provide for the created commitment plan. Is one of - the following types: PatchResourceTagsAndSku, JSON, IO[bytes] Required. - :type commitment_plan: ~azure.mgmt.cognitiveservices.models.PatchResourceTagsAndSku or JSON or - IO[bytes] + :param commitment_plan: The parameters to provide for the created commitment plan. Is either a + PatchResourceTagsAndSku type or a IO[bytes] type. Required. + :type commitment_plan: ~azure.mgmt.cognitiveservices.models.PatchResourceTagsAndSku or + ~azure.mgmt.cognitiveservices.types.PatchResourceTagsAndSku or IO[bytes] :return: An instance of AsyncLROPoller that returns CommitmentPlan. The CommitmentPlan is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.CommitmentPlan] @@ -5310,7 +5318,9 @@ async def _create_or_update_association_initial( resource_group_name: str, commitment_plan_name: str, commitment_plan_association_name: str, - association: Union[_models.CommitmentPlanAccountAssociation, JSON, IO[bytes]], + association: Union[ + _models.CommitmentPlanAccountAssociation, _types.CommitmentPlanAccountAssociation, IO[bytes] + ], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -5424,7 +5434,7 @@ async def begin_create_or_update_association( resource_group_name: str, commitment_plan_name: str, commitment_plan_association_name: str, - association: JSON, + association: _types.CommitmentPlanAccountAssociation, *, content_type: str = "application/json", **kwargs: Any @@ -5441,7 +5451,7 @@ async def begin_create_or_update_association( Cognitive Services Account. Required. :type commitment_plan_association_name: str :param association: The commitmentPlan properties. Required. - :type association: JSON + :type association: ~azure.mgmt.cognitiveservices.types.CommitmentPlanAccountAssociation :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -5492,7 +5502,9 @@ async def begin_create_or_update_association( resource_group_name: str, commitment_plan_name: str, commitment_plan_association_name: str, - association: Union[_models.CommitmentPlanAccountAssociation, JSON, IO[bytes]], + association: Union[ + _models.CommitmentPlanAccountAssociation, _types.CommitmentPlanAccountAssociation, IO[bytes] + ], **kwargs: Any ) -> AsyncLROPoller[_models.CommitmentPlanAccountAssociation]: """Create or update the association of the Cognitive Services commitment plan. @@ -5506,10 +5518,10 @@ async def begin_create_or_update_association( :param commitment_plan_association_name: The name of the commitment plan association with the Cognitive Services Account. Required. :type commitment_plan_association_name: str - :param association: The commitmentPlan properties. Is one of the following types: - CommitmentPlanAccountAssociation, JSON, IO[bytes] Required. + :param association: The commitmentPlan properties. Is either a CommitmentPlanAccountAssociation + type or a IO[bytes] type. Required. :type association: ~azure.mgmt.cognitiveservices.models.CommitmentPlanAccountAssociation or - JSON or IO[bytes] + ~azure.mgmt.cognitiveservices.types.CommitmentPlanAccountAssociation or IO[bytes] :return: An instance of AsyncLROPoller that returns CommitmentPlanAccountAssociation. The CommitmentPlanAccountAssociation is compatible with MutableMapping :rtype: @@ -5800,7 +5812,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class EncryptionScopesOperations: +class EncryptionScopesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -5932,7 +5944,7 @@ async def create_or_update( resource_group_name: str, account_name: str, encryption_scope_name: str, - encryption_scope: JSON, + encryption_scope: _types.EncryptionScope, *, content_type: str = "application/json", **kwargs: Any @@ -5948,7 +5960,7 @@ async def create_or_update( Services Account. Required. :type encryption_scope_name: str :param encryption_scope: The encryptionScope properties. Required. - :type encryption_scope: JSON + :type encryption_scope: ~azure.mgmt.cognitiveservices.types.EncryptionScope :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -5994,7 +6006,7 @@ async def create_or_update( resource_group_name: str, account_name: str, encryption_scope_name: str, - encryption_scope: Union[_models.EncryptionScope, JSON, IO[bytes]], + encryption_scope: Union[_models.EncryptionScope, _types.EncryptionScope, IO[bytes]], **kwargs: Any ) -> _models.EncryptionScope: """Update the state of specified encryptionScope associated with the Cognitive Services account. @@ -6007,10 +6019,10 @@ async def create_or_update( :param encryption_scope_name: The name of the encryptionScope associated with the Cognitive Services Account. Required. :type encryption_scope_name: str - :param encryption_scope: The encryptionScope properties. Is one of the following types: - EncryptionScope, JSON, IO[bytes] Required. - :type encryption_scope: ~azure.mgmt.cognitiveservices.models.EncryptionScope or JSON or - IO[bytes] + :param encryption_scope: The encryptionScope properties. Is either a EncryptionScope type or a + IO[bytes] type. Required. + :type encryption_scope: ~azure.mgmt.cognitiveservices.models.EncryptionScope or + ~azure.mgmt.cognitiveservices.types.EncryptionScope or IO[bytes] :return: EncryptionScope. The EncryptionScope is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.EncryptionScope :raises ~azure.core.exceptions.HttpResponseError: @@ -6312,7 +6324,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class RaiPoliciesOperations: +class RaiPoliciesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -6444,7 +6456,7 @@ async def create_or_update( resource_group_name: str, account_name: str, rai_policy_name: str, - rai_policy: JSON, + rai_policy: _types.RaiPolicy, *, content_type: str = "application/json", **kwargs: Any @@ -6460,7 +6472,7 @@ async def create_or_update( Account. Required. :type rai_policy_name: str :param rai_policy: Properties describing the Content Filters. Required. - :type rai_policy: JSON + :type rai_policy: ~azure.mgmt.cognitiveservices.types.RaiPolicy :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -6506,7 +6518,7 @@ async def create_or_update( resource_group_name: str, account_name: str, rai_policy_name: str, - rai_policy: Union[_models.RaiPolicy, JSON, IO[bytes]], + rai_policy: Union[_models.RaiPolicy, _types.RaiPolicy, IO[bytes]], **kwargs: Any ) -> _models.RaiPolicy: """Update the state of specified Content Filters associated with the Azure OpenAI account. @@ -6519,9 +6531,10 @@ async def create_or_update( :param rai_policy_name: The name of the RaiPolicy associated with the Cognitive Services Account. Required. :type rai_policy_name: str - :param rai_policy: Properties describing the Content Filters. Is one of the following types: - RaiPolicy, JSON, IO[bytes] Required. - :type rai_policy: ~azure.mgmt.cognitiveservices.models.RaiPolicy or JSON or IO[bytes] + :param rai_policy: Properties describing the Content Filters. Is either a RaiPolicy type or a + IO[bytes] type. Required. + :type rai_policy: ~azure.mgmt.cognitiveservices.models.RaiPolicy or + ~azure.mgmt.cognitiveservices.types.RaiPolicy or IO[bytes] :return: RaiPolicy. The RaiPolicy is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.RaiPolicy :raises ~azure.core.exceptions.HttpResponseError: @@ -6820,7 +6833,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class SubscriptionRaiPolicyOperations: +class SubscriptionRaiPolicyOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -6932,7 +6945,12 @@ async def create_or_update( @overload async def create_or_update( - self, rai_policy_name: str, rai_policy: JSON, *, content_type: str = "application/json", **kwargs: Any + self, + rai_policy_name: str, + rai_policy: _types.RaiPolicy, + *, + content_type: str = "application/json", + **kwargs: Any ) -> _models.RaiPolicy: """Update the state of specified Content Filters associated with the subscription. @@ -6940,7 +6958,7 @@ async def create_or_update( Account. Required. :type rai_policy_name: str :param rai_policy: Properties describing the Content Filters. Required. - :type rai_policy: JSON + :type rai_policy: ~azure.mgmt.cognitiveservices.types.RaiPolicy :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -6970,16 +6988,17 @@ async def create_or_update( @distributed_trace_async async def create_or_update( - self, rai_policy_name: str, rai_policy: Union[_models.RaiPolicy, JSON, IO[bytes]], **kwargs: Any + self, rai_policy_name: str, rai_policy: Union[_models.RaiPolicy, _types.RaiPolicy, IO[bytes]], **kwargs: Any ) -> _models.RaiPolicy: """Update the state of specified Content Filters associated with the subscription. :param rai_policy_name: The name of the RaiPolicy associated with the Cognitive Services Account. Required. :type rai_policy_name: str - :param rai_policy: Properties describing the Content Filters. Is one of the following types: - RaiPolicy, JSON, IO[bytes] Required. - :type rai_policy: ~azure.mgmt.cognitiveservices.models.RaiPolicy or JSON or IO[bytes] + :param rai_policy: Properties describing the Content Filters. Is either a RaiPolicy type or a + IO[bytes] type. Required. + :type rai_policy: ~azure.mgmt.cognitiveservices.models.RaiPolicy or + ~azure.mgmt.cognitiveservices.types.RaiPolicy or IO[bytes] :return: RaiPolicy. The RaiPolicy is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.RaiPolicy :raises ~azure.core.exceptions.HttpResponseError: @@ -7159,7 +7178,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class RaiBlocklistItemsOperations: +class RaiBlocklistItemsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -7305,7 +7324,7 @@ async def create_or_update( account_name: str, rai_blocklist_name: str, rai_blocklist_item_name: str, - rai_blocklist_item: JSON, + rai_blocklist_item: _types.RaiBlocklistItem, *, content_type: str = "application/json", **kwargs: Any @@ -7324,7 +7343,7 @@ async def create_or_update( blocklist. Required. :type rai_blocklist_item_name: str :param rai_blocklist_item: Properties describing the custom blocklist. Required. - :type rai_blocklist_item: JSON + :type rai_blocklist_item: ~azure.mgmt.cognitiveservices.types.RaiBlocklistItem :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -7375,7 +7394,7 @@ async def create_or_update( account_name: str, rai_blocklist_name: str, rai_blocklist_item_name: str, - rai_blocklist_item: Union[_models.RaiBlocklistItem, JSON, IO[bytes]], + rai_blocklist_item: Union[_models.RaiBlocklistItem, _types.RaiBlocklistItem, IO[bytes]], **kwargs: Any ) -> _models.RaiBlocklistItem: """Update the state of specified blocklist item associated with the Azure OpenAI account. @@ -7391,10 +7410,10 @@ async def create_or_update( :param rai_blocklist_item_name: The name of the RaiBlocklist Item associated with the custom blocklist. Required. :type rai_blocklist_item_name: str - :param rai_blocklist_item: Properties describing the custom blocklist. Is one of the following - types: RaiBlocklistItem, JSON, IO[bytes] Required. - :type rai_blocklist_item: ~azure.mgmt.cognitiveservices.models.RaiBlocklistItem or JSON or - IO[bytes] + :param rai_blocklist_item: Properties describing the custom blocklist. Is either a + RaiBlocklistItem type or a IO[bytes] type. Required. + :type rai_blocklist_item: ~azure.mgmt.cognitiveservices.models.RaiBlocklistItem or + ~azure.mgmt.cognitiveservices.types.RaiBlocklistItem or IO[bytes] :return: RaiBlocklistItem. The RaiBlocklistItem is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.RaiBlocklistItem :raises ~azure.core.exceptions.HttpResponseError: @@ -7753,7 +7772,7 @@ async def batch_add( resource_group_name: str, account_name: str, rai_blocklist_name: str, - rai_blocklist_items: List[JSON], + rai_blocklist_items: List[_types.RaiBlocklistItemBulkRequest], *, content_type: str = "application/json", **kwargs: Any @@ -7769,7 +7788,8 @@ async def batch_add( Account. Required. :type rai_blocklist_name: str :param rai_blocklist_items: Properties describing the custom blocklist items. Required. - :type rai_blocklist_items: list[JSON] + :type rai_blocklist_items: + list[~azure.mgmt.cognitiveservices.types.RaiBlocklistItemBulkRequest] :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -7815,7 +7835,9 @@ async def batch_add( resource_group_name: str, account_name: str, rai_blocklist_name: str, - rai_blocklist_items: Union[List[_models.RaiBlocklistItemBulkRequest], List[JSON], IO[bytes]], + rai_blocklist_items: Union[ + List[_models.RaiBlocklistItemBulkRequest], List[_types.RaiBlocklistItemBulkRequest], IO[bytes] + ], **kwargs: Any ) -> _models.RaiBlocklist: """Batch operation to add blocklist items. @@ -7828,11 +7850,11 @@ async def batch_add( :param rai_blocklist_name: The name of the RaiBlocklist associated with the Cognitive Services Account. Required. :type rai_blocklist_name: str - :param rai_blocklist_items: Properties describing the custom blocklist items. Is one of the - following types: [RaiBlocklistItemBulkRequest], [JSON], IO[bytes] Required. + :param rai_blocklist_items: Properties describing the custom blocklist items. Is either a + [RaiBlocklistItemBulkRequest] type or a IO[bytes] type. Required. :type rai_blocklist_items: - list[~azure.mgmt.cognitiveservices.models.RaiBlocklistItemBulkRequest] or list[JSON] or - IO[bytes] + list[~azure.mgmt.cognitiveservices.models.RaiBlocklistItemBulkRequest] or + list[~azure.mgmt.cognitiveservices.types.RaiBlocklistItemBulkRequest] or IO[bytes] :return: RaiBlocklist. The RaiBlocklist is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.RaiBlocklist :raises ~azure.core.exceptions.HttpResponseError: @@ -8049,7 +8071,7 @@ async def batch_delete( return cls(pipeline_response, None, {}) # type: ignore -class RaiBlocklistsOperations: +class RaiBlocklistsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -8181,7 +8203,7 @@ async def create_or_update( resource_group_name: str, account_name: str, rai_blocklist_name: str, - rai_blocklist: JSON, + rai_blocklist: _types.RaiBlocklist, *, content_type: str = "application/json", **kwargs: Any @@ -8197,7 +8219,7 @@ async def create_or_update( Account. Required. :type rai_blocklist_name: str :param rai_blocklist: Properties describing the custom blocklist. Required. - :type rai_blocklist: JSON + :type rai_blocklist: ~azure.mgmt.cognitiveservices.types.RaiBlocklist :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -8243,7 +8265,7 @@ async def create_or_update( resource_group_name: str, account_name: str, rai_blocklist_name: str, - rai_blocklist: Union[_models.RaiBlocklist, JSON, IO[bytes]], + rai_blocklist: Union[_models.RaiBlocklist, _types.RaiBlocklist, IO[bytes]], **kwargs: Any ) -> _models.RaiBlocklist: """Update the state of specified blocklist associated with the Azure OpenAI account. @@ -8256,9 +8278,10 @@ async def create_or_update( :param rai_blocklist_name: The name of the RaiBlocklist associated with the Cognitive Services Account. Required. :type rai_blocklist_name: str - :param rai_blocklist: Properties describing the custom blocklist. Is one of the following - types: RaiBlocklist, JSON, IO[bytes] Required. - :type rai_blocklist: ~azure.mgmt.cognitiveservices.models.RaiBlocklist or JSON or IO[bytes] + :param rai_blocklist: Properties describing the custom blocklist. Is either a RaiBlocklist type + or a IO[bytes] type. Required. + :type rai_blocklist: ~azure.mgmt.cognitiveservices.models.RaiBlocklist or + ~azure.mgmt.cognitiveservices.types.RaiBlocklist or IO[bytes] :return: RaiBlocklist. The RaiBlocklist is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.RaiBlocklist :raises ~azure.core.exceptions.HttpResponseError: @@ -8560,7 +8583,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class RaiTopicsOperations: +class RaiTopicsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -8692,7 +8715,7 @@ async def create_or_update( resource_group_name: str, account_name: str, rai_topic_name: str, - rai_topic: JSON, + rai_topic: _types.RaiTopic, *, content_type: str = "application/json", **kwargs: Any @@ -8708,7 +8731,7 @@ async def create_or_update( Account. Required. :type rai_topic_name: str :param rai_topic: Properties describing the rai topic. Required. - :type rai_topic: JSON + :type rai_topic: ~azure.mgmt.cognitiveservices.types.RaiTopic :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -8754,7 +8777,7 @@ async def create_or_update( resource_group_name: str, account_name: str, rai_topic_name: str, - rai_topic: Union[_models.RaiTopic, JSON, IO[bytes]], + rai_topic: Union[_models.RaiTopic, _types.RaiTopic, IO[bytes]], **kwargs: Any ) -> _models.RaiTopic: """Create the rai topic associated with the Azure OpenAI account. @@ -8767,9 +8790,10 @@ async def create_or_update( :param rai_topic_name: The name of the Rai Topic associated with the Cognitive Services Account. Required. :type rai_topic_name: str - :param rai_topic: Properties describing the rai topic. Is one of the following types: RaiTopic, - JSON, IO[bytes] Required. - :type rai_topic: ~azure.mgmt.cognitiveservices.models.RaiTopic or JSON or IO[bytes] + :param rai_topic: Properties describing the rai topic. Is either a RaiTopic type or a IO[bytes] + type. Required. + :type rai_topic: ~azure.mgmt.cognitiveservices.models.RaiTopic or + ~azure.mgmt.cognitiveservices.types.RaiTopic or IO[bytes] :return: RaiTopic. The RaiTopic is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.RaiTopic :raises ~azure.core.exceptions.HttpResponseError: @@ -9068,7 +9092,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class RaiToolLabelsOperations: +class RaiToolLabelsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -9198,7 +9222,7 @@ async def create_or_update( resource_group_name: str, account_name: str, rai_tool_connection_name: str, - rai_tool_label: JSON, + rai_tool_label: _types.RaiToolLabel, *, content_type: str = "application/json", **kwargs: Any @@ -9213,7 +9237,7 @@ async def create_or_update( :param rai_tool_connection_name: The name of the Rai Tool Label. Required. :type rai_tool_connection_name: str :param rai_tool_label: Properties describing the RAI Tool Label. Required. - :type rai_tool_label: JSON + :type rai_tool_label: ~azure.mgmt.cognitiveservices.types.RaiToolLabel :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -9258,7 +9282,7 @@ async def create_or_update( resource_group_name: str, account_name: str, rai_tool_connection_name: str, - rai_tool_label: Union[_models.RaiToolLabel, JSON, IO[bytes]], + rai_tool_label: Union[_models.RaiToolLabel, _types.RaiToolLabel, IO[bytes]], **kwargs: Any ) -> _models.RaiToolLabel: """Creates the RAI Tool Label associated with the Azure OpenAI account. @@ -9270,9 +9294,10 @@ async def create_or_update( :type account_name: str :param rai_tool_connection_name: The name of the Rai Tool Label. Required. :type rai_tool_connection_name: str - :param rai_tool_label: Properties describing the RAI Tool Label. Is one of the following types: - RaiToolLabel, JSON, IO[bytes] Required. - :type rai_tool_label: ~azure.mgmt.cognitiveservices.models.RaiToolLabel or JSON or IO[bytes] + :param rai_tool_label: Properties describing the RAI Tool Label. Is either a RaiToolLabel type + or a IO[bytes] type. Required. + :type rai_tool_label: ~azure.mgmt.cognitiveservices.models.RaiToolLabel or + ~azure.mgmt.cognitiveservices.types.RaiToolLabel or IO[bytes] :return: RaiToolLabel. The RaiToolLabel is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.RaiToolLabel :raises ~azure.core.exceptions.HttpResponseError: @@ -9573,7 +9598,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class RaiContentFiltersOperations: +class RaiContentFiltersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -9759,7 +9784,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class NetworkSecurityPerimeterConfigurationsOperations: # pylint: disable=name-too-long +class NetworkSecurityPerimeterConfigurationsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -10089,7 +10114,7 @@ def get_long_running_output(pipeline_response): ) -class DefenderForAISettingsOperations: +class DefenderForAISettingsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -10219,7 +10244,7 @@ async def create_or_update( resource_group_name: str, account_name: str, defender_for_ai_setting_name: str, - defender_for_ai_settings: JSON, + defender_for_ai_settings: _types.DefenderForAISetting, *, content_type: str = "application/json", **kwargs: Any @@ -10234,7 +10259,7 @@ async def create_or_update( :param defender_for_ai_setting_name: The name of the defender for AI setting. Required. :type defender_for_ai_setting_name: str :param defender_for_ai_settings: Properties describing the Defender for AI setting. Required. - :type defender_for_ai_settings: JSON + :type defender_for_ai_settings: ~azure.mgmt.cognitiveservices.types.DefenderForAISetting :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -10279,7 +10304,7 @@ async def create_or_update( resource_group_name: str, account_name: str, defender_for_ai_setting_name: str, - defender_for_ai_settings: Union[_models.DefenderForAISetting, JSON, IO[bytes]], + defender_for_ai_settings: Union[_models.DefenderForAISetting, _types.DefenderForAISetting, IO[bytes]], **kwargs: Any ) -> _models.DefenderForAISetting: """Creates or Updates the specified Defender for AI setting. @@ -10291,10 +10316,10 @@ async def create_or_update( :type account_name: str :param defender_for_ai_setting_name: The name of the defender for AI setting. Required. :type defender_for_ai_setting_name: str - :param defender_for_ai_settings: Properties describing the Defender for AI setting. Is one of - the following types: DefenderForAISetting, JSON, IO[bytes] Required. + :param defender_for_ai_settings: Properties describing the Defender for AI setting. Is either a + DefenderForAISetting type or a IO[bytes] type. Required. :type defender_for_ai_settings: ~azure.mgmt.cognitiveservices.models.DefenderForAISetting or - JSON or IO[bytes] + ~azure.mgmt.cognitiveservices.types.DefenderForAISetting or IO[bytes] :return: DefenderForAISetting. The DefenderForAISetting is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.DefenderForAISetting :raises ~azure.core.exceptions.HttpResponseError: @@ -10403,7 +10428,7 @@ async def update( resource_group_name: str, account_name: str, defender_for_ai_setting_name: str, - defender_for_ai_settings: JSON, + defender_for_ai_settings: _types.DefenderForAISetting, *, content_type: str = "application/json", **kwargs: Any @@ -10418,7 +10443,7 @@ async def update( :param defender_for_ai_setting_name: The name of the defender for AI setting. Required. :type defender_for_ai_setting_name: str :param defender_for_ai_settings: Properties describing the Defender for AI setting. Required. - :type defender_for_ai_settings: JSON + :type defender_for_ai_settings: ~azure.mgmt.cognitiveservices.types.DefenderForAISetting :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -10463,7 +10488,7 @@ async def update( resource_group_name: str, account_name: str, defender_for_ai_setting_name: str, - defender_for_ai_settings: Union[_models.DefenderForAISetting, JSON, IO[bytes]], + defender_for_ai_settings: Union[_models.DefenderForAISetting, _types.DefenderForAISetting, IO[bytes]], **kwargs: Any ) -> _models.DefenderForAISetting: """Updates the specified Defender for AI setting. @@ -10475,10 +10500,10 @@ async def update( :type account_name: str :param defender_for_ai_setting_name: The name of the defender for AI setting. Required. :type defender_for_ai_setting_name: str - :param defender_for_ai_settings: Properties describing the Defender for AI setting. Is one of - the following types: DefenderForAISetting, JSON, IO[bytes] Required. + :param defender_for_ai_settings: Properties describing the Defender for AI setting. Is either a + DefenderForAISetting type or a IO[bytes] type. Required. :type defender_for_ai_settings: ~azure.mgmt.cognitiveservices.models.DefenderForAISetting or - JSON or IO[bytes] + ~azure.mgmt.cognitiveservices.types.DefenderForAISetting or IO[bytes] :return: DefenderForAISetting. The DefenderForAISetting is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.DefenderForAISetting :raises ~azure.core.exceptions.HttpResponseError: @@ -10655,7 +10680,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ProjectsOperations: +class ProjectsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -10754,7 +10779,7 @@ async def _create_initial( resource_group_name: str, account_name: str, project_name: str, - project: Union[_models.Project, JSON, IO[bytes]], + project: Union[_models.Project, _types.Project, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -10867,7 +10892,7 @@ async def begin_create( resource_group_name: str, account_name: str, project_name: str, - project: JSON, + project: _types.Project, *, content_type: str = "application/json", **kwargs: Any @@ -10883,7 +10908,7 @@ async def begin_create( :param project_name: The name of Cognitive Services account's project. Required. :type project_name: str :param project: The parameters to provide for the created project. Required. - :type project: JSON + :type project: ~azure.mgmt.cognitiveservices.types.Project :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -10931,7 +10956,7 @@ async def begin_create( resource_group_name: str, account_name: str, project_name: str, - project: Union[_models.Project, JSON, IO[bytes]], + project: Union[_models.Project, _types.Project, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.Project]: """Create Cognitive Services Account's Project. Project is a sub-resource of an account which give @@ -10944,9 +10969,10 @@ async def begin_create( :type account_name: str :param project_name: The name of Cognitive Services account's project. Required. :type project_name: str - :param project: The parameters to provide for the created project. Is one of the following - types: Project, JSON, IO[bytes] Required. - :type project: ~azure.mgmt.cognitiveservices.models.Project or JSON or IO[bytes] + :param project: The parameters to provide for the created project. Is either a Project type or + a IO[bytes] type. Required. + :type project: ~azure.mgmt.cognitiveservices.models.Project or + ~azure.mgmt.cognitiveservices.types.Project or IO[bytes] :return: An instance of AsyncLROPoller that returns Project. The Project is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.Project] @@ -11010,7 +11036,7 @@ async def _update_initial( resource_group_name: str, account_name: str, project_name: str, - project: Union[_models.Project, JSON, IO[bytes]], + project: Union[_models.Project, _types.Project, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -11118,7 +11144,7 @@ async def begin_update( resource_group_name: str, account_name: str, project_name: str, - project: JSON, + project: _types.Project, *, content_type: str = "application/json", **kwargs: Any @@ -11133,7 +11159,7 @@ async def begin_update( :param project_name: The name of Cognitive Services account's project. Required. :type project_name: str :param project: The parameters to provide for the created project. Required. - :type project: JSON + :type project: ~azure.mgmt.cognitiveservices.types.Project :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -11180,7 +11206,7 @@ async def begin_update( resource_group_name: str, account_name: str, project_name: str, - project: Union[_models.Project, JSON, IO[bytes]], + project: Union[_models.Project, _types.Project, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.Project]: """Updates a Cognitive Services Project. @@ -11192,9 +11218,10 @@ async def begin_update( :type account_name: str :param project_name: The name of Cognitive Services account's project. Required. :type project_name: str - :param project: The parameters to provide for the created project. Is one of the following - types: Project, JSON, IO[bytes] Required. - :type project: ~azure.mgmt.cognitiveservices.models.Project or JSON or IO[bytes] + :param project: The parameters to provide for the created project. Is either a Project type or + a IO[bytes] type. Required. + :type project: ~azure.mgmt.cognitiveservices.models.Project or + ~azure.mgmt.cognitiveservices.types.Project or IO[bytes] :return: An instance of AsyncLROPoller that returns Project. The Project is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.Project] @@ -11478,7 +11505,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ProjectConnectionsOperations: +class ProjectConnectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -11622,7 +11649,7 @@ async def create( account_name: str, project_name: str, connection_name: str, - connection: Optional[JSON] = None, + connection: Optional[_types.ConnectionPropertiesV2BasicResource] = None, *, content_type: str = "application/json", **kwargs: Any @@ -11642,7 +11669,7 @@ async def create( :type connection_name: str :param connection: The object for creating or updating a new account connection. Default value is None. - :type connection: JSON + :type connection: ~azure.mgmt.cognitiveservices.types.ConnectionPropertiesV2BasicResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -11696,7 +11723,9 @@ async def create( account_name: str, project_name: str, connection_name: str, - connection: Optional[Union[_models.ConnectionPropertiesV2BasicResource, JSON, IO[bytes]]] = None, + connection: Optional[ + Union[_models.ConnectionPropertiesV2BasicResource, _types.ConnectionPropertiesV2BasicResource, IO[bytes]] + ] = None, **kwargs: Any ) -> _models.ConnectionPropertiesV2BasicResource: """Create or update Cognitive Services project connection under the specified project. @@ -11712,10 +11741,10 @@ async def create( :type project_name: str :param connection_name: Friendly name of the connection. Required. :type connection_name: str - :param connection: The object for creating or updating a new account connection. Is one of the - following types: ConnectionPropertiesV2BasicResource, JSON, IO[bytes] Default value is None. + :param connection: The object for creating or updating a new account connection. Is either a + ConnectionPropertiesV2BasicResource type or a IO[bytes] type. Default value is None. :type connection: ~azure.mgmt.cognitiveservices.models.ConnectionPropertiesV2BasicResource or - JSON or IO[bytes] + ~azure.mgmt.cognitiveservices.types.ConnectionPropertiesV2BasicResource or IO[bytes] :return: ConnectionPropertiesV2BasicResource. The ConnectionPropertiesV2BasicResource is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.ConnectionPropertiesV2BasicResource @@ -11837,7 +11866,7 @@ async def update( account_name: str, project_name: str, connection_name: str, - connection: Optional[JSON] = None, + connection: Optional[_types.ConnectionUpdateContent] = None, *, content_type: str = "application/json", **kwargs: Any @@ -11856,7 +11885,7 @@ async def update( :param connection_name: Friendly name of the connection. Required. :type connection_name: str :param connection: Parameters for account connection update. Default value is None. - :type connection: JSON + :type connection: ~azure.mgmt.cognitiveservices.types.ConnectionUpdateContent :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -11909,7 +11938,7 @@ async def update( account_name: str, project_name: str, connection_name: str, - connection: Optional[Union[_models.ConnectionUpdateContent, JSON, IO[bytes]]] = None, + connection: Optional[Union[_models.ConnectionUpdateContent, _types.ConnectionUpdateContent, IO[bytes]]] = None, **kwargs: Any ) -> _models.ConnectionPropertiesV2BasicResource: """Update Cognitive Services project connection under the specified project. @@ -11925,10 +11954,10 @@ async def update( :type project_name: str :param connection_name: Friendly name of the connection. Required. :type connection_name: str - :param connection: Parameters for account connection update. Is one of the following types: - ConnectionUpdateContent, JSON, IO[bytes] Default value is None. - :type connection: ~azure.mgmt.cognitiveservices.models.ConnectionUpdateContent or JSON or - IO[bytes] + :param connection: Parameters for account connection update. Is either a + ConnectionUpdateContent type or a IO[bytes] type. Default value is None. + :type connection: ~azure.mgmt.cognitiveservices.models.ConnectionUpdateContent or + ~azure.mgmt.cognitiveservices.types.ConnectionUpdateContent or IO[bytes] :return: ConnectionPropertiesV2BasicResource. The ConnectionPropertiesV2BasicResource is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.ConnectionPropertiesV2BasicResource @@ -12201,7 +12230,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ProjectCapabilityHostsOperations: +class ProjectCapabilityHostsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -12307,7 +12336,7 @@ async def _create_or_update_initial( account_name: str, project_name: str, capability_host_name: str, - capability_host: Union[_models.ProjectCapabilityHost, JSON, IO[bytes]], + capability_host: Union[_models.ProjectCapabilityHost, _types.ProjectCapabilityHost, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -12429,7 +12458,7 @@ async def begin_create_or_update( account_name: str, project_name: str, capability_host_name: str, - capability_host: JSON, + capability_host: _types.ProjectCapabilityHost, *, content_type: str = "application/json", **kwargs: Any @@ -12449,7 +12478,7 @@ async def begin_create_or_update( Services Resource. Required. :type capability_host_name: str :param capability_host: CapabilityHost definition. Required. - :type capability_host: JSON + :type capability_host: ~azure.mgmt.cognitiveservices.types.ProjectCapabilityHost :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -12505,7 +12534,7 @@ async def begin_create_or_update( account_name: str, project_name: str, capability_host_name: str, - capability_host: Union[_models.ProjectCapabilityHost, JSON, IO[bytes]], + capability_host: Union[_models.ProjectCapabilityHost, _types.ProjectCapabilityHost, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.ProjectCapabilityHost]: """Create or update project capabilityHost. @@ -12522,10 +12551,10 @@ async def begin_create_or_update( :param capability_host_name: The name of the capability host associated with the Cognitive Services Resource. Required. :type capability_host_name: str - :param capability_host: CapabilityHost definition. Is one of the following types: - ProjectCapabilityHost, JSON, IO[bytes] Required. - :type capability_host: ~azure.mgmt.cognitiveservices.models.ProjectCapabilityHost or JSON or - IO[bytes] + :param capability_host: CapabilityHost definition. Is either a ProjectCapabilityHost type or a + IO[bytes] type. Required. + :type capability_host: ~azure.mgmt.cognitiveservices.models.ProjectCapabilityHost or + ~azure.mgmt.cognitiveservices.types.ProjectCapabilityHost or IO[bytes] :return: An instance of AsyncLROPoller that returns ProjectCapabilityHost. The ProjectCapabilityHost is compatible with MutableMapping :rtype: @@ -12828,7 +12857,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class QuotaTiersOperations: +class QuotaTiersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -12939,7 +12968,7 @@ async def create_or_update( @overload async def create_or_update( - self, default: str, tier: JSON, *, content_type: str = "application/json", **kwargs: Any + self, default: str, tier: _types.QuotaTier, *, content_type: str = "application/json", **kwargs: Any ) -> _models.QuotaTier: """Updates the Quota Tier resource for a subscription. @@ -12949,7 +12978,7 @@ async def create_or_update( :param default: Default parameter. Leave the value as default. Required. :type default: str :param tier: The parameters to provide for the quota tier resource. Required. - :type tier: JSON + :type tier: ~azure.mgmt.cognitiveservices.types.QuotaTier :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -12981,7 +13010,7 @@ async def create_or_update( @distributed_trace_async async def create_or_update( - self, default: str, tier: Union[_models.QuotaTier, JSON, IO[bytes]], **kwargs: Any + self, default: str, tier: Union[_models.QuotaTier, _types.QuotaTier, IO[bytes]], **kwargs: Any ) -> _models.QuotaTier: """Updates the Quota Tier resource for a subscription. @@ -12990,9 +13019,10 @@ async def create_or_update( :param default: Default parameter. Leave the value as default. Required. :type default: str - :param tier: The parameters to provide for the quota tier resource. Is one of the following - types: QuotaTier, JSON, IO[bytes] Required. - :type tier: ~azure.mgmt.cognitiveservices.models.QuotaTier or JSON or IO[bytes] + :param tier: The parameters to provide for the quota tier resource. Is either a QuotaTier type + or a IO[bytes] type. Required. + :type tier: ~azure.mgmt.cognitiveservices.models.QuotaTier or + ~azure.mgmt.cognitiveservices.types.QuotaTier or IO[bytes] :return: QuotaTier. The QuotaTier is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.QuotaTier :raises ~azure.core.exceptions.HttpResponseError: @@ -13087,7 +13117,7 @@ async def update( @overload async def update( - self, default: str, tier: JSON, *, content_type: str = "application/json", **kwargs: Any + self, default: str, tier: _types.QuotaTier, *, content_type: str = "application/json", **kwargs: Any ) -> _models.QuotaTier: """Updates the Quota Tier resource for a subscription. The only properties that can be updated are "tierUpgradePolicy". @@ -13098,7 +13128,7 @@ async def update( :param default: Default parameter. Leave the value as default. Required. :type default: str :param tier: The parameters to provide for the quota tier resource. Required. - :type tier: JSON + :type tier: ~azure.mgmt.cognitiveservices.types.QuotaTier :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -13131,7 +13161,7 @@ async def update( @distributed_trace_async async def update( - self, default: str, tier: Union[_models.QuotaTier, JSON, IO[bytes]], **kwargs: Any + self, default: str, tier: Union[_models.QuotaTier, _types.QuotaTier, IO[bytes]], **kwargs: Any ) -> _models.QuotaTier: """Updates the Quota Tier resource for a subscription. The only properties that can be updated are "tierUpgradePolicy". @@ -13141,9 +13171,10 @@ async def update( :param default: Default parameter. Leave the value as default. Required. :type default: str - :param tier: The parameters to provide for the quota tier resource. Is one of the following - types: QuotaTier, JSON, IO[bytes] Required. - :type tier: ~azure.mgmt.cognitiveservices.models.QuotaTier or JSON or IO[bytes] + :param tier: The parameters to provide for the quota tier resource. Is either a QuotaTier type + or a IO[bytes] type. Required. + :type tier: ~azure.mgmt.cognitiveservices.models.QuotaTier or + ~azure.mgmt.cognitiveservices.types.QuotaTier or IO[bytes] :return: QuotaTier. The QuotaTier is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.QuotaTier :raises ~azure.core.exceptions.HttpResponseError: @@ -13308,14 +13339,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class AgentApplicationsOperations: +class ArcDeploymentsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.cognitiveservices.aio.CognitiveServicesManagementClient`'s - :attr:`agent_applications` attribute. + :attr:`arc_deployments` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -13328,24 +13359,36 @@ def __init__(self, *args, **kwargs) -> None: self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace_async + @api_version_validation( + method_added_on="2026-07-15-preview", + params_added_on={ + "2026-07-15-preview": [ + "api_version", + "subscription_id", + "resource_group_name", + "account_name", + "deployment_name", + "accept", + ] + }, + api_versions_list=["2026-07-15-preview"], + ) async def get( - self, resource_group_name: str, account_name: str, project_name: str, name: str, **kwargs: Any - ) -> _models.AgentApplication: - """Gets an Agent Application by name. - - Gets an Agent Application by name. + self, resource_group_name: str, account_name: str, deployment_name: str, **kwargs: Any + ) -> _models.ArcDeployment: + """Gets the specified Arc deployment associated with the Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param account_name: The name of Cognitive Services account. Required. :type account_name: str - :param project_name: The name of Cognitive Services account's project. Required. - :type project_name: str - :param name: Name for the Agent Application. Required. - :type name: str - :return: AgentApplication. The AgentApplication is compatible with MutableMapping - :rtype: ~azure.mgmt.cognitiveservices.models.AgentApplication + :param deployment_name: The name of the Arc deployment associated with the Cognitive Services + Account. The name must be unique within the account across deployments, + managedComputeDeployments, and arcDeployments. Required. + :type deployment_name: str + :return: ArcDeployment. The ArcDeployment is compatible with MutableMapping + :rtype: ~azure.mgmt.cognitiveservices.models.ArcDeployment :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -13359,13 +13402,12 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[_models.AgentApplication] = kwargs.pop("cls", None) + cls: ClsType[_models.ArcDeployment] = kwargs.pop("cls", None) - _request = build_agent_applications_get_request( + _request = build_arc_deployments_get_request( resource_group_name=resource_group_name, account_name=account_name, - project_name=project_name, - name=name, + deployment_name=deployment_name, subscription_id=self._config.subscription_id, api_version=self._config.api_version, headers=_headers, @@ -13400,20 +13442,34 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.AgentApplication, response.json()) + deserialized = _deserialize(_models.ArcDeployment, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore + @api_version_validation( + method_added_on="2026-07-15-preview", + params_added_on={ + "2026-07-15-preview": [ + "api_version", + "subscription_id", + "resource_group_name", + "account_name", + "deployment_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2026-07-15-preview"], + ) async def _create_or_update_initial( self, resource_group_name: str, account_name: str, - project_name: str, - name: str, - body: Union[_models.AgentApplication, JSON, IO[bytes]], + deployment_name: str, + resource: Union[_models.ArcDeployment, _types.ArcDeployment, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -13432,16 +13488,15 @@ async def _create_or_update_initial( content_type = content_type or "application/json" _content = None - if isinstance(body, (IOBase, bytes)): - _content = body + if isinstance(resource, (IOBase, bytes)): + _content = resource else: - _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(resource, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_agent_applications_create_or_update_request( + _request = build_arc_deployments_create_or_update_request( resource_group_name=resource_group_name, account_name=account_name, - project_name=project_name, - name=name, + deployment_name=deployment_name, subscription_id=self._config.subscription_id, content_type=content_type, api_version=self._config.api_version, @@ -13476,13 +13531,10 @@ async def _create_or_update_initial( response_headers = {} if response.status_code == 201: - response_headers["location"] = self._deserialize("str", response.headers.get("location")) response_headers["Azure-AsyncOperation"] = self._deserialize( "str", response.headers.get("Azure-AsyncOperation") ) - response_headers["x-ms-async-operation-timeout"] = self._deserialize( - "str", response.headers.get("x-ms-async-operation-timeout") - ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -13496,35 +13548,31 @@ async def begin_create_or_update( self, resource_group_name: str, account_name: str, - project_name: str, - name: str, - body: _models.AgentApplication, + deployment_name: str, + resource: _models.ArcDeployment, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.AgentApplication]: - """Creates or updates an Agent Application (asynchronous). - - Creates or updates an Agent Application (asynchronous). + ) -> AsyncLROPoller[_models.ArcDeployment]: + """Creates or updates an Arc deployment associated with the Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param account_name: The name of Cognitive Services account. Required. :type account_name: str - :param project_name: The name of Cognitive Services account's project. Required. - :type project_name: str - :param name: Name for the Agent Application. Required. - :type name: str - :param body: Agent Application definition object. Required. - :type body: ~azure.mgmt.cognitiveservices.models.AgentApplication + :param deployment_name: The name of the Arc deployment associated with the Cognitive Services + Account. The name must be unique within the account across deployments, + managedComputeDeployments, and arcDeployments. Required. + :type deployment_name: str + :param resource: The Arc deployment properties. Required. + :type resource: ~azure.mgmt.cognitiveservices.models.ArcDeployment :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns AgentApplication. The AgentApplication is + :return: An instance of AsyncLROPoller that returns ArcDeployment. The ArcDeployment is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.AgentApplication] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.ArcDeployment] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -13533,35 +13581,31 @@ async def begin_create_or_update( self, resource_group_name: str, account_name: str, - project_name: str, - name: str, - body: JSON, + deployment_name: str, + resource: _types.ArcDeployment, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.AgentApplication]: - """Creates or updates an Agent Application (asynchronous). - - Creates or updates an Agent Application (asynchronous). + ) -> AsyncLROPoller[_models.ArcDeployment]: + """Creates or updates an Arc deployment associated with the Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param account_name: The name of Cognitive Services account. Required. :type account_name: str - :param project_name: The name of Cognitive Services account's project. Required. - :type project_name: str - :param name: Name for the Agent Application. Required. - :type name: str - :param body: Agent Application definition object. Required. - :type body: JSON + :param deployment_name: The name of the Arc deployment associated with the Cognitive Services + Account. The name must be unique within the account across deployments, + managedComputeDeployments, and arcDeployments. Required. + :type deployment_name: str + :param resource: The Arc deployment properties. Required. + :type resource: ~azure.mgmt.cognitiveservices.types.ArcDeployment :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns AgentApplication. The AgentApplication is + :return: An instance of AsyncLROPoller that returns ArcDeployment. The ArcDeployment is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.AgentApplication] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.ArcDeployment] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -13570,75 +13614,83 @@ async def begin_create_or_update( self, resource_group_name: str, account_name: str, - project_name: str, - name: str, - body: IO[bytes], + deployment_name: str, + resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.AgentApplication]: - """Creates or updates an Agent Application (asynchronous). - - Creates or updates an Agent Application (asynchronous). + ) -> AsyncLROPoller[_models.ArcDeployment]: + """Creates or updates an Arc deployment associated with the Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param account_name: The name of Cognitive Services account. Required. :type account_name: str - :param project_name: The name of Cognitive Services account's project. Required. - :type project_name: str - :param name: Name for the Agent Application. Required. - :type name: str - :param body: Agent Application definition object. Required. - :type body: IO[bytes] + :param deployment_name: The name of the Arc deployment associated with the Cognitive Services + Account. The name must be unique within the account across deployments, + managedComputeDeployments, and arcDeployments. Required. + :type deployment_name: str + :param resource: The Arc deployment properties. Required. + :type resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns AgentApplication. The AgentApplication is + :return: An instance of AsyncLROPoller that returns ArcDeployment. The ArcDeployment is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.AgentApplication] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.ArcDeployment] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async + @api_version_validation( + method_added_on="2026-07-15-preview", + params_added_on={ + "2026-07-15-preview": [ + "api_version", + "subscription_id", + "resource_group_name", + "account_name", + "deployment_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2026-07-15-preview"], + ) async def begin_create_or_update( self, resource_group_name: str, account_name: str, - project_name: str, - name: str, - body: Union[_models.AgentApplication, JSON, IO[bytes]], + deployment_name: str, + resource: Union[_models.ArcDeployment, _types.ArcDeployment, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.AgentApplication]: - """Creates or updates an Agent Application (asynchronous). - - Creates or updates an Agent Application (asynchronous). + ) -> AsyncLROPoller[_models.ArcDeployment]: + """Creates or updates an Arc deployment associated with the Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param account_name: The name of Cognitive Services account. Required. :type account_name: str - :param project_name: The name of Cognitive Services account's project. Required. - :type project_name: str - :param name: Name for the Agent Application. Required. - :type name: str - :param body: Agent Application definition object. Is one of the following types: - AgentApplication, JSON, IO[bytes] Required. - :type body: ~azure.mgmt.cognitiveservices.models.AgentApplication or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns AgentApplication. The AgentApplication is + :param deployment_name: The name of the Arc deployment associated with the Cognitive Services + Account. The name must be unique within the account across deployments, + managedComputeDeployments, and arcDeployments. Required. + :type deployment_name: str + :param resource: The Arc deployment properties. Is either a ArcDeployment type or a IO[bytes] + type. Required. + :type resource: ~azure.mgmt.cognitiveservices.models.ArcDeployment or + ~azure.mgmt.cognitiveservices.types.ArcDeployment or IO[bytes] + :return: An instance of AsyncLROPoller that returns ArcDeployment. The ArcDeployment is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.AgentApplication] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.ArcDeployment] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = kwargs.pop("params", {}) or {} content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AgentApplication] = kwargs.pop("cls", None) + cls: ClsType[_models.ArcDeployment] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) @@ -13646,9 +13698,8 @@ async def begin_create_or_update( raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, account_name=account_name, - project_name=project_name, - name=name, - body=body, + deployment_name=deployment_name, + resource=resource, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, @@ -13660,7 +13711,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.AgentApplication, response.json()) + deserialized = _deserialize(_models.ArcDeployment, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -13678,18 +13729,38 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.AgentApplication].from_continuation_token( + return AsyncLROPoller[_models.ArcDeployment].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.AgentApplication]( + return AsyncLROPoller[_models.ArcDeployment]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - async def _delete_initial( - self, resource_group_name: str, account_name: str, project_name: str, name: str, **kwargs: Any + @api_version_validation( + method_added_on="2026-07-15-preview", + params_added_on={ + "2026-07-15-preview": [ + "api_version", + "subscription_id", + "resource_group_name", + "account_name", + "deployment_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2026-07-15-preview"], + ) + async def _update_initial( + self, + resource_group_name: str, + account_name: str, + deployment_name: str, + properties: Union[_models.ArcDeploymentUpdate, _types.ArcDeploymentUpdate, IO[bytes]], + **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -13699,18 +13770,27 @@ async def _delete_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = kwargs.pop("params", {}) or {} + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_agent_applications_delete_request( + content_type = content_type or "application/json" + _content = None + if isinstance(properties, (IOBase, bytes)): + _content = properties + else: + _content = json.dumps(properties, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_arc_deployments_update_request( resource_group_name=resource_group_name, account_name=account_name, - project_name=project_name, - name=name, + deployment_name=deployment_name, subscription_id=self._config.subscription_id, + content_type=content_type, api_version=self._config.api_version, + content=_content, headers=_headers, params=_params, ) @@ -13727,7 +13807,7 @@ async def _delete_initial( response = pipeline_response.http_response - if response.status_code not in [202, 204]: + if response.status_code not in [200, 202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -13742,7 +13822,9 @@ async def _delete_initial( response_headers = {} if response.status_code == 202: response_headers["location"] = self._deserialize("str", response.headers.get("location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -13751,40 +13833,945 @@ async def _delete_initial( return deserialized # type: ignore - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, account_name: str, project_name: str, name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete Agent Application. - - Delete Agent Application. + @overload + async def begin_update( + self, + resource_group_name: str, + account_name: str, + deployment_name: str, + properties: _models.ArcDeploymentUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ArcDeployment]: + """Updates the specified Arc deployment associated with the Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param account_name: The name of Cognitive Services account. Required. :type account_name: str - :param project_name: The name of Cognitive Services account's project. Required. - :type project_name: str - :param name: Name for the Agent Application. Required. - :type name: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :param deployment_name: The name of the Arc deployment associated with the Cognitive Services + Account. The name must be unique within the account across deployments, + managedComputeDeployments, and arcDeployments. Required. + :type deployment_name: str + :param properties: The Arc deployment update properties. Required. + :type properties: ~azure.mgmt.cognitiveservices.models.ArcDeploymentUpdate + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ArcDeployment. The ArcDeployment is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.ArcDeployment] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - account_name=account_name, - project_name=project_name, - name=name, + @overload + async def begin_update( + self, + resource_group_name: str, + account_name: str, + deployment_name: str, + properties: _types.ArcDeploymentUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ArcDeployment]: + """Updates the specified Arc deployment associated with the Cognitive Services account. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param account_name: The name of Cognitive Services account. Required. + :type account_name: str + :param deployment_name: The name of the Arc deployment associated with the Cognitive Services + Account. The name must be unique within the account across deployments, + managedComputeDeployments, and arcDeployments. Required. + :type deployment_name: str + :param properties: The Arc deployment update properties. Required. + :type properties: ~azure.mgmt.cognitiveservices.types.ArcDeploymentUpdate + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ArcDeployment. The ArcDeployment is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.ArcDeployment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + resource_group_name: str, + account_name: str, + deployment_name: str, + properties: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ArcDeployment]: + """Updates the specified Arc deployment associated with the Cognitive Services account. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param account_name: The name of Cognitive Services account. Required. + :type account_name: str + :param deployment_name: The name of the Arc deployment associated with the Cognitive Services + Account. The name must be unique within the account across deployments, + managedComputeDeployments, and arcDeployments. Required. + :type deployment_name: str + :param properties: The Arc deployment update properties. Required. + :type properties: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ArcDeployment. The ArcDeployment is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.ArcDeployment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + @api_version_validation( + method_added_on="2026-07-15-preview", + params_added_on={ + "2026-07-15-preview": [ + "api_version", + "subscription_id", + "resource_group_name", + "account_name", + "deployment_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2026-07-15-preview"], + ) + async def begin_update( + self, + resource_group_name: str, + account_name: str, + deployment_name: str, + properties: Union[_models.ArcDeploymentUpdate, _types.ArcDeploymentUpdate, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.ArcDeployment]: + """Updates the specified Arc deployment associated with the Cognitive Services account. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param account_name: The name of Cognitive Services account. Required. + :type account_name: str + :param deployment_name: The name of the Arc deployment associated with the Cognitive Services + Account. The name must be unique within the account across deployments, + managedComputeDeployments, and arcDeployments. Required. + :type deployment_name: str + :param properties: The Arc deployment update properties. Is either a ArcDeploymentUpdate type + or a IO[bytes] type. Required. + :type properties: ~azure.mgmt.cognitiveservices.models.ArcDeploymentUpdate or + ~azure.mgmt.cognitiveservices.types.ArcDeploymentUpdate or IO[bytes] + :return: An instance of AsyncLROPoller that returns ArcDeployment. The ArcDeployment is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.ArcDeployment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ArcDeployment] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._update_initial( + resource_group_name=resource_group_name, + account_name=account_name, + deployment_name=deployment_name, + properties=properties, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.ArcDeployment, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.ArcDeployment].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.ArcDeployment]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + @api_version_validation( + method_added_on="2026-07-15-preview", + params_added_on={ + "2026-07-15-preview": [ + "api_version", + "subscription_id", + "resource_group_name", + "account_name", + "deployment_name", + ] + }, + api_versions_list=["2026-07-15-preview"], + ) + async def _delete_initial( + self, resource_group_name: str, account_name: str, deployment_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_arc_deployments_delete_request( + resource_group_name=resource_group_name, + account_name=account_name, + deployment_name=deployment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + @api_version_validation( + method_added_on="2026-07-15-preview", + params_added_on={ + "2026-07-15-preview": [ + "api_version", + "subscription_id", + "resource_group_name", + "account_name", + "deployment_name", + ] + }, + api_versions_list=["2026-07-15-preview"], + ) + async def begin_delete( + self, resource_group_name: str, account_name: str, deployment_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes the specified Arc deployment associated with the Cognitive Services account. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param account_name: The name of Cognitive Services account. Required. + :type account_name: str + :param deployment_name: The name of the Arc deployment associated with the Cognitive Services + Account. The name must be unique within the account across deployments, + managedComputeDeployments, and arcDeployments. Required. + :type deployment_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + account_name=account_name, + deployment_name=deployment_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + @api_version_validation( + method_added_on="2026-07-15-preview", + params_added_on={ + "2026-07-15-preview": ["api_version", "subscription_id", "resource_group_name", "account_name", "accept"] + }, + api_versions_list=["2026-07-15-preview"], + ) + def list( + self, resource_group_name: str, account_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.ArcDeployment"]: + """Gets the Arc deployments associated with the Cognitive Services account. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param account_name: The name of Cognitive Services account. Required. + :type account_name: str + :return: An iterator like instance of ArcDeployment + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.cognitiveservices.models.ArcDeployment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ArcDeployment]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_arc_deployments_list_request( + resource_group_name=resource_group_name, + account_name=account_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ArcDeployment], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class AgentApplicationsOperations: # pylint: disable=docstring-missing-param + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.cognitiveservices.aio.CognitiveServicesManagementClient`'s + :attr:`agent_applications` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: CognitiveServicesManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, account_name: str, project_name: str, name: str, **kwargs: Any + ) -> _models.AgentApplication: + """Gets an Agent Application by name. + + Gets an Agent Application by name. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param account_name: The name of Cognitive Services account. Required. + :type account_name: str + :param project_name: The name of Cognitive Services account's project. Required. + :type project_name: str + :param name: Name for the Agent Application. Required. + :type name: str + :return: AgentApplication. The AgentApplication is compatible with MutableMapping + :rtype: ~azure.mgmt.cognitiveservices.models.AgentApplication + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.AgentApplication] = kwargs.pop("cls", None) + + _request = build_agent_applications_get_request( + resource_group_name=resource_group_name, + account_name=account_name, + project_name=project_name, + name=name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.AgentApplication, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + account_name: str, + project_name: str, + name: str, + body: Union[_models.AgentApplication, _types.AgentApplication, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(body, (IOBase, bytes)): + _content = body + else: + _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_agent_applications_create_or_update_request( + resource_group_name=resource_group_name, + account_name=account_name, + project_name=project_name, + name=name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["location"] = self._deserialize("str", response.headers.get("location")) + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["x-ms-async-operation-timeout"] = self._deserialize( + "str", response.headers.get("x-ms-async-operation-timeout") + ) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + account_name: str, + project_name: str, + name: str, + body: _models.AgentApplication, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.AgentApplication]: + """Creates or updates an Agent Application (asynchronous). + + Creates or updates an Agent Application (asynchronous). + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param account_name: The name of Cognitive Services account. Required. + :type account_name: str + :param project_name: The name of Cognitive Services account's project. Required. + :type project_name: str + :param name: Name for the Agent Application. Required. + :type name: str + :param body: Agent Application definition object. Required. + :type body: ~azure.mgmt.cognitiveservices.models.AgentApplication + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns AgentApplication. The AgentApplication is + compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.AgentApplication] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + account_name: str, + project_name: str, + name: str, + body: _types.AgentApplication, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.AgentApplication]: + """Creates or updates an Agent Application (asynchronous). + + Creates or updates an Agent Application (asynchronous). + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param account_name: The name of Cognitive Services account. Required. + :type account_name: str + :param project_name: The name of Cognitive Services account's project. Required. + :type project_name: str + :param name: Name for the Agent Application. Required. + :type name: str + :param body: Agent Application definition object. Required. + :type body: ~azure.mgmt.cognitiveservices.types.AgentApplication + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns AgentApplication. The AgentApplication is + compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.AgentApplication] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + account_name: str, + project_name: str, + name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.AgentApplication]: + """Creates or updates an Agent Application (asynchronous). + + Creates or updates an Agent Application (asynchronous). + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param account_name: The name of Cognitive Services account. Required. + :type account_name: str + :param project_name: The name of Cognitive Services account's project. Required. + :type project_name: str + :param name: Name for the Agent Application. Required. + :type name: str + :param body: Agent Application definition object. Required. + :type body: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns AgentApplication. The AgentApplication is + compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.AgentApplication] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + account_name: str, + project_name: str, + name: str, + body: Union[_models.AgentApplication, _types.AgentApplication, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.AgentApplication]: + """Creates or updates an Agent Application (asynchronous). + + Creates or updates an Agent Application (asynchronous). + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param account_name: The name of Cognitive Services account. Required. + :type account_name: str + :param project_name: The name of Cognitive Services account's project. Required. + :type project_name: str + :param name: Name for the Agent Application. Required. + :type name: str + :param body: Agent Application definition object. Is either a AgentApplication type or a + IO[bytes] type. Required. + :type body: ~azure.mgmt.cognitiveservices.models.AgentApplication or + ~azure.mgmt.cognitiveservices.types.AgentApplication or IO[bytes] + :return: An instance of AsyncLROPoller that returns AgentApplication. The AgentApplication is + compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.AgentApplication] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.AgentApplication] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + account_name=account_name, + project_name=project_name, + name=name, + body=body, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.AgentApplication, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.AgentApplication].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.AgentApplication]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial( + self, resource_group_name: str, account_name: str, project_name: str, name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_agent_applications_delete_request( + resource_group_name=resource_group_name, + account_name=account_name, + project_name=project_name, + name=name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["location"] = self._deserialize("str", response.headers.get("location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, account_name: str, project_name: str, name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Delete Agent Application. + + Delete Agent Application. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param account_name: The name of Cognitive Services account. Required. + :type account_name: str + :param project_name: The name of Cognitive Services account's project. Required. + :type project_name: str + :param name: Name for the Agent Application. Required. + :type name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + account_name=account_name, + project_name=project_name, + name=name, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -14176,7 +15163,7 @@ async def disable( return cls(pipeline_response, None, {}) # type: ignore -class ManagedComputeDeploymentsOperations: +class ManagedComputeDeploymentsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -14208,7 +15195,7 @@ def __init__(self, *args, **kwargs) -> None: "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) async def get( self, resource_group_name: str, account_name: str, deployment_name: str, **kwargs: Any @@ -14299,14 +15286,14 @@ async def get( "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) async def _create_or_update_initial( self, resource_group_name: str, account_name: str, deployment_name: str, - resource: Union[_models.ManagedComputeDeployment, JSON, IO[bytes]], + resource: Union[_models.ManagedComputeDeployment, _types.ManagedComputeDeployment, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -14419,7 +15406,7 @@ async def begin_create_or_update( resource_group_name: str, account_name: str, deployment_name: str, - resource: JSON, + resource: _types.ManagedComputeDeployment, *, content_type: str = "application/json", **kwargs: Any @@ -14435,7 +15422,7 @@ async def begin_create_or_update( Cognitive Services Account. Required. :type deployment_name: str :param resource: The managed compute deployment properties. Required. - :type resource: JSON + :type resource: ~azure.mgmt.cognitiveservices.types.ManagedComputeDeployment :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -14493,14 +15480,14 @@ async def begin_create_or_update( "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) async def begin_create_or_update( self, resource_group_name: str, account_name: str, deployment_name: str, - resource: Union[_models.ManagedComputeDeployment, JSON, IO[bytes]], + resource: Union[_models.ManagedComputeDeployment, _types.ManagedComputeDeployment, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.ManagedComputeDeployment]: """Creates or updates a managed compute deployment associated with the Cognitive Services account. @@ -14513,10 +15500,10 @@ async def begin_create_or_update( :param deployment_name: The name of the managed compute deployment associated with the Cognitive Services Account. Required. :type deployment_name: str - :param resource: The managed compute deployment properties. Is one of the following types: - ManagedComputeDeployment, JSON, IO[bytes] Required. - :type resource: ~azure.mgmt.cognitiveservices.models.ManagedComputeDeployment or JSON or - IO[bytes] + :param resource: The managed compute deployment properties. Is either a + ManagedComputeDeployment type or a IO[bytes] type. Required. + :type resource: ~azure.mgmt.cognitiveservices.models.ManagedComputeDeployment or + ~azure.mgmt.cognitiveservices.types.ManagedComputeDeployment or IO[bytes] :return: An instance of AsyncLROPoller that returns ManagedComputeDeployment. The ManagedComputeDeployment is compatible with MutableMapping :rtype: @@ -14589,14 +15576,14 @@ def get_long_running_output(pipeline_response): "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) async def _update_initial( self, resource_group_name: str, account_name: str, deployment_name: str, - properties: Union[_models.PatchResourceSku, JSON, IO[bytes]], + properties: Union[_models.PatchResourceSku, _types.PatchResourceSku, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -14711,7 +15698,7 @@ async def begin_update( resource_group_name: str, account_name: str, deployment_name: str, - properties: JSON, + properties: _types.PatchResourceSku, *, content_type: str = "application/json", **kwargs: Any @@ -14728,7 +15715,7 @@ async def begin_update( Cognitive Services Account. Required. :type deployment_name: str :param properties: The managed compute deployment patch properties. Required. - :type properties: JSON + :type properties: ~azure.mgmt.cognitiveservices.types.PatchResourceSku :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -14787,14 +15774,14 @@ async def begin_update( "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) async def begin_update( self, resource_group_name: str, account_name: str, deployment_name: str, - properties: Union[_models.PatchResourceSku, JSON, IO[bytes]], + properties: Union[_models.PatchResourceSku, _types.PatchResourceSku, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.ManagedComputeDeployment]: """Updates the specified managed compute deployment associated with the Cognitive Services @@ -14808,9 +15795,10 @@ async def begin_update( :param deployment_name: The name of the managed compute deployment associated with the Cognitive Services Account. Required. :type deployment_name: str - :param properties: The managed compute deployment patch properties. Is one of the following - types: PatchResourceSku, JSON, IO[bytes] Required. - :type properties: ~azure.mgmt.cognitiveservices.models.PatchResourceSku or JSON or IO[bytes] + :param properties: The managed compute deployment patch properties. Is either a + PatchResourceSku type or a IO[bytes] type. Required. + :type properties: ~azure.mgmt.cognitiveservices.models.PatchResourceSku or + ~azure.mgmt.cognitiveservices.types.PatchResourceSku or IO[bytes] :return: An instance of AsyncLROPoller that returns ManagedComputeDeployment. The ManagedComputeDeployment is compatible with MutableMapping :rtype: @@ -14881,7 +15869,7 @@ def get_long_running_output(pipeline_response): "deployment_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) async def _delete_initial( self, resource_group_name: str, account_name: str, deployment_name: str, **kwargs: Any @@ -14960,7 +15948,7 @@ async def _delete_initial( "deployment_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) async def begin_delete( self, resource_group_name: str, account_name: str, deployment_name: str, **kwargs: Any @@ -15031,7 +16019,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- params_added_on={ "2026-03-15-preview": ["api_version", "subscription_id", "resource_group_name", "account_name", "accept"] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def list( self, resource_group_name: str, account_name: str, **kwargs: Any @@ -15136,7 +16124,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ComputeOperationsOperations: +class ComputeOperationsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -15161,7 +16149,7 @@ def __init__(self, *args, **kwargs) -> None: params_added_on={ "2026-01-15-preview": ["api_version", "subscription_id", "location", "operation_id", "accept"] }, - api_versions_list=["2026-01-15-preview", "2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-01-15-preview", "2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) async def get(self, location: str, operation_id: str, **kwargs: Any) -> _models.ComputeOperationStatus: """Gets the status of a compute operation. @@ -15232,7 +16220,7 @@ async def get(self, location: str, operation_id: str, **kwargs: Any) -> _models. return deserialized # type: ignore -class ManagedComputeUsagesOperationGroupOperations: # pylint: disable=name-too-long +class ManagedComputeUsagesOperationGroupOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -15255,7 +16243,7 @@ def __init__(self, *args, **kwargs) -> None: @api_version_validation( method_added_on="2026-03-15-preview", params_added_on={"2026-03-15-preview": ["api_version", "subscription_id", "location", "accept"]}, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def list(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.ManagedComputeUsage"]: """List managed compute quota usages for a subscription and location. @@ -15354,304 +16342,24 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ComputesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.cognitiveservices.aio.CognitiveServicesManagementClient`'s - :attr:`computes` attribute. - """ - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: CognitiveServicesManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - @api_version_validation( - method_added_on="2026-03-15-preview", - params_added_on={ - "2026-03-15-preview": [ - "api_version", - "subscription_id", - "resource_group_name", - "account_name", - "compute_name", - "accept", - ] - }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], - ) - async def get( - self, resource_group_name: str, account_name: str, compute_name: str, **kwargs: Any - ) -> _models.Compute: - """Gets the specified compute associated with the Cognitive Services account. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param account_name: The name of Cognitive Services account. Required. - :type account_name: str - :param compute_name: The name of the compute associated with the Cognitive Services Account. - Required. - :type compute_name: str - :return: Compute. The Compute is compatible with MutableMapping - :rtype: ~azure.mgmt.cognitiveservices.models.Compute - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[_models.Compute] = kwargs.pop("cls", None) - - _request = build_computes_get_request( - resource_group_name=resource_group_name, - account_name=account_name, - compute_name=compute_name, - subscription_id=self._config.subscription_id, - api_version=self._config.api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.ErrorResponse, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.Compute, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @api_version_validation( - method_added_on="2026-03-15-preview", - params_added_on={ - "2026-03-15-preview": [ - "api_version", - "subscription_id", - "resource_group_name", - "account_name", - "compute_name", - "content_type", - "accept", - ] - }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], - ) - async def _create_or_update_initial( - self, - resource_group_name: str, - account_name: str, - compute_name: str, - resource: Union[_models.Compute, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _content = json.dumps(resource, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_computes_create_or_update_request( - resource_group_name=resource_group_name, - account_name=account_name, - compute_name=compute_name, - subscription_id=self._config.subscription_id, - content_type=content_type, - api_version=self._config.api_version, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.ErrorResponse, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - account_name: str, - compute_name: str, - resource: _models.Compute, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.Compute]: - """Creates or updates a compute associated with the Cognitive Services account. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param account_name: The name of Cognitive Services account. Required. - :type account_name: str - :param compute_name: The name of the compute associated with the Cognitive Services Account. - Required. - :type compute_name: str - :param resource: The compute properties. Required. - :type resource: ~azure.mgmt.cognitiveservices.models.Compute - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns Compute. The Compute is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.Compute] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - account_name: str, - compute_name: str, - resource: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.Compute]: - """Creates or updates a compute associated with the Cognitive Services account. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param account_name: The name of Cognitive Services account. Required. - :type account_name: str - :param compute_name: The name of the compute associated with the Cognitive Services Account. - Required. - :type compute_name: str - :param resource: The compute properties. Required. - :type resource: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns Compute. The Compute is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.Compute] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - account_name: str, - compute_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.Compute]: - """Creates or updates a compute associated with the Cognitive Services account. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param account_name: The name of Cognitive Services account. Required. - :type account_name: str - :param compute_name: The name of the compute associated with the Cognitive Services Account. - Required. - :type compute_name: str - :param resource: The compute properties. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns Compute. The Compute is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.Compute] - :raises ~azure.core.exceptions.HttpResponseError: - """ +class ComputesOperations: # pylint: disable=docstring-missing-param + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.cognitiveservices.aio.CognitiveServicesManagementClient`'s + :attr:`computes` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: CognitiveServicesManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace_async @api_version_validation( @@ -15663,21 +16371,15 @@ async def begin_create_or_update( "resource_group_name", "account_name", "compute_name", - "content_type", "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) - async def begin_create_or_update( - self, - resource_group_name: str, - account_name: str, - compute_name: str, - resource: Union[_models.Compute, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.Compute]: - """Creates or updates a compute associated with the Cognitive Services account. + async def get( + self, resource_group_name: str, account_name: str, compute_name: str, **kwargs: Any + ) -> _models.Compute: + """Gets the specified compute associated with the Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -15687,66 +16389,67 @@ async def begin_create_or_update( :param compute_name: The name of the compute associated with the Cognitive Services Account. Required. :type compute_name: str - :param resource: The compute properties. Is one of the following types: Compute, JSON, - IO[bytes] Required. - :type resource: ~azure.mgmt.cognitiveservices.models.Compute or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns Compute. The Compute is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.Compute] + :return: Compute. The Compute is compatible with MutableMapping + :rtype: ~azure.mgmt.cognitiveservices.models.Compute :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Compute] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - account_name=account_name, - compute_name=compute_name, - resource=resource, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.Compute, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + _request = build_computes_get_request( + resource_group_name=resource_group_name, + account_name=account_name, + compute_name=compute_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.Compute].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.Compute]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + deserialized = _deserialize(_models.Compute, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore @api_version_validation( method_added_on="2026-03-15-preview", @@ -15758,17 +16461,16 @@ def get_long_running_output(pipeline_response): "account_name", "compute_name", "content_type", - "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) - async def _update_initial( + async def _create_or_update_initial( self, resource_group_name: str, account_name: str, compute_name: str, - properties: Union[_models.Compute, JSON, IO[bytes]], + resource: Union[_models.Compute, _types.Compute, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -15787,12 +16489,12 @@ async def _update_initial( content_type = content_type or "application/json" _content = None - if isinstance(properties, (IOBase, bytes)): - _content = properties + if isinstance(resource, (IOBase, bytes)): + _content = resource else: - _content = json.dumps(properties, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(resource, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_computes_update_request( + _request = build_computes_create_or_update_request( resource_group_name=resource_group_name, account_name=account_name, compute_name=compute_name, @@ -15816,7 +16518,7 @@ async def _update_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -15829,9 +16531,10 @@ async def _update_initial( raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - if response.status_code == 202: - response_headers["location"] = self._deserialize("str", response.headers.get("location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -15841,17 +16544,17 @@ async def _update_initial( return deserialized # type: ignore @overload - async def begin_update( + async def begin_create_or_update( self, resource_group_name: str, account_name: str, compute_name: str, - properties: _models.Compute, + resource: _models.Compute, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.Compute]: - """Updates a compute associated with the Cognitive Services account. + ) -> AsyncLROPoller[None]: + """Creates or updates a compute associated with the Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -15861,29 +16564,28 @@ async def begin_update( :param compute_name: The name of the compute associated with the Cognitive Services Account. Required. :type compute_name: str - :param properties: The compute properties to update. Required. - :type properties: ~azure.mgmt.cognitiveservices.models.Compute + :param resource: The compute properties. Required. + :type resource: ~azure.mgmt.cognitiveservices.models.Compute :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns Compute. The Compute is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.Compute] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_update( + async def begin_create_or_update( self, resource_group_name: str, account_name: str, compute_name: str, - properties: JSON, + resource: _types.Compute, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.Compute]: - """Updates a compute associated with the Cognitive Services account. + ) -> AsyncLROPoller[None]: + """Creates or updates a compute associated with the Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -15893,29 +16595,28 @@ async def begin_update( :param compute_name: The name of the compute associated with the Cognitive Services Account. Required. :type compute_name: str - :param properties: The compute properties to update. Required. - :type properties: JSON + :param resource: The compute properties. Required. + :type resource: ~azure.mgmt.cognitiveservices.types.Compute :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns Compute. The Compute is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.Compute] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_update( + async def begin_create_or_update( self, resource_group_name: str, account_name: str, compute_name: str, - properties: IO[bytes], + resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.Compute]: - """Updates a compute associated with the Cognitive Services account. + ) -> AsyncLROPoller[None]: + """Creates or updates a compute associated with the Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -15925,14 +16626,13 @@ async def begin_update( :param compute_name: The name of the compute associated with the Cognitive Services Account. Required. :type compute_name: str - :param properties: The compute properties to update. Required. - :type properties: IO[bytes] + :param resource: The compute properties. Required. + :type resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns Compute. The Compute is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.Compute] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -15947,20 +16647,19 @@ async def begin_update( "account_name", "compute_name", "content_type", - "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) - async def begin_update( + async def begin_create_or_update( self, resource_group_name: str, account_name: str, compute_name: str, - properties: Union[_models.Compute, JSON, IO[bytes]], + resource: Union[_models.Compute, _types.Compute, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.Compute]: - """Updates a compute associated with the Cognitive Services account. + ) -> AsyncLROPoller[None]: + """Creates or updates a compute associated with the Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -15970,28 +16669,28 @@ async def begin_update( :param compute_name: The name of the compute associated with the Cognitive Services Account. Required. :type compute_name: str - :param properties: The compute properties to update. Is one of the following types: Compute, - JSON, IO[bytes] Required. - :type properties: ~azure.mgmt.cognitiveservices.models.Compute or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns Compute. The Compute is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.Compute] + :param resource: The compute properties. Is either a Compute type or a IO[bytes] type. + Required. + :type resource: ~azure.mgmt.cognitiveservices.models.Compute or + ~azure.mgmt.cognitiveservices.types.Compute or IO[bytes] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = kwargs.pop("params", {}) or {} content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Compute] = kwargs.pop("cls", None) + cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._update_initial( + raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, account_name=account_name, compute_name=compute_name, - properties=properties, + resource=resource, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, @@ -16001,12 +16700,9 @@ async def begin_update( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.Compute, response.json()) + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + return cls(pipeline_response, None, {}) # type: ignore path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -16021,15 +16717,13 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.Compute].from_continuation_token( + return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.Compute]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @api_version_validation( method_added_on="2026-03-15-preview", @@ -16042,7 +16736,7 @@ def get_long_running_output(pipeline_response): "compute_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) async def _delete_initial( self, resource_group_name: str, account_name: str, compute_name: str, **kwargs: Any @@ -16118,7 +16812,7 @@ async def _delete_initial( "compute_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) async def begin_delete( self, resource_group_name: str, account_name: str, compute_name: str, **kwargs: Any @@ -16188,7 +16882,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- params_added_on={ "2026-03-15-preview": ["api_version", "subscription_id", "resource_group_name", "account_name", "accept"] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def list(self, resource_group_name: str, account_name: str, **kwargs: Any) -> AsyncItemPaged["_models.Compute"]: """Gets the computes associated with the Cognitive Services account. @@ -16300,7 +16994,7 @@ async def get_next(next_link=None): "compute_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) async def _start_initial( self, resource_group_name: str, account_name: str, compute_name: str, **kwargs: Any @@ -16376,7 +17070,7 @@ async def _start_initial( "compute_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) async def begin_start( self, resource_group_name: str, account_name: str, compute_name: str, **kwargs: Any @@ -16452,7 +17146,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- "compute_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) async def _stop_initial( self, resource_group_name: str, account_name: str, compute_name: str, **kwargs: Any @@ -16528,7 +17222,7 @@ async def _stop_initial( "compute_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) async def begin_stop( self, resource_group_name: str, account_name: str, compute_name: str, **kwargs: Any @@ -16604,7 +17298,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- "compute_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) async def _restart_initial( self, resource_group_name: str, account_name: str, compute_name: str, **kwargs: Any @@ -16680,7 +17374,7 @@ async def _restart_initial( "compute_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) async def begin_restart( self, resource_group_name: str, account_name: str, compute_name: str, **kwargs: Any @@ -16746,7 +17440,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class WorkbenchesOperations: +class WorkbenchesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -16779,7 +17473,7 @@ def __init__(self, *args, **kwargs) -> None: "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) async def get( self, resource_group_name: str, account_name: str, project_name: str, workbench_name: str, **kwargs: Any @@ -16872,7 +17566,7 @@ async def get( "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) async def _create_or_update_initial( self, @@ -16880,7 +17574,7 @@ async def _create_or_update_initial( account_name: str, project_name: str, workbench_name: str, - resource: Union[_models.Workbench, JSON, IO[bytes]], + resource: Union[_models.Workbench, _types.Workbench, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -16996,7 +17690,7 @@ async def begin_create_or_update( account_name: str, project_name: str, workbench_name: str, - resource: JSON, + resource: _types.Workbench, *, content_type: str = "application/json", **kwargs: Any @@ -17013,7 +17707,7 @@ async def begin_create_or_update( :param workbench_name: The name of the workbench associated with the project. Required. :type workbench_name: str :param resource: The workbench properties. Required. - :type resource: JSON + :type resource: ~azure.mgmt.cognitiveservices.types.Workbench :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -17072,7 +17766,7 @@ async def begin_create_or_update( "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) async def begin_create_or_update( self, @@ -17080,7 +17774,7 @@ async def begin_create_or_update( account_name: str, project_name: str, workbench_name: str, - resource: Union[_models.Workbench, JSON, IO[bytes]], + resource: Union[_models.Workbench, _types.Workbench, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.Workbench]: """Creates or updates a workbench associated with the project. @@ -17094,9 +17788,10 @@ async def begin_create_or_update( :type project_name: str :param workbench_name: The name of the workbench associated with the project. Required. :type workbench_name: str - :param resource: The workbench properties. Is one of the following types: Workbench, JSON, - IO[bytes] Required. - :type resource: ~azure.mgmt.cognitiveservices.models.Workbench or JSON or IO[bytes] + :param resource: The workbench properties. Is either a Workbench type or a IO[bytes] type. + Required. + :type resource: ~azure.mgmt.cognitiveservices.models.Workbench or + ~azure.mgmt.cognitiveservices.types.Workbench or IO[bytes] :return: An instance of AsyncLROPoller that returns Workbench. The Workbench is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.Workbench] @@ -17170,7 +17865,7 @@ def get_long_running_output(pipeline_response): "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) async def _update_initial( self, @@ -17178,7 +17873,7 @@ async def _update_initial( account_name: str, project_name: str, workbench_name: str, - properties: Union[_models.Workbench, JSON, IO[bytes]], + properties: Union[_models.Workbench, _types.Workbench, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -17292,7 +17987,7 @@ async def begin_update( account_name: str, project_name: str, workbench_name: str, - properties: JSON, + properties: _types.Workbench, *, content_type: str = "application/json", **kwargs: Any @@ -17309,7 +18004,7 @@ async def begin_update( :param workbench_name: The name of the workbench associated with the project. Required. :type workbench_name: str :param properties: The workbench properties to update. Required. - :type properties: JSON + :type properties: ~azure.mgmt.cognitiveservices.types.Workbench :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -17368,7 +18063,7 @@ async def begin_update( "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) async def begin_update( self, @@ -17376,7 +18071,7 @@ async def begin_update( account_name: str, project_name: str, workbench_name: str, - properties: Union[_models.Workbench, JSON, IO[bytes]], + properties: Union[_models.Workbench, _types.Workbench, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.Workbench]: """Updates a workbench associated with the project. @@ -17390,9 +18085,10 @@ async def begin_update( :type project_name: str :param workbench_name: The name of the workbench associated with the project. Required. :type workbench_name: str - :param properties: The workbench properties to update. Is one of the following types: - Workbench, JSON, IO[bytes] Required. - :type properties: ~azure.mgmt.cognitiveservices.models.Workbench or JSON or IO[bytes] + :param properties: The workbench properties to update. Is either a Workbench type or a + IO[bytes] type. Required. + :type properties: ~azure.mgmt.cognitiveservices.models.Workbench or + ~azure.mgmt.cognitiveservices.types.Workbench or IO[bytes] :return: An instance of AsyncLROPoller that returns Workbench. The Workbench is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.Workbench] @@ -17464,7 +18160,7 @@ def get_long_running_output(pipeline_response): "workbench_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) async def _delete_initial( self, resource_group_name: str, account_name: str, project_name: str, workbench_name: str, **kwargs: Any @@ -17542,7 +18238,7 @@ async def _delete_initial( "workbench_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) async def begin_delete( self, resource_group_name: str, account_name: str, project_name: str, workbench_name: str, **kwargs: Any @@ -17621,7 +18317,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def list( self, resource_group_name: str, account_name: str, project_name: str, **kwargs: Any @@ -17739,7 +18435,7 @@ async def get_next(next_link=None): "workbench_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) async def _start_initial( self, resource_group_name: str, account_name: str, project_name: str, workbench_name: str, **kwargs: Any @@ -17817,7 +18513,7 @@ async def _start_initial( "workbench_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) async def begin_start( self, resource_group_name: str, account_name: str, project_name: str, workbench_name: str, **kwargs: Any @@ -17896,7 +18592,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- "workbench_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) async def _stop_initial( self, resource_group_name: str, account_name: str, project_name: str, workbench_name: str, **kwargs: Any @@ -17974,7 +18670,7 @@ async def _stop_initial( "workbench_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) async def begin_stop( self, resource_group_name: str, account_name: str, project_name: str, workbench_name: str, **kwargs: Any @@ -18053,7 +18749,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- "workbench_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) async def _restart_initial( self, resource_group_name: str, account_name: str, project_name: str, workbench_name: str, **kwargs: Any @@ -18131,7 +18827,7 @@ async def _restart_initial( "workbench_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) async def begin_restart( self, resource_group_name: str, account_name: str, project_name: str, workbench_name: str, **kwargs: Any @@ -18199,7 +18895,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class ManagedComputeCapacitiesOperations: +class ManagedComputeCapacitiesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -18231,7 +18927,7 @@ def __init__(self, *args, **kwargs) -> None: "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def list( self, *, offer: str, accelerator_type: Optional[str] = None, deployment_id: Optional[str] = None, **kwargs: Any @@ -18342,7 +19038,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class PrivateLinkResourcesOperations: +class PrivateLinkResourcesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -18435,7 +19131,7 @@ async def list( return deserialized # type: ignore -class TestRaiExternalSafetyProviderOperations: +class TestRaiExternalSafetyProviderOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -18492,7 +19188,7 @@ async def create_or_update( resource_group_name: str, account_name: str, safety_provider_name: str, - safety_provider: JSON, + safety_provider: _types.RaiExternalSafetyProviderSchema, *, content_type: str = "application/json", **kwargs: Any @@ -18508,7 +19204,7 @@ async def create_or_update( Cognitive Services Account. Required. :type safety_provider_name: str :param safety_provider: Properties describing the rai external safety provider. Required. - :type safety_provider: JSON + :type safety_provider: ~azure.mgmt.cognitiveservices.types.RaiExternalSafetyProviderSchema :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -18556,7 +19252,9 @@ async def create_or_update( resource_group_name: str, account_name: str, safety_provider_name: str, - safety_provider: Union[_models.RaiExternalSafetyProviderSchema, JSON, IO[bytes]], + safety_provider: Union[ + _models.RaiExternalSafetyProviderSchema, _types.RaiExternalSafetyProviderSchema, IO[bytes] + ], **kwargs: Any ) -> _models.RaiExternalSafetyProviderSchema: """Test the rai safety provider associated with the subscription. @@ -18569,10 +19267,10 @@ async def create_or_update( :param safety_provider_name: The name of the Rai External Safety Provider associated with the Cognitive Services Account. Required. :type safety_provider_name: str - :param safety_provider: Properties describing the rai external safety provider. Is one of the - following types: RaiExternalSafetyProviderSchema, JSON, IO[bytes] Required. + :param safety_provider: Properties describing the rai external safety provider. Is either a + RaiExternalSafetyProviderSchema type or a IO[bytes] type. Required. :type safety_provider: ~azure.mgmt.cognitiveservices.models.RaiExternalSafetyProviderSchema or - JSON or IO[bytes] + ~azure.mgmt.cognitiveservices.types.RaiExternalSafetyProviderSchema or IO[bytes] :return: RaiExternalSafetyProviderSchema. The RaiExternalSafetyProviderSchema is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.RaiExternalSafetyProviderSchema @@ -18647,7 +19345,7 @@ async def create_or_update( return deserialized # type: ignore -class RaiExternalSafetyProviderOperations: +class RaiExternalSafetyProviderOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -18761,7 +19459,12 @@ async def create_or_update( @overload async def create_or_update( - self, safety_provider_name: str, safety_provider: JSON, *, content_type: str = "application/json", **kwargs: Any + self, + safety_provider_name: str, + safety_provider: _types.RaiExternalSafetyProviderSchema, + *, + content_type: str = "application/json", + **kwargs: Any ) -> _models.RaiExternalSafetyProviderSchema: """Create the rai safety provider associated with the subscription. @@ -18769,7 +19472,7 @@ async def create_or_update( Cognitive Services Account. Required. :type safety_provider_name: str :param safety_provider: Properties describing the rai external safety provider. Required. - :type safety_provider: JSON + :type safety_provider: ~azure.mgmt.cognitiveservices.types.RaiExternalSafetyProviderSchema :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -18808,7 +19511,9 @@ async def create_or_update( async def create_or_update( self, safety_provider_name: str, - safety_provider: Union[_models.RaiExternalSafetyProviderSchema, JSON, IO[bytes]], + safety_provider: Union[ + _models.RaiExternalSafetyProviderSchema, _types.RaiExternalSafetyProviderSchema, IO[bytes] + ], **kwargs: Any ) -> _models.RaiExternalSafetyProviderSchema: """Create the rai safety provider associated with the subscription. @@ -18816,10 +19521,10 @@ async def create_or_update( :param safety_provider_name: The name of the Rai External Safety Provider associated with the Cognitive Services Account. Required. :type safety_provider_name: str - :param safety_provider: Properties describing the rai external safety provider. Is one of the - following types: RaiExternalSafetyProviderSchema, JSON, IO[bytes] Required. + :param safety_provider: Properties describing the rai external safety provider. Is either a + RaiExternalSafetyProviderSchema type or a IO[bytes] type. Required. :type safety_provider: ~azure.mgmt.cognitiveservices.models.RaiExternalSafetyProviderSchema or - JSON or IO[bytes] + ~azure.mgmt.cognitiveservices.types.RaiExternalSafetyProviderSchema or IO[bytes] :return: RaiExternalSafetyProviderSchema. The RaiExternalSafetyProviderSchema is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.RaiExternalSafetyProviderSchema @@ -19004,7 +19709,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class RaiExternalSafetyProvidersOperations: +class RaiExternalSafetyProvidersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -19118,7 +19823,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class AccountConnectionsOperations: +class AccountConnectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -19255,7 +19960,7 @@ async def create( resource_group_name: str, account_name: str, connection_name: str, - connection: Optional[JSON] = None, + connection: Optional[_types.ConnectionPropertiesV2BasicResource] = None, *, content_type: str = "application/json", **kwargs: Any @@ -19273,7 +19978,7 @@ async def create( :type connection_name: str :param connection: The object for creating or updating a new account connection. Default value is None. - :type connection: JSON + :type connection: ~azure.mgmt.cognitiveservices.types.ConnectionPropertiesV2BasicResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -19323,7 +20028,9 @@ async def create( resource_group_name: str, account_name: str, connection_name: str, - connection: Optional[Union[_models.ConnectionPropertiesV2BasicResource, JSON, IO[bytes]]] = None, + connection: Optional[ + Union[_models.ConnectionPropertiesV2BasicResource, _types.ConnectionPropertiesV2BasicResource, IO[bytes]] + ] = None, **kwargs: Any ) -> _models.ConnectionPropertiesV2BasicResource: """Create or update Cognitive Services account connection under the specified account. @@ -19337,10 +20044,10 @@ async def create( :type account_name: str :param connection_name: Friendly name of the connection. Required. :type connection_name: str - :param connection: The object for creating or updating a new account connection. Is one of the - following types: ConnectionPropertiesV2BasicResource, JSON, IO[bytes] Default value is None. + :param connection: The object for creating or updating a new account connection. Is either a + ConnectionPropertiesV2BasicResource type or a IO[bytes] type. Default value is None. :type connection: ~azure.mgmt.cognitiveservices.models.ConnectionPropertiesV2BasicResource or - JSON or IO[bytes] + ~azure.mgmt.cognitiveservices.types.ConnectionPropertiesV2BasicResource or IO[bytes] :return: ConnectionPropertiesV2BasicResource. The ConnectionPropertiesV2BasicResource is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.ConnectionPropertiesV2BasicResource @@ -19457,7 +20164,7 @@ async def update( resource_group_name: str, account_name: str, connection_name: str, - connection: Optional[JSON] = None, + connection: Optional[_types.ConnectionUpdateContent] = None, *, content_type: str = "application/json", **kwargs: Any @@ -19474,7 +20181,7 @@ async def update( :param connection_name: Friendly name of the connection. Required. :type connection_name: str :param connection: Parameters for account connection update. Default value is None. - :type connection: JSON + :type connection: ~azure.mgmt.cognitiveservices.types.ConnectionUpdateContent :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -19523,7 +20230,7 @@ async def update( resource_group_name: str, account_name: str, connection_name: str, - connection: Optional[Union[_models.ConnectionUpdateContent, JSON, IO[bytes]]] = None, + connection: Optional[Union[_models.ConnectionUpdateContent, _types.ConnectionUpdateContent, IO[bytes]]] = None, **kwargs: Any ) -> _models.ConnectionPropertiesV2BasicResource: """Update Cognitive Services account connection under the specified account. @@ -19537,10 +20244,10 @@ async def update( :type account_name: str :param connection_name: Friendly name of the connection. Required. :type connection_name: str - :param connection: Parameters for account connection update. Is one of the following types: - ConnectionUpdateContent, JSON, IO[bytes] Default value is None. - :type connection: ~azure.mgmt.cognitiveservices.models.ConnectionUpdateContent or JSON or - IO[bytes] + :param connection: Parameters for account connection update. Is either a + ConnectionUpdateContent type or a IO[bytes] type. Default value is None. + :type connection: ~azure.mgmt.cognitiveservices.models.ConnectionUpdateContent or + ~azure.mgmt.cognitiveservices.types.ConnectionUpdateContent or IO[bytes] :return: ConnectionPropertiesV2BasicResource. The ConnectionPropertiesV2BasicResource is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.ConnectionPropertiesV2BasicResource @@ -19803,7 +20510,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class AccountCapabilityHostsOperations: +class AccountCapabilityHostsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -19905,7 +20612,7 @@ async def _create_or_update_initial( resource_group_name: str, account_name: str, capability_host_name: str, - capability_host: Union[_models.CapabilityHost, JSON, IO[bytes]], + capability_host: Union[_models.CapabilityHost, _types.CapabilityHost, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -20021,7 +20728,7 @@ async def begin_create_or_update( resource_group_name: str, account_name: str, capability_host_name: str, - capability_host: JSON, + capability_host: _types.CapabilityHost, *, content_type: str = "application/json", **kwargs: Any @@ -20039,7 +20746,7 @@ async def begin_create_or_update( Services Resource. Required. :type capability_host_name: str :param capability_host: CapabilityHost definition. Required. - :type capability_host: JSON + :type capability_host: ~azure.mgmt.cognitiveservices.types.CapabilityHost :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -20089,7 +20796,7 @@ async def begin_create_or_update( resource_group_name: str, account_name: str, capability_host_name: str, - capability_host: Union[_models.CapabilityHost, JSON, IO[bytes]], + capability_host: Union[_models.CapabilityHost, _types.CapabilityHost, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.CapabilityHost]: """Create or update account capabilityHost. @@ -20104,9 +20811,10 @@ async def begin_create_or_update( :param capability_host_name: The name of the capability host associated with the Cognitive Services Resource. Required. :type capability_host_name: str - :param capability_host: CapabilityHost definition. Is one of the following types: - CapabilityHost, JSON, IO[bytes] Required. - :type capability_host: ~azure.mgmt.cognitiveservices.models.CapabilityHost or JSON or IO[bytes] + :param capability_host: CapabilityHost definition. Is either a CapabilityHost type or a + IO[bytes] type. Required. + :type capability_host: ~azure.mgmt.cognitiveservices.models.CapabilityHost or + ~azure.mgmt.cognitiveservices.types.CapabilityHost or IO[bytes] :return: An instance of AsyncLROPoller that returns CapabilityHost. The CapabilityHost is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.CapabilityHost] @@ -20400,7 +21108,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class OutboundRuleOperations: +class OutboundRuleOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -20510,7 +21218,7 @@ async def _create_or_update_initial( account_name: str, managed_network_name: str, rule_name: str, - body: Union[_models.OutboundRuleBasicResource, JSON, IO[bytes]], + body: Union[_models.OutboundRuleBasicResource, _types.OutboundRuleBasicResource, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -20631,7 +21339,7 @@ async def begin_create_or_update( account_name: str, managed_network_name: str, rule_name: str, - body: JSON, + body: _types.OutboundRuleBasicResource, *, content_type: str = "application/json", **kwargs: Any @@ -20654,7 +21362,7 @@ async def begin_create_or_update( Required. :type rule_name: str :param body: Required. - :type body: JSON + :type body: ~azure.mgmt.cognitiveservices.types.OutboundRuleBasicResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -20713,7 +21421,7 @@ async def begin_create_or_update( account_name: str, managed_network_name: str, rule_name: str, - body: Union[_models.OutboundRuleBasicResource, JSON, IO[bytes]], + body: Union[_models.OutboundRuleBasicResource, _types.OutboundRuleBasicResource, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.OutboundRuleBasicResource]: """The PUT API for creating or updating a single outbound rule of the managed network associated @@ -20733,9 +21441,9 @@ async def begin_create_or_update( :param rule_name: Name of the cognitive services account managed network outbound rule. Required. :type rule_name: str - :param body: Is one of the following types: OutboundRuleBasicResource, JSON, IO[bytes] - Required. - :type body: ~azure.mgmt.cognitiveservices.models.OutboundRuleBasicResource or JSON or IO[bytes] + :param body: Is either a OutboundRuleBasicResource type or a IO[bytes] type. Required. + :type body: ~azure.mgmt.cognitiveservices.models.OutboundRuleBasicResource or + ~azure.mgmt.cognitiveservices.types.OutboundRuleBasicResource or IO[bytes] :return: An instance of AsyncLROPoller that returns OutboundRuleBasicResource. The OutboundRuleBasicResource is compatible with MutableMapping :rtype: @@ -21042,7 +21750,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ManagedNetworkSettingsOperations: +class ManagedNetworkSettingsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -21145,7 +21853,11 @@ async def _put_initial( resource_group_name: str, account_name: str, managed_network_name: str, - body: Union[_models.ManagedNetworkSettingsPropertiesBasicResource, JSON, IO[bytes]], + body: Union[ + _models.ManagedNetworkSettingsPropertiesBasicResource, + _types.ManagedNetworkSettingsPropertiesBasicResource, + IO[bytes], + ], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -21259,7 +21971,7 @@ async def begin_put( resource_group_name: str, account_name: str, managed_network_name: str, - body: JSON, + body: _types.ManagedNetworkSettingsPropertiesBasicResource, *, content_type: str = "application/json", **kwargs: Any @@ -21277,7 +21989,7 @@ async def begin_put( account. Only 'default' is supported. Required. :type managed_network_name: str :param body: The Managed Network Settings object of the account. Required. - :type body: JSON + :type body: ~azure.mgmt.cognitiveservices.types.ManagedNetworkSettingsPropertiesBasicResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -21331,7 +22043,11 @@ async def begin_put( resource_group_name: str, account_name: str, managed_network_name: str, - body: Union[_models.ManagedNetworkSettingsPropertiesBasicResource, JSON, IO[bytes]], + body: Union[ + _models.ManagedNetworkSettingsPropertiesBasicResource, + _types.ManagedNetworkSettingsPropertiesBasicResource, + IO[bytes], + ], **kwargs: Any ) -> AsyncLROPoller[_models.ManagedNetworkSettingsPropertiesBasicResource]: """PUT API for managed network settings of a cognitive services account. @@ -21346,10 +22062,11 @@ async def begin_put( :param managed_network_name: Name of the managedNetwork associated with the cognitive services account. Only 'default' is supported. Required. :type managed_network_name: str - :param body: The Managed Network Settings object of the account. Is one of the following types: - ManagedNetworkSettingsPropertiesBasicResource, JSON, IO[bytes] Required. + :param body: The Managed Network Settings object of the account. Is either a + ManagedNetworkSettingsPropertiesBasicResource type or a IO[bytes] type. Required. :type body: ~azure.mgmt.cognitiveservices.models.ManagedNetworkSettingsPropertiesBasicResource - or JSON or IO[bytes] + or ~azure.mgmt.cognitiveservices.types.ManagedNetworkSettingsPropertiesBasicResource or + IO[bytes] :return: An instance of AsyncLROPoller that returns ManagedNetworkSettingsPropertiesBasicResource. The ManagedNetworkSettingsPropertiesBasicResource is compatible with MutableMapping @@ -21415,7 +22132,13 @@ async def _patch_initial( resource_group_name: str, account_name: str, managed_network_name: str, - body: Optional[Union[_models.ManagedNetworkSettingsPropertiesBasicResource, JSON, IO[bytes]]] = None, + body: Optional[ + Union[ + _models.ManagedNetworkSettingsPropertiesBasicResource, + _types.ManagedNetworkSettingsPropertiesBasicResource, + IO[bytes], + ] + ] = None, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -21533,7 +22256,7 @@ async def begin_patch( resource_group_name: str, account_name: str, managed_network_name: str, - body: Optional[JSON] = None, + body: Optional[_types.ManagedNetworkSettingsPropertiesBasicResource] = None, *, content_type: str = "application/json", **kwargs: Any @@ -21551,7 +22274,7 @@ async def begin_patch( account. Only 'default' is supported. Required. :type managed_network_name: str :param body: The Managed Network Settings object of the account. Default value is None. - :type body: JSON + :type body: ~azure.mgmt.cognitiveservices.types.ManagedNetworkSettingsPropertiesBasicResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -21605,7 +22328,13 @@ async def begin_patch( resource_group_name: str, account_name: str, managed_network_name: str, - body: Optional[Union[_models.ManagedNetworkSettingsPropertiesBasicResource, JSON, IO[bytes]]] = None, + body: Optional[ + Union[ + _models.ManagedNetworkSettingsPropertiesBasicResource, + _types.ManagedNetworkSettingsPropertiesBasicResource, + IO[bytes], + ] + ] = None, **kwargs: Any ) -> AsyncLROPoller[_models.ManagedNetworkSettingsPropertiesBasicResource]: """Patch API for managed network settings of a cognitive services account. @@ -21620,10 +22349,11 @@ async def begin_patch( :param managed_network_name: Name of the managedNetwork associated with the cognitive services account. Only 'default' is supported. Required. :type managed_network_name: str - :param body: The Managed Network Settings object of the account. Is one of the following types: - ManagedNetworkSettingsPropertiesBasicResource, JSON, IO[bytes] Default value is None. + :param body: The Managed Network Settings object of the account. Is either a + ManagedNetworkSettingsPropertiesBasicResource type or a IO[bytes] type. Default value is None. :type body: ~azure.mgmt.cognitiveservices.models.ManagedNetworkSettingsPropertiesBasicResource - or JSON or IO[bytes] + or ~azure.mgmt.cognitiveservices.types.ManagedNetworkSettingsPropertiesBasicResource or + IO[bytes] :return: An instance of AsyncLROPoller that returns ManagedNetworkSettingsPropertiesBasicResource. The ManagedNetworkSettingsPropertiesBasicResource is compatible with MutableMapping @@ -21702,6 +22432,8 @@ def get_long_running_output(pipeline_response): "2026-03-15-preview", "2026-05-01", "2026-05-15-preview", + "2026-07-01", + "2026-07-15-preview", ], ) async def _delete_initial( @@ -21784,6 +22516,8 @@ async def _delete_initial( "2026-03-15-preview", "2026-05-01", "2026-05-15-preview", + "2026-07-01", + "2026-07-15-preview", ], ) async def begin_delete( @@ -21956,7 +22690,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class OutboundRulesOperations: +class OutboundRulesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -21980,7 +22714,7 @@ async def _post_initial( resource_group_name: str, account_name: str, managed_network_name: str, - body: Union[_models.ManagedNetworkSettingsBasicResource, JSON, IO[bytes]], + body: Union[_models.ManagedNetworkSettingsBasicResource, _types.ManagedNetworkSettingsBasicResource, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -22095,7 +22829,7 @@ async def begin_post( resource_group_name: str, account_name: str, managed_network_name: str, - body: JSON, + body: _types.ManagedNetworkSettingsBasicResource, *, content_type: str = "application/json", **kwargs: Any @@ -22115,7 +22849,7 @@ async def begin_post( account. Only 'default' is supported. Required. :type managed_network_name: str :param body: The Managed Network Settings object of the account. Required. - :type body: JSON + :type body: ~azure.mgmt.cognitiveservices.types.ManagedNetworkSettingsBasicResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -22169,7 +22903,7 @@ async def begin_post( resource_group_name: str, account_name: str, managed_network_name: str, - body: Union[_models.ManagedNetworkSettingsBasicResource, JSON, IO[bytes]], + body: Union[_models.ManagedNetworkSettingsBasicResource, _types.ManagedNetworkSettingsBasicResource, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[AsyncItemPaged["_models.OutboundRuleBasicResource"]]: """The POST API for updating the outbound rules of the managed network associated with the @@ -22186,10 +22920,10 @@ async def begin_post( :param managed_network_name: Name of the managedNetwork associated with the cognitive services account. Only 'default' is supported. Required. :type managed_network_name: str - :param body: The Managed Network Settings object of the account. Is one of the following types: - ManagedNetworkSettingsBasicResource, JSON, IO[bytes] Required. - :type body: ~azure.mgmt.cognitiveservices.models.ManagedNetworkSettingsBasicResource or JSON or - IO[bytes] + :param body: The Managed Network Settings object of the account. Is either a + ManagedNetworkSettingsBasicResource type or a IO[bytes] type. Required. + :type body: ~azure.mgmt.cognitiveservices.models.ManagedNetworkSettingsBasicResource or + ~azure.mgmt.cognitiveservices.types.ManagedNetworkSettingsBasicResource or IO[bytes] :return: An instance of LROPoller that returns an iterator like instance of list of OutboundRuleBasicResource :rtype: @@ -22342,7 +23076,7 @@ async def internal_get_next(next_link=None): ) -class ManagedNetworkProvisionsOperations: +class ManagedNetworkProvisionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -22366,7 +23100,9 @@ async def _provision_managed_network_initial( resource_group_name: str, account_name: str, managed_network_name: str, - body: Optional[Union[_models.ManagedNetworkProvisionOptions, JSON, IO[bytes]]] = None, + body: Optional[ + Union[_models.ManagedNetworkProvisionOptions, _types.ManagedNetworkProvisionOptions, IO[bytes]] + ] = None, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -22484,7 +23220,7 @@ async def begin_provision_managed_network( resource_group_name: str, account_name: str, managed_network_name: str, - body: Optional[JSON] = None, + body: Optional[_types.ManagedNetworkProvisionOptions] = None, *, content_type: str = "application/json", **kwargs: Any @@ -22503,7 +23239,7 @@ async def begin_provision_managed_network( :type managed_network_name: str :param body: Managed Network Provisioning Options for a cognitive services account. Default value is None. - :type body: JSON + :type body: ~azure.mgmt.cognitiveservices.types.ManagedNetworkProvisionOptions :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -22556,7 +23292,9 @@ async def begin_provision_managed_network( resource_group_name: str, account_name: str, managed_network_name: str, - body: Optional[Union[_models.ManagedNetworkProvisionOptions, JSON, IO[bytes]]] = None, + body: Optional[ + Union[_models.ManagedNetworkProvisionOptions, _types.ManagedNetworkProvisionOptions, IO[bytes]] + ] = None, **kwargs: Any ) -> AsyncLROPoller[_models.ManagedNetworkProvisionStatus]: """Provisions the managed network of a cognitive services account. @@ -22571,10 +23309,10 @@ async def begin_provision_managed_network( :param managed_network_name: Name of the managedNetwork associated with the cognitive services account. Only 'default' is supported. Required. :type managed_network_name: str - :param body: Managed Network Provisioning Options for a cognitive services account. Is one of - the following types: ManagedNetworkProvisionOptions, JSON, IO[bytes] Default value is None. - :type body: ~azure.mgmt.cognitiveservices.models.ManagedNetworkProvisionOptions or JSON or - IO[bytes] + :param body: Managed Network Provisioning Options for a cognitive services account. Is either a + ManagedNetworkProvisionOptions type or a IO[bytes] type. Default value is None. + :type body: ~azure.mgmt.cognitiveservices.models.ManagedNetworkProvisionOptions or + ~azure.mgmt.cognitiveservices.types.ManagedNetworkProvisionOptions or IO[bytes] :return: An instance of AsyncLROPoller that returns ManagedNetworkProvisionStatus. The ManagedNetworkProvisionStatus is compatible with MutableMapping :rtype: @@ -22640,7 +23378,7 @@ def get_long_running_output(pipeline_response): ) -class AgentDeploymentsOperations: +class AgentDeploymentsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -22757,7 +23495,7 @@ async def _create_or_update_initial( project_name: str, app_name: str, deployment_name: str, - body: Union[_models.AgentDeployment, JSON, IO[bytes]], + body: Union[_models.AgentDeployment, _types.AgentDeployment, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -22886,7 +23624,7 @@ async def begin_create_or_update( project_name: str, app_name: str, deployment_name: str, - body: JSON, + body: _types.AgentDeployment, *, content_type: str = "application/json", **kwargs: Any @@ -22909,7 +23647,7 @@ async def begin_create_or_update( Account. Required. :type deployment_name: str :param body: Agent Deployment definition object. Required. - :type body: JSON + :type body: ~azure.mgmt.cognitiveservices.types.AgentDeployment :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -22970,7 +23708,7 @@ async def begin_create_or_update( project_name: str, app_name: str, deployment_name: str, - body: Union[_models.AgentDeployment, JSON, IO[bytes]], + body: Union[_models.AgentDeployment, _types.AgentDeployment, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.AgentDeployment]: """Creates or updates an Agent Deployment (asynchronous). @@ -22990,9 +23728,10 @@ async def begin_create_or_update( :param deployment_name: The name of the deployment associated with the Cognitive Services Account. Required. :type deployment_name: str - :param body: Agent Deployment definition object. Is one of the following types: - AgentDeployment, JSON, IO[bytes] Required. - :type body: ~azure.mgmt.cognitiveservices.models.AgentDeployment or JSON or IO[bytes] + :param body: Agent Deployment definition object. Is either a AgentDeployment type or a + IO[bytes] type. Required. + :type body: ~azure.mgmt.cognitiveservices.models.AgentDeployment or + ~azure.mgmt.cognitiveservices.types.AgentDeployment or IO[bytes] :return: An instance of AsyncLROPoller that returns AgentDeployment. The AgentDeployment is compatible with MutableMapping :rtype: @@ -23498,7 +24237,7 @@ async def stop( return cls(pipeline_response, None, {}) # type: ignore -class ResourceSkusOperations: +class ResourceSkusOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -23612,7 +24351,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class UsagesOperations: +class UsagesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -23733,7 +24472,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class CommitmentTiersOperations: +class CommitmentTiersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -23850,7 +24589,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ModelsOperations: +class ModelsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -23966,7 +24705,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class LocationBasedModelCapacitiesOperations: +class LocationBasedModelCapacitiesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -24094,7 +24833,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ModelCapacitiesOperations: +class ModelCapacitiesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -24249,14 +24988,19 @@ async def check_sku_availability( @overload async def check_sku_availability( - self, location: str, parameters: JSON, *, content_type: str = "application/json", **kwargs: Any + self, + location: str, + parameters: _types.CheckSkuAvailabilityParameter, + *, + content_type: str = "application/json", + **kwargs: Any ) -> _models.SkuAvailabilityListResult: """Check available SKUs. :param location: The location name. Required. :type location: str :param parameters: The request body. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.cognitiveservices.types.CheckSkuAvailabilityParameter :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -24287,16 +25031,19 @@ async def check_sku_availability( @distributed_trace_async async def check_sku_availability( - self, location: str, parameters: Union[_models.CheckSkuAvailabilityParameter, JSON, IO[bytes]], **kwargs: Any + self, + location: str, + parameters: Union[_models.CheckSkuAvailabilityParameter, _types.CheckSkuAvailabilityParameter, IO[bytes]], + **kwargs: Any ) -> _models.SkuAvailabilityListResult: """Check available SKUs. :param location: The location name. Required. :type location: str - :param parameters: The request body. Is one of the following types: - CheckSkuAvailabilityParameter, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.cognitiveservices.models.CheckSkuAvailabilityParameter or JSON or - IO[bytes] + :param parameters: The request body. Is either a CheckSkuAvailabilityParameter type or a + IO[bytes] type. Required. + :type parameters: ~azure.mgmt.cognitiveservices.models.CheckSkuAvailabilityParameter or + ~azure.mgmt.cognitiveservices.types.CheckSkuAvailabilityParameter or IO[bytes] :return: SkuAvailabilityListResult. The SkuAvailabilityListResult is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.SkuAvailabilityListResult @@ -24390,12 +25137,16 @@ async def check_domain_availability( @overload async def check_domain_availability( - self, parameters: JSON, *, content_type: str = "application/json", **kwargs: Any + self, + parameters: _types.CheckDomainAvailabilityParameter, + *, + content_type: str = "application/json", + **kwargs: Any ) -> _models.DomainAvailability: """Check whether a domain is available. :param parameters: The request body. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.cognitiveservices.types.CheckDomainAvailabilityParameter :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -24422,14 +25173,16 @@ async def check_domain_availability( @distributed_trace_async async def check_domain_availability( - self, parameters: Union[_models.CheckDomainAvailabilityParameter, JSON, IO[bytes]], **kwargs: Any + self, + parameters: Union[_models.CheckDomainAvailabilityParameter, _types.CheckDomainAvailabilityParameter, IO[bytes]], + **kwargs: Any ) -> _models.DomainAvailability: """Check whether a domain is available. - :param parameters: The request body. Is one of the following types: - CheckDomainAvailabilityParameter, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.cognitiveservices.models.CheckDomainAvailabilityParameter or JSON - or IO[bytes] + :param parameters: The request body. Is either a CheckDomainAvailabilityParameter type or a + IO[bytes] type. Required. + :type parameters: ~azure.mgmt.cognitiveservices.models.CheckDomainAvailabilityParameter or + ~azure.mgmt.cognitiveservices.types.CheckDomainAvailabilityParameter or IO[bytes] :return: DomainAvailability. The DomainAvailability is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.DomainAvailability :raises ~azure.core.exceptions.HttpResponseError: @@ -24522,12 +25275,16 @@ async def calculate_model_capacity( @overload async def calculate_model_capacity( - self, parameters: JSON, *, content_type: str = "application/json", **kwargs: Any + self, + parameters: _types.CalculateModelCapacityParameter, + *, + content_type: str = "application/json", + **kwargs: Any ) -> _models.CalculateModelCapacityResult: """Model capacity calculator. :param parameters: The request body. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.cognitiveservices.types.CalculateModelCapacityParameter :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -24556,14 +25313,16 @@ async def calculate_model_capacity( @distributed_trace_async async def calculate_model_capacity( - self, parameters: Union[_models.CalculateModelCapacityParameter, JSON, IO[bytes]], **kwargs: Any + self, + parameters: Union[_models.CalculateModelCapacityParameter, _types.CalculateModelCapacityParameter, IO[bytes]], + **kwargs: Any ) -> _models.CalculateModelCapacityResult: """Model capacity calculator. - :param parameters: The request body. Is one of the following types: - CalculateModelCapacityParameter, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.cognitiveservices.models.CalculateModelCapacityParameter or JSON - or IO[bytes] + :param parameters: The request body. Is either a CalculateModelCapacityParameter type or a + IO[bytes] type. Required. + :type parameters: ~azure.mgmt.cognitiveservices.models.CalculateModelCapacityParameter or + ~azure.mgmt.cognitiveservices.types.CalculateModelCapacityParameter or IO[bytes] :return: CalculateModelCapacityResult. The CalculateModelCapacityResult is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.CalculateModelCapacityResult diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_patch.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_patch.py index 68ce2b4f5d57..ea765788358a 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_patch.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_patch.py @@ -7,417 +7,8 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ -import asyncio # pylint: disable=do-not-import-asyncio -import json -import time -from collections.abc import MutableMapping -from io import IOBase -from typing import IO, Any, AsyncIterator, Optional, Union, cast, overload -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.model_base import SdkJSONEncoder, _deserialize, _failsafe_deserialize -from ..._validation import api_version_validation -from ...operations._patch import ( - _CANCELED_STATES, - _TERMINAL_FAILED_STATES, - _TERMINAL_SUCCESS_STATES, - _decode_continuation_token, - _encode_continuation_token, - _provisioning_error, - _state_of, -) -from ...operations._operations import build_computes_create_or_update_request -from ._operations import ComputesOperations as _ComputesOperationsGenerated - -JSON = MutableMapping[str, Any] - - -class _AsyncComputeListPolling(AsyncPollingMethod): - """Async blocking LRO poller that reads compute status from the ``list`` API instead of ``get``. - - The compute create is asynchronous (the service returns HTTP 202) and the new compute is **not** - reliably queryable via ``get`` during creation: a ``GET`` on the resource returns - ``404 "Cluster not found"`` for an extended, variable period while the cluster backend - materializes. The compute does, however, appear in the ``list`` response with its - ``provisioningState`` from the moment the create is accepted. This poller therefore polls ``list`` - (matching the resource by name) until the compute reaches a terminal ``provisioningState``. - - It blocks like a normal long-running-operation poller, never calls the permission-gated - ``.../computeOperations/{id}`` endpoint (so it does not need ``computeOperations/read``), and - surfaces the compute's own error detail on failure. A bounded grace period bounds how long the - compute may be absent from ``list`` before the poller gives up. - """ - - _NOT_FOUND_GRACE_SECONDS = 300 - - def __init__( - self, - operations: "ComputesOperations", - resource_group_name: str, - account_name: str, - compute_name: str, - interval: float, - cls: Any = None, - ) -> None: - self._operations = operations - self._resource_group_name = resource_group_name - self._account_name = account_name - self._compute_name = compute_name - self._interval = interval - self._cls = cls - self._status = "InProgress" - self._resource: Optional[_models.Compute] = None - self._first_missing_at: Optional[float] = None - self._initial_response: Any = None - - def initialize(self, client: Any, initial_response: Any, deserialization_callback: Any) -> None: - self._initial_response = initial_response - - async def _current_compute(self) -> Optional[_models.Compute]: - async for compute in self._operations.list(self._resource_group_name, self._account_name): - if getattr(compute, "name", None) == self._compute_name: - return compute - return None - - async def run(self) -> None: - while not self.finished(): - compute = await self._current_compute() - if compute is None: - # The create was accepted, so the compute should appear in ``list`` shortly. Tolerate a - # brief absence, but give up after a bounded grace so a create that never materializes - # does not hang forever. - if self._first_missing_at is None: - self._first_missing_at = time.monotonic() - elif time.monotonic() - self._first_missing_at > self._NOT_FOUND_GRACE_SECONDS: - raise HttpResponseError( - message=f"Compute '{self._compute_name}' did not appear in the account's compute " - "list after it was created." - ) - else: - self._first_missing_at = None - self._resource = compute - state = _state_of(compute) - if state in _TERMINAL_SUCCESS_STATES: - self._status = "Succeeded" - elif state in _TERMINAL_FAILED_STATES: - # Preserve the service's terminal status (``Canceled`` vs ``Failed``) so callers can - # inspect ``poller.status()`` correctly, while still raising the provisioning error. - self._status = "Canceled" if state in _CANCELED_STATES else "Failed" - raise _provisioning_error(compute) - if not self.finished(): - await asyncio.sleep(self._interval) - - def status(self) -> str: - return self._status - - def finished(self) -> bool: - return self._status in ("Succeeded", "Failed", "Canceled") - - def resource(self) -> Optional[_models.Compute]: - # Apply the caller's ``cls`` hook (if any) to the final resource, preserving the generated - # method's ``cls=`` contract. There is no final pipeline response for the list-based read-back, - # so ``None`` is passed for that positional argument. - if self._resource is not None and self._cls is not None: - return self._cls(None, self._resource, {}) - return self._resource - - def get_continuation_token(self) -> str: - return _encode_continuation_token(self._resource_group_name, self._account_name, self._compute_name) - - @classmethod - def from_continuation_token(cls, continuation_token: str, **kwargs: Any): - # Validate the token is well-formed; the polling scope it encodes is applied when the poller is - # (re)constructed in ``begin_create_or_update``. - _decode_continuation_token(continuation_token) - client = kwargs["client"] - deserialization_callback = kwargs["deserialization_callback"] - return client, None, deserialization_callback - - -class ComputesOperations(_ComputesOperationsGenerated): - """Customized ``ComputesOperations`` that tracks compute creation via the ``list`` API. - - The generated :meth:`begin_create_or_update` has two problems against the current service: - - * :meth:`_create_or_update_initial` rejects the ``202 Accepted`` the service returns for the async - create with "Operation returned an invalid status 'Accepted'"; and - * its poller follows the ``Azure-AsyncOperation`` header to - ``.../locations/{location}/computeOperations/{operationId}``, which requires the - ``Microsoft.CognitiveServices/locations/computeOperations/read`` permission. Many callers who - are allowed to create a compute lack that permission, so the poll fails with - ``AuthorizationFailed`` even though the create itself succeeded. - - This override keeps the generated method's public shape (overloads, api-version validation and - ``continuation_token`` resume path) unchanged. It (1) accepts the ``202`` in - :meth:`_create_or_update_initial` and (2) blocks on an :class:`_AsyncComputeListPolling` poller - that reads ``provisioningState`` from the ``list`` API. ``list`` is used rather than ``get`` - because a ``GET`` on a just-created compute returns ``404 "Cluster not found"`` for an extended - period while it provisions, whereas ``list`` reflects the compute's state from the moment the - create is accepted. The poller only needs ``computes/read``, still blocks until a terminal state, - and surfaces a genuine provisioning failure instead of masking it. - """ - - @api_version_validation( - method_added_on="2026-03-15-preview", - params_added_on={ - "2026-03-15-preview": [ - "api_version", - "subscription_id", - "resource_group_name", - "account_name", - "compute_name", - "content_type", - "accept", - ] - }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], - ) - async def _create_or_update_initial( - self, - resource_group_name: str, - account_name: str, - compute_name: str, - resource: Union[_models.Compute, JSON, IO[bytes]], - **kwargs: Any, - ) -> AsyncIterator[bytes]: - # Mirrors the generated ``_create_or_update_initial`` exactly, except it accepts ``202``. The - # generated code only allows 200/201 and rejects the service's async 202 with - # "Operation returned an invalid status 'Accepted'", failing a create the service accepted. - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: Any = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _content = json.dumps(resource, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_computes_create_or_update_request( - resource_group_name=resource_group_name, - account_name=account_name, - compute_name=compute_name, - subscription_id=self._config.subscription_id, - content_type=content_type, - api_version=self._config.api_version, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code in [201, 202]: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - account_name: str, - compute_name: str, - resource: _models.Compute, - *, - content_type: str = "application/json", - **kwargs: Any, - ) -> AsyncLROPoller[_models.Compute]: ... - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - account_name: str, - compute_name: str, - resource: JSON, - *, - content_type: str = "application/json", - **kwargs: Any, - ) -> AsyncLROPoller[_models.Compute]: ... - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - account_name: str, - compute_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any, - ) -> AsyncLROPoller[_models.Compute]: ... - - @distributed_trace_async - @api_version_validation( - method_added_on="2026-03-15-preview", - params_added_on={ - "2026-03-15-preview": [ - "api_version", - "subscription_id", - "resource_group_name", - "account_name", - "compute_name", - "content_type", - "accept", - ] - }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], - ) - async def begin_create_or_update( - self, - resource_group_name: str, - account_name: str, - compute_name: str, - resource: Union[_models.Compute, JSON, IO[bytes]], - **kwargs: Any, - ) -> AsyncLROPoller[_models.Compute]: - """Creates or updates a compute associated with the Cognitive Services account. - - This override accepts the service's ``202 Accepted`` and blocks until the compute reaches a - terminal state, reading ``provisioningState`` from the ``list`` API rather than polling the - operation-status endpoint (which requires ``computeOperations/read``). ``list`` is used because - a ``GET`` on a just-created compute returns ``404 "Cluster not found"`` while it provisions. It - raises on a genuine provisioning failure, so callers get correct results without needing the - operation-status read permission. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param account_name: The name of Cognitive Services account. Required. - :type account_name: str - :param compute_name: The name of the compute associated with the Cognitive Services Account. - Required. - :type compute_name: str - :param resource: The compute properties. Is one of the following types: Compute, JSON, - IO[bytes] Required. - :type resource: ~azure.mgmt.cognitiveservices.models.Compute or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns Compute. The Compute is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.Compute] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: Any = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - account_name=account_name, - compute_name=compute_name, - resource=resource, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs, - ) - await raw_result.http_response.read() # type: ignore - # A synchronous terminal failure (rare: the accepted body itself is already Failed/Canceled) - # would otherwise slip through to a poller that would just keep listing; surface the - # resource's own error detail immediately instead. - try: - initial_body = raw_result.http_response.json() - except Exception: # pylint: disable=broad-except - initial_body = None - if isinstance(initial_body, MutableMapping) and _state_of(initial_body) in _TERMINAL_FAILED_STATES: - raise _provisioning_error(initial_body) - else: - # Opaque-token contract: the token is the source of truth for which operation to resume, so - # decode the polling scope from it (raising on a malformed token) rather than trusting the - # method arguments, and do not re-issue the create. - resource_group_name, account_name, compute_name = _decode_continuation_token(cont_token) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.Compute, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - _AsyncComputeListPolling(self, resource_group_name, account_name, compute_name, lro_delay, cls), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.Compute].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.Compute]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - -__all__: list[str] = [ - "ComputesOperations", -] # Add all objects you want publicly available to users at this package level +__all__: list[str] = [] # Add all objects you want publicly available to users at this package level def patch_sdk(): diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/__init__.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/__init__.py index 43e15921ab28..ec530568a94d 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/__init__.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/__init__.py @@ -26,6 +26,7 @@ AgentApplication, AgentDeployment, AgentDeploymentProperties, + AgentHostingConfiguration, AgentProtocolVersion, AgentReference, AgentReferenceProperties, @@ -36,6 +37,19 @@ ApiProperties, ApplicationAuthorizationPolicy, ApplicationTrafficRoutingPolicy, + ArcDeployment, + ArcDeploymentCpuMemoryResourceRequirements, + ArcDeploymentKubernetesResources, + ArcDeploymentModel, + ArcDeploymentPatchCpuMemoryResourceRequirements, + ArcDeploymentPatchKubernetesResources, + ArcDeploymentProperties, + ArcDeploymentProvisioningDetails, + ArcDeploymentResourceRequirements, + ArcDeploymentSku, + ArcDeploymentUpdate, + ArcDeploymentUpdateProperties, + ArcDeploymentVllmParameters, AssignedIdentity, BillingMeterInfo, CalculateModelCapacityParameter, @@ -44,6 +58,7 @@ CallRateLimit, CapabilityHost, CapabilityHostProperties, + CapabilitySettings, CapacityConfig, ChannelsBuiltInAuthorizationPolicy, CheckDomainAvailabilityParameter, @@ -108,6 +123,7 @@ IpRule, KeyVaultProperties, ManagedAgentDeployment, + ManagedClusterAgentHostingConfiguration, ManagedComputeCapacity, ManagedComputeCapacityProperties, ManagedComputeDeployment, @@ -251,8 +267,12 @@ AgentDeploymentProvisioningState, AgentDeploymentState, AgentDeploymentType, + AgentHostingType, AgentProtocol, AgenticApplicationProvisioningState, + ArcDeploymentComputeType, + ArcDeploymentRuntime, + ArcDeploymentSkuName, BuiltInAuthorizationScheme, ByPassSelection, CapabilityHostKind, @@ -344,6 +364,7 @@ "AgentApplication", "AgentDeployment", "AgentDeploymentProperties", + "AgentHostingConfiguration", "AgentProtocolVersion", "AgentReference", "AgentReferenceProperties", @@ -354,6 +375,19 @@ "ApiProperties", "ApplicationAuthorizationPolicy", "ApplicationTrafficRoutingPolicy", + "ArcDeployment", + "ArcDeploymentCpuMemoryResourceRequirements", + "ArcDeploymentKubernetesResources", + "ArcDeploymentModel", + "ArcDeploymentPatchCpuMemoryResourceRequirements", + "ArcDeploymentPatchKubernetesResources", + "ArcDeploymentProperties", + "ArcDeploymentProvisioningDetails", + "ArcDeploymentResourceRequirements", + "ArcDeploymentSku", + "ArcDeploymentUpdate", + "ArcDeploymentUpdateProperties", + "ArcDeploymentVllmParameters", "AssignedIdentity", "BillingMeterInfo", "CalculateModelCapacityParameter", @@ -362,6 +396,7 @@ "CallRateLimit", "CapabilityHost", "CapabilityHostProperties", + "CapabilitySettings", "CapacityConfig", "ChannelsBuiltInAuthorizationPolicy", "CheckDomainAvailabilityParameter", @@ -426,6 +461,7 @@ "IpRule", "KeyVaultProperties", "ManagedAgentDeployment", + "ManagedClusterAgentHostingConfiguration", "ManagedComputeCapacity", "ManagedComputeCapacityProperties", "ManagedComputeDeployment", @@ -566,8 +602,12 @@ "AgentDeploymentProvisioningState", "AgentDeploymentState", "AgentDeploymentType", + "AgentHostingType", "AgentProtocol", "AgenticApplicationProvisioningState", + "ArcDeploymentComputeType", + "ArcDeploymentRuntime", + "ArcDeploymentSkuName", "BuiltInAuthorizationScheme", "ByPassSelection", "CapabilityHostKind", diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/_enums.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/_enums.py index 49f8f21a589c..a2927c78746b 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/_enums.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/_enums.py @@ -80,6 +80,13 @@ class AgentDeploymentType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The underlying infra is provisioned by the deployer (BYO).""" +class AgentHostingType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Type of infrastructure used to host Foundry agents.""" + + MANAGED_CLUSTER = "ManagedCluster" + """Agents are hosted on an Azure Kubernetes Service managed cluster.""" + + class AgenticApplicationProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Provisioning state of an agentic application.""" @@ -108,6 +115,31 @@ class AgentProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): """OpenAI-compatible.""" +class ArcDeploymentComputeType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Compute type for an Arc deployment.""" + + GPU = "gpu" + """GPU compute.""" + CPU = "cpu" + """CPU compute.""" + + +class ArcDeploymentRuntime(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Inference runtime for an Arc deployment.""" + + VLLM = "vllm" + """vLLM runtime.""" + ONNX = "onnx-genai" + """ONNX runtime.""" + + +class ArcDeploymentSkuName(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """SKU for an Arc deployment.""" + + ARC = "Arc" + """Arc SKU.""" + + class BuiltInAuthorizationScheme(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Authorization scheme type.""" @@ -927,6 +959,8 @@ class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """CANCELED.""" RESOLVING_DNS = "ResolvingDNS" """RESOLVING_DNS.""" + EXTENSION_UNREACHABLE = "ExtensionUnreachable" + """EXTENSION_UNREACHABLE.""" class PublicNetworkAccess(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -1277,5 +1311,5 @@ class VmPriority(str, Enum, metaclass=CaseInsensitiveEnumMeta): REGULAR = "Regular" """Regular VM priority.""" - LOW_PRIORITY = "LowPriority" - """Low-priority VM.""" + SPOT = "Spot" + """Spot VM priority.""" diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/_models.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/_models.py index 454b4ec44a51..f053c9741ea2 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/_models.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/_models.py @@ -12,13 +12,20 @@ from typing import Any, Literal, Mapping, Optional, TYPE_CHECKING, Union, overload from .._utils.model_base import Model as _Model, rest_discriminator, rest_field -from ._enums import AgentDeploymentType, BuiltInAuthorizationScheme, ComputeType, ConnectionAuthType, RuleType +from ._enums import ( + AgentDeploymentType, + AgentHostingType, + BuiltInAuthorizationScheme, + ComputeType, + ConnectionAuthType, + RuleType, +) if TYPE_CHECKING: from .. import models as _models -class ConnectionPropertiesV2(_Model): +class ConnectionPropertiesV2(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Connection property base schema. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -181,7 +188,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AADAuthTypeConnectionProperties(ConnectionPropertiesV2, discriminator="AAD"): +class AADAuthTypeConnectionProperties( + ConnectionPropertiesV2, discriminator="AAD" +): # pylint: disable=docstring-keyword-should-match-keyword-only """This connection type covers the AAD auth for any applicable Azure service. :ivar category: Category of the connection. Known values are: "PythonFeed", @@ -268,7 +277,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.auth_type = ConnectionAuthType.AAD # type: ignore -class AbusePenalty(_Model): +class AbusePenalty(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The abuse penalty. :ivar action: The action of AbusePenalty. Known values are: "Throttle" and "Block". @@ -312,7 +321,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AccessKeyAuthTypeConnectionProperties(ConnectionPropertiesV2, discriminator="AccessKey"): +class AccessKeyAuthTypeConnectionProperties( + ConnectionPropertiesV2, discriminator="AccessKey" +): # pylint: disable=docstring-keyword-should-match-keyword-only """AccessKeyAuthTypeConnectionProperties. :ivar category: Category of the connection. Known values are: "PythonFeed", @@ -450,7 +461,7 @@ class ProxyResource(Resource): """ -class Account(ProxyResource): +class Account(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Cognitive Services account is an Azure resource representing the provisioned account, it's type, location and SKU. @@ -521,7 +532,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AccountKeyAuthTypeConnectionProperties(ConnectionPropertiesV2, discriminator="AccountKey"): +class AccountKeyAuthTypeConnectionProperties( + ConnectionPropertiesV2, discriminator="AccountKey" +): # pylint: disable=docstring-keyword-should-match-keyword-only """This connection type covers the account key connection for Azure storage. :ivar category: Category of the connection. Known values are: "PythonFeed", @@ -615,7 +628,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.auth_type = ConnectionAuthType.ACCOUNT_KEY # type: ignore -class DeploymentModel(_Model): +class DeploymentModel(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of Cognitive Services account deployment model. :ivar publisher: Deployment model publisher. @@ -681,7 +694,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AccountModel(DeploymentModel): +class AccountModel(DeploymentModel): # pylint: disable=docstring-keyword-should-match-keyword-only """Cognitive Services account Model. :ivar publisher: Deployment model publisher. @@ -800,12 +813,12 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AccountProperties(_Model): +class AccountProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of Cognitive Services account. :ivar provisioning_state: Gets the status of the cognitive services account at the time the operation was called. Known values are: "Accepted", "Creating", "Deleting", "Moving", "Failed", - "Succeeded", "Canceled", and "ResolvingDNS". + "Succeeded", "Canceled", "ResolvingDNS", and "ExtensionUnreachable". :vartype provisioning_state: str or ~azure.mgmt.cognitiveservices.models.ProvisioningState :ivar endpoint: Endpoint of the created account. :vartype endpoint: str @@ -849,6 +862,9 @@ class AccountProperties(_Model): :vartype dynamic_throttling_enabled: bool :ivar stored_completions_disabled: The flag to disable stored completions. :vartype stored_completions_disabled: bool + :ivar a365_logging_enabled: Specifies whether A365 logging is enabled. Defaults to true. Set to + false to opt out. + :vartype a365_logging_enabled: bool :ivar quota_limit: :vartype quota_limit: ~azure.mgmt.cognitiveservices.models.QuotaLimit :ivar restrict_outbound_network_access: @@ -890,6 +906,19 @@ class AccountProperties(_Model): :ivar associated_projects: Specifies the projects, by project name, that are associated with this resource. :vartype associated_projects: list[str] + :ivar capability_settings: Reusable default agent capability settings inherited by child + projects. + :vartype capability_settings: ~azure.mgmt.cognitiveservices.models.CapabilitySettings + :ivar agent_hosting_configurations: Customer-owned AKS hosting configurations for Foundry + agents. This property can only be specified when the account is created; an existing account + without a hosting configuration cannot add one later. This API version supports exactly one + configuration, while the array shape is reserved for future API versions that may support + multiple configurations. Once set, the configuration cannot be changed, removed, or reordered. + Account update requests should omit this property or send the complete existing value + unchanged. Responses only include hosting configuration types defined by the requested API + version. + :vartype agent_hosting_configurations: + list[~azure.mgmt.cognitiveservices.models.AgentHostingConfiguration] """ provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field( @@ -897,7 +926,7 @@ class AccountProperties(_Model): ) """Gets the status of the cognitive services account at the time the operation was called. Known values are: \"Accepted\", \"Creating\", \"Deleting\", \"Moving\", \"Failed\", \"Succeeded\", - \"Canceled\", and \"ResolvingDNS\".""" + \"Canceled\", \"ResolvingDNS\", and \"ExtensionUnreachable\".""" endpoint: Optional[str] = rest_field(visibility=["read"]) """Endpoint of the created account.""" internal_id: Optional[str] = rest_field(name="internalId", visibility=["read"]) @@ -956,6 +985,10 @@ class AccountProperties(_Model): name="storedCompletionsDisabled", visibility=["read", "create", "update", "delete", "query"] ) """The flag to disable stored completions.""" + a365_logging_enabled: Optional[bool] = rest_field( + name="a365LoggingEnabled", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether A365 logging is enabled. Defaults to true. Set to false to opt out.""" quota_limit: Optional["_models.QuotaLimit"] = rest_field(name="quotaLimit", visibility=["read"]) restrict_outbound_network_access: Optional[bool] = rest_field( name="restrictOutboundNetworkAccess", visibility=["read", "create", "update", "delete", "query"] @@ -1008,6 +1041,20 @@ class AccountProperties(_Model): name="associatedProjects", visibility=["read", "create", "update", "delete", "query"] ) """Specifies the projects, by project name, that are associated with this resource.""" + capability_settings: Optional["_models.CapabilitySettings"] = rest_field( + name="capabilitySettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Reusable default agent capability settings inherited by child projects.""" + agent_hosting_configurations: Optional[list["_models.AgentHostingConfiguration"]] = rest_field( + name="agentHostingConfigurations", visibility=["read", "create"] + ) + """Customer-owned AKS hosting configurations for Foundry agents. This property can only be + specified when the account is created; an existing account without a hosting configuration + cannot add one later. This API version supports exactly one configuration, while the array + shape is reserved for future API versions that may support multiple configurations. Once set, + the configuration cannot be changed, removed, or reordered. Account update requests should omit + this property or send the complete existing value unchanged. Responses only include hosting + configuration types defined by the requested API version.""" @overload def __init__( # pylint: disable=too-many-locals @@ -1023,6 +1070,7 @@ def __init__( # pylint: disable=too-many-locals api_properties: Optional["_models.ApiProperties"] = None, dynamic_throttling_enabled: Optional[bool] = None, stored_completions_disabled: Optional[bool] = None, + a365_logging_enabled: Optional[bool] = None, restrict_outbound_network_access: Optional[bool] = None, allowed_fqdn_list: Optional[list[str]] = None, disable_local_auth: Optional[bool] = None, @@ -1034,6 +1082,8 @@ def __init__( # pylint: disable=too-many-locals allow_project_management: Optional[bool] = None, default_project: Optional[str] = None, associated_projects: Optional[list[str]] = None, + capability_settings: Optional["_models.CapabilitySettings"] = None, + agent_hosting_configurations: Optional[list["_models.AgentHostingConfiguration"]] = None, ) -> None: ... @overload @@ -1047,7 +1097,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AccountSku(_Model): +class AccountSku(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Cognitive Services resource type and SKU. :ivar resource_type: Resource Namespace and Type. @@ -1082,7 +1132,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AccountSkuListResult(_Model): +class AccountSkuListResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The list of cognitive services accounts operation response. :ivar value: Gets the list of Cognitive Services accounts and their properties. @@ -1110,7 +1160,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AgentApplication(ProxyResource): +class AgentApplication(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Agent Application resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -1151,7 +1201,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AgentDeployment(ProxyResource): +class AgentDeployment(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Agent Deployment resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -1192,7 +1242,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ResourceBase(_Model): +class ResourceBase(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ResourceBase. :ivar description: The asset description text. @@ -1225,7 +1275,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AgentDeploymentProperties(ResourceBase): +class AgentDeploymentProperties(ResourceBase): # pylint: disable=docstring-keyword-should-match-keyword-only """Type representing an agent deployment as a management construct. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -1316,7 +1366,47 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AgenticApplicationProperties(ResourceBase): +class AgentHostingConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Base configuration for hosting Foundry agents. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + ManagedClusterAgentHostingConfiguration + + :ivar name: Unique name of the hosting configuration within the Foundry account. Required. + :vartype name: str + :ivar hosting_type: Type of infrastructure used to host Foundry agents. Required. + "ManagedCluster" + :vartype hosting_type: str or ~azure.mgmt.cognitiveservices.models.AgentHostingType + """ + + __mapping__: dict[str, _Model] = {} + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Unique name of the hosting configuration within the Foundry account. Required.""" + hosting_type: str = rest_discriminator( + name="hostingType", visibility=["read", "create", "update", "delete", "query"] + ) + """Type of infrastructure used to host Foundry agents. Required. \"ManagedCluster\"""" + + @overload + def __init__( + self, + *, + name: str, + hosting_type: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AgenticApplicationProperties(ResourceBase): # pylint: disable=docstring-keyword-should-match-keyword-only """Resource type representing an agentic application as a management construct. :ivar description: The asset description text. @@ -1413,7 +1503,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AgentProtocolVersion(_Model): +class AgentProtocolVersion(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Type modeling the protocol and version used by an agent/exposed by a deployment. :ivar protocol: The protocol used by the agent/exposed by a deployment. Known values are: @@ -1450,7 +1540,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AgentReference(ProxyResource): +class AgentReference(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Agent Reference resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -1491,7 +1581,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AgentReferenceProperties(_Model): +class AgentReferenceProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Type modeling a reference to a version of an agent definition. :ivar agent_id: Gets the agent's unique identifier within the organization (subscription). @@ -1524,7 +1614,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AgentReferenceResourceArmPaginatedResult(_Model): +class AgentReferenceResourceArmPaginatedResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A paginated list of Agent Reference entities. :ivar next_link: The link to the next page of Agent Reference objects. If null, there are no @@ -1560,7 +1650,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApiKeyAuthConnectionProperties(ConnectionPropertiesV2, discriminator="ApiKey"): +class ApiKeyAuthConnectionProperties( + ConnectionPropertiesV2, discriminator="ApiKey" +): # pylint: disable=docstring-keyword-should-match-keyword-only """This connection type covers the generic ApiKey auth connection categories, for examples: AzureOpenAI: Category:= AzureOpenAI @@ -1673,7 +1765,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.auth_type = ConnectionAuthType.API_KEY # type: ignore -class ApiKeys(_Model): +class ApiKeys(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The access keys for the cognitive services account. :ivar key1: Gets the value of key 1. @@ -1706,7 +1798,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApiProperties(_Model): +class ApiProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The api properties for special APIs. :ivar qna_runtime_endpoint: (QnAMaker Only) The runtime endpoint of QnAMaker. @@ -1799,7 +1891,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationAuthorizationPolicy(_Model): +class ApplicationAuthorizationPolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Represents a policy for authorizing applications based on specified authentication and authorization schemes. @@ -1835,7 +1927,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationTrafficRoutingPolicy(_Model): +class ApplicationTrafficRoutingPolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Type representing an application traffic policy as a property of an agentic application. :ivar protocol: Methodology used to route traffic to the application's deployments. @@ -1873,7 +1965,599 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AssignedIdentity(_Model): +class ArcDeployment(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only + """Cognitive Services account Arc deployment, backed by customer-managed Arc-enabled Kubernetes + resources. + + :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 system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.cognitiveservices.models.SystemData + :ivar properties: Properties of the Cognitive Services Arc deployment. Required. + :vartype properties: ~azure.mgmt.cognitiveservices.models.ArcDeploymentProperties + :ivar sku: The Arc deployment SKU. Only the SKU name is required for Arc deployments. Required. + :vartype sku: ~azure.mgmt.cognitiveservices.models.ArcDeploymentSku + :ivar etag: Resource Etag. + :vartype etag: str + """ + + properties: "_models.ArcDeploymentProperties" = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Properties of the Cognitive Services Arc deployment. Required.""" + sku: "_models.ArcDeploymentSku" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The Arc deployment SKU. Only the SKU name is required for Arc deployments. Required.""" + etag: Optional[str] = rest_field(visibility=["read"]) + """Resource Etag.""" + + @overload + def __init__( + self, + *, + properties: "_models.ArcDeploymentProperties", + sku: "_models.ArcDeploymentSku", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ArcDeploymentCpuMemoryResourceRequirements( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only + """CPU and memory resource requirements for an Arc deployment replica. + + :ivar cpu: Kubernetes CPU quantity string, for example 500m, 2, 4, or 8. Required. + :vartype cpu: str + :ivar memory: Kubernetes memory quantity string, for example 512Mi, 2Gi, or 16Gi. Required. + :vartype memory: str + """ + + cpu: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Kubernetes CPU quantity string, for example 500m, 2, 4, or 8. Required.""" + memory: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Kubernetes memory quantity string, for example 512Mi, 2Gi, or 16Gi. Required.""" + + @overload + def __init__( + self, + *, + cpu: str, + memory: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ArcDeploymentKubernetesResources(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Per-replica Kubernetes resource requests and limits for an Arc deployment. + + :ivar requests: Kubernetes CPU and memory resource requests for each deployment replica. + :vartype requests: + ~azure.mgmt.cognitiveservices.models.ArcDeploymentCpuMemoryResourceRequirements + :ivar limits: Kubernetes resource limits for each deployment replica. + :vartype limits: ~azure.mgmt.cognitiveservices.models.ArcDeploymentResourceRequirements + """ + + requests: Optional["_models.ArcDeploymentCpuMemoryResourceRequirements"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Kubernetes CPU and memory resource requests for each deployment replica.""" + limits: Optional["_models.ArcDeploymentResourceRequirements"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Kubernetes resource limits for each deployment replica.""" + + @overload + def __init__( + self, + *, + requests: Optional["_models.ArcDeploymentCpuMemoryResourceRequirements"] = None, + limits: Optional["_models.ArcDeploymentResourceRequirements"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ArcDeploymentModel(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Model reference for an Arc deployment. + + :ivar format: Deployment model format. Required. + :vartype format: str + :ivar name: Deployment model name. Required. + :vartype name: str + """ + + format: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Deployment model format. Required.""" + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Deployment model name. Required.""" + + @overload + def __init__( + self, + *, + format: str, + name: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ArcDeploymentPatchCpuMemoryResourceRequirements( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only + """CPU and memory resource requirements for an Arc deployment replica update. + + :ivar cpu: Kubernetes CPU quantity string, for example 500m, 2, 4, or 8. + :vartype cpu: str + :ivar memory: Kubernetes memory quantity string, for example 512Mi, 2Gi, or 16Gi. + :vartype memory: str + """ + + cpu: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Kubernetes CPU quantity string, for example 500m, 2, 4, or 8.""" + memory: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Kubernetes memory quantity string, for example 512Mi, 2Gi, or 16Gi.""" + + @overload + def __init__( + self, + *, + cpu: Optional[str] = None, + memory: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ArcDeploymentPatchKubernetesResources(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Per-replica Kubernetes resource requests and limits for an Arc deployment update. + + :ivar requests: Kubernetes CPU and memory resource requests for each deployment replica. + :vartype requests: + ~azure.mgmt.cognitiveservices.models.ArcDeploymentPatchCpuMemoryResourceRequirements + :ivar limits: Kubernetes resource limits for each deployment replica. + :vartype limits: ~azure.mgmt.cognitiveservices.models.ArcDeploymentResourceRequirements + """ + + requests: Optional["_models.ArcDeploymentPatchCpuMemoryResourceRequirements"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Kubernetes CPU and memory resource requests for each deployment replica.""" + limits: Optional["_models.ArcDeploymentResourceRequirements"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Kubernetes resource limits for each deployment replica.""" + + @overload + def __init__( + self, + *, + requests: Optional["_models.ArcDeploymentPatchCpuMemoryResourceRequirements"] = None, + limits: Optional["_models.ArcDeploymentResourceRequirements"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ArcDeploymentProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Properties of a Cognitive Services Arc deployment. + + :ivar model: Model reference. Required on creation and immutable after creation. Required. + :vartype model: ~azure.mgmt.cognitiveservices.models.ArcDeploymentModel + :ivar extension_id: Full Azure resource ID of the Foundry inference extension on the target + Arc-enabled Kubernetes cluster. Required on creation and immutable after creation. Required. + :vartype extension_id: str + :ivar runtime: Inference runtime. Required on creation and immutable after creation. Required. + Known values are: "vllm" and "onnx-genai". + :vartype runtime: str or ~azure.mgmt.cognitiveservices.models.ArcDeploymentRuntime + :ivar compute: Compute type for the deployment. Required on creation and immutable after + creation. Required. Known values are: "gpu" and "cpu". + :vartype compute: str or ~azure.mgmt.cognitiveservices.models.ArcDeploymentComputeType + :ivar deployment_template: Optional deployment template identifier for advanced vLLM tuning. + Allowed only when runtime is vllm. Example: + azureml://registries/{registry}/deploymenttemplates/{template}/versions/{version}. + :vartype deployment_template: str + :ivar vllm_parameters: Read-only. Effective vLLM runtime parameters resolved for the deployed + model. Returned only when runtime is vllm. + :vartype vllm_parameters: ~azure.mgmt.cognitiveservices.models.ArcDeploymentVllmParameters + :ivar replicas: Physical replica count on the Arc cluster. Required. + :vartype replicas: int + :ivar resources: Per-replica Kubernetes resource requests and limits. Required. + :vartype resources: ~azure.mgmt.cognitiveservices.models.ArcDeploymentKubernetesResources + :ivar node_selector: Kubernetes node selector key-value map used to schedule pods onto nodes + with matching labels. + :vartype node_selector: dict[str, str] + :ivar deployment_state: The deployment state. Known values are: "Running" and "Paused". + :vartype deployment_state: str or ~azure.mgmt.cognitiveservices.models.DeploymentState + :ivar rai_policy_name: The name of RAI policy. + :vartype rai_policy_name: str + :ivar provisioning_state: Read-only. Current provisioning state. Known values are: "Accepted", + "Creating", "Deleting", "Moving", "Failed", "Succeeded", "Canceled", "ResolvingDNS", and + "ExtensionUnreachable". + :vartype provisioning_state: str or ~azure.mgmt.cognitiveservices.models.ProvisioningState + :ivar provisioning_details: Read-only. Status message and timestamp from the last provisioning + operation. + :vartype provisioning_details: + ~azure.mgmt.cognitiveservices.models.ArcDeploymentProvisioningDetails + :ivar inference_endpoint: Read-only. Base URL for inference calls to this deployment on the Arc + cluster. Populated when provisioningState is Succeeded. + :vartype inference_endpoint: str + :ivar capabilities: Read-only. Deployment capabilities represented as key-value pairs. + :vartype capabilities: dict[str, str] + """ + + model: "_models.ArcDeploymentModel" = rest_field(visibility=["read", "create"]) + """Model reference. Required on creation and immutable after creation. Required.""" + extension_id: str = rest_field(name="extensionId", visibility=["read", "create"]) + """Full Azure resource ID of the Foundry inference extension on the target Arc-enabled Kubernetes + cluster. Required on creation and immutable after creation. Required.""" + runtime: Union[str, "_models.ArcDeploymentRuntime"] = rest_field(visibility=["read", "create"]) + """Inference runtime. Required on creation and immutable after creation. Required. Known values + are: \"vllm\" and \"onnx-genai\".""" + compute: Union[str, "_models.ArcDeploymentComputeType"] = rest_field(visibility=["read", "create"]) + """Compute type for the deployment. Required on creation and immutable after creation. Required. + Known values are: \"gpu\" and \"cpu\".""" + deployment_template: Optional[str] = rest_field(name="deploymentTemplate", visibility=["read", "create"]) + """Optional deployment template identifier for advanced vLLM tuning. Allowed only when runtime is + vllm. Example: + azureml://registries/{registry}/deploymenttemplates/{template}/versions/{version}.""" + vllm_parameters: Optional["_models.ArcDeploymentVllmParameters"] = rest_field( + name="vllmParameters", visibility=["read"] + ) + """Read-only. Effective vLLM runtime parameters resolved for the deployed model. Returned only + when runtime is vllm.""" + replicas: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Physical replica count on the Arc cluster. Required.""" + resources: "_models.ArcDeploymentKubernetesResources" = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Per-replica Kubernetes resource requests and limits. Required.""" + node_selector: Optional[dict[str, str]] = rest_field( + name="nodeSelector", visibility=["read", "create", "update", "delete", "query"] + ) + """Kubernetes node selector key-value map used to schedule pods onto nodes with matching labels.""" + deployment_state: Optional[Union[str, "_models.DeploymentState"]] = rest_field( + name="deploymentState", visibility=["read", "create", "update", "delete", "query"] + ) + """The deployment state. Known values are: \"Running\" and \"Paused\".""" + rai_policy_name: Optional[str] = rest_field( + name="raiPolicyName", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of RAI policy.""" + provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """Read-only. Current provisioning state. Known values are: \"Accepted\", \"Creating\", + \"Deleting\", \"Moving\", \"Failed\", \"Succeeded\", \"Canceled\", \"ResolvingDNS\", and + \"ExtensionUnreachable\".""" + provisioning_details: Optional["_models.ArcDeploymentProvisioningDetails"] = rest_field( + name="provisioningDetails", visibility=["read"] + ) + """Read-only. Status message and timestamp from the last provisioning operation.""" + inference_endpoint: Optional[str] = rest_field(name="inferenceEndpoint", visibility=["read"]) + """Read-only. Base URL for inference calls to this deployment on the Arc cluster. Populated when + provisioningState is Succeeded.""" + capabilities: Optional[dict[str, str]] = rest_field(visibility=["read"]) + """Read-only. Deployment capabilities represented as key-value pairs.""" + + @overload + def __init__( + self, + *, + model: "_models.ArcDeploymentModel", + extension_id: str, + runtime: Union[str, "_models.ArcDeploymentRuntime"], + compute: Union[str, "_models.ArcDeploymentComputeType"], + replicas: int, + resources: "_models.ArcDeploymentKubernetesResources", + deployment_template: Optional[str] = None, + node_selector: Optional[dict[str, str]] = None, + deployment_state: Optional[Union[str, "_models.DeploymentState"]] = None, + rai_policy_name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ArcDeploymentProvisioningDetails(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Provisioning status details for an Arc deployment. + + :ivar message: A human-readable status message from the last provisioning operation. + :vartype message: str + :ivar last_operation_timestamp: Timestamp of the last provisioning operation. + :vartype last_operation_timestamp: ~datetime.datetime + """ + + message: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A human-readable status message from the last provisioning operation.""" + last_operation_timestamp: Optional[datetime.datetime] = rest_field( + name="lastOperationTimestamp", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """Timestamp of the last provisioning operation.""" + + @overload + def __init__( + self, + *, + message: Optional[str] = None, + last_operation_timestamp: Optional[datetime.datetime] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ArcDeploymentResourceRequirements(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Kubernetes resource requirements for an Arc deployment replica. Specify either cpu and memory + together, or gpu. GPU is supported only in limits, not requests. + + :ivar cpu: Kubernetes CPU quantity string, for example 500m, 2, 4, or 8. Required with memory + when specifying CPU and memory limits. Do not specify with gpu. + :vartype cpu: str + :ivar memory: Kubernetes memory quantity string, for example 512Mi, 2Gi, or 16Gi. Required with + cpu when specifying CPU and memory limits. Do not specify with gpu. + :vartype memory: str + :ivar gpu: Kubernetes GPU quantity, for example 1, 2, or 5. Required when specifying GPU + limits. Do not specify with cpu or memory. + :vartype gpu: int + """ + + cpu: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Kubernetes CPU quantity string, for example 500m, 2, 4, or 8. Required with memory when + specifying CPU and memory limits. Do not specify with gpu.""" + memory: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Kubernetes memory quantity string, for example 512Mi, 2Gi, or 16Gi. Required with cpu when + specifying CPU and memory limits. Do not specify with gpu.""" + gpu: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Kubernetes GPU quantity, for example 1, 2, or 5. Required when specifying GPU limits. Do not + specify with cpu or memory.""" + + @overload + def __init__( + self, + *, + cpu: Optional[str] = None, + memory: Optional[str] = None, + gpu: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ArcDeploymentSku(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """SKU for an Arc deployment. + + :ivar name: The name of the Arc deployment SKU. Must be Arc. Required. "Arc" + :vartype name: str or ~azure.mgmt.cognitiveservices.models.ArcDeploymentSkuName + """ + + name: Union[str, "_models.ArcDeploymentSkuName"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the Arc deployment SKU. Must be Arc. Required. \"Arc\"""" + + @overload + def __init__( + self, + *, + name: Union[str, "_models.ArcDeploymentSkuName"], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ArcDeploymentUpdate(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """The object used to update an Arc deployment. + + :ivar properties: Properties that can be updated on an Arc deployment. + :vartype properties: ~azure.mgmt.cognitiveservices.models.ArcDeploymentUpdateProperties + """ + + properties: Optional["_models.ArcDeploymentUpdateProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Properties that can be updated on an Arc deployment.""" + + @overload + def __init__( + self, + *, + properties: Optional["_models.ArcDeploymentUpdateProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ArcDeploymentUpdateProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Mutable properties for an Arc deployment. + + :ivar replicas: Physical replica count on the Arc cluster. + :vartype replicas: int + :ivar resources: Per-replica Kubernetes resource requests and limits. + :vartype resources: ~azure.mgmt.cognitiveservices.models.ArcDeploymentPatchKubernetesResources + :ivar node_selector: Kubernetes node selector key-value map used to schedule pods onto nodes + with matching labels. + :vartype node_selector: dict[str, str] + """ + + replicas: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Physical replica count on the Arc cluster.""" + resources: Optional["_models.ArcDeploymentPatchKubernetesResources"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Per-replica Kubernetes resource requests and limits.""" + node_selector: Optional[dict[str, str]] = rest_field( + name="nodeSelector", visibility=["read", "create", "update", "delete", "query"] + ) + """Kubernetes node selector key-value map used to schedule pods onto nodes with matching labels.""" + + @overload + def __init__( + self, + *, + replicas: Optional[int] = None, + resources: Optional["_models.ArcDeploymentPatchKubernetesResources"] = None, + node_selector: Optional[dict[str, str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ArcDeploymentVllmParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Effective vLLM runtime parameters for an Arc deployment. + + :ivar tensor_parallel_size: Number of GPUs used for tensor parallelism. + :vartype tensor_parallel_size: int + :ivar max_model_len: Maximum model context length. + :vartype max_model_len: int + :ivar gpu_memory_utilization: Fraction of GPU memory reserved for model execution. + :vartype gpu_memory_utilization: float + :ivar enforce_eager: Whether eager execution is enforced for the vLLM runtime. + :vartype enforce_eager: bool + """ + + tensor_parallel_size: Optional[int] = rest_field( + name="tensorParallelSize", visibility=["read", "create", "update", "delete", "query"] + ) + """Number of GPUs used for tensor parallelism.""" + max_model_len: Optional[int] = rest_field( + name="maxModelLen", visibility=["read", "create", "update", "delete", "query"] + ) + """Maximum model context length.""" + gpu_memory_utilization: Optional[float] = rest_field( + name="gpuMemoryUtilization", visibility=["read", "create", "update", "delete", "query"] + ) + """Fraction of GPU memory reserved for model execution.""" + enforce_eager: Optional[bool] = rest_field( + name="enforceEager", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether eager execution is enforced for the vLLM runtime.""" + + @overload + def __init__( + self, + *, + tensor_parallel_size: Optional[int] = None, + max_model_len: Optional[int] = None, + gpu_memory_utilization: Optional[float] = None, + enforce_eager: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AssignedIdentity(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Type representing an identity assignment. :ivar kind: Specifies the kind of Entra identity described by this object. Required. Known @@ -1941,7 +2625,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BillingMeterInfo(_Model): +class BillingMeterInfo(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """BillingMeterInfo. :ivar name: @@ -1976,7 +2660,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CalculateModelCapacityParameter(_Model): +class CalculateModelCapacityParameter(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Calculate Model Capacity parameter. :ivar model: Properties of Cognitive Services account deployment model. @@ -2016,7 +2700,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CalculateModelCapacityResult(_Model): +class CalculateModelCapacityResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Calculate Model Capacity result. :ivar model: Properties of Cognitive Services account deployment model. @@ -2056,7 +2740,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CalculateModelCapacityResultEstimatedCapacity(_Model): # pylint: disable=name-too-long +class CalculateModelCapacityResultEstimatedCapacity( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Model Estimated Capacity. :ivar value: @@ -2089,7 +2775,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CallRateLimit(_Model): +class CallRateLimit(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The call rate limit Cognitive Services account. :ivar count: The count value of Call Rate Limit. @@ -2130,7 +2816,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CapabilityHost(ProxyResource): +class CapabilityHost(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Azure Resource Manager resource envelope. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -2171,7 +2857,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CapabilityHostProperties(ResourceBase): +class CapabilityHostProperties(ResourceBase): # pylint: disable=docstring-keyword-should-match-keyword-only """CapabilityHostProperties. :ivar description: The asset description text. @@ -2265,7 +2951,51 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CapacityConfig(_Model): +class CapabilitySettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Extensible agent capability configuration. Carries the Azure resource IDs of the agent storage + dependencies. Modeled as an object so future capability-backed resources can be added without + changing the account or project contract. + + :ivar document_store: Azure resource ID of the document store used by agent runtime state. + :vartype document_store: str + :ivar vector_store: Azure resource ID of the vector store used by agent retrieval and indexing. + :vartype vector_store: str + :ivar blob_store: Azure resource ID of the blob store used by agent file and artifact storage. + :vartype blob_store: str + """ + + document_store: Optional[str] = rest_field( + name="documentStore", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure resource ID of the document store used by agent runtime state.""" + vector_store: Optional[str] = rest_field( + name="vectorStore", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure resource ID of the vector store used by agent retrieval and indexing.""" + blob_store: Optional[str] = rest_field(name="blobStore", visibility=["read", "create", "update", "delete", "query"]) + """Azure resource ID of the blob store used by agent file and artifact storage.""" + + @overload + def __init__( + self, + *, + document_store: Optional[str] = None, + vector_store: Optional[str] = None, + blob_store: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CapacityConfig(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The capacity configuration. :ivar minimum: The minimum capacity. @@ -2344,7 +3074,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.type = BuiltInAuthorizationScheme.CHANNELS # type: ignore -class CheckDomainAvailabilityParameter(_Model): +class CheckDomainAvailabilityParameter(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Check Domain availability parameter. :ivar subdomain_name: The subdomain name to use. Required. @@ -2382,7 +3112,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CheckSkuAvailabilityParameter(_Model): +class CheckSkuAvailabilityParameter(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Check SKU availability parameter. :ivar skus: The SKU of the resource. Required. @@ -2420,7 +3150,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ComputeProperties(_Model): +class ComputeProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Base properties for all compute resource types. The computeType discriminator determines the concrete property shape. @@ -2430,6 +3160,8 @@ class ComputeProperties(_Model): :ivar compute_type: The type of compute resource. Required. Known values are: "Cluster" and "ContainerInstance". :vartype compute_type: str or ~azure.mgmt.cognitiveservices.models.ComputeType + :ivar location: The location of the compute resource. Required. + :vartype location: str :ivar provisioning_state: Provisioning state of the compute resource. Known values are: "Accepted", "Succeeded", "Failed", "Canceled", "Deleting", "Scaling", "Disabled", "Starting", "Stopping", "Restarting", and "Stopped". @@ -2447,6 +3179,8 @@ class ComputeProperties(_Model): ) """The type of compute resource. Required. Known values are: \"Cluster\" and \"ContainerInstance\".""" + location: str = rest_field(visibility=["read", "create"]) + """The location of the compute resource. Required.""" provisioning_state: Optional[Union[str, "_models.ComputeProvisioningState"]] = rest_field( name="provisioningState", visibility=["read"] ) @@ -2463,6 +3197,7 @@ def __init__( self, *, compute_type: str, + location: str, ) -> None: ... @overload @@ -2476,9 +3211,13 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ClusterComputeProperties(ComputeProperties, discriminator="Cluster"): +class ClusterComputeProperties( + ComputeProperties, discriminator="Cluster" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties for a Cluster (AKS-backed) compute resource. + :ivar location: The location of the compute resource. Required. + :vartype location: str :ivar provisioning_state: Provisioning state of the compute resource. Known values are: "Accepted", "Succeeded", "Failed", "Canceled", "Deleting", "Scaling", "Disabled", "Starting", "Stopping", "Restarting", and "Stopped". @@ -2509,6 +3248,7 @@ class ClusterComputeProperties(ComputeProperties, discriminator="Cluster"): def __init__( self, *, + location: str, pools: list["_models.Pool"], subnet_arm_id: Optional[str] = None, ) -> None: ... @@ -2525,7 +3265,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.compute_type = ComputeType.CLUSTER # type: ignore -class CommitmentCost(_Model): +class CommitmentCost(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Cognitive Services account commitment cost. :ivar commitment_meter_id: Commitment meter Id. @@ -2562,7 +3302,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CommitmentPeriod(_Model): +class CommitmentPeriod(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Cognitive Services account commitment period. :ivar tier: Commitment period commitment tier. @@ -2607,7 +3347,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CommitmentPlan(ProxyResource): +class CommitmentPlan(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Cognitive Services account commitment plan. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -2672,7 +3412,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CommitmentPlanAccountAssociation(ProxyResource): +class CommitmentPlanAccountAssociation(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The commitment plan association. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -2743,7 +3483,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class CommitmentPlanAccountAssociationProperties(_Model): # pylint: disable=name-too-long +class CommitmentPlanAccountAssociationProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """The commitment plan account association properties. :ivar account_id: The Azure resource id of the account. @@ -2771,7 +3513,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CommitmentPlanAssociation(_Model): +class CommitmentPlanAssociation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The commitment plan association. :ivar commitment_plan_id: The Azure resource id of the commitment plan. @@ -2808,7 +3550,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CommitmentPlanProperties(_Model): +class CommitmentPlanProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of Cognitive Services account commitment plan. :ivar provisioning_state: Gets the status of the resource at the time the operation was called. @@ -2890,7 +3632,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CommitmentQuota(_Model): +class CommitmentQuota(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Cognitive Services account commitment quota. :ivar quantity: Commitment quota quantity. @@ -2923,7 +3665,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CommitmentTier(_Model): +class CommitmentTier(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Cognitive Services account commitment tier. :ivar kind: The kind (type) of cognitive service account. @@ -2990,7 +3732,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Compute(ProxyResource): +class Compute(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Cognitive Services compute resource. Supports polymorphic compute types (Cluster, ContainerInstance) via the computeType discriminator in properties. @@ -3010,8 +3752,6 @@ class Compute(ProxyResource): :vartype properties: ~azure.mgmt.cognitiveservices.models.ComputeProperties :ivar etag: Resource Etag. :vartype etag: str - :ivar location: The location of the compute resource. - :vartype location: str :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar kind: The kind (type) of compute resource. @@ -3025,8 +3765,6 @@ class Compute(ProxyResource): ContainerInstance. Required.""" etag: Optional[str] = rest_field(visibility=["read"]) """Resource Etag.""" - location: Optional[str] = rest_field(visibility=["read", "create"]) - """The location of the compute resource.""" tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Resource tags.""" kind: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) @@ -3039,7 +3777,6 @@ def __init__( self, *, properties: "_models.ComputeProperties", - location: Optional[str] = None, tags: Optional[dict[str, str]] = None, kind: Optional[str] = None, identity: Optional["_models.Identity"] = None, @@ -3056,7 +3793,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ComputeOperationStatus(ProxyResource): +class ComputeOperationStatus(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The status of an async compute operation. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -3097,7 +3834,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ComputeOperationStatusProperties(_Model): +class ComputeOperationStatusProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The properties of a compute operation status. :ivar start_time: The start time of the operation. @@ -3142,7 +3879,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionAccessKey(_Model): +class ConnectionAccessKey(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ConnectionAccessKey. :ivar access_key_id: @@ -3177,7 +3914,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionAccountKey(_Model): +class ConnectionAccountKey(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Account key object for connection credential. :ivar key: @@ -3204,7 +3941,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionApiKey(_Model): +class ConnectionApiKey(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Api key object for connection credential. :ivar key: @@ -3231,7 +3968,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionManagedIdentity(_Model): +class ConnectionManagedIdentity(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ConnectionManagedIdentity. :ivar client_id: @@ -3264,7 +4001,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionOAuth2(_Model): +class ConnectionOAuth2(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ClientId and ClientSecret are required. Other properties are optional depending on each OAuth2 provider's implementation. @@ -3336,7 +4073,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionPersonalAccessToken(_Model): +class ConnectionPersonalAccessToken(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ConnectionPersonalAccessToken. :ivar pat: @@ -3363,7 +4100,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionPropertiesV2BasicResource(ProxyResource): +class ConnectionPropertiesV2BasicResource(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Connection base resource schema. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -3404,7 +4141,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionServicePrincipal(_Model): +class ConnectionServicePrincipal(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ConnectionServicePrincipal. :ivar client_id: @@ -3441,7 +4178,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionSharedAccessSignature(_Model): +class ConnectionSharedAccessSignature(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ConnectionSharedAccessSignature. :ivar sas: @@ -3468,7 +4205,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionUpdateContent(_Model): +class ConnectionUpdateContent(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The properties that the Cognitive services connection will be updated with. :ivar properties: The properties that the Cognitive services connection will be updated with. @@ -3498,7 +4235,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionUsernamePassword(_Model): +class ConnectionUsernamePassword(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ConnectionUsernamePassword. :ivar password: @@ -3553,9 +4290,13 @@ class ConnectivityEndpoints(_Model): """The SSH port for the compute instance.""" -class ContainerInstanceComputeProperties(ComputeProperties, discriminator="ContainerInstance"): +class ContainerInstanceComputeProperties( + ComputeProperties, discriminator="ContainerInstance" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties for a Container Instance compute resource. + :ivar location: The location of the compute resource. Required. + :vartype location: str :ivar provisioning_state: Provisioning state of the compute resource. Known values are: "Accepted", "Succeeded", "Failed", "Canceled", "Deleting", "Scaling", "Disabled", "Starting", "Stopping", "Restarting", and "Stopped". @@ -3608,6 +4349,7 @@ class ContainerInstanceComputeProperties(ComputeProperties, discriminator="Conta def __init__( self, *, + location: str, target_cluster_id: str, image_link: str, idle_time_before_shutdown: Optional[str] = None, @@ -3626,7 +4368,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.compute_type = ComputeType.CONTAINER_INSTANCE # type: ignore -class RaiBlocklistConfig(_Model): +class RaiBlocklistConfig(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Azure OpenAI blocklist config. :ivar blocklist_name: Name of ContentFilter. @@ -3661,7 +4403,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CustomBlocklistConfig(RaiBlocklistConfig): +class CustomBlocklistConfig(RaiBlocklistConfig): # pylint: disable=docstring-keyword-should-match-keyword-only """Gets or sets the source to which filter applies. :ivar blocklist_name: Name of ContentFilter. @@ -3699,7 +4441,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CustomKeys(_Model): +class CustomKeys(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Custom Keys credential object. :ivar keys_property: Dictionary of . @@ -3729,7 +4471,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CustomKeysConnectionProperties(ConnectionPropertiesV2, discriminator="CustomKeys"): +class CustomKeysConnectionProperties( + ConnectionPropertiesV2, discriminator="CustomKeys" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Category:= CustomKeys AuthType:= CustomKeys (as type discriminator) Credentials:= {CustomKeys} as CustomKeys Target:= {any value} Use Metadata property bag for ApiVersion and other metadata fields. @@ -3823,7 +4567,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.auth_type = ConnectionAuthType.CUSTOM_KEYS # type: ignore -class DefenderForAISetting(ProxyResource): +class DefenderForAISetting(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The Defender for AI resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -3893,7 +4637,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class DefenderForAISettingProperties(_Model): +class DefenderForAISettingProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The Defender for AI resource properties. :ivar state: Defender for AI state on the AI resource. Known values are: "Disabled" and @@ -3924,7 +4668,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Deployment(ProxyResource): +class Deployment(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Cognitive Services account deployment. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -3979,7 +4723,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DeploymentCapacitySettings(_Model): +class DeploymentCapacitySettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Internal use only. :ivar designated_capacity: The designated capacity. @@ -4014,7 +4758,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DeploymentPolicyEvaluationResult(_Model): +class DeploymentPolicyEvaluationResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Policy evaluation result for a single deployment. :ivar evaluation_outcome: The evaluation outcome. Known values are: "Compliant", @@ -4061,7 +4805,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DeploymentProperties(_Model): +class DeploymentProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of Cognitive Services account deployment. :ivar provisioning_state: Gets the status of the resource at the time the operation was called. @@ -4071,6 +4815,9 @@ class DeploymentProperties(_Model): ~azure.mgmt.cognitiveservices.models.DeploymentProvisioningState :ivar model: Properties of Cognitive Services account deployment model. :vartype model: ~azure.mgmt.cognitiveservices.models.DeploymentModel + :ivar context_cache_container_id: The resource ID of the context cache container associated + with this deployment. + :vartype context_cache_container_id: str :ivar speculative_decoding: Speculative decoding settings for the deployment. This configuration applies to Fireworks model formats. :vartype speculative_decoding: @@ -4128,6 +4875,10 @@ class DeploymentProperties(_Model): and \"Canceled\".""" model: Optional["_models.DeploymentModel"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Properties of Cognitive Services account deployment model.""" + context_cache_container_id: Optional[str] = rest_field( + name="contextCacheContainerId", visibility=["read", "create", "update", "delete", "query"] + ) + """The resource ID of the context cache container associated with this deployment.""" speculative_decoding: Optional["_models.DeploymentSpeculativeDecoding"] = rest_field( name="speculativeDecoding", visibility=["read", "create", "update", "delete", "query"] ) @@ -4198,6 +4949,7 @@ def __init__( self, *, model: Optional["_models.DeploymentModel"] = None, + context_cache_container_id: Optional[str] = None, speculative_decoding: Optional["_models.DeploymentSpeculativeDecoding"] = None, scale_settings: Optional["_models.DeploymentScaleSettings"] = None, rai_policy_name: Optional[str] = None, @@ -4222,7 +4974,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DeploymentRouting(_Model): +class DeploymentRouting(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Routing configuration for the model-router deployment. Specifies how requests are routed across multiple models. @@ -4266,7 +5018,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DeploymentScaleSettings(_Model): +class DeploymentScaleSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of Cognitive Services account deployment model. (Deprecated, please use Deployment.sku instead.). @@ -4330,7 +5082,7 @@ class DeploymentSizeCapacity(_Model): """The largest contiguous deployment capacity available for this deployment size.""" -class DeploymentSpeculativeDecoding(_Model): +class DeploymentSpeculativeDecoding(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Speculative decoding settings for a deployment. :ivar draft_model: Draft model used to generate speculative decoding tokens. Required. @@ -4367,7 +5119,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DomainAvailability(_Model): +class DomainAvailability(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Domain availability. :ivar is_subdomain_available: Indicates the given SKU is available or not. @@ -4419,7 +5171,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Encryption(_Model): +class Encryption(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties to configure Encryption. :ivar key_vault_properties: Properties of KeyVault. @@ -4458,7 +5210,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EncryptionScope(ProxyResource): +class EncryptionScope(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Cognitive Services EncryptionScope. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -4508,7 +5260,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EncryptionScopeProperties(Encryption): +class EncryptionScopeProperties(Encryption): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties to EncryptionScope. :ivar key_vault_properties: Properties of KeyVault. @@ -4600,7 +5352,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. @@ -4628,7 +5380,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EvaluateDeploymentPoliciesDeployment(_Model): +class EvaluateDeploymentPoliciesDeployment(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A hypothetical deployment definition used for policy dry-run evaluation. :ivar name: The name of the hypothetical deployment. Required. @@ -4664,7 +5416,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EvaluateDeploymentPoliciesDeploymentProperties(_Model): # pylint: disable=name-too-long +class EvaluateDeploymentPoliciesDeploymentProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of a hypothetical deployment for policy evaluation. :ivar model: The model to evaluate. Required. @@ -4699,7 +5453,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EvaluateDeploymentPoliciesRequest(_Model): +class EvaluateDeploymentPoliciesRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Request body for the evaluateDeploymentPolicies action. :ivar deployments: The list of hypothetical deployments to evaluate against Azure Policy. @@ -4731,7 +5485,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EvaluateDeploymentPoliciesResponse(_Model): +class EvaluateDeploymentPoliciesResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Response body for the evaluateDeploymentPolicies action. :ivar results: Per-deployment policy evaluation results, keyed by deployment name. @@ -4762,7 +5516,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FoundryAutoUpgrade(_Model): +class FoundryAutoUpgrade(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Represents the foundry auto-upgrade configuration for a Cognitive Services account. Customers can opt out of auto-upgrade by setting mode to Disabled. @@ -4815,7 +5569,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OutboundRule(_Model): +class OutboundRule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Outbound Rule for the managed network of a cognitive services account. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -4876,7 +5630,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FqdnOutboundRule(OutboundRule, discriminator="FQDN"): +class FqdnOutboundRule( + OutboundRule, discriminator="FQDN" +): # pylint: disable=docstring-keyword-should-match-keyword-only """FQDN Outbound Rule for the managed network of a cognitive services account. :ivar category: Category of a managed network Outbound Rule of a cognitive services account. @@ -4922,7 +5678,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.type = RuleType.FQDN # type: ignore -class HostedAgentDeployment(AgentDeploymentProperties, discriminator="Hosted"): +class HostedAgentDeployment( + AgentDeploymentProperties, discriminator="Hosted" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Represents a hosted agent deployment where the underlying infrastructure is owned by the platform. @@ -4995,7 +5753,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.deployment_type = AgentDeploymentType.HOSTED # type: ignore -class Identity(_Model): +class Identity(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Identity for the resource. :ivar type: The identity type. Known values are: "None", "SystemAssigned", "UserAssigned", and @@ -5047,7 +5805,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class IpRule(_Model): +class IpRule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A rule governing the accessibility from a specific ip address or ip range. :ivar value: An IPv4 address range in CIDR notation, such as '124.56.78.91' (simple IP address) @@ -5077,7 +5835,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class KeyVaultProperties(_Model): +class KeyVaultProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties to configure keyVault Properties. :ivar key_name: Name of the Key from KeyVault. @@ -5125,7 +5883,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ManagedAgentDeployment(AgentDeploymentProperties, discriminator="Managed"): +class ManagedAgentDeployment( + AgentDeploymentProperties, discriminator="Managed" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Represents a managed agent deployment where the underlying infrastructure is managed by the platform in the deployer's subscription. @@ -5184,7 +5944,84 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.deployment_type = AgentDeploymentType.MANAGED # type: ignore -class ManagedComputeCapacity(ProxyResource): +class ManagedClusterAgentHostingConfiguration( + AgentHostingConfiguration, discriminator="ManagedCluster" +): # pylint: disable=docstring-keyword-should-match-keyword-only + """Configuration for hosting Foundry agents on an Azure Kubernetes Service managed cluster. + + :ivar name: Unique name of the hosting configuration within the Foundry account. Required. + :vartype name: str + :ivar hosting_type: Type of infrastructure used to host Foundry agents. Required. Agents are + hosted on an Azure Kubernetes Service managed cluster. + :vartype hosting_type: str or ~azure.mgmt.cognitiveservices.models.MANAGED_CLUSTER + :ivar hosting_management_identity_resource_id: Azure resource ID of the user-assigned managed + identity used by the Foundry resource provider to manage the hosting configuration. The + identity must be assigned to the Foundry account in identity.userAssignedIdentities. Required. + :vartype hosting_management_identity_resource_id: str + :ivar workload_identity_resource_id: Azure resource ID of the separate user-assigned managed + identity federated to service accounts on the AKS cluster. Hosted agents use this identity to + access the Azure Storage blob data plane. Required. + :vartype workload_identity_resource_id: str + :ivar cluster_resource_id: Azure resource ID of the customer-owned AKS managed cluster that + runs the hosted agent workloads. Required. + :vartype cluster_resource_id: str + :ivar storage_account_resource_id: Azure resource ID of the customer-owned storage account used + by the hosted agents. The storage account must be in the same subscription and region as the + AKS cluster, and its data-plane endpoint must be reachable from the workload network. Required. + :vartype storage_account_resource_id: str + """ + + hosting_type: Literal[AgentHostingType.MANAGED_CLUSTER] = rest_discriminator(name="hostingType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of infrastructure used to host Foundry agents. Required. Agents are hosted on an Azure + Kubernetes Service managed cluster.""" + hosting_management_identity_resource_id: str = rest_field( + name="hostingManagementIdentityResourceId", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure resource ID of the user-assigned managed identity used by the Foundry resource provider + to manage the hosting configuration. The identity must be assigned to the Foundry account in + identity.userAssignedIdentities. Required.""" + workload_identity_resource_id: str = rest_field( + name="workloadIdentityResourceId", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure resource ID of the separate user-assigned managed identity federated to service accounts + on the AKS cluster. Hosted agents use this identity to access the Azure Storage blob data + plane. Required.""" + cluster_resource_id: str = rest_field( + name="clusterResourceId", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure resource ID of the customer-owned AKS managed cluster that runs the hosted agent + workloads. Required.""" + storage_account_resource_id: str = rest_field( + name="storageAccountResourceId", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure resource ID of the customer-owned storage account used by the hosted agents. The storage + account must be in the same subscription and region as the AKS cluster, and its data-plane + endpoint must be reachable from the workload network. Required.""" + + @overload + def __init__( + self, + *, + name: str, + hosting_management_identity_resource_id: str, + workload_identity_resource_id: str, + cluster_resource_id: str, + storage_account_resource_id: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.hosting_type = AgentHostingType.MANAGED_CLUSTER # type: ignore + + +class ManagedComputeCapacity(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Managed compute capacity information for Cognitive Services managed compute deployments. Provides available accelerator capacity per type and region at the subscription level. @@ -5248,7 +6085,7 @@ class ManagedComputeCapacityProperties(_Model): """Capacity information broken down by deployment size.""" -class ManagedComputeDeployment(ProxyResource): +class ManagedComputeDeployment(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Cognitive Services account managed compute deployment, backed by managed compute (GPU) resources. @@ -5299,7 +6136,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ManagedComputeDeploymentInfo(_Model): +class ManagedComputeDeploymentInfo(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Deployment detail within a managed compute usage entry. :ivar deployment_id: Full ARM resource ID of the deployment. @@ -5353,7 +6190,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ManagedComputeDeploymentProperties(_Model): +class ManagedComputeDeploymentProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of a Cognitive Services managed compute deployment. :ivar model: AzureML Registry model asset URI. Required on creation; immutable after creation. @@ -5389,7 +6226,8 @@ class ManagedComputeDeploymentProperties(_Model): acceleratorsPerInstance. :vartype total_accelerators: int :ivar provisioning_state: Read-only. Current provisioning state. Known values are: "Accepted", - "Creating", "Deleting", "Moving", "Failed", "Succeeded", "Canceled", and "ResolvingDNS". + "Creating", "Deleting", "Moving", "Failed", "Succeeded", "Canceled", "ResolvingDNS", and + "ExtensionUnreachable". :vartype provisioning_state: str or ~azure.mgmt.cognitiveservices.models.ProvisioningState :ivar provisioning_details: Read-only. Status message and timestamp from the last provisioning operation. @@ -5431,7 +6269,8 @@ class ManagedComputeDeploymentProperties(_Model): name="provisioningState", visibility=["read"] ) """Read-only. Current provisioning state. Known values are: \"Accepted\", \"Creating\", - \"Deleting\", \"Moving\", \"Failed\", \"Succeeded\", \"Canceled\", and \"ResolvingDNS\".""" + \"Deleting\", \"Moving\", \"Failed\", \"Succeeded\", \"Canceled\", \"ResolvingDNS\", and + \"ExtensionUnreachable\".""" provisioning_details: Optional["_models.ManagedComputeDeploymentProvisioningDetails"] = rest_field( name="provisioningDetails", visibility=["read"] ) @@ -5463,7 +6302,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ManagedComputeDeploymentProvisioningDetails(_Model): # pylint: disable=name-too-long +class ManagedComputeDeploymentProvisioningDetails( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Provisioning status details for a managed compute deployment. :ivar message: A human-readable status message from the last provisioning operation. @@ -5498,7 +6339,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ManagedComputeDeploymentRoutes(_Model): +class ManagedComputeDeploymentRoutes(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Inference route paths for a managed compute deployment, relative to the account endpoint. Populated when provisioningState is Succeeded. @@ -5541,7 +6382,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ManagedComputeUsage(_Model): +class ManagedComputeUsage(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Managed compute quota usage for a specific SKU. :ivar id: Fully qualified resource ID for the managed compute usage. @@ -5613,7 +6454,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ManagedIdentityAuthTypeConnectionProperties( ConnectionPropertiesV2, discriminator="ManagedIdentity" -): # pylint: disable=name-too-long +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """ManagedIdentityAuthTypeConnectionProperties. :ivar category: Category of the connection. Known values are: "PythonFeed", @@ -5710,7 +6551,7 @@ class ManagedNetworkProvisionOptions(_Model): """Managed Network Provisioning options for managed network of a cognitive services account.""" -class ManagedNetworkProvisionStatus(_Model): +class ManagedNetworkProvisionStatus(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Status of the Provisioning for the managed network of a cognitive services account. :ivar status: Status for the managed network of a cognitive services account. Known values are: @@ -5742,7 +6583,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ManagedNetworkSettings(_Model): +class ManagedNetworkSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Managed Network settings for a cognitive services account. :ivar isolation_mode: Isolation mode for the managed network of a cognitive services account. @@ -5822,7 +6663,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ManagedNetworkSettingsBasicResource(Resource): +class ManagedNetworkSettingsBasicResource(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """ManagedNetworkSettingsBasicResource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -5863,7 +6704,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ManagedNetworkSettingsEx(ManagedNetworkSettings): +class ManagedNetworkSettingsEx(ManagedNetworkSettings): # pylint: disable=docstring-keyword-should-match-keyword-only """ManagedNetworkSettingsEx. :ivar isolation_mode: Isolation mode for the managed network of a cognitive services account. @@ -5919,7 +6760,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ManagedNetworkSettingsProperties(_Model): +class ManagedNetworkSettingsProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The properties of the managed network settings of a cognitive services account. :ivar managed_network: Managed Network settings for a cognitive services account. @@ -5960,7 +6801,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ManagedNetworkSettingsPropertiesBasicResource(ProxyResource): # pylint: disable=name-too-long +class ManagedNetworkSettingsPropertiesBasicResource( + ProxyResource +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Concrete proxy resource types can be created by aliasing this type using a specific property type. @@ -6003,7 +6846,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class MetricName(_Model): +class MetricName(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A metric name. :ivar value: The name of the metric. @@ -6038,7 +6881,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Model(_Model): +class Model(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Cognitive Services Model. :ivar model: Cognitive Services account Model. @@ -6081,7 +6924,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ModelCapacityCalculatorWorkload(_Model): +class ModelCapacityCalculatorWorkload(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Model Capacity Calculator Workload. :ivar request_per_minute: Request per minute. @@ -6119,7 +6962,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ModelCapacityCalculatorWorkloadRequestParam(_Model): # pylint: disable=name-too-long +class ModelCapacityCalculatorWorkloadRequestParam( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Dictionary, Model Capacity Calculator Workload Parameters. :ivar avg_prompt_tokens: Average prompt tokens. @@ -6156,7 +7001,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ModelCapacityListResultValueItem(ProxyResource): +class ModelCapacityListResultValueItem(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """ModelCapacityListResultValueItem. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -6202,7 +7047,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ModelDeprecationInfo(_Model): +class ModelDeprecationInfo(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Cognitive Services account ModelDeprecationInfo. :ivar fine_tune: The datetime of deprecation of the fineTune Model. @@ -6249,7 +7094,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ModelSku(_Model): +class ModelSku(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes an available Cognitive Services Model SKU. :ivar name: The name of the model SKU. @@ -6310,7 +7155,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ModelSkuCapacityProperties(_Model): +class ModelSkuCapacityProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Cognitive Services account ModelSkuCapacity. :ivar model: Properties of Cognitive Services account deployment model. @@ -6371,7 +7216,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class MultiRegionSettings(_Model): +class MultiRegionSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The multiregion settings Cognitive Services account. :ivar routing_method: Multiregion routing methods. Known values are: "Priority", "Weighted", @@ -6408,7 +7253,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkInjection(_Model): +class NetworkInjection(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies in AI Foundry where virtual network injection occurs to secure scenarios like Agents entirely within the user's private network, eliminating public internet exposure while maintaining control over network configurations and resources. @@ -6459,7 +7304,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkRuleSet(_Model): +class NetworkRuleSet(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A set of rules governing the network accessibility. :ivar default_action: The default action when no rule from ipRules and from virtualNetworkRules @@ -6513,7 +7358,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkSecurityPerimeter(_Model): +class NetworkSecurityPerimeter(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Information about a linked Network Security Perimeter. :ivar id: Fully qualified identifier of the resource. @@ -6553,7 +7398,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkSecurityPerimeterAccessRule(_Model): +class NetworkSecurityPerimeterAccessRule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Network Security Perimeter Access Rule. :ivar name: Network Security Perimeter Access Rule Name. @@ -6589,7 +7434,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkSecurityPerimeterAccessRuleProperties(_Model): # pylint: disable=name-too-long +class NetworkSecurityPerimeterAccessRuleProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """The Properties of Network Security Perimeter Rule. :ivar direction: Direction of Access Rule. Known values are: "Inbound" and "Outbound". @@ -6649,7 +7496,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem(_Model): # pylint: disable=name-too-long +class NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Subscription for inbound rule. :ivar id: Fully qualified identifier of subscription. @@ -6677,7 +7526,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkSecurityPerimeterConfiguration(ProxyResource): +class NetworkSecurityPerimeterConfiguration( + ProxyResource +): # pylint: disable=docstring-keyword-should-match-keyword-only """NSP Configuration for an Cognitive Services account. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -6719,7 +7570,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkSecurityPerimeterConfigurationAssociationInfo(_Model): # pylint: disable=name-too-long +class NetworkSecurityPerimeterConfigurationAssociationInfo( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Network Security Perimeter Configuration Association Information. :ivar name: Name of the resource association. @@ -6754,7 +7607,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkSecurityPerimeterConfigurationProperties(_Model): # pylint: disable=name-too-long +class NetworkSecurityPerimeterConfigurationProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """The properties of an NSP Configuration. :ivar provisioning_state: Provisioning state of NetworkSecurityPerimeter configuration. @@ -6811,7 +7666,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkSecurityPerimeterProfileInfo(_Model): +class NetworkSecurityPerimeterProfileInfo(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Network Security Perimeter Profile Information. :ivar name: Name of the resource profile. @@ -6867,7 +7722,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NoneAuthTypeConnectionProperties(ConnectionPropertiesV2, discriminator="None"): +class NoneAuthTypeConnectionProperties( + ConnectionPropertiesV2, discriminator="None" +): # pylint: disable=docstring-keyword-should-match-keyword-only """NoneAuthTypeConnectionProperties. :ivar category: Category of the connection. Known values are: "PythonFeed", @@ -6954,7 +7811,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.auth_type = ConnectionAuthType.NONE # type: ignore -class OAuth2AuthTypeConnectionProperties(ConnectionPropertiesV2, discriminator="OAuth2"): +class OAuth2AuthTypeConnectionProperties( + ConnectionPropertiesV2, discriminator="OAuth2" +): # pylint: disable=docstring-keyword-should-match-keyword-only """OAuth2AuthTypeConnectionProperties. :ivar category: Category of the connection. Known values are: "PythonFeed", @@ -7050,7 +7909,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.auth_type = ConnectionAuthType.O_AUTH2 # type: ignore -class Operation(_Model): +class Operation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """REST API Operation. :ivar name: The name of the operation, as per Resource-Based Access Control (RBAC). Examples: @@ -7168,7 +8027,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.type = BuiltInAuthorizationScheme.ORGANIZATION_SCOPE # type: ignore -class OutboundRuleBasicResource(ProxyResource): +class OutboundRuleBasicResource(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Concrete proxy resource types can be created by aliasing this type using a specific property type. @@ -7209,7 +8068,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PATAuthTypeConnectionProperties(ConnectionPropertiesV2, discriminator="PAT"): +class PATAuthTypeConnectionProperties( + ConnectionPropertiesV2, discriminator="PAT" +): # pylint: disable=docstring-keyword-should-match-keyword-only """PATAuthTypeConnectionProperties. :ivar category: Category of the connection. Known values are: "PythonFeed", @@ -7302,7 +8163,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.auth_type = ConnectionAuthType.PAT # type: ignore -class PatchResourceSku(_Model): +class PatchResourceSku(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The object being used to update sku of a resource, in general used for PATCH operations. :ivar sku: The resource model definition representing SKU. @@ -7330,7 +8191,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PatchResourceTags(_Model): +class PatchResourceTags(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The object being used to update tags of a resource, in general used for PATCH operations. :ivar tags: Resource tags. @@ -7358,7 +8219,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PatchResourceTagsAndSku(PatchResourceTags): +class PatchResourceTagsAndSku(PatchResourceTags): # pylint: disable=docstring-keyword-should-match-keyword-only """The object being used to update tags and sku of a resource, in general used for PATCH operations. @@ -7390,7 +8251,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PolicyAssignmentEvaluationDetails(_Model): +class PolicyAssignmentEvaluationDetails(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Details of a non-compliant policy assignment. :ivar assignment_id: The policy assignment ID. @@ -7464,7 +8325,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PolicyExpressionEvaluationDetails(_Model): +class PolicyExpressionEvaluationDetails(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Details of a policy expression evaluation. :ivar expression: The policy expression. @@ -7523,13 +8384,12 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Pool(_Model): +class Pool(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A compute pool configuration. :ivar name: The name of the pool. Required. :vartype name: str - :ivar vm_priority: The VM priority of the pool. Required. Known values are: "Regular" and - "LowPriority". + :ivar vm_priority: The VM priority of the pool. Known values are: "Regular" and "Spot". :vartype vm_priority: str or ~azure.mgmt.cognitiveservices.models.VmPriority :ivar instance_type: The instance type (VM SKU) used in the pool. Required. :vartype instance_type: str @@ -7539,10 +8399,10 @@ class Pool(_Model): name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The name of the pool. Required.""" - vm_priority: Union[str, "_models.VmPriority"] = rest_field( + vm_priority: Optional[Union[str, "_models.VmPriority"]] = rest_field( name="vmPriority", visibility=["read", "create", "update", "delete", "query"] ) - """The VM priority of the pool. Required. Known values are: \"Regular\" and \"LowPriority\".""" + """The VM priority of the pool. Known values are: \"Regular\" and \"Spot\".""" instance_type: str = rest_field(name="instanceType", visibility=["read", "create", "update", "delete", "query"]) """The instance type (VM SKU) used in the pool. Required.""" node_count: int = rest_field(name="nodeCount", visibility=["read", "create", "update", "delete", "query"]) @@ -7553,9 +8413,9 @@ def __init__( self, *, name: str, - vm_priority: Union[str, "_models.VmPriority"], instance_type: str, node_count: int, + vm_priority: Optional[Union[str, "_models.VmPriority"]] = None, ) -> None: ... @overload @@ -7580,7 +8440,7 @@ class PrivateEndpoint(_Model): """The resource identifier of the private endpoint.""" -class PrivateEndpointConnection(ProxyResource): +class PrivateEndpointConnection(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The Private Endpoint Connection resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -7630,7 +8490,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PrivateEndpointConnectionListResult(_Model): +class PrivateEndpointConnectionListResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A list of private endpoint connections. :ivar value: Array of private endpoint connections. @@ -7660,7 +8520,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PrivateEndpointConnectionProperties(_Model): +class PrivateEndpointConnectionProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the PrivateEndpointConnectProperties. :ivar private_endpoint: The resource of private end point. @@ -7716,7 +8576,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PrivateEndpointOutboundRule(OutboundRule, discriminator="PrivateEndpoint"): +class PrivateEndpointOutboundRule( + OutboundRule, discriminator="PrivateEndpoint" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Private Endpoint outbound rule for the managed network of a cognitive services account. :ivar category: Category of a managed network Outbound Rule of a cognitive services account. @@ -7772,7 +8634,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.type = RuleType.PRIVATE_ENDPOINT # type: ignore -class PrivateEndpointOutboundRuleDestination(_Model): +class PrivateEndpointOutboundRuleDestination(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Private Endpoint destination for an outbound rule. :ivar service_resource_id: The Azure resource ID of the target private endpoint service. @@ -7809,7 +8671,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PrivateLinkResource(Resource): +class PrivateLinkResource(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """A private link resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -7850,7 +8712,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PrivateLinkResourceListResult(_Model): +class PrivateLinkResourceListResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A list of private link resources. :ivar value: Array of private link resources. @@ -7880,7 +8742,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PrivateLinkResourceProperties(_Model): +class PrivateLinkResourceProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of a private link resource. :ivar group_id: The private link resource group id. @@ -7922,7 +8784,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PrivateLinkServiceConnectionState(_Model): +class PrivateLinkServiceConnectionState(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A collection of information about the state of the connection between service consumer and provider. @@ -7969,7 +8831,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Project(ProxyResource): +class Project(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Cognitive Services project is an Azure resource representing the provisioned account's project, it's type, location and SKU. @@ -8030,7 +8892,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ProjectCapabilityHost(ProxyResource): +class ProjectCapabilityHost(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Azure Resource Manager resource envelope for Project CapabilityHost. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -8071,7 +8933,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ProjectCapabilityHostProperties(_Model): +class ProjectCapabilityHostProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ProjectCapabilityHostProperties. :ivar ai_services_connections: List of AI services connections. @@ -8137,12 +8999,12 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ProjectProperties(_Model): +class ProjectProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of Cognitive Services Project'. :ivar provisioning_state: Gets the status of the cognitive services project at the time the operation was called. Known values are: "Accepted", "Creating", "Deleting", "Moving", "Failed", - "Succeeded", "Canceled", and "ResolvingDNS". + "Succeeded", "Canceled", "ResolvingDNS", and "ExtensionUnreachable". :vartype provisioning_state: str or ~azure.mgmt.cognitiveservices.models.ProvisioningState :ivar display_name: The display name of the Cognitive Services Project. :vartype display_name: str @@ -8152,6 +9014,10 @@ class ProjectProperties(_Model): :vartype endpoints: dict[str, str] :ivar is_default: Indicates whether the project is the default project for the account. :vartype is_default: bool + :ivar capability_settings: Effective agent capability settings for the project. Optional + partial override of the account defaults; omitted fields inherit from the parent account when + present. Settable only at create time. + :vartype capability_settings: ~azure.mgmt.cognitiveservices.models.CapabilitySettings """ provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field( @@ -8159,7 +9025,7 @@ class ProjectProperties(_Model): ) """Gets the status of the cognitive services project at the time the operation was called. Known values are: \"Accepted\", \"Creating\", \"Deleting\", \"Moving\", \"Failed\", \"Succeeded\", - \"Canceled\", and \"ResolvingDNS\".""" + \"Canceled\", \"ResolvingDNS\", and \"ExtensionUnreachable\".""" display_name: Optional[str] = rest_field( name="displayName", visibility=["read", "create", "update", "delete", "query"] ) @@ -8170,6 +9036,12 @@ class ProjectProperties(_Model): """The list of endpoint for this Cognitive Services Project.""" is_default: Optional[bool] = rest_field(name="isDefault", visibility=["read"]) """Indicates whether the project is the default project for the account.""" + capability_settings: Optional["_models.CapabilitySettings"] = rest_field( + name="capabilitySettings", visibility=["read", "create"] + ) + """Effective agent capability settings for the project. Optional partial override of the account + defaults; omitted fields inherit from the parent account when present. Settable only at create + time.""" @overload def __init__( @@ -8177,6 +9049,7 @@ def __init__( *, display_name: Optional[str] = None, description: Optional[str] = None, + capability_settings: Optional["_models.CapabilitySettings"] = None, ) -> None: ... @overload @@ -8190,7 +9063,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ProvisioningIssue(_Model): +class ProvisioningIssue(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ProvisioningIssue. :ivar name: Name of the NSP provisioning issue. @@ -8225,7 +9098,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ProvisioningIssueProperties(_Model): +class ProvisioningIssueProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of Provisioning Issue. :ivar issue_type: Type of Issue. @@ -8279,7 +9152,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class QuotaLimit(_Model): +class QuotaLimit(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """QuotaLimit. :ivar count: @@ -8318,7 +9191,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class QuotaTier(ProxyResource): +class QuotaTier(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The quota tier information for the subscription. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -8359,7 +9232,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class QuotaTierProperties(_Model): +class QuotaTierProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of Quota Tier resource'. :ivar current_tier_name: Name of the current quota tier for the subscription. @@ -8410,7 +9283,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class QuotaTierUpgradeEligibilityInfo(_Model): +class QuotaTierUpgradeEligibilityInfo(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Information about the quota tier upgrade eligibility for the subscription. :ivar next_tier_name: Name of the next quota tier for the subscription. @@ -8467,7 +9340,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RaiBlocklist(ProxyResource): +class RaiBlocklist(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Cognitive Services RaiBlocklist. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -8517,7 +9390,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RaiBlocklistItem(ProxyResource): +class RaiBlocklistItem(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Cognitive Services RaiBlocklist Item. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -8567,7 +9440,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RaiBlocklistItemBulkRequest(_Model): +class RaiBlocklistItemBulkRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The Cognitive Services RaiBlocklist Item request body. :ivar name: @@ -8601,7 +9474,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RaiBlocklistItemProperties(_Model): +class RaiBlocklistItemProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """RAI Custom Blocklist Item properties. :ivar pattern: Pattern to match against. @@ -8634,7 +9507,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RaiBlocklistProperties(_Model): +class RaiBlocklistProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """RAI Custom Blocklist properties. :ivar description: Description of the block list. @@ -8662,7 +9535,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RaiContentFilter(ProxyResource): +class RaiContentFilter(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Azure OpenAI Content Filter. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -8703,7 +9576,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RaiContentFilterProperties(_Model): +class RaiContentFilterProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Azure OpenAI Content Filter Properties. :ivar name: Name of Content Filter. @@ -8748,7 +9621,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RaiEgressHeaderTransform(_Model): +class RaiEgressHeaderTransform(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A header transformation applied to matched traffic. For Set or Insert operations, exactly one of value or valueRef must be provided. For Remove operations, neither value nor valueRef should be set. @@ -8804,7 +9677,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RaiEgressHeaderValueRef(_Model): +class RaiEgressHeaderValueRef(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A dynamic source for a header value. Exactly one of secretRef or managedIdentityRef must be set. @@ -8842,7 +9715,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RaiEgressManagedIdentityRef(_Model): +class RaiEgressManagedIdentityRef(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A reference to a managed-identity token used as a header value. :ivar resource: The resource/audience the token is requested for. Required. @@ -8877,7 +9750,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RaiEgressPolicyConfig(_Model): +class RaiEgressPolicyConfig(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Egress (outbound network) policy configuration nested within an RAI policy. Controls which external endpoints sandboxed agents can reach and what transformations (header injection, URL rewrite) are applied to matching traffic. @@ -8945,7 +9818,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RaiEgressRewriteTarget(_Model): +class RaiEgressRewriteTarget(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Where a Rewrite action sends matched traffic. At least one field must be set; omitted fields retain the original request values. This constraint is enforced by the server (400 Bad Request if all fields are omitted). @@ -8988,7 +9861,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RaiEgressRule(_Model): +class RaiEgressRule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A single egress rule. Rules are evaluated in order; first match wins. :ivar name: Name of the rule. Must be unique within the policy. Required. @@ -9044,7 +9917,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RaiEgressRuleAction(_Model): +class RaiEgressRuleAction(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The action an egress rule takes when it matches. * Allow/Deny: no additional fields needed; headers and rewrite must not be set. @@ -9097,26 +9970,26 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RaiEgressRuleMatch(_Model): +class RaiEgressRuleMatch(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The match criteria for an egress rule. If both host and path are omitted, the rule matches all - traffic. Host uses DNS wildcard syntax (e.g., "*.openai.com" matches "api.openai.com"). Path - uses URI prefix matching with '*' as a single-segment wildcard (e.g., "/v1/*" matches - "/v1/chat"). + traffic. Host uses DNS wildcard syntax (e.g., "\\*.openai.com" matches "api.openai.com"). Path + uses URI prefix matching with an asterisk as a single-segment wildcard. For example, "/v1/\\*" + matches "/v1/chat". - :ivar host: Host pattern to match using DNS wildcard syntax (e.g., "*.openai.com"). A leading - "*." matches any subdomain. Omit to match all hosts. + :ivar host: Host pattern to match using DNS wildcard syntax (e.g., "\\*.openai.com"). A leading + "\\*." matches any subdomain. Omit to match all hosts. :vartype host: str - :ivar path: Path pattern to match using URI prefix with '*' wildcard (e.g., "/v1/*"). Omit to - match all paths. + :ivar path: Path pattern to match using URI prefix matching. An asterisk serves as a + single-segment wildcard. For example, "/v1/\\*" matches "/v1/chat". Omit to match all paths. :vartype path: str """ host: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) - """Host pattern to match using DNS wildcard syntax (e.g., \"*.openai.com\"). A leading \"*.\" + """Host pattern to match using DNS wildcard syntax (e.g., \"\\*.openai.com\"). A leading \"\\*.\" matches any subdomain. Omit to match all hosts.""" path: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) - """Path pattern to match using URI prefix with '*' wildcard (e.g., \"/v1/*\"). Omit to match all - paths.""" + """Path pattern to match using URI prefix matching. An asterisk serves as a single-segment + wildcard. For example, \"/v1/\\*\" matches \"/v1/chat\". Omit to match all paths.""" @overload def __init__( @@ -9137,7 +10010,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RaiEgressSecretRef(_Model): +class RaiEgressSecretRef(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A reference to a stored secret used as a header value. :ivar secret_id: Identifier of the secret to inject. Required. @@ -9177,7 +10050,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RaiExternalSafetyProviderSchema(ProxyResource): +class RaiExternalSafetyProviderSchema(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Cognitive Services Rai External Safety provider Schema. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -9227,7 +10100,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RaiExternalSafetyProviderSchemaProperties(_Model): # pylint: disable=name-too-long +class RaiExternalSafetyProviderSchemaProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """RAI External SafetyProvider schema properties. :ivar provider_id: The unique identifier of the safety provider. @@ -9306,7 +10181,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RaiMonitorConfig(_Model): +class RaiMonitorConfig(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Cognitive Services Rai Monitor Config. :ivar adx_storage_resource_id: The storage resource Id. @@ -9343,7 +10218,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RaiPolicy(ProxyResource): +class RaiPolicy(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Cognitive Services RaiPolicy. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -9393,7 +10268,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RaiPolicyContentFilter(_Model): +class RaiPolicyContentFilter(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Azure OpenAI Content Filter. :ivar name: Name of ContentFilter. @@ -9457,7 +10332,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RaiPolicyProperties(_Model): +class RaiPolicyProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Azure OpenAI Content Filters properties. :ivar type: Content Filters policy type. Known values are: "UserManaged" and "SystemManaged". @@ -9534,7 +10409,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RaiSafetyProviderConfig(_Model): +class RaiSafetyProviderConfig(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Azure OpenAI RAI safety provider config. :ivar safety_provider_name: Name of RAI Safety Provider. @@ -9569,7 +10444,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RaiToolLabel(ProxyResource): +class RaiToolLabel(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Cognitive Services RAI Tool Label resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -9619,7 +10494,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RaiToolLabelProperties(_Model): +class RaiToolLabelProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """RAI Tool Label properties. :ivar tool_connection_name: The unique tool connection name, e.g., 'Web_Search'. Required. @@ -9664,7 +10539,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RaiToolLabelPropertiesAccountScope(_Model): +class RaiToolLabelPropertiesAccountScope(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Account-level tool label definition. :ivar label_values: Dictionary of label key-value pairs for the account scope. @@ -9694,7 +10569,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RaiToolLabelPropertiesProjectScopesItem(_Model): +class RaiToolLabelPropertiesProjectScopesItem(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """RaiToolLabelPropertiesProjectScopesItem. :ivar project: Project name to which this scope applies. Required. @@ -9729,7 +10604,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RaiTopic(ProxyResource): +class RaiTopic(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Cognitive Services Rai Topic. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -9779,7 +10654,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RaiTopicProperties(_Model): +class RaiTopicProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """RAI Custom Topic properties. :ivar topic_id: The unique identifier of the custom topic. @@ -9850,7 +10725,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RegenerateKeyParameters(_Model): +class RegenerateKeyParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Regenerate key parameters. :ivar key_name: key name to generate (Key1|Key2). Required. Known values are: "Key1" and @@ -9881,7 +10756,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RegionSetting(_Model): +class RegionSetting(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The call rate limit Cognitive Services account. :ivar name: Name of the region. @@ -9919,7 +10794,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ReplacementConfig(_Model): +class ReplacementConfig(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Configuration for model replacement. :ivar target_model_name: The name of the replacement model. @@ -9974,7 +10849,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RequestMatchPattern(_Model): +class RequestMatchPattern(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """RequestMatchPattern. :ivar path: @@ -10005,7 +10880,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ResourceSku(_Model): +class ResourceSku(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes an available Cognitive Services SKU. :ivar resource_type: The type of resource the SKU applies to. @@ -10064,7 +10939,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ResourceSkuRestrictionInfo(_Model): +class ResourceSkuRestrictionInfo(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ResourceSkuRestrictionInfo. :ivar locations: Locations where the SKU is restricted. @@ -10097,7 +10972,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ResourceSkuRestrictions(_Model): +class ResourceSkuRestrictions(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes restrictions of a SKU. :ivar type: The type of restrictions. Known values are: "Location" and "Zone". @@ -10179,7 +11054,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.type = BuiltInAuthorizationScheme.DEFAULT # type: ignore -class SafetyProviderConfig(RaiSafetyProviderConfig): +class SafetyProviderConfig(RaiSafetyProviderConfig): # pylint: disable=docstring-keyword-should-match-keyword-only """Gets or sets the source to which safety providers applies. :ivar safety_provider_name: Name of RAI Safety Provider. @@ -10217,7 +11092,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SASAuthTypeConnectionProperties(ConnectionPropertiesV2, discriminator="SAS"): +class SASAuthTypeConnectionProperties( + ConnectionPropertiesV2, discriminator="SAS" +): # pylint: disable=docstring-keyword-should-match-keyword-only """SASAuthTypeConnectionProperties. :ivar category: Category of the connection. Known values are: "PythonFeed", @@ -10312,7 +11189,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ServicePrincipalAuthTypeConnectionProperties( ConnectionPropertiesV2, discriminator="ServicePrincipal" -): # pylint: disable=name-too-long +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """ServicePrincipalAuthTypeConnectionProperties. :ivar category: Category of the connection. Known values are: "PythonFeed", @@ -10405,7 +11282,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.auth_type = ConnectionAuthType.SERVICE_PRINCIPAL # type: ignore -class ServiceTagOutboundRule(OutboundRule, discriminator="ServiceTag"): +class ServiceTagOutboundRule( + OutboundRule, discriminator="ServiceTag" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Service Tag outbound rule for the managed network of a cognitive services account. :ivar category: Category of a managed network Outbound Rule of a cognitive services account. @@ -10454,7 +11333,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.type = RuleType.SERVICE_TAG # type: ignore -class ServiceTagOutboundRuleDestination(_Model): +class ServiceTagOutboundRuleDestination(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Service Tag destination for an outbound rule. :ivar service_tag: Name of the Azure service tag to target. @@ -10512,7 +11391,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Sku(_Model): +class Sku(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The resource model definition representing SKU. :ivar name: The name of the SKU. Ex - P3. It is typically a letter+number code. Required. @@ -10572,7 +11451,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SkuAvailability(_Model): +class SkuAvailability(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """SKU availability. :ivar kind: The kind (type) of cognitive service account. @@ -10627,7 +11506,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SkuAvailabilityListResult(_Model): +class SkuAvailabilityListResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Check SKU availability result list. :ivar value: Check SKU availability result list. @@ -10657,7 +11536,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SkuCapability(_Model): +class SkuCapability(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """SkuCapability indicates the capability of a certain feature. :ivar name: The name of the SkuCapability. @@ -10690,7 +11569,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SkuChangeInfo(_Model): +class SkuChangeInfo(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Sku change info of account. :ivar count_of_downgrades: Gets the count of downgrades. @@ -10734,7 +11613,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SkuResource(_Model): +class SkuResource(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of Cognitive Services account resource sku resource properties. :ivar resource_type: The resource type name. @@ -10776,7 +11655,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SshSettings(_Model): +class SshSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """SSH configuration for a Container Instance compute. :ivar ssh_public_key: The SSH public key for authenticating to the compute instance. @@ -10813,7 +11692,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. @@ -10880,7 +11759,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ThrottlingRule(_Model): +class ThrottlingRule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ThrottlingRule. :ivar key: @@ -10933,7 +11812,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TrafficRoutingRule(_Model): +class TrafficRoutingRule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Represents a rule for routing traffic to a specific deployment. :ivar rule_id: The identifier of this traffic routing rule. @@ -10981,7 +11860,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Usage(_Model): +class Usage(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The usage data for a usage request. :ivar unit: The unit of the metric. Known values are: "Count", "Bytes", "Seconds", "Percent", @@ -11067,7 +11946,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class UsageListResult(_Model): +class UsageListResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The response to a list usage request. :ivar next_link: The link used to get the next page of Usages. @@ -11117,7 +11996,7 @@ class UserAssignedIdentity(_Model): class UsernamePasswordAuthTypeConnectionProperties( ConnectionPropertiesV2, discriminator="UsernamePassword" -): # pylint: disable=name-too-long +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """UsernamePasswordAuthTypeConnectionProperties. :ivar category: Category of the connection. Known values are: "PythonFeed", @@ -11210,7 +12089,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.auth_type = ConnectionAuthType.USERNAME_PASSWORD # type: ignore -class UserOwnedAmlWorkspace(_Model): +class UserOwnedAmlWorkspace(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The user owned AML account for Cognitive Services account. :ivar resource_id: Full resource id of a AML account resource. @@ -11247,7 +12126,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class UserOwnedStorage(_Model): +class UserOwnedStorage(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The user owned storage for Cognitive Services account. :ivar resource_id: Full resource id of a Microsoft.Storage resource. @@ -11283,7 +12162,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VersionedAgentReference(AgentReferenceProperties): +class VersionedAgentReference(AgentReferenceProperties): # pylint: disable=docstring-keyword-should-match-keyword-only """Type modeling a reference to a version of an agent definition. :ivar agent_id: Gets the agent's unique identifier within the organization (subscription). @@ -11319,7 +12198,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualNetworkRule(_Model): +class VirtualNetworkRule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A rule governing the accessibility from a specific virtual network. :ivar id: Full resource id of a vnet subnet, such as @@ -11363,7 +12242,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Workbench(ProxyResource): +class Workbench(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Workbench resource under a Cognitive Services project. Provides interactive compute with data access for AI development. @@ -11422,7 +12301,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class WorkbenchProperties(_Model): +class WorkbenchProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties for a Workbench resource. :ivar target_cluster_id: ARM resource ID of the parent cluster that hosts this workbench. diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/_patch.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/_patch.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/__init__.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/__init__.py index 27f40ab3440c..4807d2425696 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/__init__.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/__init__.py @@ -33,6 +33,7 @@ from ._operations import ProjectConnectionsOperations # type: ignore from ._operations import ProjectCapabilityHostsOperations # type: ignore from ._operations import QuotaTiersOperations # type: ignore +from ._operations import ArcDeploymentsOperations # type: ignore from ._operations import AgentApplicationsOperations # type: ignore from ._operations import ManagedComputeDeploymentsOperations # type: ignore from ._operations import ComputeOperationsOperations # type: ignore @@ -84,6 +85,7 @@ "ProjectConnectionsOperations", "ProjectCapabilityHostsOperations", "QuotaTiersOperations", + "ArcDeploymentsOperations", "AgentApplicationsOperations", "ManagedComputeDeploymentsOperations", "ComputeOperationsOperations", diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_operations.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_operations.py index 2d8e2e2e3417..18ccb6cb5ac0 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_operations.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_operations.py @@ -32,7 +32,7 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.arm_polling import ARMPolling -from .. import models as _models +from .. import models as _models, types as _types from .._configuration import CognitiveServicesManagementClientConfiguration from .._utils.model_base import SdkJSONEncoder, _deserialize, _failsafe_deserialize from .._utils.serialization import Deserializer, Serializer @@ -41,7 +41,6 @@ T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -JSON = MutableMapping[str, Any] List = list _SERIALIZER = Serializer() @@ -52,7 +51,7 @@ def build_operations_list_request(**kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -73,7 +72,7 @@ def build_accounts_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -102,7 +101,7 @@ def build_accounts_create_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -133,7 +132,7 @@ def build_accounts_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -162,7 +161,7 @@ def build_accounts_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}" path_format_arguments = { @@ -185,7 +184,7 @@ def build_accounts_list_by_resource_group_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -210,7 +209,7 @@ def build_accounts_list_request(subscription_id: str, **kwargs: Any) -> HttpRequ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -236,7 +235,7 @@ def build_accounts_list_keys_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -265,7 +264,7 @@ def build_accounts_regenerate_key_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -295,7 +294,7 @@ def build_accounts_list_skus_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -323,7 +322,7 @@ def build_accounts_list_usages_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -353,7 +352,7 @@ def build_accounts_list_models_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -382,7 +381,7 @@ def build_accounts_evaluate_deployment_policies_request( # pylint: disable=name _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -410,7 +409,7 @@ def build_deleted_accounts_list_request(subscription_id: str, **kwargs: Any) -> _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -436,7 +435,7 @@ def build_deleted_accounts_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -464,7 +463,7 @@ def build_deleted_accounts_purge_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/resourceGroups/{resourceGroupName}/deletedAccounts/{accountName}" path_format_arguments = { @@ -492,7 +491,7 @@ def build_private_endpoint_connections_get_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -528,7 +527,7 @@ def build_private_endpoint_connections_create_or_update_request( # pylint: disa _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -564,7 +563,7 @@ def build_private_endpoint_connections_delete_request( # pylint: disable=name-t ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}" path_format_arguments = { @@ -590,7 +589,7 @@ def build_private_endpoint_connections_list_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -618,7 +617,7 @@ def build_deployments_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -648,7 +647,7 @@ def build_deployments_create_or_update_request( # pylint: disable=name-too-long _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -680,7 +679,7 @@ def build_deployments_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -710,7 +709,7 @@ def build_deployments_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/deployments/{deploymentName}" path_format_arguments = { @@ -734,7 +733,7 @@ def build_deployments_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -762,7 +761,7 @@ def build_deployments_list_skus_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -791,7 +790,7 @@ def build_deployments_pause_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -820,7 +819,7 @@ def build_deployments_resume_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -849,7 +848,7 @@ def build_commitment_plans_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -879,7 +878,7 @@ def build_commitment_plans_create_or_update_request( # pylint: disable=name-too _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -909,7 +908,7 @@ def build_commitment_plans_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/commitmentPlans/{commitmentPlanName}" path_format_arguments = { @@ -933,7 +932,7 @@ def build_commitment_plans_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -961,7 +960,7 @@ def build_commitment_plans_get_plan_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -990,7 +989,7 @@ def build_commitment_plans_create_or_update_plan_request( # pylint: disable=nam _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1021,7 +1020,7 @@ def build_commitment_plans_update_plan_request( # pylint: disable=name-too-long _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1050,7 +1049,7 @@ def build_commitment_plans_delete_plan_request( # pylint: disable=name-too-long ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/commitmentPlans/{commitmentPlanName}" path_format_arguments = { @@ -1073,7 +1072,7 @@ def build_commitment_plans_list_plans_by_resource_group_request( # pylint: disa _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1100,7 +1099,7 @@ def build_commitment_plans_list_plans_by_subscription_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1130,7 +1129,7 @@ def build_commitment_plans_get_association_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1166,7 +1165,7 @@ def build_commitment_plans_create_or_update_association_request( # pylint: disa _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1202,7 +1201,7 @@ def build_commitment_plans_delete_association_request( # pylint: disable=name-t ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/commitmentPlans/{commitmentPlanName}/accountAssociations/{commitmentPlanAssociationName}" path_format_arguments = { @@ -1228,7 +1227,7 @@ def build_commitment_plans_list_associations_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1256,7 +1255,7 @@ def build_encryption_scopes_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1286,7 +1285,7 @@ def build_encryption_scopes_create_or_update_request( # pylint: disable=name-to _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1316,7 +1315,7 @@ def build_encryption_scopes_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/encryptionScopes/{encryptionScopeName}" path_format_arguments = { @@ -1340,7 +1339,7 @@ def build_encryption_scopes_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1368,7 +1367,7 @@ def build_rai_policies_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1398,7 +1397,7 @@ def build_rai_policies_create_or_update_request( # pylint: disable=name-too-lon _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1428,7 +1427,7 @@ def build_rai_policies_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiPolicies/{raiPolicyName}" path_format_arguments = { @@ -1452,7 +1451,7 @@ def build_rai_policies_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1480,7 +1479,7 @@ def build_subscription_rai_policy_get_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1508,7 +1507,7 @@ def build_subscription_rai_policy_create_or_update_request( # pylint: disable=n _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1536,7 +1535,7 @@ def build_subscription_rai_policy_delete_request( # pylint: disable=name-too-lo ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/raiPolicy/{raiPolicyName}" path_format_arguments = { @@ -1563,7 +1562,7 @@ def build_rai_blocklist_items_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1599,7 +1598,7 @@ def build_rai_blocklist_items_create_or_update_request( # pylint: disable=name- _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1635,7 +1634,7 @@ def build_rai_blocklist_items_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/raiBlocklistItems/{raiBlocklistItemName}" path_format_arguments = { @@ -1660,7 +1659,7 @@ def build_rai_blocklist_items_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1690,7 +1689,7 @@ def build_rai_blocklist_items_batch_add_request( # pylint: disable=name-too-lon _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1722,7 +1721,7 @@ def build_rai_blocklist_items_batch_delete_request( # pylint: disable=name-too- _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/deleteRaiBlocklistItems" path_format_arguments = { @@ -1750,7 +1749,7 @@ def build_rai_blocklists_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1780,7 +1779,7 @@ def build_rai_blocklists_create_or_update_request( # pylint: disable=name-too-l _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1810,7 +1809,7 @@ def build_rai_blocklists_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}" path_format_arguments = { @@ -1834,7 +1833,7 @@ def build_rai_blocklists_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1862,7 +1861,7 @@ def build_rai_topics_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1892,7 +1891,7 @@ def build_rai_topics_create_or_update_request( # pylint: disable=name-too-long _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1922,7 +1921,7 @@ def build_rai_topics_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raitopics/{raiTopicName}" path_format_arguments = { @@ -1946,7 +1945,7 @@ def build_rai_topics_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1974,7 +1973,7 @@ def build_rai_tool_labels_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2004,7 +2003,7 @@ def build_rai_tool_labels_create_or_update_request( # pylint: disable=name-too- _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2034,7 +2033,7 @@ def build_rai_tool_labels_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiToolLabels/{raiToolConnectionName}" path_format_arguments = { @@ -2058,7 +2057,7 @@ def build_rai_tool_labels_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2086,7 +2085,7 @@ def build_rai_content_filters_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2112,7 +2111,7 @@ def build_rai_content_filters_list_request(location: str, subscription_id: str, _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2141,7 +2140,7 @@ def build_network_security_perimeter_configurations_get_request( # pylint: disa _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2170,7 +2169,7 @@ def build_network_security_perimeter_configurations_list_request( # pylint: dis _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2198,7 +2197,7 @@ def build_network_security_perimeter_configurations_reconcile_request( # pylint _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2227,7 +2226,7 @@ def build_defender_for_ai_settings_get_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2259,7 +2258,7 @@ def build_defender_for_ai_settings_create_or_update_request( # pylint: disable= _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2293,7 +2292,7 @@ def build_defender_for_ai_settings_update_request( # pylint: disable=name-too-l _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2326,7 +2325,7 @@ def build_defender_for_ai_settings_list_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2354,7 +2353,7 @@ def build_projects_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2384,7 +2383,7 @@ def build_projects_create_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2416,7 +2415,7 @@ def build_projects_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2446,7 +2445,7 @@ def build_projects_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}" path_format_arguments = { @@ -2470,7 +2469,7 @@ def build_projects_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2503,7 +2502,7 @@ def build_project_connections_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2539,7 +2538,7 @@ def build_project_connections_create_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2577,7 +2576,7 @@ def build_project_connections_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2613,7 +2612,7 @@ def build_project_connections_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/connections/{connectionName}" path_format_arguments = { @@ -2646,7 +2645,7 @@ def build_project_connections_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2686,7 +2685,7 @@ def build_project_capability_hosts_get_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2722,7 +2721,7 @@ def build_project_capability_hosts_create_or_update_request( # pylint: disable= _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2758,7 +2757,7 @@ def build_project_capability_hosts_delete_request( # pylint: disable=name-too-l ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/capabilityHosts/{capabilityHostName}" path_format_arguments = { @@ -2783,7 +2782,7 @@ def build_project_capability_hosts_list_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2810,7 +2809,7 @@ def build_quota_tiers_get_request(default: str, subscription_id: str, **kwargs: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2838,7 +2837,7 @@ def build_quota_tiers_create_or_update_request( # pylint: disable=name-too-long _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2866,7 +2865,7 @@ def build_quota_tiers_update_request(default: str, subscription_id: str, **kwarg _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2895,7 +2894,7 @@ def build_quota_tiers_list_by_subscription_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2915,13 +2914,157 @@ def build_quota_tiers_list_by_subscription_request( # pylint: disable=name-too- return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) +def build_arc_deployments_get_request( + resource_group_name: str, account_name: str, deployment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/arcDeployments/{deploymentName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "accountName": _SERIALIZER.url("account_name", account_name, "str"), + "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_arc_deployments_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, account_name: str, deployment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/arcDeployments/{deploymentName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "accountName": _SERIALIZER.url("account_name", account_name, "str"), + "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_arc_deployments_update_request( + resource_group_name: str, account_name: str, deployment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/arcDeployments/{deploymentName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "accountName": _SERIALIZER.url("account_name", account_name, "str"), + "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_arc_deployments_delete_request( + resource_group_name: str, account_name: str, deployment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/arcDeployments/{deploymentName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "accountName": _SERIALIZER.url("account_name", account_name, "str"), + "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_arc_deployments_list_request( + resource_group_name: str, account_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/arcDeployments" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "accountName": _SERIALIZER.url("account_name", account_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + def build_agent_applications_get_request( resource_group_name: str, account_name: str, project_name: str, name: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2952,7 +3095,7 @@ def build_agent_applications_create_or_update_request( # pylint: disable=name-t _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2983,7 +3126,7 @@ def build_agent_applications_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/applications/{name}" path_format_arguments = { @@ -3020,7 +3163,7 @@ def build_agent_applications_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3063,7 +3206,7 @@ def build_agent_applications_list_agents_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3092,7 +3235,7 @@ def build_agent_applications_enable_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/applications/{name}/enable" path_format_arguments = { @@ -3116,7 +3259,7 @@ def build_agent_applications_disable_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/applications/{name}/disable" path_format_arguments = { @@ -3141,7 +3284,7 @@ def build_managed_compute_deployments_get_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3171,7 +3314,7 @@ def build_managed_compute_deployments_create_or_update_request( # pylint: disab _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3203,7 +3346,7 @@ def build_managed_compute_deployments_update_request( # pylint: disable=name-to _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3233,7 +3376,7 @@ def build_managed_compute_deployments_delete_request( # pylint: disable=name-to ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/managedComputeDeployments/{deploymentName}" path_format_arguments = { @@ -3257,7 +3400,7 @@ def build_managed_compute_deployments_list_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3285,7 +3428,7 @@ def build_compute_operations_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3313,7 +3456,7 @@ def build_managed_compute_usages_operation_group_list_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3340,7 +3483,7 @@ def build_computes_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3370,9 +3513,7 @@ def build_computes_create_or_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) - accept = _headers.pop("Accept", "application/json") - + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/computes/{computeName}" path_format_arguments = { @@ -3390,49 +3531,16 @@ def build_computes_create_or_update_request( # Construct headers if content_type is not None: _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) -def build_computes_update_request( - resource_group_name: str, account_name: str, compute_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/computes/{computeName}" - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "accountName": _SERIALIZER.url("account_name", account_name, "str"), - "computeName": _SERIALIZER.url("compute_name", compute_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - def build_computes_delete_request( resource_group_name: str, account_name: str, compute_name: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/computes/{computeName}" path_format_arguments = { @@ -3456,7 +3564,7 @@ def build_computes_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3483,7 +3591,7 @@ def build_computes_start_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/computes/{computeName}/start" path_format_arguments = { @@ -3506,7 +3614,7 @@ def build_computes_stop_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/computes/{computeName}/stop" path_format_arguments = { @@ -3529,7 +3637,7 @@ def build_computes_restart_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/computes/{computeName}/restart" path_format_arguments = { @@ -3558,7 +3666,7 @@ def build_workbenches_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3594,7 +3702,7 @@ def build_workbenches_create_or_update_request( # pylint: disable=name-too-long _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3632,7 +3740,7 @@ def build_workbenches_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3668,7 +3776,7 @@ def build_workbenches_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/workbenches/{workbenchName}" path_format_arguments = { @@ -3693,7 +3801,7 @@ def build_workbenches_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3726,7 +3834,7 @@ def build_workbenches_start_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/workbenches/{workbenchName}/start" path_format_arguments = { @@ -3755,7 +3863,7 @@ def build_workbenches_stop_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/workbenches/{workbenchName}/stop" path_format_arguments = { @@ -3784,7 +3892,7 @@ def build_workbenches_restart_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/workbenches/{workbenchName}/restart" path_format_arguments = { @@ -3814,7 +3922,7 @@ def build_managed_compute_capacities_list_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3845,7 +3953,7 @@ def build_private_link_resources_list_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3874,7 +3982,7 @@ def build_test_rai_external_safety_provider_create_or_update_request( # pylint: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3905,7 +4013,7 @@ def build_rai_external_safety_provider_get_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3933,7 +4041,7 @@ def build_rai_external_safety_provider_create_or_update_request( # pylint: disa _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3961,7 +4069,7 @@ def build_rai_external_safety_provider_delete_request( # pylint: disable=name-t ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/raiExternalSafetyProviders/{safetyProviderName}" path_format_arguments = { @@ -3983,7 +4091,7 @@ def build_rai_external_safety_providers_list_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4009,7 +4117,7 @@ def build_account_connections_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4039,7 +4147,7 @@ def build_account_connections_create_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4071,7 +4179,7 @@ def build_account_connections_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4101,7 +4209,7 @@ def build_account_connections_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/connections/{connectionName}" path_format_arguments = { @@ -4132,7 +4240,7 @@ def build_account_connections_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4166,7 +4274,7 @@ def build_account_capability_hosts_get_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4196,7 +4304,7 @@ def build_account_capability_hosts_create_or_update_request( # pylint: disable= _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4226,7 +4334,7 @@ def build_account_capability_hosts_delete_request( # pylint: disable=name-too-l ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/capabilityHosts/{capabilityHostName}" path_format_arguments = { @@ -4250,7 +4358,7 @@ def build_account_capability_hosts_list_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4283,7 +4391,7 @@ def build_outbound_rule_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4319,7 +4427,7 @@ def build_outbound_rule_create_or_update_request( # pylint: disable=name-too-lo _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4355,7 +4463,7 @@ def build_outbound_rule_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/managedNetworks/{managedNetworkName}/outboundRules/{ruleName}" path_format_arguments = { @@ -4380,7 +4488,7 @@ def build_outbound_rule_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4409,7 +4517,7 @@ def build_managed_network_settings_get_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4439,7 +4547,7 @@ def build_managed_network_settings_put_request( # pylint: disable=name-too-long _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4471,7 +4579,7 @@ def build_managed_network_settings_patch_request( # pylint: disable=name-too-lo _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4501,7 +4609,7 @@ def build_managed_network_settings_delete_request( # pylint: disable=name-too-l ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/managedNetworks/{managedNetworkName}" path_format_arguments = { @@ -4525,7 +4633,7 @@ def build_managed_network_settings_list_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4554,7 +4662,7 @@ def build_outbound_rules_post_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4586,7 +4694,7 @@ def build_managed_network_provisions_provision_managed_network_request( # pylin _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4623,7 +4731,7 @@ def build_agent_deployments_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4661,7 +4769,7 @@ def build_agent_deployments_create_or_update_request( # pylint: disable=name-to _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4699,7 +4807,7 @@ def build_agent_deployments_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/applications/{appName}/agentDeployments/{deploymentName}" path_format_arguments = { @@ -4736,7 +4844,7 @@ def build_agent_deployments_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4781,7 +4889,7 @@ def build_agent_deployments_start_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/applications/{appName}/agentDeployments/{deploymentName}/start" path_format_arguments = { @@ -4812,7 +4920,7 @@ def build_agent_deployments_stop_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/applications/{appName}/agentDeployments/{deploymentName}/stop" path_format_arguments = { @@ -4836,7 +4944,7 @@ def build_resource_skus_list_request(subscription_id: str, **kwargs: Any) -> Htt _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4862,7 +4970,7 @@ def build_usages_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4889,7 +4997,7 @@ def build_commitment_tiers_list_request(location: str, subscription_id: str, **k _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4914,7 +5022,7 @@ def build_models_list_request(location: str, subscription_id: str, **kwargs: Any _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4941,7 +5049,7 @@ def build_location_based_model_capacities_list_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4971,7 +5079,7 @@ def build_model_capacities_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5001,7 +5109,7 @@ def build_cognitive_services_management_check_sku_availability_request( # pylin _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5031,7 +5139,7 @@ def build_cognitive_services_management_check_domain_availability_request( # py _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5060,7 +5168,7 @@ def build_cognitive_services_management_calculate_model_capacity_request( # pyl _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5082,7 +5190,7 @@ def build_cognitive_services_management_calculate_model_capacity_request( # pyl return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) -class Operations: +class Operations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -5194,7 +5302,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class AccountsOperations: +class AccountsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -5287,7 +5395,7 @@ def _create_initial( self, resource_group_name: str, account_name: str, - account: Union[_models.Account, JSON, IO[bytes]], + account: Union[_models.Account, _types.Account, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -5395,7 +5503,7 @@ def begin_create( self, resource_group_name: str, account_name: str, - account: JSON, + account: _types.Account, *, content_type: str = "application/json", **kwargs: Any @@ -5409,7 +5517,7 @@ def begin_create( :param account_name: The name of Cognitive Services account. Required. :type account_name: str :param account: The parameters to provide for the created account. Required. - :type account: JSON + :type account: ~azure.mgmt.cognitiveservices.types.Account :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -5453,7 +5561,7 @@ def begin_create( self, resource_group_name: str, account_name: str, - account: Union[_models.Account, JSON, IO[bytes]], + account: Union[_models.Account, _types.Account, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.Account]: """Create Cognitive Services Account. Accounts is a resource group wide resource type. It holds @@ -5464,9 +5572,10 @@ def begin_create( :type resource_group_name: str :param account_name: The name of Cognitive Services account. Required. :type account_name: str - :param account: The parameters to provide for the created account. Is one of the following - types: Account, JSON, IO[bytes] Required. - :type account: ~azure.mgmt.cognitiveservices.models.Account or JSON or IO[bytes] + :param account: The parameters to provide for the created account. Is either a Account type or + a IO[bytes] type. Required. + :type account: ~azure.mgmt.cognitiveservices.models.Account or + ~azure.mgmt.cognitiveservices.types.Account or IO[bytes] :return: An instance of LROPoller that returns Account. The Account is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.cognitiveservices.models.Account] @@ -5528,7 +5637,7 @@ def _update_initial( self, resource_group_name: str, account_name: str, - account: Union[_models.Account, JSON, IO[bytes]], + account: Union[_models.Account, _types.Account, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -5632,7 +5741,7 @@ def begin_update( self, resource_group_name: str, account_name: str, - account: JSON, + account: _types.Account, *, content_type: str = "application/json", **kwargs: Any @@ -5645,7 +5754,7 @@ def begin_update( :param account_name: The name of Cognitive Services account. Required. :type account_name: str :param account: The parameters to provide for the created account. Required. - :type account: JSON + :type account: ~azure.mgmt.cognitiveservices.types.Account :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -5688,7 +5797,7 @@ def begin_update( self, resource_group_name: str, account_name: str, - account: Union[_models.Account, JSON, IO[bytes]], + account: Union[_models.Account, _types.Account, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.Account]: """Updates a Cognitive Services account. @@ -5698,9 +5807,10 @@ def begin_update( :type resource_group_name: str :param account_name: The name of Cognitive Services account. Required. :type account_name: str - :param account: The parameters to provide for the created account. Is one of the following - types: Account, JSON, IO[bytes] Required. - :type account: ~azure.mgmt.cognitiveservices.models.Account or JSON or IO[bytes] + :param account: The parameters to provide for the created account. Is either a Account type or + a IO[bytes] type. Required. + :type account: ~azure.mgmt.cognitiveservices.models.Account or + ~azure.mgmt.cognitiveservices.types.Account or IO[bytes] :return: An instance of LROPoller that returns Account. The Account is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.cognitiveservices.models.Account] @@ -6166,7 +6276,7 @@ def regenerate_key( self, resource_group_name: str, account_name: str, - parameters: JSON, + parameters: _types.RegenerateKeyParameters, *, content_type: str = "application/json", **kwargs: Any @@ -6179,7 +6289,7 @@ def regenerate_key( :param account_name: The name of Cognitive Services account. Required. :type account_name: str :param parameters: regenerate key parameters. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.cognitiveservices.types.RegenerateKeyParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -6220,7 +6330,7 @@ def regenerate_key( self, resource_group_name: str, account_name: str, - parameters: Union[_models.RegenerateKeyParameters, JSON, IO[bytes]], + parameters: Union[_models.RegenerateKeyParameters, _types.RegenerateKeyParameters, IO[bytes]], **kwargs: Any ) -> _models.ApiKeys: """Regenerates the specified account key for the specified Cognitive Services account. @@ -6230,10 +6340,10 @@ def regenerate_key( :type resource_group_name: str :param account_name: The name of Cognitive Services account. Required. :type account_name: str - :param parameters: regenerate key parameters. Is one of the following types: - RegenerateKeyParameters, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.cognitiveservices.models.RegenerateKeyParameters or JSON or - IO[bytes] + :param parameters: regenerate key parameters. Is either a RegenerateKeyParameters type or a + IO[bytes] type. Required. + :type parameters: ~azure.mgmt.cognitiveservices.models.RegenerateKeyParameters or + ~azure.mgmt.cognitiveservices.types.RegenerateKeyParameters or IO[bytes] :return: ApiKeys. The ApiKeys is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.ApiKeys :raises ~azure.core.exceptions.HttpResponseError: @@ -6587,7 +6697,7 @@ def evaluate_deployment_policies( self, resource_group_name: str, account_name: str, - body: JSON, + body: _types.EvaluateDeploymentPoliciesRequest, *, content_type: str = "application/json", **kwargs: Any @@ -6600,7 +6710,7 @@ def evaluate_deployment_policies( :param account_name: The name of Cognitive Services account. Required. :type account_name: str :param body: The content of the action request. Required. - :type body: JSON + :type body: ~azure.mgmt.cognitiveservices.types.EvaluateDeploymentPoliciesRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -6651,13 +6761,13 @@ def evaluate_deployment_policies( "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def evaluate_deployment_policies( self, resource_group_name: str, account_name: str, - body: Union[_models.EvaluateDeploymentPoliciesRequest, JSON, IO[bytes]], + body: Union[_models.EvaluateDeploymentPoliciesRequest, _types.EvaluateDeploymentPoliciesRequest, IO[bytes]], **kwargs: Any ) -> _models.EvaluateDeploymentPoliciesResponse: """Evaluate Azure Policy compliance for a set of hypothetical deployments without creating them. @@ -6667,10 +6777,10 @@ def evaluate_deployment_policies( :type resource_group_name: str :param account_name: The name of Cognitive Services account. Required. :type account_name: str - :param body: The content of the action request. Is one of the following types: - EvaluateDeploymentPoliciesRequest, JSON, IO[bytes] Required. - :type body: ~azure.mgmt.cognitiveservices.models.EvaluateDeploymentPoliciesRequest or JSON or - IO[bytes] + :param body: The content of the action request. Is either a EvaluateDeploymentPoliciesRequest + type or a IO[bytes] type. Required. + :type body: ~azure.mgmt.cognitiveservices.models.EvaluateDeploymentPoliciesRequest or + ~azure.mgmt.cognitiveservices.types.EvaluateDeploymentPoliciesRequest or IO[bytes] :return: EvaluateDeploymentPoliciesResponse. The EvaluateDeploymentPoliciesResponse is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.EvaluateDeploymentPoliciesResponse @@ -6744,7 +6854,7 @@ def evaluate_deployment_policies( return deserialized # type: ignore -class DeletedAccountsOperations: +class DeletedAccountsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -7052,7 +7162,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class PrivateEndpointConnectionsOperations: +class PrivateEndpointConnectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -7153,7 +7263,7 @@ def _create_or_update_initial( resource_group_name: str, account_name: str, private_endpoint_connection_name: str, - properties: Union[_models.PrivateEndpointConnection, JSON, IO[bytes]], + properties: Union[_models.PrivateEndpointConnection, _types.PrivateEndpointConnection, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -7265,7 +7375,7 @@ def begin_create_or_update( resource_group_name: str, account_name: str, private_endpoint_connection_name: str, - properties: JSON, + properties: _types.PrivateEndpointConnection, *, content_type: str = "application/json", **kwargs: Any @@ -7282,7 +7392,7 @@ def begin_create_or_update( with the Cognitive Services Account. Required. :type private_endpoint_connection_name: str :param properties: The private endpoint connection properties. Required. - :type properties: JSON + :type properties: ~azure.mgmt.cognitiveservices.types.PrivateEndpointConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -7333,7 +7443,7 @@ def begin_create_or_update( resource_group_name: str, account_name: str, private_endpoint_connection_name: str, - properties: Union[_models.PrivateEndpointConnection, JSON, IO[bytes]], + properties: Union[_models.PrivateEndpointConnection, _types.PrivateEndpointConnection, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.PrivateEndpointConnection]: """Update the state of specified private endpoint connection associated with the Cognitive @@ -7347,10 +7457,10 @@ def begin_create_or_update( :param private_endpoint_connection_name: The name of the private endpoint connection associated with the Cognitive Services Account. Required. :type private_endpoint_connection_name: str - :param properties: The private endpoint connection properties. Is one of the following types: - PrivateEndpointConnection, JSON, IO[bytes] Required. - :type properties: ~azure.mgmt.cognitiveservices.models.PrivateEndpointConnection or JSON or - IO[bytes] + :param properties: The private endpoint connection properties. Is either a + PrivateEndpointConnection type or a IO[bytes] type. Required. + :type properties: ~azure.mgmt.cognitiveservices.models.PrivateEndpointConnection or + ~azure.mgmt.cognitiveservices.types.PrivateEndpointConnection or IO[bytes] :return: An instance of LROPoller that returns PrivateEndpointConnection. The PrivateEndpointConnection is compatible with MutableMapping :rtype: @@ -7610,7 +7720,7 @@ def list( return deserialized # type: ignore -class DeploymentsOperations: +class DeploymentsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -7710,7 +7820,7 @@ def _create_or_update_initial( resource_group_name: str, account_name: str, deployment_name: str, - deployment: Union[_models.Deployment, JSON, IO[bytes]], + deployment: Union[_models.Deployment, _types.Deployment, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -7822,7 +7932,7 @@ def begin_create_or_update( resource_group_name: str, account_name: str, deployment_name: str, - deployment: JSON, + deployment: _types.Deployment, *, content_type: str = "application/json", **kwargs: Any @@ -7838,7 +7948,7 @@ def begin_create_or_update( Account. Required. :type deployment_name: str :param deployment: The deployment properties. Required. - :type deployment: JSON + :type deployment: ~azure.mgmt.cognitiveservices.types.Deployment :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -7886,7 +7996,7 @@ def begin_create_or_update( resource_group_name: str, account_name: str, deployment_name: str, - deployment: Union[_models.Deployment, JSON, IO[bytes]], + deployment: Union[_models.Deployment, _types.Deployment, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.Deployment]: """Update the state of specified deployments associated with the Cognitive Services account. @@ -7899,9 +8009,10 @@ def begin_create_or_update( :param deployment_name: The name of the deployment associated with the Cognitive Services Account. Required. :type deployment_name: str - :param deployment: The deployment properties. Is one of the following types: Deployment, JSON, - IO[bytes] Required. - :type deployment: ~azure.mgmt.cognitiveservices.models.Deployment or JSON or IO[bytes] + :param deployment: The deployment properties. Is either a Deployment type or a IO[bytes] type. + Required. + :type deployment: ~azure.mgmt.cognitiveservices.models.Deployment or + ~azure.mgmt.cognitiveservices.types.Deployment or IO[bytes] :return: An instance of LROPoller that returns Deployment. The Deployment is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.cognitiveservices.models.Deployment] @@ -7965,7 +8076,7 @@ def _update_initial( resource_group_name: str, account_name: str, deployment_name: str, - deployment: Union[_models.PatchResourceTagsAndSku, JSON, IO[bytes]], + deployment: Union[_models.PatchResourceTagsAndSku, _types.PatchResourceTagsAndSku, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -8075,7 +8186,7 @@ def begin_update( resource_group_name: str, account_name: str, deployment_name: str, - deployment: JSON, + deployment: _types.PatchResourceTagsAndSku, *, content_type: str = "application/json", **kwargs: Any @@ -8091,7 +8202,7 @@ def begin_update( Account. Required. :type deployment_name: str :param deployment: The deployment properties. Required. - :type deployment: JSON + :type deployment: ~azure.mgmt.cognitiveservices.types.PatchResourceTagsAndSku :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -8139,7 +8250,7 @@ def begin_update( resource_group_name: str, account_name: str, deployment_name: str, - deployment: Union[_models.PatchResourceTagsAndSku, JSON, IO[bytes]], + deployment: Union[_models.PatchResourceTagsAndSku, _types.PatchResourceTagsAndSku, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.Deployment]: """Update specified deployments associated with the Cognitive Services account. @@ -8152,10 +8263,10 @@ def begin_update( :param deployment_name: The name of the deployment associated with the Cognitive Services Account. Required. :type deployment_name: str - :param deployment: The deployment properties. Is one of the following types: - PatchResourceTagsAndSku, JSON, IO[bytes] Required. - :type deployment: ~azure.mgmt.cognitiveservices.models.PatchResourceTagsAndSku or JSON or - IO[bytes] + :param deployment: The deployment properties. Is either a PatchResourceTagsAndSku type or a + IO[bytes] type. Required. + :type deployment: ~azure.mgmt.cognitiveservices.models.PatchResourceTagsAndSku or + ~azure.mgmt.cognitiveservices.types.PatchResourceTagsAndSku or IO[bytes] :return: An instance of LROPoller that returns Deployment. The Deployment is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.cognitiveservices.models.Deployment] @@ -8707,7 +8818,7 @@ def resume( return deserialized # type: ignore -class CommitmentPlansOperations: +class CommitmentPlansOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -8839,7 +8950,7 @@ def create_or_update( resource_group_name: str, account_name: str, commitment_plan_name: str, - commitment_plan: JSON, + commitment_plan: _types.CommitmentPlan, *, content_type: str = "application/json", **kwargs: Any @@ -8855,7 +8966,7 @@ def create_or_update( Services Account. Required. :type commitment_plan_name: str :param commitment_plan: The commitmentPlan properties. Required. - :type commitment_plan: JSON + :type commitment_plan: ~azure.mgmt.cognitiveservices.types.CommitmentPlan :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -8901,7 +9012,7 @@ def create_or_update( resource_group_name: str, account_name: str, commitment_plan_name: str, - commitment_plan: Union[_models.CommitmentPlan, JSON, IO[bytes]], + commitment_plan: Union[_models.CommitmentPlan, _types.CommitmentPlan, IO[bytes]], **kwargs: Any ) -> _models.CommitmentPlan: """Update the state of specified commitmentPlans associated with the Cognitive Services account. @@ -8914,9 +9025,10 @@ def create_or_update( :param commitment_plan_name: The name of the commitmentPlan associated with the Cognitive Services Account. Required. :type commitment_plan_name: str - :param commitment_plan: The commitmentPlan properties. Is one of the following types: - CommitmentPlan, JSON, IO[bytes] Required. - :type commitment_plan: ~azure.mgmt.cognitiveservices.models.CommitmentPlan or JSON or IO[bytes] + :param commitment_plan: The commitmentPlan properties. Is either a CommitmentPlan type or a + IO[bytes] type. Required. + :type commitment_plan: ~azure.mgmt.cognitiveservices.models.CommitmentPlan or + ~azure.mgmt.cognitiveservices.types.CommitmentPlan or IO[bytes] :return: CommitmentPlan. The CommitmentPlan is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.CommitmentPlan :raises ~azure.core.exceptions.HttpResponseError: @@ -9289,7 +9401,7 @@ def _create_or_update_plan_initial( self, resource_group_name: str, commitment_plan_name: str, - commitment_plan: Union[_models.CommitmentPlan, JSON, IO[bytes]], + commitment_plan: Union[_models.CommitmentPlan, _types.CommitmentPlan, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -9396,7 +9508,7 @@ def begin_create_or_update_plan( self, resource_group_name: str, commitment_plan_name: str, - commitment_plan: JSON, + commitment_plan: _types.CommitmentPlan, *, content_type: str = "application/json", **kwargs: Any @@ -9410,7 +9522,7 @@ def begin_create_or_update_plan( Services Account. Required. :type commitment_plan_name: str :param commitment_plan: The parameters to provide for the created commitment plan. Required. - :type commitment_plan: JSON + :type commitment_plan: ~azure.mgmt.cognitiveservices.types.CommitmentPlan :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -9454,7 +9566,7 @@ def begin_create_or_update_plan( self, resource_group_name: str, commitment_plan_name: str, - commitment_plan: Union[_models.CommitmentPlan, JSON, IO[bytes]], + commitment_plan: Union[_models.CommitmentPlan, _types.CommitmentPlan, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.CommitmentPlan]: """Create Cognitive Services commitment plan. @@ -9465,9 +9577,10 @@ def begin_create_or_update_plan( :param commitment_plan_name: The name of the commitmentPlan associated with the Cognitive Services Account. Required. :type commitment_plan_name: str - :param commitment_plan: The parameters to provide for the created commitment plan. Is one of - the following types: CommitmentPlan, JSON, IO[bytes] Required. - :type commitment_plan: ~azure.mgmt.cognitiveservices.models.CommitmentPlan or JSON or IO[bytes] + :param commitment_plan: The parameters to provide for the created commitment plan. Is either a + CommitmentPlan type or a IO[bytes] type. Required. + :type commitment_plan: ~azure.mgmt.cognitiveservices.models.CommitmentPlan or + ~azure.mgmt.cognitiveservices.types.CommitmentPlan or IO[bytes] :return: An instance of LROPoller that returns CommitmentPlan. The CommitmentPlan is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.cognitiveservices.models.CommitmentPlan] @@ -9529,7 +9642,7 @@ def _update_plan_initial( self, resource_group_name: str, commitment_plan_name: str, - commitment_plan: Union[_models.PatchResourceTagsAndSku, JSON, IO[bytes]], + commitment_plan: Union[_models.PatchResourceTagsAndSku, _types.PatchResourceTagsAndSku, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -9634,7 +9747,7 @@ def begin_update_plan( self, resource_group_name: str, commitment_plan_name: str, - commitment_plan: JSON, + commitment_plan: _types.PatchResourceTagsAndSku, *, content_type: str = "application/json", **kwargs: Any @@ -9648,7 +9761,7 @@ def begin_update_plan( Services Account. Required. :type commitment_plan_name: str :param commitment_plan: The parameters to provide for the created commitment plan. Required. - :type commitment_plan: JSON + :type commitment_plan: ~azure.mgmt.cognitiveservices.types.PatchResourceTagsAndSku :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -9692,7 +9805,7 @@ def begin_update_plan( self, resource_group_name: str, commitment_plan_name: str, - commitment_plan: Union[_models.PatchResourceTagsAndSku, JSON, IO[bytes]], + commitment_plan: Union[_models.PatchResourceTagsAndSku, _types.PatchResourceTagsAndSku, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.CommitmentPlan]: """Create Cognitive Services commitment plan. @@ -9703,10 +9816,10 @@ def begin_update_plan( :param commitment_plan_name: The name of the commitmentPlan associated with the Cognitive Services Account. Required. :type commitment_plan_name: str - :param commitment_plan: The parameters to provide for the created commitment plan. Is one of - the following types: PatchResourceTagsAndSku, JSON, IO[bytes] Required. - :type commitment_plan: ~azure.mgmt.cognitiveservices.models.PatchResourceTagsAndSku or JSON or - IO[bytes] + :param commitment_plan: The parameters to provide for the created commitment plan. Is either a + PatchResourceTagsAndSku type or a IO[bytes] type. Required. + :type commitment_plan: ~azure.mgmt.cognitiveservices.models.PatchResourceTagsAndSku or + ~azure.mgmt.cognitiveservices.types.PatchResourceTagsAndSku or IO[bytes] :return: An instance of LROPoller that returns CommitmentPlan. The CommitmentPlan is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.cognitiveservices.models.CommitmentPlan] @@ -10158,7 +10271,9 @@ def _create_or_update_association_initial( resource_group_name: str, commitment_plan_name: str, commitment_plan_association_name: str, - association: Union[_models.CommitmentPlanAccountAssociation, JSON, IO[bytes]], + association: Union[ + _models.CommitmentPlanAccountAssociation, _types.CommitmentPlanAccountAssociation, IO[bytes] + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -10272,7 +10387,7 @@ def begin_create_or_update_association( resource_group_name: str, commitment_plan_name: str, commitment_plan_association_name: str, - association: JSON, + association: _types.CommitmentPlanAccountAssociation, *, content_type: str = "application/json", **kwargs: Any @@ -10289,7 +10404,7 @@ def begin_create_or_update_association( Cognitive Services Account. Required. :type commitment_plan_association_name: str :param association: The commitmentPlan properties. Required. - :type association: JSON + :type association: ~azure.mgmt.cognitiveservices.types.CommitmentPlanAccountAssociation :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -10340,7 +10455,9 @@ def begin_create_or_update_association( resource_group_name: str, commitment_plan_name: str, commitment_plan_association_name: str, - association: Union[_models.CommitmentPlanAccountAssociation, JSON, IO[bytes]], + association: Union[ + _models.CommitmentPlanAccountAssociation, _types.CommitmentPlanAccountAssociation, IO[bytes] + ], **kwargs: Any ) -> LROPoller[_models.CommitmentPlanAccountAssociation]: """Create or update the association of the Cognitive Services commitment plan. @@ -10354,10 +10471,10 @@ def begin_create_or_update_association( :param commitment_plan_association_name: The name of the commitment plan association with the Cognitive Services Account. Required. :type commitment_plan_association_name: str - :param association: The commitmentPlan properties. Is one of the following types: - CommitmentPlanAccountAssociation, JSON, IO[bytes] Required. + :param association: The commitmentPlan properties. Is either a CommitmentPlanAccountAssociation + type or a IO[bytes] type. Required. :type association: ~azure.mgmt.cognitiveservices.models.CommitmentPlanAccountAssociation or - JSON or IO[bytes] + ~azure.mgmt.cognitiveservices.types.CommitmentPlanAccountAssociation or IO[bytes] :return: An instance of LROPoller that returns CommitmentPlanAccountAssociation. The CommitmentPlanAccountAssociation is compatible with MutableMapping :rtype: @@ -10648,7 +10765,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class EncryptionScopesOperations: +class EncryptionScopesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -10780,7 +10897,7 @@ def create_or_update( resource_group_name: str, account_name: str, encryption_scope_name: str, - encryption_scope: JSON, + encryption_scope: _types.EncryptionScope, *, content_type: str = "application/json", **kwargs: Any @@ -10796,7 +10913,7 @@ def create_or_update( Services Account. Required. :type encryption_scope_name: str :param encryption_scope: The encryptionScope properties. Required. - :type encryption_scope: JSON + :type encryption_scope: ~azure.mgmt.cognitiveservices.types.EncryptionScope :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -10842,7 +10959,7 @@ def create_or_update( resource_group_name: str, account_name: str, encryption_scope_name: str, - encryption_scope: Union[_models.EncryptionScope, JSON, IO[bytes]], + encryption_scope: Union[_models.EncryptionScope, _types.EncryptionScope, IO[bytes]], **kwargs: Any ) -> _models.EncryptionScope: """Update the state of specified encryptionScope associated with the Cognitive Services account. @@ -10855,10 +10972,10 @@ def create_or_update( :param encryption_scope_name: The name of the encryptionScope associated with the Cognitive Services Account. Required. :type encryption_scope_name: str - :param encryption_scope: The encryptionScope properties. Is one of the following types: - EncryptionScope, JSON, IO[bytes] Required. - :type encryption_scope: ~azure.mgmt.cognitiveservices.models.EncryptionScope or JSON or - IO[bytes] + :param encryption_scope: The encryptionScope properties. Is either a EncryptionScope type or a + IO[bytes] type. Required. + :type encryption_scope: ~azure.mgmt.cognitiveservices.models.EncryptionScope or + ~azure.mgmt.cognitiveservices.types.EncryptionScope or IO[bytes] :return: EncryptionScope. The EncryptionScope is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.EncryptionScope :raises ~azure.core.exceptions.HttpResponseError: @@ -11157,7 +11274,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class RaiPoliciesOperations: +class RaiPoliciesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -11289,7 +11406,7 @@ def create_or_update( resource_group_name: str, account_name: str, rai_policy_name: str, - rai_policy: JSON, + rai_policy: _types.RaiPolicy, *, content_type: str = "application/json", **kwargs: Any @@ -11305,7 +11422,7 @@ def create_or_update( Account. Required. :type rai_policy_name: str :param rai_policy: Properties describing the Content Filters. Required. - :type rai_policy: JSON + :type rai_policy: ~azure.mgmt.cognitiveservices.types.RaiPolicy :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -11351,7 +11468,7 @@ def create_or_update( resource_group_name: str, account_name: str, rai_policy_name: str, - rai_policy: Union[_models.RaiPolicy, JSON, IO[bytes]], + rai_policy: Union[_models.RaiPolicy, _types.RaiPolicy, IO[bytes]], **kwargs: Any ) -> _models.RaiPolicy: """Update the state of specified Content Filters associated with the Azure OpenAI account. @@ -11364,9 +11481,10 @@ def create_or_update( :param rai_policy_name: The name of the RaiPolicy associated with the Cognitive Services Account. Required. :type rai_policy_name: str - :param rai_policy: Properties describing the Content Filters. Is one of the following types: - RaiPolicy, JSON, IO[bytes] Required. - :type rai_policy: ~azure.mgmt.cognitiveservices.models.RaiPolicy or JSON or IO[bytes] + :param rai_policy: Properties describing the Content Filters. Is either a RaiPolicy type or a + IO[bytes] type. Required. + :type rai_policy: ~azure.mgmt.cognitiveservices.models.RaiPolicy or + ~azure.mgmt.cognitiveservices.types.RaiPolicy or IO[bytes] :return: RaiPolicy. The RaiPolicy is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.RaiPolicy :raises ~azure.core.exceptions.HttpResponseError: @@ -11665,7 +11783,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class SubscriptionRaiPolicyOperations: +class SubscriptionRaiPolicyOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -11777,7 +11895,12 @@ def create_or_update( @overload def create_or_update( - self, rai_policy_name: str, rai_policy: JSON, *, content_type: str = "application/json", **kwargs: Any + self, + rai_policy_name: str, + rai_policy: _types.RaiPolicy, + *, + content_type: str = "application/json", + **kwargs: Any ) -> _models.RaiPolicy: """Update the state of specified Content Filters associated with the subscription. @@ -11785,7 +11908,7 @@ def create_or_update( Account. Required. :type rai_policy_name: str :param rai_policy: Properties describing the Content Filters. Required. - :type rai_policy: JSON + :type rai_policy: ~azure.mgmt.cognitiveservices.types.RaiPolicy :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -11815,16 +11938,17 @@ def create_or_update( @distributed_trace def create_or_update( - self, rai_policy_name: str, rai_policy: Union[_models.RaiPolicy, JSON, IO[bytes]], **kwargs: Any + self, rai_policy_name: str, rai_policy: Union[_models.RaiPolicy, _types.RaiPolicy, IO[bytes]], **kwargs: Any ) -> _models.RaiPolicy: """Update the state of specified Content Filters associated with the subscription. :param rai_policy_name: The name of the RaiPolicy associated with the Cognitive Services Account. Required. :type rai_policy_name: str - :param rai_policy: Properties describing the Content Filters. Is one of the following types: - RaiPolicy, JSON, IO[bytes] Required. - :type rai_policy: ~azure.mgmt.cognitiveservices.models.RaiPolicy or JSON or IO[bytes] + :param rai_policy: Properties describing the Content Filters. Is either a RaiPolicy type or a + IO[bytes] type. Required. + :type rai_policy: ~azure.mgmt.cognitiveservices.models.RaiPolicy or + ~azure.mgmt.cognitiveservices.types.RaiPolicy or IO[bytes] :return: RaiPolicy. The RaiPolicy is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.RaiPolicy :raises ~azure.core.exceptions.HttpResponseError: @@ -12004,7 +12128,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class RaiBlocklistItemsOperations: +class RaiBlocklistItemsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -12150,7 +12274,7 @@ def create_or_update( account_name: str, rai_blocklist_name: str, rai_blocklist_item_name: str, - rai_blocklist_item: JSON, + rai_blocklist_item: _types.RaiBlocklistItem, *, content_type: str = "application/json", **kwargs: Any @@ -12169,7 +12293,7 @@ def create_or_update( blocklist. Required. :type rai_blocklist_item_name: str :param rai_blocklist_item: Properties describing the custom blocklist. Required. - :type rai_blocklist_item: JSON + :type rai_blocklist_item: ~azure.mgmt.cognitiveservices.types.RaiBlocklistItem :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -12220,7 +12344,7 @@ def create_or_update( account_name: str, rai_blocklist_name: str, rai_blocklist_item_name: str, - rai_blocklist_item: Union[_models.RaiBlocklistItem, JSON, IO[bytes]], + rai_blocklist_item: Union[_models.RaiBlocklistItem, _types.RaiBlocklistItem, IO[bytes]], **kwargs: Any ) -> _models.RaiBlocklistItem: """Update the state of specified blocklist item associated with the Azure OpenAI account. @@ -12236,10 +12360,10 @@ def create_or_update( :param rai_blocklist_item_name: The name of the RaiBlocklist Item associated with the custom blocklist. Required. :type rai_blocklist_item_name: str - :param rai_blocklist_item: Properties describing the custom blocklist. Is one of the following - types: RaiBlocklistItem, JSON, IO[bytes] Required. - :type rai_blocklist_item: ~azure.mgmt.cognitiveservices.models.RaiBlocklistItem or JSON or - IO[bytes] + :param rai_blocklist_item: Properties describing the custom blocklist. Is either a + RaiBlocklistItem type or a IO[bytes] type. Required. + :type rai_blocklist_item: ~azure.mgmt.cognitiveservices.models.RaiBlocklistItem or + ~azure.mgmt.cognitiveservices.types.RaiBlocklistItem or IO[bytes] :return: RaiBlocklistItem. The RaiBlocklistItem is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.RaiBlocklistItem :raises ~azure.core.exceptions.HttpResponseError: @@ -12597,7 +12721,7 @@ def batch_add( resource_group_name: str, account_name: str, rai_blocklist_name: str, - rai_blocklist_items: List[JSON], + rai_blocklist_items: List[_types.RaiBlocklistItemBulkRequest], *, content_type: str = "application/json", **kwargs: Any @@ -12613,7 +12737,8 @@ def batch_add( Account. Required. :type rai_blocklist_name: str :param rai_blocklist_items: Properties describing the custom blocklist items. Required. - :type rai_blocklist_items: list[JSON] + :type rai_blocklist_items: + list[~azure.mgmt.cognitiveservices.types.RaiBlocklistItemBulkRequest] :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -12659,7 +12784,9 @@ def batch_add( resource_group_name: str, account_name: str, rai_blocklist_name: str, - rai_blocklist_items: Union[List[_models.RaiBlocklistItemBulkRequest], List[JSON], IO[bytes]], + rai_blocklist_items: Union[ + List[_models.RaiBlocklistItemBulkRequest], List[_types.RaiBlocklistItemBulkRequest], IO[bytes] + ], **kwargs: Any ) -> _models.RaiBlocklist: """Batch operation to add blocklist items. @@ -12672,11 +12799,11 @@ def batch_add( :param rai_blocklist_name: The name of the RaiBlocklist associated with the Cognitive Services Account. Required. :type rai_blocklist_name: str - :param rai_blocklist_items: Properties describing the custom blocklist items. Is one of the - following types: [RaiBlocklistItemBulkRequest], [JSON], IO[bytes] Required. + :param rai_blocklist_items: Properties describing the custom blocklist items. Is either a + [RaiBlocklistItemBulkRequest] type or a IO[bytes] type. Required. :type rai_blocklist_items: - list[~azure.mgmt.cognitiveservices.models.RaiBlocklistItemBulkRequest] or list[JSON] or - IO[bytes] + list[~azure.mgmt.cognitiveservices.models.RaiBlocklistItemBulkRequest] or + list[~azure.mgmt.cognitiveservices.types.RaiBlocklistItemBulkRequest] or IO[bytes] :return: RaiBlocklist. The RaiBlocklist is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.RaiBlocklist :raises ~azure.core.exceptions.HttpResponseError: @@ -12893,7 +13020,7 @@ def batch_delete( # pylint: disable=inconsistent-return-statements return cls(pipeline_response, None, {}) # type: ignore -class RaiBlocklistsOperations: +class RaiBlocklistsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -13025,7 +13152,7 @@ def create_or_update( resource_group_name: str, account_name: str, rai_blocklist_name: str, - rai_blocklist: JSON, + rai_blocklist: _types.RaiBlocklist, *, content_type: str = "application/json", **kwargs: Any @@ -13041,7 +13168,7 @@ def create_or_update( Account. Required. :type rai_blocklist_name: str :param rai_blocklist: Properties describing the custom blocklist. Required. - :type rai_blocklist: JSON + :type rai_blocklist: ~azure.mgmt.cognitiveservices.types.RaiBlocklist :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -13087,7 +13214,7 @@ def create_or_update( resource_group_name: str, account_name: str, rai_blocklist_name: str, - rai_blocklist: Union[_models.RaiBlocklist, JSON, IO[bytes]], + rai_blocklist: Union[_models.RaiBlocklist, _types.RaiBlocklist, IO[bytes]], **kwargs: Any ) -> _models.RaiBlocklist: """Update the state of specified blocklist associated with the Azure OpenAI account. @@ -13100,9 +13227,10 @@ def create_or_update( :param rai_blocklist_name: The name of the RaiBlocklist associated with the Cognitive Services Account. Required. :type rai_blocklist_name: str - :param rai_blocklist: Properties describing the custom blocklist. Is one of the following - types: RaiBlocklist, JSON, IO[bytes] Required. - :type rai_blocklist: ~azure.mgmt.cognitiveservices.models.RaiBlocklist or JSON or IO[bytes] + :param rai_blocklist: Properties describing the custom blocklist. Is either a RaiBlocklist type + or a IO[bytes] type. Required. + :type rai_blocklist: ~azure.mgmt.cognitiveservices.models.RaiBlocklist or + ~azure.mgmt.cognitiveservices.types.RaiBlocklist or IO[bytes] :return: RaiBlocklist. The RaiBlocklist is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.RaiBlocklist :raises ~azure.core.exceptions.HttpResponseError: @@ -13401,7 +13529,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class RaiTopicsOperations: +class RaiTopicsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -13531,7 +13659,7 @@ def create_or_update( resource_group_name: str, account_name: str, rai_topic_name: str, - rai_topic: JSON, + rai_topic: _types.RaiTopic, *, content_type: str = "application/json", **kwargs: Any @@ -13547,7 +13675,7 @@ def create_or_update( Account. Required. :type rai_topic_name: str :param rai_topic: Properties describing the rai topic. Required. - :type rai_topic: JSON + :type rai_topic: ~azure.mgmt.cognitiveservices.types.RaiTopic :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -13593,7 +13721,7 @@ def create_or_update( resource_group_name: str, account_name: str, rai_topic_name: str, - rai_topic: Union[_models.RaiTopic, JSON, IO[bytes]], + rai_topic: Union[_models.RaiTopic, _types.RaiTopic, IO[bytes]], **kwargs: Any ) -> _models.RaiTopic: """Create the rai topic associated with the Azure OpenAI account. @@ -13606,9 +13734,10 @@ def create_or_update( :param rai_topic_name: The name of the Rai Topic associated with the Cognitive Services Account. Required. :type rai_topic_name: str - :param rai_topic: Properties describing the rai topic. Is one of the following types: RaiTopic, - JSON, IO[bytes] Required. - :type rai_topic: ~azure.mgmt.cognitiveservices.models.RaiTopic or JSON or IO[bytes] + :param rai_topic: Properties describing the rai topic. Is either a RaiTopic type or a IO[bytes] + type. Required. + :type rai_topic: ~azure.mgmt.cognitiveservices.models.RaiTopic or + ~azure.mgmt.cognitiveservices.types.RaiTopic or IO[bytes] :return: RaiTopic. The RaiTopic is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.RaiTopic :raises ~azure.core.exceptions.HttpResponseError: @@ -13907,7 +14036,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class RaiToolLabelsOperations: +class RaiToolLabelsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -14037,7 +14166,7 @@ def create_or_update( resource_group_name: str, account_name: str, rai_tool_connection_name: str, - rai_tool_label: JSON, + rai_tool_label: _types.RaiToolLabel, *, content_type: str = "application/json", **kwargs: Any @@ -14052,7 +14181,7 @@ def create_or_update( :param rai_tool_connection_name: The name of the Rai Tool Label. Required. :type rai_tool_connection_name: str :param rai_tool_label: Properties describing the RAI Tool Label. Required. - :type rai_tool_label: JSON + :type rai_tool_label: ~azure.mgmt.cognitiveservices.types.RaiToolLabel :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -14097,7 +14226,7 @@ def create_or_update( resource_group_name: str, account_name: str, rai_tool_connection_name: str, - rai_tool_label: Union[_models.RaiToolLabel, JSON, IO[bytes]], + rai_tool_label: Union[_models.RaiToolLabel, _types.RaiToolLabel, IO[bytes]], **kwargs: Any ) -> _models.RaiToolLabel: """Creates the RAI Tool Label associated with the Azure OpenAI account. @@ -14109,9 +14238,10 @@ def create_or_update( :type account_name: str :param rai_tool_connection_name: The name of the Rai Tool Label. Required. :type rai_tool_connection_name: str - :param rai_tool_label: Properties describing the RAI Tool Label. Is one of the following types: - RaiToolLabel, JSON, IO[bytes] Required. - :type rai_tool_label: ~azure.mgmt.cognitiveservices.models.RaiToolLabel or JSON or IO[bytes] + :param rai_tool_label: Properties describing the RAI Tool Label. Is either a RaiToolLabel type + or a IO[bytes] type. Required. + :type rai_tool_label: ~azure.mgmt.cognitiveservices.models.RaiToolLabel or + ~azure.mgmt.cognitiveservices.types.RaiToolLabel or IO[bytes] :return: RaiToolLabel. The RaiToolLabel is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.RaiToolLabel :raises ~azure.core.exceptions.HttpResponseError: @@ -14409,7 +14539,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class RaiContentFiltersOperations: +class RaiContentFiltersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -14594,7 +14724,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class NetworkSecurityPerimeterConfigurationsOperations: # pylint: disable=name-too-long +class NetworkSecurityPerimeterConfigurationsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -14924,7 +15054,7 @@ def get_long_running_output(pipeline_response): ) -class DefenderForAISettingsOperations: +class DefenderForAISettingsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -15054,7 +15184,7 @@ def create_or_update( resource_group_name: str, account_name: str, defender_for_ai_setting_name: str, - defender_for_ai_settings: JSON, + defender_for_ai_settings: _types.DefenderForAISetting, *, content_type: str = "application/json", **kwargs: Any @@ -15069,7 +15199,7 @@ def create_or_update( :param defender_for_ai_setting_name: The name of the defender for AI setting. Required. :type defender_for_ai_setting_name: str :param defender_for_ai_settings: Properties describing the Defender for AI setting. Required. - :type defender_for_ai_settings: JSON + :type defender_for_ai_settings: ~azure.mgmt.cognitiveservices.types.DefenderForAISetting :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -15114,7 +15244,7 @@ def create_or_update( resource_group_name: str, account_name: str, defender_for_ai_setting_name: str, - defender_for_ai_settings: Union[_models.DefenderForAISetting, JSON, IO[bytes]], + defender_for_ai_settings: Union[_models.DefenderForAISetting, _types.DefenderForAISetting, IO[bytes]], **kwargs: Any ) -> _models.DefenderForAISetting: """Creates or Updates the specified Defender for AI setting. @@ -15126,10 +15256,10 @@ def create_or_update( :type account_name: str :param defender_for_ai_setting_name: The name of the defender for AI setting. Required. :type defender_for_ai_setting_name: str - :param defender_for_ai_settings: Properties describing the Defender for AI setting. Is one of - the following types: DefenderForAISetting, JSON, IO[bytes] Required. + :param defender_for_ai_settings: Properties describing the Defender for AI setting. Is either a + DefenderForAISetting type or a IO[bytes] type. Required. :type defender_for_ai_settings: ~azure.mgmt.cognitiveservices.models.DefenderForAISetting or - JSON or IO[bytes] + ~azure.mgmt.cognitiveservices.types.DefenderForAISetting or IO[bytes] :return: DefenderForAISetting. The DefenderForAISetting is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.DefenderForAISetting :raises ~azure.core.exceptions.HttpResponseError: @@ -15238,7 +15368,7 @@ def update( resource_group_name: str, account_name: str, defender_for_ai_setting_name: str, - defender_for_ai_settings: JSON, + defender_for_ai_settings: _types.DefenderForAISetting, *, content_type: str = "application/json", **kwargs: Any @@ -15253,7 +15383,7 @@ def update( :param defender_for_ai_setting_name: The name of the defender for AI setting. Required. :type defender_for_ai_setting_name: str :param defender_for_ai_settings: Properties describing the Defender for AI setting. Required. - :type defender_for_ai_settings: JSON + :type defender_for_ai_settings: ~azure.mgmt.cognitiveservices.types.DefenderForAISetting :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -15298,7 +15428,7 @@ def update( resource_group_name: str, account_name: str, defender_for_ai_setting_name: str, - defender_for_ai_settings: Union[_models.DefenderForAISetting, JSON, IO[bytes]], + defender_for_ai_settings: Union[_models.DefenderForAISetting, _types.DefenderForAISetting, IO[bytes]], **kwargs: Any ) -> _models.DefenderForAISetting: """Updates the specified Defender for AI setting. @@ -15310,10 +15440,10 @@ def update( :type account_name: str :param defender_for_ai_setting_name: The name of the defender for AI setting. Required. :type defender_for_ai_setting_name: str - :param defender_for_ai_settings: Properties describing the Defender for AI setting. Is one of - the following types: DefenderForAISetting, JSON, IO[bytes] Required. + :param defender_for_ai_settings: Properties describing the Defender for AI setting. Is either a + DefenderForAISetting type or a IO[bytes] type. Required. :type defender_for_ai_settings: ~azure.mgmt.cognitiveservices.models.DefenderForAISetting or - JSON or IO[bytes] + ~azure.mgmt.cognitiveservices.types.DefenderForAISetting or IO[bytes] :return: DefenderForAISetting. The DefenderForAISetting is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.DefenderForAISetting :raises ~azure.core.exceptions.HttpResponseError: @@ -15489,7 +15619,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ProjectsOperations: +class ProjectsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -15586,7 +15716,7 @@ def _create_initial( resource_group_name: str, account_name: str, project_name: str, - project: Union[_models.Project, JSON, IO[bytes]], + project: Union[_models.Project, _types.Project, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -15699,7 +15829,7 @@ def begin_create( resource_group_name: str, account_name: str, project_name: str, - project: JSON, + project: _types.Project, *, content_type: str = "application/json", **kwargs: Any @@ -15715,7 +15845,7 @@ def begin_create( :param project_name: The name of Cognitive Services account's project. Required. :type project_name: str :param project: The parameters to provide for the created project. Required. - :type project: JSON + :type project: ~azure.mgmt.cognitiveservices.types.Project :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -15763,7 +15893,7 @@ def begin_create( resource_group_name: str, account_name: str, project_name: str, - project: Union[_models.Project, JSON, IO[bytes]], + project: Union[_models.Project, _types.Project, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.Project]: """Create Cognitive Services Account's Project. Project is a sub-resource of an account which give @@ -15776,9 +15906,10 @@ def begin_create( :type account_name: str :param project_name: The name of Cognitive Services account's project. Required. :type project_name: str - :param project: The parameters to provide for the created project. Is one of the following - types: Project, JSON, IO[bytes] Required. - :type project: ~azure.mgmt.cognitiveservices.models.Project or JSON or IO[bytes] + :param project: The parameters to provide for the created project. Is either a Project type or + a IO[bytes] type. Required. + :type project: ~azure.mgmt.cognitiveservices.models.Project or + ~azure.mgmt.cognitiveservices.types.Project or IO[bytes] :return: An instance of LROPoller that returns Project. The Project is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.cognitiveservices.models.Project] @@ -15842,7 +15973,7 @@ def _update_initial( resource_group_name: str, account_name: str, project_name: str, - project: Union[_models.Project, JSON, IO[bytes]], + project: Union[_models.Project, _types.Project, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -15950,7 +16081,7 @@ def begin_update( resource_group_name: str, account_name: str, project_name: str, - project: JSON, + project: _types.Project, *, content_type: str = "application/json", **kwargs: Any @@ -15965,7 +16096,7 @@ def begin_update( :param project_name: The name of Cognitive Services account's project. Required. :type project_name: str :param project: The parameters to provide for the created project. Required. - :type project: JSON + :type project: ~azure.mgmt.cognitiveservices.types.Project :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -16012,7 +16143,7 @@ def begin_update( resource_group_name: str, account_name: str, project_name: str, - project: Union[_models.Project, JSON, IO[bytes]], + project: Union[_models.Project, _types.Project, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.Project]: """Updates a Cognitive Services Project. @@ -16024,9 +16155,10 @@ def begin_update( :type account_name: str :param project_name: The name of Cognitive Services account's project. Required. :type project_name: str - :param project: The parameters to provide for the created project. Is one of the following - types: Project, JSON, IO[bytes] Required. - :type project: ~azure.mgmt.cognitiveservices.models.Project or JSON or IO[bytes] + :param project: The parameters to provide for the created project. Is either a Project type or + a IO[bytes] type. Required. + :type project: ~azure.mgmt.cognitiveservices.models.Project or + ~azure.mgmt.cognitiveservices.types.Project or IO[bytes] :return: An instance of LROPoller that returns Project. The Project is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.cognitiveservices.models.Project] @@ -16310,7 +16442,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ProjectConnectionsOperations: +class ProjectConnectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -16454,7 +16586,7 @@ def create( account_name: str, project_name: str, connection_name: str, - connection: Optional[JSON] = None, + connection: Optional[_types.ConnectionPropertiesV2BasicResource] = None, *, content_type: str = "application/json", **kwargs: Any @@ -16474,7 +16606,7 @@ def create( :type connection_name: str :param connection: The object for creating or updating a new account connection. Default value is None. - :type connection: JSON + :type connection: ~azure.mgmt.cognitiveservices.types.ConnectionPropertiesV2BasicResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -16528,7 +16660,9 @@ def create( account_name: str, project_name: str, connection_name: str, - connection: Optional[Union[_models.ConnectionPropertiesV2BasicResource, JSON, IO[bytes]]] = None, + connection: Optional[ + Union[_models.ConnectionPropertiesV2BasicResource, _types.ConnectionPropertiesV2BasicResource, IO[bytes]] + ] = None, **kwargs: Any ) -> _models.ConnectionPropertiesV2BasicResource: """Create or update Cognitive Services project connection under the specified project. @@ -16544,10 +16678,10 @@ def create( :type project_name: str :param connection_name: Friendly name of the connection. Required. :type connection_name: str - :param connection: The object for creating or updating a new account connection. Is one of the - following types: ConnectionPropertiesV2BasicResource, JSON, IO[bytes] Default value is None. + :param connection: The object for creating or updating a new account connection. Is either a + ConnectionPropertiesV2BasicResource type or a IO[bytes] type. Default value is None. :type connection: ~azure.mgmt.cognitiveservices.models.ConnectionPropertiesV2BasicResource or - JSON or IO[bytes] + ~azure.mgmt.cognitiveservices.types.ConnectionPropertiesV2BasicResource or IO[bytes] :return: ConnectionPropertiesV2BasicResource. The ConnectionPropertiesV2BasicResource is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.ConnectionPropertiesV2BasicResource @@ -16669,7 +16803,7 @@ def update( account_name: str, project_name: str, connection_name: str, - connection: Optional[JSON] = None, + connection: Optional[_types.ConnectionUpdateContent] = None, *, content_type: str = "application/json", **kwargs: Any @@ -16688,7 +16822,7 @@ def update( :param connection_name: Friendly name of the connection. Required. :type connection_name: str :param connection: Parameters for account connection update. Default value is None. - :type connection: JSON + :type connection: ~azure.mgmt.cognitiveservices.types.ConnectionUpdateContent :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -16741,7 +16875,7 @@ def update( account_name: str, project_name: str, connection_name: str, - connection: Optional[Union[_models.ConnectionUpdateContent, JSON, IO[bytes]]] = None, + connection: Optional[Union[_models.ConnectionUpdateContent, _types.ConnectionUpdateContent, IO[bytes]]] = None, **kwargs: Any ) -> _models.ConnectionPropertiesV2BasicResource: """Update Cognitive Services project connection under the specified project. @@ -16757,10 +16891,10 @@ def update( :type project_name: str :param connection_name: Friendly name of the connection. Required. :type connection_name: str - :param connection: Parameters for account connection update. Is one of the following types: - ConnectionUpdateContent, JSON, IO[bytes] Default value is None. - :type connection: ~azure.mgmt.cognitiveservices.models.ConnectionUpdateContent or JSON or - IO[bytes] + :param connection: Parameters for account connection update. Is either a + ConnectionUpdateContent type or a IO[bytes] type. Default value is None. + :type connection: ~azure.mgmt.cognitiveservices.models.ConnectionUpdateContent or + ~azure.mgmt.cognitiveservices.types.ConnectionUpdateContent or IO[bytes] :return: ConnectionPropertiesV2BasicResource. The ConnectionPropertiesV2BasicResource is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.ConnectionPropertiesV2BasicResource @@ -17033,7 +17167,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ProjectCapabilityHostsOperations: +class ProjectCapabilityHostsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -17139,7 +17273,7 @@ def _create_or_update_initial( account_name: str, project_name: str, capability_host_name: str, - capability_host: Union[_models.ProjectCapabilityHost, JSON, IO[bytes]], + capability_host: Union[_models.ProjectCapabilityHost, _types.ProjectCapabilityHost, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -17261,7 +17395,7 @@ def begin_create_or_update( account_name: str, project_name: str, capability_host_name: str, - capability_host: JSON, + capability_host: _types.ProjectCapabilityHost, *, content_type: str = "application/json", **kwargs: Any @@ -17281,7 +17415,7 @@ def begin_create_or_update( Services Resource. Required. :type capability_host_name: str :param capability_host: CapabilityHost definition. Required. - :type capability_host: JSON + :type capability_host: ~azure.mgmt.cognitiveservices.types.ProjectCapabilityHost :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -17337,7 +17471,7 @@ def begin_create_or_update( account_name: str, project_name: str, capability_host_name: str, - capability_host: Union[_models.ProjectCapabilityHost, JSON, IO[bytes]], + capability_host: Union[_models.ProjectCapabilityHost, _types.ProjectCapabilityHost, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.ProjectCapabilityHost]: """Create or update project capabilityHost. @@ -17354,10 +17488,10 @@ def begin_create_or_update( :param capability_host_name: The name of the capability host associated with the Cognitive Services Resource. Required. :type capability_host_name: str - :param capability_host: CapabilityHost definition. Is one of the following types: - ProjectCapabilityHost, JSON, IO[bytes] Required. - :type capability_host: ~azure.mgmt.cognitiveservices.models.ProjectCapabilityHost or JSON or - IO[bytes] + :param capability_host: CapabilityHost definition. Is either a ProjectCapabilityHost type or a + IO[bytes] type. Required. + :type capability_host: ~azure.mgmt.cognitiveservices.models.ProjectCapabilityHost or + ~azure.mgmt.cognitiveservices.types.ProjectCapabilityHost or IO[bytes] :return: An instance of LROPoller that returns ProjectCapabilityHost. The ProjectCapabilityHost is compatible with MutableMapping :rtype: @@ -17660,7 +17794,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class QuotaTiersOperations: +class QuotaTiersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -17771,7 +17905,7 @@ def create_or_update( @overload def create_or_update( - self, default: str, tier: JSON, *, content_type: str = "application/json", **kwargs: Any + self, default: str, tier: _types.QuotaTier, *, content_type: str = "application/json", **kwargs: Any ) -> _models.QuotaTier: """Updates the Quota Tier resource for a subscription. @@ -17781,7 +17915,7 @@ def create_or_update( :param default: Default parameter. Leave the value as default. Required. :type default: str :param tier: The parameters to provide for the quota tier resource. Required. - :type tier: JSON + :type tier: ~azure.mgmt.cognitiveservices.types.QuotaTier :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -17813,7 +17947,7 @@ def create_or_update( @distributed_trace def create_or_update( - self, default: str, tier: Union[_models.QuotaTier, JSON, IO[bytes]], **kwargs: Any + self, default: str, tier: Union[_models.QuotaTier, _types.QuotaTier, IO[bytes]], **kwargs: Any ) -> _models.QuotaTier: """Updates the Quota Tier resource for a subscription. @@ -17822,9 +17956,10 @@ def create_or_update( :param default: Default parameter. Leave the value as default. Required. :type default: str - :param tier: The parameters to provide for the quota tier resource. Is one of the following - types: QuotaTier, JSON, IO[bytes] Required. - :type tier: ~azure.mgmt.cognitiveservices.models.QuotaTier or JSON or IO[bytes] + :param tier: The parameters to provide for the quota tier resource. Is either a QuotaTier type + or a IO[bytes] type. Required. + :type tier: ~azure.mgmt.cognitiveservices.models.QuotaTier or + ~azure.mgmt.cognitiveservices.types.QuotaTier or IO[bytes] :return: QuotaTier. The QuotaTier is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.QuotaTier :raises ~azure.core.exceptions.HttpResponseError: @@ -17919,7 +18054,7 @@ def update( @overload def update( - self, default: str, tier: JSON, *, content_type: str = "application/json", **kwargs: Any + self, default: str, tier: _types.QuotaTier, *, content_type: str = "application/json", **kwargs: Any ) -> _models.QuotaTier: """Updates the Quota Tier resource for a subscription. The only properties that can be updated are "tierUpgradePolicy". @@ -17930,7 +18065,7 @@ def update( :param default: Default parameter. Leave the value as default. Required. :type default: str :param tier: The parameters to provide for the quota tier resource. Required. - :type tier: JSON + :type tier: ~azure.mgmt.cognitiveservices.types.QuotaTier :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -17962,7 +18097,9 @@ def update( """ @distributed_trace - def update(self, default: str, tier: Union[_models.QuotaTier, JSON, IO[bytes]], **kwargs: Any) -> _models.QuotaTier: + def update( + self, default: str, tier: Union[_models.QuotaTier, _types.QuotaTier, IO[bytes]], **kwargs: Any + ) -> _models.QuotaTier: """Updates the Quota Tier resource for a subscription. The only properties that can be updated are "tierUpgradePolicy". @@ -17971,9 +18108,10 @@ def update(self, default: str, tier: Union[_models.QuotaTier, JSON, IO[bytes]], :param default: Default parameter. Leave the value as default. Required. :type default: str - :param tier: The parameters to provide for the quota tier resource. Is one of the following - types: QuotaTier, JSON, IO[bytes] Required. - :type tier: ~azure.mgmt.cognitiveservices.models.QuotaTier or JSON or IO[bytes] + :param tier: The parameters to provide for the quota tier resource. Is either a QuotaTier type + or a IO[bytes] type. Required. + :type tier: ~azure.mgmt.cognitiveservices.models.QuotaTier or + ~azure.mgmt.cognitiveservices.types.QuotaTier or IO[bytes] :return: QuotaTier. The QuotaTier is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.QuotaTier :raises ~azure.core.exceptions.HttpResponseError: @@ -18138,14 +18276,14 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class AgentApplicationsOperations: +class ArcDeploymentsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.cognitiveservices.CognitiveServicesManagementClient`'s - :attr:`agent_applications` attribute. + :attr:`arc_deployments` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -18158,24 +18296,36 @@ def __init__(self, *args, **kwargs) -> None: self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace + @api_version_validation( + method_added_on="2026-07-15-preview", + params_added_on={ + "2026-07-15-preview": [ + "api_version", + "subscription_id", + "resource_group_name", + "account_name", + "deployment_name", + "accept", + ] + }, + api_versions_list=["2026-07-15-preview"], + ) def get( - self, resource_group_name: str, account_name: str, project_name: str, name: str, **kwargs: Any - ) -> _models.AgentApplication: - """Gets an Agent Application by name. - - Gets an Agent Application by name. + self, resource_group_name: str, account_name: str, deployment_name: str, **kwargs: Any + ) -> _models.ArcDeployment: + """Gets the specified Arc deployment associated with the Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param account_name: The name of Cognitive Services account. Required. :type account_name: str - :param project_name: The name of Cognitive Services account's project. Required. - :type project_name: str - :param name: Name for the Agent Application. Required. - :type name: str - :return: AgentApplication. The AgentApplication is compatible with MutableMapping - :rtype: ~azure.mgmt.cognitiveservices.models.AgentApplication + :param deployment_name: The name of the Arc deployment associated with the Cognitive Services + Account. The name must be unique within the account across deployments, + managedComputeDeployments, and arcDeployments. Required. + :type deployment_name: str + :return: ArcDeployment. The ArcDeployment is compatible with MutableMapping + :rtype: ~azure.mgmt.cognitiveservices.models.ArcDeployment :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -18189,13 +18339,12 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[_models.AgentApplication] = kwargs.pop("cls", None) + cls: ClsType[_models.ArcDeployment] = kwargs.pop("cls", None) - _request = build_agent_applications_get_request( + _request = build_arc_deployments_get_request( resource_group_name=resource_group_name, account_name=account_name, - project_name=project_name, - name=name, + deployment_name=deployment_name, subscription_id=self._config.subscription_id, api_version=self._config.api_version, headers=_headers, @@ -18230,20 +18379,34 @@ def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.AgentApplication, response.json()) + deserialized = _deserialize(_models.ArcDeployment, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore + @api_version_validation( + method_added_on="2026-07-15-preview", + params_added_on={ + "2026-07-15-preview": [ + "api_version", + "subscription_id", + "resource_group_name", + "account_name", + "deployment_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2026-07-15-preview"], + ) def _create_or_update_initial( self, resource_group_name: str, account_name: str, - project_name: str, - name: str, - body: Union[_models.AgentApplication, JSON, IO[bytes]], + deployment_name: str, + resource: Union[_models.ArcDeployment, _types.ArcDeployment, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -18262,16 +18425,15 @@ def _create_or_update_initial( content_type = content_type or "application/json" _content = None - if isinstance(body, (IOBase, bytes)): - _content = body + if isinstance(resource, (IOBase, bytes)): + _content = resource else: - _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(resource, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_agent_applications_create_or_update_request( + _request = build_arc_deployments_create_or_update_request( resource_group_name=resource_group_name, account_name=account_name, - project_name=project_name, - name=name, + deployment_name=deployment_name, subscription_id=self._config.subscription_id, content_type=content_type, api_version=self._config.api_version, @@ -18306,13 +18468,10 @@ def _create_or_update_initial( response_headers = {} if response.status_code == 201: - response_headers["location"] = self._deserialize("str", response.headers.get("location")) response_headers["Azure-AsyncOperation"] = self._deserialize( "str", response.headers.get("Azure-AsyncOperation") ) - response_headers["x-ms-async-operation-timeout"] = self._deserialize( - "str", response.headers.get("x-ms-async-operation-timeout") - ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -18326,16 +18485,947 @@ def begin_create_or_update( self, resource_group_name: str, account_name: str, - project_name: str, - name: str, - body: _models.AgentApplication, + deployment_name: str, + resource: _models.ArcDeployment, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.AgentApplication]: - """Creates or updates an Agent Application (asynchronous). + ) -> LROPoller[_models.ArcDeployment]: + """Creates or updates an Arc deployment associated with the Cognitive Services account. - Creates or updates an Agent Application (asynchronous). + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param account_name: The name of Cognitive Services account. Required. + :type account_name: str + :param deployment_name: The name of the Arc deployment associated with the Cognitive Services + Account. The name must be unique within the account across deployments, + managedComputeDeployments, and arcDeployments. Required. + :type deployment_name: str + :param resource: The Arc deployment properties. Required. + :type resource: ~azure.mgmt.cognitiveservices.models.ArcDeployment + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ArcDeployment. The ArcDeployment is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.cognitiveservices.models.ArcDeployment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + account_name: str, + deployment_name: str, + resource: _types.ArcDeployment, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ArcDeployment]: + """Creates or updates an Arc deployment associated with the Cognitive Services account. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param account_name: The name of Cognitive Services account. Required. + :type account_name: str + :param deployment_name: The name of the Arc deployment associated with the Cognitive Services + Account. The name must be unique within the account across deployments, + managedComputeDeployments, and arcDeployments. Required. + :type deployment_name: str + :param resource: The Arc deployment properties. Required. + :type resource: ~azure.mgmt.cognitiveservices.types.ArcDeployment + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ArcDeployment. The ArcDeployment is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.cognitiveservices.models.ArcDeployment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + account_name: str, + deployment_name: str, + resource: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ArcDeployment]: + """Creates or updates an Arc deployment associated with the Cognitive Services account. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param account_name: The name of Cognitive Services account. Required. + :type account_name: str + :param deployment_name: The name of the Arc deployment associated with the Cognitive Services + Account. The name must be unique within the account across deployments, + managedComputeDeployments, and arcDeployments. Required. + :type deployment_name: str + :param resource: The Arc deployment properties. Required. + :type resource: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ArcDeployment. The ArcDeployment is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.cognitiveservices.models.ArcDeployment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + @api_version_validation( + method_added_on="2026-07-15-preview", + params_added_on={ + "2026-07-15-preview": [ + "api_version", + "subscription_id", + "resource_group_name", + "account_name", + "deployment_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2026-07-15-preview"], + ) + def begin_create_or_update( + self, + resource_group_name: str, + account_name: str, + deployment_name: str, + resource: Union[_models.ArcDeployment, _types.ArcDeployment, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.ArcDeployment]: + """Creates or updates an Arc deployment associated with the Cognitive Services account. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param account_name: The name of Cognitive Services account. Required. + :type account_name: str + :param deployment_name: The name of the Arc deployment associated with the Cognitive Services + Account. The name must be unique within the account across deployments, + managedComputeDeployments, and arcDeployments. Required. + :type deployment_name: str + :param resource: The Arc deployment properties. Is either a ArcDeployment type or a IO[bytes] + type. Required. + :type resource: ~azure.mgmt.cognitiveservices.models.ArcDeployment or + ~azure.mgmt.cognitiveservices.types.ArcDeployment or IO[bytes] + :return: An instance of LROPoller that returns ArcDeployment. The ArcDeployment is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.cognitiveservices.models.ArcDeployment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ArcDeployment] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + account_name=account_name, + deployment_name=deployment_name, + resource=resource, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.ArcDeployment, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.ArcDeployment].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.ArcDeployment]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + @api_version_validation( + method_added_on="2026-07-15-preview", + params_added_on={ + "2026-07-15-preview": [ + "api_version", + "subscription_id", + "resource_group_name", + "account_name", + "deployment_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2026-07-15-preview"], + ) + def _update_initial( + self, + resource_group_name: str, + account_name: str, + deployment_name: str, + properties: Union[_models.ArcDeploymentUpdate, _types.ArcDeploymentUpdate, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(properties, (IOBase, bytes)): + _content = properties + else: + _content = json.dumps(properties, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_arc_deployments_update_request( + resource_group_name=resource_group_name, + account_name=account_name, + deployment_name=deployment_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["location"] = self._deserialize("str", response.headers.get("location")) + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_update( + self, + resource_group_name: str, + account_name: str, + deployment_name: str, + properties: _models.ArcDeploymentUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ArcDeployment]: + """Updates the specified Arc deployment associated with the Cognitive Services account. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param account_name: The name of Cognitive Services account. Required. + :type account_name: str + :param deployment_name: The name of the Arc deployment associated with the Cognitive Services + Account. The name must be unique within the account across deployments, + managedComputeDeployments, and arcDeployments. Required. + :type deployment_name: str + :param properties: The Arc deployment update properties. Required. + :type properties: ~azure.mgmt.cognitiveservices.models.ArcDeploymentUpdate + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ArcDeployment. The ArcDeployment is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.cognitiveservices.models.ArcDeployment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + resource_group_name: str, + account_name: str, + deployment_name: str, + properties: _types.ArcDeploymentUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ArcDeployment]: + """Updates the specified Arc deployment associated with the Cognitive Services account. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param account_name: The name of Cognitive Services account. Required. + :type account_name: str + :param deployment_name: The name of the Arc deployment associated with the Cognitive Services + Account. The name must be unique within the account across deployments, + managedComputeDeployments, and arcDeployments. Required. + :type deployment_name: str + :param properties: The Arc deployment update properties. Required. + :type properties: ~azure.mgmt.cognitiveservices.types.ArcDeploymentUpdate + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ArcDeployment. The ArcDeployment is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.cognitiveservices.models.ArcDeployment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + resource_group_name: str, + account_name: str, + deployment_name: str, + properties: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ArcDeployment]: + """Updates the specified Arc deployment associated with the Cognitive Services account. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param account_name: The name of Cognitive Services account. Required. + :type account_name: str + :param deployment_name: The name of the Arc deployment associated with the Cognitive Services + Account. The name must be unique within the account across deployments, + managedComputeDeployments, and arcDeployments. Required. + :type deployment_name: str + :param properties: The Arc deployment update properties. Required. + :type properties: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ArcDeployment. The ArcDeployment is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.cognitiveservices.models.ArcDeployment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + @api_version_validation( + method_added_on="2026-07-15-preview", + params_added_on={ + "2026-07-15-preview": [ + "api_version", + "subscription_id", + "resource_group_name", + "account_name", + "deployment_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2026-07-15-preview"], + ) + def begin_update( + self, + resource_group_name: str, + account_name: str, + deployment_name: str, + properties: Union[_models.ArcDeploymentUpdate, _types.ArcDeploymentUpdate, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.ArcDeployment]: + """Updates the specified Arc deployment associated with the Cognitive Services account. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param account_name: The name of Cognitive Services account. Required. + :type account_name: str + :param deployment_name: The name of the Arc deployment associated with the Cognitive Services + Account. The name must be unique within the account across deployments, + managedComputeDeployments, and arcDeployments. Required. + :type deployment_name: str + :param properties: The Arc deployment update properties. Is either a ArcDeploymentUpdate type + or a IO[bytes] type. Required. + :type properties: ~azure.mgmt.cognitiveservices.models.ArcDeploymentUpdate or + ~azure.mgmt.cognitiveservices.types.ArcDeploymentUpdate or IO[bytes] + :return: An instance of LROPoller that returns ArcDeployment. The ArcDeployment is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.cognitiveservices.models.ArcDeployment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ArcDeployment] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._update_initial( + resource_group_name=resource_group_name, + account_name=account_name, + deployment_name=deployment_name, + properties=properties, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.ArcDeployment, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.ArcDeployment].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.ArcDeployment]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + @api_version_validation( + method_added_on="2026-07-15-preview", + params_added_on={ + "2026-07-15-preview": [ + "api_version", + "subscription_id", + "resource_group_name", + "account_name", + "deployment_name", + ] + }, + api_versions_list=["2026-07-15-preview"], + ) + def _delete_initial( + self, resource_group_name: str, account_name: str, deployment_name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_arc_deployments_delete_request( + resource_group_name=resource_group_name, + account_name=account_name, + deployment_name=deployment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + @api_version_validation( + method_added_on="2026-07-15-preview", + params_added_on={ + "2026-07-15-preview": [ + "api_version", + "subscription_id", + "resource_group_name", + "account_name", + "deployment_name", + ] + }, + api_versions_list=["2026-07-15-preview"], + ) + def begin_delete( + self, resource_group_name: str, account_name: str, deployment_name: str, **kwargs: Any + ) -> LROPoller[None]: + """Deletes the specified Arc deployment associated with the Cognitive Services account. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param account_name: The name of Cognitive Services account. Required. + :type account_name: str + :param deployment_name: The name of the Arc deployment associated with the Cognitive Services + Account. The name must be unique within the account across deployments, + managedComputeDeployments, and arcDeployments. Required. + :type deployment_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + account_name=account_name, + deployment_name=deployment_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + @api_version_validation( + method_added_on="2026-07-15-preview", + params_added_on={ + "2026-07-15-preview": ["api_version", "subscription_id", "resource_group_name", "account_name", "accept"] + }, + api_versions_list=["2026-07-15-preview"], + ) + def list(self, resource_group_name: str, account_name: str, **kwargs: Any) -> ItemPaged["_models.ArcDeployment"]: + """Gets the Arc deployments associated with the Cognitive Services account. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param account_name: The name of Cognitive Services account. Required. + :type account_name: str + :return: An iterator like instance of ArcDeployment + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.cognitiveservices.models.ArcDeployment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ArcDeployment]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_arc_deployments_list_request( + resource_group_name=resource_group_name, + account_name=account_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", + urllib.parse.urljoin(next_link, _parsed_next_link.path), + headers=_headers, + params=_next_request_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ArcDeployment], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class AgentApplicationsOperations: # pylint: disable=docstring-missing-param + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.cognitiveservices.CognitiveServicesManagementClient`'s + :attr:`agent_applications` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: CognitiveServicesManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, account_name: str, project_name: str, name: str, **kwargs: Any + ) -> _models.AgentApplication: + """Gets an Agent Application by name. + + Gets an Agent Application by name. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param account_name: The name of Cognitive Services account. Required. + :type account_name: str + :param project_name: The name of Cognitive Services account's project. Required. + :type project_name: str + :param name: Name for the Agent Application. Required. + :type name: str + :return: AgentApplication. The AgentApplication is compatible with MutableMapping + :rtype: ~azure.mgmt.cognitiveservices.models.AgentApplication + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.AgentApplication] = kwargs.pop("cls", None) + + _request = build_agent_applications_get_request( + resource_group_name=resource_group_name, + account_name=account_name, + project_name=project_name, + name=name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.AgentApplication, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _create_or_update_initial( + self, + resource_group_name: str, + account_name: str, + project_name: str, + name: str, + body: Union[_models.AgentApplication, _types.AgentApplication, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(body, (IOBase, bytes)): + _content = body + else: + _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_agent_applications_create_or_update_request( + resource_group_name=resource_group_name, + account_name=account_name, + project_name=project_name, + name=name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["location"] = self._deserialize("str", response.headers.get("location")) + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["x-ms-async-operation-timeout"] = self._deserialize( + "str", response.headers.get("x-ms-async-operation-timeout") + ) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + account_name: str, + project_name: str, + name: str, + body: _models.AgentApplication, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.AgentApplication]: + """Creates or updates an Agent Application (asynchronous). + + Creates or updates an Agent Application (asynchronous). :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -18364,7 +19454,7 @@ def begin_create_or_update( account_name: str, project_name: str, name: str, - body: JSON, + body: _types.AgentApplication, *, content_type: str = "application/json", **kwargs: Any @@ -18383,7 +19473,7 @@ def begin_create_or_update( :param name: Name for the Agent Application. Required. :type name: str :param body: Agent Application definition object. Required. - :type body: JSON + :type body: ~azure.mgmt.cognitiveservices.types.AgentApplication :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -18436,7 +19526,7 @@ def begin_create_or_update( account_name: str, project_name: str, name: str, - body: Union[_models.AgentApplication, JSON, IO[bytes]], + body: Union[_models.AgentApplication, _types.AgentApplication, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.AgentApplication]: """Creates or updates an Agent Application (asynchronous). @@ -18452,9 +19542,10 @@ def begin_create_or_update( :type project_name: str :param name: Name for the Agent Application. Required. :type name: str - :param body: Agent Application definition object. Is one of the following types: - AgentApplication, JSON, IO[bytes] Required. - :type body: ~azure.mgmt.cognitiveservices.models.AgentApplication or JSON or IO[bytes] + :param body: Agent Application definition object. Is either a AgentApplication type or a + IO[bytes] type. Required. + :type body: ~azure.mgmt.cognitiveservices.models.AgentApplication or + ~azure.mgmt.cognitiveservices.types.AgentApplication or IO[bytes] :return: An instance of LROPoller that returns AgentApplication. The AgentApplication is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.cognitiveservices.models.AgentApplication] @@ -19001,7 +20092,7 @@ def disable( # pylint: disable=inconsistent-return-statements return cls(pipeline_response, None, {}) # type: ignore -class ManagedComputeDeploymentsOperations: +class ManagedComputeDeploymentsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -19033,7 +20124,7 @@ def __init__(self, *args, **kwargs) -> None: "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def get( self, resource_group_name: str, account_name: str, deployment_name: str, **kwargs: Any @@ -19124,14 +20215,14 @@ def get( "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def _create_or_update_initial( self, resource_group_name: str, account_name: str, deployment_name: str, - resource: Union[_models.ManagedComputeDeployment, JSON, IO[bytes]], + resource: Union[_models.ManagedComputeDeployment, _types.ManagedComputeDeployment, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -19244,7 +20335,7 @@ def begin_create_or_update( resource_group_name: str, account_name: str, deployment_name: str, - resource: JSON, + resource: _types.ManagedComputeDeployment, *, content_type: str = "application/json", **kwargs: Any @@ -19260,7 +20351,7 @@ def begin_create_or_update( Cognitive Services Account. Required. :type deployment_name: str :param resource: The managed compute deployment properties. Required. - :type resource: JSON + :type resource: ~azure.mgmt.cognitiveservices.types.ManagedComputeDeployment :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -19318,14 +20409,14 @@ def begin_create_or_update( "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def begin_create_or_update( self, resource_group_name: str, account_name: str, deployment_name: str, - resource: Union[_models.ManagedComputeDeployment, JSON, IO[bytes]], + resource: Union[_models.ManagedComputeDeployment, _types.ManagedComputeDeployment, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.ManagedComputeDeployment]: """Creates or updates a managed compute deployment associated with the Cognitive Services account. @@ -19338,10 +20429,10 @@ def begin_create_or_update( :param deployment_name: The name of the managed compute deployment associated with the Cognitive Services Account. Required. :type deployment_name: str - :param resource: The managed compute deployment properties. Is one of the following types: - ManagedComputeDeployment, JSON, IO[bytes] Required. - :type resource: ~azure.mgmt.cognitiveservices.models.ManagedComputeDeployment or JSON or - IO[bytes] + :param resource: The managed compute deployment properties. Is either a + ManagedComputeDeployment type or a IO[bytes] type. Required. + :type resource: ~azure.mgmt.cognitiveservices.models.ManagedComputeDeployment or + ~azure.mgmt.cognitiveservices.types.ManagedComputeDeployment or IO[bytes] :return: An instance of LROPoller that returns ManagedComputeDeployment. The ManagedComputeDeployment is compatible with MutableMapping :rtype: @@ -19414,14 +20505,14 @@ def get_long_running_output(pipeline_response): "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def _update_initial( self, resource_group_name: str, account_name: str, deployment_name: str, - properties: Union[_models.PatchResourceSku, JSON, IO[bytes]], + properties: Union[_models.PatchResourceSku, _types.PatchResourceSku, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -19536,7 +20627,7 @@ def begin_update( resource_group_name: str, account_name: str, deployment_name: str, - properties: JSON, + properties: _types.PatchResourceSku, *, content_type: str = "application/json", **kwargs: Any @@ -19553,7 +20644,7 @@ def begin_update( Cognitive Services Account. Required. :type deployment_name: str :param properties: The managed compute deployment patch properties. Required. - :type properties: JSON + :type properties: ~azure.mgmt.cognitiveservices.types.PatchResourceSku :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -19612,14 +20703,14 @@ def begin_update( "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def begin_update( self, resource_group_name: str, account_name: str, deployment_name: str, - properties: Union[_models.PatchResourceSku, JSON, IO[bytes]], + properties: Union[_models.PatchResourceSku, _types.PatchResourceSku, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.ManagedComputeDeployment]: """Updates the specified managed compute deployment associated with the Cognitive Services @@ -19633,9 +20724,10 @@ def begin_update( :param deployment_name: The name of the managed compute deployment associated with the Cognitive Services Account. Required. :type deployment_name: str - :param properties: The managed compute deployment patch properties. Is one of the following - types: PatchResourceSku, JSON, IO[bytes] Required. - :type properties: ~azure.mgmt.cognitiveservices.models.PatchResourceSku or JSON or IO[bytes] + :param properties: The managed compute deployment patch properties. Is either a + PatchResourceSku type or a IO[bytes] type. Required. + :type properties: ~azure.mgmt.cognitiveservices.models.PatchResourceSku or + ~azure.mgmt.cognitiveservices.types.PatchResourceSku or IO[bytes] :return: An instance of LROPoller that returns ManagedComputeDeployment. The ManagedComputeDeployment is compatible with MutableMapping :rtype: @@ -19706,7 +20798,7 @@ def get_long_running_output(pipeline_response): "deployment_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def _delete_initial( self, resource_group_name: str, account_name: str, deployment_name: str, **kwargs: Any @@ -19785,7 +20877,7 @@ def _delete_initial( "deployment_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def begin_delete( self, resource_group_name: str, account_name: str, deployment_name: str, **kwargs: Any @@ -19856,7 +20948,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- params_added_on={ "2026-03-15-preview": ["api_version", "subscription_id", "resource_group_name", "account_name", "accept"] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def list( self, resource_group_name: str, account_name: str, **kwargs: Any @@ -19961,7 +21053,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ComputeOperationsOperations: +class ComputeOperationsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -19986,7 +21078,7 @@ def __init__(self, *args, **kwargs) -> None: params_added_on={ "2026-01-15-preview": ["api_version", "subscription_id", "location", "operation_id", "accept"] }, - api_versions_list=["2026-01-15-preview", "2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-01-15-preview", "2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def get(self, location: str, operation_id: str, **kwargs: Any) -> _models.ComputeOperationStatus: """Gets the status of a compute operation. @@ -20057,7 +21149,7 @@ def get(self, location: str, operation_id: str, **kwargs: Any) -> _models.Comput return deserialized # type: ignore -class ManagedComputeUsagesOperationGroupOperations: # pylint: disable=name-too-long +class ManagedComputeUsagesOperationGroupOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -20080,7 +21172,7 @@ def __init__(self, *args, **kwargs) -> None: @api_version_validation( method_added_on="2026-03-15-preview", params_added_on={"2026-03-15-preview": ["api_version", "subscription_id", "location", "accept"]}, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def list(self, location: str, **kwargs: Any) -> ItemPaged["_models.ManagedComputeUsage"]: """List managed compute quota usages for a subscription and location. @@ -20175,305 +21267,27 @@ def get_next(next_link=None): return pipeline_response - return ItemPaged(get_next, extract_data) - - -class ComputesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.cognitiveservices.CognitiveServicesManagementClient`'s - :attr:`computes` attribute. - """ - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: CognitiveServicesManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - @api_version_validation( - method_added_on="2026-03-15-preview", - params_added_on={ - "2026-03-15-preview": [ - "api_version", - "subscription_id", - "resource_group_name", - "account_name", - "compute_name", - "accept", - ] - }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], - ) - def get(self, resource_group_name: str, account_name: str, compute_name: str, **kwargs: Any) -> _models.Compute: - """Gets the specified compute associated with the Cognitive Services account. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param account_name: The name of Cognitive Services account. Required. - :type account_name: str - :param compute_name: The name of the compute associated with the Cognitive Services Account. - Required. - :type compute_name: str - :return: Compute. The Compute is compatible with MutableMapping - :rtype: ~azure.mgmt.cognitiveservices.models.Compute - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[_models.Compute] = kwargs.pop("cls", None) - - _request = build_computes_get_request( - resource_group_name=resource_group_name, - account_name=account_name, - compute_name=compute_name, - subscription_id=self._config.subscription_id, - api_version=self._config.api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - if _stream: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.ErrorResponse, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.Compute, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @api_version_validation( - method_added_on="2026-03-15-preview", - params_added_on={ - "2026-03-15-preview": [ - "api_version", - "subscription_id", - "resource_group_name", - "account_name", - "compute_name", - "content_type", - "accept", - ] - }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], - ) - def _create_or_update_initial( - self, - resource_group_name: str, - account_name: str, - compute_name: str, - resource: Union[_models.Compute, JSON, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _content = json.dumps(resource, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_computes_create_or_update_request( - resource_group_name=resource_group_name, - account_name=account_name, - compute_name=compute_name, - subscription_id=self._config.subscription_id, - content_type=content_type, - api_version=self._config.api_version, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.ErrorResponse, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - account_name: str, - compute_name: str, - resource: _models.Compute, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.Compute]: - """Creates or updates a compute associated with the Cognitive Services account. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param account_name: The name of Cognitive Services account. Required. - :type account_name: str - :param compute_name: The name of the compute associated with the Cognitive Services Account. - Required. - :type compute_name: str - :param resource: The compute properties. Required. - :type resource: ~azure.mgmt.cognitiveservices.models.Compute - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns Compute. The Compute is compatible with - MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.cognitiveservices.models.Compute] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - account_name: str, - compute_name: str, - resource: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.Compute]: - """Creates or updates a compute associated with the Cognitive Services account. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param account_name: The name of Cognitive Services account. Required. - :type account_name: str - :param compute_name: The name of the compute associated with the Cognitive Services Account. - Required. - :type compute_name: str - :param resource: The compute properties. Required. - :type resource: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns Compute. The Compute is compatible with - MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.cognitiveservices.models.Compute] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - account_name: str, - compute_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.Compute]: - """Creates or updates a compute associated with the Cognitive Services account. + return ItemPaged(get_next, extract_data) - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param account_name: The name of Cognitive Services account. Required. - :type account_name: str - :param compute_name: The name of the compute associated with the Cognitive Services Account. - Required. - :type compute_name: str - :param resource: The compute properties. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns Compute. The Compute is compatible with - MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.cognitiveservices.models.Compute] - :raises ~azure.core.exceptions.HttpResponseError: - """ + +class ComputesOperations: # pylint: disable=docstring-missing-param + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.cognitiveservices.CognitiveServicesManagementClient`'s + :attr:`computes` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: CognitiveServicesManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace @api_version_validation( @@ -20485,21 +21299,13 @@ def begin_create_or_update( "resource_group_name", "account_name", "compute_name", - "content_type", "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) - def begin_create_or_update( - self, - resource_group_name: str, - account_name: str, - compute_name: str, - resource: Union[_models.Compute, JSON, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.Compute]: - """Creates or updates a compute associated with the Cognitive Services account. + def get(self, resource_group_name: str, account_name: str, compute_name: str, **kwargs: Any) -> _models.Compute: + """Gets the specified compute associated with the Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -20509,66 +21315,67 @@ def begin_create_or_update( :param compute_name: The name of the compute associated with the Cognitive Services Account. Required. :type compute_name: str - :param resource: The compute properties. Is one of the following types: Compute, JSON, - IO[bytes] Required. - :type resource: ~azure.mgmt.cognitiveservices.models.Compute or JSON or IO[bytes] - :return: An instance of LROPoller that returns Compute. The Compute is compatible with - MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.cognitiveservices.models.Compute] + :return: Compute. The Compute is compatible with MutableMapping + :rtype: ~azure.mgmt.cognitiveservices.models.Compute :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Compute] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - account_name=account_name, - compute_name=compute_name, - resource=resource, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.Compute, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + _request = build_computes_get_request( + resource_group_name=resource_group_name, + account_name=account_name, + compute_name=compute_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - polling_method = polling - if cont_token: - return LROPoller[_models.Compute].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.Compute]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + deserialized = _deserialize(_models.Compute, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore @api_version_validation( method_added_on="2026-03-15-preview", @@ -20580,17 +21387,16 @@ def get_long_running_output(pipeline_response): "account_name", "compute_name", "content_type", - "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) - def _update_initial( + def _create_or_update_initial( self, resource_group_name: str, account_name: str, compute_name: str, - properties: Union[_models.Compute, JSON, IO[bytes]], + resource: Union[_models.Compute, _types.Compute, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -20609,12 +21415,12 @@ def _update_initial( content_type = content_type or "application/json" _content = None - if isinstance(properties, (IOBase, bytes)): - _content = properties + if isinstance(resource, (IOBase, bytes)): + _content = resource else: - _content = json.dumps(properties, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(resource, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_computes_update_request( + _request = build_computes_create_or_update_request( resource_group_name=resource_group_name, account_name=account_name, compute_name=compute_name, @@ -20638,7 +21444,7 @@ def _update_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [202]: try: response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -20651,9 +21457,10 @@ def _update_initial( raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - if response.status_code == 202: - response_headers["location"] = self._deserialize("str", response.headers.get("location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -20663,17 +21470,17 @@ def _update_initial( return deserialized # type: ignore @overload - def begin_update( + def begin_create_or_update( self, resource_group_name: str, account_name: str, compute_name: str, - properties: _models.Compute, + resource: _models.Compute, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.Compute]: - """Updates a compute associated with the Cognitive Services account. + ) -> LROPoller[None]: + """Creates or updates a compute associated with the Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -20683,29 +21490,28 @@ def begin_update( :param compute_name: The name of the compute associated with the Cognitive Services Account. Required. :type compute_name: str - :param properties: The compute properties to update. Required. - :type properties: ~azure.mgmt.cognitiveservices.models.Compute + :param resource: The compute properties. Required. + :type resource: ~azure.mgmt.cognitiveservices.models.Compute :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns Compute. The Compute is compatible with - MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.cognitiveservices.models.Compute] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - def begin_update( + def begin_create_or_update( self, resource_group_name: str, account_name: str, compute_name: str, - properties: JSON, + resource: _types.Compute, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.Compute]: - """Updates a compute associated with the Cognitive Services account. + ) -> LROPoller[None]: + """Creates or updates a compute associated with the Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -20715,29 +21521,28 @@ def begin_update( :param compute_name: The name of the compute associated with the Cognitive Services Account. Required. :type compute_name: str - :param properties: The compute properties to update. Required. - :type properties: JSON + :param resource: The compute properties. Required. + :type resource: ~azure.mgmt.cognitiveservices.types.Compute :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns Compute. The Compute is compatible with - MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.cognitiveservices.models.Compute] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - def begin_update( + def begin_create_or_update( self, resource_group_name: str, account_name: str, compute_name: str, - properties: IO[bytes], + resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.Compute]: - """Updates a compute associated with the Cognitive Services account. + ) -> LROPoller[None]: + """Creates or updates a compute associated with the Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -20747,14 +21552,13 @@ def begin_update( :param compute_name: The name of the compute associated with the Cognitive Services Account. Required. :type compute_name: str - :param properties: The compute properties to update. Required. - :type properties: IO[bytes] + :param resource: The compute properties. Required. + :type resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns Compute. The Compute is compatible with - MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.cognitiveservices.models.Compute] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -20769,20 +21573,19 @@ def begin_update( "account_name", "compute_name", "content_type", - "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) - def begin_update( + def begin_create_or_update( self, resource_group_name: str, account_name: str, compute_name: str, - properties: Union[_models.Compute, JSON, IO[bytes]], + resource: Union[_models.Compute, _types.Compute, IO[bytes]], **kwargs: Any - ) -> LROPoller[_models.Compute]: - """Updates a compute associated with the Cognitive Services account. + ) -> LROPoller[None]: + """Creates or updates a compute associated with the Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -20792,28 +21595,28 @@ def begin_update( :param compute_name: The name of the compute associated with the Cognitive Services Account. Required. :type compute_name: str - :param properties: The compute properties to update. Is one of the following types: Compute, - JSON, IO[bytes] Required. - :type properties: ~azure.mgmt.cognitiveservices.models.Compute or JSON or IO[bytes] - :return: An instance of LROPoller that returns Compute. The Compute is compatible with - MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.cognitiveservices.models.Compute] + :param resource: The compute properties. Is either a Compute type or a IO[bytes] type. + Required. + :type resource: ~azure.mgmt.cognitiveservices.models.Compute or + ~azure.mgmt.cognitiveservices.types.Compute or IO[bytes] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = kwargs.pop("params", {}) or {} content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Compute] = kwargs.pop("cls", None) + cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = self._update_initial( + raw_result = self._create_or_update_initial( resource_group_name=resource_group_name, account_name=account_name, compute_name=compute_name, - properties=properties, + resource=resource, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, @@ -20823,12 +21626,9 @@ def begin_update( raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.Compute, response.json()) + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + return cls(pipeline_response, None, {}) # type: ignore path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -20843,15 +21643,13 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return LROPoller[_models.Compute].from_continuation_token( + return LROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return LROPoller[_models.Compute]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @api_version_validation( method_added_on="2026-03-15-preview", @@ -20864,7 +21662,7 @@ def get_long_running_output(pipeline_response): "compute_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def _delete_initial( self, resource_group_name: str, account_name: str, compute_name: str, **kwargs: Any @@ -20940,7 +21738,7 @@ def _delete_initial( "compute_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def begin_delete( self, resource_group_name: str, account_name: str, compute_name: str, **kwargs: Any @@ -21010,7 +21808,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- params_added_on={ "2026-03-15-preview": ["api_version", "subscription_id", "resource_group_name", "account_name", "accept"] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def list(self, resource_group_name: str, account_name: str, **kwargs: Any) -> ItemPaged["_models.Compute"]: """Gets the computes associated with the Cognitive Services account. @@ -21122,7 +21920,7 @@ def get_next(next_link=None): "compute_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def _start_initial( self, resource_group_name: str, account_name: str, compute_name: str, **kwargs: Any @@ -21198,7 +21996,7 @@ def _start_initial( "compute_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def begin_start( self, resource_group_name: str, account_name: str, compute_name: str, **kwargs: Any @@ -21274,7 +22072,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- "compute_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def _stop_initial( self, resource_group_name: str, account_name: str, compute_name: str, **kwargs: Any @@ -21350,7 +22148,7 @@ def _stop_initial( "compute_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def begin_stop( self, resource_group_name: str, account_name: str, compute_name: str, **kwargs: Any @@ -21426,7 +22224,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- "compute_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def _restart_initial( self, resource_group_name: str, account_name: str, compute_name: str, **kwargs: Any @@ -21502,7 +22300,7 @@ def _restart_initial( "compute_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def begin_restart( self, resource_group_name: str, account_name: str, compute_name: str, **kwargs: Any @@ -21568,7 +22366,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class WorkbenchesOperations: +class WorkbenchesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -21601,7 +22399,7 @@ def __init__(self, *args, **kwargs) -> None: "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def get( self, resource_group_name: str, account_name: str, project_name: str, workbench_name: str, **kwargs: Any @@ -21694,7 +22492,7 @@ def get( "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def _create_or_update_initial( self, @@ -21702,7 +22500,7 @@ def _create_or_update_initial( account_name: str, project_name: str, workbench_name: str, - resource: Union[_models.Workbench, JSON, IO[bytes]], + resource: Union[_models.Workbench, _types.Workbench, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -21818,7 +22616,7 @@ def begin_create_or_update( account_name: str, project_name: str, workbench_name: str, - resource: JSON, + resource: _types.Workbench, *, content_type: str = "application/json", **kwargs: Any @@ -21835,7 +22633,7 @@ def begin_create_or_update( :param workbench_name: The name of the workbench associated with the project. Required. :type workbench_name: str :param resource: The workbench properties. Required. - :type resource: JSON + :type resource: ~azure.mgmt.cognitiveservices.types.Workbench :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -21894,7 +22692,7 @@ def begin_create_or_update( "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def begin_create_or_update( self, @@ -21902,7 +22700,7 @@ def begin_create_or_update( account_name: str, project_name: str, workbench_name: str, - resource: Union[_models.Workbench, JSON, IO[bytes]], + resource: Union[_models.Workbench, _types.Workbench, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.Workbench]: """Creates or updates a workbench associated with the project. @@ -21916,9 +22714,10 @@ def begin_create_or_update( :type project_name: str :param workbench_name: The name of the workbench associated with the project. Required. :type workbench_name: str - :param resource: The workbench properties. Is one of the following types: Workbench, JSON, - IO[bytes] Required. - :type resource: ~azure.mgmt.cognitiveservices.models.Workbench or JSON or IO[bytes] + :param resource: The workbench properties. Is either a Workbench type or a IO[bytes] type. + Required. + :type resource: ~azure.mgmt.cognitiveservices.models.Workbench or + ~azure.mgmt.cognitiveservices.types.Workbench or IO[bytes] :return: An instance of LROPoller that returns Workbench. The Workbench is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.cognitiveservices.models.Workbench] @@ -21992,7 +22791,7 @@ def get_long_running_output(pipeline_response): "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def _update_initial( self, @@ -22000,7 +22799,7 @@ def _update_initial( account_name: str, project_name: str, workbench_name: str, - properties: Union[_models.Workbench, JSON, IO[bytes]], + properties: Union[_models.Workbench, _types.Workbench, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -22114,7 +22913,7 @@ def begin_update( account_name: str, project_name: str, workbench_name: str, - properties: JSON, + properties: _types.Workbench, *, content_type: str = "application/json", **kwargs: Any @@ -22131,7 +22930,7 @@ def begin_update( :param workbench_name: The name of the workbench associated with the project. Required. :type workbench_name: str :param properties: The workbench properties to update. Required. - :type properties: JSON + :type properties: ~azure.mgmt.cognitiveservices.types.Workbench :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -22190,7 +22989,7 @@ def begin_update( "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def begin_update( self, @@ -22198,7 +22997,7 @@ def begin_update( account_name: str, project_name: str, workbench_name: str, - properties: Union[_models.Workbench, JSON, IO[bytes]], + properties: Union[_models.Workbench, _types.Workbench, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.Workbench]: """Updates a workbench associated with the project. @@ -22212,9 +23011,10 @@ def begin_update( :type project_name: str :param workbench_name: The name of the workbench associated with the project. Required. :type workbench_name: str - :param properties: The workbench properties to update. Is one of the following types: - Workbench, JSON, IO[bytes] Required. - :type properties: ~azure.mgmt.cognitiveservices.models.Workbench or JSON or IO[bytes] + :param properties: The workbench properties to update. Is either a Workbench type or a + IO[bytes] type. Required. + :type properties: ~azure.mgmt.cognitiveservices.models.Workbench or + ~azure.mgmt.cognitiveservices.types.Workbench or IO[bytes] :return: An instance of LROPoller that returns Workbench. The Workbench is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.cognitiveservices.models.Workbench] @@ -22286,7 +23086,7 @@ def get_long_running_output(pipeline_response): "workbench_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def _delete_initial( self, resource_group_name: str, account_name: str, project_name: str, workbench_name: str, **kwargs: Any @@ -22364,7 +23164,7 @@ def _delete_initial( "workbench_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def begin_delete( self, resource_group_name: str, account_name: str, project_name: str, workbench_name: str, **kwargs: Any @@ -22443,7 +23243,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def list( self, resource_group_name: str, account_name: str, project_name: str, **kwargs: Any @@ -22561,7 +23361,7 @@ def get_next(next_link=None): "workbench_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def _start_initial( self, resource_group_name: str, account_name: str, project_name: str, workbench_name: str, **kwargs: Any @@ -22639,7 +23439,7 @@ def _start_initial( "workbench_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def begin_start( self, resource_group_name: str, account_name: str, project_name: str, workbench_name: str, **kwargs: Any @@ -22718,7 +23518,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- "workbench_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def _stop_initial( self, resource_group_name: str, account_name: str, project_name: str, workbench_name: str, **kwargs: Any @@ -22796,7 +23596,7 @@ def _stop_initial( "workbench_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def begin_stop( self, resource_group_name: str, account_name: str, project_name: str, workbench_name: str, **kwargs: Any @@ -22875,7 +23675,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- "workbench_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def _restart_initial( self, resource_group_name: str, account_name: str, project_name: str, workbench_name: str, **kwargs: Any @@ -22953,7 +23753,7 @@ def _restart_initial( "workbench_name", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def begin_restart( self, resource_group_name: str, account_name: str, project_name: str, workbench_name: str, **kwargs: Any @@ -23021,7 +23821,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class ManagedComputeCapacitiesOperations: +class ManagedComputeCapacitiesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -23053,7 +23853,7 @@ def __init__(self, *args, **kwargs) -> None: "accept", ] }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], + api_versions_list=["2026-03-15-preview", "2026-05-15-preview", "2026-07-15-preview"], ) def list( self, *, offer: str, accelerator_type: Optional[str] = None, deployment_id: Optional[str] = None, **kwargs: Any @@ -23164,7 +23964,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class PrivateLinkResourcesOperations: +class PrivateLinkResourcesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -23255,7 +24055,7 @@ def list(self, resource_group_name: str, account_name: str, **kwargs: Any) -> _m return deserialized # type: ignore -class TestRaiExternalSafetyProviderOperations: +class TestRaiExternalSafetyProviderOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -23312,7 +24112,7 @@ def create_or_update( resource_group_name: str, account_name: str, safety_provider_name: str, - safety_provider: JSON, + safety_provider: _types.RaiExternalSafetyProviderSchema, *, content_type: str = "application/json", **kwargs: Any @@ -23328,7 +24128,7 @@ def create_or_update( Cognitive Services Account. Required. :type safety_provider_name: str :param safety_provider: Properties describing the rai external safety provider. Required. - :type safety_provider: JSON + :type safety_provider: ~azure.mgmt.cognitiveservices.types.RaiExternalSafetyProviderSchema :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -23376,7 +24176,9 @@ def create_or_update( resource_group_name: str, account_name: str, safety_provider_name: str, - safety_provider: Union[_models.RaiExternalSafetyProviderSchema, JSON, IO[bytes]], + safety_provider: Union[ + _models.RaiExternalSafetyProviderSchema, _types.RaiExternalSafetyProviderSchema, IO[bytes] + ], **kwargs: Any ) -> _models.RaiExternalSafetyProviderSchema: """Test the rai safety provider associated with the subscription. @@ -23389,10 +24191,10 @@ def create_or_update( :param safety_provider_name: The name of the Rai External Safety Provider associated with the Cognitive Services Account. Required. :type safety_provider_name: str - :param safety_provider: Properties describing the rai external safety provider. Is one of the - following types: RaiExternalSafetyProviderSchema, JSON, IO[bytes] Required. + :param safety_provider: Properties describing the rai external safety provider. Is either a + RaiExternalSafetyProviderSchema type or a IO[bytes] type. Required. :type safety_provider: ~azure.mgmt.cognitiveservices.models.RaiExternalSafetyProviderSchema or - JSON or IO[bytes] + ~azure.mgmt.cognitiveservices.types.RaiExternalSafetyProviderSchema or IO[bytes] :return: RaiExternalSafetyProviderSchema. The RaiExternalSafetyProviderSchema is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.RaiExternalSafetyProviderSchema @@ -23467,7 +24269,7 @@ def create_or_update( return deserialized # type: ignore -class RaiExternalSafetyProviderOperations: +class RaiExternalSafetyProviderOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -23581,7 +24383,12 @@ def create_or_update( @overload def create_or_update( - self, safety_provider_name: str, safety_provider: JSON, *, content_type: str = "application/json", **kwargs: Any + self, + safety_provider_name: str, + safety_provider: _types.RaiExternalSafetyProviderSchema, + *, + content_type: str = "application/json", + **kwargs: Any ) -> _models.RaiExternalSafetyProviderSchema: """Create the rai safety provider associated with the subscription. @@ -23589,7 +24396,7 @@ def create_or_update( Cognitive Services Account. Required. :type safety_provider_name: str :param safety_provider: Properties describing the rai external safety provider. Required. - :type safety_provider: JSON + :type safety_provider: ~azure.mgmt.cognitiveservices.types.RaiExternalSafetyProviderSchema :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -23628,7 +24435,9 @@ def create_or_update( def create_or_update( self, safety_provider_name: str, - safety_provider: Union[_models.RaiExternalSafetyProviderSchema, JSON, IO[bytes]], + safety_provider: Union[ + _models.RaiExternalSafetyProviderSchema, _types.RaiExternalSafetyProviderSchema, IO[bytes] + ], **kwargs: Any ) -> _models.RaiExternalSafetyProviderSchema: """Create the rai safety provider associated with the subscription. @@ -23636,10 +24445,10 @@ def create_or_update( :param safety_provider_name: The name of the Rai External Safety Provider associated with the Cognitive Services Account. Required. :type safety_provider_name: str - :param safety_provider: Properties describing the rai external safety provider. Is one of the - following types: RaiExternalSafetyProviderSchema, JSON, IO[bytes] Required. + :param safety_provider: Properties describing the rai external safety provider. Is either a + RaiExternalSafetyProviderSchema type or a IO[bytes] type. Required. :type safety_provider: ~azure.mgmt.cognitiveservices.models.RaiExternalSafetyProviderSchema or - JSON or IO[bytes] + ~azure.mgmt.cognitiveservices.types.RaiExternalSafetyProviderSchema or IO[bytes] :return: RaiExternalSafetyProviderSchema. The RaiExternalSafetyProviderSchema is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.RaiExternalSafetyProviderSchema @@ -23824,7 +24633,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class RaiExternalSafetyProvidersOperations: +class RaiExternalSafetyProvidersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -23938,7 +24747,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class AccountConnectionsOperations: +class AccountConnectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -24075,7 +24884,7 @@ def create( resource_group_name: str, account_name: str, connection_name: str, - connection: Optional[JSON] = None, + connection: Optional[_types.ConnectionPropertiesV2BasicResource] = None, *, content_type: str = "application/json", **kwargs: Any @@ -24093,7 +24902,7 @@ def create( :type connection_name: str :param connection: The object for creating or updating a new account connection. Default value is None. - :type connection: JSON + :type connection: ~azure.mgmt.cognitiveservices.types.ConnectionPropertiesV2BasicResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -24143,7 +24952,9 @@ def create( resource_group_name: str, account_name: str, connection_name: str, - connection: Optional[Union[_models.ConnectionPropertiesV2BasicResource, JSON, IO[bytes]]] = None, + connection: Optional[ + Union[_models.ConnectionPropertiesV2BasicResource, _types.ConnectionPropertiesV2BasicResource, IO[bytes]] + ] = None, **kwargs: Any ) -> _models.ConnectionPropertiesV2BasicResource: """Create or update Cognitive Services account connection under the specified account. @@ -24157,10 +24968,10 @@ def create( :type account_name: str :param connection_name: Friendly name of the connection. Required. :type connection_name: str - :param connection: The object for creating or updating a new account connection. Is one of the - following types: ConnectionPropertiesV2BasicResource, JSON, IO[bytes] Default value is None. + :param connection: The object for creating or updating a new account connection. Is either a + ConnectionPropertiesV2BasicResource type or a IO[bytes] type. Default value is None. :type connection: ~azure.mgmt.cognitiveservices.models.ConnectionPropertiesV2BasicResource or - JSON or IO[bytes] + ~azure.mgmt.cognitiveservices.types.ConnectionPropertiesV2BasicResource or IO[bytes] :return: ConnectionPropertiesV2BasicResource. The ConnectionPropertiesV2BasicResource is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.ConnectionPropertiesV2BasicResource @@ -24277,7 +25088,7 @@ def update( resource_group_name: str, account_name: str, connection_name: str, - connection: Optional[JSON] = None, + connection: Optional[_types.ConnectionUpdateContent] = None, *, content_type: str = "application/json", **kwargs: Any @@ -24294,7 +25105,7 @@ def update( :param connection_name: Friendly name of the connection. Required. :type connection_name: str :param connection: Parameters for account connection update. Default value is None. - :type connection: JSON + :type connection: ~azure.mgmt.cognitiveservices.types.ConnectionUpdateContent :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -24343,7 +25154,7 @@ def update( resource_group_name: str, account_name: str, connection_name: str, - connection: Optional[Union[_models.ConnectionUpdateContent, JSON, IO[bytes]]] = None, + connection: Optional[Union[_models.ConnectionUpdateContent, _types.ConnectionUpdateContent, IO[bytes]]] = None, **kwargs: Any ) -> _models.ConnectionPropertiesV2BasicResource: """Update Cognitive Services account connection under the specified account. @@ -24357,10 +25168,10 @@ def update( :type account_name: str :param connection_name: Friendly name of the connection. Required. :type connection_name: str - :param connection: Parameters for account connection update. Is one of the following types: - ConnectionUpdateContent, JSON, IO[bytes] Default value is None. - :type connection: ~azure.mgmt.cognitiveservices.models.ConnectionUpdateContent or JSON or - IO[bytes] + :param connection: Parameters for account connection update. Is either a + ConnectionUpdateContent type or a IO[bytes] type. Default value is None. + :type connection: ~azure.mgmt.cognitiveservices.models.ConnectionUpdateContent or + ~azure.mgmt.cognitiveservices.types.ConnectionUpdateContent or IO[bytes] :return: ConnectionPropertiesV2BasicResource. The ConnectionPropertiesV2BasicResource is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.ConnectionPropertiesV2BasicResource @@ -24625,7 +25436,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class AccountCapabilityHostsOperations: +class AccountCapabilityHostsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -24727,7 +25538,7 @@ def _create_or_update_initial( resource_group_name: str, account_name: str, capability_host_name: str, - capability_host: Union[_models.CapabilityHost, JSON, IO[bytes]], + capability_host: Union[_models.CapabilityHost, _types.CapabilityHost, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -24843,7 +25654,7 @@ def begin_create_or_update( resource_group_name: str, account_name: str, capability_host_name: str, - capability_host: JSON, + capability_host: _types.CapabilityHost, *, content_type: str = "application/json", **kwargs: Any @@ -24861,7 +25672,7 @@ def begin_create_or_update( Services Resource. Required. :type capability_host_name: str :param capability_host: CapabilityHost definition. Required. - :type capability_host: JSON + :type capability_host: ~azure.mgmt.cognitiveservices.types.CapabilityHost :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -24911,7 +25722,7 @@ def begin_create_or_update( resource_group_name: str, account_name: str, capability_host_name: str, - capability_host: Union[_models.CapabilityHost, JSON, IO[bytes]], + capability_host: Union[_models.CapabilityHost, _types.CapabilityHost, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.CapabilityHost]: """Create or update account capabilityHost. @@ -24926,9 +25737,10 @@ def begin_create_or_update( :param capability_host_name: The name of the capability host associated with the Cognitive Services Resource. Required. :type capability_host_name: str - :param capability_host: CapabilityHost definition. Is one of the following types: - CapabilityHost, JSON, IO[bytes] Required. - :type capability_host: ~azure.mgmt.cognitiveservices.models.CapabilityHost or JSON or IO[bytes] + :param capability_host: CapabilityHost definition. Is either a CapabilityHost type or a + IO[bytes] type. Required. + :type capability_host: ~azure.mgmt.cognitiveservices.models.CapabilityHost or + ~azure.mgmt.cognitiveservices.types.CapabilityHost or IO[bytes] :return: An instance of LROPoller that returns CapabilityHost. The CapabilityHost is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.cognitiveservices.models.CapabilityHost] @@ -25219,7 +26031,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class OutboundRuleOperations: +class OutboundRuleOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -25329,7 +26141,7 @@ def _create_or_update_initial( account_name: str, managed_network_name: str, rule_name: str, - body: Union[_models.OutboundRuleBasicResource, JSON, IO[bytes]], + body: Union[_models.OutboundRuleBasicResource, _types.OutboundRuleBasicResource, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -25450,7 +26262,7 @@ def begin_create_or_update( account_name: str, managed_network_name: str, rule_name: str, - body: JSON, + body: _types.OutboundRuleBasicResource, *, content_type: str = "application/json", **kwargs: Any @@ -25473,7 +26285,7 @@ def begin_create_or_update( Required. :type rule_name: str :param body: Required. - :type body: JSON + :type body: ~azure.mgmt.cognitiveservices.types.OutboundRuleBasicResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -25532,7 +26344,7 @@ def begin_create_or_update( account_name: str, managed_network_name: str, rule_name: str, - body: Union[_models.OutboundRuleBasicResource, JSON, IO[bytes]], + body: Union[_models.OutboundRuleBasicResource, _types.OutboundRuleBasicResource, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.OutboundRuleBasicResource]: """The PUT API for creating or updating a single outbound rule of the managed network associated @@ -25552,9 +26364,9 @@ def begin_create_or_update( :param rule_name: Name of the cognitive services account managed network outbound rule. Required. :type rule_name: str - :param body: Is one of the following types: OutboundRuleBasicResource, JSON, IO[bytes] - Required. - :type body: ~azure.mgmt.cognitiveservices.models.OutboundRuleBasicResource or JSON or IO[bytes] + :param body: Is either a OutboundRuleBasicResource type or a IO[bytes] type. Required. + :type body: ~azure.mgmt.cognitiveservices.models.OutboundRuleBasicResource or + ~azure.mgmt.cognitiveservices.types.OutboundRuleBasicResource or IO[bytes] :return: An instance of LROPoller that returns OutboundRuleBasicResource. The OutboundRuleBasicResource is compatible with MutableMapping :rtype: @@ -25861,7 +26673,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ManagedNetworkSettingsOperations: +class ManagedNetworkSettingsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -25964,7 +26776,11 @@ def _put_initial( resource_group_name: str, account_name: str, managed_network_name: str, - body: Union[_models.ManagedNetworkSettingsPropertiesBasicResource, JSON, IO[bytes]], + body: Union[ + _models.ManagedNetworkSettingsPropertiesBasicResource, + _types.ManagedNetworkSettingsPropertiesBasicResource, + IO[bytes], + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -26077,7 +26893,7 @@ def begin_put( resource_group_name: str, account_name: str, managed_network_name: str, - body: JSON, + body: _types.ManagedNetworkSettingsPropertiesBasicResource, *, content_type: str = "application/json", **kwargs: Any @@ -26095,7 +26911,7 @@ def begin_put( account. Only 'default' is supported. Required. :type managed_network_name: str :param body: The Managed Network Settings object of the account. Required. - :type body: JSON + :type body: ~azure.mgmt.cognitiveservices.types.ManagedNetworkSettingsPropertiesBasicResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -26147,7 +26963,11 @@ def begin_put( resource_group_name: str, account_name: str, managed_network_name: str, - body: Union[_models.ManagedNetworkSettingsPropertiesBasicResource, JSON, IO[bytes]], + body: Union[ + _models.ManagedNetworkSettingsPropertiesBasicResource, + _types.ManagedNetworkSettingsPropertiesBasicResource, + IO[bytes], + ], **kwargs: Any ) -> LROPoller[_models.ManagedNetworkSettingsPropertiesBasicResource]: """PUT API for managed network settings of a cognitive services account. @@ -26162,10 +26982,11 @@ def begin_put( :param managed_network_name: Name of the managedNetwork associated with the cognitive services account. Only 'default' is supported. Required. :type managed_network_name: str - :param body: The Managed Network Settings object of the account. Is one of the following types: - ManagedNetworkSettingsPropertiesBasicResource, JSON, IO[bytes] Required. + :param body: The Managed Network Settings object of the account. Is either a + ManagedNetworkSettingsPropertiesBasicResource type or a IO[bytes] type. Required. :type body: ~azure.mgmt.cognitiveservices.models.ManagedNetworkSettingsPropertiesBasicResource - or JSON or IO[bytes] + or ~azure.mgmt.cognitiveservices.types.ManagedNetworkSettingsPropertiesBasicResource or + IO[bytes] :return: An instance of LROPoller that returns ManagedNetworkSettingsPropertiesBasicResource. The ManagedNetworkSettingsPropertiesBasicResource is compatible with MutableMapping :rtype: @@ -26230,7 +27051,13 @@ def _patch_initial( resource_group_name: str, account_name: str, managed_network_name: str, - body: Optional[Union[_models.ManagedNetworkSettingsPropertiesBasicResource, JSON, IO[bytes]]] = None, + body: Optional[ + Union[ + _models.ManagedNetworkSettingsPropertiesBasicResource, + _types.ManagedNetworkSettingsPropertiesBasicResource, + IO[bytes], + ] + ] = None, **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -26347,7 +27174,7 @@ def begin_patch( resource_group_name: str, account_name: str, managed_network_name: str, - body: Optional[JSON] = None, + body: Optional[_types.ManagedNetworkSettingsPropertiesBasicResource] = None, *, content_type: str = "application/json", **kwargs: Any @@ -26365,7 +27192,7 @@ def begin_patch( account. Only 'default' is supported. Required. :type managed_network_name: str :param body: The Managed Network Settings object of the account. Default value is None. - :type body: JSON + :type body: ~azure.mgmt.cognitiveservices.types.ManagedNetworkSettingsPropertiesBasicResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -26417,7 +27244,13 @@ def begin_patch( resource_group_name: str, account_name: str, managed_network_name: str, - body: Optional[Union[_models.ManagedNetworkSettingsPropertiesBasicResource, JSON, IO[bytes]]] = None, + body: Optional[ + Union[ + _models.ManagedNetworkSettingsPropertiesBasicResource, + _types.ManagedNetworkSettingsPropertiesBasicResource, + IO[bytes], + ] + ] = None, **kwargs: Any ) -> LROPoller[_models.ManagedNetworkSettingsPropertiesBasicResource]: """Patch API for managed network settings of a cognitive services account. @@ -26432,10 +27265,11 @@ def begin_patch( :param managed_network_name: Name of the managedNetwork associated with the cognitive services account. Only 'default' is supported. Required. :type managed_network_name: str - :param body: The Managed Network Settings object of the account. Is one of the following types: - ManagedNetworkSettingsPropertiesBasicResource, JSON, IO[bytes] Default value is None. + :param body: The Managed Network Settings object of the account. Is either a + ManagedNetworkSettingsPropertiesBasicResource type or a IO[bytes] type. Default value is None. :type body: ~azure.mgmt.cognitiveservices.models.ManagedNetworkSettingsPropertiesBasicResource - or JSON or IO[bytes] + or ~azure.mgmt.cognitiveservices.types.ManagedNetworkSettingsPropertiesBasicResource or + IO[bytes] :return: An instance of LROPoller that returns ManagedNetworkSettingsPropertiesBasicResource. The ManagedNetworkSettingsPropertiesBasicResource is compatible with MutableMapping :rtype: @@ -26513,6 +27347,8 @@ def get_long_running_output(pipeline_response): "2026-03-15-preview", "2026-05-01", "2026-05-15-preview", + "2026-07-01", + "2026-07-15-preview", ], ) def _delete_initial( @@ -26595,6 +27431,8 @@ def _delete_initial( "2026-03-15-preview", "2026-05-01", "2026-05-15-preview", + "2026-07-01", + "2026-07-15-preview", ], ) def begin_delete( @@ -26767,7 +27605,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class OutboundRulesOperations: +class OutboundRulesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -26791,7 +27629,7 @@ def _post_initial( resource_group_name: str, account_name: str, managed_network_name: str, - body: Union[_models.ManagedNetworkSettingsBasicResource, JSON, IO[bytes]], + body: Union[_models.ManagedNetworkSettingsBasicResource, _types.ManagedNetworkSettingsBasicResource, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -26906,7 +27744,7 @@ def begin_post( resource_group_name: str, account_name: str, managed_network_name: str, - body: JSON, + body: _types.ManagedNetworkSettingsBasicResource, *, content_type: str = "application/json", **kwargs: Any @@ -26926,7 +27764,7 @@ def begin_post( account. Only 'default' is supported. Required. :type managed_network_name: str :param body: The Managed Network Settings object of the account. Required. - :type body: JSON + :type body: ~azure.mgmt.cognitiveservices.types.ManagedNetworkSettingsBasicResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -26980,7 +27818,7 @@ def begin_post( resource_group_name: str, account_name: str, managed_network_name: str, - body: Union[_models.ManagedNetworkSettingsBasicResource, JSON, IO[bytes]], + body: Union[_models.ManagedNetworkSettingsBasicResource, _types.ManagedNetworkSettingsBasicResource, IO[bytes]], **kwargs: Any ) -> LROPoller[ItemPaged["_models.OutboundRuleBasicResource"]]: """The POST API for updating the outbound rules of the managed network associated with the @@ -26997,10 +27835,10 @@ def begin_post( :param managed_network_name: Name of the managedNetwork associated with the cognitive services account. Only 'default' is supported. Required. :type managed_network_name: str - :param body: The Managed Network Settings object of the account. Is one of the following types: - ManagedNetworkSettingsBasicResource, JSON, IO[bytes] Required. - :type body: ~azure.mgmt.cognitiveservices.models.ManagedNetworkSettingsBasicResource or JSON or - IO[bytes] + :param body: The Managed Network Settings object of the account. Is either a + ManagedNetworkSettingsBasicResource type or a IO[bytes] type. Required. + :type body: ~azure.mgmt.cognitiveservices.models.ManagedNetworkSettingsBasicResource or + ~azure.mgmt.cognitiveservices.types.ManagedNetworkSettingsBasicResource or IO[bytes] :return: An instance of LROPoller that returns an iterator like instance of list of OutboundRuleBasicResource :rtype: @@ -27153,7 +27991,7 @@ def internal_get_next(next_link=None): ) -class ManagedNetworkProvisionsOperations: +class ManagedNetworkProvisionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -27177,7 +28015,9 @@ def _provision_managed_network_initial( resource_group_name: str, account_name: str, managed_network_name: str, - body: Optional[Union[_models.ManagedNetworkProvisionOptions, JSON, IO[bytes]]] = None, + body: Optional[ + Union[_models.ManagedNetworkProvisionOptions, _types.ManagedNetworkProvisionOptions, IO[bytes]] + ] = None, **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -27295,7 +28135,7 @@ def begin_provision_managed_network( resource_group_name: str, account_name: str, managed_network_name: str, - body: Optional[JSON] = None, + body: Optional[_types.ManagedNetworkProvisionOptions] = None, *, content_type: str = "application/json", **kwargs: Any @@ -27314,7 +28154,7 @@ def begin_provision_managed_network( :type managed_network_name: str :param body: Managed Network Provisioning Options for a cognitive services account. Default value is None. - :type body: JSON + :type body: ~azure.mgmt.cognitiveservices.types.ManagedNetworkProvisionOptions :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -27367,7 +28207,9 @@ def begin_provision_managed_network( resource_group_name: str, account_name: str, managed_network_name: str, - body: Optional[Union[_models.ManagedNetworkProvisionOptions, JSON, IO[bytes]]] = None, + body: Optional[ + Union[_models.ManagedNetworkProvisionOptions, _types.ManagedNetworkProvisionOptions, IO[bytes]] + ] = None, **kwargs: Any ) -> LROPoller[_models.ManagedNetworkProvisionStatus]: """Provisions the managed network of a cognitive services account. @@ -27382,10 +28224,10 @@ def begin_provision_managed_network( :param managed_network_name: Name of the managedNetwork associated with the cognitive services account. Only 'default' is supported. Required. :type managed_network_name: str - :param body: Managed Network Provisioning Options for a cognitive services account. Is one of - the following types: ManagedNetworkProvisionOptions, JSON, IO[bytes] Default value is None. - :type body: ~azure.mgmt.cognitiveservices.models.ManagedNetworkProvisionOptions or JSON or - IO[bytes] + :param body: Managed Network Provisioning Options for a cognitive services account. Is either a + ManagedNetworkProvisionOptions type or a IO[bytes] type. Default value is None. + :type body: ~azure.mgmt.cognitiveservices.models.ManagedNetworkProvisionOptions or + ~azure.mgmt.cognitiveservices.types.ManagedNetworkProvisionOptions or IO[bytes] :return: An instance of LROPoller that returns ManagedNetworkProvisionStatus. The ManagedNetworkProvisionStatus is compatible with MutableMapping :rtype: @@ -27451,7 +28293,7 @@ def get_long_running_output(pipeline_response): ) -class AgentDeploymentsOperations: +class AgentDeploymentsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -27568,7 +28410,7 @@ def _create_or_update_initial( project_name: str, app_name: str, deployment_name: str, - body: Union[_models.AgentDeployment, JSON, IO[bytes]], + body: Union[_models.AgentDeployment, _types.AgentDeployment, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -27696,7 +28538,7 @@ def begin_create_or_update( project_name: str, app_name: str, deployment_name: str, - body: JSON, + body: _types.AgentDeployment, *, content_type: str = "application/json", **kwargs: Any @@ -27719,7 +28561,7 @@ def begin_create_or_update( Account. Required. :type deployment_name: str :param body: Agent Deployment definition object. Required. - :type body: JSON + :type body: ~azure.mgmt.cognitiveservices.types.AgentDeployment :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -27778,7 +28620,7 @@ def begin_create_or_update( project_name: str, app_name: str, deployment_name: str, - body: Union[_models.AgentDeployment, JSON, IO[bytes]], + body: Union[_models.AgentDeployment, _types.AgentDeployment, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.AgentDeployment]: """Creates or updates an Agent Deployment (asynchronous). @@ -27798,9 +28640,10 @@ def begin_create_or_update( :param deployment_name: The name of the deployment associated with the Cognitive Services Account. Required. :type deployment_name: str - :param body: Agent Deployment definition object. Is one of the following types: - AgentDeployment, JSON, IO[bytes] Required. - :type body: ~azure.mgmt.cognitiveservices.models.AgentDeployment or JSON or IO[bytes] + :param body: Agent Deployment definition object. Is either a AgentDeployment type or a + IO[bytes] type. Required. + :type body: ~azure.mgmt.cognitiveservices.models.AgentDeployment or + ~azure.mgmt.cognitiveservices.types.AgentDeployment or IO[bytes] :return: An instance of LROPoller that returns AgentDeployment. The AgentDeployment is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.cognitiveservices.models.AgentDeployment] @@ -28304,7 +29147,7 @@ def stop( # pylint: disable=inconsistent-return-statements return cls(pipeline_response, None, {}) # type: ignore -class ResourceSkusOperations: +class ResourceSkusOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -28417,7 +29260,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class UsagesOperations: +class UsagesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -28538,7 +29381,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class CommitmentTiersOperations: +class CommitmentTiersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -28654,7 +29497,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ModelsOperations: +class ModelsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -28770,7 +29613,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class LocationBasedModelCapacitiesOperations: +class LocationBasedModelCapacitiesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -28898,7 +29741,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ModelCapacitiesOperations: +class ModelCapacitiesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -29053,14 +29896,19 @@ def check_sku_availability( @overload def check_sku_availability( - self, location: str, parameters: JSON, *, content_type: str = "application/json", **kwargs: Any + self, + location: str, + parameters: _types.CheckSkuAvailabilityParameter, + *, + content_type: str = "application/json", + **kwargs: Any ) -> _models.SkuAvailabilityListResult: """Check available SKUs. :param location: The location name. Required. :type location: str :param parameters: The request body. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.cognitiveservices.types.CheckSkuAvailabilityParameter :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -29091,16 +29939,19 @@ def check_sku_availability( @distributed_trace def check_sku_availability( - self, location: str, parameters: Union[_models.CheckSkuAvailabilityParameter, JSON, IO[bytes]], **kwargs: Any + self, + location: str, + parameters: Union[_models.CheckSkuAvailabilityParameter, _types.CheckSkuAvailabilityParameter, IO[bytes]], + **kwargs: Any ) -> _models.SkuAvailabilityListResult: """Check available SKUs. :param location: The location name. Required. :type location: str - :param parameters: The request body. Is one of the following types: - CheckSkuAvailabilityParameter, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.cognitiveservices.models.CheckSkuAvailabilityParameter or JSON or - IO[bytes] + :param parameters: The request body. Is either a CheckSkuAvailabilityParameter type or a + IO[bytes] type. Required. + :type parameters: ~azure.mgmt.cognitiveservices.models.CheckSkuAvailabilityParameter or + ~azure.mgmt.cognitiveservices.types.CheckSkuAvailabilityParameter or IO[bytes] :return: SkuAvailabilityListResult. The SkuAvailabilityListResult is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.SkuAvailabilityListResult @@ -29194,12 +30045,16 @@ def check_domain_availability( @overload def check_domain_availability( - self, parameters: JSON, *, content_type: str = "application/json", **kwargs: Any + self, + parameters: _types.CheckDomainAvailabilityParameter, + *, + content_type: str = "application/json", + **kwargs: Any ) -> _models.DomainAvailability: """Check whether a domain is available. :param parameters: The request body. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.cognitiveservices.types.CheckDomainAvailabilityParameter :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -29226,14 +30081,16 @@ def check_domain_availability( @distributed_trace def check_domain_availability( - self, parameters: Union[_models.CheckDomainAvailabilityParameter, JSON, IO[bytes]], **kwargs: Any + self, + parameters: Union[_models.CheckDomainAvailabilityParameter, _types.CheckDomainAvailabilityParameter, IO[bytes]], + **kwargs: Any ) -> _models.DomainAvailability: """Check whether a domain is available. - :param parameters: The request body. Is one of the following types: - CheckDomainAvailabilityParameter, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.cognitiveservices.models.CheckDomainAvailabilityParameter or JSON - or IO[bytes] + :param parameters: The request body. Is either a CheckDomainAvailabilityParameter type or a + IO[bytes] type. Required. + :type parameters: ~azure.mgmt.cognitiveservices.models.CheckDomainAvailabilityParameter or + ~azure.mgmt.cognitiveservices.types.CheckDomainAvailabilityParameter or IO[bytes] :return: DomainAvailability. The DomainAvailability is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.DomainAvailability :raises ~azure.core.exceptions.HttpResponseError: @@ -29326,12 +30183,16 @@ def calculate_model_capacity( @overload def calculate_model_capacity( - self, parameters: JSON, *, content_type: str = "application/json", **kwargs: Any + self, + parameters: _types.CalculateModelCapacityParameter, + *, + content_type: str = "application/json", + **kwargs: Any ) -> _models.CalculateModelCapacityResult: """Model capacity calculator. :param parameters: The request body. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.cognitiveservices.types.CalculateModelCapacityParameter :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -29360,14 +30221,16 @@ def calculate_model_capacity( @distributed_trace def calculate_model_capacity( - self, parameters: Union[_models.CalculateModelCapacityParameter, JSON, IO[bytes]], **kwargs: Any + self, + parameters: Union[_models.CalculateModelCapacityParameter, _types.CalculateModelCapacityParameter, IO[bytes]], + **kwargs: Any ) -> _models.CalculateModelCapacityResult: """Model capacity calculator. - :param parameters: The request body. Is one of the following types: - CalculateModelCapacityParameter, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.cognitiveservices.models.CalculateModelCapacityParameter or JSON - or IO[bytes] + :param parameters: The request body. Is either a CalculateModelCapacityParameter type or a + IO[bytes] type. Required. + :type parameters: ~azure.mgmt.cognitiveservices.models.CalculateModelCapacityParameter or + ~azure.mgmt.cognitiveservices.types.CalculateModelCapacityParameter or IO[bytes] :return: CalculateModelCapacityResult. The CalculateModelCapacityResult is compatible with MutableMapping :rtype: ~azure.mgmt.cognitiveservices.models.CalculateModelCapacityResult diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_patch.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_patch.py index 488f910660e4..ea765788358a 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_patch.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_patch.py @@ -7,503 +7,8 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ -import base64 -import json -import time -from collections.abc import MutableMapping -from io import IOBase -from typing import IO, Any, Iterator, Optional, Union, cast, overload -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._utils.model_base import SdkJSONEncoder, _deserialize, _failsafe_deserialize -from .._validation import api_version_validation -from ._operations import ComputesOperations as _ComputesOperationsGenerated -from ._operations import build_computes_create_or_update_request - -JSON = MutableMapping[str, Any] - -_TERMINAL_FAILED_STATES = frozenset({"failed", "canceled", "cancelled"}) -_TERMINAL_SUCCESS_STATES = frozenset({"succeeded"}) -_CANCELED_STATES = frozenset({"canceled", "cancelled"}) - - -def _encode_continuation_token(resource_group_name: str, account_name: str, compute_name: str) -> str: - """Encode the polling scope (resource group, account, compute) into an opaque continuation token. - - :param resource_group_name: The resource group name of the compute being polled. - :type resource_group_name: str - :param account_name: The Cognitive Services account name of the compute being polled. - :type account_name: str - :param compute_name: The name of the compute being polled. - :type compute_name: str - :return: A url-safe, opaque continuation token encoding the polling scope. - :rtype: str - """ - payload = json.dumps( - { - "resource_group_name": resource_group_name, - "account_name": account_name, - "compute_name": compute_name, - } - ) - return base64.urlsafe_b64encode(payload.encode("utf-8")).decode("ascii") - - -def _decode_continuation_token(continuation_token: str): - """Decode a token produced by :func:`_encode_continuation_token` into its polling scope. - - :param continuation_token: A token previously produced by :func:`_encode_continuation_token`. - :type continuation_token: str - :return: The decoded scope as ``(resource_group_name, account_name, compute_name)``. - :rtype: tuple[str, str, str] - :raises ValueError: if the token is malformed, so a bad or unrelated token fails loudly instead of - silently resuming the wrong operation. - """ - try: - payload = json.loads(base64.urlsafe_b64decode(continuation_token.encode("ascii")).decode("utf-8")) - return payload["resource_group_name"], payload["account_name"], payload["compute_name"] - except Exception as exc: # pylint: disable=broad-except - raise ValueError("Invalid continuation_token for compute begin_create_or_update.") from exc - - -def _state_of(compute: Any) -> str: - """Return a compute's ``provisioningState`` as a lowercase string (handles enum or str). - - :param compute: A compute object (model or mapping) as returned by ``ComputesOperations.list``. - :type compute: any - :return: The compute's ``provisioningState`` lowercased, or an empty string if it is unavailable. - :rtype: str - """ - props = getattr(compute, "properties", None) - state = getattr(props, "provisioning_state", None) if props is not None else None - if state is None and isinstance(compute, MutableMapping): - state = (compute.get("properties") or {}).get("provisioningState") - if state is None: - return "" - return str(getattr(state, "value", state)).lower() - - -def _provisioning_error(compute: Any) -> HttpResponseError: - """Build a descriptive error from a compute whose provisioning reached a failed state. - - Because the poller reads status from ``list`` (not the operation-status endpoint), the failure - detail lives in the compute's ``properties.errors``. Surface that instead of azure-core's generic - ``Operation failed or canceled`` / ``invalid status`` messages. - - :param compute: A compute whose provisioning reached a failed/canceled terminal state. - :type compute: any - :return: An error describing the failure using the compute's own ``properties.errors`` detail. - :rtype: ~azure.core.exceptions.HttpResponseError - """ - props = getattr(compute, "properties", None) - errors = getattr(props, "errors", None) if props is not None else None - if errors is None and isinstance(compute, MutableMapping): - errors = (compute.get("properties") or {}).get("errors") - parts = [] - for err in errors or []: - if isinstance(err, MutableMapping): - code, message = err.get("code"), err.get("message") - else: - code, message = getattr(err, "code", None), getattr(err, "message", None) - if code and message: - parts.append(f"{code}: {message}") - elif message or code: - parts.append(str(message or code)) - detail = "; ".join(p for p in parts if p) - state = _state_of(compute) or "failed" - text = f"Compute provisioning {state}." - if detail: - text = f"{text} {detail}" - return HttpResponseError(message=text) - - -class _ComputeListPolling(PollingMethod): - """Blocking LRO poller that reads compute status from the ``list`` API instead of ``get``. - - The compute create is asynchronous (the service returns HTTP 202) and the new compute is **not** - reliably queryable via ``get`` during creation: a ``GET`` on the resource returns - ``404 "Cluster not found"`` for an extended, variable period while the cluster backend - materializes. The compute does, however, appear in the ``list`` response with its - ``provisioningState`` from the moment the create is accepted. This poller therefore polls ``list`` - (matching the resource by name) until the compute reaches a terminal ``provisioningState``. - - It blocks like a normal long-running-operation poller, never calls the permission-gated - ``.../computeOperations/{id}`` endpoint (so it does not need ``computeOperations/read``), and - surfaces the compute's own error detail on failure. A bounded grace period bounds how long the - compute may be absent from ``list`` before the poller gives up, so a create that never materializes - does not hang forever. - """ - - _NOT_FOUND_GRACE_SECONDS = 300 - - def __init__( - self, - operations: "ComputesOperations", - resource_group_name: str, - account_name: str, - compute_name: str, - interval: float, - cls: Any = None, - ) -> None: - self._operations = operations - self._resource_group_name = resource_group_name - self._account_name = account_name - self._compute_name = compute_name - self._interval = interval - self._cls = cls - self._status = "InProgress" - self._resource: Optional[_models.Compute] = None - self._first_missing_at: Optional[float] = None - self._initial_response: Any = None - - def initialize(self, client: Any, initial_response: Any, deserialization_callback: Any) -> None: - self._initial_response = initial_response - - def _current_compute(self) -> Optional[_models.Compute]: - for compute in self._operations.list(self._resource_group_name, self._account_name): - if getattr(compute, "name", None) == self._compute_name: - return compute - return None - - def run(self) -> None: - while not self.finished(): - compute = self._current_compute() - if compute is None: - # The create was accepted, so the compute should appear in ``list`` shortly. Tolerate a - # brief absence, but give up after a bounded grace so a create that never materializes - # does not hang forever. - if self._first_missing_at is None: - self._first_missing_at = time.monotonic() - elif time.monotonic() - self._first_missing_at > self._NOT_FOUND_GRACE_SECONDS: - raise HttpResponseError( - message=f"Compute '{self._compute_name}' did not appear in the account's compute " - "list after it was created." - ) - else: - self._first_missing_at = None - self._resource = compute - state = _state_of(compute) - if state in _TERMINAL_SUCCESS_STATES: - self._status = "Succeeded" - elif state in _TERMINAL_FAILED_STATES: - # Preserve the service's terminal status (``Canceled`` vs ``Failed``) so callers can - # inspect ``poller.status()`` correctly, while still raising the provisioning error. - self._status = "Canceled" if state in _CANCELED_STATES else "Failed" - raise _provisioning_error(compute) - if not self.finished(): - time.sleep(self._interval) - - def status(self) -> str: - return self._status - - def finished(self) -> bool: - return self._status in ("Succeeded", "Failed", "Canceled") - - def resource(self) -> Optional[_models.Compute]: - # Apply the caller's ``cls`` hook (if any) to the final resource, preserving the generated - # method's ``cls=`` contract. There is no final pipeline response for the list-based read-back, - # so ``None`` is passed for that positional argument. - if self._resource is not None and self._cls is not None: - return self._cls(None, self._resource, {}) - return self._resource - - def get_continuation_token(self) -> str: - return _encode_continuation_token(self._resource_group_name, self._account_name, self._compute_name) - - @classmethod - def from_continuation_token(cls, continuation_token: str, **kwargs: Any): - # Validate the token is well-formed; the polling scope it encodes is applied when the poller is - # (re)constructed in ``begin_create_or_update``. - _decode_continuation_token(continuation_token) - client = kwargs["client"] - deserialization_callback = kwargs["deserialization_callback"] - return client, None, deserialization_callback - - -class ComputesOperations(_ComputesOperationsGenerated): - """Customized ``ComputesOperations`` that tracks compute creation via the ``list`` API. - - The generated :meth:`begin_create_or_update` has two problems against the current service: - - * :meth:`_create_or_update_initial` rejects the ``202 Accepted`` the service returns for the async - create with "Operation returned an invalid status 'Accepted'"; and - * its poller follows the ``Azure-AsyncOperation`` header to - ``.../locations/{location}/computeOperations/{operationId}``, which requires the - ``Microsoft.CognitiveServices/locations/computeOperations/read`` permission. Many callers who - are allowed to create a compute lack that permission, so the poll fails with - ``AuthorizationFailed`` even though the create itself succeeded. - - This override keeps the generated method's public shape (overloads, api-version validation and - ``continuation_token`` resume path) unchanged. It (1) accepts the ``202`` in - :meth:`_create_or_update_initial` and (2) blocks on a :class:`_ComputeListPolling` poller that - reads ``provisioningState`` from the ``list`` API. ``list`` is used rather than ``get`` because a - ``GET`` on a just-created compute returns ``404 "Cluster not found"`` for an extended period while - it provisions, whereas ``list`` reflects the compute's state from the moment the create is - accepted. The poller only needs ``computes/read``, still blocks until a terminal state, and - surfaces a genuine provisioning failure instead of masking it. - """ - - @api_version_validation( - method_added_on="2026-03-15-preview", - params_added_on={ - "2026-03-15-preview": [ - "api_version", - "subscription_id", - "resource_group_name", - "account_name", - "compute_name", - "content_type", - "accept", - ] - }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], - ) - def _create_or_update_initial( - self, - resource_group_name: str, - account_name: str, - compute_name: str, - resource: Union[_models.Compute, JSON, IO[bytes]], - **kwargs: Any, - ) -> Iterator[bytes]: - # Mirrors the generated ``_create_or_update_initial`` exactly, except it accepts ``202``. The - # generated code only allows 200/201 and rejects the service's async 202 with - # "Operation returned an invalid status 'Accepted'", failing a create the service accepted. - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: Any = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _content = json.dumps(resource, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_computes_create_or_update_request( - resource_group_name=resource_group_name, - account_name=account_name, - compute_name=compute_name, - subscription_id=self._config.subscription_id, - content_type=content_type, - api_version=self._config.api_version, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code in [201, 202]: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - account_name: str, - compute_name: str, - resource: _models.Compute, - *, - content_type: str = "application/json", - **kwargs: Any, - ) -> LROPoller[_models.Compute]: ... - @overload - def begin_create_or_update( - self, - resource_group_name: str, - account_name: str, - compute_name: str, - resource: JSON, - *, - content_type: str = "application/json", - **kwargs: Any, - ) -> LROPoller[_models.Compute]: ... - @overload - def begin_create_or_update( - self, - resource_group_name: str, - account_name: str, - compute_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any, - ) -> LROPoller[_models.Compute]: ... - - @distributed_trace - @api_version_validation( - method_added_on="2026-03-15-preview", - params_added_on={ - "2026-03-15-preview": [ - "api_version", - "subscription_id", - "resource_group_name", - "account_name", - "compute_name", - "content_type", - "accept", - ] - }, - api_versions_list=["2026-03-15-preview", "2026-05-15-preview"], - ) - def begin_create_or_update( - self, - resource_group_name: str, - account_name: str, - compute_name: str, - resource: Union[_models.Compute, JSON, IO[bytes]], - **kwargs: Any, - ) -> LROPoller[_models.Compute]: - """Creates or updates a compute associated with the Cognitive Services account. - - This override accepts the service's ``202 Accepted`` and blocks until the compute reaches a - terminal state, reading ``provisioningState`` from the ``list`` API rather than polling the - operation-status endpoint (which requires ``computeOperations/read``). ``list`` is used because - a ``GET`` on a just-created compute returns ``404 "Cluster not found"`` while it provisions. It - raises on a genuine provisioning failure, so callers get correct results without needing the - operation-status read permission. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param account_name: The name of Cognitive Services account. Required. - :type account_name: str - :param compute_name: The name of the compute associated with the Cognitive Services Account. - Required. - :type compute_name: str - :param resource: The compute properties. Is one of the following types: Compute, JSON, - IO[bytes] Required. - :type resource: ~azure.mgmt.cognitiveservices.models.Compute or JSON or IO[bytes] - :return: An instance of LROPoller that returns Compute. The Compute is compatible with - MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.cognitiveservices.models.Compute] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: Any = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - account_name=account_name, - compute_name=compute_name, - resource=resource, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs, - ) - raw_result.http_response.read() # type: ignore - # A synchronous terminal failure (rare: the accepted body itself is already Failed/Canceled) - # would otherwise slip through to a poller that would just keep listing; surface the - # resource's own error detail immediately instead. - try: - initial_body = raw_result.http_response.json() - except Exception: # pylint: disable=broad-except - initial_body = None - if isinstance(initial_body, MutableMapping) and _state_of(initial_body) in _TERMINAL_FAILED_STATES: - raise _provisioning_error(initial_body) - else: - # Opaque-token contract: the token is the source of truth for which operation to resume, so - # decode the polling scope from it (raising on a malformed token) rather than trusting the - # method arguments, and do not re-issue the create. - resource_group_name, account_name, compute_name = _decode_continuation_token(cont_token) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.Compute, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, - _ComputeListPolling(self, resource_group_name, account_name, compute_name, lro_delay, cls), - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.Compute].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.Compute]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - -__all__: list[str] = [ - "ComputesOperations", -] # Add all objects you want publicly available to users at this package level +__all__: list[str] = [] # Add all objects you want publicly available to users at this package level def patch_sdk(): diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/types.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/types.py new file mode 100644 index 000000000000..d6ca89f3466b --- /dev/null +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/types.py @@ -0,0 +1,5812 @@ +# 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, Literal, Optional, TYPE_CHECKING, Union +from typing_extensions import Required, TypedDict + +from .models._enums import ( + AgentDeploymentType, + AgentHostingType, + BuiltInAuthorizationScheme, + ComputeType, + ConnectionAuthType, + RuleType, +) + +if TYPE_CHECKING: + from .models import ( + AbusePenaltyAction, + AgentDeploymentProvisioningState, + AgentDeploymentState, + AgentProtocol, + AgenticApplicationProvisioningState, + ArcDeploymentComputeType, + ArcDeploymentRuntime, + ArcDeploymentSkuName, + ByPassSelection, + CapabilityHostKind, + CapabilityHostProvisioningState, + CommitmentPlanProvisioningState, + ComputeProvisioningState, + ConnectionCategory, + ConnectionGroup, + ContentLevel, + CreatedByType, + DefenderForAISettingState, + DeploymentModelVersionUpgradeOption, + DeploymentProvisioningState, + DeploymentScaleType, + DeploymentState, + EncryptionScopeProvisioningState, + EncryptionScopeState, + FirewallSku, + FoundryAutoUpgradeMode, + HostingModel, + IdentityKind, + IdentityManagementType, + IdentityProvisioningState, + IsolationMode, + KeyName, + KeySource, + ManagedNetworkKind, + ManagedNetworkProvisioningState, + ManagedNetworkStatus, + ManagedPERequirement, + ManagedPEStatus, + NetworkRuleAction, + PrivateEndpointConnectionProvisioningState, + PrivateEndpointServiceConnectionStatus, + ProvisioningState, + PublicNetworkAccess, + RaiActionType, + RaiEgressDefaultAction, + RaiEgressHeaderOperation, + RaiEgressMode, + RaiEgressRuleActionType, + RaiEgressRuleType, + RaiEgressScheme, + RaiPolicyContentSource, + RaiPolicyMode, + RaiPolicyType, + ResourceIdentityType, + RoutingMethods, + RoutingMode, + RuleAction, + RuleCategory, + RuleStatus, + ScenarioType, + ServiceTier, + SkuTier, + TierUpgradePolicy, + TrafficRoutingProtocol, + UpgradeAvailabilityStatus, + VmPriority, + ) + + +class AADAuthTypeConnectionProperties(TypedDict, total=False): + """This connection type covers the AAD auth for any applicable Azure service. + + :ivar category: Category of the connection. Known values are: "PythonFeed", + "ContainerRegistry", "Git", "S3", "Snowflake", "AzureKeyVault", "AzureSqlDb", + "AzureSynapseAnalytics", "AzureMySqlDb", "AzurePostgresDb", "ADLSGen2", + "AzureContainerAppEnvironment", "Redis", "ApiKey", "AzureOpenAI", "AIServices", + "CognitiveSearch", "CognitiveService", "CustomKeys", "AzureBlob", "AzureStorageAccount", + "AzureOneLake", "CosmosDb", "CosmosDbMongoDbApi", "AzureDataExplorer", "AzureMariaDb", + "AzureDatabricksDeltaLake", "AzureSqlMi", "AzureTableStorage", "AmazonRdsForOracle", + "AmazonRdsForSqlServer", "AmazonRedshift", "Db2", "Drill", "GoogleBigQuery", "Greenplum", + "Hbase", "Hive", "Impala", "Informix", "MariaDb", "MicrosoftAccess", "MySql", "Netezza", + "Oracle", "Phoenix", "PostgreSql", "Presto", "SapOpenHub", "SapBw", "SapHana", "SapTable", + "Spark", "SqlServer", "Sybase", "Teradata", "Vertica", "Pinecone", "Databricks", "Cassandra", + "Couchbase", "MongoDbV2", "MongoDbAtlas", "AmazonS3Compatible", "FileServer", "FtpServer", + "GoogleCloudStorage", "Hdfs", "OracleCloudStorage", "Sftp", "GenericHttp", "ODataRest", "Odbc", + "GenericRest", "RemoteTool", "AmazonMws", "Concur", "Dynamics", "DynamicsAx", "DynamicsCrm", + "GoogleAdWords", "Hubspot", "Jira", "Magento", "Marketo", "Office365", "Eloqua", "Responsys", + "OracleServiceCloud", "PayPal", "QuickBooks", "Salesforce", "SalesforceServiceCloud", + "SalesforceMarketingCloud", "SapCloudForCustomer", "SapEcc", "ServiceNow", + "SharePointOnlineList", "Shopify", "Square", "WebTable", "Xero", "Zoho", + "GenericContainerRegistry", "Elasticsearch", "AppInsights", "AppConfig", "OpenAI", "Serp", + "BingLLMSearch", "Serverless", "ManagedOnlineEndpoint", "ApiManagement", "ModelGateway", + "GroundingWithBingSearch", "GroundingWithCustomSearch", "Sharepoint", "MicrosoftFabric", + "PowerPlatformEnvironment", and "RemoteA2A". + :vartype category: Union[str, "ConnectionCategory"] + :ivar createdByWorkspaceArmId: + :vartype createdByWorkspaceArmId: str + :ivar error: Provides the error message if the connection fails. + :vartype error: str + :ivar expiryTime: + :vartype expiryTime: str + :ivar group: Group based on connection category. Known values are: "Azure", "AzureAI", + "Database", "NoSQL", "File", "GenericProtocol", and "ServicesAndApps". + :vartype group: Union[str, "ConnectionGroup"] + :ivar isSharedToAll: + :vartype isSharedToAll: bool + :ivar metadata: Store user metadata for this connection. + :vartype metadata: dict[str, str] + :ivar peRequirement: Specifies how private endpoints are used with this connection: 'Required', + 'NotRequired', or 'NotApplicable'. Known values are: "Required", "NotRequired", and + "NotApplicable". + :vartype peRequirement: Union[str, "ManagedPERequirement"] + :ivar peStatus: Specifies the status of private endpoints for this connection: 'Inactive', + 'Active', or 'NotApplicable'. Known values are: "Inactive", "Active", and "NotApplicable". + :vartype peStatus: Union[str, "ManagedPEStatus"] + :ivar sharedUserList: + :vartype sharedUserList: list[str] + :ivar target: The connection URL to be used. + :vartype target: str + :ivar useWorkspaceManagedIdentity: + :vartype useWorkspaceManagedIdentity: bool + :ivar authType: Authentication type of the connection target. Required. AAD. + :vartype authType: Literal[ConnectionAuthType.AAD] + """ + + category: Union[str, "ConnectionCategory"] + """Category of the connection. Known values are: \"PythonFeed\", \"ContainerRegistry\", \"Git\", + \"S3\", \"Snowflake\", \"AzureKeyVault\", \"AzureSqlDb\", \"AzureSynapseAnalytics\", + \"AzureMySqlDb\", \"AzurePostgresDb\", \"ADLSGen2\", \"AzureContainerAppEnvironment\", + \"Redis\", \"ApiKey\", \"AzureOpenAI\", \"AIServices\", \"CognitiveSearch\", + \"CognitiveService\", \"CustomKeys\", \"AzureBlob\", \"AzureStorageAccount\", \"AzureOneLake\", + \"CosmosDb\", \"CosmosDbMongoDbApi\", \"AzureDataExplorer\", \"AzureMariaDb\", + \"AzureDatabricksDeltaLake\", \"AzureSqlMi\", \"AzureTableStorage\", \"AmazonRdsForOracle\", + \"AmazonRdsForSqlServer\", \"AmazonRedshift\", \"Db2\", \"Drill\", \"GoogleBigQuery\", + \"Greenplum\", \"Hbase\", \"Hive\", \"Impala\", \"Informix\", \"MariaDb\", \"MicrosoftAccess\", + \"MySql\", \"Netezza\", \"Oracle\", \"Phoenix\", \"PostgreSql\", \"Presto\", \"SapOpenHub\", + \"SapBw\", \"SapHana\", \"SapTable\", \"Spark\", \"SqlServer\", \"Sybase\", \"Teradata\", + \"Vertica\", \"Pinecone\", \"Databricks\", \"Cassandra\", \"Couchbase\", \"MongoDbV2\", + \"MongoDbAtlas\", \"AmazonS3Compatible\", \"FileServer\", \"FtpServer\", + \"GoogleCloudStorage\", \"Hdfs\", \"OracleCloudStorage\", \"Sftp\", \"GenericHttp\", + \"ODataRest\", \"Odbc\", \"GenericRest\", \"RemoteTool\", \"AmazonMws\", \"Concur\", + \"Dynamics\", \"DynamicsAx\", \"DynamicsCrm\", \"GoogleAdWords\", \"Hubspot\", \"Jira\", + \"Magento\", \"Marketo\", \"Office365\", \"Eloqua\", \"Responsys\", \"OracleServiceCloud\", + \"PayPal\", \"QuickBooks\", \"Salesforce\", \"SalesforceServiceCloud\", + \"SalesforceMarketingCloud\", \"SapCloudForCustomer\", \"SapEcc\", \"ServiceNow\", + \"SharePointOnlineList\", \"Shopify\", \"Square\", \"WebTable\", \"Xero\", \"Zoho\", + \"GenericContainerRegistry\", \"Elasticsearch\", \"AppInsights\", \"AppConfig\", \"OpenAI\", + \"Serp\", \"BingLLMSearch\", \"Serverless\", \"ManagedOnlineEndpoint\", \"ApiManagement\", + \"ModelGateway\", \"GroundingWithBingSearch\", \"GroundingWithCustomSearch\", \"Sharepoint\", + \"MicrosoftFabric\", \"PowerPlatformEnvironment\", and \"RemoteA2A\".""" + createdByWorkspaceArmId: str + error: str + """Provides the error message if the connection fails.""" + expiryTime: str + group: Union[str, "ConnectionGroup"] + """Group based on connection category. Known values are: \"Azure\", \"AzureAI\", \"Database\", + \"NoSQL\", \"File\", \"GenericProtocol\", and \"ServicesAndApps\".""" + isSharedToAll: bool + metadata: dict[str, str] + """Store user metadata for this connection.""" + peRequirement: Union[str, "ManagedPERequirement"] + """Specifies how private endpoints are used with this connection: 'Required', 'NotRequired', or + 'NotApplicable'. Known values are: \"Required\", \"NotRequired\", and \"NotApplicable\".""" + peStatus: Union[str, "ManagedPEStatus"] + """Specifies the status of private endpoints for this connection: 'Inactive', 'Active', or + 'NotApplicable'. Known values are: \"Inactive\", \"Active\", and \"NotApplicable\".""" + sharedUserList: list[str] + target: str + """The connection URL to be used.""" + useWorkspaceManagedIdentity: bool + authType: Required[Literal[ConnectionAuthType.AAD]] + """Authentication type of the connection target. Required. AAD.""" + + +class AbusePenalty(TypedDict, total=False): + """The abuse penalty. + + :ivar action: The action of AbusePenalty. Known values are: "Throttle" and "Block". + :vartype action: Union[str, "AbusePenaltyAction"] + :ivar rateLimitPercentage: The percentage of rate limit. + :vartype rateLimitPercentage: float + :ivar expiration: The datetime of expiration of the AbusePenalty. + :vartype expiration: str + """ + + action: Union[str, "AbusePenaltyAction"] + """The action of AbusePenalty. Known values are: \"Throttle\" and \"Block\".""" + rateLimitPercentage: float + """The percentage of rate limit.""" + expiration: str + """The datetime of expiration of the AbusePenalty.""" + + +class AccessKeyAuthTypeConnectionProperties(TypedDict, total=False): + """AccessKeyAuthTypeConnectionProperties. + + :ivar category: Category of the connection. Known values are: "PythonFeed", + "ContainerRegistry", "Git", "S3", "Snowflake", "AzureKeyVault", "AzureSqlDb", + "AzureSynapseAnalytics", "AzureMySqlDb", "AzurePostgresDb", "ADLSGen2", + "AzureContainerAppEnvironment", "Redis", "ApiKey", "AzureOpenAI", "AIServices", + "CognitiveSearch", "CognitiveService", "CustomKeys", "AzureBlob", "AzureStorageAccount", + "AzureOneLake", "CosmosDb", "CosmosDbMongoDbApi", "AzureDataExplorer", "AzureMariaDb", + "AzureDatabricksDeltaLake", "AzureSqlMi", "AzureTableStorage", "AmazonRdsForOracle", + "AmazonRdsForSqlServer", "AmazonRedshift", "Db2", "Drill", "GoogleBigQuery", "Greenplum", + "Hbase", "Hive", "Impala", "Informix", "MariaDb", "MicrosoftAccess", "MySql", "Netezza", + "Oracle", "Phoenix", "PostgreSql", "Presto", "SapOpenHub", "SapBw", "SapHana", "SapTable", + "Spark", "SqlServer", "Sybase", "Teradata", "Vertica", "Pinecone", "Databricks", "Cassandra", + "Couchbase", "MongoDbV2", "MongoDbAtlas", "AmazonS3Compatible", "FileServer", "FtpServer", + "GoogleCloudStorage", "Hdfs", "OracleCloudStorage", "Sftp", "GenericHttp", "ODataRest", "Odbc", + "GenericRest", "RemoteTool", "AmazonMws", "Concur", "Dynamics", "DynamicsAx", "DynamicsCrm", + "GoogleAdWords", "Hubspot", "Jira", "Magento", "Marketo", "Office365", "Eloqua", "Responsys", + "OracleServiceCloud", "PayPal", "QuickBooks", "Salesforce", "SalesforceServiceCloud", + "SalesforceMarketingCloud", "SapCloudForCustomer", "SapEcc", "ServiceNow", + "SharePointOnlineList", "Shopify", "Square", "WebTable", "Xero", "Zoho", + "GenericContainerRegistry", "Elasticsearch", "AppInsights", "AppConfig", "OpenAI", "Serp", + "BingLLMSearch", "Serverless", "ManagedOnlineEndpoint", "ApiManagement", "ModelGateway", + "GroundingWithBingSearch", "GroundingWithCustomSearch", "Sharepoint", "MicrosoftFabric", + "PowerPlatformEnvironment", and "RemoteA2A". + :vartype category: Union[str, "ConnectionCategory"] + :ivar createdByWorkspaceArmId: + :vartype createdByWorkspaceArmId: str + :ivar error: Provides the error message if the connection fails. + :vartype error: str + :ivar expiryTime: + :vartype expiryTime: str + :ivar group: Group based on connection category. Known values are: "Azure", "AzureAI", + "Database", "NoSQL", "File", "GenericProtocol", and "ServicesAndApps". + :vartype group: Union[str, "ConnectionGroup"] + :ivar isSharedToAll: + :vartype isSharedToAll: bool + :ivar metadata: Store user metadata for this connection. + :vartype metadata: dict[str, str] + :ivar peRequirement: Specifies how private endpoints are used with this connection: 'Required', + 'NotRequired', or 'NotApplicable'. Known values are: "Required", "NotRequired", and + "NotApplicable". + :vartype peRequirement: Union[str, "ManagedPERequirement"] + :ivar peStatus: Specifies the status of private endpoints for this connection: 'Inactive', + 'Active', or 'NotApplicable'. Known values are: "Inactive", "Active", and "NotApplicable". + :vartype peStatus: Union[str, "ManagedPEStatus"] + :ivar sharedUserList: + :vartype sharedUserList: list[str] + :ivar target: The connection URL to be used. + :vartype target: str + :ivar useWorkspaceManagedIdentity: + :vartype useWorkspaceManagedIdentity: bool + :ivar credentials: + :vartype credentials: "ConnectionAccessKey" + :ivar authType: Authentication type of the connection target. Required. ACCESS_KEY. + :vartype authType: Literal[ConnectionAuthType.ACCESS_KEY] + """ + + category: Union[str, "ConnectionCategory"] + """Category of the connection. Known values are: \"PythonFeed\", \"ContainerRegistry\", \"Git\", + \"S3\", \"Snowflake\", \"AzureKeyVault\", \"AzureSqlDb\", \"AzureSynapseAnalytics\", + \"AzureMySqlDb\", \"AzurePostgresDb\", \"ADLSGen2\", \"AzureContainerAppEnvironment\", + \"Redis\", \"ApiKey\", \"AzureOpenAI\", \"AIServices\", \"CognitiveSearch\", + \"CognitiveService\", \"CustomKeys\", \"AzureBlob\", \"AzureStorageAccount\", \"AzureOneLake\", + \"CosmosDb\", \"CosmosDbMongoDbApi\", \"AzureDataExplorer\", \"AzureMariaDb\", + \"AzureDatabricksDeltaLake\", \"AzureSqlMi\", \"AzureTableStorage\", \"AmazonRdsForOracle\", + \"AmazonRdsForSqlServer\", \"AmazonRedshift\", \"Db2\", \"Drill\", \"GoogleBigQuery\", + \"Greenplum\", \"Hbase\", \"Hive\", \"Impala\", \"Informix\", \"MariaDb\", \"MicrosoftAccess\", + \"MySql\", \"Netezza\", \"Oracle\", \"Phoenix\", \"PostgreSql\", \"Presto\", \"SapOpenHub\", + \"SapBw\", \"SapHana\", \"SapTable\", \"Spark\", \"SqlServer\", \"Sybase\", \"Teradata\", + \"Vertica\", \"Pinecone\", \"Databricks\", \"Cassandra\", \"Couchbase\", \"MongoDbV2\", + \"MongoDbAtlas\", \"AmazonS3Compatible\", \"FileServer\", \"FtpServer\", + \"GoogleCloudStorage\", \"Hdfs\", \"OracleCloudStorage\", \"Sftp\", \"GenericHttp\", + \"ODataRest\", \"Odbc\", \"GenericRest\", \"RemoteTool\", \"AmazonMws\", \"Concur\", + \"Dynamics\", \"DynamicsAx\", \"DynamicsCrm\", \"GoogleAdWords\", \"Hubspot\", \"Jira\", + \"Magento\", \"Marketo\", \"Office365\", \"Eloqua\", \"Responsys\", \"OracleServiceCloud\", + \"PayPal\", \"QuickBooks\", \"Salesforce\", \"SalesforceServiceCloud\", + \"SalesforceMarketingCloud\", \"SapCloudForCustomer\", \"SapEcc\", \"ServiceNow\", + \"SharePointOnlineList\", \"Shopify\", \"Square\", \"WebTable\", \"Xero\", \"Zoho\", + \"GenericContainerRegistry\", \"Elasticsearch\", \"AppInsights\", \"AppConfig\", \"OpenAI\", + \"Serp\", \"BingLLMSearch\", \"Serverless\", \"ManagedOnlineEndpoint\", \"ApiManagement\", + \"ModelGateway\", \"GroundingWithBingSearch\", \"GroundingWithCustomSearch\", \"Sharepoint\", + \"MicrosoftFabric\", \"PowerPlatformEnvironment\", and \"RemoteA2A\".""" + createdByWorkspaceArmId: str + error: str + """Provides the error message if the connection fails.""" + expiryTime: str + group: Union[str, "ConnectionGroup"] + """Group based on connection category. Known values are: \"Azure\", \"AzureAI\", \"Database\", + \"NoSQL\", \"File\", \"GenericProtocol\", and \"ServicesAndApps\".""" + isSharedToAll: bool + metadata: dict[str, str] + """Store user metadata for this connection.""" + peRequirement: Union[str, "ManagedPERequirement"] + """Specifies how private endpoints are used with this connection: 'Required', 'NotRequired', or + 'NotApplicable'. Known values are: \"Required\", \"NotRequired\", and \"NotApplicable\".""" + peStatus: Union[str, "ManagedPEStatus"] + """Specifies the status of private endpoints for this connection: 'Inactive', 'Active', or + 'NotApplicable'. Known values are: \"Inactive\", \"Active\", and \"NotApplicable\".""" + sharedUserList: list[str] + target: str + """The connection URL to be used.""" + useWorkspaceManagedIdentity: bool + credentials: "ConnectionAccessKey" + authType: Required[Literal[ConnectionAuthType.ACCESS_KEY]] + """Authentication type of the connection target. Required. ACCESS_KEY.""" + + +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 Account(ProxyResource): + """Cognitive Services account is an Azure resource representing the provisioned account, it's + type, location and SKU. + + :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 of Cognitive Services account. + :vartype properties: "AccountProperties" + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. + :vartype location: str + :ivar etag: Resource Etag. + :vartype etag: str + :ivar kind: The kind (type) of cognitive service account. + :vartype kind: str + :ivar sku: The resource model definition representing SKU. + :vartype sku: "Sku" + :ivar identity: Identity for the resource. + :vartype identity: "Identity" + """ + + properties: "AccountProperties" + """Properties of Cognitive Services account.""" + tags: dict[str, str] + """Resource tags.""" + location: str + """The geo-location where the resource lives.""" + etag: str + """Resource Etag.""" + kind: str + """The kind (type) of cognitive service account.""" + sku: "Sku" + """The resource model definition representing SKU.""" + identity: "Identity" + """Identity for the resource.""" + + +class AccountKeyAuthTypeConnectionProperties(TypedDict, total=False): + """This connection type covers the account key connection for Azure storage. + + :ivar category: Category of the connection. Known values are: "PythonFeed", + "ContainerRegistry", "Git", "S3", "Snowflake", "AzureKeyVault", "AzureSqlDb", + "AzureSynapseAnalytics", "AzureMySqlDb", "AzurePostgresDb", "ADLSGen2", + "AzureContainerAppEnvironment", "Redis", "ApiKey", "AzureOpenAI", "AIServices", + "CognitiveSearch", "CognitiveService", "CustomKeys", "AzureBlob", "AzureStorageAccount", + "AzureOneLake", "CosmosDb", "CosmosDbMongoDbApi", "AzureDataExplorer", "AzureMariaDb", + "AzureDatabricksDeltaLake", "AzureSqlMi", "AzureTableStorage", "AmazonRdsForOracle", + "AmazonRdsForSqlServer", "AmazonRedshift", "Db2", "Drill", "GoogleBigQuery", "Greenplum", + "Hbase", "Hive", "Impala", "Informix", "MariaDb", "MicrosoftAccess", "MySql", "Netezza", + "Oracle", "Phoenix", "PostgreSql", "Presto", "SapOpenHub", "SapBw", "SapHana", "SapTable", + "Spark", "SqlServer", "Sybase", "Teradata", "Vertica", "Pinecone", "Databricks", "Cassandra", + "Couchbase", "MongoDbV2", "MongoDbAtlas", "AmazonS3Compatible", "FileServer", "FtpServer", + "GoogleCloudStorage", "Hdfs", "OracleCloudStorage", "Sftp", "GenericHttp", "ODataRest", "Odbc", + "GenericRest", "RemoteTool", "AmazonMws", "Concur", "Dynamics", "DynamicsAx", "DynamicsCrm", + "GoogleAdWords", "Hubspot", "Jira", "Magento", "Marketo", "Office365", "Eloqua", "Responsys", + "OracleServiceCloud", "PayPal", "QuickBooks", "Salesforce", "SalesforceServiceCloud", + "SalesforceMarketingCloud", "SapCloudForCustomer", "SapEcc", "ServiceNow", + "SharePointOnlineList", "Shopify", "Square", "WebTable", "Xero", "Zoho", + "GenericContainerRegistry", "Elasticsearch", "AppInsights", "AppConfig", "OpenAI", "Serp", + "BingLLMSearch", "Serverless", "ManagedOnlineEndpoint", "ApiManagement", "ModelGateway", + "GroundingWithBingSearch", "GroundingWithCustomSearch", "Sharepoint", "MicrosoftFabric", + "PowerPlatformEnvironment", and "RemoteA2A". + :vartype category: Union[str, "ConnectionCategory"] + :ivar createdByWorkspaceArmId: + :vartype createdByWorkspaceArmId: str + :ivar error: Provides the error message if the connection fails. + :vartype error: str + :ivar expiryTime: + :vartype expiryTime: str + :ivar group: Group based on connection category. Known values are: "Azure", "AzureAI", + "Database", "NoSQL", "File", "GenericProtocol", and "ServicesAndApps". + :vartype group: Union[str, "ConnectionGroup"] + :ivar isSharedToAll: + :vartype isSharedToAll: bool + :ivar metadata: Store user metadata for this connection. + :vartype metadata: dict[str, str] + :ivar peRequirement: Specifies how private endpoints are used with this connection: 'Required', + 'NotRequired', or 'NotApplicable'. Known values are: "Required", "NotRequired", and + "NotApplicable". + :vartype peRequirement: Union[str, "ManagedPERequirement"] + :ivar peStatus: Specifies the status of private endpoints for this connection: 'Inactive', + 'Active', or 'NotApplicable'. Known values are: "Inactive", "Active", and "NotApplicable". + :vartype peStatus: Union[str, "ManagedPEStatus"] + :ivar sharedUserList: + :vartype sharedUserList: list[str] + :ivar target: The connection URL to be used. + :vartype target: str + :ivar useWorkspaceManagedIdentity: + :vartype useWorkspaceManagedIdentity: bool + :ivar credentials: Account key object for connection credential. + :vartype credentials: "ConnectionAccountKey" + :ivar authType: Authentication type of the connection target. Required. ACCOUNT_KEY. + :vartype authType: Literal[ConnectionAuthType.ACCOUNT_KEY] + """ + + category: Union[str, "ConnectionCategory"] + """Category of the connection. Known values are: \"PythonFeed\", \"ContainerRegistry\", \"Git\", + \"S3\", \"Snowflake\", \"AzureKeyVault\", \"AzureSqlDb\", \"AzureSynapseAnalytics\", + \"AzureMySqlDb\", \"AzurePostgresDb\", \"ADLSGen2\", \"AzureContainerAppEnvironment\", + \"Redis\", \"ApiKey\", \"AzureOpenAI\", \"AIServices\", \"CognitiveSearch\", + \"CognitiveService\", \"CustomKeys\", \"AzureBlob\", \"AzureStorageAccount\", \"AzureOneLake\", + \"CosmosDb\", \"CosmosDbMongoDbApi\", \"AzureDataExplorer\", \"AzureMariaDb\", + \"AzureDatabricksDeltaLake\", \"AzureSqlMi\", \"AzureTableStorage\", \"AmazonRdsForOracle\", + \"AmazonRdsForSqlServer\", \"AmazonRedshift\", \"Db2\", \"Drill\", \"GoogleBigQuery\", + \"Greenplum\", \"Hbase\", \"Hive\", \"Impala\", \"Informix\", \"MariaDb\", \"MicrosoftAccess\", + \"MySql\", \"Netezza\", \"Oracle\", \"Phoenix\", \"PostgreSql\", \"Presto\", \"SapOpenHub\", + \"SapBw\", \"SapHana\", \"SapTable\", \"Spark\", \"SqlServer\", \"Sybase\", \"Teradata\", + \"Vertica\", \"Pinecone\", \"Databricks\", \"Cassandra\", \"Couchbase\", \"MongoDbV2\", + \"MongoDbAtlas\", \"AmazonS3Compatible\", \"FileServer\", \"FtpServer\", + \"GoogleCloudStorage\", \"Hdfs\", \"OracleCloudStorage\", \"Sftp\", \"GenericHttp\", + \"ODataRest\", \"Odbc\", \"GenericRest\", \"RemoteTool\", \"AmazonMws\", \"Concur\", + \"Dynamics\", \"DynamicsAx\", \"DynamicsCrm\", \"GoogleAdWords\", \"Hubspot\", \"Jira\", + \"Magento\", \"Marketo\", \"Office365\", \"Eloqua\", \"Responsys\", \"OracleServiceCloud\", + \"PayPal\", \"QuickBooks\", \"Salesforce\", \"SalesforceServiceCloud\", + \"SalesforceMarketingCloud\", \"SapCloudForCustomer\", \"SapEcc\", \"ServiceNow\", + \"SharePointOnlineList\", \"Shopify\", \"Square\", \"WebTable\", \"Xero\", \"Zoho\", + \"GenericContainerRegistry\", \"Elasticsearch\", \"AppInsights\", \"AppConfig\", \"OpenAI\", + \"Serp\", \"BingLLMSearch\", \"Serverless\", \"ManagedOnlineEndpoint\", \"ApiManagement\", + \"ModelGateway\", \"GroundingWithBingSearch\", \"GroundingWithCustomSearch\", \"Sharepoint\", + \"MicrosoftFabric\", \"PowerPlatformEnvironment\", and \"RemoteA2A\".""" + createdByWorkspaceArmId: str + error: str + """Provides the error message if the connection fails.""" + expiryTime: str + group: Union[str, "ConnectionGroup"] + """Group based on connection category. Known values are: \"Azure\", \"AzureAI\", \"Database\", + \"NoSQL\", \"File\", \"GenericProtocol\", and \"ServicesAndApps\".""" + isSharedToAll: bool + metadata: dict[str, str] + """Store user metadata for this connection.""" + peRequirement: Union[str, "ManagedPERequirement"] + """Specifies how private endpoints are used with this connection: 'Required', 'NotRequired', or + 'NotApplicable'. Known values are: \"Required\", \"NotRequired\", and \"NotApplicable\".""" + peStatus: Union[str, "ManagedPEStatus"] + """Specifies the status of private endpoints for this connection: 'Inactive', 'Active', or + 'NotApplicable'. Known values are: \"Inactive\", \"Active\", and \"NotApplicable\".""" + sharedUserList: list[str] + target: str + """The connection URL to be used.""" + useWorkspaceManagedIdentity: bool + credentials: "ConnectionAccountKey" + """Account key object for connection credential.""" + authType: Required[Literal[ConnectionAuthType.ACCOUNT_KEY]] + """Authentication type of the connection target. Required. ACCOUNT_KEY.""" + + +class DeploymentModel(TypedDict, total=False): + """Properties of Cognitive Services account deployment model. + + :ivar publisher: Deployment model publisher. + :vartype publisher: str + :ivar format: Deployment model format. + :vartype format: str + :ivar name: Deployment model name. + :vartype name: str + :ivar version: Optional. Deployment model version. If version is not specified, a default + version will be assigned. The default version is different for different models and might + change when there is new version available for a model. Default version for a model could be + found from list models API. + :vartype version: str + :ivar source: Optional. Deployment model source ARM resource ID. + :vartype source: str + :ivar sourceAccount: Optional. Source of the model, another Microsoft.CognitiveServices + accounts ARM resource ID. + :vartype sourceAccount: str + :ivar callRateLimit: The call rate limit Cognitive Services account. + :vartype callRateLimit: "CallRateLimit" + """ + + publisher: str + """Deployment model publisher.""" + format: str + """Deployment model format.""" + name: str + """Deployment model name.""" + version: str + """Optional. Deployment model version. If version is not specified, a default version will be + assigned. The default version is different for different models and might change when there is + new version available for a model. Default version for a model could be found from list models + API.""" + source: str + """Optional. Deployment model source ARM resource ID.""" + sourceAccount: str + """Optional. Source of the model, another Microsoft.CognitiveServices accounts ARM resource ID.""" + callRateLimit: "CallRateLimit" + """The call rate limit Cognitive Services account.""" + + +class AccountProperties(TypedDict, total=False): + """Properties of Cognitive Services account. + + :ivar provisioningState: Gets the status of the cognitive services account at the time the + operation was called. Known values are: "Accepted", "Creating", "Deleting", "Moving", "Failed", + "Succeeded", "Canceled", "ResolvingDNS", and "ExtensionUnreachable". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar endpoint: Endpoint of the created account. + :vartype endpoint: str + :ivar internalId: The internal identifier (deprecated, do not use this property). + :vartype internalId: str + :ivar capabilities: Gets the capabilities of the cognitive services account. Each item + indicates the capability of a specific feature. The values are read-only and for reference + only. + :vartype capabilities: list["SkuCapability"] + :ivar isMigrated: If the resource is migrated from an existing key. + :vartype isMigrated: bool + :ivar migrationToken: Resource migration token. + :vartype migrationToken: str + :ivar skuChangeInfo: Sku change info of account. + :vartype skuChangeInfo: "SkuChangeInfo" + :ivar customSubDomainName: Optional subdomain name used for token-based authentication. + :vartype customSubDomainName: str + :ivar networkAcls: A collection of rules governing the accessibility from specific network + locations. + :vartype networkAcls: "NetworkRuleSet" + :ivar encryption: The encryption properties for this resource. + :vartype encryption: "Encryption" + :ivar userOwnedStorage: The storage accounts for this resource. + :vartype userOwnedStorage: list["UserOwnedStorage"] + :ivar amlWorkspace: The user owned AML account properties. + :vartype amlWorkspace: "UserOwnedAmlWorkspace" + :ivar privateEndpointConnections: The private endpoint connection associated with the Cognitive + Services account. + :vartype privateEndpointConnections: list["PrivateEndpointConnection"] + :ivar publicNetworkAccess: Whether or not public endpoint access is allowed for this account. + Known values are: "Enabled" and "Disabled". + :vartype publicNetworkAccess: Union[str, "PublicNetworkAccess"] + :ivar apiProperties: The api properties for special APIs. + :vartype apiProperties: "ApiProperties" + :ivar dateCreated: Gets the date of cognitive services account creation. + :vartype dateCreated: str + :ivar callRateLimit: The call rate limit Cognitive Services account. + :vartype callRateLimit: "CallRateLimit" + :ivar dynamicThrottlingEnabled: The flag to enable dynamic throttling. + :vartype dynamicThrottlingEnabled: bool + :ivar storedCompletionsDisabled: The flag to disable stored completions. + :vartype storedCompletionsDisabled: bool + :ivar a365LoggingEnabled: Specifies whether A365 logging is enabled. Defaults to true. Set to + false to opt out. + :vartype a365LoggingEnabled: bool + :ivar quotaLimit: + :vartype quotaLimit: "QuotaLimit" + :ivar restrictOutboundNetworkAccess: + :vartype restrictOutboundNetworkAccess: bool + :ivar allowedFqdnList: + :vartype allowedFqdnList: list[str] + :ivar disableLocalAuth: + :vartype disableLocalAuth: bool + :ivar endpoints: Dictionary of . + :vartype endpoints: dict[str, str] + :ivar restore: + :vartype restore: bool + :ivar deletionDate: The deletion date, only available for deleted account. + :vartype deletionDate: str + :ivar scheduledPurgeDate: The scheduled purge date, only available for deleted account. + :vartype scheduledPurgeDate: str + :ivar locations: The multiregion settings of Cognitive Services account. + :vartype locations: "MultiRegionSettings" + :ivar commitmentPlanAssociations: The commitment plan associations of Cognitive Services + account. + :vartype commitmentPlanAssociations: list["CommitmentPlanAssociation"] + :ivar abusePenalty: The abuse penalty. + :vartype abusePenalty: "AbusePenalty" + :ivar raiMonitorConfig: Cognitive Services Rai Monitor Config. + :vartype raiMonitorConfig: "RaiMonitorConfig" + :ivar networkInjections: + :vartype networkInjections: list["NetworkInjection"] + :ivar foundryAutoUpgrade: Represents the foundry auto-upgrade configuration for a Cognitive + Services account. + :vartype foundryAutoUpgrade: "FoundryAutoUpgrade" + :ivar allowProjectManagement: Specifies whether this resource support project management as + child resources, used as containers for access management, data isolation and cost in AI + Foundry. + :vartype allowProjectManagement: bool + :ivar defaultProject: Specifies the project, by project name, that is targeted when data plane + endpoints are called without a project parameter. + :vartype defaultProject: str + :ivar associatedProjects: Specifies the projects, by project name, that are associated with + this resource. + :vartype associatedProjects: list[str] + :ivar capabilitySettings: Reusable default agent capability settings inherited by child + projects. + :vartype capabilitySettings: "CapabilitySettings" + :ivar agentHostingConfigurations: Customer-owned AKS hosting configurations for Foundry agents. + This property can only be specified when the account is created; an existing account without a + hosting configuration cannot add one later. This API version supports exactly one + configuration, while the array shape is reserved for future API versions that may support + multiple configurations. Once set, the configuration cannot be changed, removed, or reordered. + Account update requests should omit this property or send the complete existing value + unchanged. Responses only include hosting configuration types defined by the requested API + version. + :vartype agentHostingConfigurations: list["AgentHostingConfiguration"] + """ + + provisioningState: Union[str, "ProvisioningState"] + """Gets the status of the cognitive services account at the time the operation was called. Known + values are: \"Accepted\", \"Creating\", \"Deleting\", \"Moving\", \"Failed\", \"Succeeded\", + \"Canceled\", \"ResolvingDNS\", and \"ExtensionUnreachable\".""" + endpoint: str + """Endpoint of the created account.""" + internalId: str + """The internal identifier (deprecated, do not use this property).""" + capabilities: list["SkuCapability"] + """Gets the capabilities of the cognitive services account. Each item indicates the capability of + a specific feature. The values are read-only and for reference only.""" + isMigrated: bool + """If the resource is migrated from an existing key.""" + migrationToken: str + """Resource migration token.""" + skuChangeInfo: "SkuChangeInfo" + """Sku change info of account.""" + customSubDomainName: str + """Optional subdomain name used for token-based authentication.""" + networkAcls: "NetworkRuleSet" + """A collection of rules governing the accessibility from specific network locations.""" + encryption: "Encryption" + """The encryption properties for this resource.""" + userOwnedStorage: list["UserOwnedStorage"] + """The storage accounts for this resource.""" + amlWorkspace: "UserOwnedAmlWorkspace" + """The user owned AML account properties.""" + privateEndpointConnections: list["PrivateEndpointConnection"] + """The private endpoint connection associated with the Cognitive Services account.""" + publicNetworkAccess: Union[str, "PublicNetworkAccess"] + """Whether or not public endpoint access is allowed for this account. Known values are: + \"Enabled\" and \"Disabled\".""" + apiProperties: "ApiProperties" + """The api properties for special APIs.""" + dateCreated: str + """Gets the date of cognitive services account creation.""" + callRateLimit: "CallRateLimit" + """The call rate limit Cognitive Services account.""" + dynamicThrottlingEnabled: bool + """The flag to enable dynamic throttling.""" + storedCompletionsDisabled: bool + """The flag to disable stored completions.""" + a365LoggingEnabled: bool + """Specifies whether A365 logging is enabled. Defaults to true. Set to false to opt out.""" + quotaLimit: "QuotaLimit" + restrictOutboundNetworkAccess: bool + allowedFqdnList: list[str] + disableLocalAuth: bool + endpoints: dict[str, str] + """Dictionary of .""" + restore: bool + deletionDate: str + """The deletion date, only available for deleted account.""" + scheduledPurgeDate: str + """The scheduled purge date, only available for deleted account.""" + locations: "MultiRegionSettings" + """The multiregion settings of Cognitive Services account.""" + commitmentPlanAssociations: list["CommitmentPlanAssociation"] + """The commitment plan associations of Cognitive Services account.""" + abusePenalty: "AbusePenalty" + """The abuse penalty.""" + raiMonitorConfig: "RaiMonitorConfig" + """Cognitive Services Rai Monitor Config.""" + networkInjections: list["NetworkInjection"] + foundryAutoUpgrade: "FoundryAutoUpgrade" + """Represents the foundry auto-upgrade configuration for a Cognitive Services account.""" + allowProjectManagement: bool + """Specifies whether this resource support project management as child resources, used as + containers for access management, data isolation and cost in AI Foundry.""" + defaultProject: str + """Specifies the project, by project name, that is targeted when data plane endpoints are called + without a project parameter.""" + associatedProjects: list[str] + """Specifies the projects, by project name, that are associated with this resource.""" + capabilitySettings: "CapabilitySettings" + """Reusable default agent capability settings inherited by child projects.""" + agentHostingConfigurations: list["AgentHostingConfiguration"] + """Customer-owned AKS hosting configurations for Foundry agents. This property can only be + specified when the account is created; an existing account without a hosting configuration + cannot add one later. This API version supports exactly one configuration, while the array + shape is reserved for future API versions that may support multiple configurations. Once set, + the configuration cannot be changed, removed, or reordered. Account update requests should omit + this property or send the complete existing value unchanged. Responses only include hosting + configuration types defined by the requested API version.""" + + +class AgentApplication(ProxyResource): + """Agent Application 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" + :ivar properties: [Required] Additional attributes of the entity. Required. + :vartype properties: "AgenticApplicationProperties" + """ + + properties: Required["AgenticApplicationProperties"] + """[Required] Additional attributes of the entity. Required.""" + + +class AgentDeployment(ProxyResource): + """Agent Deployment 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" + :ivar properties: [Required] Additional attributes of the entity. Required. + :vartype properties: "AgentDeploymentProperties" + """ + + properties: Required["AgentDeploymentProperties"] + """[Required] Additional attributes of the entity. Required.""" + + +class ResourceBase(TypedDict, total=False): + """ResourceBase. + + :ivar description: The asset description text. + :vartype description: str + :ivar tags: Tag dictionary. Tags can be added, removed, and updated. + :vartype tags: dict[str, str] + """ + + description: Optional[str] + """The asset description text.""" + tags: Optional[dict[str, str]] + """Tag dictionary. Tags can be added, removed, and updated.""" + + +class AgenticApplicationProperties(ResourceBase): + """Resource type representing an agentic application as a management construct. + + :ivar description: The asset description text. + :vartype description: str + :ivar tags: Tag dictionary. Tags can be added, removed, and updated. + :vartype tags: dict[str, str] + :ivar displayName: The display name of the application. + :vartype displayName: str + :ivar baseUrl: The application's dedicated invocation endpoint. + :vartype baseUrl: str + :ivar agents: The list of agent definitions comprising this application, returned as references + to the objects under the parent project; use this to obtain a flat list of all agent-version + pairs represented by this application. + :vartype agents: list["AgentReferenceProperties"] + :ivar agentIdentityBlueprint: The EntraId Agentic Blueprint of the application. + :vartype agentIdentityBlueprint: "AssignedIdentity" + :ivar defaultInstanceIdentity: The (default) agent instance identity of the application. + :vartype defaultInstanceIdentity: "AssignedIdentity" + :ivar authorizationPolicy: Gets or sets the authorization policy associated with this agentic + application instance. + :vartype authorizationPolicy: "ApplicationAuthorizationPolicy" + :ivar trafficRoutingPolicy: Gets or sets the traffic routing policy for the application's + deployments. + :vartype trafficRoutingPolicy: "ApplicationTrafficRoutingPolicy" + :ivar provisioningState: Provisioning state of the application. Known values are: "Succeeded", + "Failed", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "AgenticApplicationProvisioningState"] + :ivar isEnabled: Enabledstate of the application. + :vartype isEnabled: bool + """ + + displayName: Optional[str] + """The display name of the application.""" + baseUrl: Optional[str] + """The application's dedicated invocation endpoint.""" + agents: Optional[list["AgentReferenceProperties"]] + """The list of agent definitions comprising this application, returned as references to the + objects under the parent project; use this to obtain a flat list of all agent-version pairs + represented by this application.""" + agentIdentityBlueprint: Optional["AssignedIdentity"] + """The EntraId Agentic Blueprint of the application.""" + defaultInstanceIdentity: Optional["AssignedIdentity"] + """The (default) agent instance identity of the application.""" + authorizationPolicy: Optional["ApplicationAuthorizationPolicy"] + """Gets or sets the authorization policy associated with this agentic application instance.""" + trafficRoutingPolicy: Optional["ApplicationTrafficRoutingPolicy"] + """Gets or sets the traffic routing policy for the application's deployments.""" + provisioningState: Union[str, "AgenticApplicationProvisioningState"] + """Provisioning state of the application. Known values are: \"Succeeded\", \"Failed\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + isEnabled: bool + """Enabledstate of the application.""" + + +class AgentProtocolVersion(TypedDict, total=False): + """Type modeling the protocol and version used by an agent/exposed by a deployment. + + :ivar protocol: The protocol used by the agent/exposed by a deployment. Known values are: + "Agent", "A2A", and "Responses". + :vartype protocol: Union[str, "AgentProtocol"] + :ivar version: The version of the protocol. + :vartype version: str + """ + + protocol: Union[str, "AgentProtocol"] + """The protocol used by the agent/exposed by a deployment. Known values are: \"Agent\", \"A2A\", + and \"Responses\".""" + version: Optional[str] + """The version of the protocol.""" + + +class AgentReferenceProperties(TypedDict, total=False): + """Type modeling a reference to a version of an agent definition. + + :ivar agentId: Gets the agent's unique identifier within the organization (subscription). + :vartype agentId: str + :ivar agentName: Gets the agent's name (unique within the project/app). + :vartype agentName: str + """ + + agentId: Optional[str] + """Gets the agent's unique identifier within the organization (subscription).""" + agentName: Optional[str] + """Gets the agent's name (unique within the project/app).""" + + +class ApiKeyAuthConnectionProperties(TypedDict, total=False): + """This connection type covers the generic ApiKey auth connection categories, for examples: + AzureOpenAI: + Category:= AzureOpenAI + AuthType:= ApiKey (as type discriminator) + Credentials:= {ApiKey} as .ApiKey + Target:= {ApiBase} + + CognitiveService: + Category:= CognitiveService + AuthType:= ApiKey (as type discriminator) + Credentials:= {SubscriptionKey} as ApiKey + Target:= ServiceRegion={serviceRegion} + + CognitiveSearch: + Category:= CognitiveSearch + AuthType:= ApiKey (as type discriminator) + Credentials:= {Key} as ApiKey + Target:= {Endpoint} + + Use Metadata property bag for ApiType, ApiVersion, Kind and other metadata fields. + + :ivar category: Category of the connection. Known values are: "PythonFeed", + "ContainerRegistry", "Git", "S3", "Snowflake", "AzureKeyVault", "AzureSqlDb", + "AzureSynapseAnalytics", "AzureMySqlDb", "AzurePostgresDb", "ADLSGen2", + "AzureContainerAppEnvironment", "Redis", "ApiKey", "AzureOpenAI", "AIServices", + "CognitiveSearch", "CognitiveService", "CustomKeys", "AzureBlob", "AzureStorageAccount", + "AzureOneLake", "CosmosDb", "CosmosDbMongoDbApi", "AzureDataExplorer", "AzureMariaDb", + "AzureDatabricksDeltaLake", "AzureSqlMi", "AzureTableStorage", "AmazonRdsForOracle", + "AmazonRdsForSqlServer", "AmazonRedshift", "Db2", "Drill", "GoogleBigQuery", "Greenplum", + "Hbase", "Hive", "Impala", "Informix", "MariaDb", "MicrosoftAccess", "MySql", "Netezza", + "Oracle", "Phoenix", "PostgreSql", "Presto", "SapOpenHub", "SapBw", "SapHana", "SapTable", + "Spark", "SqlServer", "Sybase", "Teradata", "Vertica", "Pinecone", "Databricks", "Cassandra", + "Couchbase", "MongoDbV2", "MongoDbAtlas", "AmazonS3Compatible", "FileServer", "FtpServer", + "GoogleCloudStorage", "Hdfs", "OracleCloudStorage", "Sftp", "GenericHttp", "ODataRest", "Odbc", + "GenericRest", "RemoteTool", "AmazonMws", "Concur", "Dynamics", "DynamicsAx", "DynamicsCrm", + "GoogleAdWords", "Hubspot", "Jira", "Magento", "Marketo", "Office365", "Eloqua", "Responsys", + "OracleServiceCloud", "PayPal", "QuickBooks", "Salesforce", "SalesforceServiceCloud", + "SalesforceMarketingCloud", "SapCloudForCustomer", "SapEcc", "ServiceNow", + "SharePointOnlineList", "Shopify", "Square", "WebTable", "Xero", "Zoho", + "GenericContainerRegistry", "Elasticsearch", "AppInsights", "AppConfig", "OpenAI", "Serp", + "BingLLMSearch", "Serverless", "ManagedOnlineEndpoint", "ApiManagement", "ModelGateway", + "GroundingWithBingSearch", "GroundingWithCustomSearch", "Sharepoint", "MicrosoftFabric", + "PowerPlatformEnvironment", and "RemoteA2A". + :vartype category: Union[str, "ConnectionCategory"] + :ivar createdByWorkspaceArmId: + :vartype createdByWorkspaceArmId: str + :ivar error: Provides the error message if the connection fails. + :vartype error: str + :ivar expiryTime: + :vartype expiryTime: str + :ivar group: Group based on connection category. Known values are: "Azure", "AzureAI", + "Database", "NoSQL", "File", "GenericProtocol", and "ServicesAndApps". + :vartype group: Union[str, "ConnectionGroup"] + :ivar isSharedToAll: + :vartype isSharedToAll: bool + :ivar metadata: Store user metadata for this connection. + :vartype metadata: dict[str, str] + :ivar peRequirement: Specifies how private endpoints are used with this connection: 'Required', + 'NotRequired', or 'NotApplicable'. Known values are: "Required", "NotRequired", and + "NotApplicable". + :vartype peRequirement: Union[str, "ManagedPERequirement"] + :ivar peStatus: Specifies the status of private endpoints for this connection: 'Inactive', + 'Active', or 'NotApplicable'. Known values are: "Inactive", "Active", and "NotApplicable". + :vartype peStatus: Union[str, "ManagedPEStatus"] + :ivar sharedUserList: + :vartype sharedUserList: list[str] + :ivar target: The connection URL to be used. + :vartype target: str + :ivar useWorkspaceManagedIdentity: + :vartype useWorkspaceManagedIdentity: bool + :ivar credentials: Api key object for connection credential. + :vartype credentials: "ConnectionApiKey" + :ivar authType: Authentication type of the connection target. Required. API_KEY. + :vartype authType: Literal[ConnectionAuthType.API_KEY] + """ + + category: Union[str, "ConnectionCategory"] + """Category of the connection. Known values are: \"PythonFeed\", \"ContainerRegistry\", \"Git\", + \"S3\", \"Snowflake\", \"AzureKeyVault\", \"AzureSqlDb\", \"AzureSynapseAnalytics\", + \"AzureMySqlDb\", \"AzurePostgresDb\", \"ADLSGen2\", \"AzureContainerAppEnvironment\", + \"Redis\", \"ApiKey\", \"AzureOpenAI\", \"AIServices\", \"CognitiveSearch\", + \"CognitiveService\", \"CustomKeys\", \"AzureBlob\", \"AzureStorageAccount\", \"AzureOneLake\", + \"CosmosDb\", \"CosmosDbMongoDbApi\", \"AzureDataExplorer\", \"AzureMariaDb\", + \"AzureDatabricksDeltaLake\", \"AzureSqlMi\", \"AzureTableStorage\", \"AmazonRdsForOracle\", + \"AmazonRdsForSqlServer\", \"AmazonRedshift\", \"Db2\", \"Drill\", \"GoogleBigQuery\", + \"Greenplum\", \"Hbase\", \"Hive\", \"Impala\", \"Informix\", \"MariaDb\", \"MicrosoftAccess\", + \"MySql\", \"Netezza\", \"Oracle\", \"Phoenix\", \"PostgreSql\", \"Presto\", \"SapOpenHub\", + \"SapBw\", \"SapHana\", \"SapTable\", \"Spark\", \"SqlServer\", \"Sybase\", \"Teradata\", + \"Vertica\", \"Pinecone\", \"Databricks\", \"Cassandra\", \"Couchbase\", \"MongoDbV2\", + \"MongoDbAtlas\", \"AmazonS3Compatible\", \"FileServer\", \"FtpServer\", + \"GoogleCloudStorage\", \"Hdfs\", \"OracleCloudStorage\", \"Sftp\", \"GenericHttp\", + \"ODataRest\", \"Odbc\", \"GenericRest\", \"RemoteTool\", \"AmazonMws\", \"Concur\", + \"Dynamics\", \"DynamicsAx\", \"DynamicsCrm\", \"GoogleAdWords\", \"Hubspot\", \"Jira\", + \"Magento\", \"Marketo\", \"Office365\", \"Eloqua\", \"Responsys\", \"OracleServiceCloud\", + \"PayPal\", \"QuickBooks\", \"Salesforce\", \"SalesforceServiceCloud\", + \"SalesforceMarketingCloud\", \"SapCloudForCustomer\", \"SapEcc\", \"ServiceNow\", + \"SharePointOnlineList\", \"Shopify\", \"Square\", \"WebTable\", \"Xero\", \"Zoho\", + \"GenericContainerRegistry\", \"Elasticsearch\", \"AppInsights\", \"AppConfig\", \"OpenAI\", + \"Serp\", \"BingLLMSearch\", \"Serverless\", \"ManagedOnlineEndpoint\", \"ApiManagement\", + \"ModelGateway\", \"GroundingWithBingSearch\", \"GroundingWithCustomSearch\", \"Sharepoint\", + \"MicrosoftFabric\", \"PowerPlatformEnvironment\", and \"RemoteA2A\".""" + createdByWorkspaceArmId: str + error: str + """Provides the error message if the connection fails.""" + expiryTime: str + group: Union[str, "ConnectionGroup"] + """Group based on connection category. Known values are: \"Azure\", \"AzureAI\", \"Database\", + \"NoSQL\", \"File\", \"GenericProtocol\", and \"ServicesAndApps\".""" + isSharedToAll: bool + metadata: dict[str, str] + """Store user metadata for this connection.""" + peRequirement: Union[str, "ManagedPERequirement"] + """Specifies how private endpoints are used with this connection: 'Required', 'NotRequired', or + 'NotApplicable'. Known values are: \"Required\", \"NotRequired\", and \"NotApplicable\".""" + peStatus: Union[str, "ManagedPEStatus"] + """Specifies the status of private endpoints for this connection: 'Inactive', 'Active', or + 'NotApplicable'. Known values are: \"Inactive\", \"Active\", and \"NotApplicable\".""" + sharedUserList: list[str] + target: str + """The connection URL to be used.""" + useWorkspaceManagedIdentity: bool + credentials: "ConnectionApiKey" + """Api key object for connection credential.""" + authType: Required[Literal[ConnectionAuthType.API_KEY]] + """Authentication type of the connection target. Required. API_KEY.""" + + +class ApiProperties(TypedDict, total=False): + """The api properties for special APIs. + + :ivar qnaRuntimeEndpoint: (QnAMaker Only) The runtime endpoint of QnAMaker. + :vartype qnaRuntimeEndpoint: str + :ivar qnaAzureSearchEndpointKey: (QnAMaker Only) The Azure Search endpoint key of QnAMaker. + :vartype qnaAzureSearchEndpointKey: str + :ivar qnaAzureSearchEndpointId: (QnAMaker Only) The Azure Search endpoint id of QnAMaker. + :vartype qnaAzureSearchEndpointId: str + :ivar statisticsEnabled: (Bing Search Only) The flag to enable statistics of Bing Search. + :vartype statisticsEnabled: bool + :ivar eventHubConnectionString: (Personalization Only) The flag to enable statistics of Bing + Search. + :vartype eventHubConnectionString: str + :ivar storageAccountConnectionString: (Personalization Only) The storage account connection + string. + :vartype storageAccountConnectionString: str + :ivar aadClientId: (Metrics Advisor Only) The Azure AD Client Id (Application Id). + :vartype aadClientId: str + :ivar aadTenantId: (Metrics Advisor Only) The Azure AD Tenant Id. + :vartype aadTenantId: str + :ivar superUser: (Metrics Advisor Only) The super user of Metrics Advisor. + :vartype superUser: str + :ivar websiteName: (Metrics Advisor Only) The website name of Metrics Advisor. + :vartype websiteName: str + """ + + qnaRuntimeEndpoint: str + """(QnAMaker Only) The runtime endpoint of QnAMaker.""" + qnaAzureSearchEndpointKey: str + """(QnAMaker Only) The Azure Search endpoint key of QnAMaker.""" + qnaAzureSearchEndpointId: str + """(QnAMaker Only) The Azure Search endpoint id of QnAMaker.""" + statisticsEnabled: bool + """(Bing Search Only) The flag to enable statistics of Bing Search.""" + eventHubConnectionString: str + """(Personalization Only) The flag to enable statistics of Bing Search.""" + storageAccountConnectionString: str + """(Personalization Only) The storage account connection string.""" + aadClientId: str + """(Metrics Advisor Only) The Azure AD Client Id (Application Id).""" + aadTenantId: str + """(Metrics Advisor Only) The Azure AD Tenant Id.""" + superUser: str + """(Metrics Advisor Only) The super user of Metrics Advisor.""" + websiteName: str + """(Metrics Advisor Only) The website name of Metrics Advisor.""" + + +class ApplicationTrafficRoutingPolicy(TypedDict, total=False): + """Type representing an application traffic policy as a property of an agentic application. + + :ivar protocol: Methodology used to route traffic to the application's deployments. + "FixedRatio" + :vartype protocol: Union[str, "TrafficRoutingProtocol"] + :ivar rules: Gets or sets the collection of traffic routing rules. + :vartype rules: list["TrafficRoutingRule"] + """ + + protocol: Union[str, "TrafficRoutingProtocol"] + """Methodology used to route traffic to the application's deployments. \"FixedRatio\"""" + rules: Optional[list["TrafficRoutingRule"]] + """Gets or sets the collection of traffic routing rules.""" + + +class ArcDeployment(ProxyResource): + """Cognitive Services account Arc deployment, backed by customer-managed Arc-enabled Kubernetes + resources. + + :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 of the Cognitive Services Arc deployment. Required. + :vartype properties: "ArcDeploymentProperties" + :ivar sku: The Arc deployment SKU. Only the SKU name is required for Arc deployments. Required. + :vartype sku: "ArcDeploymentSku" + :ivar etag: Resource Etag. + :vartype etag: str + """ + + properties: Required["ArcDeploymentProperties"] + """Properties of the Cognitive Services Arc deployment. Required.""" + sku: Required["ArcDeploymentSku"] + """The Arc deployment SKU. Only the SKU name is required for Arc deployments. Required.""" + etag: str + """Resource Etag.""" + + +class ArcDeploymentCpuMemoryResourceRequirements(TypedDict, total=False): # pylint: disable=name-too-long + """CPU and memory resource requirements for an Arc deployment replica. + + :ivar cpu: Kubernetes CPU quantity string, for example 500m, 2, 4, or 8. Required. + :vartype cpu: str + :ivar memory: Kubernetes memory quantity string, for example 512Mi, 2Gi, or 16Gi. Required. + :vartype memory: str + """ + + cpu: Required[str] + """Kubernetes CPU quantity string, for example 500m, 2, 4, or 8. Required.""" + memory: Required[str] + """Kubernetes memory quantity string, for example 512Mi, 2Gi, or 16Gi. Required.""" + + +class ArcDeploymentKubernetesResources(TypedDict, total=False): + """Per-replica Kubernetes resource requests and limits for an Arc deployment. + + :ivar requests: Kubernetes CPU and memory resource requests for each deployment replica. + :vartype requests: "ArcDeploymentCpuMemoryResourceRequirements" + :ivar limits: Kubernetes resource limits for each deployment replica. + :vartype limits: "ArcDeploymentResourceRequirements" + """ + + requests: "ArcDeploymentCpuMemoryResourceRequirements" + """Kubernetes CPU and memory resource requests for each deployment replica.""" + limits: "ArcDeploymentResourceRequirements" + """Kubernetes resource limits for each deployment replica.""" + + +class ArcDeploymentModel(TypedDict, total=False): + """Model reference for an Arc deployment. + + :ivar format: Deployment model format. Required. + :vartype format: str + :ivar name: Deployment model name. Required. + :vartype name: str + """ + + format: Required[str] + """Deployment model format. Required.""" + name: Required[str] + """Deployment model name. Required.""" + + +class ArcDeploymentPatchCpuMemoryResourceRequirements(TypedDict, total=False): # pylint: disable=name-too-long + """CPU and memory resource requirements for an Arc deployment replica update. + + :ivar cpu: Kubernetes CPU quantity string, for example 500m, 2, 4, or 8. + :vartype cpu: str + :ivar memory: Kubernetes memory quantity string, for example 512Mi, 2Gi, or 16Gi. + :vartype memory: str + """ + + cpu: str + """Kubernetes CPU quantity string, for example 500m, 2, 4, or 8.""" + memory: str + """Kubernetes memory quantity string, for example 512Mi, 2Gi, or 16Gi.""" + + +class ArcDeploymentPatchKubernetesResources(TypedDict, total=False): + """Per-replica Kubernetes resource requests and limits for an Arc deployment update. + + :ivar requests: Kubernetes CPU and memory resource requests for each deployment replica. + :vartype requests: "ArcDeploymentPatchCpuMemoryResourceRequirements" + :ivar limits: Kubernetes resource limits for each deployment replica. + :vartype limits: "ArcDeploymentResourceRequirements" + """ + + requests: "ArcDeploymentPatchCpuMemoryResourceRequirements" + """Kubernetes CPU and memory resource requests for each deployment replica.""" + limits: "ArcDeploymentResourceRequirements" + """Kubernetes resource limits for each deployment replica.""" + + +class ArcDeploymentProperties(TypedDict, total=False): + """Properties of a Cognitive Services Arc deployment. + + :ivar model: Model reference. Required on creation and immutable after creation. Required. + :vartype model: "ArcDeploymentModel" + :ivar extensionId: Full Azure resource ID of the Foundry inference extension on the target + Arc-enabled Kubernetes cluster. Required on creation and immutable after creation. Required. + :vartype extensionId: str + :ivar runtime: Inference runtime. Required on creation and immutable after creation. Required. + Known values are: "vllm" and "onnx-genai". + :vartype runtime: Union[str, "ArcDeploymentRuntime"] + :ivar compute: Compute type for the deployment. Required on creation and immutable after + creation. Required. Known values are: "gpu" and "cpu". + :vartype compute: Union[str, "ArcDeploymentComputeType"] + :ivar deploymentTemplate: Optional deployment template identifier for advanced vLLM tuning. + Allowed only when runtime is vllm. Example: + azureml://registries/{registry}/deploymenttemplates/{template}/versions/{version}. + :vartype deploymentTemplate: str + :ivar vllmParameters: Read-only. Effective vLLM runtime parameters resolved for the deployed + model. Returned only when runtime is vllm. + :vartype vllmParameters: "ArcDeploymentVllmParameters" + :ivar replicas: Physical replica count on the Arc cluster. Required. + :vartype replicas: int + :ivar resources: Per-replica Kubernetes resource requests and limits. Required. + :vartype resources: "ArcDeploymentKubernetesResources" + :ivar nodeSelector: Kubernetes node selector key-value map used to schedule pods onto nodes + with matching labels. + :vartype nodeSelector: dict[str, str] + :ivar deploymentState: The deployment state. Known values are: "Running" and "Paused". + :vartype deploymentState: Union[str, "DeploymentState"] + :ivar raiPolicyName: The name of RAI policy. + :vartype raiPolicyName: str + :ivar provisioningState: Read-only. Current provisioning state. Known values are: "Accepted", + "Creating", "Deleting", "Moving", "Failed", "Succeeded", "Canceled", "ResolvingDNS", and + "ExtensionUnreachable". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar provisioningDetails: Read-only. Status message and timestamp from the last provisioning + operation. + :vartype provisioningDetails: "ArcDeploymentProvisioningDetails" + :ivar inferenceEndpoint: Read-only. Base URL for inference calls to this deployment on the Arc + cluster. Populated when provisioningState is Succeeded. + :vartype inferenceEndpoint: str + :ivar capabilities: Read-only. Deployment capabilities represented as key-value pairs. + :vartype capabilities: dict[str, str] + """ + + model: Required["ArcDeploymentModel"] + """Model reference. Required on creation and immutable after creation. Required.""" + extensionId: Required[str] + """Full Azure resource ID of the Foundry inference extension on the target Arc-enabled Kubernetes + cluster. Required on creation and immutable after creation. Required.""" + runtime: Required[Union[str, "ArcDeploymentRuntime"]] + """Inference runtime. Required on creation and immutable after creation. Required. Known values + are: \"vllm\" and \"onnx-genai\".""" + compute: Required[Union[str, "ArcDeploymentComputeType"]] + """Compute type for the deployment. Required on creation and immutable after creation. Required. + Known values are: \"gpu\" and \"cpu\".""" + deploymentTemplate: str + """Optional deployment template identifier for advanced vLLM tuning. Allowed only when runtime is + vllm. Example: + azureml://registries/{registry}/deploymenttemplates/{template}/versions/{version}.""" + vllmParameters: "ArcDeploymentVllmParameters" + """Read-only. Effective vLLM runtime parameters resolved for the deployed model. Returned only + when runtime is vllm.""" + replicas: Required[int] + """Physical replica count on the Arc cluster. Required.""" + resources: Required["ArcDeploymentKubernetesResources"] + """Per-replica Kubernetes resource requests and limits. Required.""" + nodeSelector: dict[str, str] + """Kubernetes node selector key-value map used to schedule pods onto nodes with matching labels.""" + deploymentState: Union[str, "DeploymentState"] + """The deployment state. Known values are: \"Running\" and \"Paused\".""" + raiPolicyName: str + """The name of RAI policy.""" + provisioningState: Union[str, "ProvisioningState"] + """Read-only. Current provisioning state. Known values are: \"Accepted\", \"Creating\", + \"Deleting\", \"Moving\", \"Failed\", \"Succeeded\", \"Canceled\", \"ResolvingDNS\", and + \"ExtensionUnreachable\".""" + provisioningDetails: "ArcDeploymentProvisioningDetails" + """Read-only. Status message and timestamp from the last provisioning operation.""" + inferenceEndpoint: str + """Read-only. Base URL for inference calls to this deployment on the Arc cluster. Populated when + provisioningState is Succeeded.""" + capabilities: dict[str, str] + """Read-only. Deployment capabilities represented as key-value pairs.""" + + +class ArcDeploymentProvisioningDetails(TypedDict, total=False): + """Provisioning status details for an Arc deployment. + + :ivar message: A human-readable status message from the last provisioning operation. + :vartype message: str + :ivar lastOperationTimestamp: Timestamp of the last provisioning operation. + :vartype lastOperationTimestamp: str + """ + + message: str + """A human-readable status message from the last provisioning operation.""" + lastOperationTimestamp: str + """Timestamp of the last provisioning operation.""" + + +class ArcDeploymentResourceRequirements(TypedDict, total=False): + """Kubernetes resource requirements for an Arc deployment replica. Specify either cpu and memory + together, or gpu. GPU is supported only in limits, not requests. + + :ivar cpu: Kubernetes CPU quantity string, for example 500m, 2, 4, or 8. Required with memory + when specifying CPU and memory limits. Do not specify with gpu. + :vartype cpu: str + :ivar memory: Kubernetes memory quantity string, for example 512Mi, 2Gi, or 16Gi. Required with + cpu when specifying CPU and memory limits. Do not specify with gpu. + :vartype memory: str + :ivar gpu: Kubernetes GPU quantity, for example 1, 2, or 5. Required when specifying GPU + limits. Do not specify with cpu or memory. + :vartype gpu: int + """ + + cpu: str + """Kubernetes CPU quantity string, for example 500m, 2, 4, or 8. Required with memory when + specifying CPU and memory limits. Do not specify with gpu.""" + memory: str + """Kubernetes memory quantity string, for example 512Mi, 2Gi, or 16Gi. Required with cpu when + specifying CPU and memory limits. Do not specify with gpu.""" + gpu: int + """Kubernetes GPU quantity, for example 1, 2, or 5. Required when specifying GPU limits. Do not + specify with cpu or memory.""" + + +class ArcDeploymentSku(TypedDict, total=False): + """SKU for an Arc deployment. + + :ivar name: The name of the Arc deployment SKU. Must be Arc. Required. "Arc" + :vartype name: Union[str, "ArcDeploymentSkuName"] + """ + + name: Required[Union[str, "ArcDeploymentSkuName"]] + """The name of the Arc deployment SKU. Must be Arc. Required. \"Arc\"""" + + +class ArcDeploymentUpdate(TypedDict, total=False): + """The object used to update an Arc deployment. + + :ivar properties: Properties that can be updated on an Arc deployment. + :vartype properties: "ArcDeploymentUpdateProperties" + """ + + properties: "ArcDeploymentUpdateProperties" + """Properties that can be updated on an Arc deployment.""" + + +class ArcDeploymentUpdateProperties(TypedDict, total=False): + """Mutable properties for an Arc deployment. + + :ivar replicas: Physical replica count on the Arc cluster. + :vartype replicas: int + :ivar resources: Per-replica Kubernetes resource requests and limits. + :vartype resources: "ArcDeploymentPatchKubernetesResources" + :ivar nodeSelector: Kubernetes node selector key-value map used to schedule pods onto nodes + with matching labels. + :vartype nodeSelector: dict[str, str] + """ + + replicas: int + """Physical replica count on the Arc cluster.""" + resources: "ArcDeploymentPatchKubernetesResources" + """Per-replica Kubernetes resource requests and limits.""" + nodeSelector: dict[str, str] + """Kubernetes node selector key-value map used to schedule pods onto nodes with matching labels.""" + + +class ArcDeploymentVllmParameters(TypedDict, total=False): + """Effective vLLM runtime parameters for an Arc deployment. + + :ivar tensorParallelSize: Number of GPUs used for tensor parallelism. + :vartype tensorParallelSize: int + :ivar maxModelLen: Maximum model context length. + :vartype maxModelLen: int + :ivar gpuMemoryUtilization: Fraction of GPU memory reserved for model execution. + :vartype gpuMemoryUtilization: float + :ivar enforceEager: Whether eager execution is enforced for the vLLM runtime. + :vartype enforceEager: bool + """ + + tensorParallelSize: int + """Number of GPUs used for tensor parallelism.""" + maxModelLen: int + """Maximum model context length.""" + gpuMemoryUtilization: float + """Fraction of GPU memory reserved for model execution.""" + enforceEager: bool + """Whether eager execution is enforced for the vLLM runtime.""" + + +class AssignedIdentity(TypedDict, total=False): + """Type representing an identity assignment. + + :ivar kind: Specifies the kind of Entra identity described by this object. Required. Known + values are: "AgentBlueprint", "AgentInstance", "AgenticUser", "Managed", and "None". + :vartype kind: Union[str, "IdentityKind"] + :ivar type: Enumeration of identity types, from the perspective of management. Required. Known + values are: "System", "User", and "None". + :vartype type: Union[str, "IdentityManagementType"] + :ivar clientId: The client ID of the identity. Required. + :vartype clientId: str + :ivar principalId: The principal ID of the identity. Required. + :vartype principalId: str + :ivar tenantId: The tenant ID of the identity. Required. + :vartype tenantId: str + :ivar subject: The subject of this identity assignment. + :vartype subject: str + :ivar provisioningState: Represents the provisioning state of an identity resource. Known + values are: "Creating", "Updating", "Succeeded", "Failed", "Canceled", and "Deleting". + :vartype provisioningState: Union[str, "IdentityProvisioningState"] + """ + + kind: Required[Union[str, "IdentityKind"]] + """Specifies the kind of Entra identity described by this object. Required. Known values are: + \"AgentBlueprint\", \"AgentInstance\", \"AgenticUser\", \"Managed\", and \"None\".""" + type: Required[Union[str, "IdentityManagementType"]] + """Enumeration of identity types, from the perspective of management. Required. Known values are: + \"System\", \"User\", and \"None\".""" + clientId: Required[str] + """The client ID of the identity. Required.""" + principalId: Required[str] + """The principal ID of the identity. Required.""" + tenantId: Required[str] + """The tenant ID of the identity. Required.""" + subject: Optional[str] + """The subject of this identity assignment.""" + provisioningState: Union[str, "IdentityProvisioningState"] + """Represents the provisioning state of an identity resource. Known values are: \"Creating\", + \"Updating\", \"Succeeded\", \"Failed\", \"Canceled\", and \"Deleting\".""" + + +class CalculateModelCapacityParameter(TypedDict, total=False): + """Calculate Model Capacity parameter. + + :ivar model: Properties of Cognitive Services account deployment model. + :vartype model: "DeploymentModel" + :ivar skuName: The name of SKU. + :vartype skuName: str + :ivar workloads: List of Model Capacity Calculator Workload. + :vartype workloads: list["ModelCapacityCalculatorWorkload"] + """ + + model: "DeploymentModel" + """Properties of Cognitive Services account deployment model.""" + skuName: str + """The name of SKU.""" + workloads: list["ModelCapacityCalculatorWorkload"] + """List of Model Capacity Calculator Workload.""" + + +class CallRateLimit(TypedDict, total=False): + """The call rate limit Cognitive Services account. + + :ivar count: The count value of Call Rate Limit. + :vartype count: float + :ivar renewalPeriod: The renewal period in seconds of Call Rate Limit. + :vartype renewalPeriod: float + :ivar rules: + :vartype rules: list["ThrottlingRule"] + """ + + count: float + """The count value of Call Rate Limit.""" + renewalPeriod: float + """The renewal period in seconds of Call Rate Limit.""" + rules: list["ThrottlingRule"] + + +class CapabilityHost(ProxyResource): + """Azure Resource Manager resource envelope. + + :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: [Required] Additional attributes of the entity. Required. + :vartype properties: "CapabilityHostProperties" + """ + + properties: Required["CapabilityHostProperties"] + """[Required] Additional attributes of the entity. Required.""" + + +class CapabilityHostProperties(ResourceBase): + """CapabilityHostProperties. + + :ivar description: The asset description text. + :vartype description: str + :ivar tags: Tag dictionary. Tags can be added, removed, and updated. + :vartype tags: dict[str, str] + :ivar aiServicesConnections: List of AI services connections. + :vartype aiServicesConnections: list[str] + :ivar capabilityHostKind: Kind of this capability host. "Agents" + :vartype capabilityHostKind: Union[str, "CapabilityHostKind"] + :ivar customerSubnet: Customer subnet info to help set up this capability host. + :vartype customerSubnet: str + :ivar provisioningState: Provisioning state for the CapabilityHost. Known values are: + "Succeeded", "Failed", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "CapabilityHostProvisioningState"] + :ivar storageConnections: List of connection names from those available in the account or + project to be used as a storage resource. + :vartype storageConnections: list[str] + :ivar threadStorageConnections: List of connection names from those available in the account or + project to be used for Thread storage. + :vartype threadStorageConnections: list[str] + :ivar vectorStoreConnections: List of connection names from those available in the account or + project to be used for vector database (e.g. CosmosDB). + :vartype vectorStoreConnections: list[str] + :ivar enablePublicHostingEnvironment: Whether public hosting environment is enabled for the + capability host. + :vartype enablePublicHostingEnvironment: bool + """ + + aiServicesConnections: Optional[list[str]] + """List of AI services connections.""" + capabilityHostKind: Union[str, "CapabilityHostKind"] + """Kind of this capability host. \"Agents\"""" + customerSubnet: Optional[str] + """Customer subnet info to help set up this capability host.""" + provisioningState: Union[str, "CapabilityHostProvisioningState"] + """Provisioning state for the CapabilityHost. Known values are: \"Succeeded\", \"Failed\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + storageConnections: Optional[list[str]] + """List of connection names from those available in the account or project to be used as a storage + resource.""" + threadStorageConnections: Optional[list[str]] + """List of connection names from those available in the account or project to be used for Thread + storage.""" + vectorStoreConnections: Optional[list[str]] + """List of connection names from those available in the account or project to be used for vector + database (e.g. CosmosDB).""" + enablePublicHostingEnvironment: bool + """Whether public hosting environment is enabled for the capability host.""" + + +class CapabilitySettings(TypedDict, total=False): + """Extensible agent capability configuration. Carries the Azure resource IDs of the agent storage + dependencies. Modeled as an object so future capability-backed resources can be added without + changing the account or project contract. + + :ivar documentStore: Azure resource ID of the document store used by agent runtime state. + :vartype documentStore: str + :ivar vectorStore: Azure resource ID of the vector store used by agent retrieval and indexing. + :vartype vectorStore: str + :ivar blobStore: Azure resource ID of the blob store used by agent file and artifact storage. + :vartype blobStore: str + """ + + documentStore: str + """Azure resource ID of the document store used by agent runtime state.""" + vectorStore: str + """Azure resource ID of the vector store used by agent retrieval and indexing.""" + blobStore: str + """Azure resource ID of the blob store used by agent file and artifact storage.""" + + +class ChannelsBuiltInAuthorizationPolicy(TypedDict, total=False): + """Represents a built-in authorization policy specific to Azure Bot Service/Channels + authentication. + + :ivar type: Authorization scheme type. Required. Channels-specific (AzureBotService) + authorization. + :vartype type: Literal[BuiltInAuthorizationScheme.CHANNELS] + """ + + type: Required[Literal[BuiltInAuthorizationScheme.CHANNELS]] + """Authorization scheme type. Required. Channels-specific (AzureBotService) authorization.""" + + +class CheckDomainAvailabilityParameter(TypedDict, total=False): + """Check Domain availability parameter. + + :ivar subdomainName: The subdomain name to use. Required. + :vartype subdomainName: str + :ivar type: The Type of the resource. Required. + :vartype type: str + :ivar kind: The kind (type) of cognitive service account. + :vartype kind: str + """ + + subdomainName: Required[str] + """The subdomain name to use. Required.""" + type: Required[str] + """The Type of the resource. Required.""" + kind: str + """The kind (type) of cognitive service account.""" + + +class CheckSkuAvailabilityParameter(TypedDict, total=False): + """Check SKU availability parameter. + + :ivar skus: The SKU of the resource. Required. + :vartype skus: list[str] + :ivar kind: The kind (type) of cognitive service account. Required. + :vartype kind: str + :ivar type: The Type of the resource. Required. + :vartype type: str + """ + + skus: Required[list[str]] + """The SKU of the resource. Required.""" + kind: Required[str] + """The kind (type) of cognitive service account. Required.""" + type: Required[str] + """The Type of the resource. Required.""" + + +class ClusterComputeProperties(TypedDict, total=False): + """Properties for a Cluster (AKS-backed) compute resource. + + :ivar location: The location of the compute resource. Required. + :vartype location: str + :ivar provisioningState: Provisioning state of the compute resource. Known values are: + "Accepted", "Succeeded", "Failed", "Canceled", "Deleting", "Scaling", "Disabled", "Starting", + "Stopping", "Restarting", and "Stopped". + :vartype provisioningState: Union[str, "ComputeProvisioningState"] + :ivar errors: Error details for the compute resource. + :vartype errors: list["ErrorDetail"] + :ivar creationTime: Creation time of the compute resource. + :vartype creationTime: str + :ivar computeType: The type of compute resource. Required. Cluster (AKS-backed) compute type. + :vartype computeType: Literal[ComputeType.CLUSTER] + :ivar pools: Pools attached to this compute cluster. Required. + :vartype pools: list["Pool"] + :ivar subnetArmId: ARM ID of the subnet used for compute. + :vartype subnetArmId: str + """ + + location: Required[str] + """The location of the compute resource. Required.""" + provisioningState: Union[str, "ComputeProvisioningState"] + """Provisioning state of the compute resource. Known values are: \"Accepted\", \"Succeeded\", + \"Failed\", \"Canceled\", \"Deleting\", \"Scaling\", \"Disabled\", \"Starting\", \"Stopping\", + \"Restarting\", and \"Stopped\".""" + errors: list["ErrorDetail"] + """Error details for the compute resource.""" + creationTime: str + """Creation time of the compute resource.""" + computeType: Required[Literal[ComputeType.CLUSTER]] + """The type of compute resource. Required. Cluster (AKS-backed) compute type.""" + pools: Required[list["Pool"]] + """Pools attached to this compute cluster. Required.""" + subnetArmId: str + """ARM ID of the subnet used for compute.""" + + +class CommitmentPeriod(TypedDict, total=False): + """Cognitive Services account commitment period. + + :ivar tier: Commitment period commitment tier. + :vartype tier: str + :ivar count: Commitment period commitment count. + :vartype count: int + :ivar quota: Cognitive Services account commitment quota. + :vartype quota: "CommitmentQuota" + :ivar startDate: Commitment period start date. + :vartype startDate: str + :ivar endDate: Commitment period end date. + :vartype endDate: str + """ + + tier: str + """Commitment period commitment tier.""" + count: int + """Commitment period commitment count.""" + quota: "CommitmentQuota" + """Cognitive Services account commitment quota.""" + startDate: str + """Commitment period start date.""" + endDate: str + """Commitment period end date.""" + + +class CommitmentPlan(ProxyResource): + """Cognitive Services account commitment plan. + + :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 of Cognitive Services account commitment plan. + :vartype properties: "CommitmentPlanProperties" + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. + :vartype location: str + :ivar etag: Resource Etag. + :vartype etag: str + :ivar kind: The kind (type) of cognitive service account. + :vartype kind: str + :ivar sku: The resource model definition representing SKU. + :vartype sku: "Sku" + """ + + properties: "CommitmentPlanProperties" + """Properties of Cognitive Services account commitment plan.""" + tags: dict[str, str] + """Resource tags.""" + location: str + """The geo-location where the resource lives.""" + etag: str + """Resource Etag.""" + kind: str + """The kind (type) of cognitive service account.""" + sku: "Sku" + """The resource model definition representing SKU.""" + + +class CommitmentPlanAccountAssociation(ProxyResource): + """The commitment plan association. + + :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 of Cognitive Services account commitment plan association. + :vartype properties: "CommitmentPlanAccountAssociationProperties" + :ivar etag: Resource Etag. + :vartype etag: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + """ + + properties: "CommitmentPlanAccountAssociationProperties" + """Properties of Cognitive Services account commitment plan association.""" + etag: str + """Resource Etag.""" + tags: dict[str, str] + """Resource tags.""" + + +class CommitmentPlanAccountAssociationProperties(TypedDict, total=False): # pylint: disable=name-too-long + """The commitment plan account association properties. + + :ivar accountId: The Azure resource id of the account. + :vartype accountId: str + """ + + accountId: str + """The Azure resource id of the account.""" + + +class CommitmentPlanAssociation(TypedDict, total=False): + """The commitment plan association. + + :ivar commitmentPlanId: The Azure resource id of the commitment plan. + :vartype commitmentPlanId: str + :ivar commitmentPlanLocation: The location of of the commitment plan. + :vartype commitmentPlanLocation: str + """ + + commitmentPlanId: str + """The Azure resource id of the commitment plan.""" + commitmentPlanLocation: str + """The location of of the commitment plan.""" + + +class CommitmentPlanProperties(TypedDict, total=False): + """Properties of Cognitive Services account commitment plan. + + :ivar provisioningState: Gets the status of the resource at the time the operation was called. + Known values are: "Accepted", "Creating", "Deleting", "Moving", "Failed", "Succeeded", and + "Canceled". + :vartype provisioningState: Union[str, "CommitmentPlanProvisioningState"] + :ivar commitmentPlanGuid: Commitment plan guid. + :vartype commitmentPlanGuid: str + :ivar hostingModel: Account hosting model. Known values are: "Web", "ConnectedContainer", + "DisconnectedContainer", and "ProvisionedWeb". + :vartype hostingModel: Union[str, "HostingModel"] + :ivar planType: Commitment plan type. + :vartype planType: str + :ivar current: Cognitive Services account commitment period. + :vartype current: "CommitmentPeriod" + :ivar autoRenew: AutoRenew commitment plan. + :vartype autoRenew: bool + :ivar next: Cognitive Services account commitment period. + :vartype next: "CommitmentPeriod" + :ivar last: Cognitive Services account commitment period. + :vartype last: "CommitmentPeriod" + :ivar provisioningIssues: The list of ProvisioningIssue. + :vartype provisioningIssues: list[str] + """ + + provisioningState: Union[str, "CommitmentPlanProvisioningState"] + """Gets the status of the resource at the time the operation was called. Known values are: + \"Accepted\", \"Creating\", \"Deleting\", \"Moving\", \"Failed\", \"Succeeded\", and + \"Canceled\".""" + commitmentPlanGuid: str + """Commitment plan guid.""" + hostingModel: Union[str, "HostingModel"] + """Account hosting model. Known values are: \"Web\", \"ConnectedContainer\", + \"DisconnectedContainer\", and \"ProvisionedWeb\".""" + planType: str + """Commitment plan type.""" + current: "CommitmentPeriod" + """Cognitive Services account commitment period.""" + autoRenew: bool + """AutoRenew commitment plan.""" + next: "CommitmentPeriod" + """Cognitive Services account commitment period.""" + last: "CommitmentPeriod" + """Cognitive Services account commitment period.""" + provisioningIssues: list[str] + """The list of ProvisioningIssue.""" + + +class CommitmentQuota(TypedDict, total=False): + """Cognitive Services account commitment quota. + + :ivar quantity: Commitment quota quantity. + :vartype quantity: int + :ivar unit: Commitment quota unit. + :vartype unit: str + """ + + quantity: int + """Commitment quota quantity.""" + unit: str + """Commitment quota unit.""" + + +class Compute(ProxyResource): + """Cognitive Services compute resource. Supports polymorphic compute types (Cluster, + ContainerInstance) via the computeType discriminator in properties. + + :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: Polymorphic properties of the compute resource. Use computeType to select + Cluster or ContainerInstance. Required. + :vartype properties: "ComputeProperties" + :ivar etag: Resource Etag. + :vartype etag: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar kind: The kind (type) of compute resource. + :vartype kind: str + :ivar identity: Identity for the resource. + :vartype identity: "Identity" + """ + + properties: Required["ComputeProperties"] + """Polymorphic properties of the compute resource. Use computeType to select Cluster or + ContainerInstance. Required.""" + etag: str + """Resource Etag.""" + tags: dict[str, str] + """Resource tags.""" + kind: str + """The kind (type) of compute resource.""" + identity: "Identity" + """Identity for the resource.""" + + +class ConnectionAccessKey(TypedDict, total=False): + """ConnectionAccessKey. + + :ivar accessKeyId: + :vartype accessKeyId: str + :ivar secretAccessKey: + :vartype secretAccessKey: str + """ + + accessKeyId: str + secretAccessKey: str + + +class ConnectionAccountKey(TypedDict, total=False): + """Account key object for connection credential. + + :ivar key: + :vartype key: str + """ + + key: str + + +class ConnectionApiKey(TypedDict, total=False): + """Api key object for connection credential. + + :ivar key: + :vartype key: str + """ + + key: str + + +class ConnectionManagedIdentity(TypedDict, total=False): + """ConnectionManagedIdentity. + + :ivar clientId: + :vartype clientId: str + :ivar resourceId: + :vartype resourceId: str + """ + + clientId: str + resourceId: str + + +class ConnectionOAuth2(TypedDict, total=False): + """ClientId and ClientSecret are required. Other properties are optional depending on each OAuth2 + provider's implementation. + + :ivar authUrl: Required by Concur connection category. + :vartype authUrl: str + :ivar clientId: Client id in the format of UUID. + :vartype clientId: str + :ivar clientSecret: + :vartype clientSecret: str + :ivar developerToken: Required by GoogleAdWords connection category. + :vartype developerToken: str + :ivar password: + :vartype password: str + :ivar refreshToken: Required by GoogleBigQuery, GoogleAdWords, Hubspot, QuickBooks, Square, + Xero, Zoho where user needs to get RefreshToken offline. + :vartype refreshToken: str + :ivar tenantId: Required by QuickBooks and Xero connection categories. + :vartype tenantId: str + :ivar username: Concur, ServiceNow auth server AccessToken grant type is 'Password' which + requires UsernamePassword. + :vartype username: str + """ + + authUrl: str + """Required by Concur connection category.""" + clientId: str + """Client id in the format of UUID.""" + clientSecret: str + developerToken: str + """Required by GoogleAdWords connection category.""" + password: str + refreshToken: str + """Required by GoogleBigQuery, GoogleAdWords, Hubspot, QuickBooks, Square, Xero, Zoho where user + needs to get RefreshToken offline.""" + tenantId: str + """Required by QuickBooks and Xero connection categories.""" + username: str + """Concur, ServiceNow auth server AccessToken grant type is 'Password' which requires + UsernamePassword.""" + + +class ConnectionPersonalAccessToken(TypedDict, total=False): + """ConnectionPersonalAccessToken. + + :ivar pat: + :vartype pat: str + """ + + pat: str + + +class ConnectionPropertiesV2BasicResource(ProxyResource): + """Connection base resource schema. + + :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: Connection property base schema. Required. + :vartype properties: "ConnectionPropertiesV2" + """ + + properties: Required["ConnectionPropertiesV2"] + """Connection property base schema. Required.""" + + +class ConnectionServicePrincipal(TypedDict, total=False): + """ConnectionServicePrincipal. + + :ivar clientId: + :vartype clientId: str + :ivar clientSecret: + :vartype clientSecret: str + :ivar tenantId: + :vartype tenantId: str + """ + + clientId: str + clientSecret: str + tenantId: str + + +class ConnectionSharedAccessSignature(TypedDict, total=False): + """ConnectionSharedAccessSignature. + + :ivar sas: + :vartype sas: str + """ + + sas: str + + +class ConnectionUpdateContent(TypedDict, total=False): + """The properties that the Cognitive services connection will be updated with. + + :ivar properties: The properties that the Cognitive services connection will be updated with. + :vartype properties: "ConnectionPropertiesV2" + """ + + properties: "ConnectionPropertiesV2" + """The properties that the Cognitive services connection will be updated with.""" + + +class ConnectionUsernamePassword(TypedDict, total=False): + """ConnectionUsernamePassword. + + :ivar password: + :vartype password: str + :ivar securityToken: Optional, required by connections like SalesForce for extra security in + addition to UsernamePassword. + :vartype securityToken: str + :ivar username: + :vartype username: str + """ + + password: str + securityToken: str + """Optional, required by connections like SalesForce for extra security in addition to + UsernamePassword.""" + username: str + + +class ConnectivityEndpoints(TypedDict, total=False): + """Network connectivity endpoints for a Container Instance compute. + + :ivar publicIpAddress: The public IP address of the compute instance. + :vartype publicIpAddress: str + :ivar sshPort: The SSH port for the compute instance. + :vartype sshPort: int + """ + + publicIpAddress: str + """The public IP address of the compute instance.""" + sshPort: int + """The SSH port for the compute instance.""" + + +class ContainerInstanceComputeProperties(TypedDict, total=False): + """Properties for a Container Instance compute resource. + + :ivar location: The location of the compute resource. Required. + :vartype location: str + :ivar provisioningState: Provisioning state of the compute resource. Known values are: + "Accepted", "Succeeded", "Failed", "Canceled", "Deleting", "Scaling", "Disabled", "Starting", + "Stopping", "Restarting", and "Stopped". + :vartype provisioningState: Union[str, "ComputeProvisioningState"] + :ivar errors: Error details for the compute resource. + :vartype errors: list["ErrorDetail"] + :ivar creationTime: Creation time of the compute resource. + :vartype creationTime: str + :ivar computeType: The type of compute resource. Required. Container Instance compute type. + :vartype computeType: Literal[ComputeType.CONTAINER_INSTANCE] + :ivar targetClusterId: ARM resource ID of the parent cluster that hosts this container + instance. Required. + :vartype targetClusterId: str + :ivar imageLink: Container image URI (e.g., MCR or ACR image path) for the container instance. + Required. + :vartype imageLink: str + :ivar idleTimeBeforeShutdown: ISO 8601 duration before the idle instance is automatically shut + down (e.g., 'PT30M'). + :vartype idleTimeBeforeShutdown: str + :ivar sshSettings: SSH configuration for remote access to the container instance. + :vartype sshSettings: "SshSettings" + :ivar connectivityEndpoints: Network connectivity endpoints assigned to the container instance. + :vartype connectivityEndpoints: "ConnectivityEndpoints" + """ + + location: Required[str] + """The location of the compute resource. Required.""" + provisioningState: Union[str, "ComputeProvisioningState"] + """Provisioning state of the compute resource. Known values are: \"Accepted\", \"Succeeded\", + \"Failed\", \"Canceled\", \"Deleting\", \"Scaling\", \"Disabled\", \"Starting\", \"Stopping\", + \"Restarting\", and \"Stopped\".""" + errors: list["ErrorDetail"] + """Error details for the compute resource.""" + creationTime: str + """Creation time of the compute resource.""" + computeType: Required[Literal[ComputeType.CONTAINER_INSTANCE]] + """The type of compute resource. Required. Container Instance compute type.""" + targetClusterId: Required[str] + """ARM resource ID of the parent cluster that hosts this container instance. Required.""" + imageLink: Required[str] + """Container image URI (e.g., MCR or ACR image path) for the container instance. Required.""" + idleTimeBeforeShutdown: str + """ISO 8601 duration before the idle instance is automatically shut down (e.g., 'PT30M').""" + sshSettings: "SshSettings" + """SSH configuration for remote access to the container instance.""" + connectivityEndpoints: "ConnectivityEndpoints" + """Network connectivity endpoints assigned to the container instance.""" + + +class RaiBlocklistConfig(TypedDict, total=False): + """Azure OpenAI blocklist config. + + :ivar blocklistName: Name of ContentFilter. + :vartype blocklistName: str + :ivar blocking: If blocking would occur. + :vartype blocking: bool + """ + + blocklistName: str + """Name of ContentFilter.""" + blocking: bool + """If blocking would occur.""" + + +class CustomBlocklistConfig(RaiBlocklistConfig): + """Gets or sets the source to which filter applies. + + :ivar blocklistName: Name of ContentFilter. + :vartype blocklistName: str + :ivar blocking: If blocking would occur. + :vartype blocking: bool + :ivar source: Content source to apply the Content Filters. Known values are: "Prompt", + "Completion", "PreToolCall", "PostToolCall", "PreRun", and "PostRun". + :vartype source: Union[str, "RaiPolicyContentSource"] + """ + + source: Union[str, "RaiPolicyContentSource"] + """Content source to apply the Content Filters. Known values are: \"Prompt\", \"Completion\", + \"PreToolCall\", \"PostToolCall\", \"PreRun\", and \"PostRun\".""" + + +class CustomKeys(TypedDict, total=False): + """Custom Keys credential object. + + :ivar keys: Dictionary of . + :vartype keys: dict[str, str] + """ + + keys: dict[str, str] + """Dictionary of .""" + + +class CustomKeysConnectionProperties(TypedDict, total=False): + """Category:= CustomKeys AuthType:= CustomKeys (as type discriminator) Credentials:= {CustomKeys} + as CustomKeys Target:= {any value} Use Metadata property bag for ApiVersion and other metadata + fields. + + :ivar category: Category of the connection. Known values are: "PythonFeed", + "ContainerRegistry", "Git", "S3", "Snowflake", "AzureKeyVault", "AzureSqlDb", + "AzureSynapseAnalytics", "AzureMySqlDb", "AzurePostgresDb", "ADLSGen2", + "AzureContainerAppEnvironment", "Redis", "ApiKey", "AzureOpenAI", "AIServices", + "CognitiveSearch", "CognitiveService", "CustomKeys", "AzureBlob", "AzureStorageAccount", + "AzureOneLake", "CosmosDb", "CosmosDbMongoDbApi", "AzureDataExplorer", "AzureMariaDb", + "AzureDatabricksDeltaLake", "AzureSqlMi", "AzureTableStorage", "AmazonRdsForOracle", + "AmazonRdsForSqlServer", "AmazonRedshift", "Db2", "Drill", "GoogleBigQuery", "Greenplum", + "Hbase", "Hive", "Impala", "Informix", "MariaDb", "MicrosoftAccess", "MySql", "Netezza", + "Oracle", "Phoenix", "PostgreSql", "Presto", "SapOpenHub", "SapBw", "SapHana", "SapTable", + "Spark", "SqlServer", "Sybase", "Teradata", "Vertica", "Pinecone", "Databricks", "Cassandra", + "Couchbase", "MongoDbV2", "MongoDbAtlas", "AmazonS3Compatible", "FileServer", "FtpServer", + "GoogleCloudStorage", "Hdfs", "OracleCloudStorage", "Sftp", "GenericHttp", "ODataRest", "Odbc", + "GenericRest", "RemoteTool", "AmazonMws", "Concur", "Dynamics", "DynamicsAx", "DynamicsCrm", + "GoogleAdWords", "Hubspot", "Jira", "Magento", "Marketo", "Office365", "Eloqua", "Responsys", + "OracleServiceCloud", "PayPal", "QuickBooks", "Salesforce", "SalesforceServiceCloud", + "SalesforceMarketingCloud", "SapCloudForCustomer", "SapEcc", "ServiceNow", + "SharePointOnlineList", "Shopify", "Square", "WebTable", "Xero", "Zoho", + "GenericContainerRegistry", "Elasticsearch", "AppInsights", "AppConfig", "OpenAI", "Serp", + "BingLLMSearch", "Serverless", "ManagedOnlineEndpoint", "ApiManagement", "ModelGateway", + "GroundingWithBingSearch", "GroundingWithCustomSearch", "Sharepoint", "MicrosoftFabric", + "PowerPlatformEnvironment", and "RemoteA2A". + :vartype category: Union[str, "ConnectionCategory"] + :ivar createdByWorkspaceArmId: + :vartype createdByWorkspaceArmId: str + :ivar error: Provides the error message if the connection fails. + :vartype error: str + :ivar expiryTime: + :vartype expiryTime: str + :ivar group: Group based on connection category. Known values are: "Azure", "AzureAI", + "Database", "NoSQL", "File", "GenericProtocol", and "ServicesAndApps". + :vartype group: Union[str, "ConnectionGroup"] + :ivar isSharedToAll: + :vartype isSharedToAll: bool + :ivar metadata: Store user metadata for this connection. + :vartype metadata: dict[str, str] + :ivar peRequirement: Specifies how private endpoints are used with this connection: 'Required', + 'NotRequired', or 'NotApplicable'. Known values are: "Required", "NotRequired", and + "NotApplicable". + :vartype peRequirement: Union[str, "ManagedPERequirement"] + :ivar peStatus: Specifies the status of private endpoints for this connection: 'Inactive', + 'Active', or 'NotApplicable'. Known values are: "Inactive", "Active", and "NotApplicable". + :vartype peStatus: Union[str, "ManagedPEStatus"] + :ivar sharedUserList: + :vartype sharedUserList: list[str] + :ivar target: The connection URL to be used. + :vartype target: str + :ivar useWorkspaceManagedIdentity: + :vartype useWorkspaceManagedIdentity: bool + :ivar credentials: Custom Keys credential object. + :vartype credentials: "CustomKeys" + :ivar authType: Authentication type of the connection target. Required. CUSTOM_KEYS. + :vartype authType: Literal[ConnectionAuthType.CUSTOM_KEYS] + """ + + category: Union[str, "ConnectionCategory"] + """Category of the connection. Known values are: \"PythonFeed\", \"ContainerRegistry\", \"Git\", + \"S3\", \"Snowflake\", \"AzureKeyVault\", \"AzureSqlDb\", \"AzureSynapseAnalytics\", + \"AzureMySqlDb\", \"AzurePostgresDb\", \"ADLSGen2\", \"AzureContainerAppEnvironment\", + \"Redis\", \"ApiKey\", \"AzureOpenAI\", \"AIServices\", \"CognitiveSearch\", + \"CognitiveService\", \"CustomKeys\", \"AzureBlob\", \"AzureStorageAccount\", \"AzureOneLake\", + \"CosmosDb\", \"CosmosDbMongoDbApi\", \"AzureDataExplorer\", \"AzureMariaDb\", + \"AzureDatabricksDeltaLake\", \"AzureSqlMi\", \"AzureTableStorage\", \"AmazonRdsForOracle\", + \"AmazonRdsForSqlServer\", \"AmazonRedshift\", \"Db2\", \"Drill\", \"GoogleBigQuery\", + \"Greenplum\", \"Hbase\", \"Hive\", \"Impala\", \"Informix\", \"MariaDb\", \"MicrosoftAccess\", + \"MySql\", \"Netezza\", \"Oracle\", \"Phoenix\", \"PostgreSql\", \"Presto\", \"SapOpenHub\", + \"SapBw\", \"SapHana\", \"SapTable\", \"Spark\", \"SqlServer\", \"Sybase\", \"Teradata\", + \"Vertica\", \"Pinecone\", \"Databricks\", \"Cassandra\", \"Couchbase\", \"MongoDbV2\", + \"MongoDbAtlas\", \"AmazonS3Compatible\", \"FileServer\", \"FtpServer\", + \"GoogleCloudStorage\", \"Hdfs\", \"OracleCloudStorage\", \"Sftp\", \"GenericHttp\", + \"ODataRest\", \"Odbc\", \"GenericRest\", \"RemoteTool\", \"AmazonMws\", \"Concur\", + \"Dynamics\", \"DynamicsAx\", \"DynamicsCrm\", \"GoogleAdWords\", \"Hubspot\", \"Jira\", + \"Magento\", \"Marketo\", \"Office365\", \"Eloqua\", \"Responsys\", \"OracleServiceCloud\", + \"PayPal\", \"QuickBooks\", \"Salesforce\", \"SalesforceServiceCloud\", + \"SalesforceMarketingCloud\", \"SapCloudForCustomer\", \"SapEcc\", \"ServiceNow\", + \"SharePointOnlineList\", \"Shopify\", \"Square\", \"WebTable\", \"Xero\", \"Zoho\", + \"GenericContainerRegistry\", \"Elasticsearch\", \"AppInsights\", \"AppConfig\", \"OpenAI\", + \"Serp\", \"BingLLMSearch\", \"Serverless\", \"ManagedOnlineEndpoint\", \"ApiManagement\", + \"ModelGateway\", \"GroundingWithBingSearch\", \"GroundingWithCustomSearch\", \"Sharepoint\", + \"MicrosoftFabric\", \"PowerPlatformEnvironment\", and \"RemoteA2A\".""" + createdByWorkspaceArmId: str + error: str + """Provides the error message if the connection fails.""" + expiryTime: str + group: Union[str, "ConnectionGroup"] + """Group based on connection category. Known values are: \"Azure\", \"AzureAI\", \"Database\", + \"NoSQL\", \"File\", \"GenericProtocol\", and \"ServicesAndApps\".""" + isSharedToAll: bool + metadata: dict[str, str] + """Store user metadata for this connection.""" + peRequirement: Union[str, "ManagedPERequirement"] + """Specifies how private endpoints are used with this connection: 'Required', 'NotRequired', or + 'NotApplicable'. Known values are: \"Required\", \"NotRequired\", and \"NotApplicable\".""" + peStatus: Union[str, "ManagedPEStatus"] + """Specifies the status of private endpoints for this connection: 'Inactive', 'Active', or + 'NotApplicable'. Known values are: \"Inactive\", \"Active\", and \"NotApplicable\".""" + sharedUserList: list[str] + target: str + """The connection URL to be used.""" + useWorkspaceManagedIdentity: bool + credentials: "CustomKeys" + """Custom Keys credential object.""" + authType: Required[Literal[ConnectionAuthType.CUSTOM_KEYS]] + """Authentication type of the connection target. Required. CUSTOM_KEYS.""" + + +class DefenderForAISetting(ProxyResource): + """The Defender for AI 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" + :ivar properties: The Defender for AI resource properties. + :vartype properties: "DefenderForAISettingProperties" + :ivar etag: Resource Etag. + :vartype etag: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + """ + + properties: "DefenderForAISettingProperties" + """The Defender for AI resource properties.""" + etag: str + """Resource Etag.""" + tags: dict[str, str] + """Resource tags.""" + + +class DefenderForAISettingProperties(TypedDict, total=False): + """The Defender for AI resource properties. + + :ivar state: Defender for AI state on the AI resource. Known values are: "Disabled" and + "Enabled". + :vartype state: Union[str, "DefenderForAISettingState"] + """ + + state: Union[str, "DefenderForAISettingState"] + """Defender for AI state on the AI resource. Known values are: \"Disabled\" and \"Enabled\".""" + + +class Deployment(ProxyResource): + """Cognitive Services account deployment. + + :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 of Cognitive Services account deployment. + :vartype properties: "DeploymentProperties" + :ivar sku: The resource model definition representing SKU. + :vartype sku: "Sku" + :ivar etag: Resource Etag. + :vartype etag: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + """ + + properties: "DeploymentProperties" + """Properties of Cognitive Services account deployment.""" + sku: "Sku" + """The resource model definition representing SKU.""" + etag: str + """Resource Etag.""" + tags: dict[str, str] + """Resource tags.""" + + +class DeploymentCapacitySettings(TypedDict, total=False): + """Internal use only. + + :ivar designatedCapacity: The designated capacity. + :vartype designatedCapacity: int + :ivar priority: The priority of this capacity setting. + :vartype priority: int + """ + + designatedCapacity: int + """The designated capacity.""" + priority: int + """The priority of this capacity setting.""" + + +class DeploymentProperties(TypedDict, total=False): + """Properties of Cognitive Services account deployment. + + :ivar provisioningState: Gets the status of the resource at the time the operation was called. + Known values are: "Accepted", "Creating", "Deleting", "Moving", "Failed", "Succeeded", + "Disabled", and "Canceled". + :vartype provisioningState: Union[str, "DeploymentProvisioningState"] + :ivar model: Properties of Cognitive Services account deployment model. + :vartype model: "DeploymentModel" + :ivar contextCacheContainerId: The resource ID of the context cache container associated with + this deployment. + :vartype contextCacheContainerId: str + :ivar speculativeDecoding: Speculative decoding settings for the deployment. This configuration + applies to Fireworks model formats. + :vartype speculativeDecoding: "DeploymentSpeculativeDecoding" + :ivar scaleSettings: Properties of Cognitive Services account deployment model. (Deprecated, + please use Deployment.sku instead.). + :vartype scaleSettings: "DeploymentScaleSettings" + :ivar capabilities: The capabilities. + :vartype capabilities: dict[str, str] + :ivar raiPolicyName: The name of RAI policy. + :vartype raiPolicyName: str + :ivar callRateLimit: The call rate limit Cognitive Services account. + :vartype callRateLimit: "CallRateLimit" + :ivar rateLimits: + :vartype rateLimits: list["ThrottlingRule"] + :ivar versionUpgradeOption: Deployment model version upgrade option. Known values are: + "OnceNewDefaultVersionAvailable", "OnceCurrentVersionExpired", and "NoAutoUpgrade". + :vartype versionUpgradeOption: Union[str, "DeploymentModelVersionUpgradeOption"] + :ivar dynamicThrottlingEnabled: If the dynamic throttling is enabled. + :vartype dynamicThrottlingEnabled: bool + :ivar currentCapacity: The current capacity. + :vartype currentCapacity: int + :ivar capacitySettings: Internal use only. + :vartype capacitySettings: "DeploymentCapacitySettings" + :ivar parentDeploymentName: The name of parent deployment. + :vartype parentDeploymentName: str + :ivar spilloverDeploymentName: Specifies the deployment name that should serve requests when + the request would have otherwise been throttled due to reaching current deployment throughput + limit. + :vartype spilloverDeploymentName: str + :ivar serviceTier: The service tier for the deployment. Determines the pricing and performance + level for request processing. Use 'Default' for standard pricing or 'Priority' for + higher-priority processing with premium pricing. Note: Pause operations are only supported on + Standard, DataZoneStandard, and GlobalStandard SKUs. Known values are: "Default" and + "Priority". + :vartype serviceTier: Union[str, "ServiceTier"] + :ivar deploymentState: The state of the deployment. Controls whether the deployment is + accepting inference requests. Use 'Running' for active deployments that process requests, or + 'Paused' to temporarily stop inference while preserving the deployment configuration. Known + values are: "Running" and "Paused". + :vartype deploymentState: Union[str, "DeploymentState"] + :ivar routing: Routing configuration for the model-router deployment. This property is only + applicable when the deployed model is 'model-router' version 2025-11-18 or later. Allows you to + select the models subset for routing and the routing mode (balanced, quality, cost) for routing + across all supported models or the model subset. + :vartype routing: "DeploymentRouting" + """ + + provisioningState: Union[str, "DeploymentProvisioningState"] + """Gets the status of the resource at the time the operation was called. Known values are: + \"Accepted\", \"Creating\", \"Deleting\", \"Moving\", \"Failed\", \"Succeeded\", \"Disabled\", + and \"Canceled\".""" + model: "DeploymentModel" + """Properties of Cognitive Services account deployment model.""" + contextCacheContainerId: str + """The resource ID of the context cache container associated with this deployment.""" + speculativeDecoding: "DeploymentSpeculativeDecoding" + """Speculative decoding settings for the deployment. This configuration applies to Fireworks model + formats.""" + scaleSettings: "DeploymentScaleSettings" + """Properties of Cognitive Services account deployment model. (Deprecated, please use + Deployment.sku instead.).""" + capabilities: dict[str, str] + """The capabilities.""" + raiPolicyName: str + """The name of RAI policy.""" + callRateLimit: "CallRateLimit" + """The call rate limit Cognitive Services account.""" + rateLimits: list["ThrottlingRule"] + versionUpgradeOption: Union[str, "DeploymentModelVersionUpgradeOption"] + """Deployment model version upgrade option. Known values are: \"OnceNewDefaultVersionAvailable\", + \"OnceCurrentVersionExpired\", and \"NoAutoUpgrade\".""" + dynamicThrottlingEnabled: bool + """If the dynamic throttling is enabled.""" + currentCapacity: int + """The current capacity.""" + capacitySettings: "DeploymentCapacitySettings" + """Internal use only.""" + parentDeploymentName: str + """The name of parent deployment.""" + spilloverDeploymentName: str + """Specifies the deployment name that should serve requests when the request would have otherwise + been throttled due to reaching current deployment throughput limit.""" + serviceTier: Optional[Union[str, "ServiceTier"]] + """The service tier for the deployment. Determines the pricing and performance level for request + processing. Use 'Default' for standard pricing or 'Priority' for higher-priority processing + with premium pricing. Note: Pause operations are only supported on Standard, DataZoneStandard, + and GlobalStandard SKUs. Known values are: \"Default\" and \"Priority\".""" + deploymentState: Optional[Union[str, "DeploymentState"]] + """The state of the deployment. Controls whether the deployment is accepting inference requests. + Use 'Running' for active deployments that process requests, or 'Paused' to temporarily stop + inference while preserving the deployment configuration. Known values are: \"Running\" and + \"Paused\".""" + routing: "DeploymentRouting" + """Routing configuration for the model-router deployment. This property is only applicable when + the deployed model is 'model-router' version 2025-11-18 or later. Allows you to select the + models subset for routing and the routing mode (balanced, quality, cost) for routing across all + supported models or the model subset.""" + + +class DeploymentRouting(TypedDict, total=False): + """Routing configuration for the model-router deployment. Specifies how requests are routed across + multiple models. + + :ivar mode: The model-router routing mode that determines how requests are distributed across + models. Known values are: "cost", "balanced", and "quality". + :vartype mode: Union[str, "RoutingMode"] + :ivar models: Optional. The list of model-router supported models that the model router can use + to route requests across. If not specified, the model router will route to all available models + specified in the model-router version. + :vartype models: list["DeploymentModel"] + """ + + mode: Union[str, "RoutingMode"] + """The model-router routing mode that determines how requests are distributed across models. Known + values are: \"cost\", \"balanced\", and \"quality\".""" + models: list["DeploymentModel"] + """Optional. The list of model-router supported models that the model router can use to route + requests across. If not specified, the model router will route to all available models + specified in the model-router version.""" + + +class DeploymentScaleSettings(TypedDict, total=False): + """Properties of Cognitive Services account deployment model. (Deprecated, please use + Deployment.sku instead.). + + :ivar scaleType: Deployment scale type. Known values are: "Standard" and "Manual". + :vartype scaleType: Union[str, "DeploymentScaleType"] + :ivar capacity: Deployment capacity. + :vartype capacity: int + :ivar activeCapacity: Deployment active capacity. This value might be different from + ``capacity`` if customer recently updated ``capacity``. + :vartype activeCapacity: int + """ + + scaleType: Union[str, "DeploymentScaleType"] + """Deployment scale type. Known values are: \"Standard\" and \"Manual\".""" + capacity: int + """Deployment capacity.""" + activeCapacity: int + """Deployment active capacity. This value might be different from ``capacity`` if customer + recently updated ``capacity``.""" + + +class DeploymentSpeculativeDecoding(TypedDict, total=False): + """Speculative decoding settings for a deployment. + + :ivar draftModel: Draft model used to generate speculative decoding tokens. Required. + :vartype draftModel: "DeploymentModel" + :ivar draftTokenCount: The number of draft tokens attempted per speculation step. + :vartype draftTokenCount: int + """ + + draftModel: Required["DeploymentModel"] + """Draft model used to generate speculative decoding tokens. Required.""" + draftTokenCount: int + """The number of draft tokens attempted per speculation step.""" + + +class Encryption(TypedDict, total=False): + """Properties to configure Encryption. + + :ivar keyVaultProperties: Properties of KeyVault. + :vartype keyVaultProperties: "KeyVaultProperties" + :ivar keySource: Enumerates the possible value of keySource for Encryption. Known values are: + "Microsoft.CognitiveServices" and "Microsoft.KeyVault". + :vartype keySource: Union[str, "KeySource"] + """ + + keyVaultProperties: "KeyVaultProperties" + """Properties of KeyVault.""" + keySource: Union[str, "KeySource"] + """Enumerates the possible value of keySource for Encryption. Known values are: + \"Microsoft.CognitiveServices\" and \"Microsoft.KeyVault\".""" + + +class EncryptionScope(ProxyResource): + """Cognitive Services EncryptionScope. + + :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 of Cognitive Services EncryptionScope. + :vartype properties: "EncryptionScopeProperties" + :ivar etag: Resource Etag. + :vartype etag: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + """ + + properties: "EncryptionScopeProperties" + """Properties of Cognitive Services EncryptionScope.""" + etag: str + """Resource Etag.""" + tags: dict[str, str] + """Resource tags.""" + + +class EncryptionScopeProperties(Encryption): + """Properties to EncryptionScope. + + :ivar keyVaultProperties: Properties of KeyVault. + :vartype keyVaultProperties: "KeyVaultProperties" + :ivar keySource: Enumerates the possible value of keySource for Encryption. Known values are: + "Microsoft.CognitiveServices" and "Microsoft.KeyVault". + :vartype keySource: Union[str, "KeySource"] + :ivar provisioningState: Gets the status of the resource at the time the operation was called. + Known values are: "Accepted", "Creating", "Deleting", "Moving", "Failed", "Succeeded", and + "Canceled". + :vartype provisioningState: Union[str, "EncryptionScopeProvisioningState"] + :ivar state: The encryptionScope state. Known values are: "Disabled" and "Enabled". + :vartype state: Union[str, "EncryptionScopeState"] + """ + + provisioningState: Union[str, "EncryptionScopeProvisioningState"] + """Gets the status of the resource at the time the operation was called. Known values are: + \"Accepted\", \"Creating\", \"Deleting\", \"Moving\", \"Failed\", \"Succeeded\", and + \"Canceled\".""" + state: Union[str, "EncryptionScopeState"] + """The encryptionScope state. Known values are: \"Disabled\" and \"Enabled\".""" + + +class ErrorAdditionalInfo(TypedDict, total=False): + """The resource management error additional info. + + :ivar type: The additional info type. + :vartype type: str + :ivar info: The additional info. + :vartype info: Any + """ + + type: str + """The additional info type.""" + info: Any + """The additional info.""" + + +class ErrorDetail(TypedDict, total=False): + """The error detail. + + :ivar code: The error code. + :vartype code: str + :ivar message: The error message. + :vartype message: str + :ivar target: The error target. + :vartype target: str + :ivar details: The error details. + :vartype details: list["ErrorDetail"] + :ivar additionalInfo: The error additional info. + :vartype additionalInfo: list["ErrorAdditionalInfo"] + """ + + code: str + """The error code.""" + message: str + """The error message.""" + target: str + """The error target.""" + details: list["ErrorDetail"] + """The error details.""" + additionalInfo: list["ErrorAdditionalInfo"] + """The error additional info.""" + + +class EvaluateDeploymentPoliciesDeployment(TypedDict, total=False): + """A hypothetical deployment definition used for policy dry-run evaluation. + + :ivar name: The name of the hypothetical deployment. Required. + :vartype name: str + :ivar properties: Properties of the hypothetical deployment. Required. + :vartype properties: "EvaluateDeploymentPoliciesDeploymentProperties" + """ + + name: Required[str] + """The name of the hypothetical deployment. Required.""" + properties: Required["EvaluateDeploymentPoliciesDeploymentProperties"] + """Properties of the hypothetical deployment. Required.""" + + +class EvaluateDeploymentPoliciesDeploymentProperties(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of a hypothetical deployment for policy evaluation. + + :ivar model: The model to evaluate. Required. + :vartype model: "DeploymentModel" + :ivar raiPolicyName: The name of the RAI policy to evaluate. + :vartype raiPolicyName: str + """ + + model: Required["DeploymentModel"] + """The model to evaluate. Required.""" + raiPolicyName: str + """The name of the RAI policy to evaluate.""" + + +class EvaluateDeploymentPoliciesRequest(TypedDict, total=False): + """Request body for the evaluateDeploymentPolicies action. + + :ivar deployments: The list of hypothetical deployments to evaluate against Azure Policy. + Required. + :vartype deployments: list["EvaluateDeploymentPoliciesDeployment"] + """ + + deployments: Required[list["EvaluateDeploymentPoliciesDeployment"]] + """The list of hypothetical deployments to evaluate against Azure Policy. Required.""" + + +class FoundryAutoUpgrade(TypedDict, total=False): + """Represents the foundry auto-upgrade configuration for a Cognitive Services account. Customers + can opt out of auto-upgrade by setting mode to Disabled. + + :ivar mode: Gets or sets the auto-upgrade mode. Known values are: "Enabled" and "Disabled". + :vartype mode: Union[str, "FoundryAutoUpgradeMode"] + :ivar plannedByMicrosoft: Gets or sets a value indicating whether the auto-upgrade is planned + by Microsoft. + :vartype plannedByMicrosoft: bool + :ivar statusReason: Gets or sets the status reason for the auto-upgrade configuration. + :vartype statusReason: str + :ivar scheduledAt: Gets or sets the scheduled time for the auto-upgrade. + :vartype scheduledAt: str + """ + + mode: Union[str, "FoundryAutoUpgradeMode"] + """Gets or sets the auto-upgrade mode. Known values are: \"Enabled\" and \"Disabled\".""" + plannedByMicrosoft: bool + """Gets or sets a value indicating whether the auto-upgrade is planned by Microsoft.""" + statusReason: str + """Gets or sets the status reason for the auto-upgrade configuration.""" + scheduledAt: str + """Gets or sets the scheduled time for the auto-upgrade.""" + + +class FqdnOutboundRule(TypedDict, total=False): + """FQDN Outbound Rule for the managed network of a cognitive services account. + + :ivar category: Category of a managed network Outbound Rule of a cognitive services account. + Known values are: "Required", "Recommended", "UserDefined", and "Dependency". + :vartype category: Union[str, "RuleCategory"] + :ivar status: Type of a managed network Outbound Rule of a cognitive services account. Known + values are: "Inactive", "Active", "Provisioning", "Deleting", and "Failed". + :vartype status: Union[str, "RuleStatus"] + :ivar errorInformation: Error information about an outbound rule of a cognitive services + account if RuleStatus is failed. + :vartype errorInformation: str + :ivar parentRuleNames: + :vartype parentRuleNames: list[str] + :ivar destination: + :vartype destination: str + :ivar type: Type of a managed network Outbound Rule of a cognitive services account. Required. + FQDN. + :vartype type: Literal[RuleType.FQDN] + """ + + category: Union[str, "RuleCategory"] + """Category of a managed network Outbound Rule of a cognitive services account. Known values are: + \"Required\", \"Recommended\", \"UserDefined\", and \"Dependency\".""" + status: Union[str, "RuleStatus"] + """Type of a managed network Outbound Rule of a cognitive services account. Known values are: + \"Inactive\", \"Active\", \"Provisioning\", \"Deleting\", and \"Failed\".""" + errorInformation: str + """Error information about an outbound rule of a cognitive services account if RuleStatus is + failed.""" + parentRuleNames: list[str] + destination: str + type: Required[Literal[RuleType.FQDN]] + """Type of a managed network Outbound Rule of a cognitive services account. Required. FQDN.""" + + +class HostedAgentDeployment(TypedDict, total=False): + """Represents a hosted agent deployment where the underlying infrastructure is owned by the + platform. + + :ivar description: The asset description text. + :vartype description: str + :ivar tags: Tag dictionary. Tags can be added, removed, and updated. + :vartype tags: dict[str, str] + :ivar displayName: Gets or sets the display name of the deployment. + :vartype displayName: str + :ivar deploymentId: Gets or sets the unique identifier of the deployment. + :vartype deploymentId: str + :ivar state: Gets or sets the current operational state of the deployment (and, intrinsically, + of the comprising agents). Known values are: "Starting", "Running", "Stopping", "Stopped", + "Failed", "Deleting", "Deleted", and "Updating". + :vartype state: Union[str, "AgentDeploymentState"] + :ivar protocols: Gets or sets the supported protocol types and versions exposed by this + deployment. + :vartype protocols: list["AgentProtocolVersion"] + :ivar agents: Returns a flat list of agent:version deployed in this deployment. + :vartype agents: list["VersionedAgentReference"] + :ivar provisioningState: Gets or sets the provisioning state of the agent deployment. Known + values are: "Succeeded", "Failed", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "AgentDeploymentProvisioningState"] + :ivar minReplicas: Gets or sets the minimum number of replicas for this hosted deployment. + :vartype minReplicas: int + :ivar maxReplicas: Gets or sets the maximum number of replicas for this hosted deployment. + :vartype maxReplicas: int + :ivar deploymentType: Gets or sets the type of deployment for the agent. Required. The + underlying infra is owned by the platform. + :vartype deploymentType: Literal[AgentDeploymentType.HOSTED] + """ + + description: Optional[str] + """The asset description text.""" + tags: Optional[dict[str, str]] + """Tag dictionary. Tags can be added, removed, and updated.""" + displayName: Optional[str] + """Gets or sets the display name of the deployment.""" + deploymentId: Optional[str] + """Gets or sets the unique identifier of the deployment.""" + state: Optional[Union[str, "AgentDeploymentState"]] + """Gets or sets the current operational state of the deployment (and, intrinsically, of the + comprising agents). Known values are: \"Starting\", \"Running\", \"Stopping\", \"Stopped\", + \"Failed\", \"Deleting\", \"Deleted\", and \"Updating\".""" + protocols: Optional[list["AgentProtocolVersion"]] + """Gets or sets the supported protocol types and versions exposed by this deployment.""" + agents: Optional[list["VersionedAgentReference"]] + """Returns a flat list of agent:version deployed in this deployment.""" + provisioningState: Union[str, "AgentDeploymentProvisioningState"] + """Gets or sets the provisioning state of the agent deployment. Known values are: \"Succeeded\", + \"Failed\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + minReplicas: int + """Gets or sets the minimum number of replicas for this hosted deployment.""" + maxReplicas: int + """Gets or sets the maximum number of replicas for this hosted deployment.""" + deploymentType: Required[Literal[AgentDeploymentType.HOSTED]] + """Gets or sets the type of deployment for the agent. Required. The underlying infra is owned by + the platform.""" + + +class Identity(TypedDict, total=False): + """Identity for the resource. + + :ivar type: The identity type. Known values are: "None", "SystemAssigned", "UserAssigned", and + "SystemAssigned, UserAssigned". + :vartype type: Union[str, "ResourceIdentityType"] + :ivar tenantId: The tenant ID of resource. + :vartype tenantId: str + :ivar principalId: The principal ID of resource identity. + :vartype principalId: str + :ivar userAssignedIdentities: The list of user assigned identities associated with the + resource. 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, "UserAssignedIdentity"] + """ + + type: Union[str, "ResourceIdentityType"] + """The identity type. Known values are: \"None\", \"SystemAssigned\", \"UserAssigned\", and + \"SystemAssigned, UserAssigned\".""" + tenantId: str + """The tenant ID of resource.""" + principalId: str + """The principal ID of resource identity.""" + userAssignedIdentities: dict[str, "UserAssignedIdentity"] + """The list of user assigned identities associated with the resource. The user identity dictionary + key references will be ARM resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.""" + + +class IpRule(TypedDict, total=False): + """A rule governing the accessibility from a specific ip address or ip range. + + :ivar value: An IPv4 address range in CIDR notation, such as '124.56.78.91' (simple IP address) + or '124.56.78.0/24' (all addresses that start with 124.56.78). Required. + :vartype value: str + """ + + value: Required[str] + """An IPv4 address range in CIDR notation, such as '124.56.78.91' (simple IP address) or + '124.56.78.0/24' (all addresses that start with 124.56.78). Required.""" + + +class KeyVaultProperties(TypedDict, total=False): + """Properties to configure keyVault Properties. + + :ivar keyName: Name of the Key from KeyVault. + :vartype keyName: str + :ivar keyVersion: Version of the Key from KeyVault. + :vartype keyVersion: str + :ivar keyVaultUri: Uri of KeyVault. + :vartype keyVaultUri: str + :ivar identityClientId: + :vartype identityClientId: str + """ + + keyName: str + """Name of the Key from KeyVault.""" + keyVersion: str + """Version of the Key from KeyVault.""" + keyVaultUri: str + """Uri of KeyVault.""" + identityClientId: str + + +class ManagedAgentDeployment(TypedDict, total=False): + """Represents a managed agent deployment where the underlying infrastructure is managed by the + platform in the deployer's subscription. + + :ivar description: The asset description text. + :vartype description: str + :ivar tags: Tag dictionary. Tags can be added, removed, and updated. + :vartype tags: dict[str, str] + :ivar displayName: Gets or sets the display name of the deployment. + :vartype displayName: str + :ivar deploymentId: Gets or sets the unique identifier of the deployment. + :vartype deploymentId: str + :ivar state: Gets or sets the current operational state of the deployment (and, intrinsically, + of the comprising agents). Known values are: "Starting", "Running", "Stopping", "Stopped", + "Failed", "Deleting", "Deleted", and "Updating". + :vartype state: Union[str, "AgentDeploymentState"] + :ivar protocols: Gets or sets the supported protocol types and versions exposed by this + deployment. + :vartype protocols: list["AgentProtocolVersion"] + :ivar agents: Returns a flat list of agent:version deployed in this deployment. + :vartype agents: list["VersionedAgentReference"] + :ivar provisioningState: Gets or sets the provisioning state of the agent deployment. Known + values are: "Succeeded", "Failed", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "AgentDeploymentProvisioningState"] + :ivar deploymentType: Gets or sets the type of deployment for the agent. Required. The + underlying infra is managed by the platform in the deployer's subscription. + :vartype deploymentType: Literal[AgentDeploymentType.MANAGED] + """ + + description: Optional[str] + """The asset description text.""" + tags: Optional[dict[str, str]] + """Tag dictionary. Tags can be added, removed, and updated.""" + displayName: Optional[str] + """Gets or sets the display name of the deployment.""" + deploymentId: Optional[str] + """Gets or sets the unique identifier of the deployment.""" + state: Optional[Union[str, "AgentDeploymentState"]] + """Gets or sets the current operational state of the deployment (and, intrinsically, of the + comprising agents). Known values are: \"Starting\", \"Running\", \"Stopping\", \"Stopped\", + \"Failed\", \"Deleting\", \"Deleted\", and \"Updating\".""" + protocols: Optional[list["AgentProtocolVersion"]] + """Gets or sets the supported protocol types and versions exposed by this deployment.""" + agents: Optional[list["VersionedAgentReference"]] + """Returns a flat list of agent:version deployed in this deployment.""" + provisioningState: Union[str, "AgentDeploymentProvisioningState"] + """Gets or sets the provisioning state of the agent deployment. Known values are: \"Succeeded\", + \"Failed\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + deploymentType: Required[Literal[AgentDeploymentType.MANAGED]] + """Gets or sets the type of deployment for the agent. Required. The underlying infra is managed by + the platform in the deployer's subscription.""" + + +class ManagedClusterAgentHostingConfiguration(TypedDict, total=False): + """Configuration for hosting Foundry agents on an Azure Kubernetes Service managed cluster. + + :ivar name: Unique name of the hosting configuration within the Foundry account. Required. + :vartype name: str + :ivar hostingType: Type of infrastructure used to host Foundry agents. Required. Agents are + hosted on an Azure Kubernetes Service managed cluster. + :vartype hostingType: Literal[AgentHostingType.MANAGED_CLUSTER] + :ivar hostingManagementIdentityResourceId: Azure resource ID of the user-assigned managed + identity used by the Foundry resource provider to manage the hosting configuration. The + identity must be assigned to the Foundry account in identity.userAssignedIdentities. Required. + :vartype hostingManagementIdentityResourceId: str + :ivar workloadIdentityResourceId: Azure resource ID of the separate user-assigned managed + identity federated to service accounts on the AKS cluster. Hosted agents use this identity to + access the Azure Storage blob data plane. Required. + :vartype workloadIdentityResourceId: str + :ivar clusterResourceId: Azure resource ID of the customer-owned AKS managed cluster that runs + the hosted agent workloads. Required. + :vartype clusterResourceId: str + :ivar storageAccountResourceId: Azure resource ID of the customer-owned storage account used by + the hosted agents. The storage account must be in the same subscription and region as the AKS + cluster, and its data-plane endpoint must be reachable from the workload network. Required. + :vartype storageAccountResourceId: str + """ + + name: Required[str] + """Unique name of the hosting configuration within the Foundry account. Required.""" + hostingType: Required[Literal[AgentHostingType.MANAGED_CLUSTER]] + """Type of infrastructure used to host Foundry agents. Required. Agents are hosted on an Azure + Kubernetes Service managed cluster.""" + hostingManagementIdentityResourceId: Required[str] + """Azure resource ID of the user-assigned managed identity used by the Foundry resource provider + to manage the hosting configuration. The identity must be assigned to the Foundry account in + identity.userAssignedIdentities. Required.""" + workloadIdentityResourceId: Required[str] + """Azure resource ID of the separate user-assigned managed identity federated to service accounts + on the AKS cluster. Hosted agents use this identity to access the Azure Storage blob data + plane. Required.""" + clusterResourceId: Required[str] + """Azure resource ID of the customer-owned AKS managed cluster that runs the hosted agent + workloads. Required.""" + storageAccountResourceId: Required[str] + """Azure resource ID of the customer-owned storage account used by the hosted agents. The storage + account must be in the same subscription and region as the AKS cluster, and its data-plane + endpoint must be reachable from the workload network. Required.""" + + +class ManagedComputeDeployment(ProxyResource): + """Cognitive Services account managed compute deployment, backed by managed compute (GPU) + resources. + + :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 of the Cognitive Services managed compute deployment. + :vartype properties: "ManagedComputeDeploymentProperties" + :ivar sku: The resource model definition representing SKU. + :vartype sku: "Sku" + :ivar etag: Resource Etag. + :vartype etag: str + """ + + properties: "ManagedComputeDeploymentProperties" + """Properties of the Cognitive Services managed compute deployment.""" + sku: "Sku" + """The resource model definition representing SKU.""" + etag: str + """Resource Etag.""" + + +class ManagedComputeDeploymentProperties(TypedDict, total=False): + """Properties of a Cognitive Services managed compute deployment. + + :ivar model: AzureML Registry model asset URI. Required on creation; immutable after creation. + Example: azureml://registries/{registry}/models/{model}/versions/{version}. Required. + :vartype model: str + :ivar deploymentTemplate: Deployment template identifier. Optional on creation. Accepts an + AzureML Registry deployment template URI or a project-scoped deployment template path for + VmManagedCompute. Examples: + azureml://registries/{registry}/deploymenttemplates/{template}/versions/{version}, + projects/{project}/deploymentTemplates/{template}/versions/{version}. + :vartype deploymentTemplate: str + :ivar acceleratorType: Accelerator type (e.g., H100_80GB). Optional on creation; immutable + after creation. + :vartype acceleratorType: str + :ivar versionUpgradeOption: Template auto-upgrade policy. Defaults to + OnceNewDefaultVersionAvailable. Known values are: "OnceNewDefaultVersionAvailable", + "OnceCurrentVersionExpired", and "NoAutoUpgrade". + :vartype versionUpgradeOption: Union[str, "DeploymentModelVersionUpgradeOption"] + :ivar capabilities: Deployment capabilities represented as key-value pairs. Example: { + assetsV2: "true" }. + :vartype capabilities: dict[str, str] + :ivar computeId: Foundry compute ARM resource ID for VM-backed managed compute deployments. + Required when sku.name is VmManagedCompute; immutable after creation. + :vartype computeId: str + :ivar priority: Scheduling priority for VM-backed managed compute deployments. Immutable after + creation. + :vartype priority: str + :ivar acceleratorsPerInstance: Read-only. Number of accelerators (GPUs) consumed by each model + instance, sourced from the deployment template. + :vartype acceleratorsPerInstance: int + :ivar totalAccelerators: Read-only. Total accelerators allocated: sku.capacity (instances) x + acceleratorsPerInstance. + :vartype totalAccelerators: int + :ivar provisioningState: Read-only. Current provisioning state. Known values are: "Accepted", + "Creating", "Deleting", "Moving", "Failed", "Succeeded", "Canceled", "ResolvingDNS", and + "ExtensionUnreachable". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar provisioningDetails: Read-only. Status message and timestamp from the last provisioning + operation. + :vartype provisioningDetails: "ManagedComputeDeploymentProvisioningDetails" + :ivar routes: Read-only. Inference route paths relative to the account endpoint. Populated when + provisioningState is Succeeded. + :vartype routes: "ManagedComputeDeploymentRoutes" + """ + + model: Required[str] + """AzureML Registry model asset URI. Required on creation; immutable after creation. Example: + azureml://registries/{registry}/models/{model}/versions/{version}. Required.""" + deploymentTemplate: str + """Deployment template identifier. Optional on creation. Accepts an AzureML Registry deployment + template URI or a project-scoped deployment template path for VmManagedCompute. Examples: + azureml://registries/{registry}/deploymenttemplates/{template}/versions/{version}, + projects/{project}/deploymentTemplates/{template}/versions/{version}.""" + acceleratorType: str + """Accelerator type (e.g., H100_80GB). Optional on creation; immutable after creation.""" + versionUpgradeOption: Union[str, "DeploymentModelVersionUpgradeOption"] + """Template auto-upgrade policy. Defaults to OnceNewDefaultVersionAvailable. Known values are: + \"OnceNewDefaultVersionAvailable\", \"OnceCurrentVersionExpired\", and \"NoAutoUpgrade\".""" + capabilities: dict[str, str] + """Deployment capabilities represented as key-value pairs. Example: { assetsV2: \"true\" }.""" + computeId: str + """Foundry compute ARM resource ID for VM-backed managed compute deployments. Required when + sku.name is VmManagedCompute; immutable after creation.""" + priority: str + """Scheduling priority for VM-backed managed compute deployments. Immutable after creation.""" + acceleratorsPerInstance: int + """Read-only. Number of accelerators (GPUs) consumed by each model instance, sourced from the + deployment template.""" + totalAccelerators: int + """Read-only. Total accelerators allocated: sku.capacity (instances) x acceleratorsPerInstance.""" + provisioningState: Union[str, "ProvisioningState"] + """Read-only. Current provisioning state. Known values are: \"Accepted\", \"Creating\", + \"Deleting\", \"Moving\", \"Failed\", \"Succeeded\", \"Canceled\", \"ResolvingDNS\", and + \"ExtensionUnreachable\".""" + provisioningDetails: "ManagedComputeDeploymentProvisioningDetails" + """Read-only. Status message and timestamp from the last provisioning operation.""" + routes: "ManagedComputeDeploymentRoutes" + """Read-only. Inference route paths relative to the account endpoint. Populated when + provisioningState is Succeeded.""" + + +class ManagedComputeDeploymentProvisioningDetails(TypedDict, total=False): # pylint: disable=name-too-long + """Provisioning status details for a managed compute deployment. + + :ivar message: A human-readable status message from the last provisioning operation. + :vartype message: str + :ivar lastOperationTimestamp: Timestamp of the last provisioning operation. + :vartype lastOperationTimestamp: str + """ + + message: str + """A human-readable status message from the last provisioning operation.""" + lastOperationTimestamp: str + """Timestamp of the last provisioning operation.""" + + +class ManagedComputeDeploymentRoutes(TypedDict, total=False): + """Inference route paths for a managed compute deployment, relative to the account endpoint. + Populated when provisioningState is Succeeded. + + :ivar chatCompletionsScoringPath: Relative path to the chat completions scoring endpoint. + :vartype chatCompletionsScoringPath: str + :ivar swagger: Relative path to the Swagger/OpenAPI endpoint. + :vartype swagger: str + :ivar messagesApiScoringPath: Relative path to the messages API scoring endpoint. + :vartype messagesApiScoringPath: str + """ + + chatCompletionsScoringPath: str + """Relative path to the chat completions scoring endpoint.""" + swagger: str + """Relative path to the Swagger/OpenAPI endpoint.""" + messagesApiScoringPath: str + """Relative path to the messages API scoring endpoint.""" + + +class ManagedIdentityAuthTypeConnectionProperties(TypedDict, total=False): # pylint: disable=name-too-long + """ManagedIdentityAuthTypeConnectionProperties. + + :ivar category: Category of the connection. Known values are: "PythonFeed", + "ContainerRegistry", "Git", "S3", "Snowflake", "AzureKeyVault", "AzureSqlDb", + "AzureSynapseAnalytics", "AzureMySqlDb", "AzurePostgresDb", "ADLSGen2", + "AzureContainerAppEnvironment", "Redis", "ApiKey", "AzureOpenAI", "AIServices", + "CognitiveSearch", "CognitiveService", "CustomKeys", "AzureBlob", "AzureStorageAccount", + "AzureOneLake", "CosmosDb", "CosmosDbMongoDbApi", "AzureDataExplorer", "AzureMariaDb", + "AzureDatabricksDeltaLake", "AzureSqlMi", "AzureTableStorage", "AmazonRdsForOracle", + "AmazonRdsForSqlServer", "AmazonRedshift", "Db2", "Drill", "GoogleBigQuery", "Greenplum", + "Hbase", "Hive", "Impala", "Informix", "MariaDb", "MicrosoftAccess", "MySql", "Netezza", + "Oracle", "Phoenix", "PostgreSql", "Presto", "SapOpenHub", "SapBw", "SapHana", "SapTable", + "Spark", "SqlServer", "Sybase", "Teradata", "Vertica", "Pinecone", "Databricks", "Cassandra", + "Couchbase", "MongoDbV2", "MongoDbAtlas", "AmazonS3Compatible", "FileServer", "FtpServer", + "GoogleCloudStorage", "Hdfs", "OracleCloudStorage", "Sftp", "GenericHttp", "ODataRest", "Odbc", + "GenericRest", "RemoteTool", "AmazonMws", "Concur", "Dynamics", "DynamicsAx", "DynamicsCrm", + "GoogleAdWords", "Hubspot", "Jira", "Magento", "Marketo", "Office365", "Eloqua", "Responsys", + "OracleServiceCloud", "PayPal", "QuickBooks", "Salesforce", "SalesforceServiceCloud", + "SalesforceMarketingCloud", "SapCloudForCustomer", "SapEcc", "ServiceNow", + "SharePointOnlineList", "Shopify", "Square", "WebTable", "Xero", "Zoho", + "GenericContainerRegistry", "Elasticsearch", "AppInsights", "AppConfig", "OpenAI", "Serp", + "BingLLMSearch", "Serverless", "ManagedOnlineEndpoint", "ApiManagement", "ModelGateway", + "GroundingWithBingSearch", "GroundingWithCustomSearch", "Sharepoint", "MicrosoftFabric", + "PowerPlatformEnvironment", and "RemoteA2A". + :vartype category: Union[str, "ConnectionCategory"] + :ivar createdByWorkspaceArmId: + :vartype createdByWorkspaceArmId: str + :ivar error: Provides the error message if the connection fails. + :vartype error: str + :ivar expiryTime: + :vartype expiryTime: str + :ivar group: Group based on connection category. Known values are: "Azure", "AzureAI", + "Database", "NoSQL", "File", "GenericProtocol", and "ServicesAndApps". + :vartype group: Union[str, "ConnectionGroup"] + :ivar isSharedToAll: + :vartype isSharedToAll: bool + :ivar metadata: Store user metadata for this connection. + :vartype metadata: dict[str, str] + :ivar peRequirement: Specifies how private endpoints are used with this connection: 'Required', + 'NotRequired', or 'NotApplicable'. Known values are: "Required", "NotRequired", and + "NotApplicable". + :vartype peRequirement: Union[str, "ManagedPERequirement"] + :ivar peStatus: Specifies the status of private endpoints for this connection: 'Inactive', + 'Active', or 'NotApplicable'. Known values are: "Inactive", "Active", and "NotApplicable". + :vartype peStatus: Union[str, "ManagedPEStatus"] + :ivar sharedUserList: + :vartype sharedUserList: list[str] + :ivar target: The connection URL to be used. + :vartype target: str + :ivar useWorkspaceManagedIdentity: + :vartype useWorkspaceManagedIdentity: bool + :ivar credentials: + :vartype credentials: "ConnectionManagedIdentity" + :ivar authType: Authentication type of the connection target. Required. MANAGED_IDENTITY. + :vartype authType: Literal[ConnectionAuthType.MANAGED_IDENTITY] + """ + + category: Union[str, "ConnectionCategory"] + """Category of the connection. Known values are: \"PythonFeed\", \"ContainerRegistry\", \"Git\", + \"S3\", \"Snowflake\", \"AzureKeyVault\", \"AzureSqlDb\", \"AzureSynapseAnalytics\", + \"AzureMySqlDb\", \"AzurePostgresDb\", \"ADLSGen2\", \"AzureContainerAppEnvironment\", + \"Redis\", \"ApiKey\", \"AzureOpenAI\", \"AIServices\", \"CognitiveSearch\", + \"CognitiveService\", \"CustomKeys\", \"AzureBlob\", \"AzureStorageAccount\", \"AzureOneLake\", + \"CosmosDb\", \"CosmosDbMongoDbApi\", \"AzureDataExplorer\", \"AzureMariaDb\", + \"AzureDatabricksDeltaLake\", \"AzureSqlMi\", \"AzureTableStorage\", \"AmazonRdsForOracle\", + \"AmazonRdsForSqlServer\", \"AmazonRedshift\", \"Db2\", \"Drill\", \"GoogleBigQuery\", + \"Greenplum\", \"Hbase\", \"Hive\", \"Impala\", \"Informix\", \"MariaDb\", \"MicrosoftAccess\", + \"MySql\", \"Netezza\", \"Oracle\", \"Phoenix\", \"PostgreSql\", \"Presto\", \"SapOpenHub\", + \"SapBw\", \"SapHana\", \"SapTable\", \"Spark\", \"SqlServer\", \"Sybase\", \"Teradata\", + \"Vertica\", \"Pinecone\", \"Databricks\", \"Cassandra\", \"Couchbase\", \"MongoDbV2\", + \"MongoDbAtlas\", \"AmazonS3Compatible\", \"FileServer\", \"FtpServer\", + \"GoogleCloudStorage\", \"Hdfs\", \"OracleCloudStorage\", \"Sftp\", \"GenericHttp\", + \"ODataRest\", \"Odbc\", \"GenericRest\", \"RemoteTool\", \"AmazonMws\", \"Concur\", + \"Dynamics\", \"DynamicsAx\", \"DynamicsCrm\", \"GoogleAdWords\", \"Hubspot\", \"Jira\", + \"Magento\", \"Marketo\", \"Office365\", \"Eloqua\", \"Responsys\", \"OracleServiceCloud\", + \"PayPal\", \"QuickBooks\", \"Salesforce\", \"SalesforceServiceCloud\", + \"SalesforceMarketingCloud\", \"SapCloudForCustomer\", \"SapEcc\", \"ServiceNow\", + \"SharePointOnlineList\", \"Shopify\", \"Square\", \"WebTable\", \"Xero\", \"Zoho\", + \"GenericContainerRegistry\", \"Elasticsearch\", \"AppInsights\", \"AppConfig\", \"OpenAI\", + \"Serp\", \"BingLLMSearch\", \"Serverless\", \"ManagedOnlineEndpoint\", \"ApiManagement\", + \"ModelGateway\", \"GroundingWithBingSearch\", \"GroundingWithCustomSearch\", \"Sharepoint\", + \"MicrosoftFabric\", \"PowerPlatformEnvironment\", and \"RemoteA2A\".""" + createdByWorkspaceArmId: str + error: str + """Provides the error message if the connection fails.""" + expiryTime: str + group: Union[str, "ConnectionGroup"] + """Group based on connection category. Known values are: \"Azure\", \"AzureAI\", \"Database\", + \"NoSQL\", \"File\", \"GenericProtocol\", and \"ServicesAndApps\".""" + isSharedToAll: bool + metadata: dict[str, str] + """Store user metadata for this connection.""" + peRequirement: Union[str, "ManagedPERequirement"] + """Specifies how private endpoints are used with this connection: 'Required', 'NotRequired', or + 'NotApplicable'. Known values are: \"Required\", \"NotRequired\", and \"NotApplicable\".""" + peStatus: Union[str, "ManagedPEStatus"] + """Specifies the status of private endpoints for this connection: 'Inactive', 'Active', or + 'NotApplicable'. Known values are: \"Inactive\", \"Active\", and \"NotApplicable\".""" + sharedUserList: list[str] + target: str + """The connection URL to be used.""" + useWorkspaceManagedIdentity: bool + credentials: "ConnectionManagedIdentity" + authType: Required[Literal[ConnectionAuthType.MANAGED_IDENTITY]] + """Authentication type of the connection target. Required. MANAGED_IDENTITY.""" + + +class ManagedNetworkProvisionOptions(TypedDict, total=False): + """Managed Network Provisioning options for managed network of a cognitive services account.""" + + +class ManagedNetworkProvisionStatus(TypedDict, total=False): + """Status of the Provisioning for the managed network of a cognitive services account. + + :ivar status: Status for the managed network of a cognitive services account. Known values are: + "Inactive" and "Active". + :vartype status: Union[str, "ManagedNetworkStatus"] + """ + + status: Union[str, "ManagedNetworkStatus"] + """Status for the managed network of a cognitive services account. Known values are: \"Inactive\" + and \"Active\".""" + + +class ManagedNetworkSettings(TypedDict, total=False): + """Managed Network settings for a cognitive services account. + + :ivar isolationMode: Isolation mode for the managed network of a cognitive services account. + Known values are: "Disabled", "AllowInternetOutbound", and "AllowOnlyApprovedOutbound". + :vartype isolationMode: Union[str, "IsolationMode"] + :ivar networkId: + :vartype networkId: str + :ivar outboundRules: Dictionary of . + :vartype outboundRules: dict[str, "OutboundRule"] + :ivar status: Status of the Provisioning for the managed network of a cognitive services + account. + :vartype status: "ManagedNetworkProvisionStatus" + :ivar firewallSku: Firewall Sku used for FQDN Rules. Known values are: "Standard" and "Basic". + :vartype firewallSku: Union[str, "FirewallSku"] + :ivar managedNetworkKind: The Kind of the managed network. Users can switch from V1 to V2 for + granular access controls, but cannot switch back to V1 once V2 is enabled. Known values are: + "V1" and "V2". + :vartype managedNetworkKind: Union[str, "ManagedNetworkKind"] + :ivar firewallPublicIpAddress: Public IP address assigned to the Azure Firewall. + :vartype firewallPublicIpAddress: str + :ivar provisioningState: The provisioning state of the managed network settings. Known values + are: "Deferred", "Updating", "Succeeded", "Failed", "Deleting", and "Deleted". + :vartype provisioningState: Union[str, "ManagedNetworkProvisioningState"] + """ + + isolationMode: Union[str, "IsolationMode"] + """Isolation mode for the managed network of a cognitive services account. Known values are: + \"Disabled\", \"AllowInternetOutbound\", and \"AllowOnlyApprovedOutbound\".""" + networkId: str + outboundRules: Optional[dict[str, "OutboundRule"]] + """Dictionary of .""" + status: "ManagedNetworkProvisionStatus" + """Status of the Provisioning for the managed network of a cognitive services account.""" + firewallSku: Union[str, "FirewallSku"] + """Firewall Sku used for FQDN Rules. Known values are: \"Standard\" and \"Basic\".""" + managedNetworkKind: Union[str, "ManagedNetworkKind"] + """The Kind of the managed network. Users can switch from V1 to V2 for granular access controls, + but cannot switch back to V1 once V2 is enabled. Known values are: \"V1\" and \"V2\".""" + firewallPublicIpAddress: Optional[str] + """Public IP address assigned to the Azure Firewall.""" + provisioningState: Union[str, "ManagedNetworkProvisioningState"] + """The provisioning state of the managed network settings. Known values are: \"Deferred\", + \"Updating\", \"Succeeded\", \"Failed\", \"Deleting\", and \"Deleted\".""" + + +class ManagedNetworkSettingsBasicResource(Resource): + """ManagedNetworkSettingsBasicResource. + + :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: Managed Network settings for a cognitive services account. + :vartype properties: "ManagedNetworkSettings" + """ + + properties: "ManagedNetworkSettings" + """Managed Network settings for a cognitive services account.""" + + +class ManagedNetworkSettingsEx(ManagedNetworkSettings): + """ManagedNetworkSettingsEx. + + :ivar isolationMode: Isolation mode for the managed network of a cognitive services account. + Known values are: "Disabled", "AllowInternetOutbound", and "AllowOnlyApprovedOutbound". + :vartype isolationMode: Union[str, "IsolationMode"] + :ivar networkId: + :vartype networkId: str + :ivar outboundRules: Dictionary of . + :vartype outboundRules: dict[str, "OutboundRule"] + :ivar status: Status of the Provisioning for the managed network of a cognitive services + account. + :vartype status: "ManagedNetworkProvisionStatus" + :ivar firewallSku: Firewall Sku used for FQDN Rules. Known values are: "Standard" and "Basic". + :vartype firewallSku: Union[str, "FirewallSku"] + :ivar managedNetworkKind: The Kind of the managed network. Users can switch from V1 to V2 for + granular access controls, but cannot switch back to V1 once V2 is enabled. Known values are: + "V1" and "V2". + :vartype managedNetworkKind: Union[str, "ManagedNetworkKind"] + :ivar firewallPublicIpAddress: Public IP address assigned to the Azure Firewall. + :vartype firewallPublicIpAddress: str + :ivar provisioningState: The provisioning state of the managed network settings. Known values + are: "Deferred", "Updating", "Succeeded", "Failed", "Deleting", and "Deleted". + :vartype provisioningState: Union[str, "ManagedNetworkProvisioningState"] + :ivar changeableIsolationModes: + :vartype changeableIsolationModes: list[Union[str, "IsolationMode"]] + """ + + changeableIsolationModes: list[Union[str, "IsolationMode"]] + + +class ManagedNetworkSettingsProperties(TypedDict, total=False): + """The properties of the managed network settings of a cognitive services account. + + :ivar managedNetwork: Managed Network settings for a cognitive services account. + :vartype managedNetwork: "ManagedNetworkSettingsEx" + :ivar provisioningState: The current deployment state of the managed network resource. The + provisioningState is to indicate states for resource provisioning. Known values are: + "Deferred", "Updating", "Succeeded", "Failed", "Deleting", and "Deleted". + :vartype provisioningState: Union[str, "ManagedNetworkProvisioningState"] + """ + + managedNetwork: "ManagedNetworkSettingsEx" + """Managed Network settings for a cognitive services account.""" + provisioningState: Union[str, "ManagedNetworkProvisioningState"] + """The current deployment state of the managed network resource. The provisioningState is to + indicate states for resource provisioning. Known values are: \"Deferred\", \"Updating\", + \"Succeeded\", \"Failed\", \"Deleting\", and \"Deleted\".""" + + +class ManagedNetworkSettingsPropertiesBasicResource(ProxyResource): # pylint: disable=name-too-long + """Concrete proxy resource types can be created by aliasing this type using a specific property + type. + + :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 managed network settings of a cognitive services + account. + :vartype properties: "ManagedNetworkSettingsProperties" + """ + + properties: "ManagedNetworkSettingsProperties" + """The properties of the managed network settings of a cognitive services account.""" + + +class ModelCapacityCalculatorWorkload(TypedDict, total=False): + """Model Capacity Calculator Workload. + + :ivar requestPerMinute: Request per minute. + :vartype requestPerMinute: int + :ivar requestParameters: Dictionary, Model Capacity Calculator Workload Parameters. + :vartype requestParameters: "ModelCapacityCalculatorWorkloadRequestParam" + """ + + requestPerMinute: int + """Request per minute.""" + requestParameters: "ModelCapacityCalculatorWorkloadRequestParam" + """Dictionary, Model Capacity Calculator Workload Parameters.""" + + +class ModelCapacityCalculatorWorkloadRequestParam(TypedDict, total=False): # pylint: disable=name-too-long + """Dictionary, Model Capacity Calculator Workload Parameters. + + :ivar avgPromptTokens: Average prompt tokens. + :vartype avgPromptTokens: int + :ivar avgGeneratedTokens: Average generated tokens. + :vartype avgGeneratedTokens: int + """ + + avgPromptTokens: int + """Average prompt tokens.""" + avgGeneratedTokens: int + """Average generated tokens.""" + + +class MultiRegionSettings(TypedDict, total=False): + """The multiregion settings Cognitive Services account. + + :ivar routingMethod: Multiregion routing methods. Known values are: "Priority", "Weighted", and + "Performance". + :vartype routingMethod: Union[str, "RoutingMethods"] + :ivar regions: + :vartype regions: list["RegionSetting"] + """ + + routingMethod: Union[str, "RoutingMethods"] + """Multiregion routing methods. Known values are: \"Priority\", \"Weighted\", and \"Performance\".""" + regions: list["RegionSetting"] + + +class NetworkInjection(TypedDict, total=False): + """Specifies in AI Foundry where virtual network injection occurs to secure scenarios like Agents + entirely within the user's private network, eliminating public internet exposure while + maintaining control over network configurations and resources. + + :ivar scenario: Specifies what features in AI Foundry network injection applies to. Currently + only supports 'agent' for agent scenarios. 'none' means no network injection. Known values are: + "none" and "agent". + :vartype scenario: Union[str, "ScenarioType"] + :ivar subnetArmId: Specify the subnet for which your Agent Client is injected into. + :vartype subnetArmId: str + :ivar useMicrosoftManagedNetwork: Boolean to enable Microsoft Managed Network for subnet + delegation. + :vartype useMicrosoftManagedNetwork: bool + """ + + scenario: Union[str, "ScenarioType"] + """Specifies what features in AI Foundry network injection applies to. Currently only supports + 'agent' for agent scenarios. 'none' means no network injection. Known values are: \"none\" and + \"agent\".""" + subnetArmId: str + """Specify the subnet for which your Agent Client is injected into.""" + useMicrosoftManagedNetwork: bool + """Boolean to enable Microsoft Managed Network for subnet delegation.""" + + +class NetworkRuleSet(TypedDict, total=False): + """A set of rules governing the network accessibility. + + :ivar defaultAction: The default action when no rule from ipRules and from virtualNetworkRules + match. This is only used after the bypass property has been evaluated. Known values are: + "Allow" and "Deny". + :vartype defaultAction: Union[str, "NetworkRuleAction"] + :ivar bypass: Setting for trusted services. Known values are: "None" and "AzureServices". + :vartype bypass: Union[str, "ByPassSelection"] + :ivar ipRules: The list of IP address rules. + :vartype ipRules: list["IpRule"] + :ivar virtualNetworkRules: The list of virtual network rules. + :vartype virtualNetworkRules: list["VirtualNetworkRule"] + """ + + defaultAction: Union[str, "NetworkRuleAction"] + """The default action when no rule from ipRules and from virtualNetworkRules match. This is only + used after the bypass property has been evaluated. Known values are: \"Allow\" and \"Deny\".""" + bypass: Union[str, "ByPassSelection"] + """Setting for trusted services. Known values are: \"None\" and \"AzureServices\".""" + ipRules: list["IpRule"] + """The list of IP address rules.""" + virtualNetworkRules: list["VirtualNetworkRule"] + """The list of virtual network rules.""" + + +class NoneAuthTypeConnectionProperties(TypedDict, total=False): + """NoneAuthTypeConnectionProperties. + + :ivar category: Category of the connection. Known values are: "PythonFeed", + "ContainerRegistry", "Git", "S3", "Snowflake", "AzureKeyVault", "AzureSqlDb", + "AzureSynapseAnalytics", "AzureMySqlDb", "AzurePostgresDb", "ADLSGen2", + "AzureContainerAppEnvironment", "Redis", "ApiKey", "AzureOpenAI", "AIServices", + "CognitiveSearch", "CognitiveService", "CustomKeys", "AzureBlob", "AzureStorageAccount", + "AzureOneLake", "CosmosDb", "CosmosDbMongoDbApi", "AzureDataExplorer", "AzureMariaDb", + "AzureDatabricksDeltaLake", "AzureSqlMi", "AzureTableStorage", "AmazonRdsForOracle", + "AmazonRdsForSqlServer", "AmazonRedshift", "Db2", "Drill", "GoogleBigQuery", "Greenplum", + "Hbase", "Hive", "Impala", "Informix", "MariaDb", "MicrosoftAccess", "MySql", "Netezza", + "Oracle", "Phoenix", "PostgreSql", "Presto", "SapOpenHub", "SapBw", "SapHana", "SapTable", + "Spark", "SqlServer", "Sybase", "Teradata", "Vertica", "Pinecone", "Databricks", "Cassandra", + "Couchbase", "MongoDbV2", "MongoDbAtlas", "AmazonS3Compatible", "FileServer", "FtpServer", + "GoogleCloudStorage", "Hdfs", "OracleCloudStorage", "Sftp", "GenericHttp", "ODataRest", "Odbc", + "GenericRest", "RemoteTool", "AmazonMws", "Concur", "Dynamics", "DynamicsAx", "DynamicsCrm", + "GoogleAdWords", "Hubspot", "Jira", "Magento", "Marketo", "Office365", "Eloqua", "Responsys", + "OracleServiceCloud", "PayPal", "QuickBooks", "Salesforce", "SalesforceServiceCloud", + "SalesforceMarketingCloud", "SapCloudForCustomer", "SapEcc", "ServiceNow", + "SharePointOnlineList", "Shopify", "Square", "WebTable", "Xero", "Zoho", + "GenericContainerRegistry", "Elasticsearch", "AppInsights", "AppConfig", "OpenAI", "Serp", + "BingLLMSearch", "Serverless", "ManagedOnlineEndpoint", "ApiManagement", "ModelGateway", + "GroundingWithBingSearch", "GroundingWithCustomSearch", "Sharepoint", "MicrosoftFabric", + "PowerPlatformEnvironment", and "RemoteA2A". + :vartype category: Union[str, "ConnectionCategory"] + :ivar createdByWorkspaceArmId: + :vartype createdByWorkspaceArmId: str + :ivar error: Provides the error message if the connection fails. + :vartype error: str + :ivar expiryTime: + :vartype expiryTime: str + :ivar group: Group based on connection category. Known values are: "Azure", "AzureAI", + "Database", "NoSQL", "File", "GenericProtocol", and "ServicesAndApps". + :vartype group: Union[str, "ConnectionGroup"] + :ivar isSharedToAll: + :vartype isSharedToAll: bool + :ivar metadata: Store user metadata for this connection. + :vartype metadata: dict[str, str] + :ivar peRequirement: Specifies how private endpoints are used with this connection: 'Required', + 'NotRequired', or 'NotApplicable'. Known values are: "Required", "NotRequired", and + "NotApplicable". + :vartype peRequirement: Union[str, "ManagedPERequirement"] + :ivar peStatus: Specifies the status of private endpoints for this connection: 'Inactive', + 'Active', or 'NotApplicable'. Known values are: "Inactive", "Active", and "NotApplicable". + :vartype peStatus: Union[str, "ManagedPEStatus"] + :ivar sharedUserList: + :vartype sharedUserList: list[str] + :ivar target: The connection URL to be used. + :vartype target: str + :ivar useWorkspaceManagedIdentity: + :vartype useWorkspaceManagedIdentity: bool + :ivar authType: Authentication type of the connection target. Required. NONE. + :vartype authType: Literal[ConnectionAuthType.NONE] + """ + + category: Union[str, "ConnectionCategory"] + """Category of the connection. Known values are: \"PythonFeed\", \"ContainerRegistry\", \"Git\", + \"S3\", \"Snowflake\", \"AzureKeyVault\", \"AzureSqlDb\", \"AzureSynapseAnalytics\", + \"AzureMySqlDb\", \"AzurePostgresDb\", \"ADLSGen2\", \"AzureContainerAppEnvironment\", + \"Redis\", \"ApiKey\", \"AzureOpenAI\", \"AIServices\", \"CognitiveSearch\", + \"CognitiveService\", \"CustomKeys\", \"AzureBlob\", \"AzureStorageAccount\", \"AzureOneLake\", + \"CosmosDb\", \"CosmosDbMongoDbApi\", \"AzureDataExplorer\", \"AzureMariaDb\", + \"AzureDatabricksDeltaLake\", \"AzureSqlMi\", \"AzureTableStorage\", \"AmazonRdsForOracle\", + \"AmazonRdsForSqlServer\", \"AmazonRedshift\", \"Db2\", \"Drill\", \"GoogleBigQuery\", + \"Greenplum\", \"Hbase\", \"Hive\", \"Impala\", \"Informix\", \"MariaDb\", \"MicrosoftAccess\", + \"MySql\", \"Netezza\", \"Oracle\", \"Phoenix\", \"PostgreSql\", \"Presto\", \"SapOpenHub\", + \"SapBw\", \"SapHana\", \"SapTable\", \"Spark\", \"SqlServer\", \"Sybase\", \"Teradata\", + \"Vertica\", \"Pinecone\", \"Databricks\", \"Cassandra\", \"Couchbase\", \"MongoDbV2\", + \"MongoDbAtlas\", \"AmazonS3Compatible\", \"FileServer\", \"FtpServer\", + \"GoogleCloudStorage\", \"Hdfs\", \"OracleCloudStorage\", \"Sftp\", \"GenericHttp\", + \"ODataRest\", \"Odbc\", \"GenericRest\", \"RemoteTool\", \"AmazonMws\", \"Concur\", + \"Dynamics\", \"DynamicsAx\", \"DynamicsCrm\", \"GoogleAdWords\", \"Hubspot\", \"Jira\", + \"Magento\", \"Marketo\", \"Office365\", \"Eloqua\", \"Responsys\", \"OracleServiceCloud\", + \"PayPal\", \"QuickBooks\", \"Salesforce\", \"SalesforceServiceCloud\", + \"SalesforceMarketingCloud\", \"SapCloudForCustomer\", \"SapEcc\", \"ServiceNow\", + \"SharePointOnlineList\", \"Shopify\", \"Square\", \"WebTable\", \"Xero\", \"Zoho\", + \"GenericContainerRegistry\", \"Elasticsearch\", \"AppInsights\", \"AppConfig\", \"OpenAI\", + \"Serp\", \"BingLLMSearch\", \"Serverless\", \"ManagedOnlineEndpoint\", \"ApiManagement\", + \"ModelGateway\", \"GroundingWithBingSearch\", \"GroundingWithCustomSearch\", \"Sharepoint\", + \"MicrosoftFabric\", \"PowerPlatformEnvironment\", and \"RemoteA2A\".""" + createdByWorkspaceArmId: str + error: str + """Provides the error message if the connection fails.""" + expiryTime: str + group: Union[str, "ConnectionGroup"] + """Group based on connection category. Known values are: \"Azure\", \"AzureAI\", \"Database\", + \"NoSQL\", \"File\", \"GenericProtocol\", and \"ServicesAndApps\".""" + isSharedToAll: bool + metadata: dict[str, str] + """Store user metadata for this connection.""" + peRequirement: Union[str, "ManagedPERequirement"] + """Specifies how private endpoints are used with this connection: 'Required', 'NotRequired', or + 'NotApplicable'. Known values are: \"Required\", \"NotRequired\", and \"NotApplicable\".""" + peStatus: Union[str, "ManagedPEStatus"] + """Specifies the status of private endpoints for this connection: 'Inactive', 'Active', or + 'NotApplicable'. Known values are: \"Inactive\", \"Active\", and \"NotApplicable\".""" + sharedUserList: list[str] + target: str + """The connection URL to be used.""" + useWorkspaceManagedIdentity: bool + authType: Required[Literal[ConnectionAuthType.NONE]] + """Authentication type of the connection target. Required. NONE.""" + + +class OAuth2AuthTypeConnectionProperties(TypedDict, total=False): + """OAuth2AuthTypeConnectionProperties. + + :ivar category: Category of the connection. Known values are: "PythonFeed", + "ContainerRegistry", "Git", "S3", "Snowflake", "AzureKeyVault", "AzureSqlDb", + "AzureSynapseAnalytics", "AzureMySqlDb", "AzurePostgresDb", "ADLSGen2", + "AzureContainerAppEnvironment", "Redis", "ApiKey", "AzureOpenAI", "AIServices", + "CognitiveSearch", "CognitiveService", "CustomKeys", "AzureBlob", "AzureStorageAccount", + "AzureOneLake", "CosmosDb", "CosmosDbMongoDbApi", "AzureDataExplorer", "AzureMariaDb", + "AzureDatabricksDeltaLake", "AzureSqlMi", "AzureTableStorage", "AmazonRdsForOracle", + "AmazonRdsForSqlServer", "AmazonRedshift", "Db2", "Drill", "GoogleBigQuery", "Greenplum", + "Hbase", "Hive", "Impala", "Informix", "MariaDb", "MicrosoftAccess", "MySql", "Netezza", + "Oracle", "Phoenix", "PostgreSql", "Presto", "SapOpenHub", "SapBw", "SapHana", "SapTable", + "Spark", "SqlServer", "Sybase", "Teradata", "Vertica", "Pinecone", "Databricks", "Cassandra", + "Couchbase", "MongoDbV2", "MongoDbAtlas", "AmazonS3Compatible", "FileServer", "FtpServer", + "GoogleCloudStorage", "Hdfs", "OracleCloudStorage", "Sftp", "GenericHttp", "ODataRest", "Odbc", + "GenericRest", "RemoteTool", "AmazonMws", "Concur", "Dynamics", "DynamicsAx", "DynamicsCrm", + "GoogleAdWords", "Hubspot", "Jira", "Magento", "Marketo", "Office365", "Eloqua", "Responsys", + "OracleServiceCloud", "PayPal", "QuickBooks", "Salesforce", "SalesforceServiceCloud", + "SalesforceMarketingCloud", "SapCloudForCustomer", "SapEcc", "ServiceNow", + "SharePointOnlineList", "Shopify", "Square", "WebTable", "Xero", "Zoho", + "GenericContainerRegistry", "Elasticsearch", "AppInsights", "AppConfig", "OpenAI", "Serp", + "BingLLMSearch", "Serverless", "ManagedOnlineEndpoint", "ApiManagement", "ModelGateway", + "GroundingWithBingSearch", "GroundingWithCustomSearch", "Sharepoint", "MicrosoftFabric", + "PowerPlatformEnvironment", and "RemoteA2A". + :vartype category: Union[str, "ConnectionCategory"] + :ivar createdByWorkspaceArmId: + :vartype createdByWorkspaceArmId: str + :ivar error: Provides the error message if the connection fails. + :vartype error: str + :ivar expiryTime: + :vartype expiryTime: str + :ivar group: Group based on connection category. Known values are: "Azure", "AzureAI", + "Database", "NoSQL", "File", "GenericProtocol", and "ServicesAndApps". + :vartype group: Union[str, "ConnectionGroup"] + :ivar isSharedToAll: + :vartype isSharedToAll: bool + :ivar metadata: Store user metadata for this connection. + :vartype metadata: dict[str, str] + :ivar peRequirement: Specifies how private endpoints are used with this connection: 'Required', + 'NotRequired', or 'NotApplicable'. Known values are: "Required", "NotRequired", and + "NotApplicable". + :vartype peRequirement: Union[str, "ManagedPERequirement"] + :ivar peStatus: Specifies the status of private endpoints for this connection: 'Inactive', + 'Active', or 'NotApplicable'. Known values are: "Inactive", "Active", and "NotApplicable". + :vartype peStatus: Union[str, "ManagedPEStatus"] + :ivar sharedUserList: + :vartype sharedUserList: list[str] + :ivar target: The connection URL to be used. + :vartype target: str + :ivar useWorkspaceManagedIdentity: + :vartype useWorkspaceManagedIdentity: bool + :ivar credentials: ClientId and ClientSecret are required. Other properties are optional + depending on each OAuth2 provider's implementation. + :vartype credentials: "ConnectionOAuth2" + :ivar authType: Authentication type of the connection target. Required. O_AUTH2. + :vartype authType: Literal[ConnectionAuthType.O_AUTH2] + """ + + category: Union[str, "ConnectionCategory"] + """Category of the connection. Known values are: \"PythonFeed\", \"ContainerRegistry\", \"Git\", + \"S3\", \"Snowflake\", \"AzureKeyVault\", \"AzureSqlDb\", \"AzureSynapseAnalytics\", + \"AzureMySqlDb\", \"AzurePostgresDb\", \"ADLSGen2\", \"AzureContainerAppEnvironment\", + \"Redis\", \"ApiKey\", \"AzureOpenAI\", \"AIServices\", \"CognitiveSearch\", + \"CognitiveService\", \"CustomKeys\", \"AzureBlob\", \"AzureStorageAccount\", \"AzureOneLake\", + \"CosmosDb\", \"CosmosDbMongoDbApi\", \"AzureDataExplorer\", \"AzureMariaDb\", + \"AzureDatabricksDeltaLake\", \"AzureSqlMi\", \"AzureTableStorage\", \"AmazonRdsForOracle\", + \"AmazonRdsForSqlServer\", \"AmazonRedshift\", \"Db2\", \"Drill\", \"GoogleBigQuery\", + \"Greenplum\", \"Hbase\", \"Hive\", \"Impala\", \"Informix\", \"MariaDb\", \"MicrosoftAccess\", + \"MySql\", \"Netezza\", \"Oracle\", \"Phoenix\", \"PostgreSql\", \"Presto\", \"SapOpenHub\", + \"SapBw\", \"SapHana\", \"SapTable\", \"Spark\", \"SqlServer\", \"Sybase\", \"Teradata\", + \"Vertica\", \"Pinecone\", \"Databricks\", \"Cassandra\", \"Couchbase\", \"MongoDbV2\", + \"MongoDbAtlas\", \"AmazonS3Compatible\", \"FileServer\", \"FtpServer\", + \"GoogleCloudStorage\", \"Hdfs\", \"OracleCloudStorage\", \"Sftp\", \"GenericHttp\", + \"ODataRest\", \"Odbc\", \"GenericRest\", \"RemoteTool\", \"AmazonMws\", \"Concur\", + \"Dynamics\", \"DynamicsAx\", \"DynamicsCrm\", \"GoogleAdWords\", \"Hubspot\", \"Jira\", + \"Magento\", \"Marketo\", \"Office365\", \"Eloqua\", \"Responsys\", \"OracleServiceCloud\", + \"PayPal\", \"QuickBooks\", \"Salesforce\", \"SalesforceServiceCloud\", + \"SalesforceMarketingCloud\", \"SapCloudForCustomer\", \"SapEcc\", \"ServiceNow\", + \"SharePointOnlineList\", \"Shopify\", \"Square\", \"WebTable\", \"Xero\", \"Zoho\", + \"GenericContainerRegistry\", \"Elasticsearch\", \"AppInsights\", \"AppConfig\", \"OpenAI\", + \"Serp\", \"BingLLMSearch\", \"Serverless\", \"ManagedOnlineEndpoint\", \"ApiManagement\", + \"ModelGateway\", \"GroundingWithBingSearch\", \"GroundingWithCustomSearch\", \"Sharepoint\", + \"MicrosoftFabric\", \"PowerPlatformEnvironment\", and \"RemoteA2A\".""" + createdByWorkspaceArmId: str + error: str + """Provides the error message if the connection fails.""" + expiryTime: str + group: Union[str, "ConnectionGroup"] + """Group based on connection category. Known values are: \"Azure\", \"AzureAI\", \"Database\", + \"NoSQL\", \"File\", \"GenericProtocol\", and \"ServicesAndApps\".""" + isSharedToAll: bool + metadata: dict[str, str] + """Store user metadata for this connection.""" + peRequirement: Union[str, "ManagedPERequirement"] + """Specifies how private endpoints are used with this connection: 'Required', 'NotRequired', or + 'NotApplicable'. Known values are: \"Required\", \"NotRequired\", and \"NotApplicable\".""" + peStatus: Union[str, "ManagedPEStatus"] + """Specifies the status of private endpoints for this connection: 'Inactive', 'Active', or + 'NotApplicable'. Known values are: \"Inactive\", \"Active\", and \"NotApplicable\".""" + sharedUserList: list[str] + target: str + """The connection URL to be used.""" + useWorkspaceManagedIdentity: bool + credentials: "ConnectionOAuth2" + """ClientId and ClientSecret are required. Other properties are optional depending on each OAuth2 + provider's implementation.""" + authType: Required[Literal[ConnectionAuthType.O_AUTH2]] + """Authentication type of the connection target. Required. O_AUTH2.""" + + +class OrganizationSharedBuiltInAuthorizationPolicy(TypedDict, total=False): # pylint: disable=name-too-long + """Built-in authorization policy scoped to organization/tenant. + + :ivar type: Authorization scheme type. Required. Claim-based, requires membership in the + tenant. + :vartype type: Literal[BuiltInAuthorizationScheme.ORGANIZATION_SCOPE] + """ + + type: Required[Literal[BuiltInAuthorizationScheme.ORGANIZATION_SCOPE]] + """Authorization scheme type. Required. Claim-based, requires membership in the tenant.""" + + +class OutboundRuleBasicResource(ProxyResource): + """Concrete proxy resource types can be created by aliasing this type using a specific property + type. + + :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: Outbound Rule for the managed network of a cognitive services account. + Required. + :vartype properties: "OutboundRule" + """ + + properties: Required["OutboundRule"] + """Outbound Rule for the managed network of a cognitive services account. Required.""" + + +class PATAuthTypeConnectionProperties(TypedDict, total=False): + """PATAuthTypeConnectionProperties. + + :ivar category: Category of the connection. Known values are: "PythonFeed", + "ContainerRegistry", "Git", "S3", "Snowflake", "AzureKeyVault", "AzureSqlDb", + "AzureSynapseAnalytics", "AzureMySqlDb", "AzurePostgresDb", "ADLSGen2", + "AzureContainerAppEnvironment", "Redis", "ApiKey", "AzureOpenAI", "AIServices", + "CognitiveSearch", "CognitiveService", "CustomKeys", "AzureBlob", "AzureStorageAccount", + "AzureOneLake", "CosmosDb", "CosmosDbMongoDbApi", "AzureDataExplorer", "AzureMariaDb", + "AzureDatabricksDeltaLake", "AzureSqlMi", "AzureTableStorage", "AmazonRdsForOracle", + "AmazonRdsForSqlServer", "AmazonRedshift", "Db2", "Drill", "GoogleBigQuery", "Greenplum", + "Hbase", "Hive", "Impala", "Informix", "MariaDb", "MicrosoftAccess", "MySql", "Netezza", + "Oracle", "Phoenix", "PostgreSql", "Presto", "SapOpenHub", "SapBw", "SapHana", "SapTable", + "Spark", "SqlServer", "Sybase", "Teradata", "Vertica", "Pinecone", "Databricks", "Cassandra", + "Couchbase", "MongoDbV2", "MongoDbAtlas", "AmazonS3Compatible", "FileServer", "FtpServer", + "GoogleCloudStorage", "Hdfs", "OracleCloudStorage", "Sftp", "GenericHttp", "ODataRest", "Odbc", + "GenericRest", "RemoteTool", "AmazonMws", "Concur", "Dynamics", "DynamicsAx", "DynamicsCrm", + "GoogleAdWords", "Hubspot", "Jira", "Magento", "Marketo", "Office365", "Eloqua", "Responsys", + "OracleServiceCloud", "PayPal", "QuickBooks", "Salesforce", "SalesforceServiceCloud", + "SalesforceMarketingCloud", "SapCloudForCustomer", "SapEcc", "ServiceNow", + "SharePointOnlineList", "Shopify", "Square", "WebTable", "Xero", "Zoho", + "GenericContainerRegistry", "Elasticsearch", "AppInsights", "AppConfig", "OpenAI", "Serp", + "BingLLMSearch", "Serverless", "ManagedOnlineEndpoint", "ApiManagement", "ModelGateway", + "GroundingWithBingSearch", "GroundingWithCustomSearch", "Sharepoint", "MicrosoftFabric", + "PowerPlatformEnvironment", and "RemoteA2A". + :vartype category: Union[str, "ConnectionCategory"] + :ivar createdByWorkspaceArmId: + :vartype createdByWorkspaceArmId: str + :ivar error: Provides the error message if the connection fails. + :vartype error: str + :ivar expiryTime: + :vartype expiryTime: str + :ivar group: Group based on connection category. Known values are: "Azure", "AzureAI", + "Database", "NoSQL", "File", "GenericProtocol", and "ServicesAndApps". + :vartype group: Union[str, "ConnectionGroup"] + :ivar isSharedToAll: + :vartype isSharedToAll: bool + :ivar metadata: Store user metadata for this connection. + :vartype metadata: dict[str, str] + :ivar peRequirement: Specifies how private endpoints are used with this connection: 'Required', + 'NotRequired', or 'NotApplicable'. Known values are: "Required", "NotRequired", and + "NotApplicable". + :vartype peRequirement: Union[str, "ManagedPERequirement"] + :ivar peStatus: Specifies the status of private endpoints for this connection: 'Inactive', + 'Active', or 'NotApplicable'. Known values are: "Inactive", "Active", and "NotApplicable". + :vartype peStatus: Union[str, "ManagedPEStatus"] + :ivar sharedUserList: + :vartype sharedUserList: list[str] + :ivar target: The connection URL to be used. + :vartype target: str + :ivar useWorkspaceManagedIdentity: + :vartype useWorkspaceManagedIdentity: bool + :ivar credentials: + :vartype credentials: "ConnectionPersonalAccessToken" + :ivar authType: Authentication type of the connection target. Required. PAT. + :vartype authType: Literal[ConnectionAuthType.PAT] + """ + + category: Union[str, "ConnectionCategory"] + """Category of the connection. Known values are: \"PythonFeed\", \"ContainerRegistry\", \"Git\", + \"S3\", \"Snowflake\", \"AzureKeyVault\", \"AzureSqlDb\", \"AzureSynapseAnalytics\", + \"AzureMySqlDb\", \"AzurePostgresDb\", \"ADLSGen2\", \"AzureContainerAppEnvironment\", + \"Redis\", \"ApiKey\", \"AzureOpenAI\", \"AIServices\", \"CognitiveSearch\", + \"CognitiveService\", \"CustomKeys\", \"AzureBlob\", \"AzureStorageAccount\", \"AzureOneLake\", + \"CosmosDb\", \"CosmosDbMongoDbApi\", \"AzureDataExplorer\", \"AzureMariaDb\", + \"AzureDatabricksDeltaLake\", \"AzureSqlMi\", \"AzureTableStorage\", \"AmazonRdsForOracle\", + \"AmazonRdsForSqlServer\", \"AmazonRedshift\", \"Db2\", \"Drill\", \"GoogleBigQuery\", + \"Greenplum\", \"Hbase\", \"Hive\", \"Impala\", \"Informix\", \"MariaDb\", \"MicrosoftAccess\", + \"MySql\", \"Netezza\", \"Oracle\", \"Phoenix\", \"PostgreSql\", \"Presto\", \"SapOpenHub\", + \"SapBw\", \"SapHana\", \"SapTable\", \"Spark\", \"SqlServer\", \"Sybase\", \"Teradata\", + \"Vertica\", \"Pinecone\", \"Databricks\", \"Cassandra\", \"Couchbase\", \"MongoDbV2\", + \"MongoDbAtlas\", \"AmazonS3Compatible\", \"FileServer\", \"FtpServer\", + \"GoogleCloudStorage\", \"Hdfs\", \"OracleCloudStorage\", \"Sftp\", \"GenericHttp\", + \"ODataRest\", \"Odbc\", \"GenericRest\", \"RemoteTool\", \"AmazonMws\", \"Concur\", + \"Dynamics\", \"DynamicsAx\", \"DynamicsCrm\", \"GoogleAdWords\", \"Hubspot\", \"Jira\", + \"Magento\", \"Marketo\", \"Office365\", \"Eloqua\", \"Responsys\", \"OracleServiceCloud\", + \"PayPal\", \"QuickBooks\", \"Salesforce\", \"SalesforceServiceCloud\", + \"SalesforceMarketingCloud\", \"SapCloudForCustomer\", \"SapEcc\", \"ServiceNow\", + \"SharePointOnlineList\", \"Shopify\", \"Square\", \"WebTable\", \"Xero\", \"Zoho\", + \"GenericContainerRegistry\", \"Elasticsearch\", \"AppInsights\", \"AppConfig\", \"OpenAI\", + \"Serp\", \"BingLLMSearch\", \"Serverless\", \"ManagedOnlineEndpoint\", \"ApiManagement\", + \"ModelGateway\", \"GroundingWithBingSearch\", \"GroundingWithCustomSearch\", \"Sharepoint\", + \"MicrosoftFabric\", \"PowerPlatformEnvironment\", and \"RemoteA2A\".""" + createdByWorkspaceArmId: str + error: str + """Provides the error message if the connection fails.""" + expiryTime: str + group: Union[str, "ConnectionGroup"] + """Group based on connection category. Known values are: \"Azure\", \"AzureAI\", \"Database\", + \"NoSQL\", \"File\", \"GenericProtocol\", and \"ServicesAndApps\".""" + isSharedToAll: bool + metadata: dict[str, str] + """Store user metadata for this connection.""" + peRequirement: Union[str, "ManagedPERequirement"] + """Specifies how private endpoints are used with this connection: 'Required', 'NotRequired', or + 'NotApplicable'. Known values are: \"Required\", \"NotRequired\", and \"NotApplicable\".""" + peStatus: Union[str, "ManagedPEStatus"] + """Specifies the status of private endpoints for this connection: 'Inactive', 'Active', or + 'NotApplicable'. Known values are: \"Inactive\", \"Active\", and \"NotApplicable\".""" + sharedUserList: list[str] + target: str + """The connection URL to be used.""" + useWorkspaceManagedIdentity: bool + credentials: "ConnectionPersonalAccessToken" + authType: Required[Literal[ConnectionAuthType.PAT]] + """Authentication type of the connection target. Required. PAT.""" + + +class PatchResourceSku(TypedDict, total=False): + """The object being used to update sku of a resource, in general used for PATCH operations. + + :ivar sku: The resource model definition representing SKU. + :vartype sku: "Sku" + """ + + sku: "Sku" + """The resource model definition representing SKU.""" + + +class PatchResourceTags(TypedDict, total=False): + """The object being used to update tags of a resource, in general used for PATCH operations. + + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + """ + + tags: dict[str, str] + """Resource tags.""" + + +class PatchResourceTagsAndSku(PatchResourceTags): + """The object being used to update tags and sku of a resource, in general used for PATCH + operations. + + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar sku: The resource model definition representing SKU. + :vartype sku: "Sku" + """ + + sku: "Sku" + """The resource model definition representing SKU.""" + + +class Pool(TypedDict, total=False): + """A compute pool configuration. + + :ivar name: The name of the pool. Required. + :vartype name: str + :ivar vmPriority: The VM priority of the pool. Known values are: "Regular" and "Spot". + :vartype vmPriority: Union[str, "VmPriority"] + :ivar instanceType: The instance type (VM SKU) used in the pool. Required. + :vartype instanceType: str + :ivar nodeCount: The number of nodes in the pool. Required. + :vartype nodeCount: int + """ + + name: Required[str] + """The name of the pool. Required.""" + vmPriority: Union[str, "VmPriority"] + """The VM priority of the pool. Known values are: \"Regular\" and \"Spot\".""" + instanceType: Required[str] + """The instance type (VM SKU) used in the pool. Required.""" + nodeCount: Required[int] + """The number of nodes in the pool. Required.""" + + +class PrivateEndpoint(TypedDict, total=False): + """The private endpoint resource. + + :ivar id: The resource identifier of the private endpoint. + :vartype id: str + """ + + id: str + """The resource identifier of the private endpoint.""" + + +class PrivateEndpointConnection(ProxyResource): + """The Private Endpoint Connection 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" + :ivar properties: Resource properties. + :vartype properties: "PrivateEndpointConnectionProperties" + :ivar etag: Resource Etag. + :vartype etag: str + :ivar location: The location of the private endpoint connection. + :vartype location: str + """ + + properties: "PrivateEndpointConnectionProperties" + """Resource properties.""" + etag: str + """Resource Etag.""" + location: str + """The location of the private endpoint connection.""" + + +class PrivateEndpointConnectionProperties(TypedDict, total=False): + """Properties of the PrivateEndpointConnectProperties. + + :ivar privateEndpoint: The resource of private end point. + :vartype privateEndpoint: "PrivateEndpoint" + :ivar privateLinkServiceConnectionState: A collection of information about the state of the + connection between service consumer and provider. Required. + :vartype privateLinkServiceConnectionState: "PrivateLinkServiceConnectionState" + :ivar provisioningState: The provisioning state of the private endpoint connection resource. + Known values are: "Succeeded", "Creating", "Deleting", and "Failed". + :vartype provisioningState: Union[str, "PrivateEndpointConnectionProvisioningState"] + :ivar groupIds: The private link resource group ids. + :vartype groupIds: list[str] + """ + + privateEndpoint: "PrivateEndpoint" + """The resource of private end point.""" + privateLinkServiceConnectionState: Required["PrivateLinkServiceConnectionState"] + """A collection of information about the state of the connection between service consumer and + provider. Required.""" + provisioningState: Union[str, "PrivateEndpointConnectionProvisioningState"] + """The provisioning state of the private endpoint connection resource. Known values are: + \"Succeeded\", \"Creating\", \"Deleting\", and \"Failed\".""" + groupIds: list[str] + """The private link resource group ids.""" + + +class PrivateEndpointOutboundRule(TypedDict, total=False): + """Private Endpoint outbound rule for the managed network of a cognitive services account. + + :ivar category: Category of a managed network Outbound Rule of a cognitive services account. + Known values are: "Required", "Recommended", "UserDefined", and "Dependency". + :vartype category: Union[str, "RuleCategory"] + :ivar status: Type of a managed network Outbound Rule of a cognitive services account. Known + values are: "Inactive", "Active", "Provisioning", "Deleting", and "Failed". + :vartype status: Union[str, "RuleStatus"] + :ivar errorInformation: Error information about an outbound rule of a cognitive services + account if RuleStatus is failed. + :vartype errorInformation: str + :ivar parentRuleNames: + :vartype parentRuleNames: list[str] + :ivar destination: Private Endpoint destination. + :vartype destination: "PrivateEndpointOutboundRuleDestination" + :ivar fqdns: List of FQDNs associated with the private endpoint outbound rule. + :vartype fqdns: list[str] + :ivar type: Type of a managed network Outbound Rule of a cognitive services account. Required. + PRIVATE_ENDPOINT. + :vartype type: Literal[RuleType.PRIVATE_ENDPOINT] + """ + + category: Union[str, "RuleCategory"] + """Category of a managed network Outbound Rule of a cognitive services account. Known values are: + \"Required\", \"Recommended\", \"UserDefined\", and \"Dependency\".""" + status: Union[str, "RuleStatus"] + """Type of a managed network Outbound Rule of a cognitive services account. Known values are: + \"Inactive\", \"Active\", \"Provisioning\", \"Deleting\", and \"Failed\".""" + errorInformation: str + """Error information about an outbound rule of a cognitive services account if RuleStatus is + failed.""" + parentRuleNames: list[str] + destination: "PrivateEndpointOutboundRuleDestination" + """Private Endpoint destination.""" + fqdns: list[str] + """List of FQDNs associated with the private endpoint outbound rule.""" + type: Required[Literal[RuleType.PRIVATE_ENDPOINT]] + """Type of a managed network Outbound Rule of a cognitive services account. Required. + PRIVATE_ENDPOINT.""" + + +class PrivateEndpointOutboundRuleDestination(TypedDict, total=False): + """Private Endpoint destination for an outbound rule. + + :ivar serviceResourceId: The Azure resource ID of the target private endpoint service. + :vartype serviceResourceId: str + :ivar subresourceTarget: The subresource of the target service to connect to. + :vartype subresourceTarget: str + """ + + serviceResourceId: str + """The Azure resource ID of the target private endpoint service.""" + subresourceTarget: str + """The subresource of the target service to connect to.""" + + +class PrivateLinkServiceConnectionState(TypedDict, total=False): + """A collection of information about the state of the connection between service consumer and + provider. + + :ivar status: Indicates whether the connection has been Approved/Rejected/Removed by the owner + of the service. Known values are: "Pending", "Approved", and "Rejected". + :vartype status: Union[str, "PrivateEndpointServiceConnectionStatus"] + :ivar description: The reason for approval/rejection of the connection. + :vartype description: str + :ivar actionsRequired: A message indicating if changes on the service provider require any + updates on the consumer. + :vartype actionsRequired: str + """ + + status: Union[str, "PrivateEndpointServiceConnectionStatus"] + """Indicates whether the connection has been Approved/Rejected/Removed by the owner of the + service. Known values are: \"Pending\", \"Approved\", and \"Rejected\".""" + description: str + """The reason for approval/rejection of the connection.""" + actionsRequired: str + """A message indicating if changes on the service provider require any updates on the consumer.""" + + +class Project(ProxyResource): + """Cognitive Services project is an Azure resource representing the provisioned account's project, + it's type, location and SKU. + + :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 of Cognitive Services project. + :vartype properties: "ProjectProperties" + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. + :vartype location: str + :ivar etag: Resource Etag. + :vartype etag: str + :ivar identity: Identity for the resource. + :vartype identity: "Identity" + """ + + properties: "ProjectProperties" + """Properties of Cognitive Services project.""" + tags: dict[str, str] + """Resource tags.""" + location: str + """The geo-location where the resource lives.""" + etag: str + """Resource Etag.""" + identity: "Identity" + """Identity for the resource.""" + + +class ProjectCapabilityHost(ProxyResource): + """Azure Resource Manager resource envelope for Project CapabilityHost. + + :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: [Required] Additional attributes of the entity. Required. + :vartype properties: "ProjectCapabilityHostProperties" + """ + + properties: Required["ProjectCapabilityHostProperties"] + """[Required] Additional attributes of the entity. Required.""" + + +class ProjectCapabilityHostProperties(TypedDict, total=False): + """ProjectCapabilityHostProperties. + + :ivar aiServicesConnections: List of AI services connections. + :vartype aiServicesConnections: list[str] + :ivar vectorStoreConnections: List of connection names from those available in the account or + project to be used for vector database (e.g. CosmosDB). + :vartype vectorStoreConnections: list[str] + :ivar storageConnections: List of connection names from those available in the account or + project to be used as a storage resource. + :vartype storageConnections: list[str] + :ivar threadStorageConnections: List of connection names from those available in the account or + project to be used for Thread storage. + :vartype threadStorageConnections: list[str] + :ivar provisioningState: Provisioning state for the CapabilityHost. Known values are: + "Succeeded", "Failed", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "CapabilityHostProvisioningState"] + """ + + aiServicesConnections: Optional[list[str]] + """List of AI services connections.""" + vectorStoreConnections: Optional[list[str]] + """List of connection names from those available in the account or project to be used for vector + database (e.g. CosmosDB).""" + storageConnections: Optional[list[str]] + """List of connection names from those available in the account or project to be used as a storage + resource.""" + threadStorageConnections: Optional[list[str]] + """List of connection names from those available in the account or project to be used for Thread + storage.""" + provisioningState: Union[str, "CapabilityHostProvisioningState"] + """Provisioning state for the CapabilityHost. Known values are: \"Succeeded\", \"Failed\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class ProjectProperties(TypedDict, total=False): + """Properties of Cognitive Services Project'. + + :ivar provisioningState: Gets the status of the cognitive services project at the time the + operation was called. Known values are: "Accepted", "Creating", "Deleting", "Moving", "Failed", + "Succeeded", "Canceled", "ResolvingDNS", and "ExtensionUnreachable". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar displayName: The display name of the Cognitive Services Project. + :vartype displayName: str + :ivar description: The description of the Cognitive Services Project. + :vartype description: str + :ivar endpoints: The list of endpoint for this Cognitive Services Project. + :vartype endpoints: dict[str, str] + :ivar isDefault: Indicates whether the project is the default project for the account. + :vartype isDefault: bool + :ivar capabilitySettings: Effective agent capability settings for the project. Optional partial + override of the account defaults; omitted fields inherit from the parent account when present. + Settable only at create time. + :vartype capabilitySettings: "CapabilitySettings" + """ + + provisioningState: Union[str, "ProvisioningState"] + """Gets the status of the cognitive services project at the time the operation was called. Known + values are: \"Accepted\", \"Creating\", \"Deleting\", \"Moving\", \"Failed\", \"Succeeded\", + \"Canceled\", \"ResolvingDNS\", and \"ExtensionUnreachable\".""" + displayName: str + """The display name of the Cognitive Services Project.""" + description: str + """The description of the Cognitive Services Project.""" + endpoints: dict[str, str] + """The list of endpoint for this Cognitive Services Project.""" + isDefault: bool + """Indicates whether the project is the default project for the account.""" + capabilitySettings: "CapabilitySettings" + """Effective agent capability settings for the project. Optional partial override of the account + defaults; omitted fields inherit from the parent account when present. Settable only at create + time.""" + + +class QuotaLimit(TypedDict, total=False): + """QuotaLimit. + + :ivar count: + :vartype count: float + :ivar renewalPeriod: + :vartype renewalPeriod: float + :ivar rules: + :vartype rules: list["ThrottlingRule"] + """ + + count: float + renewalPeriod: float + rules: list["ThrottlingRule"] + + +class QuotaTier(ProxyResource): + """The quota tier information for the subscription. + + :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 of quota tier resource. + :vartype properties: "QuotaTierProperties" + """ + + properties: "QuotaTierProperties" + """Properties of quota tier resource.""" + + +class QuotaTierProperties(TypedDict, total=False): + """Properties of Quota Tier resource'. + + :ivar currentTierName: Name of the current quota tier for the subscription. + :vartype currentTierName: str + :ivar tierUpgradePolicy: Gets the tier upgrade policy for the subscription. Known values are: + "OnceUpgradeIsAvailable" and "NoAutoUpgrade". + :vartype tierUpgradePolicy: Union[str, "TierUpgradePolicy"] + :ivar assignmentDate: The date on which the current tier was assigned to the subscription + (UTC). + :vartype assignmentDate: str + :ivar tierUpgradeEligibilityInfo: Information about the quota tier upgrade eligibility for the + subscription. + :vartype tierUpgradeEligibilityInfo: "QuotaTierUpgradeEligibilityInfo" + """ + + currentTierName: str + """Name of the current quota tier for the subscription.""" + tierUpgradePolicy: Union[str, "TierUpgradePolicy"] + """Gets the tier upgrade policy for the subscription. Known values are: \"OnceUpgradeIsAvailable\" + and \"NoAutoUpgrade\".""" + assignmentDate: str + """The date on which the current tier was assigned to the subscription (UTC).""" + tierUpgradeEligibilityInfo: Optional["QuotaTierUpgradeEligibilityInfo"] + """Information about the quota tier upgrade eligibility for the subscription.""" + + +class QuotaTierUpgradeEligibilityInfo(TypedDict, total=False): + """Information about the quota tier upgrade eligibility for the subscription. + + :ivar nextTierName: Name of the next quota tier for the subscription. + :vartype nextTierName: str + :ivar upgradeAvailabilityStatus: Specifies whether an upgrade to the next quota tier is + available. Known values are: "Available" and "NotAvailable". + :vartype upgradeAvailabilityStatus: Union[str, "UpgradeAvailabilityStatus"] + :ivar upgradeApplicableDate: The date after which the current tier will be upgraded to the next + tier if the TierUpgradePolicy is "OnceUpgradeIsAvailable" (UTC). + :vartype upgradeApplicableDate: str + :ivar upgradeUnavailabilityReason: Reason in case the subscription is not eligible for upgrade + to the next tier. + :vartype upgradeUnavailabilityReason: str + """ + + nextTierName: Optional[str] + """Name of the next quota tier for the subscription.""" + upgradeAvailabilityStatus: Union[str, "UpgradeAvailabilityStatus"] + """Specifies whether an upgrade to the next quota tier is available. Known values are: + \"Available\" and \"NotAvailable\".""" + upgradeApplicableDate: Optional[str] + """The date after which the current tier will be upgraded to the next tier if the + TierUpgradePolicy is \"OnceUpgradeIsAvailable\" (UTC).""" + upgradeUnavailabilityReason: Optional[str] + """Reason in case the subscription is not eligible for upgrade to the next tier.""" + + +class RaiBlocklist(ProxyResource): + """Cognitive Services RaiBlocklist. + + :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 of Cognitive Services RaiBlocklist. + :vartype properties: "RaiBlocklistProperties" + :ivar etag: Resource Etag. + :vartype etag: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + """ + + properties: "RaiBlocklistProperties" + """Properties of Cognitive Services RaiBlocklist.""" + etag: str + """Resource Etag.""" + tags: dict[str, str] + """Resource tags.""" + + +class RaiBlocklistItem(ProxyResource): + """Cognitive Services RaiBlocklist Item. + + :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 of Cognitive Services RaiBlocklist Item. + :vartype properties: "RaiBlocklistItemProperties" + :ivar etag: Resource Etag. + :vartype etag: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + """ + + properties: "RaiBlocklistItemProperties" + """Properties of Cognitive Services RaiBlocklist Item.""" + etag: str + """Resource Etag.""" + tags: dict[str, str] + """Resource tags.""" + + +class RaiBlocklistItemBulkRequest(TypedDict, total=False): + """The Cognitive Services RaiBlocklist Item request body. + + :ivar name: + :vartype name: str + :ivar properties: Properties of Cognitive Services RaiBlocklist Item. + :vartype properties: "RaiBlocklistItemProperties" + """ + + name: str + properties: "RaiBlocklistItemProperties" + """Properties of Cognitive Services RaiBlocklist Item.""" + + +class RaiBlocklistItemProperties(TypedDict, total=False): + """RAI Custom Blocklist Item properties. + + :ivar pattern: Pattern to match against. + :vartype pattern: str + :ivar isRegex: If the pattern is a regex pattern. + :vartype isRegex: bool + """ + + pattern: str + """Pattern to match against.""" + isRegex: bool + """If the pattern is a regex pattern.""" + + +class RaiBlocklistProperties(TypedDict, total=False): + """RAI Custom Blocklist properties. + + :ivar description: Description of the block list. + :vartype description: str + """ + + description: str + """Description of the block list.""" + + +class RaiEgressHeaderTransform(TypedDict, total=False): + """A header transformation applied to matched traffic. For Set or Insert operations, exactly one + of value or valueRef must be provided. For Remove operations, neither value nor valueRef should + be set. + + :ivar operation: The operation to perform on this header. Required. Known values are: "Set", + "Insert", and "Remove". + :vartype operation: Union[str, "RaiEgressHeaderOperation"] + :ivar name: The HTTP header name (e.g., "Authorization", "X-Custom-Auth"). Required. + :vartype name: str + :ivar value: A static header value. Write-only: accepted on create/update, never returned on + read. If omitted on update, the existing value is preserved. Use this for non-sensitive values; + for credentials, use valueRef instead. + :vartype value: str + :ivar valueRef: A dynamic header value resolved at request time from a secret or managed + identity. + :vartype valueRef: "RaiEgressHeaderValueRef" + """ + + operation: Required[Union[str, "RaiEgressHeaderOperation"]] + """The operation to perform on this header. Required. Known values are: \"Set\", \"Insert\", and + \"Remove\".""" + name: Required[str] + """The HTTP header name (e.g., \"Authorization\", \"X-Custom-Auth\"). Required.""" + value: str + """A static header value. Write-only: accepted on create/update, never returned on read. If + omitted on update, the existing value is preserved. Use this for non-sensitive values; for + credentials, use valueRef instead.""" + valueRef: "RaiEgressHeaderValueRef" + """A dynamic header value resolved at request time from a secret or managed identity.""" + + +class RaiEgressHeaderValueRef(TypedDict, total=False): + """A dynamic source for a header value. Exactly one of secretRef or managedIdentityRef must be + set. + + :ivar secretRef: Resolve the value from a stored secret. + :vartype secretRef: "RaiEgressSecretRef" + :ivar managedIdentityRef: Resolve the value from a managed-identity token. + :vartype managedIdentityRef: "RaiEgressManagedIdentityRef" + """ + + secretRef: "RaiEgressSecretRef" + """Resolve the value from a stored secret.""" + managedIdentityRef: "RaiEgressManagedIdentityRef" + """Resolve the value from a managed-identity token.""" + + +class RaiEgressManagedIdentityRef(TypedDict, total=False): + """A reference to a managed-identity token used as a header value. + + :ivar resource: The resource/audience the token is requested for. Required. + :vartype resource: str + :ivar format: Optional format for the resolved token; "{value}" is the placeholder, e.g. + "Bearer {value}". + :vartype format: str + """ + + resource: Required[str] + """The resource/audience the token is requested for. Required.""" + format: str + """Optional format for the resolved token; \"{value}\" is the placeholder, e.g. \"Bearer + {value}\".""" + + +class RaiEgressPolicyConfig(TypedDict, total=False): + """Egress (outbound network) policy configuration nested within an RAI policy. Controls which + external endpoints sandboxed agents can reach and what transformations (header injection, URL + rewrite) are applied to matching traffic. + + :ivar mode: The enforcement mode for egress rules. If omitted on create, the server defaults to + Enforced. On subsequent GET requests, the server always returns the effective mode. Known + values are: "Enforced" and "Audit". + :vartype mode: Union[str, "RaiEgressMode"] + :ivar defaultAction: The default action when no user-defined rules match. Deny blocks unmatched + traffic; Allow permits it. Transform and Rewrite rules are always applied to their matched + traffic regardless of this setting — defaultAction only governs traffic that does not match any + rule. If omitted on create, the server defaults to Deny (fail-closed). On subsequent GET + requests, the server always returns the effective value. Known values are: "Allow" and "Deny". + :vartype defaultAction: Union[str, "RaiEgressDefaultAction"] + :ivar description: Description of the egress policy. + :vartype description: str + :ivar rules: Ordered list of egress rules. First matching rule wins. Rules are evaluated in + declaration order; the first rule whose match criteria are satisfied determines the action + taken on the request. + :vartype rules: list["RaiEgressRule"] + """ + + mode: Union[str, "RaiEgressMode"] + """The enforcement mode for egress rules. If omitted on create, the server defaults to Enforced. + On subsequent GET requests, the server always returns the effective mode. Known values are: + \"Enforced\" and \"Audit\".""" + defaultAction: Union[str, "RaiEgressDefaultAction"] + """The default action when no user-defined rules match. Deny blocks unmatched traffic; Allow + permits it. Transform and Rewrite rules are always applied to their matched traffic regardless + of this setting — defaultAction only governs traffic that does not match any rule. If omitted + on create, the server defaults to Deny (fail-closed). On subsequent GET requests, the server + always returns the effective value. Known values are: \"Allow\" and \"Deny\".""" + description: str + """Description of the egress policy.""" + rules: list["RaiEgressRule"] + """Ordered list of egress rules. First matching rule wins. Rules are evaluated in declaration + order; the first rule whose match criteria are satisfied determines the action taken on the + request.""" + + +class RaiEgressRewriteTarget(TypedDict, total=False): + """Where a Rewrite action sends matched traffic. At least one field must be set; omitted fields + retain the original request values. This constraint is enforced by the server (400 Bad Request + if all fields are omitted). + + :ivar scheme: Target scheme. Original scheme is kept if omitted. Known values are: "http" and + "https". + :vartype scheme: Union[str, "RaiEgressScheme"] + :ivar host: Target host. Original host is kept if omitted. + :vartype host: str + :ivar path: Target path (literal string). Original path (and query) is kept if omitted. + :vartype path: str + """ + + scheme: Union[str, "RaiEgressScheme"] + """Target scheme. Original scheme is kept if omitted. Known values are: \"http\" and \"https\".""" + host: str + """Target host. Original host is kept if omitted.""" + path: str + """Target path (literal string). Original path (and query) is kept if omitted.""" + + +class RaiEgressRule(TypedDict, total=False): + """A single egress rule. Rules are evaluated in order; first match wins. + + :ivar name: Name of the rule. Must be unique within the policy. Required. + :vartype name: str + :ivar description: Description of the rule. + :vartype description: str + :ivar ruleType: The type of rule (e.g., Fqdn). Determines how match criteria are interpreted. + Required. "Fqdn" + :vartype ruleType: Union[str, "RaiEgressRuleType"] + :ivar match: The match criteria for this rule. + :vartype match: "RaiEgressRuleMatch" + :ivar action: The action to take when this rule matches, including the action type and any + type-specific configuration (headers for Transform, rewrite target for Rewrite). Required. + :vartype action: "RaiEgressRuleAction" + """ + + name: Required[str] + """Name of the rule. Must be unique within the policy. Required.""" + description: str + """Description of the rule.""" + ruleType: Required[Union[str, "RaiEgressRuleType"]] + """The type of rule (e.g., Fqdn). Determines how match criteria are interpreted. Required. + \"Fqdn\"""" + match: "RaiEgressRuleMatch" + """The match criteria for this rule.""" + action: Required["RaiEgressRuleAction"] + """The action to take when this rule matches, including the action type and any type-specific + configuration (headers for Transform, rewrite target for Rewrite). Required.""" + + +class RaiEgressRuleAction(TypedDict, total=False): + """The action an egress rule takes when it matches. + + * Allow/Deny: no additional fields needed; headers and rewrite must not be set. + * Transform: headers is required with at least one entry; rewrite must not be set. + * Rewrite: rewrite is required with at least one of scheme/host/path; + headers is optional for injecting headers alongside the redirect. + + :ivar actionType: The kind of action. Required. Known values are: "Allow", "Deny", "Transform", + and "Rewrite". + :vartype actionType: Union[str, "RaiEgressRuleActionType"] + :ivar headers: Header transforms to apply. Required for Transform; optional for Rewrite; not + allowed for Allow or Deny. + :vartype headers: list["RaiEgressHeaderTransform"] + :ivar rewrite: Destination override. Required for Rewrite; not allowed otherwise. + :vartype rewrite: "RaiEgressRewriteTarget" + """ + + actionType: Required[Union[str, "RaiEgressRuleActionType"]] + """The kind of action. Required. Known values are: \"Allow\", \"Deny\", \"Transform\", and + \"Rewrite\".""" + headers: list["RaiEgressHeaderTransform"] + """Header transforms to apply. Required for Transform; optional for Rewrite; not allowed for Allow + or Deny.""" + rewrite: "RaiEgressRewriteTarget" + """Destination override. Required for Rewrite; not allowed otherwise.""" + + +class RaiEgressRuleMatch(TypedDict, total=False): + """The match criteria for an egress rule. If both host and path are omitted, the rule matches all + traffic. Host uses DNS wildcard syntax (e.g., "\\*.openai.com" matches "api.openai.com"). Path + uses URI prefix matching with an asterisk as a single-segment wildcard. For example, "/v1/\\*" + matches "/v1/chat". + + :ivar host: Host pattern to match using DNS wildcard syntax (e.g., "\\*.openai.com"). A leading + "\\*." matches any subdomain. Omit to match all hosts. + :vartype host: str + :ivar path: Path pattern to match using URI prefix matching. An asterisk serves as a + single-segment wildcard. For example, "/v1/\\*" matches "/v1/chat". Omit to match all paths. + :vartype path: str + """ + + host: str + """Host pattern to match using DNS wildcard syntax (e.g., \"\\*.openai.com\"). A leading \"\\*.\" + matches any subdomain. Omit to match all hosts.""" + path: str + """Path pattern to match using URI prefix matching. An asterisk serves as a single-segment + wildcard. For example, \"/v1/\\*\" matches \"/v1/chat\". Omit to match all paths.""" + + +class RaiEgressSecretRef(TypedDict, total=False): + """A reference to a stored secret used as a header value. + + :ivar secretId: Identifier of the secret to inject. Required. + :vartype secretId: str + :ivar secretKey: Optional key within the secret. + :vartype secretKey: str + :ivar format: Optional format for the resolved value; "{value}" is the placeholder, e.g. + "Bearer {value}". + :vartype format: str + """ + + secretId: Required[str] + """Identifier of the secret to inject. Required.""" + secretKey: str + """Optional key within the secret.""" + format: str + """Optional format for the resolved value; \"{value}\" is the placeholder, e.g. \"Bearer + {value}\".""" + + +class RaiExternalSafetyProviderSchema(ProxyResource): + """Cognitive Services Rai External Safety provider Schema. + + :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 of Cognitive Services Rai External Safety provider. + :vartype properties: "RaiExternalSafetyProviderSchemaProperties" + :ivar etag: Resource Etag. + :vartype etag: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + """ + + properties: "RaiExternalSafetyProviderSchemaProperties" + """Properties of Cognitive Services Rai External Safety provider.""" + etag: str + """Resource Etag.""" + tags: dict[str, str] + """Resource tags.""" + + +class RaiExternalSafetyProviderSchemaProperties(TypedDict, total=False): # pylint: disable=name-too-long + """RAI External SafetyProvider schema properties. + + :ivar providerId: The unique identifier of the safety provider. + :vartype providerId: str + :ivar providerName: Name of the safety provider. + :vartype providerName: str + :ivar mode: Safety provider mode sync/async. + :vartype mode: str + :ivar url: Webhook URL for the safety provider. + :vartype url: str + :ivar secretName: The name of the secret in Key Vault that contains the api key to access the + webhook. + :vartype secretName: str + :ivar managedIdentity: The managed identity to access the Key Vault. + :vartype managedIdentity: str + :ivar keyVaultUri: The Key Vault URI that contains the api key for safety provider urls. + :vartype keyVaultUri: str + :ivar createdAt: Creation time of the safety provider. + :vartype createdAt: str + :ivar lastModifiedAt: Last modified time of the safety provider. + :vartype lastModifiedAt: str + """ + + providerId: str + """The unique identifier of the safety provider.""" + providerName: str + """Name of the safety provider.""" + mode: str + """Safety provider mode sync/async.""" + url: str + """Webhook URL for the safety provider.""" + secretName: str + """The name of the secret in Key Vault that contains the api key to access the webhook.""" + managedIdentity: str + """The managed identity to access the Key Vault.""" + keyVaultUri: str + """The Key Vault URI that contains the api key for safety provider urls.""" + createdAt: str + """Creation time of the safety provider.""" + lastModifiedAt: str + """Last modified time of the safety provider.""" + + +class RaiMonitorConfig(TypedDict, total=False): + """Cognitive Services Rai Monitor Config. + + :ivar adxStorageResourceId: The storage resource Id. + :vartype adxStorageResourceId: str + :ivar identityClientId: The identity client Id to access the storage. + :vartype identityClientId: str + """ + + adxStorageResourceId: str + """The storage resource Id.""" + identityClientId: str + """The identity client Id to access the storage.""" + + +class RaiPolicy(ProxyResource): + """Cognitive Services RaiPolicy. + + :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 of Cognitive Services RaiPolicy. + :vartype properties: "RaiPolicyProperties" + :ivar etag: Resource Etag. + :vartype etag: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + """ + + properties: "RaiPolicyProperties" + """Properties of Cognitive Services RaiPolicy.""" + etag: str + """Resource Etag.""" + tags: dict[str, str] + """Resource tags.""" + + +class RaiPolicyContentFilter(TypedDict, total=False): + """Azure OpenAI Content Filter. + + :ivar name: Name of ContentFilter. + :vartype name: str + :ivar enabled: If the ContentFilter is enabled. + :vartype enabled: bool + :ivar severityThreshold: Level at which content is filtered. Known values are: "Low", "Medium", + and "High". + :vartype severityThreshold: Union[str, "ContentLevel"] + :ivar blocking: If blocking would occur. + :vartype blocking: bool + :ivar source: Content source to apply the Content Filters. Known values are: "Prompt", + "Completion", "PreToolCall", "PostToolCall", "PreRun", and "PostRun". + :vartype source: Union[str, "RaiPolicyContentSource"] + :ivar action: The action types to apply to the content filters. Known values are: "None", + "BLOCKING", "ANNOTATING", "HITL", and "RETRY". + :vartype action: Union[str, "RaiActionType"] + """ + + name: str + """Name of ContentFilter.""" + enabled: bool + """If the ContentFilter is enabled.""" + severityThreshold: Union[str, "ContentLevel"] + """Level at which content is filtered. Known values are: \"Low\", \"Medium\", and \"High\".""" + blocking: bool + """If blocking would occur.""" + source: Union[str, "RaiPolicyContentSource"] + """Content source to apply the Content Filters. Known values are: \"Prompt\", \"Completion\", + \"PreToolCall\", \"PostToolCall\", \"PreRun\", and \"PostRun\".""" + action: Union[str, "RaiActionType"] + """The action types to apply to the content filters. Known values are: \"None\", \"BLOCKING\", + \"ANNOTATING\", \"HITL\", and \"RETRY\".""" + + +class RaiPolicyProperties(TypedDict, total=False): + """Azure OpenAI Content Filters properties. + + :ivar type: Content Filters policy type. Known values are: "UserManaged" and "SystemManaged". + :vartype type: Union[str, "RaiPolicyType"] + :ivar mode: Rai policy mode. The enum value mapping is as below: Default = 0, Deferred=1, + Blocking=2, Asynchronous_filter =3. Please use 'Asynchronous_filter' after 2025-06-01. It is + the same as 'Deferred' in previous version. Known values are: "Default", "Deferred", + "Blocking", and "Asynchronous_filter". + :vartype mode: Union[str, "RaiPolicyMode"] + :ivar basePolicyName: Name of Rai policy. + :vartype basePolicyName: str + :ivar contentFilters: The list of Content Filters. + :vartype contentFilters: list["RaiPolicyContentFilter"] + :ivar customBlocklists: The list of custom Blocklist. + :vartype customBlocklists: list["CustomBlocklistConfig"] + :ivar safetyProviders: The list of Safety Providers. + :vartype safetyProviders: list["SafetyProviderConfig"] + :ivar egressPolicy: Egress (outbound network) policy controlling which external endpoints + sandboxed agents can reach. Includes rules with Allow/Deny/Transform/Rewrite actions. + :vartype egressPolicy: "RaiEgressPolicyConfig" + """ + + type: Union[str, "RaiPolicyType"] + """Content Filters policy type. Known values are: \"UserManaged\" and \"SystemManaged\".""" + mode: Union[str, "RaiPolicyMode"] + """Rai policy mode. The enum value mapping is as below: Default = 0, Deferred=1, Blocking=2, + Asynchronous_filter =3. Please use 'Asynchronous_filter' after 2025-06-01. It is the same as + 'Deferred' in previous version. Known values are: \"Default\", \"Deferred\", \"Blocking\", and + \"Asynchronous_filter\".""" + basePolicyName: str + """Name of Rai policy.""" + contentFilters: list["RaiPolicyContentFilter"] + """The list of Content Filters.""" + customBlocklists: list["CustomBlocklistConfig"] + """The list of custom Blocklist.""" + safetyProviders: list["SafetyProviderConfig"] + """The list of Safety Providers.""" + egressPolicy: "RaiEgressPolicyConfig" + """Egress (outbound network) policy controlling which external endpoints sandboxed agents can + reach. Includes rules with Allow/Deny/Transform/Rewrite actions.""" + + +class RaiSafetyProviderConfig(TypedDict, total=False): + """Azure OpenAI RAI safety provider config. + + :ivar safetyProviderName: Name of RAI Safety Provider. + :vartype safetyProviderName: str + :ivar blocking: If blocking would occur. + :vartype blocking: bool + """ + + safetyProviderName: str + """Name of RAI Safety Provider.""" + blocking: bool + """If blocking would occur.""" + + +class RaiToolLabel(ProxyResource): + """Cognitive Services RAI Tool Label 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" + :ivar properties: Properties of the RAI Tool Label. + :vartype properties: "RaiToolLabelProperties" + :ivar etag: Resource Etag. + :vartype etag: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + """ + + properties: "RaiToolLabelProperties" + """Properties of the RAI Tool Label.""" + etag: str + """Resource Etag.""" + tags: dict[str, str] + """Resource tags.""" + + +class RaiToolLabelProperties(TypedDict, total=False): + """RAI Tool Label properties. + + :ivar toolConnectionName: The unique tool connection name, e.g., 'Web_Search'. Required. + :vartype toolConnectionName: str + :ivar accountScope: Account-level tool label definition. + :vartype accountScope: "RaiToolLabelPropertiesAccountScope" + :ivar projectScopes: List of project-level tool label definitions. + :vartype projectScopes: list["RaiToolLabelPropertiesProjectScopesItem"] + """ + + toolConnectionName: Required[str] + """The unique tool connection name, e.g., 'Web_Search'. Required.""" + accountScope: "RaiToolLabelPropertiesAccountScope" + """Account-level tool label definition.""" + projectScopes: list["RaiToolLabelPropertiesProjectScopesItem"] + """List of project-level tool label definitions.""" + + +class RaiToolLabelPropertiesAccountScope(TypedDict, total=False): + """Account-level tool label definition. + + :ivar labelValues: Dictionary of label key-value pairs for the account scope. + :vartype labelValues: dict[str, str] + """ + + labelValues: dict[str, str] + """Dictionary of label key-value pairs for the account scope.""" + + +class RaiToolLabelPropertiesProjectScopesItem(TypedDict, total=False): + """RaiToolLabelPropertiesProjectScopesItem. + + :ivar project: Project name to which this scope applies. Required. + :vartype project: str + :ivar labelValues: Dictionary of label key-value pairs for the project scope. Required. + :vartype labelValues: dict[str, str] + """ + + project: Required[str] + """Project name to which this scope applies. Required.""" + labelValues: Required[dict[str, str]] + """Dictionary of label key-value pairs for the project scope. Required.""" + + +class RaiTopic(ProxyResource): + """Cognitive Services Rai Topic. + + :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 of Cognitive Services Rai Topic. + :vartype properties: "RaiTopicProperties" + :ivar etag: Resource Etag. + :vartype etag: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + """ + + properties: "RaiTopicProperties" + """Properties of Cognitive Services Rai Topic.""" + etag: str + """Resource Etag.""" + tags: dict[str, str] + """Resource tags.""" + + +class RaiTopicProperties(TypedDict, total=False): + """RAI Custom Topic properties. + + :ivar topicId: The unique identifier of the custom topic. + :vartype topicId: str + :ivar topicName: The name of the custom topic. + :vartype topicName: str + :ivar description: Description of the custom topic. + :vartype description: str + :ivar sampleBlobUrl: Sample blob url for the custom topic. + :vartype sampleBlobUrl: str + :ivar status: Status of the custom topic. + :vartype status: str + :ivar failedReason: Failed reason if the status is Failed. + :vartype failedReason: str + :ivar createdAt: Creation time of the custom topic. + :vartype createdAt: str + :ivar lastModifiedAt: Last modified time of the custom topic. + :vartype lastModifiedAt: str + """ + + topicId: str + """The unique identifier of the custom topic.""" + topicName: str + """The name of the custom topic.""" + description: str + """Description of the custom topic.""" + sampleBlobUrl: str + """Sample blob url for the custom topic.""" + status: str + """Status of the custom topic.""" + failedReason: str + """Failed reason if the status is Failed.""" + createdAt: str + """Creation time of the custom topic.""" + lastModifiedAt: str + """Last modified time of the custom topic.""" + + +class RegenerateKeyParameters(TypedDict, total=False): + """Regenerate key parameters. + + :ivar keyName: key name to generate (Key1|Key2). Required. Known values are: "Key1" and "Key2". + :vartype keyName: Union[str, "KeyName"] + """ + + keyName: Required[Union[str, "KeyName"]] + """key name to generate (Key1|Key2). Required. Known values are: \"Key1\" and \"Key2\".""" + + +class RegionSetting(TypedDict, total=False): + """The call rate limit Cognitive Services account. + + :ivar name: Name of the region. + :vartype name: str + :ivar value: A value for priority or weighted routing methods. + :vartype value: float + :ivar customsubdomain: Maps the region to the regional custom subdomain. + :vartype customsubdomain: str + """ + + name: str + """Name of the region.""" + value: float + """A value for priority or weighted routing methods.""" + customsubdomain: str + """Maps the region to the regional custom subdomain.""" + + +class RequestMatchPattern(TypedDict, total=False): + """RequestMatchPattern. + + :ivar path: + :vartype path: str + :ivar method: + :vartype method: str + """ + + path: str + method: str + + +class RoleBasedBuiltInAuthorizationPolicy(TypedDict, total=False): + """Built-in role-based authorization policy. + + :ivar type: Authorization scheme type. Required. Standard AzureML RBAC. + :vartype type: Literal[BuiltInAuthorizationScheme.DEFAULT] + """ + + type: Required[Literal[BuiltInAuthorizationScheme.DEFAULT]] + """Authorization scheme type. Required. Standard AzureML RBAC.""" + + +class SafetyProviderConfig(RaiSafetyProviderConfig): + """Gets or sets the source to which safety providers applies. + + :ivar safetyProviderName: Name of RAI Safety Provider. + :vartype safetyProviderName: str + :ivar blocking: If blocking would occur. + :vartype blocking: bool + :ivar source: Content source to apply the Content Filters. Known values are: "Prompt", + "Completion", "PreToolCall", "PostToolCall", "PreRun", and "PostRun". + :vartype source: Union[str, "RaiPolicyContentSource"] + """ + + source: Union[str, "RaiPolicyContentSource"] + """Content source to apply the Content Filters. Known values are: \"Prompt\", \"Completion\", + \"PreToolCall\", \"PostToolCall\", \"PreRun\", and \"PostRun\".""" + + +class SASAuthTypeConnectionProperties(TypedDict, total=False): + """SASAuthTypeConnectionProperties. + + :ivar category: Category of the connection. Known values are: "PythonFeed", + "ContainerRegistry", "Git", "S3", "Snowflake", "AzureKeyVault", "AzureSqlDb", + "AzureSynapseAnalytics", "AzureMySqlDb", "AzurePostgresDb", "ADLSGen2", + "AzureContainerAppEnvironment", "Redis", "ApiKey", "AzureOpenAI", "AIServices", + "CognitiveSearch", "CognitiveService", "CustomKeys", "AzureBlob", "AzureStorageAccount", + "AzureOneLake", "CosmosDb", "CosmosDbMongoDbApi", "AzureDataExplorer", "AzureMariaDb", + "AzureDatabricksDeltaLake", "AzureSqlMi", "AzureTableStorage", "AmazonRdsForOracle", + "AmazonRdsForSqlServer", "AmazonRedshift", "Db2", "Drill", "GoogleBigQuery", "Greenplum", + "Hbase", "Hive", "Impala", "Informix", "MariaDb", "MicrosoftAccess", "MySql", "Netezza", + "Oracle", "Phoenix", "PostgreSql", "Presto", "SapOpenHub", "SapBw", "SapHana", "SapTable", + "Spark", "SqlServer", "Sybase", "Teradata", "Vertica", "Pinecone", "Databricks", "Cassandra", + "Couchbase", "MongoDbV2", "MongoDbAtlas", "AmazonS3Compatible", "FileServer", "FtpServer", + "GoogleCloudStorage", "Hdfs", "OracleCloudStorage", "Sftp", "GenericHttp", "ODataRest", "Odbc", + "GenericRest", "RemoteTool", "AmazonMws", "Concur", "Dynamics", "DynamicsAx", "DynamicsCrm", + "GoogleAdWords", "Hubspot", "Jira", "Magento", "Marketo", "Office365", "Eloqua", "Responsys", + "OracleServiceCloud", "PayPal", "QuickBooks", "Salesforce", "SalesforceServiceCloud", + "SalesforceMarketingCloud", "SapCloudForCustomer", "SapEcc", "ServiceNow", + "SharePointOnlineList", "Shopify", "Square", "WebTable", "Xero", "Zoho", + "GenericContainerRegistry", "Elasticsearch", "AppInsights", "AppConfig", "OpenAI", "Serp", + "BingLLMSearch", "Serverless", "ManagedOnlineEndpoint", "ApiManagement", "ModelGateway", + "GroundingWithBingSearch", "GroundingWithCustomSearch", "Sharepoint", "MicrosoftFabric", + "PowerPlatformEnvironment", and "RemoteA2A". + :vartype category: Union[str, "ConnectionCategory"] + :ivar createdByWorkspaceArmId: + :vartype createdByWorkspaceArmId: str + :ivar error: Provides the error message if the connection fails. + :vartype error: str + :ivar expiryTime: + :vartype expiryTime: str + :ivar group: Group based on connection category. Known values are: "Azure", "AzureAI", + "Database", "NoSQL", "File", "GenericProtocol", and "ServicesAndApps". + :vartype group: Union[str, "ConnectionGroup"] + :ivar isSharedToAll: + :vartype isSharedToAll: bool + :ivar metadata: Store user metadata for this connection. + :vartype metadata: dict[str, str] + :ivar peRequirement: Specifies how private endpoints are used with this connection: 'Required', + 'NotRequired', or 'NotApplicable'. Known values are: "Required", "NotRequired", and + "NotApplicable". + :vartype peRequirement: Union[str, "ManagedPERequirement"] + :ivar peStatus: Specifies the status of private endpoints for this connection: 'Inactive', + 'Active', or 'NotApplicable'. Known values are: "Inactive", "Active", and "NotApplicable". + :vartype peStatus: Union[str, "ManagedPEStatus"] + :ivar sharedUserList: + :vartype sharedUserList: list[str] + :ivar target: The connection URL to be used. + :vartype target: str + :ivar useWorkspaceManagedIdentity: + :vartype useWorkspaceManagedIdentity: bool + :ivar credentials: + :vartype credentials: "ConnectionSharedAccessSignature" + :ivar authType: Authentication type of the connection target. Required. SAS. + :vartype authType: Literal[ConnectionAuthType.SAS] + """ + + category: Union[str, "ConnectionCategory"] + """Category of the connection. Known values are: \"PythonFeed\", \"ContainerRegistry\", \"Git\", + \"S3\", \"Snowflake\", \"AzureKeyVault\", \"AzureSqlDb\", \"AzureSynapseAnalytics\", + \"AzureMySqlDb\", \"AzurePostgresDb\", \"ADLSGen2\", \"AzureContainerAppEnvironment\", + \"Redis\", \"ApiKey\", \"AzureOpenAI\", \"AIServices\", \"CognitiveSearch\", + \"CognitiveService\", \"CustomKeys\", \"AzureBlob\", \"AzureStorageAccount\", \"AzureOneLake\", + \"CosmosDb\", \"CosmosDbMongoDbApi\", \"AzureDataExplorer\", \"AzureMariaDb\", + \"AzureDatabricksDeltaLake\", \"AzureSqlMi\", \"AzureTableStorage\", \"AmazonRdsForOracle\", + \"AmazonRdsForSqlServer\", \"AmazonRedshift\", \"Db2\", \"Drill\", \"GoogleBigQuery\", + \"Greenplum\", \"Hbase\", \"Hive\", \"Impala\", \"Informix\", \"MariaDb\", \"MicrosoftAccess\", + \"MySql\", \"Netezza\", \"Oracle\", \"Phoenix\", \"PostgreSql\", \"Presto\", \"SapOpenHub\", + \"SapBw\", \"SapHana\", \"SapTable\", \"Spark\", \"SqlServer\", \"Sybase\", \"Teradata\", + \"Vertica\", \"Pinecone\", \"Databricks\", \"Cassandra\", \"Couchbase\", \"MongoDbV2\", + \"MongoDbAtlas\", \"AmazonS3Compatible\", \"FileServer\", \"FtpServer\", + \"GoogleCloudStorage\", \"Hdfs\", \"OracleCloudStorage\", \"Sftp\", \"GenericHttp\", + \"ODataRest\", \"Odbc\", \"GenericRest\", \"RemoteTool\", \"AmazonMws\", \"Concur\", + \"Dynamics\", \"DynamicsAx\", \"DynamicsCrm\", \"GoogleAdWords\", \"Hubspot\", \"Jira\", + \"Magento\", \"Marketo\", \"Office365\", \"Eloqua\", \"Responsys\", \"OracleServiceCloud\", + \"PayPal\", \"QuickBooks\", \"Salesforce\", \"SalesforceServiceCloud\", + \"SalesforceMarketingCloud\", \"SapCloudForCustomer\", \"SapEcc\", \"ServiceNow\", + \"SharePointOnlineList\", \"Shopify\", \"Square\", \"WebTable\", \"Xero\", \"Zoho\", + \"GenericContainerRegistry\", \"Elasticsearch\", \"AppInsights\", \"AppConfig\", \"OpenAI\", + \"Serp\", \"BingLLMSearch\", \"Serverless\", \"ManagedOnlineEndpoint\", \"ApiManagement\", + \"ModelGateway\", \"GroundingWithBingSearch\", \"GroundingWithCustomSearch\", \"Sharepoint\", + \"MicrosoftFabric\", \"PowerPlatformEnvironment\", and \"RemoteA2A\".""" + createdByWorkspaceArmId: str + error: str + """Provides the error message if the connection fails.""" + expiryTime: str + group: Union[str, "ConnectionGroup"] + """Group based on connection category. Known values are: \"Azure\", \"AzureAI\", \"Database\", + \"NoSQL\", \"File\", \"GenericProtocol\", and \"ServicesAndApps\".""" + isSharedToAll: bool + metadata: dict[str, str] + """Store user metadata for this connection.""" + peRequirement: Union[str, "ManagedPERequirement"] + """Specifies how private endpoints are used with this connection: 'Required', 'NotRequired', or + 'NotApplicable'. Known values are: \"Required\", \"NotRequired\", and \"NotApplicable\".""" + peStatus: Union[str, "ManagedPEStatus"] + """Specifies the status of private endpoints for this connection: 'Inactive', 'Active', or + 'NotApplicable'. Known values are: \"Inactive\", \"Active\", and \"NotApplicable\".""" + sharedUserList: list[str] + target: str + """The connection URL to be used.""" + useWorkspaceManagedIdentity: bool + credentials: "ConnectionSharedAccessSignature" + authType: Required[Literal[ConnectionAuthType.SAS]] + """Authentication type of the connection target. Required. SAS.""" + + +class ServicePrincipalAuthTypeConnectionProperties(TypedDict, total=False): # pylint: disable=name-too-long + """ServicePrincipalAuthTypeConnectionProperties. + + :ivar category: Category of the connection. Known values are: "PythonFeed", + "ContainerRegistry", "Git", "S3", "Snowflake", "AzureKeyVault", "AzureSqlDb", + "AzureSynapseAnalytics", "AzureMySqlDb", "AzurePostgresDb", "ADLSGen2", + "AzureContainerAppEnvironment", "Redis", "ApiKey", "AzureOpenAI", "AIServices", + "CognitiveSearch", "CognitiveService", "CustomKeys", "AzureBlob", "AzureStorageAccount", + "AzureOneLake", "CosmosDb", "CosmosDbMongoDbApi", "AzureDataExplorer", "AzureMariaDb", + "AzureDatabricksDeltaLake", "AzureSqlMi", "AzureTableStorage", "AmazonRdsForOracle", + "AmazonRdsForSqlServer", "AmazonRedshift", "Db2", "Drill", "GoogleBigQuery", "Greenplum", + "Hbase", "Hive", "Impala", "Informix", "MariaDb", "MicrosoftAccess", "MySql", "Netezza", + "Oracle", "Phoenix", "PostgreSql", "Presto", "SapOpenHub", "SapBw", "SapHana", "SapTable", + "Spark", "SqlServer", "Sybase", "Teradata", "Vertica", "Pinecone", "Databricks", "Cassandra", + "Couchbase", "MongoDbV2", "MongoDbAtlas", "AmazonS3Compatible", "FileServer", "FtpServer", + "GoogleCloudStorage", "Hdfs", "OracleCloudStorage", "Sftp", "GenericHttp", "ODataRest", "Odbc", + "GenericRest", "RemoteTool", "AmazonMws", "Concur", "Dynamics", "DynamicsAx", "DynamicsCrm", + "GoogleAdWords", "Hubspot", "Jira", "Magento", "Marketo", "Office365", "Eloqua", "Responsys", + "OracleServiceCloud", "PayPal", "QuickBooks", "Salesforce", "SalesforceServiceCloud", + "SalesforceMarketingCloud", "SapCloudForCustomer", "SapEcc", "ServiceNow", + "SharePointOnlineList", "Shopify", "Square", "WebTable", "Xero", "Zoho", + "GenericContainerRegistry", "Elasticsearch", "AppInsights", "AppConfig", "OpenAI", "Serp", + "BingLLMSearch", "Serverless", "ManagedOnlineEndpoint", "ApiManagement", "ModelGateway", + "GroundingWithBingSearch", "GroundingWithCustomSearch", "Sharepoint", "MicrosoftFabric", + "PowerPlatformEnvironment", and "RemoteA2A". + :vartype category: Union[str, "ConnectionCategory"] + :ivar createdByWorkspaceArmId: + :vartype createdByWorkspaceArmId: str + :ivar error: Provides the error message if the connection fails. + :vartype error: str + :ivar expiryTime: + :vartype expiryTime: str + :ivar group: Group based on connection category. Known values are: "Azure", "AzureAI", + "Database", "NoSQL", "File", "GenericProtocol", and "ServicesAndApps". + :vartype group: Union[str, "ConnectionGroup"] + :ivar isSharedToAll: + :vartype isSharedToAll: bool + :ivar metadata: Store user metadata for this connection. + :vartype metadata: dict[str, str] + :ivar peRequirement: Specifies how private endpoints are used with this connection: 'Required', + 'NotRequired', or 'NotApplicable'. Known values are: "Required", "NotRequired", and + "NotApplicable". + :vartype peRequirement: Union[str, "ManagedPERequirement"] + :ivar peStatus: Specifies the status of private endpoints for this connection: 'Inactive', + 'Active', or 'NotApplicable'. Known values are: "Inactive", "Active", and "NotApplicable". + :vartype peStatus: Union[str, "ManagedPEStatus"] + :ivar sharedUserList: + :vartype sharedUserList: list[str] + :ivar target: The connection URL to be used. + :vartype target: str + :ivar useWorkspaceManagedIdentity: + :vartype useWorkspaceManagedIdentity: bool + :ivar credentials: + :vartype credentials: "ConnectionServicePrincipal" + :ivar authType: Authentication type of the connection target. Required. SERVICE_PRINCIPAL. + :vartype authType: Literal[ConnectionAuthType.SERVICE_PRINCIPAL] + """ + + category: Union[str, "ConnectionCategory"] + """Category of the connection. Known values are: \"PythonFeed\", \"ContainerRegistry\", \"Git\", + \"S3\", \"Snowflake\", \"AzureKeyVault\", \"AzureSqlDb\", \"AzureSynapseAnalytics\", + \"AzureMySqlDb\", \"AzurePostgresDb\", \"ADLSGen2\", \"AzureContainerAppEnvironment\", + \"Redis\", \"ApiKey\", \"AzureOpenAI\", \"AIServices\", \"CognitiveSearch\", + \"CognitiveService\", \"CustomKeys\", \"AzureBlob\", \"AzureStorageAccount\", \"AzureOneLake\", + \"CosmosDb\", \"CosmosDbMongoDbApi\", \"AzureDataExplorer\", \"AzureMariaDb\", + \"AzureDatabricksDeltaLake\", \"AzureSqlMi\", \"AzureTableStorage\", \"AmazonRdsForOracle\", + \"AmazonRdsForSqlServer\", \"AmazonRedshift\", \"Db2\", \"Drill\", \"GoogleBigQuery\", + \"Greenplum\", \"Hbase\", \"Hive\", \"Impala\", \"Informix\", \"MariaDb\", \"MicrosoftAccess\", + \"MySql\", \"Netezza\", \"Oracle\", \"Phoenix\", \"PostgreSql\", \"Presto\", \"SapOpenHub\", + \"SapBw\", \"SapHana\", \"SapTable\", \"Spark\", \"SqlServer\", \"Sybase\", \"Teradata\", + \"Vertica\", \"Pinecone\", \"Databricks\", \"Cassandra\", \"Couchbase\", \"MongoDbV2\", + \"MongoDbAtlas\", \"AmazonS3Compatible\", \"FileServer\", \"FtpServer\", + \"GoogleCloudStorage\", \"Hdfs\", \"OracleCloudStorage\", \"Sftp\", \"GenericHttp\", + \"ODataRest\", \"Odbc\", \"GenericRest\", \"RemoteTool\", \"AmazonMws\", \"Concur\", + \"Dynamics\", \"DynamicsAx\", \"DynamicsCrm\", \"GoogleAdWords\", \"Hubspot\", \"Jira\", + \"Magento\", \"Marketo\", \"Office365\", \"Eloqua\", \"Responsys\", \"OracleServiceCloud\", + \"PayPal\", \"QuickBooks\", \"Salesforce\", \"SalesforceServiceCloud\", + \"SalesforceMarketingCloud\", \"SapCloudForCustomer\", \"SapEcc\", \"ServiceNow\", + \"SharePointOnlineList\", \"Shopify\", \"Square\", \"WebTable\", \"Xero\", \"Zoho\", + \"GenericContainerRegistry\", \"Elasticsearch\", \"AppInsights\", \"AppConfig\", \"OpenAI\", + \"Serp\", \"BingLLMSearch\", \"Serverless\", \"ManagedOnlineEndpoint\", \"ApiManagement\", + \"ModelGateway\", \"GroundingWithBingSearch\", \"GroundingWithCustomSearch\", \"Sharepoint\", + \"MicrosoftFabric\", \"PowerPlatformEnvironment\", and \"RemoteA2A\".""" + createdByWorkspaceArmId: str + error: str + """Provides the error message if the connection fails.""" + expiryTime: str + group: Union[str, "ConnectionGroup"] + """Group based on connection category. Known values are: \"Azure\", \"AzureAI\", \"Database\", + \"NoSQL\", \"File\", \"GenericProtocol\", and \"ServicesAndApps\".""" + isSharedToAll: bool + metadata: dict[str, str] + """Store user metadata for this connection.""" + peRequirement: Union[str, "ManagedPERequirement"] + """Specifies how private endpoints are used with this connection: 'Required', 'NotRequired', or + 'NotApplicable'. Known values are: \"Required\", \"NotRequired\", and \"NotApplicable\".""" + peStatus: Union[str, "ManagedPEStatus"] + """Specifies the status of private endpoints for this connection: 'Inactive', 'Active', or + 'NotApplicable'. Known values are: \"Inactive\", \"Active\", and \"NotApplicable\".""" + sharedUserList: list[str] + target: str + """The connection URL to be used.""" + useWorkspaceManagedIdentity: bool + credentials: "ConnectionServicePrincipal" + authType: Required[Literal[ConnectionAuthType.SERVICE_PRINCIPAL]] + """Authentication type of the connection target. Required. SERVICE_PRINCIPAL.""" + + +class ServiceTagOutboundRule(TypedDict, total=False): + """Service Tag outbound rule for the managed network of a cognitive services account. + + :ivar category: Category of a managed network Outbound Rule of a cognitive services account. + Known values are: "Required", "Recommended", "UserDefined", and "Dependency". + :vartype category: Union[str, "RuleCategory"] + :ivar status: Type of a managed network Outbound Rule of a cognitive services account. Known + values are: "Inactive", "Active", "Provisioning", "Deleting", and "Failed". + :vartype status: Union[str, "RuleStatus"] + :ivar errorInformation: Error information about an outbound rule of a cognitive services + account if RuleStatus is failed. + :vartype errorInformation: str + :ivar parentRuleNames: + :vartype parentRuleNames: list[str] + :ivar destination: Service Tag destination. + :vartype destination: "ServiceTagOutboundRuleDestination" + :ivar type: Type of a managed network Outbound Rule of a cognitive services account. Required. + SERVICE_TAG. + :vartype type: Literal[RuleType.SERVICE_TAG] + """ + + category: Union[str, "RuleCategory"] + """Category of a managed network Outbound Rule of a cognitive services account. Known values are: + \"Required\", \"Recommended\", \"UserDefined\", and \"Dependency\".""" + status: Union[str, "RuleStatus"] + """Type of a managed network Outbound Rule of a cognitive services account. Known values are: + \"Inactive\", \"Active\", \"Provisioning\", \"Deleting\", and \"Failed\".""" + errorInformation: str + """Error information about an outbound rule of a cognitive services account if RuleStatus is + failed.""" + parentRuleNames: list[str] + destination: "ServiceTagOutboundRuleDestination" + """Service Tag destination.""" + type: Required[Literal[RuleType.SERVICE_TAG]] + """Type of a managed network Outbound Rule of a cognitive services account. Required. SERVICE_TAG.""" + + +class ServiceTagOutboundRuleDestination(TypedDict, total=False): + """Service Tag destination for an outbound rule. + + :ivar serviceTag: Name of the Azure service tag to target. + :vartype serviceTag: str + :ivar protocol: Network protocol used by the service tag rule. + :vartype protocol: str + :ivar portRanges: Destination port ranges. + :vartype portRanges: str + :ivar action: The action for the service tag outbound rule. Known values are: "Allow" and + "Deny". + :vartype action: Union[str, "RuleAction"] + :ivar addressPrefixes: Optional address prefixes. If provided, the serviceTag property will be + ignored. + :vartype addressPrefixes: list[str] + """ + + serviceTag: str + """Name of the Azure service tag to target.""" + protocol: str + """Network protocol used by the service tag rule.""" + portRanges: str + """Destination port ranges.""" + action: Union[str, "RuleAction"] + """The action for the service tag outbound rule. Known values are: \"Allow\" and \"Deny\".""" + addressPrefixes: list[str] + """Optional address prefixes. If provided, the serviceTag property will be ignored.""" + + +class Sku(TypedDict, total=False): + """The resource model definition representing SKU. + + :ivar name: The name of the SKU. Ex - P3. It is typically a letter+number code. Required. + :vartype name: str + :ivar tier: This field is required to be implemented by the Resource Provider if the service + has more than one tier, but is not required on a PUT. Known values are: "Free", "Basic", + "Standard", "Premium", and "Enterprise". + :vartype tier: Union[str, "SkuTier"] + :ivar size: The SKU size. When the name field is the combination of tier and some other value, + this would be the standalone code. + :vartype size: str + :ivar family: If the service has different generations of hardware, for the same SKU, then that + can be captured here. + :vartype family: str + :ivar capacity: If the SKU supports scale out/in then the capacity integer should be included. + If scale out/in is not possible for the resource this may be omitted. + :vartype capacity: int + """ + + name: Required[str] + """The name of the SKU. Ex - P3. It is typically a letter+number code. Required.""" + tier: Union[str, "SkuTier"] + """This field is required to be implemented by the Resource Provider if the service has more than + one tier, but is not required on a PUT. Known values are: \"Free\", \"Basic\", \"Standard\", + \"Premium\", and \"Enterprise\".""" + size: str + """The SKU size. When the name field is the combination of tier and some other value, this would + be the standalone code.""" + family: str + """If the service has different generations of hardware, for the same SKU, then that can be + captured here.""" + capacity: int + """If the SKU supports scale out/in then the capacity integer should be included. If scale out/in + is not possible for the resource this may be omitted.""" + + +class SkuCapability(TypedDict, total=False): + """SkuCapability indicates the capability of a certain feature. + + :ivar name: The name of the SkuCapability. + :vartype name: str + :ivar value: The value of the SkuCapability. + :vartype value: str + """ + + name: str + """The name of the SkuCapability.""" + value: str + """The value of the SkuCapability.""" + + +class SkuChangeInfo(TypedDict, total=False): + """Sku change info of account. + + :ivar countOfDowngrades: Gets the count of downgrades. + :vartype countOfDowngrades: float + :ivar countOfUpgradesAfterDowngrades: Gets the count of upgrades after downgrades. + :vartype countOfUpgradesAfterDowngrades: float + :ivar lastChangeDate: Gets the last change date. + :vartype lastChangeDate: str + """ + + countOfDowngrades: float + """Gets the count of downgrades.""" + countOfUpgradesAfterDowngrades: float + """Gets the count of upgrades after downgrades.""" + lastChangeDate: str + """Gets the last change date.""" + + +class SshSettings(TypedDict, total=False): + """SSH configuration for a Container Instance compute. + + :ivar sshPublicKey: The SSH public key for authenticating to the compute instance. + :vartype sshPublicKey: str + :ivar adminEnabled: Whether SSH admin access is enabled. + :vartype adminEnabled: bool + """ + + sshPublicKey: str + """The SSH public key for authenticating to the compute instance.""" + adminEnabled: bool + """Whether SSH admin access is enabled.""" + + +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 ThrottlingRule(TypedDict, total=False): + """ThrottlingRule. + + :ivar key: + :vartype key: str + :ivar renewalPeriod: + :vartype renewalPeriod: float + :ivar count: + :vartype count: float + :ivar minCount: + :vartype minCount: float + :ivar dynamicThrottlingEnabled: + :vartype dynamicThrottlingEnabled: bool + :ivar matchPatterns: + :vartype matchPatterns: list["RequestMatchPattern"] + """ + + key: str + renewalPeriod: float + count: float + minCount: float + dynamicThrottlingEnabled: bool + matchPatterns: list["RequestMatchPattern"] + + +class TrafficRoutingRule(TypedDict, total=False): + """Represents a rule for routing traffic to a specific deployment. + + :ivar ruleId: The identifier of this traffic routing rule. + :vartype ruleId: str + :ivar description: A user-provided description for this traffic routing rule. + :vartype description: str + :ivar deploymentId: The unique identifier of the deployment to which traffic is routed by this + rule. + :vartype deploymentId: str + :ivar trafficPercentage: Gets or sets the percentage of traffic allocated to this instance. + :vartype trafficPercentage: int + """ + + ruleId: Optional[str] + """The identifier of this traffic routing rule.""" + description: Optional[str] + """A user-provided description for this traffic routing rule.""" + deploymentId: Optional[str] + """The unique identifier of the deployment to which traffic is routed by this rule.""" + trafficPercentage: int + """Gets or sets the percentage of traffic allocated to this instance.""" + + +class UserAssignedIdentity(TypedDict, total=False): + """User-assigned managed identity. + + :ivar principalId: Azure Active Directory principal ID associated with this Identity. + :vartype principalId: str + :ivar clientId: Client App Id associated with this identity. + :vartype clientId: str + """ + + principalId: str + """Azure Active Directory principal ID associated with this Identity.""" + clientId: str + """Client App Id associated with this identity.""" + + +class UsernamePasswordAuthTypeConnectionProperties(TypedDict, total=False): # pylint: disable=name-too-long + """UsernamePasswordAuthTypeConnectionProperties. + + :ivar category: Category of the connection. Known values are: "PythonFeed", + "ContainerRegistry", "Git", "S3", "Snowflake", "AzureKeyVault", "AzureSqlDb", + "AzureSynapseAnalytics", "AzureMySqlDb", "AzurePostgresDb", "ADLSGen2", + "AzureContainerAppEnvironment", "Redis", "ApiKey", "AzureOpenAI", "AIServices", + "CognitiveSearch", "CognitiveService", "CustomKeys", "AzureBlob", "AzureStorageAccount", + "AzureOneLake", "CosmosDb", "CosmosDbMongoDbApi", "AzureDataExplorer", "AzureMariaDb", + "AzureDatabricksDeltaLake", "AzureSqlMi", "AzureTableStorage", "AmazonRdsForOracle", + "AmazonRdsForSqlServer", "AmazonRedshift", "Db2", "Drill", "GoogleBigQuery", "Greenplum", + "Hbase", "Hive", "Impala", "Informix", "MariaDb", "MicrosoftAccess", "MySql", "Netezza", + "Oracle", "Phoenix", "PostgreSql", "Presto", "SapOpenHub", "SapBw", "SapHana", "SapTable", + "Spark", "SqlServer", "Sybase", "Teradata", "Vertica", "Pinecone", "Databricks", "Cassandra", + "Couchbase", "MongoDbV2", "MongoDbAtlas", "AmazonS3Compatible", "FileServer", "FtpServer", + "GoogleCloudStorage", "Hdfs", "OracleCloudStorage", "Sftp", "GenericHttp", "ODataRest", "Odbc", + "GenericRest", "RemoteTool", "AmazonMws", "Concur", "Dynamics", "DynamicsAx", "DynamicsCrm", + "GoogleAdWords", "Hubspot", "Jira", "Magento", "Marketo", "Office365", "Eloqua", "Responsys", + "OracleServiceCloud", "PayPal", "QuickBooks", "Salesforce", "SalesforceServiceCloud", + "SalesforceMarketingCloud", "SapCloudForCustomer", "SapEcc", "ServiceNow", + "SharePointOnlineList", "Shopify", "Square", "WebTable", "Xero", "Zoho", + "GenericContainerRegistry", "Elasticsearch", "AppInsights", "AppConfig", "OpenAI", "Serp", + "BingLLMSearch", "Serverless", "ManagedOnlineEndpoint", "ApiManagement", "ModelGateway", + "GroundingWithBingSearch", "GroundingWithCustomSearch", "Sharepoint", "MicrosoftFabric", + "PowerPlatformEnvironment", and "RemoteA2A". + :vartype category: Union[str, "ConnectionCategory"] + :ivar createdByWorkspaceArmId: + :vartype createdByWorkspaceArmId: str + :ivar error: Provides the error message if the connection fails. + :vartype error: str + :ivar expiryTime: + :vartype expiryTime: str + :ivar group: Group based on connection category. Known values are: "Azure", "AzureAI", + "Database", "NoSQL", "File", "GenericProtocol", and "ServicesAndApps". + :vartype group: Union[str, "ConnectionGroup"] + :ivar isSharedToAll: + :vartype isSharedToAll: bool + :ivar metadata: Store user metadata for this connection. + :vartype metadata: dict[str, str] + :ivar peRequirement: Specifies how private endpoints are used with this connection: 'Required', + 'NotRequired', or 'NotApplicable'. Known values are: "Required", "NotRequired", and + "NotApplicable". + :vartype peRequirement: Union[str, "ManagedPERequirement"] + :ivar peStatus: Specifies the status of private endpoints for this connection: 'Inactive', + 'Active', or 'NotApplicable'. Known values are: "Inactive", "Active", and "NotApplicable". + :vartype peStatus: Union[str, "ManagedPEStatus"] + :ivar sharedUserList: + :vartype sharedUserList: list[str] + :ivar target: The connection URL to be used. + :vartype target: str + :ivar useWorkspaceManagedIdentity: + :vartype useWorkspaceManagedIdentity: bool + :ivar credentials: + :vartype credentials: "ConnectionUsernamePassword" + :ivar authType: Authentication type of the connection target. Required. USERNAME_PASSWORD. + :vartype authType: Literal[ConnectionAuthType.USERNAME_PASSWORD] + """ + + category: Union[str, "ConnectionCategory"] + """Category of the connection. Known values are: \"PythonFeed\", \"ContainerRegistry\", \"Git\", + \"S3\", \"Snowflake\", \"AzureKeyVault\", \"AzureSqlDb\", \"AzureSynapseAnalytics\", + \"AzureMySqlDb\", \"AzurePostgresDb\", \"ADLSGen2\", \"AzureContainerAppEnvironment\", + \"Redis\", \"ApiKey\", \"AzureOpenAI\", \"AIServices\", \"CognitiveSearch\", + \"CognitiveService\", \"CustomKeys\", \"AzureBlob\", \"AzureStorageAccount\", \"AzureOneLake\", + \"CosmosDb\", \"CosmosDbMongoDbApi\", \"AzureDataExplorer\", \"AzureMariaDb\", + \"AzureDatabricksDeltaLake\", \"AzureSqlMi\", \"AzureTableStorage\", \"AmazonRdsForOracle\", + \"AmazonRdsForSqlServer\", \"AmazonRedshift\", \"Db2\", \"Drill\", \"GoogleBigQuery\", + \"Greenplum\", \"Hbase\", \"Hive\", \"Impala\", \"Informix\", \"MariaDb\", \"MicrosoftAccess\", + \"MySql\", \"Netezza\", \"Oracle\", \"Phoenix\", \"PostgreSql\", \"Presto\", \"SapOpenHub\", + \"SapBw\", \"SapHana\", \"SapTable\", \"Spark\", \"SqlServer\", \"Sybase\", \"Teradata\", + \"Vertica\", \"Pinecone\", \"Databricks\", \"Cassandra\", \"Couchbase\", \"MongoDbV2\", + \"MongoDbAtlas\", \"AmazonS3Compatible\", \"FileServer\", \"FtpServer\", + \"GoogleCloudStorage\", \"Hdfs\", \"OracleCloudStorage\", \"Sftp\", \"GenericHttp\", + \"ODataRest\", \"Odbc\", \"GenericRest\", \"RemoteTool\", \"AmazonMws\", \"Concur\", + \"Dynamics\", \"DynamicsAx\", \"DynamicsCrm\", \"GoogleAdWords\", \"Hubspot\", \"Jira\", + \"Magento\", \"Marketo\", \"Office365\", \"Eloqua\", \"Responsys\", \"OracleServiceCloud\", + \"PayPal\", \"QuickBooks\", \"Salesforce\", \"SalesforceServiceCloud\", + \"SalesforceMarketingCloud\", \"SapCloudForCustomer\", \"SapEcc\", \"ServiceNow\", + \"SharePointOnlineList\", \"Shopify\", \"Square\", \"WebTable\", \"Xero\", \"Zoho\", + \"GenericContainerRegistry\", \"Elasticsearch\", \"AppInsights\", \"AppConfig\", \"OpenAI\", + \"Serp\", \"BingLLMSearch\", \"Serverless\", \"ManagedOnlineEndpoint\", \"ApiManagement\", + \"ModelGateway\", \"GroundingWithBingSearch\", \"GroundingWithCustomSearch\", \"Sharepoint\", + \"MicrosoftFabric\", \"PowerPlatformEnvironment\", and \"RemoteA2A\".""" + createdByWorkspaceArmId: str + error: str + """Provides the error message if the connection fails.""" + expiryTime: str + group: Union[str, "ConnectionGroup"] + """Group based on connection category. Known values are: \"Azure\", \"AzureAI\", \"Database\", + \"NoSQL\", \"File\", \"GenericProtocol\", and \"ServicesAndApps\".""" + isSharedToAll: bool + metadata: dict[str, str] + """Store user metadata for this connection.""" + peRequirement: Union[str, "ManagedPERequirement"] + """Specifies how private endpoints are used with this connection: 'Required', 'NotRequired', or + 'NotApplicable'. Known values are: \"Required\", \"NotRequired\", and \"NotApplicable\".""" + peStatus: Union[str, "ManagedPEStatus"] + """Specifies the status of private endpoints for this connection: 'Inactive', 'Active', or + 'NotApplicable'. Known values are: \"Inactive\", \"Active\", and \"NotApplicable\".""" + sharedUserList: list[str] + target: str + """The connection URL to be used.""" + useWorkspaceManagedIdentity: bool + credentials: "ConnectionUsernamePassword" + authType: Required[Literal[ConnectionAuthType.USERNAME_PASSWORD]] + """Authentication type of the connection target. Required. USERNAME_PASSWORD.""" + + +class UserOwnedAmlWorkspace(TypedDict, total=False): + """The user owned AML account for Cognitive Services account. + + :ivar resourceId: Full resource id of a AML account resource. + :vartype resourceId: str + :ivar identityClientId: Identity Client id of a AML account resource. + :vartype identityClientId: str + """ + + resourceId: str + """Full resource id of a AML account resource.""" + identityClientId: str + """Identity Client id of a AML account resource.""" + + +class UserOwnedStorage(TypedDict, total=False): + """The user owned storage for Cognitive Services account. + + :ivar resourceId: Full resource id of a Microsoft.Storage resource. + :vartype resourceId: str + :ivar identityClientId: + :vartype identityClientId: str + """ + + resourceId: str + """Full resource id of a Microsoft.Storage resource.""" + identityClientId: str + + +class VersionedAgentReference(AgentReferenceProperties): + """Type modeling a reference to a version of an agent definition. + + :ivar agentId: Gets the agent's unique identifier within the organization (subscription). + :vartype agentId: str + :ivar agentName: Gets the agent's name (unique within the project/app). + :vartype agentName: str + :ivar agentVersion: Gets the agent's version (unique for each agent lineage). + :vartype agentVersion: str + """ + + agentVersion: Optional[str] + """Gets the agent's version (unique for each agent lineage).""" + + +class VirtualNetworkRule(TypedDict, total=False): + """A rule governing the accessibility from a specific virtual network. + + :ivar id: Full resource id of a vnet subnet, such as + '/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1'. + Required. + :vartype id: str + :ivar state: Gets the state of virtual network rule. + :vartype state: str + :ivar ignoreMissingVnetServiceEndpoint: Ignore missing vnet service endpoint or not. + :vartype ignoreMissingVnetServiceEndpoint: bool + """ + + id: Required[str] + """Full resource id of a vnet subnet, such as + '/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1'. + Required.""" + state: str + """Gets the state of virtual network rule.""" + ignoreMissingVnetServiceEndpoint: bool + """Ignore missing vnet service endpoint or not.""" + + +class Workbench(ProxyResource): + """Workbench resource under a Cognitive Services project. Provides interactive compute with data + access for AI development. + + :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 of the workbench resource. Required. + :vartype properties: "WorkbenchProperties" + :ivar etag: Resource Etag. + :vartype etag: str + :ivar location: The location of the workbench resource. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar identity: Identity for the resource. + :vartype identity: "Identity" + """ + + properties: Required["WorkbenchProperties"] + """Properties of the workbench resource. Required.""" + etag: str + """Resource Etag.""" + location: str + """The location of the workbench resource.""" + tags: dict[str, str] + """Resource tags.""" + identity: "Identity" + """Identity for the resource.""" + + +class WorkbenchProperties(TypedDict, total=False): + """Properties for a Workbench resource. + + :ivar targetClusterId: ARM resource ID of the parent cluster that hosts this workbench. + Required. + :vartype targetClusterId: str + :ivar imageLink: Container image URI (e.g., MCR or ACR image path) for the workbench. Required. + :vartype imageLink: str + :ivar idleTimeBeforeShutdown: ISO 8601 duration before the idle workbench is automatically shut + down (e.g., 'PT30M'). + :vartype idleTimeBeforeShutdown: str + :ivar datasetId: The dataset ID to mount for the workbench. + :vartype datasetId: str + :ivar sshSettings: SSH configuration for remote access to the workbench. + :vartype sshSettings: "SshSettings" + :ivar connectivityEndpoints: Network connectivity endpoints assigned to the workbench. + :vartype connectivityEndpoints: "ConnectivityEndpoints" + :ivar webEndpoint: The web endpoint URL for accessing the workbench. + :vartype webEndpoint: str + :ivar provisioningState: Provisioning state of the workbench resource. Known values are: + "Accepted", "Succeeded", "Failed", "Canceled", "Deleting", "Scaling", "Disabled", "Starting", + "Stopping", "Restarting", and "Stopped". + :vartype provisioningState: Union[str, "ComputeProvisioningState"] + :ivar errors: Error details for the workbench resource. + :vartype errors: list["ErrorDetail"] + :ivar creationTime: Creation time of the workbench resource. + :vartype creationTime: str + """ + + targetClusterId: Required[str] + """ARM resource ID of the parent cluster that hosts this workbench. Required.""" + imageLink: Required[str] + """Container image URI (e.g., MCR or ACR image path) for the workbench. Required.""" + idleTimeBeforeShutdown: str + """ISO 8601 duration before the idle workbench is automatically shut down (e.g., 'PT30M').""" + datasetId: str + """The dataset ID to mount for the workbench.""" + sshSettings: "SshSettings" + """SSH configuration for remote access to the workbench.""" + connectivityEndpoints: "ConnectivityEndpoints" + """Network connectivity endpoints assigned to the workbench.""" + webEndpoint: str + """The web endpoint URL for accessing the workbench.""" + provisioningState: Union[str, "ComputeProvisioningState"] + """Provisioning state of the workbench resource. Known values are: \"Accepted\", \"Succeeded\", + \"Failed\", \"Canceled\", \"Deleting\", \"Scaling\", \"Disabled\", \"Starting\", \"Stopping\", + \"Restarting\", and \"Stopped\".""" + errors: list["ErrorDetail"] + """Error details for the workbench resource.""" + creationTime: str + """Creation time of the workbench resource.""" + + +ConnectionPropertiesV2 = Union[ + AADAuthTypeConnectionProperties, + AccessKeyAuthTypeConnectionProperties, + AccountKeyAuthTypeConnectionProperties, + ApiKeyAuthConnectionProperties, + CustomKeysConnectionProperties, + ManagedIdentityAuthTypeConnectionProperties, + NoneAuthTypeConnectionProperties, + OAuth2AuthTypeConnectionProperties, + PATAuthTypeConnectionProperties, + SASAuthTypeConnectionProperties, + ServicePrincipalAuthTypeConnectionProperties, + UsernamePasswordAuthTypeConnectionProperties, +] +AgentDeploymentProperties = Union[HostedAgentDeployment, ManagedAgentDeployment] +AgentHostingConfiguration = Union[ManagedClusterAgentHostingConfiguration] +ApplicationAuthorizationPolicy = Union[ + ChannelsBuiltInAuthorizationPolicy, + RoleBasedBuiltInAuthorizationPolicy, + OrganizationSharedBuiltInAuthorizationPolicy, +] +ComputeProperties = Union[ClusterComputeProperties, ContainerInstanceComputeProperties] +OutboundRule = Union[FqdnOutboundRule, PrivateEndpointOutboundRule, ServiceTagOutboundRule] diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/add_rai_blocklist_items.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/add_rai_blocklist_items.py index 92cc8e88e87a..46573eaf0385 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/add_rai_blocklist_items.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/add_rai_blocklist_items.py @@ -42,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/AddRaiBlocklistItems.json +# x-ms-original-file: 2026-07-15-preview/AddRaiBlocklistItems.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/calculate_model_capacity.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/calculate_model_capacity.py index fda7a8434b0e..d62a57119c59 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/calculate_model_capacity.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/calculate_model_capacity.py @@ -43,6 +43,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/CalculateModelCapacity.json +# x-ms-original-file: 2026-07-15-preview/CalculateModelCapacity.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/check_domain_availability.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/check_domain_availability.py index 79fd74afcc4d..f336aaf9a3e8 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/check_domain_availability.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/check_domain_availability.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/CheckDomainAvailability.json +# x-ms-original-file: 2026-07-15-preview/CheckDomainAvailability.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/check_sku_availability.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/check_sku_availability.py index d4cd71889ee7..0723f88fea56 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/check_sku_availability.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/check_sku_availability.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/CheckSkuAvailability.json +# x-ms-original-file: 2026-07-15-preview/CheckSkuAvailability.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create.py index 3743181cde01..caf8c09c9730 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/AccountConnection/create.json +# x-ms-original-file: 2026-07-15-preview/AccountConnection/create.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_account.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_account.py index cab662b33e26..c8c9e3e9ef75 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_account.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_account.py @@ -39,6 +39,11 @@ def main(): "kind": "Emotion", "location": "West US", "properties": { + "capabilitySettings": { + "blobStore": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount", + "documentStore": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.DocumentDB/databaseAccounts/myCosmosAccount", + "vectorStore": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.Search/searchServices/mySearchService", + }, "encryption": { "keySource": "Microsoft.KeyVault", "keyVaultProperties": { @@ -59,6 +64,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/CreateAccount.json +# x-ms-original-file: 2026-07-15-preview/CreateAccount.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_account_min.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_account_min.py index 87c2fb9a9f6c..e2d6ec8b4fe9 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_account_min.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_account_min.py @@ -44,6 +44,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/CreateAccountMin.json +# x-ms-original-file: 2026-07-15-preview/CreateAccountMin.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_account_with_agent_hosting_configuration.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_account_with_agent_hosting_configuration.py new file mode 100644 index 000000000000..5f1a64c83fbc --- /dev/null +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_account_with_agent_hosting_configuration.py @@ -0,0 +1,66 @@ +# pylint: disable=line-too-long,useless-suppression +# 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 azure.identity import DefaultAzureCredential + +from azure.mgmt.cognitiveservices import CognitiveServicesManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-cognitiveservices +# USAGE + python create_account_with_agent_hosting_configuration.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = CognitiveServicesManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.accounts.begin_create( + resource_group_name="myResourceGroup", + account_name="foundryByocAccount", + account={ + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/account-control-plane": {} + }, + }, + "kind": "AIServices", + "location": "West US", + "properties": { + "agentHostingConfigurations": [ + { + "clusterResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/cluster1", + "hostingManagementIdentityResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/account-control-plane", + "hostingType": "ManagedCluster", + "name": "default", + "storageAccountResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/storage1", + "workloadIdentityResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/aks-workload", + } + ] + }, + "sku": {"name": "S0"}, + }, + ).result() + print(response) + + +# x-ms-original-file: 2026-07-15-preview/CreateAccountWithAgentHostingConfiguration.json +if __name__ == "__main__": + main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_or_update.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_or_update.py index d2463936fd64..66dbaf682578 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_or_update.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_or_update.py @@ -49,6 +49,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/AgentDeployment/createOrUpdate.json +# x-ms-original-file: 2026-07-15-preview/AgentDeployment/createOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_or_update_arc_deployment.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_or_update_arc_deployment.py new file mode 100644 index 000000000000..4619ac63f959 --- /dev/null +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_or_update_arc_deployment.py @@ -0,0 +1,56 @@ +# pylint: disable=line-too-long,useless-suppression +# 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 azure.identity import DefaultAzureCredential + +from azure.mgmt.cognitiveservices import CognitiveServicesManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-cognitiveservices +# USAGE + python create_or_update_arc_deployment.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = CognitiveServicesManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.arc_deployments.begin_create_or_update( + resource_group_name="resourceGroupName", + account_name="accountName", + deployment_name="phi-3-arc", + resource={ + "properties": { + "compute": "cpu", + "extensionId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroupName/providers/Microsoft.Kubernetes/connectedClusters/edge-cluster/providers/Microsoft.KubernetesConfiguration/extensions/inference-operator", + "model": {"format": "OpenAI", "name": "phi-3-mini"}, + "nodeSelector": {"agentpool": "cpu"}, + "replicas": 2, + "resources": {"limits": {"cpu": "8", "memory": "16Gi"}, "requests": {"cpu": "8", "memory": "16Gi"}}, + "runtime": "onnx-genai", + }, + "sku": {"name": "Arc"}, + }, + ).result() + print(response) + + +# x-ms-original-file: 2026-07-15-preview/CreateOrUpdateArcDeployment.json +if __name__ == "__main__": + main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_or_update_arc_deployment_with_template.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_or_update_arc_deployment_with_template.py new file mode 100644 index 000000000000..b0352f81b2ad --- /dev/null +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_or_update_arc_deployment_with_template.py @@ -0,0 +1,57 @@ +# pylint: disable=line-too-long,useless-suppression +# 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 azure.identity import DefaultAzureCredential + +from azure.mgmt.cognitiveservices import CognitiveServicesManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-cognitiveservices +# USAGE + python create_or_update_arc_deployment_with_template.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = CognitiveServicesManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.arc_deployments.begin_create_or_update( + resource_group_name="resourceGroupName", + account_name="accountName", + deployment_name="qwen-template-arc", + resource={ + "properties": { + "compute": "gpu", + "deploymentTemplate": "azureml://registries/azureml-openai-oss/deploymenttemplates/vllm-qwen--qwen3-5-0-8b/versions/1", + "extensionId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroupName/providers/Microsoft.Kubernetes/connectedClusters/edge-cluster/providers/Microsoft.KubernetesConfiguration/extensions/inference-operator", + "model": {"format": "OpenAI", "name": "qwen3"}, + "nodeSelector": {"agentpool": "a100"}, + "replicas": 2, + "resources": {"limits": {"gpu": 5}}, + "runtime": "vllm", + }, + "sku": {"name": "Arc"}, + }, + ).result() + print(response) + + +# x-ms-original-file: 2026-07-15-preview/CreateOrUpdateArcDeploymentWithTemplate.json +if __name__ == "__main__": + main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_or_update_managed_compute_deployment.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_or_update_managed_compute_deployment.py index 9581348a7a27..5280bd7d0d4f 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_or_update_managed_compute_deployment.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_or_update_managed_compute_deployment.py @@ -48,6 +48,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/CreateOrUpdateManagedComputeDeployment.json +# x-ms-original-file: 2026-07-15-preview/CreateOrUpdateManagedComputeDeployment.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_or_update_managed_network_v2.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_or_update_managed_network_v2.py index 171d108e705a..b44dad246ef0 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_or_update_managed_network_v2.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_or_update_managed_network_v2.py @@ -53,6 +53,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/ManagedNetwork/createOrUpdateManagedNetworkV2.json +# x-ms-original-file: 2026-07-15-preview/ManagedNetwork/createOrUpdateManagedNetworkV2.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_or_update_quota_tier.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_or_update_quota_tier.py index 56d1eea183cb..855a4790ba50 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_or_update_quota_tier.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_or_update_quota_tier.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/CreateOrUpdateQuotaTier.json +# x-ms-original-file: 2026-07-15-preview/CreateOrUpdateQuotaTier.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_or_update_rule_v2.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_or_update_rule_v2.py index a3ec462260c6..21bde9fab9f3 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_or_update_rule_v2.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_or_update_rule_v2.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/ManagedNetwork/createOrUpdateRuleV2.json +# x-ms-original-file: 2026-07-15-preview/ManagedNetwork/createOrUpdateRuleV2.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_or_update_vm_managed_compute_deployment.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_or_update_vm_managed_compute_deployment.py index a684d819422a..6392ea164bdd 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_or_update_vm_managed_compute_deployment.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_or_update_vm_managed_compute_deployment.py @@ -48,6 +48,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/CreateOrUpdateVmManagedComputeDeployment.json +# x-ms-original-file: 2026-07-15-preview/CreateOrUpdateVmManagedComputeDeployment.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_project.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_project.py index 6d1ce7934ffb..d4e42680edaa 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_project.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_project.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -37,12 +38,19 @@ def main(): project={ "identity": {"type": "SystemAssigned"}, "location": "West US", - "properties": {"description": "Description of this project", "displayName": "p1"}, + "properties": { + "capabilitySettings": { + "documentStore": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.DocumentDB/databaseAccounts/myProjectCosmosAccount", + "vectorStore": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.Search/searchServices/myProjectSearchService", + }, + "description": "Description of this project", + "displayName": "p1", + }, }, ).result() print(response) -# x-ms-original-file: 2026-05-15-preview/CreateProject.json +# x-ms-original-file: 2026-07-15-preview/CreateProject.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_project_min.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_project_min.py index 3a949670e22c..bd2917a6da60 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_project_min.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_project_min.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/CreateProjectMin.json +# x-ms-original-file: 2026-07-15-preview/CreateProjectMin.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_shared_commitment_plan.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_shared_commitment_plan.py index 3140cad8651e..61b216410108 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_shared_commitment_plan.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_shared_commitment_plan.py @@ -43,6 +43,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/CreateSharedCommitmentPlan.json +# x-ms-original-file: 2026-07-15-preview/CreateSharedCommitmentPlan.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_shared_commitment_plan_association.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_shared_commitment_plan_association.py index bb90d867740c..3cf823dad612 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_shared_commitment_plan_association.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/create_shared_commitment_plan_association.py @@ -44,6 +44,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/CreateSharedCommitmentPlanAssociation.json +# x-ms-original-file: 2026-07-15-preview/CreateSharedCommitmentPlanAssociation.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete.py index 42d5c7f93f85..b618656f0f6a 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete.py @@ -39,6 +39,6 @@ def main(): ).result() -# x-ms-original-file: 2026-05-15-preview/AgentDeployment/delete.json +# x-ms-original-file: 2026-07-15-preview/AgentDeployment/delete.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_account.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_account.py index 303fb6a250ef..d699df59f5a8 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_account.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_account.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-05-15-preview/DeleteAccount.json +# x-ms-original-file: 2026-07-15-preview/DeleteAccount.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_arc_deployment.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_arc_deployment.py new file mode 100644 index 000000000000..e73a55460035 --- /dev/null +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_arc_deployment.py @@ -0,0 +1,42 @@ +# 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 azure.identity import DefaultAzureCredential + +from azure.mgmt.cognitiveservices import CognitiveServicesManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-cognitiveservices +# USAGE + python delete_arc_deployment.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = CognitiveServicesManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.arc_deployments.begin_delete( + resource_group_name="resourceGroupName", + account_name="accountName", + deployment_name="phi-3-arc", + ).result() + + +# x-ms-original-file: 2026-07-15-preview/DeleteArcDeployment.json +if __name__ == "__main__": + main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_commitment_plan.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_commitment_plan.py index 085b0cdad007..f81d0546723d 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_commitment_plan.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_commitment_plan.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-05-15-preview/DeleteCommitmentPlan.json +# x-ms-original-file: 2026-07-15-preview/DeleteCommitmentPlan.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_compute.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_compute.py index a54026a0d98c..b4ad51717250 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_compute.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_compute.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-05-15-preview/DeleteCompute.json +# x-ms-original-file: 2026-07-15-preview/DeleteCompute.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_deployment.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_deployment.py index 4549057377b5..99465bad332b 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_deployment.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_deployment.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-05-15-preview/DeleteDeployment.json +# x-ms-original-file: 2026-07-15-preview/DeleteDeployment.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_encryption_scope.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_encryption_scope.py index 313ceb22e3c1..1e552aebc723 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_encryption_scope.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_encryption_scope.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-05-15-preview/DeleteEncryptionScope.json +# x-ms-original-file: 2026-07-15-preview/DeleteEncryptionScope.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_managed_compute_deployment.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_managed_compute_deployment.py index 9f14bb220e15..d6633807e9dd 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_managed_compute_deployment.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_managed_compute_deployment.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-05-15-preview/DeleteManagedComputeDeployment.json +# x-ms-original-file: 2026-07-15-preview/DeleteManagedComputeDeployment.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_managed_network_v2.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_managed_network_v2.py index 03b7b1d0e843..ed4741d9d254 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_managed_network_v2.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_managed_network_v2.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-05-15-preview/ManagedNetwork/deleteManagedNetworkV2.json +# x-ms-original-file: 2026-07-15-preview/ManagedNetwork/deleteManagedNetworkV2.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_private_endpoint_connection.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_private_endpoint_connection.py index 64a693ed2ecb..f9e1590dc479 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_private_endpoint_connection.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_private_endpoint_connection.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-05-15-preview/DeletePrivateEndpointConnection.json +# x-ms-original-file: 2026-07-15-preview/DeletePrivateEndpointConnection.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_project.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_project.py index 6df5df50b5c8..71bc32f10990 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_project.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_project.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-05-15-preview/DeleteProject.json +# x-ms-original-file: 2026-07-15-preview/DeleteProject.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rai_blocklist.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rai_blocklist.py index 16c3bfeda1da..85d078077e51 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rai_blocklist.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rai_blocklist.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-05-15-preview/DeleteRaiBlocklist.json +# x-ms-original-file: 2026-07-15-preview/DeleteRaiBlocklist.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rai_blocklist_item.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rai_blocklist_item.py index a30ea7ce3bfc..b0ee18bcce9d 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rai_blocklist_item.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rai_blocklist_item.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2026-05-15-preview/DeleteRaiBlocklistItem.json +# x-ms-original-file: 2026-07-15-preview/DeleteRaiBlocklistItem.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rai_blocklist_items.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rai_blocklist_items.py index 131849f5a20d..ae13aa07ea49 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rai_blocklist_items.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rai_blocklist_items.py @@ -38,6 +38,6 @@ def main(): ) -# x-ms-original-file: 2026-05-15-preview/DeleteRaiBlocklistItems.json +# x-ms-original-file: 2026-07-15-preview/DeleteRaiBlocklistItems.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rai_external_safety_provider.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rai_external_safety_provider.py index 60364bc8740d..25c9b3b45717 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rai_external_safety_provider.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rai_external_safety_provider.py @@ -35,6 +35,6 @@ def main(): ).result() -# x-ms-original-file: 2026-05-15-preview/DeleteRaiExternalSafetyProvider.json +# x-ms-original-file: 2026-07-15-preview/DeleteRaiExternalSafetyProvider.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rai_policy.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rai_policy.py index 5d722889ff40..4df15338f76f 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rai_policy.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rai_policy.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-05-15-preview/DeleteRaiPolicy.json +# x-ms-original-file: 2026-07-15-preview/DeleteRaiPolicy.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rai_tool_label.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rai_tool_label.py index 73f9d547eec5..c48368c9e6c9 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rai_tool_label.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rai_tool_label.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-05-15-preview/DeleteRaiToolLabel.json +# x-ms-original-file: 2026-07-15-preview/DeleteRaiToolLabel.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rai_topic.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rai_topic.py index b7b9527b31a0..09e8d32e0cb6 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rai_topic.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rai_topic.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-05-15-preview/DeleteRaiTopic.json +# x-ms-original-file: 2026-07-15-preview/DeleteRaiTopic.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rule_v2.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rule_v2.py index 24b2d60ca077..d5afdb61c95d 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rule_v2.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_rule_v2.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2026-05-15-preview/ManagedNetwork/deleteRuleV2.json +# x-ms-original-file: 2026-07-15-preview/ManagedNetwork/deleteRuleV2.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_shared_commitment_plan.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_shared_commitment_plan.py index 6d8348c55f23..da700898df32 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_shared_commitment_plan.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_shared_commitment_plan.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-05-15-preview/DeleteSharedCommitmentPlan.json +# x-ms-original-file: 2026-07-15-preview/DeleteSharedCommitmentPlan.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_shared_commitment_plan_association.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_shared_commitment_plan_association.py index 0ce80c7582e7..d1456e44db3a 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_shared_commitment_plan_association.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_shared_commitment_plan_association.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-05-15-preview/DeleteSharedCommitmentPlanAssociation.json +# x-ms-original-file: 2026-07-15-preview/DeleteSharedCommitmentPlanAssociation.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_subscription_rai_policy.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_subscription_rai_policy.py index 28dc75b23664..9d59d1c433a0 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_subscription_rai_policy.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_subscription_rai_policy.py @@ -35,6 +35,6 @@ def main(): ).result() -# x-ms-original-file: 2026-05-15-preview/DeleteSubscriptionRaiPolicy.json +# x-ms-original-file: 2026-07-15-preview/DeleteSubscriptionRaiPolicy.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_workbench.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_workbench.py index 02d92b9deca0..82c9d03f72dc 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_workbench.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/delete_workbench.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2026-05-15-preview/DeleteWorkbench.json +# x-ms-original-file: 2026-07-15-preview/DeleteWorkbench.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/disable.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/disable.py index e72ca0b497db..f460a2223a29 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/disable.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/disable.py @@ -38,6 +38,6 @@ def main(): ) -# x-ms-original-file: 2026-05-15-preview/AgentApplication/disable.json +# x-ms-original-file: 2026-07-15-preview/AgentApplication/disable.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/enable.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/enable.py index 3ccb3bd588a3..a8e4bd62b2ad 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/enable.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/enable.py @@ -38,6 +38,6 @@ def main(): ) -# x-ms-original-file: 2026-05-15-preview/AgentApplication/enable.json +# x-ms-original-file: 2026-07-15-preview/AgentApplication/enable.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/evaluate_deployment_policies.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/evaluate_deployment_policies.py index b124694794e9..39256c753617 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/evaluate_deployment_policies.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/evaluate_deployment_policies.py @@ -52,6 +52,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/EvaluateDeploymentPolicies.json +# x-ms-original-file: 2026-07-15-preview/EvaluateDeploymentPolicies.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get.py index 7ae0893f11d5..12305ba8de0c 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/AgentDeployment/get.json +# x-ms-original-file: 2026-07-15-preview/AgentDeployment/get.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_account.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_account.py index 5e2bd878cde9..c90f6aa633ff 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_account.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_account.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/GetAccount.json +# x-ms-original-file: 2026-07-15-preview/GetAccount.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_arc_deployment.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_arc_deployment.py new file mode 100644 index 000000000000..ed5fd0fe051b --- /dev/null +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_arc_deployment.py @@ -0,0 +1,43 @@ +# 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 azure.identity import DefaultAzureCredential + +from azure.mgmt.cognitiveservices import CognitiveServicesManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-cognitiveservices +# USAGE + python get_arc_deployment.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = CognitiveServicesManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.arc_deployments.get( + resource_group_name="resourceGroupName", + account_name="accountName", + deployment_name="qwen-template-arc", + ) + print(response) + + +# x-ms-original-file: 2026-07-15-preview/GetArcDeployment.json +if __name__ == "__main__": + main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_commitment_plan.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_commitment_plan.py index e718aa3ad6f5..ef5eb8c7dd71 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_commitment_plan.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_commitment_plan.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/GetCommitmentPlan.json +# x-ms-original-file: 2026-07-15-preview/GetCommitmentPlan.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_compute.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_compute.py index b81397749977..85fdf2bbc9bf 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_compute.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_compute.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/GetCompute.json +# x-ms-original-file: 2026-07-15-preview/GetCompute.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_compute_operation_status.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_compute_operation_status.py index 2ebb02268ff0..56d82ac4a844 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_compute_operation_status.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_compute_operation_status.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/GetComputeOperationStatus.json +# x-ms-original-file: 2026-07-15-preview/GetComputeOperationStatus.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_container_instance_compute.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_container_instance_compute.py index d9b2cdd09ffc..0439a5cdca84 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_container_instance_compute.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_container_instance_compute.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/GetContainerInstanceCompute.json +# x-ms-original-file: 2026-07-15-preview/GetContainerInstanceCompute.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_defender_for_ai_setting.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_defender_for_ai_setting.py index bf00879f23af..cff32cec45ff 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_defender_for_ai_setting.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_defender_for_ai_setting.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/GetDefenderForAISetting.json +# x-ms-original-file: 2026-07-15-preview/GetDefenderForAISetting.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_deleted_account.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_deleted_account.py index 0fe7b7e2ff02..c764fc83f8b1 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_deleted_account.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_deleted_account.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/GetDeletedAccount.json +# x-ms-original-file: 2026-07-15-preview/GetDeletedAccount.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_deployment.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_deployment.py index bdc338bcaee0..f043ca668cc2 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_deployment.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_deployment.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/GetDeployment.json +# x-ms-original-file: 2026-07-15-preview/GetDeployment.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_encryption_scope.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_encryption_scope.py index daeb3264b4c9..98590a2016b7 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_encryption_scope.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_encryption_scope.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/GetEncryptionScope.json +# x-ms-original-file: 2026-07-15-preview/GetEncryptionScope.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_managed_compute_deployment.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_managed_compute_deployment.py index 2a3bf8edad39..1d68ab763be4 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_managed_compute_deployment.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_managed_compute_deployment.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/GetManagedComputeDeployment.json +# x-ms-original-file: 2026-07-15-preview/GetManagedComputeDeployment.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_managed_network_v2.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_managed_network_v2.py index 3cefa501ed26..417063a36a0b 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_managed_network_v2.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_managed_network_v2.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/ManagedNetwork/getManagedNetworkV2.json +# x-ms-original-file: 2026-07-15-preview/ManagedNetwork/getManagedNetworkV2.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_network_security_perimeter_configurations.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_network_security_perimeter_configurations.py index e4c43623a567..a7ea45c28de0 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_network_security_perimeter_configurations.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_network_security_perimeter_configurations.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/GetNetworkSecurityPerimeterConfigurations.json +# x-ms-original-file: 2026-07-15-preview/GetNetworkSecurityPerimeterConfigurations.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_operations.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_operations.py index 2387ff3c9485..05361ccebe8a 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_operations.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_operations.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/GetOperations.json +# x-ms-original-file: 2026-07-15-preview/GetOperations.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_private_endpoint_connection.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_private_endpoint_connection.py index c1c720fa4458..e9b2d39cc393 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_private_endpoint_connection.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_private_endpoint_connection.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/GetPrivateEndpointConnection.json +# x-ms-original-file: 2026-07-15-preview/GetPrivateEndpointConnection.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_project.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_project.py index 858c1fdc9ab1..a668c3926075 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_project.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_project.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/GetProject.json +# x-ms-original-file: 2026-07-15-preview/GetProject.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_quota_tier.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_quota_tier.py index 95a4dad6217d..2f1c7d6f7a97 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_quota_tier.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_quota_tier.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/GetQuotaTier.json +# x-ms-original-file: 2026-07-15-preview/GetQuotaTier.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rai_blocklist.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rai_blocklist.py index 1bd6f718c3ea..fca488f5c658 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rai_blocklist.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rai_blocklist.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/GetRaiBlocklist.json +# x-ms-original-file: 2026-07-15-preview/GetRaiBlocklist.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rai_blocklist_item.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rai_blocklist_item.py index 03b68d975d9f..899966841dde 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rai_blocklist_item.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rai_blocklist_item.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/GetRaiBlocklistItem.json +# x-ms-original-file: 2026-07-15-preview/GetRaiBlocklistItem.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rai_content_filter.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rai_content_filter.py index 768d3078efce..135a900acb73 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rai_content_filter.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rai_content_filter.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/GetRaiContentFilter.json +# x-ms-original-file: 2026-07-15-preview/GetRaiContentFilter.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rai_external_safety_provider.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rai_external_safety_provider.py index 9ab8dde2530a..da7ff3891f32 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rai_external_safety_provider.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rai_external_safety_provider.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/GetRaiExternalSafetyProvider.json +# x-ms-original-file: 2026-07-15-preview/GetRaiExternalSafetyProvider.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rai_policy.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rai_policy.py index 5b51bf19e95b..f8f7d4641ba0 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rai_policy.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rai_policy.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/GetRaiPolicy.json +# x-ms-original-file: 2026-07-15-preview/GetRaiPolicy.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rai_tool_label.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rai_tool_label.py index 95738f5093e8..9665835ab22c 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rai_tool_label.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rai_tool_label.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/GetRaiToolLabel.json +# x-ms-original-file: 2026-07-15-preview/GetRaiToolLabel.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rai_topic.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rai_topic.py index 2b67f45c5704..4a3f8ab5823f 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rai_topic.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rai_topic.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/GetRaiTopic.json +# x-ms-original-file: 2026-07-15-preview/GetRaiTopic.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rule_v2.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rule_v2.py index 923c1e019eec..19f693ecbda1 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rule_v2.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_rule_v2.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/ManagedNetwork/getRuleV2.json +# x-ms-original-file: 2026-07-15-preview/ManagedNetwork/getRuleV2.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_shared_commitment_plan.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_shared_commitment_plan.py index 2f482d7c2811..cb24b7bde97d 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_shared_commitment_plan.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_shared_commitment_plan.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/GetSharedCommitmentPlan.json +# x-ms-original-file: 2026-07-15-preview/GetSharedCommitmentPlan.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_shared_commitment_plan_association.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_shared_commitment_plan_association.py index 69a3fe60ccf7..c8bdf7cfb5a6 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_shared_commitment_plan_association.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_shared_commitment_plan_association.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/GetSharedCommitmentPlanAssociation.json +# x-ms-original-file: 2026-07-15-preview/GetSharedCommitmentPlanAssociation.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_skus.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_skus.py index ffdef024c567..49040c707c27 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_skus.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_skus.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/GetSkus.json +# x-ms-original-file: 2026-07-15-preview/GetSkus.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_subscription_rai_policy.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_subscription_rai_policy.py index 895ca36b0d0d..da1aa716ead1 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_subscription_rai_policy.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_subscription_rai_policy.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/GetSubscriptionRaiPolicy.json +# x-ms-original-file: 2026-07-15-preview/GetSubscriptionRaiPolicy.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_usages.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_usages.py index b1ecda9438fb..a7de7b4168b2 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_usages.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_usages.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/GetUsages.json +# x-ms-original-file: 2026-07-15-preview/GetUsages.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_usages_classic_scope.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_usages_classic_scope.py index a52ca06c048e..2ee1d29493d6 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_usages_classic_scope.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_usages_classic_scope.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/GetUsagesClassicScope.json +# x-ms-original-file: 2026-07-15-preview/GetUsagesClassicScope.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_usages_data_zone_scope.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_usages_data_zone_scope.py index 2cbca9bf56c8..08c13af80231 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_usages_data_zone_scope.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_usages_data_zone_scope.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/GetUsagesDataZoneScope.json +# x-ms-original-file: 2026-07-15-preview/GetUsagesDataZoneScope.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_usages_global_scope.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_usages_global_scope.py index 3a5a003fc385..31579ed9e932 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_usages_global_scope.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_usages_global_scope.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/GetUsagesGlobalScope.json +# x-ms-original-file: 2026-07-15-preview/GetUsagesGlobalScope.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_vm_managed_compute_deployment.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_vm_managed_compute_deployment.py index 0997edbfb52e..5424a82f38e6 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_vm_managed_compute_deployment.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_vm_managed_compute_deployment.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/GetVmManagedComputeDeployment.json +# x-ms-original-file: 2026-07-15-preview/GetVmManagedComputeDeployment.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_workbench.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_workbench.py index a6ab9bb4401c..528386e45dc1 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_workbench.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/get_workbench.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/GetWorkbench.json +# x-ms-original-file: 2026-07-15-preview/GetWorkbench.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list.py index 680fe41a86e4..26d5b9458ae9 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list.py @@ -40,6 +40,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/AgentDeployment/list.json +# x-ms-original-file: 2026-07-15-preview/AgentDeployment/list.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_account_models.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_account_models.py index b719cb71d2e5..87a80bb691de 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_account_models.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_account_models.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListAccountModels.json +# x-ms-original-file: 2026-07-15-preview/ListAccountModels.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_accounts_by_resource_group.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_accounts_by_resource_group.py index 2b3f16d05e37..4965dd0b8067 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_accounts_by_resource_group.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_accounts_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListAccountsByResourceGroup.json +# x-ms-original-file: 2026-07-15-preview/ListAccountsByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_accounts_by_subscription.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_accounts_by_subscription.py index 803439df4dd9..fe26c40fb6a9 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_accounts_by_subscription.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_accounts_by_subscription.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListAccountsBySubscription.json +# x-ms-original-file: 2026-07-15-preview/ListAccountsBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_agents.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_agents.py index 1314283a816e..7f0c8cf067f3 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_agents.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_agents.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/AgentApplication/listAgents.json +# x-ms-original-file: 2026-07-15-preview/AgentApplication/listAgents.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_arc_deployments.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_arc_deployments.py new file mode 100644 index 000000000000..a96028230448 --- /dev/null +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_arc_deployments.py @@ -0,0 +1,43 @@ +# 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 azure.identity import DefaultAzureCredential + +from azure.mgmt.cognitiveservices import CognitiveServicesManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-cognitiveservices +# USAGE + python list_arc_deployments.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = CognitiveServicesManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.arc_deployments.list( + resource_group_name="resourceGroupName", + account_name="accountName", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2026-07-15-preview/ListArcDeployments.json +if __name__ == "__main__": + main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_blocklist_items.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_blocklist_items.py index beca0bb43830..bc32b70f7d61 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_blocklist_items.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_blocklist_items.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListBlocklistItems.json +# x-ms-original-file: 2026-07-15-preview/ListBlocklistItems.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_blocklists.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_blocklists.py index 2f9b38a184b6..4d06f3c30163 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_blocklists.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_blocklists.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListBlocklists.json +# x-ms-original-file: 2026-07-15-preview/ListBlocklists.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_commitment_plans.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_commitment_plans.py index d4be7922d53e..9b39b5da9190 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_commitment_plans.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_commitment_plans.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListCommitmentPlans.json +# x-ms-original-file: 2026-07-15-preview/ListCommitmentPlans.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_commitment_tiers.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_commitment_tiers.py index 6b7148a463cc..68cf8af57ae8 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_commitment_tiers.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_commitment_tiers.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListCommitmentTiers.json +# x-ms-original-file: 2026-07-15-preview/ListCommitmentTiers.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_computes.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_computes.py index cca876a6ad9b..726df2c06438 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_computes.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_computes.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListComputes.json +# x-ms-original-file: 2026-07-15-preview/ListComputes.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_defender_for_ai_setting.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_defender_for_ai_setting.py index ac4ce942643b..a5f01b881888 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_defender_for_ai_setting.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_defender_for_ai_setting.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListDefenderForAISetting.json +# x-ms-original-file: 2026-07-15-preview/ListDefenderForAISetting.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_deleted_accounts_by_subscription.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_deleted_accounts_by_subscription.py index 5c5aac6feac8..a1ec568522e7 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_deleted_accounts_by_subscription.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_deleted_accounts_by_subscription.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListDeletedAccountsBySubscription.json +# x-ms-original-file: 2026-07-15-preview/ListDeletedAccountsBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_deployment_skus.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_deployment_skus.py index 1975a82a8088..a1752559a5b8 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_deployment_skus.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_deployment_skus.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListDeploymentSkus.json +# x-ms-original-file: 2026-07-15-preview/ListDeploymentSkus.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_deployments.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_deployments.py index 0c4c796ad1ec..309160362523 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_deployments.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_deployments.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListDeployments.json +# x-ms-original-file: 2026-07-15-preview/ListDeployments.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_encryption_scopes.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_encryption_scopes.py index 75f45c1b444b..f48e7c0ec71e 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_encryption_scopes.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_encryption_scopes.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListEncryptionScopes.json +# x-ms-original-file: 2026-07-15-preview/ListEncryptionScopes.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_keys.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_keys.py index 64fb5978e361..5d2deb9e8018 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_keys.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_keys.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/ListKeys.json +# x-ms-original-file: 2026-07-15-preview/ListKeys.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_location_based_model_capacities.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_location_based_model_capacities.py index 59695b221d4a..91d66c8932ed 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_location_based_model_capacities.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_location_based_model_capacities.py @@ -40,6 +40,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListLocationBasedModelCapacities.json +# x-ms-original-file: 2026-07-15-preview/ListLocationBasedModelCapacities.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_location_based_model_capacities_classic_scope.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_location_based_model_capacities_classic_scope.py index 7fdaad90bfa6..721e6336cf5a 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_location_based_model_capacities_classic_scope.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_location_based_model_capacities_classic_scope.py @@ -40,6 +40,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListLocationBasedModelCapacitiesClassicScope.json +# x-ms-original-file: 2026-07-15-preview/ListLocationBasedModelCapacitiesClassicScope.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_location_based_model_capacities_data_zone_scope.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_location_based_model_capacities_data_zone_scope.py index d9abc4723f7a..964d003d8280 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_location_based_model_capacities_data_zone_scope.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_location_based_model_capacities_data_zone_scope.py @@ -40,6 +40,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListLocationBasedModelCapacitiesDataZoneScope.json +# x-ms-original-file: 2026-07-15-preview/ListLocationBasedModelCapacitiesDataZoneScope.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_location_based_model_capacities_global_scope.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_location_based_model_capacities_global_scope.py index 2a6370a9219c..88999dc7b227 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_location_based_model_capacities_global_scope.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_location_based_model_capacities_global_scope.py @@ -40,6 +40,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListLocationBasedModelCapacitiesGlobalScope.json +# x-ms-original-file: 2026-07-15-preview/ListLocationBasedModelCapacitiesGlobalScope.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_location_models.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_location_models.py index bb04cf7aef1c..b4561f9c1042 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_location_models.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_location_models.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListLocationModels.json +# x-ms-original-file: 2026-07-15-preview/ListLocationModels.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_managed_compute_capacities.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_managed_compute_capacities.py index e849294bcf26..98906307fddb 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_managed_compute_capacities.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_managed_compute_capacities.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListManagedComputeCapacities.json +# x-ms-original-file: 2026-07-15-preview/ListManagedComputeCapacities.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_managed_compute_deployments.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_managed_compute_deployments.py index dd3598e0a207..da3a1edf151c 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_managed_compute_deployments.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_managed_compute_deployments.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListManagedComputeDeployments.json +# x-ms-original-file: 2026-07-15-preview/ListManagedComputeDeployments.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_managed_compute_usages.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_managed_compute_usages.py index 06e86e3035d5..6c3faf1d8ac3 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_managed_compute_usages.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_managed_compute_usages.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListManagedComputeUsages.json +# x-ms-original-file: 2026-07-15-preview/ListManagedComputeUsages.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_managed_network_v2.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_managed_network_v2.py index c29aaa5e2d9d..91afd10b28cc 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_managed_network_v2.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_managed_network_v2.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ManagedNetwork/listManagedNetworkV2.json +# x-ms-original-file: 2026-07-15-preview/ManagedNetwork/listManagedNetworkV2.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_model_capacities.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_model_capacities.py index db87806ade3d..09917456e0c7 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_model_capacities.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_model_capacities.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListModelCapacities.json +# x-ms-original-file: 2026-07-15-preview/ListModelCapacities.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_model_capacities_classic_scope.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_model_capacities_classic_scope.py index b101cd3d0f61..c7ce0fe27ae5 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_model_capacities_classic_scope.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_model_capacities_classic_scope.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListModelCapacitiesClassicScope.json +# x-ms-original-file: 2026-07-15-preview/ListModelCapacitiesClassicScope.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_model_capacities_data_zone_scope.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_model_capacities_data_zone_scope.py index 28ac0d747f2f..d30a639ae9b3 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_model_capacities_data_zone_scope.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_model_capacities_data_zone_scope.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListModelCapacitiesDataZoneScope.json +# x-ms-original-file: 2026-07-15-preview/ListModelCapacitiesDataZoneScope.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_model_capacities_global_scope.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_model_capacities_global_scope.py index 2ea9678e4cf3..dbc93cd35e2d 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_model_capacities_global_scope.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_model_capacities_global_scope.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListModelCapacitiesGlobalScope.json +# x-ms-original-file: 2026-07-15-preview/ListModelCapacitiesGlobalScope.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_network_security_perimeter_configurations.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_network_security_perimeter_configurations.py index a0e5e974deba..fd48f9c9c30e 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_network_security_perimeter_configurations.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_network_security_perimeter_configurations.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListNetworkSecurityPerimeterConfigurations.json +# x-ms-original-file: 2026-07-15-preview/ListNetworkSecurityPerimeterConfigurations.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_private_endpoint_connections.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_private_endpoint_connections.py index 2659b81741f7..74919cbbf0ee 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_private_endpoint_connections.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_private_endpoint_connections.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/ListPrivateEndpointConnections.json +# x-ms-original-file: 2026-07-15-preview/ListPrivateEndpointConnections.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_private_link_resources.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_private_link_resources.py index 81f4bbd35cfd..ce0121ff5540 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_private_link_resources.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_private_link_resources.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/ListPrivateLinkResources.json +# x-ms-original-file: 2026-07-15-preview/ListPrivateLinkResources.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_projects.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_projects.py index ec3a43d2f97a..996ef263503a 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_projects.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_projects.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListProjects.json +# x-ms-original-file: 2026-07-15-preview/ListProjects.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_quota_tiers.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_quota_tiers.py index d31c2524ccc0..78ba9640369c 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_quota_tiers.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_quota_tiers.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListQuotaTiers.json +# x-ms-original-file: 2026-07-15-preview/ListQuotaTiers.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_rai_content_filters.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_rai_content_filters.py index 38075f79cc86..ad0a0d351932 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_rai_content_filters.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_rai_content_filters.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListRaiContentFilters.json +# x-ms-original-file: 2026-07-15-preview/ListRaiContentFilters.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_rai_external_safety_providers.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_rai_external_safety_providers.py index bcfbfb7b9780..fa2592c2fcc5 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_rai_external_safety_providers.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_rai_external_safety_providers.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListRaiExternalSafetyProviders.json +# x-ms-original-file: 2026-07-15-preview/ListRaiExternalSafetyProviders.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_rai_policies.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_rai_policies.py index 5580342e3812..398d078b6b1d 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_rai_policies.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_rai_policies.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListRaiPolicies.json +# x-ms-original-file: 2026-07-15-preview/ListRaiPolicies.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_rai_tool_labels.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_rai_tool_labels.py index 6352cf33522f..b39ad20d3a3b 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_rai_tool_labels.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_rai_tool_labels.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListRaiToolLabels.json +# x-ms-original-file: 2026-07-15-preview/ListRaiToolLabels.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_rai_topics.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_rai_topics.py index 8a7ce5183d35..da46aaa7701a 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_rai_topics.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_rai_topics.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListRaiTopics.json +# x-ms-original-file: 2026-07-15-preview/ListRaiTopics.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_rule_v2.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_rule_v2.py index 963d99d5eac4..681bcf48dd45 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_rule_v2.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_rule_v2.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ManagedNetwork/listRuleV2.json +# x-ms-original-file: 2026-07-15-preview/ManagedNetwork/listRuleV2.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_shared_commitment_plan_associations.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_shared_commitment_plan_associations.py index ecb3c18c645d..ce500a0ecdb3 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_shared_commitment_plan_associations.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_shared_commitment_plan_associations.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListSharedCommitmentPlanAssociations.json +# x-ms-original-file: 2026-07-15-preview/ListSharedCommitmentPlanAssociations.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_shared_commitment_plans_by_resource_group.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_shared_commitment_plans_by_resource_group.py index 84aa2983585c..2e2c418fcc9e 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_shared_commitment_plans_by_resource_group.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_shared_commitment_plans_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListSharedCommitmentPlansByResourceGroup.json +# x-ms-original-file: 2026-07-15-preview/ListSharedCommitmentPlansByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_shared_commitment_plans_by_subscription.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_shared_commitment_plans_by_subscription.py index 896f6d236898..b3cd6d3402b7 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_shared_commitment_plans_by_subscription.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_shared_commitment_plans_by_subscription.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListSharedCommitmentPlansBySubscription.json +# x-ms-original-file: 2026-07-15-preview/ListSharedCommitmentPlansBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_skus.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_skus.py index ced144158a08..b2a9e5e68580 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_skus.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_skus.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/ListSkus.json +# x-ms-original-file: 2026-07-15-preview/ListSkus.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_usages.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_usages.py index d07a3a695797..69234a561067 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_usages.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_usages.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListUsages.json +# x-ms-original-file: 2026-07-15-preview/ListUsages.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_usages_classic_scope.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_usages_classic_scope.py index ef82a6736b8a..a0227d0d7257 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_usages_classic_scope.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_usages_classic_scope.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListUsagesClassicScope.json +# x-ms-original-file: 2026-07-15-preview/ListUsagesClassicScope.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_usages_data_zone_scope.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_usages_data_zone_scope.py index 36632c16767f..4a83fe867ede 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_usages_data_zone_scope.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_usages_data_zone_scope.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListUsagesDataZoneScope.json +# x-ms-original-file: 2026-07-15-preview/ListUsagesDataZoneScope.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_usages_global_scope.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_usages_global_scope.py index 834f847a7749..edcc990bbc47 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_usages_global_scope.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_usages_global_scope.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListUsagesGlobalScope.json +# x-ms-original-file: 2026-07-15-preview/ListUsagesGlobalScope.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_vm_managed_compute_deployments.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_vm_managed_compute_deployments.py index 1ae6ef0e1470..9b13eafc7b55 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_vm_managed_compute_deployments.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_vm_managed_compute_deployments.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListVmManagedComputeDeployments.json +# x-ms-original-file: 2026-07-15-preview/ListVmManagedComputeDeployments.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_workbenches.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_workbenches.py index ad5a07871382..42dc9730eeed 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_workbenches.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/list_workbenches.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ListWorkbenches.json +# x-ms-original-file: 2026-07-15-preview/ListWorkbenches.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/patch_managed_network_v2.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/patch_managed_network_v2.py index 931f25f71d93..b7d6b4eef3f8 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/patch_managed_network_v2.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/patch_managed_network_v2.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/ManagedNetwork/patchManagedNetworkV2.json +# x-ms-original-file: 2026-07-15-preview/ManagedNetwork/patchManagedNetworkV2.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/pause_deployment.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/pause_deployment.py index 28be4b790382..5343cba6580e 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/pause_deployment.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/pause_deployment.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/PauseDeployment.json +# x-ms-original-file: 2026-07-15-preview/PauseDeployment.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/post_outbound_rules_v2.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/post_outbound_rules_v2.py index 4e42712ec570..d18a2f763760 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/post_outbound_rules_v2.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/post_outbound_rules_v2.py @@ -48,6 +48,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-15-preview/ManagedNetwork/postOutboundRulesV2.json +# x-ms-original-file: 2026-07-15-preview/ManagedNetwork/postOutboundRulesV2.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/provision_managed_network.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/provision_managed_network.py index 153c94dae5d7..376d1772832d 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/provision_managed_network.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/provision_managed_network.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/ManagedNetwork/provisionManagedNetwork.json +# x-ms-original-file: 2026-07-15-preview/ManagedNetwork/provisionManagedNetwork.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/purge_deleted_account.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/purge_deleted_account.py index 494685bd3cc3..b827a07a5a54 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/purge_deleted_account.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/purge_deleted_account.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-05-15-preview/PurgeDeletedAccount.json +# x-ms-original-file: 2026-07-15-preview/PurgeDeletedAccount.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_commitment_plan.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_commitment_plan.py index 098148c53ee5..f911bd814a34 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_commitment_plan.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_commitment_plan.py @@ -46,6 +46,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/PutCommitmentPlan.json +# x-ms-original-file: 2026-07-15-preview/PutCommitmentPlan.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_compute.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_compute.py index fecad803a55b..6ea2effbb4c5 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_compute.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_compute.py @@ -1,4 +1,3 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -31,25 +30,23 @@ def main(): subscription_id="SUBSCRIPTION_ID", ) - response = client.computes.begin_create_or_update( + client.computes.begin_create_or_update( resource_group_name="rgcognitiveservices", account_name="myAccount", compute_name="myCompute", resource={ "identity": {"type": "None"}, - "location": "eastus", "properties": { "computeType": "Cluster", + "location": "eastus", "pools": [ {"instanceType": "Standard_DS3_v2", "name": "default", "nodeCount": 2, "vmPriority": "Regular"} ], - "subnetArmId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rgcognitiveservices/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/default", }, }, ).result() - print(response) -# x-ms-original-file: 2026-05-15-preview/PutCompute.json +# x-ms-original-file: 2026-07-15-preview/PutCompute.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_container_instance_compute.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_container_instance_compute.py index 39a9433e8a03..04304b3e67a1 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_container_instance_compute.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_container_instance_compute.py @@ -31,7 +31,7 @@ def main(): subscription_id="SUBSCRIPTION_ID", ) - response = client.computes.begin_create_or_update( + client.computes.begin_create_or_update( resource_group_name="rgcognitiveservices", account_name="myAccount", compute_name="myContainerInstance", @@ -42,19 +42,18 @@ def main(): "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rgcognitiveservices/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myIdentity": {} }, }, - "location": "eastus", "properties": { "computeType": "ContainerInstance", "idleTimeBeforeShutdown": "PT30M", "imageLink": "mcr.microsoft.com/azureml/curated/pytorch-gpu:latest", + "location": "eastus", "sshSettings": {"adminEnabled": True, "sshPublicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQ..."}, "targetClusterId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rgcognitiveservices/providers/Microsoft.CognitiveServices/accounts/myAccount/computes/myCluster", }, }, ).result() - print(response) -# x-ms-original-file: 2026-05-15-preview/PutContainerInstanceCompute.json +# x-ms-original-file: 2026-07-15-preview/PutContainerInstanceCompute.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_defender_for_ai_setting.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_defender_for_ai_setting.py index f286accfbcad..b3e5474588d1 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_defender_for_ai_setting.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_defender_for_ai_setting.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/PutDefenderForAISetting.json +# x-ms-original-file: 2026-07-15-preview/PutDefenderForAISetting.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_deployment.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_deployment.py index 7774ecaf82a2..dd916c037dfd 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_deployment.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_deployment.py @@ -46,6 +46,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/PutDeployment.json +# x-ms-original-file: 2026-07-15-preview/PutDeployment.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_deployment_with_speculative_decoding.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_deployment_with_speculative_decoding.py index 5cffe7d405ad..97784493579b 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_deployment_with_speculative_decoding.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_deployment_with_speculative_decoding.py @@ -56,6 +56,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/PutDeploymentWithSpeculativeDecoding.json +# x-ms-original-file: 2026-07-15-preview/PutDeploymentWithSpeculativeDecoding.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_encryption_scope.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_encryption_scope.py index b60015634299..9ac778e365f9 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_encryption_scope.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_encryption_scope.py @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/PutEncryptionScope.json +# x-ms-original-file: 2026-07-15-preview/PutEncryptionScope.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_private_endpoint_connection.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_private_endpoint_connection.py index 5d09d5510aaa..b4018a6bd9d3 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_private_endpoint_connection.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_private_endpoint_connection.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/PutPrivateEndpointConnection.json +# x-ms-original-file: 2026-07-15-preview/PutPrivateEndpointConnection.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_rai_blocklist.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_rai_blocklist.py index a9759290a62e..76d20f254a5e 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_rai_blocklist.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_rai_blocklist.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/PutRaiBlocklist.json +# x-ms-original-file: 2026-07-15-preview/PutRaiBlocklist.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_rai_blocklist_item.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_rai_blocklist_item.py index ee7bd23b7d95..5f128a603d07 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_rai_blocklist_item.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_rai_blocklist_item.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/PutRaiBlocklistItem.json +# x-ms-original-file: 2026-07-15-preview/PutRaiBlocklistItem.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_rai_external_safety_provider.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_rai_external_safety_provider.py index 3021c0488e1b..08b44ebccda5 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_rai_external_safety_provider.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_rai_external_safety_provider.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/PutRaiExternalSafetyProvider.json +# x-ms-original-file: 2026-07-15-preview/PutRaiExternalSafetyProvider.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_rai_policy.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_rai_policy.py index 61d3f23a2157..71f04b4ddd6a 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_rai_policy.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_rai_policy.py @@ -106,6 +106,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/PutRaiPolicy.json +# x-ms-original-file: 2026-07-15-preview/PutRaiPolicy.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_rai_policy_with_egress.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_rai_policy_with_egress.py index cbc727087abd..b7201c38406b 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_rai_policy_with_egress.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_rai_policy_with_egress.py @@ -37,6 +37,7 @@ def main(): rai_policy={ "properties": { "basePolicyName": "Microsoft.Default", + "contentFilters": [], "egressPolicy": { "defaultAction": "Deny", "description": "Corporate baseline egress policy for sandboxed agents", @@ -91,6 +92,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/PutRaiPolicyWithEgress.json +# x-ms-original-file: 2026-07-15-preview/PutRaiPolicyWithEgress.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_rai_tool_label.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_rai_tool_label.py index f7fc5716874d..cd21c480500d 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_rai_tool_label.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_rai_tool_label.py @@ -48,6 +48,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/PutRaiToolLabel.json +# x-ms-original-file: 2026-07-15-preview/PutRaiToolLabel.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_rai_topic.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_rai_topic.py index 62915a46cea3..a14a11cb1ebc 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_rai_topic.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_rai_topic.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/PutRaiTopic.json +# x-ms-original-file: 2026-07-15-preview/PutRaiTopic.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_subscription_rai_policy.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_subscription_rai_policy.py index 903ff31915a4..6bcbd3bf8d41 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_subscription_rai_policy.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_subscription_rai_policy.py @@ -104,6 +104,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/PutSubscriptionRaiPolicy.json +# x-ms-original-file: 2026-07-15-preview/PutSubscriptionRaiPolicy.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_workbench.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_workbench.py index 4941ced0f022..5a5576fde7f6 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_workbench.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/put_workbench.py @@ -56,6 +56,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/PutWorkbench.json +# x-ms-original-file: 2026-07-15-preview/PutWorkbench.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/reconcile_network_security_perimeter_configurations.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/reconcile_network_security_perimeter_configurations.py index e591cf3a7776..39a50002f2df 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/reconcile_network_security_perimeter_configurations.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/reconcile_network_security_perimeter_configurations.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/ReconcileNetworkSecurityPerimeterConfigurations.json +# x-ms-original-file: 2026-07-15-preview/ReconcileNetworkSecurityPerimeterConfigurations.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/regenerate_key.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/regenerate_key.py index c66940d639ee..bdbea11aa0b6 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/regenerate_key.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/regenerate_key.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/RegenerateKey.json +# x-ms-original-file: 2026-07-15-preview/RegenerateKey.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/restart_container_instance_compute.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/restart_container_instance_compute.py index 8d44b38e36e9..e2c56ef7bdeb 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/restart_container_instance_compute.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/restart_container_instance_compute.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-05-15-preview/RestartContainerInstanceCompute.json +# x-ms-original-file: 2026-07-15-preview/RestartContainerInstanceCompute.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/restart_workbench.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/restart_workbench.py index 803e66349091..4b174c31d880 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/restart_workbench.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/restart_workbench.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2026-05-15-preview/RestartWorkbench.json +# x-ms-original-file: 2026-07-15-preview/RestartWorkbench.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/resume_deployment.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/resume_deployment.py index 78ed4fd7ab28..9c77a7e7161f 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/resume_deployment.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/resume_deployment.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/ResumeDeployment.json +# x-ms-original-file: 2026-07-15-preview/ResumeDeployment.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/start.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/start.py index 29fe43a0845c..b0fe97b86b0c 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/start.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/start.py @@ -39,6 +39,6 @@ def main(): ) -# x-ms-original-file: 2026-05-15-preview/AgentDeployment/start.json +# x-ms-original-file: 2026-07-15-preview/AgentDeployment/start.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/start_container_instance_compute.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/start_container_instance_compute.py index b2badaa30686..f2e6ffba827b 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/start_container_instance_compute.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/start_container_instance_compute.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-05-15-preview/StartContainerInstanceCompute.json +# x-ms-original-file: 2026-07-15-preview/StartContainerInstanceCompute.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/start_workbench.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/start_workbench.py index b3d142fba4cb..771111a7d9e1 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/start_workbench.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/start_workbench.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2026-05-15-preview/StartWorkbench.json +# x-ms-original-file: 2026-07-15-preview/StartWorkbench.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/stop.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/stop.py index ccc0bfe6782a..eebfcd0ecb32 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/stop.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/stop.py @@ -39,6 +39,6 @@ def main(): ) -# x-ms-original-file: 2026-05-15-preview/AgentDeployment/stop.json +# x-ms-original-file: 2026-07-15-preview/AgentDeployment/stop.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/stop_container_instance_compute.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/stop_container_instance_compute.py index 372f3b678994..30be7cf93181 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/stop_container_instance_compute.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/stop_container_instance_compute.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-05-15-preview/StopContainerInstanceCompute.json +# x-ms-original-file: 2026-07-15-preview/StopContainerInstanceCompute.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/stop_workbench.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/stop_workbench.py index be8e95b9e4f4..318bf551e015 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/stop_workbench.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/stop_workbench.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2026-05-15-preview/StopWorkbench.json +# x-ms-original-file: 2026-07-15-preview/StopWorkbench.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/test_rai_external_safety_provider.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/test_rai_external_safety_provider.py index ddacd7a0ce8d..302dfba7f695 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/test_rai_external_safety_provider.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/test_rai_external_safety_provider.py @@ -49,6 +49,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/TestRaiExternalSafetyProvider.json +# x-ms-original-file: 2026-07-15-preview/TestRaiExternalSafetyProvider.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update.py index dbb59db756e4..ebadda8610be 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/AccountConnection/update.json +# x-ms-original-file: 2026-07-15-preview/AccountConnection/update.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_account.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_account.py index a42b2eefeec5..b856a10c5664 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_account.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_account.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/UpdateAccount.json +# x-ms-original-file: 2026-07-15-preview/UpdateAccount.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_compute.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_arc_deployment.py similarity index 74% rename from sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_compute.py rename to sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_arc_deployment.py index 34a154d3657c..284c53b67afd 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_compute.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_arc_deployment.py @@ -15,7 +15,7 @@ pip install azure-identity pip install azure-mgmt-cognitiveservices # USAGE - python update_compute.py + python update_arc_deployment.py Before run the sample, please set the values of the client ID, tenant ID and client secret of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, @@ -30,22 +30,21 @@ def main(): subscription_id="SUBSCRIPTION_ID", ) - response = client.computes.begin_update( - resource_group_name="rgcognitiveservices", - account_name="myAccount", - compute_name="myCompute", + response = client.arc_deployments.begin_update( + resource_group_name="resourceGroupName", + account_name="accountName", + deployment_name="phi-3-arc", properties={ "properties": { - "computeType": "Cluster", - "pools": [ - {"instanceType": "Standard_DS3_v2", "name": "default", "nodeCount": 4, "vmPriority": "Regular"} - ], + "nodeSelector": {"agentpool": "cpu"}, + "replicas": 3, + "resources": {"limits": {"cpu": "4", "memory": "16Gi"}, "requests": {"cpu": "500m", "memory": "2Gi"}}, } }, ).result() print(response) -# x-ms-original-file: 2026-05-15-preview/UpdateCompute.json +# x-ms-original-file: 2026-07-15-preview/UpdateArcDeployment.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_defender_for_ai_setting.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_defender_for_ai_setting.py index 541b483e566c..4d522f7080d3 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_defender_for_ai_setting.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_defender_for_ai_setting.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/UpdateDefenderForAISetting.json +# x-ms-original-file: 2026-07-15-preview/UpdateDefenderForAISetting.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_deployment.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_deployment.py index 4806f6ff9824..61c908f6023f 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_deployment.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_deployment.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/UpdateDeployment.json +# x-ms-original-file: 2026-07-15-preview/UpdateDeployment.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_managed_compute_deployment.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_managed_compute_deployment.py index c9d214eec4ca..19eb39069d4f 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_managed_compute_deployment.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_managed_compute_deployment.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/UpdateManagedComputeDeployment.json +# x-ms-original-file: 2026-07-15-preview/UpdateManagedComputeDeployment.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_projects.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_projects.py index 1e9f12cd3c1c..159cf297ccf1 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_projects.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_projects.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/UpdateProjects.json +# x-ms-original-file: 2026-07-15-preview/UpdateProjects.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_quota_tier.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_quota_tier.py index 4203ce56834d..9e6598f5087e 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_quota_tier.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_quota_tier.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/UpdateQuotaTier.json +# x-ms-original-file: 2026-07-15-preview/UpdateQuotaTier.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_shared_commitment_plan.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_shared_commitment_plan.py index 4c52c71f1070..f40e1a11b95c 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_shared_commitment_plan.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_shared_commitment_plan.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/UpdateSharedCommitmentPlan.json +# x-ms-original-file: 2026-07-15-preview/UpdateSharedCommitmentPlan.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_vm_managed_compute_deployment.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_vm_managed_compute_deployment.py index f351dd9197e0..601b5f55a185 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_vm_managed_compute_deployment.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_vm_managed_compute_deployment.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/UpdateVmManagedComputeDeployment.json +# x-ms-original-file: 2026-07-15-preview/UpdateVmManagedComputeDeployment.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_workbench.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_workbench.py index 7626d1971288..02ed56056234 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_workbench.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_samples/update_workbench.py @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-15-preview/UpdateWorkbench.json +# x-ms-original-file: 2026-07-15-preview/UpdateWorkbench.json if __name__ == "__main__": main() diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_accounts_operations.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_accounts_operations.py index 6273668d3175..b9f0458a9331 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_accounts_operations.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_accounts_operations.py @@ -48,7 +48,9 @@ def test_accounts_begin_create(self, resource_group): "location": "str", "name": "str", "properties": { + "a365LoggingEnabled": bool, "abusePenalty": {"action": "str", "expiration": "2020-02-20 00:00:00", "rateLimitPercentage": 0.0}, + "agentHostingConfigurations": ["agent_hosting_configuration"], "allowProjectManagement": bool, "allowedFqdnList": ["str"], "amlWorkspace": {"identityClientId": "str", "resourceId": "str"}, @@ -80,6 +82,7 @@ def test_accounts_begin_create(self, resource_group): ], }, "capabilities": [{"name": "str", "value": "str"}], + "capabilitySettings": {"blobStore": "str", "documentStore": "str", "vectorStore": "str"}, "commitmentPlanAssociations": [{"commitmentPlanId": "str", "commitmentPlanLocation": "str"}], "customSubDomainName": "str", "dateCreated": "str", @@ -213,7 +216,9 @@ def test_accounts_begin_update(self, resource_group): "location": "str", "name": "str", "properties": { + "a365LoggingEnabled": bool, "abusePenalty": {"action": "str", "expiration": "2020-02-20 00:00:00", "rateLimitPercentage": 0.0}, + "agentHostingConfigurations": ["agent_hosting_configuration"], "allowProjectManagement": bool, "allowedFqdnList": ["str"], "amlWorkspace": {"identityClientId": "str", "resourceId": "str"}, @@ -245,6 +250,7 @@ def test_accounts_begin_update(self, resource_group): ], }, "capabilities": [{"name": "str", "value": "str"}], + "capabilitySettings": {"blobStore": "str", "documentStore": "str", "vectorStore": "str"}, "commitmentPlanAssociations": [{"commitmentPlanId": "str", "commitmentPlanLocation": "str"}], "customSubDomainName": "str", "dateCreated": "str", diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_accounts_operations_async.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_accounts_operations_async.py index bc0ac7e6e109..084fa5aa4e49 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_accounts_operations_async.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_accounts_operations_async.py @@ -50,11 +50,13 @@ async def test_accounts_begin_create(self, resource_group): "location": "str", "name": "str", "properties": { + "a365LoggingEnabled": bool, "abusePenalty": { "action": "str", "expiration": "2020-02-20 00:00:00", "rateLimitPercentage": 0.0, }, + "agentHostingConfigurations": ["agent_hosting_configuration"], "allowProjectManagement": bool, "allowedFqdnList": ["str"], "amlWorkspace": {"identityClientId": "str", "resourceId": "str"}, @@ -86,6 +88,7 @@ async def test_accounts_begin_create(self, resource_group): ], }, "capabilities": [{"name": "str", "value": "str"}], + "capabilitySettings": {"blobStore": "str", "documentStore": "str", "vectorStore": "str"}, "commitmentPlanAssociations": [{"commitmentPlanId": "str", "commitmentPlanLocation": "str"}], "customSubDomainName": "str", "dateCreated": "str", @@ -221,11 +224,13 @@ async def test_accounts_begin_update(self, resource_group): "location": "str", "name": "str", "properties": { + "a365LoggingEnabled": bool, "abusePenalty": { "action": "str", "expiration": "2020-02-20 00:00:00", "rateLimitPercentage": 0.0, }, + "agentHostingConfigurations": ["agent_hosting_configuration"], "allowProjectManagement": bool, "allowedFqdnList": ["str"], "amlWorkspace": {"identityClientId": "str", "resourceId": "str"}, @@ -257,6 +262,7 @@ async def test_accounts_begin_update(self, resource_group): ], }, "capabilities": [{"name": "str", "value": "str"}], + "capabilitySettings": {"blobStore": "str", "documentStore": "str", "vectorStore": "str"}, "commitmentPlanAssociations": [{"commitmentPlanId": "str", "commitmentPlanLocation": "str"}], "customSubDomainName": "str", "dateCreated": "str", diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_arc_deployments_operations.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_arc_deployments_operations.py new file mode 100644 index 000000000000..e15af8d237d2 --- /dev/null +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_arc_deployments_operations.py @@ -0,0 +1,128 @@ +# 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. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.cognitiveservices import CognitiveServicesManagementClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestCognitiveServicesManagementArcDeploymentsOperations(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(CognitiveServicesManagementClient) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_arc_deployments_get(self, resource_group): + response = self.client.arc_deployments.get( + resource_group_name=resource_group.name, + account_name="str", + deployment_name="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_arc_deployments_begin_create_or_update(self, resource_group): + response = self.client.arc_deployments.begin_create_or_update( + resource_group_name=resource_group.name, + account_name="str", + deployment_name="str", + resource={ + "properties": { + "compute": "str", + "extensionId": "str", + "model": {"format": "str", "name": "str"}, + "replicas": 0, + "resources": { + "limits": {"cpu": "str", "gpu": 0, "memory": "str"}, + "requests": {"cpu": "str", "memory": "str"}, + }, + "runtime": "str", + "capabilities": {"str": "str"}, + "deploymentState": "str", + "deploymentTemplate": "str", + "inferenceEndpoint": "str", + "nodeSelector": {"str": "str"}, + "provisioningDetails": {"lastOperationTimestamp": "2020-02-20 00:00:00", "message": "str"}, + "provisioningState": "str", + "raiPolicyName": "str", + "vllmParameters": { + "enforceEager": bool, + "gpuMemoryUtilization": 0.0, + "maxModelLen": 0, + "tensorParallelSize": 0, + }, + }, + "sku": {"name": "str"}, + "etag": "str", + "id": "str", + "name": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "type": "str", + }, + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_arc_deployments_begin_update(self, resource_group): + response = self.client.arc_deployments.begin_update( + resource_group_name=resource_group.name, + account_name="str", + deployment_name="str", + properties={ + "properties": { + "nodeSelector": {"str": "str"}, + "replicas": 0, + "resources": { + "limits": {"cpu": "str", "gpu": 0, "memory": "str"}, + "requests": {"cpu": "str", "memory": "str"}, + }, + } + }, + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_arc_deployments_begin_delete(self, resource_group): + response = self.client.arc_deployments.begin_delete( + resource_group_name=resource_group.name, + account_name="str", + deployment_name="str", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_arc_deployments_list(self, resource_group): + response = self.client.arc_deployments.list( + resource_group_name=resource_group.name, + account_name="str", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_arc_deployments_operations_async.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_arc_deployments_operations_async.py new file mode 100644 index 000000000000..428213a8d7a2 --- /dev/null +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_arc_deployments_operations_async.py @@ -0,0 +1,135 @@ +# 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. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.cognitiveservices.aio import CognitiveServicesManagementClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer +from devtools_testutils.aio import recorded_by_proxy_async + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestCognitiveServicesManagementArcDeploymentsOperationsAsync(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(CognitiveServicesManagementClient, is_async=True) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_arc_deployments_get(self, resource_group): + response = await self.client.arc_deployments.get( + resource_group_name=resource_group.name, + account_name="str", + deployment_name="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_arc_deployments_begin_create_or_update(self, resource_group): + response = await ( + await self.client.arc_deployments.begin_create_or_update( + resource_group_name=resource_group.name, + account_name="str", + deployment_name="str", + resource={ + "properties": { + "compute": "str", + "extensionId": "str", + "model": {"format": "str", "name": "str"}, + "replicas": 0, + "resources": { + "limits": {"cpu": "str", "gpu": 0, "memory": "str"}, + "requests": {"cpu": "str", "memory": "str"}, + }, + "runtime": "str", + "capabilities": {"str": "str"}, + "deploymentState": "str", + "deploymentTemplate": "str", + "inferenceEndpoint": "str", + "nodeSelector": {"str": "str"}, + "provisioningDetails": {"lastOperationTimestamp": "2020-02-20 00:00:00", "message": "str"}, + "provisioningState": "str", + "raiPolicyName": "str", + "vllmParameters": { + "enforceEager": bool, + "gpuMemoryUtilization": 0.0, + "maxModelLen": 0, + "tensorParallelSize": 0, + }, + }, + "sku": {"name": "str"}, + "etag": "str", + "id": "str", + "name": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "type": "str", + }, + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_arc_deployments_begin_update(self, resource_group): + response = await ( + await self.client.arc_deployments.begin_update( + resource_group_name=resource_group.name, + account_name="str", + deployment_name="str", + properties={ + "properties": { + "nodeSelector": {"str": "str"}, + "replicas": 0, + "resources": { + "limits": {"cpu": "str", "gpu": 0, "memory": "str"}, + "requests": {"cpu": "str", "memory": "str"}, + }, + } + }, + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_arc_deployments_begin_delete(self, resource_group): + response = await ( + await self.client.arc_deployments.begin_delete( + resource_group_name=resource_group.name, + account_name="str", + deployment_name="str", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_arc_deployments_list(self, resource_group): + response = self.client.arc_deployments.list( + resource_group_name=resource_group.name, + account_name="str", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_computes_operations.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_computes_operations.py index bf993c613879..9768dd027b6b 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_computes_operations.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_computes_operations.py @@ -48,43 +48,6 @@ def test_computes_begin_create_or_update(self, resource_group): "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, }, "kind": "str", - "location": "str", - "name": "str", - "systemData": { - "createdAt": "2020-02-20 00:00:00", - "createdBy": "str", - "createdByType": "str", - "lastModifiedAt": "2020-02-20 00:00:00", - "lastModifiedBy": "str", - "lastModifiedByType": "str", - }, - "tags": {"str": "str"}, - "type": "str", - }, - ).result() # call '.result()' to poll until service return final result - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_computes_begin_update(self, resource_group): - response = self.client.computes.begin_update( - resource_group_name=resource_group.name, - account_name="str", - compute_name="str", - properties={ - "properties": "compute_properties", - "etag": "str", - "id": "str", - "identity": { - "principalId": "str", - "tenantId": "str", - "type": "str", - "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, - }, - "kind": "str", - "location": "str", "name": "str", "systemData": { "createdAt": "2020-02-20 00:00:00", diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_computes_operations_async.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_computes_operations_async.py index a16dc0d32b24..5eb95d67f12f 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_computes_operations_async.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_computes_operations_async.py @@ -50,45 +50,6 @@ async def test_computes_begin_create_or_update(self, resource_group): "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, }, "kind": "str", - "location": "str", - "name": "str", - "systemData": { - "createdAt": "2020-02-20 00:00:00", - "createdBy": "str", - "createdByType": "str", - "lastModifiedAt": "2020-02-20 00:00:00", - "lastModifiedBy": "str", - "lastModifiedByType": "str", - }, - "tags": {"str": "str"}, - "type": "str", - }, - ) - ).result() # call '.result()' to poll until service return final result - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_computes_begin_update(self, resource_group): - response = await ( - await self.client.computes.begin_update( - resource_group_name=resource_group.name, - account_name="str", - compute_name="str", - properties={ - "properties": "compute_properties", - "etag": "str", - "id": "str", - "identity": { - "principalId": "str", - "tenantId": "str", - "type": "str", - "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, - }, - "kind": "str", - "location": "str", "name": "str", "systemData": { "createdAt": "2020-02-20 00:00:00", diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_deployments_operations.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_deployments_operations.py index 4d371024480a..8db0967422ea 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_deployments_operations.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_deployments_operations.py @@ -58,6 +58,7 @@ def test_deployments_begin_create_or_update(self, resource_group): }, "capabilities": {"str": "str"}, "capacitySettings": {"designatedCapacity": 0, "priority": 0}, + "contextCacheContainerId": "str", "currentCapacity": 0, "deploymentState": "str", "dynamicThrottlingEnabled": bool, diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_deployments_operations_async.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_deployments_operations_async.py index 66d2fadc1606..314f0a8752be 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_deployments_operations_async.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_deployments_operations_async.py @@ -60,6 +60,7 @@ async def test_deployments_begin_create_or_update(self, resource_group): }, "capabilities": {"str": "str"}, "capacitySettings": {"designatedCapacity": 0, "priority": 0}, + "contextCacheContainerId": "str", "currentCapacity": 0, "deploymentState": "str", "dynamicThrottlingEnabled": bool, diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_projects_operations.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_projects_operations.py index b016b7bff581..f5c4e30ae436 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_projects_operations.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_projects_operations.py @@ -49,6 +49,7 @@ def test_projects_begin_create(self, resource_group): "location": "str", "name": "str", "properties": { + "capabilitySettings": {"blobStore": "str", "documentStore": "str", "vectorStore": "str"}, "description": "str", "displayName": "str", "endpoints": {"str": "str"}, @@ -90,6 +91,7 @@ def test_projects_begin_update(self, resource_group): "location": "str", "name": "str", "properties": { + "capabilitySettings": {"blobStore": "str", "documentStore": "str", "vectorStore": "str"}, "description": "str", "displayName": "str", "endpoints": {"str": "str"}, diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_projects_operations_async.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_projects_operations_async.py index 34d2ebb6ac8b..fd783ce6b511 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_projects_operations_async.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/generated_tests/test_cognitive_services_management_projects_operations_async.py @@ -51,6 +51,7 @@ async def test_projects_begin_create(self, resource_group): "location": "str", "name": "str", "properties": { + "capabilitySettings": {"blobStore": "str", "documentStore": "str", "vectorStore": "str"}, "description": "str", "displayName": "str", "endpoints": {"str": "str"}, @@ -94,6 +95,7 @@ async def test_projects_begin_update(self, resource_group): "location": "str", "name": "str", "properties": { + "capabilitySettings": {"blobStore": "str", "documentStore": "str", "vectorStore": "str"}, "description": "str", "displayName": "str", "endpoints": {"str": "str"}, diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/tests/test_computes_operations_patch.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/tests/disable_test_computes_operations_patch.py similarity index 99% rename from sdk/cognitiveservices/azure-mgmt-cognitiveservices/tests/test_computes_operations_patch.py rename to sdk/cognitiveservices/azure-mgmt-cognitiveservices/tests/disable_test_computes_operations_patch.py index 40e939fac479..ae01c9d22e04 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/tests/test_computes_operations_patch.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/tests/disable_test_computes_operations_patch.py @@ -13,6 +13,7 @@ - the poller blocks until a terminal state and raises the compute's own error on failure, and - genuine non-2xx create errors still propagate. """ + import json as _json import time import typing diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/tests/test_computes_operations_patch_async.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/tests/disable_test_computes_operations_patch_async.py similarity index 99% rename from sdk/cognitiveservices/azure-mgmt-cognitiveservices/tests/test_computes_operations_patch_async.py rename to sdk/cognitiveservices/azure-mgmt-cognitiveservices/tests/disable_test_computes_operations_patch_async.py index c2685c8fdf3d..5684b5ec3ee8 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/tests/test_computes_operations_patch_async.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/tests/disable_test_computes_operations_patch_async.py @@ -9,6 +9,7 @@ (never ``computeOperations``, and not ``get`` which 404s during provisioning), blocks until terminal, surfaces provisioning failures, and still propagates genuine non-2xx create errors. """ + import json as _json import time import typing diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/tsp-location.yaml b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/tsp-location.yaml index bafbd5abd0b4..dd59be1aa41a 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/tsp-location.yaml +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/cognitiveservices/CognitiveServices.Management -commit: fc12374be89d7869e1a5cff58b7586c9dcb6bf64 +commit: d8ae42826a35b0973ff1bb7900328c5063698a81 repo: Azure/azure-rest-api-specs additionalDirectories: