|
67 | 67 | ) |
68 | 68 |
|
69 | 69 | if TYPE_CHECKING: |
70 | | - # pylint: disable=unused-import,ungrouped-imports |
71 | 70 | from azure.core.credentials import TokenCredential |
72 | 71 |
|
73 | 72 |
|
74 | | -class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes |
75 | | - """Azure Cosmos DB Database Service Resource Provider REST API. |
| 73 | +class CosmosDBManagementClient: # pylint: disable=too-many-instance-attributes |
| 74 | + """Azure Cosmos DB Chaos Fault REST API. |
76 | 75 |
|
| 76 | + :ivar chaos_fault: ChaosFaultOperations operations |
| 77 | + :vartype chaos_fault: azure.mgmt.cosmosdb.operations.ChaosFaultOperations |
77 | 78 | :ivar database_accounts: DatabaseAccountsOperations operations |
78 | 79 | :vartype database_accounts: azure.mgmt.cosmosdb.operations.DatabaseAccountsOperations |
79 | 80 | :ivar operations: Operations operations |
@@ -182,15 +183,13 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke |
182 | 183 | :ivar throughput_pool_account: ThroughputPoolAccountOperations operations |
183 | 184 | :vartype throughput_pool_account: |
184 | 185 | azure.mgmt.cosmosdb.operations.ThroughputPoolAccountOperations |
185 | | - :ivar chaos_fault: ChaosFaultOperations operations |
186 | | - :vartype chaos_fault: azure.mgmt.cosmosdb.operations.ChaosFaultOperations |
187 | 186 | :param credential: Credential needed for the client to connect to Azure. Required. |
188 | 187 | :type credential: ~azure.core.credentials.TokenCredential |
189 | | - :param subscription_id: The ID of the target subscription. Required. |
| 188 | + :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. |
190 | 189 | :type subscription_id: str |
191 | 190 | :param base_url: Service URL. Default value is "https://management.azure.com". |
192 | 191 | :type base_url: str |
193 | | - :keyword api_version: Api Version. Default value is "2024-09-01-preview". Note that overriding |
| 192 | + :keyword api_version: Api Version. Default value is "2024-12-01-preview". Note that overriding |
194 | 193 | this default value may result in unsupported behavior. |
195 | 194 | :paramtype api_version: str |
196 | 195 | :keyword int polling_interval: Default waiting time between two polls for LRO operations if no |
@@ -231,6 +230,7 @@ def __init__( |
231 | 230 | self._serialize = Serializer(client_models) |
232 | 231 | self._deserialize = Deserializer(client_models) |
233 | 232 | self._serialize.client_side_validation = False |
| 233 | + self.chaos_fault = ChaosFaultOperations(self._client, self._config, self._serialize, self._deserialize) |
234 | 234 | self.database_accounts = DatabaseAccountsOperations( |
235 | 235 | self._client, self._config, self._serialize, self._deserialize |
236 | 236 | ) |
@@ -343,7 +343,6 @@ def __init__( |
343 | 343 | self.throughput_pool_account = ThroughputPoolAccountOperations( |
344 | 344 | self._client, self._config, self._serialize, self._deserialize |
345 | 345 | ) |
346 | | - self.chaos_fault = ChaosFaultOperations(self._client, self._config, self._serialize, self._deserialize) |
347 | 346 |
|
348 | 347 | def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: |
349 | 348 | """Runs the network request through the client's chained policies. |
|
0 commit comments