Skip to content

Commit 6eb2462

Browse files
[AutoRelease] t2-cognitiveservices-2025-06-14-25395(can only be merged by SDK owner) (#41585)
* code and test * update changelog --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent 85d4fa1 commit 6eb2462

File tree

211 files changed

+1354
-859
lines changed

Some content is hidden

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

211 files changed

+1354
-859
lines changed

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

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

3+
## 13.7.0 (2025-07-21)
4+
5+
### Features Added
6+
7+
- Client `CognitiveServicesManagementClient` added operation group `projects`
8+
- Client `CognitiveServicesManagementClient` added operation group `account_connections`
9+
- Client `CognitiveServicesManagementClient` added operation group `project_connections`
10+
- Client `CognitiveServicesManagementClient` added operation group `account_capability_hosts`
11+
- Client `CognitiveServicesManagementClient` added operation group `project_capability_hosts`
12+
- Model `AccountProperties` added property `network_injections`
13+
- Model `AccountProperties` added property `allow_project_management`
14+
- Model `AccountProperties` added property `default_project`
15+
- Model `AccountProperties` added property `associated_projects`
16+
- Model `DeploymentProperties` added property `spillover_deployment_name`
17+
- Enum `ProvisioningState` added member `CANCELED`
18+
- Added model `AADAuthTypeConnectionProperties`
19+
- Added model `AccessKeyAuthTypeConnectionProperties`
20+
- Added model `AccountKeyAuthTypeConnectionProperties`
21+
- Added model `ApiKeyAuthConnectionProperties`
22+
- Added model `CapabilityHost`
23+
- Added enum `CapabilityHostKind`
24+
- Added model `CapabilityHostProperties`
25+
- Added enum `CapabilityHostProvisioningState`
26+
- Added model `ConnectionAccessKey`
27+
- Added model `ConnectionAccountKey`
28+
- Added model `ConnectionApiKey`
29+
- Added enum `ConnectionAuthType`
30+
- Added enum `ConnectionCategory`
31+
- Added enum `ConnectionGroup`
32+
- Added model `ConnectionManagedIdentity`
33+
- Added model `ConnectionOAuth2`
34+
- Added model `ConnectionPersonalAccessToken`
35+
- Added model `ConnectionPropertiesV2`
36+
- Added model `ConnectionPropertiesV2BasicResource`
37+
- Added model `ConnectionPropertiesV2BasicResourceArmPaginatedResult`
38+
- Added model `ConnectionServicePrincipal`
39+
- Added model `ConnectionSharedAccessSignature`
40+
- Added model `ConnectionUpdateContent`
41+
- Added model `ConnectionUsernamePassword`
42+
- Added model `CustomKeys`
43+
- Added model `CustomKeysConnectionProperties`
44+
- Added model `ManagedIdentityAuthTypeConnectionProperties`
45+
- Added enum `ManagedPERequirement`
46+
- Added enum `ManagedPEStatus`
47+
- Added model `NetworkInjections`
48+
- Added model `NoneAuthTypeConnectionProperties`
49+
- Added model `OAuth2AuthTypeConnectionProperties`
50+
- Added model `PATAuthTypeConnectionProperties`
51+
- Added model `Project`
52+
- Added model `ProjectListResult`
53+
- Added model `ProjectProperties`
54+
- Added model `ResourceBase`
55+
- Added model `SASAuthTypeConnectionProperties`
56+
- Added enum `ScenarioType`
57+
- Added model `ServicePrincipalAuthTypeConnectionProperties`
58+
- Added model `UsernamePasswordAuthTypeConnectionProperties`
59+
- Added operation group `AccountCapabilityHostsOperations`
60+
- Added operation group `AccountConnectionsOperations`
61+
- Added operation group `ProjectCapabilityHostsOperations`
62+
- Added operation group `ProjectConnectionsOperations`
63+
- Added operation group `ProjectsOperations`
64+
365
## 13.7.0b1 (2025-05-15)
466

567
### Features Added

sdk/cognitiveservices/azure-mgmt-cognitiveservices/MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
include _meta.json
21
recursive-include tests *.py *.json
32
recursive-include samples *.py *.md
43
include *.md

sdk/cognitiveservices/azure-mgmt-cognitiveservices/_meta.json renamed to sdk/cognitiveservices/azure-mgmt-cognitiveservices/_metadata.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "4e8d16d3793228046ac6171eadda4b8d26ad2b4f",
2+
"commit": "8ae0d9c888888dd1d8776aad67e156f403d4d840",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.34.1",
6+
"@autorest/python@6.35.0",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/cognitiveservices/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.34.1 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/cognitiveservices/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.35.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/cognitiveservices/resource-manager/readme.md"
1111
}

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from ._utils.serialization import Deserializer, Serializer
2323
from .operations import (
2424
AccountCapabilityHostsOperations,
25-
AccountConnectionOperations,
25+
AccountConnectionsOperations,
2626
AccountsOperations,
2727
CognitiveServicesManagementClientOperationsMixin,
2828
CommitmentPlansOperations,
@@ -39,7 +39,7 @@
3939
PrivateEndpointConnectionsOperations,
4040
PrivateLinkResourcesOperations,
4141
ProjectCapabilityHostsOperations,
42-
ProjectConnectionOperations,
42+
ProjectConnectionsOperations,
4343
ProjectsOperations,
4444
RaiBlocklistItemsOperations,
4545
RaiBlocklistsOperations,
@@ -108,12 +108,12 @@ class CognitiveServicesManagementClient(
108108
azure.mgmt.cognitiveservices.operations.DefenderForAISettingsOperations
109109
:ivar projects: ProjectsOperations operations
110110
:vartype projects: azure.mgmt.cognitiveservices.operations.ProjectsOperations
111-
:ivar account_connection: AccountConnectionOperations operations
112-
:vartype account_connection:
113-
azure.mgmt.cognitiveservices.operations.AccountConnectionOperations
114-
:ivar project_connection: ProjectConnectionOperations operations
115-
:vartype project_connection:
116-
azure.mgmt.cognitiveservices.operations.ProjectConnectionOperations
111+
:ivar account_connections: AccountConnectionsOperations operations
112+
:vartype account_connections:
113+
azure.mgmt.cognitiveservices.operations.AccountConnectionsOperations
114+
:ivar project_connections: ProjectConnectionsOperations operations
115+
:vartype project_connections:
116+
azure.mgmt.cognitiveservices.operations.ProjectConnectionsOperations
117117
:ivar account_capability_hosts: AccountCapabilityHostsOperations operations
118118
:vartype account_capability_hosts:
119119
azure.mgmt.cognitiveservices.operations.AccountCapabilityHostsOperations
@@ -126,8 +126,8 @@ class CognitiveServicesManagementClient(
126126
:type subscription_id: str
127127
:param base_url: Service URL. Default value is None.
128128
:type base_url: str
129-
:keyword api_version: Api Version. Default value is "2025-04-01-preview". Note that overriding
130-
this default value may result in unsupported behavior.
129+
:keyword api_version: Api Version. Default value is "2025-06-01". Note that overriding this
130+
default value may result in unsupported behavior.
131131
:paramtype api_version: str
132132
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
133133
Retry-After header is present.
@@ -214,10 +214,10 @@ def __init__(
214214
self._client, self._config, self._serialize, self._deserialize
215215
)
216216
self.projects = ProjectsOperations(self._client, self._config, self._serialize, self._deserialize)
217-
self.account_connection = AccountConnectionOperations(
217+
self.account_connections = AccountConnectionsOperations(
218218
self._client, self._config, self._serialize, self._deserialize
219219
)
220-
self.project_connection = ProjectConnectionOperations(
220+
self.project_connections = ProjectConnectionsOperations(
221221
self._client, self._config, self._serialize, self._deserialize
222222
)
223223
self.account_capability_hosts = AccountCapabilityHostsOperations(

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ class CognitiveServicesManagementClientConfiguration: # pylint: disable=too-man
2727
:type credential: ~azure.core.credentials.TokenCredential
2828
:param subscription_id: The ID of the target subscription. Required.
2929
:type subscription_id: str
30-
:keyword api_version: Api Version. Default value is "2025-04-01-preview". Note that overriding
31-
this default value may result in unsupported behavior.
30+
:keyword api_version: Api Version. Default value is "2025-06-01". Note that overriding this
31+
default value may result in unsupported behavior.
3232
:paramtype api_version: str
3333
"""
3434

3535
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
36-
api_version: str = kwargs.pop("api_version", "2025-04-01-preview")
36+
api_version: str = kwargs.pop("api_version", "2025-06-01")
3737

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "13.7.0b1"
9+
VERSION = "13.7.0"

sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/_cognitive_services_management_client.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from ._configuration import CognitiveServicesManagementClientConfiguration
2323
from .operations import (
2424
AccountCapabilityHostsOperations,
25-
AccountConnectionOperations,
25+
AccountConnectionsOperations,
2626
AccountsOperations,
2727
CognitiveServicesManagementClientOperationsMixin,
2828
CommitmentPlansOperations,
@@ -39,7 +39,7 @@
3939
PrivateEndpointConnectionsOperations,
4040
PrivateLinkResourcesOperations,
4141
ProjectCapabilityHostsOperations,
42-
ProjectConnectionOperations,
42+
ProjectConnectionsOperations,
4343
ProjectsOperations,
4444
RaiBlocklistItemsOperations,
4545
RaiBlocklistsOperations,
@@ -113,12 +113,12 @@ class CognitiveServicesManagementClient(
113113
azure.mgmt.cognitiveservices.aio.operations.DefenderForAISettingsOperations
114114
:ivar projects: ProjectsOperations operations
115115
:vartype projects: azure.mgmt.cognitiveservices.aio.operations.ProjectsOperations
116-
:ivar account_connection: AccountConnectionOperations operations
117-
:vartype account_connection:
118-
azure.mgmt.cognitiveservices.aio.operations.AccountConnectionOperations
119-
:ivar project_connection: ProjectConnectionOperations operations
120-
:vartype project_connection:
121-
azure.mgmt.cognitiveservices.aio.operations.ProjectConnectionOperations
116+
:ivar account_connections: AccountConnectionsOperations operations
117+
:vartype account_connections:
118+
azure.mgmt.cognitiveservices.aio.operations.AccountConnectionsOperations
119+
:ivar project_connections: ProjectConnectionsOperations operations
120+
:vartype project_connections:
121+
azure.mgmt.cognitiveservices.aio.operations.ProjectConnectionsOperations
122122
:ivar account_capability_hosts: AccountCapabilityHostsOperations operations
123123
:vartype account_capability_hosts:
124124
azure.mgmt.cognitiveservices.aio.operations.AccountCapabilityHostsOperations
@@ -131,8 +131,8 @@ class CognitiveServicesManagementClient(
131131
:type subscription_id: str
132132
:param base_url: Service URL. Default value is None.
133133
:type base_url: str
134-
:keyword api_version: Api Version. Default value is "2025-04-01-preview". Note that overriding
135-
this default value may result in unsupported behavior.
134+
:keyword api_version: Api Version. Default value is "2025-06-01". Note that overriding this
135+
default value may result in unsupported behavior.
136136
:paramtype api_version: str
137137
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
138138
Retry-After header is present.
@@ -221,10 +221,10 @@ def __init__(
221221
self._client, self._config, self._serialize, self._deserialize
222222
)
223223
self.projects = ProjectsOperations(self._client, self._config, self._serialize, self._deserialize)
224-
self.account_connection = AccountConnectionOperations(
224+
self.account_connections = AccountConnectionsOperations(
225225
self._client, self._config, self._serialize, self._deserialize
226226
)
227-
self.project_connection = ProjectConnectionOperations(
227+
self.project_connections = ProjectConnectionsOperations(
228228
self._client, self._config, self._serialize, self._deserialize
229229
)
230230
self.account_capability_hosts = AccountCapabilityHostsOperations(

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ class CognitiveServicesManagementClientConfiguration: # pylint: disable=too-man
2727
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
2828
:param subscription_id: The ID of the target subscription. Required.
2929
:type subscription_id: str
30-
:keyword api_version: Api Version. Default value is "2025-04-01-preview". Note that overriding
31-
this default value may result in unsupported behavior.
30+
:keyword api_version: Api Version. Default value is "2025-06-01". Note that overriding this
31+
default value may result in unsupported behavior.
3232
:paramtype api_version: str
3333
"""
3434

3535
def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
36-
api_version: str = kwargs.pop("api_version", "2025-04-01-preview")
36+
api_version: str = kwargs.pop("api_version", "2025-06-01")
3737

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

sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
from ._network_security_perimeter_configurations_operations import NetworkSecurityPerimeterConfigurationsOperations # type: ignore
3636
from ._defender_for_ai_settings_operations import DefenderForAISettingsOperations # type: ignore
3737
from ._projects_operations import ProjectsOperations # type: ignore
38-
from ._account_connection_operations import AccountConnectionOperations # type: ignore
39-
from ._project_connection_operations import ProjectConnectionOperations # type: ignore
38+
from ._account_connections_operations import AccountConnectionsOperations # type: ignore
39+
from ._project_connections_operations import ProjectConnectionsOperations # type: ignore
4040
from ._account_capability_hosts_operations import AccountCapabilityHostsOperations # type: ignore
4141
from ._project_capability_hosts_operations import ProjectCapabilityHostsOperations # type: ignore
4242

@@ -67,8 +67,8 @@
6767
"NetworkSecurityPerimeterConfigurationsOperations",
6868
"DefenderForAISettingsOperations",
6969
"ProjectsOperations",
70-
"AccountConnectionOperations",
71-
"ProjectConnectionOperations",
70+
"AccountConnectionsOperations",
71+
"ProjectConnectionsOperations",
7272
"AccountCapabilityHostsOperations",
7373
"ProjectCapabilityHostsOperations",
7474
]

sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_account_capability_hosts_operations.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ async def _create_or_update_initial(
254254
resource_group_name: str,
255255
account_name: str,
256256
capability_host_name: str,
257-
body: Union[_models.CapabilityHost, IO[bytes]],
257+
capability_host: Union[_models.CapabilityHost, IO[bytes]],
258258
**kwargs: Any
259259
) -> AsyncIterator[bytes]:
260260
error_map: MutableMapping = {
@@ -275,10 +275,10 @@ async def _create_or_update_initial(
275275
content_type = content_type or "application/json"
276276
_json = None
277277
_content = None
278-
if isinstance(body, (IOBase, bytes)):
279-
_content = body
278+
if isinstance(capability_host, (IOBase, bytes)):
279+
_content = capability_host
280280
else:
281-
_json = self._serialize.body(body, "CapabilityHost")
281+
_json = self._serialize.body(capability_host, "CapabilityHost")
282282

283283
_request = build_create_or_update_request(
284284
resource_group_name=resource_group_name,
@@ -333,7 +333,7 @@ async def begin_create_or_update(
333333
resource_group_name: str,
334334
account_name: str,
335335
capability_host_name: str,
336-
body: _models.CapabilityHost,
336+
capability_host: _models.CapabilityHost,
337337
*,
338338
content_type: str = "application/json",
339339
**kwargs: Any
@@ -350,8 +350,8 @@ async def begin_create_or_update(
350350
:param capability_host_name: The name of the capability host associated with the Cognitive
351351
Services Resource. Required.
352352
:type capability_host_name: str
353-
:param body: CapabilityHost definition. Required.
354-
:type body: ~azure.mgmt.cognitiveservices.models.CapabilityHost
353+
:param capability_host: CapabilityHost definition. Required.
354+
:type capability_host: ~azure.mgmt.cognitiveservices.models.CapabilityHost
355355
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
356356
Default value is "application/json".
357357
:paramtype content_type: str
@@ -367,7 +367,7 @@ async def begin_create_or_update(
367367
resource_group_name: str,
368368
account_name: str,
369369
capability_host_name: str,
370-
body: IO[bytes],
370+
capability_host: IO[bytes],
371371
*,
372372
content_type: str = "application/json",
373373
**kwargs: Any
@@ -384,8 +384,8 @@ async def begin_create_or_update(
384384
:param capability_host_name: The name of the capability host associated with the Cognitive
385385
Services Resource. Required.
386386
:type capability_host_name: str
387-
:param body: CapabilityHost definition. Required.
388-
:type body: IO[bytes]
387+
:param capability_host: CapabilityHost definition. Required.
388+
:type capability_host: IO[bytes]
389389
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
390390
Default value is "application/json".
391391
:paramtype content_type: str
@@ -401,7 +401,7 @@ async def begin_create_or_update(
401401
resource_group_name: str,
402402
account_name: str,
403403
capability_host_name: str,
404-
body: Union[_models.CapabilityHost, IO[bytes]],
404+
capability_host: Union[_models.CapabilityHost, IO[bytes]],
405405
**kwargs: Any
406406
) -> AsyncLROPoller[_models.CapabilityHost]:
407407
"""Create or update account capabilityHost.
@@ -416,9 +416,9 @@ async def begin_create_or_update(
416416
:param capability_host_name: The name of the capability host associated with the Cognitive
417417
Services Resource. Required.
418418
:type capability_host_name: str
419-
:param body: CapabilityHost definition. Is either a CapabilityHost type or a IO[bytes] type.
420-
Required.
421-
:type body: ~azure.mgmt.cognitiveservices.models.CapabilityHost or IO[bytes]
419+
:param capability_host: CapabilityHost definition. Is either a CapabilityHost type or a
420+
IO[bytes] type. Required.
421+
:type capability_host: ~azure.mgmt.cognitiveservices.models.CapabilityHost or IO[bytes]
422422
:return: An instance of AsyncLROPoller that returns either CapabilityHost or the result of
423423
cls(response)
424424
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cognitiveservices.models.CapabilityHost]
@@ -438,7 +438,7 @@ async def begin_create_or_update(
438438
resource_group_name=resource_group_name,
439439
account_name=account_name,
440440
capability_host_name=capability_host_name,
441-
body=body,
441+
capability_host=capability_host,
442442
api_version=api_version,
443443
content_type=content_type,
444444
cls=lambda x, y, z: x,

0 commit comments

Comments
 (0)