Skip to content

Commit 750bd8d

Browse files
author
SDKAuto
committed
CodeGen from PR 33993 in Azure/azure-rest-api-specs
Merge 5a997ffbbce12d07c0a6757520ea7f526be32ee4 into bf9242293568152ec37ef41d5377cd9382862347
1 parent 6d22700 commit 750bd8d

File tree

219 files changed

+14017
-1986
lines changed

Some content is hidden

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

219 files changed

+14017
-1986
lines changed

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

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

3+
## 13.7.0b1 (2025-04-16)
4+
5+
### Features Added
6+
7+
- Client `CognitiveServicesManagementClient` added operation group `projects`
8+
- Client `CognitiveServicesManagementClient` added operation group `account_connection`
9+
- Client `CognitiveServicesManagementClient` added operation group `project_connection`
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+
- Enum `ProvisioningState` added member `CANCELED`
17+
- Added model `AADAuthTypeConnectionProperties`
18+
- Added model `AccessKeyAuthTypeConnectionProperties`
19+
- Added model `AccountKeyAuthTypeConnectionProperties`
20+
- Added model `ApiKeyAuthConnectionProperties`
21+
- Added model `CapabilityHost`
22+
- Added enum `CapabilityHostKind`
23+
- Added model `CapabilityHostProperties`
24+
- Added enum `CapabilityHostProvisioningState`
25+
- Added model `ConnectionAccessKey`
26+
- Added model `ConnectionAccountKey`
27+
- Added model `ConnectionApiKey`
28+
- Added enum `ConnectionAuthType`
29+
- Added enum `ConnectionCategory`
30+
- Added enum `ConnectionGroup`
31+
- Added model `ConnectionManagedIdentity`
32+
- Added model `ConnectionOAuth2`
33+
- Added model `ConnectionPersonalAccessToken`
34+
- Added model `ConnectionPropertiesV2`
35+
- Added model `ConnectionPropertiesV2BasicResource`
36+
- Added model `ConnectionPropertiesV2BasicResourceArmPaginatedResult`
37+
- Added model `ConnectionServicePrincipal`
38+
- Added model `ConnectionSharedAccessSignature`
39+
- Added model `ConnectionUpdateContent`
40+
- Added model `ConnectionUsernamePassword`
41+
- Added model `CustomKeys`
42+
- Added model `CustomKeysConnectionProperties`
43+
- Added model `ManagedIdentityAuthTypeConnectionProperties`
44+
- Added enum `ManagedPERequirement`
45+
- Added enum `ManagedPEStatus`
46+
- Added model `NetworkInjections`
47+
- Added model `NoneAuthTypeConnectionProperties`
48+
- Added model `OAuth2AuthTypeConnectionProperties`
49+
- Added model `PATAuthTypeConnectionProperties`
50+
- Added model `Project`
51+
- Added model `ProjectListResult`
52+
- Added model `ProjectProperties`
53+
- Added model `ResourceBase`
54+
- Added model `SASAuthTypeConnectionProperties`
55+
- Added enum `ScenarioType`
56+
- Added model `ServicePrincipalAuthTypeConnectionProperties`
57+
- Added model `UsernamePasswordAuthTypeConnectionProperties`
58+
- Added model `AccountCapabilityHostsOperations`
59+
- Added model `AccountConnectionOperations`
60+
- Added model `ProjectCapabilityHostsOperations`
61+
- Added model `ProjectConnectionOperations`
62+
- Added model `ProjectsOperations`
63+
- Method `AccountCapabilityHostsOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, account_name: str, capability_host_name: str, body: CapabilityHost, content_type: str)`
64+
- Method `AccountCapabilityHostsOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, account_name: str, capability_host_name: str, body: IO[bytes], content_type: str)`
65+
- Method `AccountConnectionOperations.create` has a new overload `def create(self: None, resource_group_name: str, account_name: str, connection_name: str, body: Optional[ConnectionPropertiesV2BasicResource], content_type: str)`
66+
- Method `AccountConnectionOperations.create` has a new overload `def create(self: None, resource_group_name: str, account_name: str, connection_name: str, body: Optional[IO[bytes]], content_type: str)`
67+
- Method `AccountConnectionOperations.update` has a new overload `def update(self: None, resource_group_name: str, account_name: str, connection_name: str, body: Optional[ConnectionUpdateContent], content_type: str)`
68+
- Method `AccountConnectionOperations.update` has a new overload `def update(self: None, resource_group_name: str, account_name: str, connection_name: str, body: Optional[IO[bytes]], content_type: str)`
69+
- Method `ProjectCapabilityHostsOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, account_name: str, project_name: str, capability_host_name: str, body: CapabilityHost, content_type: str)`
70+
- Method `ProjectCapabilityHostsOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, account_name: str, project_name: str, capability_host_name: str, body: IO[bytes], content_type: str)`
71+
- Method `ProjectConnectionOperations.create` has a new overload `def create(self: None, resource_group_name: str, account_name: str, project_name: str, connection_name: str, body: Optional[ConnectionPropertiesV2BasicResource], content_type: str)`
72+
- Method `ProjectConnectionOperations.create` has a new overload `def create(self: None, resource_group_name: str, account_name: str, project_name: str, connection_name: str, body: Optional[IO[bytes]], content_type: str)`
73+
- Method `ProjectConnectionOperations.update` has a new overload `def update(self: None, resource_group_name: str, account_name: str, project_name: str, connection_name: str, body: Optional[ConnectionUpdateContent], content_type: str)`
74+
- Method `ProjectConnectionOperations.update` has a new overload `def update(self: None, resource_group_name: str, account_name: str, project_name: str, connection_name: str, body: Optional[IO[bytes]], content_type: str)`
75+
- Method `ProjectsOperations.begin_create` has a new overload `def begin_create(self: None, resource_group_name: str, account_name: str, project_name: str, project: Project, content_type: str)`
76+
- Method `ProjectsOperations.begin_create` has a new overload `def begin_create(self: None, resource_group_name: str, account_name: str, project_name: str, project: IO[bytes], content_type: str)`
77+
- Method `ProjectsOperations.begin_update` has a new overload `def begin_update(self: None, resource_group_name: str, account_name: str, project_name: str, project: Project, content_type: str)`
78+
- Method `ProjectsOperations.begin_update` has a new overload `def begin_update(self: None, resource_group_name: str, account_name: str, project_name: str, project: IO[bytes], content_type: str)`
79+
380
## 13.6.0 (2024-12-19)
481

