|
7 | 7 | # --------------------------------------------------------------------------
|
8 | 8 |
|
9 | 9 | from copy import deepcopy
|
10 |
| -from typing import Any, Optional, TYPE_CHECKING |
| 10 | +from typing import Any, TYPE_CHECKING |
| 11 | + |
| 12 | +from msrest import Deserializer, Serializer |
11 | 13 |
|
12 | 14 | from azure.core.rest import HttpRequest, HttpResponse
|
13 | 15 | from azure.mgmt.core import ARMPipelineClient
|
14 |
| -from msrest import Deserializer, Serializer |
15 | 16 |
|
16 | 17 | from . import models
|
17 | 18 | from ._configuration import CosmosDBManagementClientConfiguration
|
|
21 | 22 | # pylint: disable=unused-import,ungrouped-imports
|
22 | 23 | from azure.core.credentials import TokenCredential
|
23 | 24 |
|
24 |
| -class CosmosDBManagementClient: |
| 25 | +class CosmosDBManagementClient: # pylint: disable=too-many-instance-attributes |
25 | 26 | """Azure Cosmos DB Database Service Resource Provider REST API.
|
26 | 27 |
|
27 | 28 | :ivar database_accounts: DatabaseAccountsOperations operations
|
@@ -122,8 +123,11 @@ class CosmosDBManagementClient:
|
122 | 123 | :type credential: ~azure.core.credentials.TokenCredential
|
123 | 124 | :param subscription_id: The ID of the target subscription.
|
124 | 125 | :type subscription_id: str
|
125 |
| - :param base_url: Service URL. Default value is 'https://management.azure.com'. |
| 126 | + :param base_url: Service URL. Default value is "https://management.azure.com". |
126 | 127 | :type base_url: str
|
| 128 | + :keyword api_version: Api Version. Default value is "2022-02-15-preview". Note that overriding |
| 129 | + this default value may result in unsupported behavior. |
| 130 | + :paramtype api_version: str |
127 | 131 | :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
128 | 132 | Retry-After header is present.
|
129 | 133 | """
|
@@ -185,7 +189,7 @@ def __init__(
|
185 | 189 |
|
186 | 190 | def _send_request(
|
187 | 191 | self,
|
188 |
| - request, # type: HttpRequest |
| 192 | + request: HttpRequest, |
189 | 193 | **kwargs: Any
|
190 | 194 | ) -> HttpResponse:
|
191 | 195 | """Runs the network request through the client's chained policies.
|
|
0 commit comments