Skip to content

Commit e84eb08

Browse files
author
SDKAuto
committed
CodeGen from PR 23081 in Azure/azure-rest-api-specs
Merge dde5b3f94b1ced21c735fcc696f23df5b1768764 into c72a972a6d4fa9e64bb62653e996155379292ebf
1 parent 5854a8e commit e84eb08

File tree

336 files changed

+26887
-5266
lines changed

Some content is hidden

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

336 files changed

+26887
-5266
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "33a7dbc1743fdacb8e2259011a035154a98cad66",
2+
"commit": "efb988c8c82c2d57fd4b49628cc6d619f8e6226b",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.2",
55
"use": [
6-
"@autorest/python@6.2.16",
6+
"@autorest/python@6.4.3",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/cosmos-db/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.2.16 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/cosmos-db/resource-manager/readme.md --generate-sample=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.4.3 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
1010
"readme": "specification/cosmos-db/resource-manager/readme.md"
1111
}

sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_configuration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ class CosmosDBManagementClientConfiguration(Configuration): # pylint: disable=t
3535
:type credential: ~azure.core.credentials.TokenCredential
3636
:param subscription_id: The ID of the target subscription. Required.
3737
:type subscription_id: str
38-
:keyword api_version: Api Version. Default value is "2022-11-15". Note that overriding this
39-
default value may result in unsupported behavior.
38+
:keyword api_version: Api Version. Default value is "2023-03-01-preview". Note that overriding
39+
this default value may result in unsupported behavior.
4040
:paramtype api_version: str
4141
"""
4242

4343
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
4444
super(CosmosDBManagementClientConfiguration, self).__init__(**kwargs)
45-
api_version: Literal["2022-11-15"] = kwargs.pop("api_version", "2022-11-15")
45+
api_version: Literal["2023-03-01-preview"] = kwargs.pop("api_version", "2023-03-01-preview")
4646

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

sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_cosmos_db_management_client.py

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@
2323
CollectionPartitionOperations,
2424
CollectionPartitionRegionOperations,
2525
CollectionRegionOperations,
26+
DataTransferJobsOperations,
2627
DatabaseAccountRegionOperations,
2728
DatabaseAccountsOperations,
2829
DatabaseOperations,
30+
GraphResourcesOperations,
2931
GremlinResourcesOperations,
3032
LocationsOperations,
33+
MongoClustersOperations,
3134
MongoDBResourcesOperations,
3235
NotebookWorkspacesOperations,
3336
Operations,
@@ -93,6 +96,8 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
9396
:ivar partition_key_range_id_region: PartitionKeyRangeIdRegionOperations operations
9497
:vartype partition_key_range_id_region:
9598
azure.mgmt.cosmosdb.operations.PartitionKeyRangeIdRegionOperations
99+
:ivar graph_resources: GraphResourcesOperations operations
100+
:vartype graph_resources: azure.mgmt.cosmosdb.operations.GraphResourcesOperations
96101
:ivar sql_resources: SqlResourcesOperations operations
97102
:vartype sql_resources: azure.mgmt.cosmosdb.operations.SqlResourcesOperations
98103
:ivar mongo_db_resources: MongoDBResourcesOperations operations
@@ -105,10 +110,14 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
105110
:vartype gremlin_resources: azure.mgmt.cosmosdb.operations.GremlinResourcesOperations
106111
:ivar locations: LocationsOperations operations
107112
:vartype locations: azure.mgmt.cosmosdb.operations.LocationsOperations
113+
:ivar data_transfer_jobs: DataTransferJobsOperations operations
114+
:vartype data_transfer_jobs: azure.mgmt.cosmosdb.operations.DataTransferJobsOperations
108115
:ivar cassandra_clusters: CassandraClustersOperations operations
109116
:vartype cassandra_clusters: azure.mgmt.cosmosdb.operations.CassandraClustersOperations
110117
:ivar cassandra_data_centers: CassandraDataCentersOperations operations
111118
:vartype cassandra_data_centers: azure.mgmt.cosmosdb.operations.CassandraDataCentersOperations
119+
:ivar mongo_clusters: MongoClustersOperations operations
120+
:vartype mongo_clusters: azure.mgmt.cosmosdb.operations.MongoClustersOperations
112121
:ivar notebook_workspaces: NotebookWorkspacesOperations operations
113122
:vartype notebook_workspaces: azure.mgmt.cosmosdb.operations.NotebookWorkspacesOperations
114123
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
@@ -159,8 +168,8 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
159168
:type subscription_id: str
160169
:param base_url: Service URL. Default value is "https://management.azure.com".
161170
:type base_url: str
162-
:keyword api_version: Api Version. Default value is "2022-11-15". Note that overriding this
163-
default value may result in unsupported behavior.
171+
:keyword api_version: Api Version. Default value is "2023-03-01-preview". Note that overriding
172+
this default value may result in unsupported behavior.
164173
:paramtype api_version: str
165174
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
166175
Retry-After header is present.
@@ -176,7 +185,7 @@ def __init__(
176185
self._config = CosmosDBManagementClientConfiguration(
177186
credential=credential, subscription_id=subscription_id, **kwargs
178187
)
179-
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
188+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
180189

181190
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
182191
self._serialize = Serializer(client_models)
@@ -213,6 +222,7 @@ def __init__(
213222
self.partition_key_range_id_region = PartitionKeyRangeIdRegionOperations(
214223
self._client, self._config, self._serialize, self._deserialize
215224
)
225+
self.graph_resources = GraphResourcesOperations(self._client, self._config, self._serialize, self._deserialize)
216226
self.sql_resources = SqlResourcesOperations(self._client, self._config, self._serialize, self._deserialize)
217227
self.mongo_db_resources = MongoDBResourcesOperations(
218228
self._client, self._config, self._serialize, self._deserialize
@@ -225,12 +235,16 @@ def __init__(
225235
self._client, self._config, self._serialize, self._deserialize
226236
)
227237
self.locations = LocationsOperations(self._client, self._config, self._serialize, self._deserialize)
238+
self.data_transfer_jobs = DataTransferJobsOperations(
239+
self._client, self._config, self._serialize, self._deserialize
240+
)
228241
self.cassandra_clusters = CassandraClustersOperations(
229242
self._client, self._config, self._serialize, self._deserialize
230243
)
231244
self.cassandra_data_centers = CassandraDataCentersOperations(
232245
self._client, self._config, self._serialize, self._deserialize
233246
)
247+
self.mongo_clusters = MongoClustersOperations(self._client, self._config, self._serialize, self._deserialize)
234248
self.notebook_workspaces = NotebookWorkspacesOperations(
235249
self._client, self._config, self._serialize, self._deserialize
236250
)
@@ -307,5 +321,5 @@ def __enter__(self) -> "CosmosDBManagementClient":
307321
self._client.__enter__()
308322
return self
309323

310-
def __exit__(self, *exc_details) -> None:
324+
def __exit__(self, *exc_details: Any) -> None:
311325
self._client.__exit__(*exc_details)

sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "9.0.0"
9+
VERSION = "0.7.0"

sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/_configuration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ class CosmosDBManagementClientConfiguration(Configuration): # pylint: disable=t
3535
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
3636
:param subscription_id: The ID of the target subscription. Required.
3737
:type subscription_id: str
38-
:keyword api_version: Api Version. Default value is "2022-11-15". Note that overriding this
39-
default value may result in unsupported behavior.
38+
:keyword api_version: Api Version. Default value is "2023-03-01-preview". Note that overriding
39+
this default value may result in unsupported behavior.
4040
:paramtype api_version: str
4141
"""
4242