582
### Features Added

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

Lines changed: 3 additions & 3 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.8+.
4+
This package has been tested with Python 3.9+.
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.8+ is required to use this package.
15+
- Python 3.9+ is required to use this package.
1616
- [Azure subscription](https://azure.microsoft.com/free/)
1717

1818
### Install the package
@@ -24,7 +24,7 @@ pip install azure-identity
2424

2525
### Authentication
2626

27-
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables.
27+
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.
2828

2929
- `AZURE_CLIENT_ID` for Azure client ID.
3030
- `AZURE_TENANT_ID` for Azure tenant ID.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "0383d4a163beb3e58e7b4cb3c06172d32ddd8c85",
2+
"commit": "fc33626887f94fd296bf80d4956afcadb4f9c6a1",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.19.0",
6+
"@autorest/python@6.32.3",
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.19.0 --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/s/azure-sdk-for-python/sdk --use=@autorest/python@6.32.3 --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/__init__.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,28 @@
55
# Code generated by Microsoft (R) AutoRest Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
8+
# pylint: disable=wrong-import-position
89

9-
from ._cognitive_services_management_client import CognitiveServicesManagementClient
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._cognitive_services_management_client import CognitiveServicesManagementClient # type: ignore
1016
from ._version import VERSION
1117

1218
__version__ = VERSION
1319

1420
try:
1521
from ._patch import __all__ as _patch_all
16-
from ._patch import * # pylint: disable=unused-wildcard-import
22+
from ._patch import *
1723
except ImportError:
1824
_patch_all = []
1925
from ._patch import patch_sdk as _patch_sdk
2026

2127
__all__ = [
2228
"CognitiveServicesManagementClient",
2329
]
24-
__all__.extend([p for p in _patch_all if p not in __all__])
30+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
2531

2632
_patch_sdk()

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

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
from ._configuration import CognitiveServicesManagementClientConfiguration
2020
from ._serialization import Deserializer, Serializer
2121
from .operations import (
22+
AccountCapabilityHostsOperations,
23+
AccountConnectionOperations,
2224
AccountsOperations,
2325
CognitiveServicesManagementClientOperationsMixin,
2426
CommitmentPlansOperations,
@@ -34,6 +36,9 @@
3436
Operations,
3537
PrivateEndpointConnectionsOperations,
3638
PrivateLinkResourcesOperations,
39+
ProjectCapabilityHostsOperations,
40+
ProjectConnectionOperations,
41+
ProjectsOperations,
3742
RaiBlocklistItemsOperations,
3843
RaiBlocklistsOperations,
3944
RaiContentFiltersOperations,
@@ -43,13 +48,12 @@
4348
)
4449

4550
if TYPE_CHECKING:
46-
# pylint: disable=unused-import,ungrouped-imports
4751
from azure.core.credentials import TokenCredential
4852

4953

5054
class CognitiveServicesManagementClient(
5155
CognitiveServicesManagementClientOperationsMixin
52-
): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
56+
): # pylint: disable=too-many-instance-attributes
5357
"""Cognitive Services Management Client.
5458
5559
:ivar accounts: AccountsOperations operations
@@ -100,14 +104,28 @@ class CognitiveServicesManagementClient(
100104
:ivar defender_for_ai_settings: DefenderForAISettingsOperations operations
101105
:vartype defender_for_ai_settings:
102106
azure.mgmt.cognitiveservices.operations.DefenderForAISettingsOperations
107+
:ivar projects: ProjectsOperations operations
108+
:vartype projects: azure.mgmt.cognitiveservices.operations.ProjectsOperations
109+
:ivar account_connection: AccountConnectionOperations operations
110+
:vartype account_connection:
111+
azure.mgmt.cognitiveservices.operations.AccountConnectionOperations
112+
:ivar project_connection: ProjectConnectionOperations operations
113+
:vartype project_connection:
114+
azure.mgmt.cognitiveservices.operations.ProjectConnectionOperations
115+
:ivar account_capability_hosts: AccountCapabilityHostsOperations operations
116+
:vartype account_capability_hosts:
117+
azure.mgmt.cognitiveservices.operations.AccountCapabilityHostsOperations
118+
:ivar project_capability_hosts: ProjectCapabilityHostsOperations operations
119+
:vartype project_capability_hosts:
120+
azure.mgmt.cognitiveservices.operations.ProjectCapabilityHostsOperations
103121
:param credential: Credential needed for the client to connect to Azure. Required.
104122
:type credential: ~azure.core.credentials.TokenCredential
105123
:param subscription_id: The ID of the target subscription. Required.
106124
:type subscription_id: str
107125
:param base_url: Service URL. Default value is "https://management.azure.com".
108126
:type base_url: str
109-
:keyword api_version: Api Version. Default value is "2024-10-01". Note that overriding this
110-
default value may result in unsupported behavior.
127+
:keyword api_version: Api Version. Default value is "2025-04-01-preview". Note that overriding
128+
this default value may result in unsupported behavior.
111129
:paramtype api_version: str
112130
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
113131
Retry-After header is present.
@@ -191,6 +209,19 @@ def __init__(
191209
self.defender_for_ai_settings = DefenderForAISettingsOperations(
192210
self._client, self._config, self._serialize, self._deserialize
193211
)
212+
self.projects = ProjectsOperations(self._client, self._config, self._serialize, self._deserialize)
213+
self.account_connection = AccountConnectionOperations(
214+
self._client, self._config, self._serialize, self._deserialize
215+
)
216+
self.project_connection = ProjectConnectionOperations(
217+
self._client, self._config, self._serialize, self._deserialize
218+
)
219+
self.account_capability_hosts = AccountCapabilityHostsOperations(
220+
self._client, self._config, self._serialize, self._deserialize
221+
)
222+
self.project_capability_hosts = ProjectCapabilityHostsOperations(
223+
self._client, self._config, self._serialize, self._deserialize
224+
)
194225

195226
def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
196227
"""Runs the network request through the client's chained policies.

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from ._version import VERSION
1515

1616
if TYPE_CHECKING:
17-
# pylint: disable=unused-import,ungrouped-imports
1817
from azure.core.credentials import TokenCredential
1918

2019

@@ -28,13 +27,13 @@ class CognitiveServicesManagementClientConfiguration: # pylint: disable=too-man
2827
:type credential: ~azure.core.credentials.TokenCredential
2928
:param subscription_id: The ID of the target subscription. Required.
3029
:type subscription_id: str
31-
:keyword api_version: Api Version. Default value is "2024-10-01". Note that overriding this
32-
default value may result in unsupported behavior.
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.
3332
:paramtype api_version: str
3433
"""
3534

3635
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
37-
api_version: str = kwargs.pop("api_version", "2024-10-01")
36+
api_version: str = kwargs.pop("api_version", "2025-04-01-preview")
3837

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

0 commit comments

Comments
 (0)