|
19 | 19 | from ._configuration import CognitiveServicesManagementClientConfiguration |
20 | 20 | from ._serialization import Deserializer, Serializer |
21 | 21 | from .operations import ( |
| 22 | + AccountCapabilityHostsOperations, |
| 23 | + AccountConnectionOperations, |
22 | 24 | AccountsOperations, |
23 | 25 | CognitiveServicesManagementClientOperationsMixin, |
24 | 26 | CommitmentPlansOperations, |
|
34 | 36 | Operations, |
35 | 37 | PrivateEndpointConnectionsOperations, |
36 | 38 | PrivateLinkResourcesOperations, |
| 39 | + ProjectCapabilityHostsOperations, |
| 40 | + ProjectConnectionOperations, |
| 41 | + ProjectsOperations, |
37 | 42 | RaiBlocklistItemsOperations, |
38 | 43 | RaiBlocklistsOperations, |
39 | 44 | RaiContentFiltersOperations, |
|
43 | 48 | ) |
44 | 49 |
|
45 | 50 | if TYPE_CHECKING: |
46 | | - # pylint: disable=unused-import,ungrouped-imports |
47 | 51 | from azure.core.credentials import TokenCredential |
48 | 52 |
|
49 | 53 |
|
50 | 54 | class CognitiveServicesManagementClient( |
51 | 55 | CognitiveServicesManagementClientOperationsMixin |
52 | | -): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes |
| 56 | +): # pylint: disable=too-many-instance-attributes |
53 | 57 | """Cognitive Services Management Client. |
54 | 58 |
|
55 | 59 | :ivar accounts: AccountsOperations operations |
@@ -100,14 +104,28 @@ class CognitiveServicesManagementClient( |
100 | 104 | :ivar defender_for_ai_settings: DefenderForAISettingsOperations operations |
101 | 105 | :vartype defender_for_ai_settings: |
102 | 106 | 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 |
103 | 121 | :param credential: Credential needed for the client to connect to Azure. Required. |
104 | 122 | :type credential: ~azure.core.credentials.TokenCredential |
105 | 123 | :param subscription_id: The ID of the target subscription. Required. |
106 | 124 | :type subscription_id: str |
107 | 125 | :param base_url: Service URL. Default value is "https://management.azure.com". |
108 | 126 | :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. |
111 | 129 | :paramtype api_version: str |
112 | 130 | :keyword int polling_interval: Default waiting time between two polls for LRO operations if no |
113 | 131 | Retry-After header is present. |
@@ -191,6 +209,19 @@ def __init__( |
191 | 209 | self.defender_for_ai_settings = DefenderForAISettingsOperations( |
192 | 210 | self._client, self._config, self._serialize, self._deserialize |
193 | 211 | ) |
| 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 | + ) |
194 | 225 |
|
195 | 226 | def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: |
196 | 227 | """Runs the network request through the client's chained policies. |
|
0 commit comments