Skip to content

Commit 6e61d66

Browse files
author
SDKAuto
committed
CodeGen from PR 33108 in Azure/azure-rest-api-specs
Merge 35d3dc84e4984f769652e4089116dcc581a51e1b into 1873aba404990976cddd425ebb54b72b58e56c23
1 parent 566eb9e commit 6e61d66

File tree

216 files changed

+13342
-1230
lines changed

Some content is hidden

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

216 files changed

+13342
-1230
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "0383d4a163beb3e58e7b4cb3c06172d32ddd8c85",
2+
"commit": "ccb04ced573268948bbc2b3b2b272a8968ac0993",
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.27.4",
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.27.4 --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)