Skip to content

Commit 3dad2eb

Browse files
[AutoPR azure-mgmt-cognitiveservices]-generated-from-SDK Generation - Python-6340768 (#47078)
* Configurations: 'specification/cognitiveservices/CognitiveServices.Management/tspconfig.yaml', API Version: 2026-03-15-preview, SDK Release Type: beta, and CommitSHA: '182eacfaa4691f06fb161722f13f4d99e9b26a0a' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6340768 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * update * Update CHANGELOG.md * Update CHANGELOG.md --------- Co-authored-by: Chenxi Jiang (WICRESOFT NORTH AMERICA LTD) <v-chenjiang@microsoft.com> Co-authored-by: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com>
1 parent b9fa9da commit 3dad2eb

215 files changed

Lines changed: 21578 additions & 7604 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

sdk/cognitiveservices/azure-mgmt-cognitiveservices/CHANGELOG.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,63 @@
11
# Release History
22

3+
## 15.0.0b2 (2026-05-22)
4+
5+
### Features Added
6+
7+
- Client `CognitiveServicesManagementClient` added operation group `managed_compute_deployments`
8+
- Client `CognitiveServicesManagementClient` added operation group `managed_compute_usages_operation_group`
9+
- Client `CognitiveServicesManagementClient` added operation group `computes`
10+
- Client `CognitiveServicesManagementClient` added operation group `workbenches`
11+
- Client `CognitiveServicesManagementClient` added operation group `managed_compute_capacities`
12+
- Enum `RoutingMode` added member `QUALITY`
13+
- Added model `ClusterComputeProperties`
14+
- Added model `Compute`
15+
- Added model `ComputeProperties`
16+
- Added enum `ComputeProvisioningState`
17+
- Added enum `ComputeType`
18+
- Added model `ConnectivityEndpoints`
19+
- Added model `ContainerInstanceComputeProperties`
20+
- Added model `DeploymentPolicyEvaluationResult`
21+
- Added model `DeploymentSizeCapacity`
22+
- Added model `EvaluateDeploymentPoliciesDeployment`
23+
- Added model `EvaluateDeploymentPoliciesDeploymentProperties`
24+
- Added model `EvaluateDeploymentPoliciesRequest`
25+
- Added model `EvaluateDeploymentPoliciesResponse`
26+
- Added model `ManagedComputeCapacity`
27+
- Added model `ManagedComputeCapacityProperties`
28+
- Added model `ManagedComputeDeployment`
29+
- Added model `ManagedComputeDeploymentInfo`
30+
- Added model `ManagedComputeDeploymentProperties`
31+
- Added model `ManagedComputeDeploymentProvisioningDetails`
32+
- Added model `ManagedComputeDeploymentRoutes`
33+
- Added model `ManagedComputeUsage`
34+
- Added model `PatchResourceSku`
35+
- Added model `PolicyAssignmentEvaluationDetails`
36+
- Added enum `PolicyEvaluationOutcome`
37+
- Added model `PolicyExpressionEvaluationDetails`
38+
- Added model `Pool`
39+
- Added model `SshSettings`
40+
- Added enum `VmPriority`
41+
- Added model `Workbench`
42+
- Added model `WorkbenchProperties`
43+
- Operation group `AccountsOperations` added method `evaluate_deployment_policies`
44+
- Added operation group `ComputesOperations`
45+
- Added operation group `ManagedComputeCapacitiesOperations`
46+
- Added operation group `ManagedComputeDeploymentsOperations`
47+
- Added operation group `ManagedComputeUsagesOperationGroupOperations`
48+
- Added operation group `WorkbenchesOperations`
49+
50+
### Breaking Changes
51+
52+
- Model `RaiPolicyProperties` deleted or renamed its instance variable `custom_topics`
53+
- Deleted or renamed enum value `RoutingMode.ACCURACY`
54+
- Deleted or renamed model `CustomTopicConfig`
55+
- Deleted or renamed model `RaiExternalSafetyProvider`
56+
- Deleted or renamed model `RaiExternalSafetyProviderProperties`
57+
- Deleted or renamed model `RaiTopicConfig`
58+
- Method `OutboundRulesOperations.begin_post` changed return type from `LROPoller[OutboundRuleListResult]` to `LROPoller[ItemPaged[_models.OutboundRuleBasicResource]]`
59+
- Method `RaiExternalSafetyProviderOperations.create_or_update` changed return type from `Union[RaiExternalSafetyProviderSchema, RaiExternalSafetyProvider]` to `RaiExternalSafetyProviderSchema`
60+
361
## 15.0.0b1 (2026-03-26)
462

563
### Features Added

sdk/cognitiveservices/azure-mgmt-cognitiveservices/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Microsoft Azure SDK for Python
22

33
This is the Microsoft Azure Cognitive Services Management Client Library.
4-
This package has been tested with Python 3.9+.
4+
This package has been tested with Python 3.10+.
55
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
66

77
## _Disclaimer_
@@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For
1212

1313
### Prerequisites
1414

15-
- Python 3.9+ is required to use this package.
15+
- Python 3.10+ is required to use this package.
1616
- [Azure subscription](https://azure.microsoft.com/free/)
1717

1818
### Install the package
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"apiVersion": "2026-01-15-preview",
2+
"apiVersion": "2026-03-15-preview",
33
"apiVersions": {
4-
"Microsoft.CognitiveServices": "2026-01-15-preview"
4+
"Microsoft.CognitiveServices": "2026-03-15-preview"
55
},
6-
"commit": "2f2a6cd8118938c1ba3f65d4e09a550d4504620f",
6+
"commit": "182eacfaa4691f06fb161722f13f4d99e9b26a0a",
77
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
88
"typespec_src": "specification/cognitiveservices/CognitiveServices.Management",
9-
"emitterVersion": "0.61.1"
9+
"emitterVersion": "0.62.1"
1010
}

sdk/cognitiveservices/azure-mgmt-cognitiveservices/apiview-properties.json

Lines changed: 83 additions & 9 deletions
Large diffs are not rendered by default.

sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_client.py

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
# --------------------------------------------------------------------------
88

99
from copy import deepcopy
10+
import sys
1011
from typing import Any, Optional, TYPE_CHECKING, cast
11-
from typing_extensions import Self
1212

1313
from azure.core.pipeline import policies
1414
from azure.core.rest import HttpRequest, HttpResponse
@@ -28,11 +28,15 @@
2828
CommitmentPlansOperations,
2929
CommitmentTiersOperations,
3030
ComputeOperationsOperations,
31+
ComputesOperations,
3132
DefenderForAISettingsOperations,
3233
DeletedAccountsOperations,
3334
DeploymentsOperations,
3435
EncryptionScopesOperations,
3536
LocationBasedModelCapacitiesOperations,
37+
ManagedComputeCapacitiesOperations,
38+
ManagedComputeDeploymentsOperations,
39+
ManagedComputeUsagesOperationGroupOperations,
3640
ManagedNetworkProvisionsOperations,
3741
ManagedNetworkSettingsOperations,
3842
ModelCapacitiesOperations,
@@ -59,9 +63,15 @@
5963
SubscriptionRaiPolicyOperations,
6064
TestRaiExternalSafetyProviderOperations,
6165
UsagesOperations,
66+
WorkbenchesOperations,
6267
_CognitiveServicesManagementClientOperationsMixin,
6368
)
6469