4343
def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
4444
super(CosmosDBManagementClientConfiguration, self).__init__(**kwargs)
45-
api_version: Literal["2022-11-15"] = kwargs.pop("api_version", "2022-11-15")
45+
api_version: Literal["2023-03-01-preview"] = kwargs.pop("api_version", "2023-03-01-preview")
4646

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

sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/_cosmos_db_management_client.py

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@
2323
CollectionPartitionOperations,
2424
CollectionPartitionRegionOperations,
2525
CollectionRegionOperations,
26+
DataTransferJobsOperations,
2627
DatabaseAccountRegionOperations,
2728
DatabaseAccountsOperations,
2829
DatabaseOperations,
30+
GraphResourcesOperations,
2931
GremlinResourcesOperations,
3032
LocationsOperations,
33+
MongoClustersOperations,
3134
MongoDBResourcesOperations,
3235
NotebookWorkspacesOperations,
3336
Operations,
@@ -94,6 +97,8 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
9497
:ivar partition_key_range_id_region: PartitionKeyRangeIdRegionOperations operations
9598
:vartype partition_key_range_id_region:
9699
azure.mgmt.cosmosdb.aio.operations.PartitionKeyRangeIdRegionOperations
100+
:ivar graph_resources: GraphResourcesOperations operations
101+
:vartype graph_resources: azure.mgmt.cosmosdb.aio.operations.GraphResourcesOperations
97102
:ivar sql_resources: SqlResourcesOperations operations
98103
:vartype sql_resources: azure.mgmt.cosmosdb.aio.operations.SqlResourcesOperations
99104
:ivar mongo_db_resources: MongoDBResourcesOperations operations
@@ -106,11 +111,15 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
106111
:vartype gremlin_resources: azure.mgmt.cosmosdb.aio.operations.GremlinResourcesOperations
107112
:ivar locations: LocationsOperations operations
108113
:vartype locations: azure.mgmt.cosmosdb.aio.operations.LocationsOperations
114+
:ivar data_transfer_jobs: DataTransferJobsOperations operations
115+
:vartype data_transfer_jobs: azure.mgmt.cosmosdb.aio.operations.DataTransferJobsOperations
109116
:ivar cassandra_clusters: CassandraClustersOperations operations
110117
:vartype cassandra_clusters: azure.mgmt.cosmosdb.aio.operations.CassandraClustersOperations
111118
:ivar cassandra_data_centers: CassandraDataCentersOperations operations
112119
:vartype cassandra_data_centers:
113120
azure.mgmt.cosmosdb.aio.operations.CassandraDataCentersOperations
121+
:ivar mongo_clusters: MongoClustersOperations operations
122+
:vartype mongo_clusters: azure.mgmt.cosmosdb.aio.operations.MongoClustersOperations
114123
:ivar notebook_workspaces: NotebookWorkspacesOperations operations
115124
:vartype notebook_workspaces: azure.mgmt.cosmosdb.aio.operations.NotebookWorkspacesOperations
116125
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
@@ -162,8 +171,8 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
162171
:type subscription_id: str
163172
:param base_url: Service URL. Default value is "https://management.azure.com".
164173
:type base_url: str
165-
:keyword api_version: Api Version. Default value is "2022-11-15". Note that overriding this
166-
default value may result in unsupported behavior.
174+
:keyword api_version: Api Version. Default value is "2023-03-01-preview". Note that overriding
175+
this default value may result in unsupported behavior.
167176
:paramtype api_version: str
168177
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
169178
Retry-After header is present.
@@ -179,7 +188,7 @@ def __init__(
179188
self._config = CosmosDBManagementClientConfiguration(
180189
credential=credential, subscription_id=subscription_id, **kwargs
181190
)
182-
self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
191+
self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
183192

184193
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
185194
self._serialize = Serializer(client_models)
@@ -216,6 +225,7 @@ def __init__(
216225
self.partition_key_range_id_region = PartitionKeyRangeIdRegionOperations(
217226
self._client, self._config, self._serialize, self._deserialize
218227
)
228+
self.graph_resources = GraphResourcesOperations(self._client, self._config, self._serialize, self._deserialize)
219229
self.sql_resources = SqlResourcesOperations(self._client, self._config, self._serialize, self._deserialize)
220230
self.mongo_db_resources = MongoDBResourcesOperations(
221231
self._client, self._config, self._serialize, self._deserialize
@@ -228,12 +238,16 @@ def __init__(
228238
self._client, self._config, self._serialize, self._deserialize
229239
)
230240
self.locations = LocationsOperations(self._client, self._config, self._serialize, self._deserialize)
241+
self.data_transfer_jobs = DataTransferJobsOperations(
242+
self._client, self._config, self._serialize, self._deserialize
243+
)
231244
self.cassandra_clusters = CassandraClustersOperations(
232245
self._client, self._config, self._serialize, self._deserialize
233246
)
234247
self.cassandra_data_centers = CassandraDataCentersOperations(
235248
self._client, self._config, self._serialize, self._deserialize
236249
)
250+
self.mongo_clusters = MongoClustersOperations(self._client, self._config, self._serialize, self._deserialize)
237251
self.notebook_workspaces = NotebookWorkspacesOperations(
238252
self._client, self._config, self._serialize, self._deserialize
239253
)
@@ -310,5 +324,5 @@ async def __aenter__(self) -> "CosmosDBManagementClient":
310324
await self._client.__aenter__()
311325
return self
312326

313-
async def __aexit__(self, *exc_details) -> None:
327+
async def __aexit__(self, *exc_details: Any) -> None:
314328
await self._client.__aexit__(*exc_details)

sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,17 @@
1919
from ._collection_partition_operations import CollectionPartitionOperations
2020
from ._partition_key_range_id_operations import PartitionKeyRangeIdOperations
2121
from ._partition_key_range_id_region_operations import PartitionKeyRangeIdRegionOperations
22+
from ._graph_resources_operations import GraphResourcesOperations
2223
from ._sql_resources_operations import SqlResourcesOperations
2324
from ._mongo_db_resources_operations import MongoDBResourcesOperations
2425
from ._table_resources_operations import TableResourcesOperations
2526
from ._cassandra_resources_operations import CassandraResourcesOperations
2627
from ._gremlin_resources_operations import GremlinResourcesOperations
2728
from ._locations_operations import LocationsOperations
29+
from ._data_transfer_jobs_operations import DataTransferJobsOperations
2830
from ._cassandra_clusters_operations import CassandraClustersOperations
2931
from ._cassandra_data_centers_operations import CassandraDataCentersOperations
32+
from ._mongo_clusters_operations import MongoClustersOperations
3033
from ._notebook_workspaces_operations import NotebookWorkspacesOperations
3134
from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations
3235
from ._private_link_resources_operations import PrivateLinkResourcesOperations
@@ -62,14 +65,17 @@
6265
"CollectionPartitionOperations",
6366
"PartitionKeyRangeIdOperations",
6467
"PartitionKeyRangeIdRegionOperations",
68+
"GraphResourcesOperations",
6569
"SqlResourcesOperations",
6670
"MongoDBResourcesOperations",
6771
"TableResourcesOperations",
6872
"CassandraResourcesOperations",
6973
"GremlinResourcesOperations",
7074
"LocationsOperations",
75+
"DataTransferJobsOperations",
7176
"CassandraClustersOperations",
7277
"CassandraDataCentersOperations",
78+
"MongoClustersOperations",
7379
"NotebookWorkspacesOperations",
7480
"PrivateEndpointConnectionsOperations",
7581
"PrivateLinkResourcesOperations",

0 commit comments

Comments
 (0)