70+
if sys.version_info >= (3, 11):
71+
from typing import Self
72+
else:
73+
from typing_extensions import Self # type: ignore
74+
6575
if TYPE_CHECKING:
6676
from azure.core import AzureClouds
6777
from azure.core.credentials import TokenCredential
@@ -124,9 +134,23 @@ class CognitiveServicesManagementClient(
124134
:ivar agent_applications: AgentApplicationsOperations operations
125135
:vartype agent_applications:
126136
azure.mgmt.cognitiveservices.operations.AgentApplicationsOperations
137+
:ivar managed_compute_deployments: ManagedComputeDeploymentsOperations operations
138+
:vartype managed_compute_deployments:
139+
azure.mgmt.cognitiveservices.operations.ManagedComputeDeploymentsOperations
127140
:ivar compute_operations: ComputeOperationsOperations operations
128141
:vartype compute_operations:
129142
azure.mgmt.cognitiveservices.operations.ComputeOperationsOperations
143+
:ivar managed_compute_usages_operation_group: ManagedComputeUsagesOperationGroupOperations
144+
operations
145+
:vartype managed_compute_usages_operation_group:
146+
azure.mgmt.cognitiveservices.operations.ManagedComputeUsagesOperationGroupOperations
147+
:ivar computes: ComputesOperations operations
148+
:vartype computes: azure.mgmt.cognitiveservices.operations.ComputesOperations
149+
:ivar workbenches: WorkbenchesOperations operations
150+
:vartype workbenches: azure.mgmt.cognitiveservices.operations.WorkbenchesOperations
151+
:ivar managed_compute_capacities: ManagedComputeCapacitiesOperations operations
152+
:vartype managed_compute_capacities:
153+
azure.mgmt.cognitiveservices.operations.ManagedComputeCapacitiesOperations
130154
:ivar private_link_resources: PrivateLinkResourcesOperations operations
131155
:vartype private_link_resources:
132156
azure.mgmt.cognitiveservices.operations.PrivateLinkResourcesOperations
@@ -180,8 +204,9 @@ class CognitiveServicesManagementClient(
180204
None.
181205
:paramtype cloud_setting: ~azure.core.AzureClouds
182206
:keyword api_version: The API version to use for this operation. Known values are
183-
"2026-01-15-preview". Default value is "2026-01-15-preview". Note that overriding this default
184-
value may result in unsupported behavior.
207+
"2026-03-15-preview" and None. Default value is None. If not set, the operation's default API
208+
version will be used. Note that overriding this default value may result in unsupported
209+
behavior.
185210
:paramtype api_version: str
186211
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
187212
Retry-After header is present.
@@ -279,9 +304,20 @@ def __init__(
279304
self.agent_applications = AgentApplicationsOperations(
280305
self._client, self._config, self._serialize, self._deserialize
281306
)
307+
self.managed_compute_deployments = ManagedComputeDeploymentsOperations(
308+
self._client, self._config, self._serialize, self._deserialize
309+
)
282310
self.compute_operations = ComputeOperationsOperations(
283311
self._client, self._config, self._serialize, self._deserialize
284312
)
313+
self.managed_compute_usages_operation_group = ManagedComputeUsagesOperationGroupOperations(
314+
self._client, self._config, self._serialize, self._deserialize
315+
)
316+
self.computes = ComputesOperations(self._client, self._config, self._serialize, self._deserialize)
317+
self.workbenches = WorkbenchesOperations(self._client, self._config, self._serialize, self._deserialize)
318+
self.managed_compute_capacities = ManagedComputeCapacitiesOperations(
319+
self._client, self._config, self._serialize, self._deserialize
320+
)
285321
self.private_link_resources = PrivateLinkResourcesOperations(
286322
self._client, self._config, self._serialize, self._deserialize
287323
)

sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_configuration.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ class CognitiveServicesManagementClientConfiguration: # pylint: disable=too-man
3434
None.
3535
:type cloud_setting: ~azure.core.AzureClouds
3636
:keyword api_version: The API version to use for this operation. Known values are
37-
"2026-01-15-preview". Default value is "2026-01-15-preview". Note that overriding this default
38-
value may result in unsupported behavior.
37+
"2026-03-15-preview" and None. Default value is None. If not set, the operation's default API
38+
version will be used. Note that overriding this default value may result in unsupported
39+
behavior.
3940
:paramtype api_version: str
4041
"""
4142

@@ -47,7 +48,7 @@ def __init__(
4748
cloud_setting: Optional["AzureClouds"] = None,
4849
**kwargs: Any
4950
) -> None:
50-
api_version: str = kwargs.pop("api_version", "2026-01-15-preview")
51+
api_version: str = kwargs.pop("api_version", "2026-03-15-preview")
5152

5253
if credential is None:
5354
raise ValueError("Parameter 'credential' must not be None.")

sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_patch.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
99
"""
1010

11-
1211
__all__: list[str] = [] # Add all objects you want publicly available to users at this package level
1312

1413

0 commit comments

Comments
 (0)