Skip to content

Commit de34909

Browse files
author
SDKAuto
committed
CodeGen from PR 3201 in test-repo-billy/azure-rest-api-specs
Merge 252ac0b53fcd5066fb3c1b83faea384a197f8a51 into 2a3aeccebd978831771083e30bb5bbce3c2e485a
1 parent e56a49c commit de34909

File tree

319 files changed

+29841
-2642
lines changed

Some content is hidden

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

319 files changed

+29841
-2642
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "583a4974607e00e1da26915562aeafb4bad079de",
3-
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
2+
"commit": "07a2f2d4bb97afc059df056644e72cf2c7acd9ac",
3+
"repository_url": "https://github.com/test-repo-billy/azure-rest-api-specs",
44
"autorest": "3.9.7",
55
"use": [
66
"@autorest/[email protected]",
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/[email protected] --use=@autorest/[email protected] --version=3.9.7 --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/[email protected] --use=@autorest/[email protected] --version=3.9.7 --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
@@ -29,14 +29,14 @@ class CosmosDBManagementClientConfiguration(Configuration): # pylint: disable=t
2929
:type credential: ~azure.core.credentials.TokenCredential
3030
:param subscription_id: The ID of the target subscription. Required.
3131
:type subscription_id: str
32-
:keyword api_version: Api Version. Default value is "2023-11-15". Note that overriding this
33-
default value may result in unsupported behavior.
32+
:keyword api_version: Api Version. Default value is "2024-01-15-preview". Note that overriding
33+
this default value may result in unsupported behavior.
3434
:paramtype api_version: str
3535
"""
3636

3737
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
3838
super(CosmosDBManagementClientConfiguration, self).__init__(**kwargs)
39-
api_version: str = kwargs.pop("api_version", "2023-11-15")
39+
api_version: str = kwargs.pop("api_version", "2024-01-15-preview")
4040

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

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

Lines changed: 40 additions & 2 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,
@@ -53,6 +56,10 @@
5356
ServiceOperations,
5457
SqlResourcesOperations,
5558
TableResourcesOperations,
59+
ThroughputPoolAccountOperations,
60+
ThroughputPoolAccountsOperations,
61+
ThroughputPoolOperations,
62+
ThroughputPoolsOperations,
5663
)
5764

5865
if TYPE_CHECKING:
@@ -93,6 +100,8 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
93100
:ivar partition_key_range_id_region: PartitionKeyRangeIdRegionOperations operations
94101
:vartype partition_key_range_id_region:
95102
azure.mgmt.cosmosdb.operations.PartitionKeyRangeIdRegionOperations
103+
:ivar graph_resources: GraphResourcesOperations operations
104+
:vartype graph_resources: azure.mgmt.cosmosdb.operations.GraphResourcesOperations
96105
:ivar sql_resources: SqlResourcesOperations operations
97106
:vartype sql_resources: azure.mgmt.cosmosdb.operations.SqlResourcesOperations
98107
:ivar mongo_db_resources: MongoDBResourcesOperations operations
@@ -105,10 +114,14 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
105114
:vartype gremlin_resources: azure.mgmt.cosmosdb.operations.GremlinResourcesOperations
106115
:ivar locations: LocationsOperations operations
107116
:vartype locations: azure.mgmt.cosmosdb.operations.LocationsOperations
117+
:ivar data_transfer_jobs: DataTransferJobsOperations operations
118+
:vartype data_transfer_jobs: azure.mgmt.cosmosdb.operations.DataTransferJobsOperations
108119
:ivar cassandra_clusters: CassandraClustersOperations operations
109120
:vartype cassandra_clusters: azure.mgmt.cosmosdb.operations.CassandraClustersOperations
110121
:ivar cassandra_data_centers: CassandraDataCentersOperations operations
111122
:vartype cassandra_data_centers: azure.mgmt.cosmosdb.operations.CassandraDataCentersOperations
123+
:ivar mongo_clusters: MongoClustersOperations operations
124+
:vartype mongo_clusters: azure.mgmt.cosmosdb.operations.MongoClustersOperations
112125
:ivar notebook_workspaces: NotebookWorkspacesOperations operations
113126
:vartype notebook_workspaces: azure.mgmt.cosmosdb.operations.NotebookWorkspacesOperations
114127
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
@@ -153,14 +166,24 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
153166
azure.mgmt.cosmosdb.operations.RestorableTableResourcesOperations
154167
:ivar service: ServiceOperations operations
155168
:vartype service: azure.mgmt.cosmosdb.operations.ServiceOperations
169+
:ivar throughput_pools: ThroughputPoolsOperations operations
170+
:vartype throughput_pools: azure.mgmt.cosmosdb.operations.ThroughputPoolsOperations
171+
:ivar throughput_pool: ThroughputPoolOperations operations
172+
:vartype throughput_pool: azure.mgmt.cosmosdb.operations.ThroughputPoolOperations
173+
:ivar throughput_pool_accounts: ThroughputPoolAccountsOperations operations
174+
:vartype throughput_pool_accounts:
175+
azure.mgmt.cosmosdb.operations.ThroughputPoolAccountsOperations
176+
:ivar throughput_pool_account: ThroughputPoolAccountOperations operations
177+
:vartype throughput_pool_account:
178+
azure.mgmt.cosmosdb.operations.ThroughputPoolAccountOperations
156179
:param credential: Credential needed for the client to connect to Azure. Required.
157180
:type credential: ~azure.core.credentials.TokenCredential
158181
:param subscription_id: The ID of the target subscription. Required.
159182
:type subscription_id: str
160183
:param base_url: Service URL. Default value is "https://management.azure.com".
161184
:type base_url: str
162-
:keyword api_version: Api Version. Default value is "2023-11-15". Note that overriding this
163-
default value may result in unsupported behavior.
185+
:keyword api_version: Api Version. Default value is "2024-01-15-preview". Note that overriding
186+
this default value may result in unsupported behavior.
164187
:paramtype api_version: str
165188
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
166189
Retry-After header is present.
@@ -213,6 +236,7 @@ def __init__(
213236
self.partition_key_range_id_region = PartitionKeyRangeIdRegionOperations(
214237
self._client, self._config, self._serialize, self._deserialize
215238
)
239+
self.graph_resources = GraphResourcesOperations(self._client, self._config, self._serialize, self._deserialize)
216240
self.sql_resources = SqlResourcesOperations(self._client, self._config, self._serialize, self._deserialize)
217241
self.mongo_db_resources = MongoDBResourcesOperations(
218242
self._client, self._config, self._serialize, self._deserialize
@@ -225,12 +249,16 @@ def __init__(
225249
self._client, self._config, self._serialize, self._deserialize
226250
)
227251
self.locations = LocationsOperations(self._client, self._config, self._serialize, self._deserialize)
252+
self.data_transfer_jobs = DataTransferJobsOperations(
253+
self._client, self._config, self._serialize, self._deserialize
254+
)
228255
self.cassandra_clusters = CassandraClustersOperations(
229256
self._client, self._config, self._serialize, self._deserialize
230257
)
231258
self.cassandra_data_centers = CassandraDataCentersOperations(
232259
self._client, self._config, self._serialize, self._deserialize
233260
)
261+
self.mongo_clusters = MongoClustersOperations(self._client, self._config, self._serialize, self._deserialize)
234262
self.notebook_workspaces = NotebookWorkspacesOperations(
235263
self._client, self._config, self._serialize, self._deserialize
236264
)
@@ -277,6 +305,16 @@ def __init__(
277305
self._client, self._config, self._serialize, self._deserialize
278306
)
279307
self.service = ServiceOperations(self._client, self._config, self._serialize, self._deserialize)
308+
self.throughput_pools = ThroughputPoolsOperations(
309+
self._client, self._config, self._serialize, self._deserialize
310+
)
311+
self.throughput_pool = ThroughputPoolOperations(self._client, self._config, self._serialize, self._deserialize)
312+
self.throughput_pool_accounts = ThroughputPoolAccountsOperations(
313+
self._client, self._config, self._serialize, self._deserialize
314+
)
315+
self.throughput_pool_account = ThroughputPoolAccountOperations(
316+
self._client, self._config, self._serialize, self._deserialize
317+
)
280318

281319
def _send_request(self, request: HttpRequest, **kwargs: Any) -> HttpResponse:
282320
"""Runs the network request through the client's chained policies.

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.4.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
@@ -29,14 +29,14 @@ class CosmosDBManagementClientConfiguration(Configuration): # pylint: disable=t
2929
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
3030
:param subscription_id: The ID of the target subscription. Required.
3131
:type subscription_id: str
32-
:keyword api_version: Api Version. Default value is "2023-11-15". Note that overriding this
33-
default value may result in unsupported behavior.
32+
:keyword api_version: Api Version. Default value is "2024-01-15-preview". Note that overriding
33+
this default value may result in unsupported behavior.
3434
:paramtype api_version: str
3535
"""
3636

3737
def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
3838
super(CosmosDBManagementClientConfiguration, self).__init__(**kwargs)
39-
api_version: str = kwargs.pop("api_version", "2023-11-15")
39+
api_version: str = kwargs.pop("api_version", "2024-01-15-preview")
4040

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

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

Lines changed: 40 additions & 2 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,
@@ -53,6 +56,10 @@
5356
ServiceOperations,
5457
SqlResourcesOperations,
5558
TableResourcesOperations,
59+
ThroughputPoolAccountOperations,
60+
ThroughputPoolAccountsOperations,
61+
ThroughputPoolOperations,
62+
ThroughputPoolsOperations,
5663
)
5764

5865
if TYPE_CHECKING:
@@ -94,6 +101,8 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
94101
:ivar partition_key_range_id_region: PartitionKeyRangeIdRegionOperations operations
95102
:vartype partition_key_range_id_region:
96103
azure.mgmt.cosmosdb.aio.operations.PartitionKeyRangeIdRegionOperations
104+
:ivar graph_resources: GraphResourcesOperations operations
105+
:vartype graph_resources: azure.mgmt.cosmosdb.aio.operations.GraphResourcesOperations
97106
:ivar sql_resources: SqlResourcesOperations operations
98107
:vartype sql_resources: azure.mgmt.cosmosdb.aio.operations.SqlResourcesOperations
99108
:ivar mongo_db_resources: MongoDBResourcesOperations operations
@@ -106,11 +115,15 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
106115
:vartype gremlin_resources: azure.mgmt.cosmosdb.aio.operations.GremlinResourcesOperations
107116
:ivar locations: LocationsOperations operations
108117
:vartype locations: azure.mgmt.cosmosdb.aio.operations.LocationsOperations
118+
:ivar data_transfer_jobs: DataTransferJobsOperations operations
119+
:vartype data_transfer_jobs: azure.mgmt.cosmosdb.aio.operations.DataTransferJobsOperations
109120
:ivar cassandra_clusters: CassandraClustersOperations operations
110121
:vartype cassandra_clusters: azure.mgmt.cosmosdb.aio.operations.CassandraClustersOperations
111122
:ivar cassandra_data_centers: CassandraDataCentersOperations operations
112123
:vartype cassandra_data_centers:
113124
azure.mgmt.cosmosdb.aio.operations.CassandraDataCentersOperations
125+
:ivar mongo_clusters: MongoClustersOperations operations
126+
:vartype mongo_clusters: azure.mgmt.cosmosdb.aio.operations.MongoClustersOperations
114127
:ivar notebook_workspaces: NotebookWorkspacesOperations operations
115128
:vartype notebook_workspaces: azure.mgmt.cosmosdb.aio.operations.NotebookWorkspacesOperations
116129
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
@@ -156,14 +169,24 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
156169
azure.mgmt.cosmosdb.aio.operations.RestorableTableResourcesOperations
157170
:ivar service: ServiceOperations operations
158171
:vartype service: azure.mgmt.cosmosdb.aio.operations.ServiceOperations
172+
:ivar throughput_pools: ThroughputPoolsOperations operations
173+
:vartype throughput_pools: azure.mgmt.cosmosdb.aio.operations.ThroughputPoolsOperations
174+
:ivar throughput_pool: ThroughputPoolOperations operations
175+
:vartype throughput_pool: azure.mgmt.cosmosdb.aio.operations.ThroughputPoolOperations
176+
:ivar throughput_pool_accounts: ThroughputPoolAccountsOperations operations
177+
:vartype throughput_pool_accounts:
178+
azure.mgmt.cosmosdb.aio.operations.ThroughputPoolAccountsOperations
179+
:ivar throughput_pool_account: ThroughputPoolAccountOperations operations
180+
:vartype throughput_pool_account:
181+
azure.mgmt.cosmosdb.aio.operations.ThroughputPoolAccountOperations
159182
:param credential: Credential needed for the client to connect to Azure. Required.
160183
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
161184
:param subscription_id: The ID of the target subscription. Required.
162185
:type subscription_id: str
163186
:param base_url: Service URL. Default value is "https://management.azure.com".
164187
:type base_url: str
165-
:keyword api_version: Api Version. Default value is "2023-11-15". Note that overriding this
166-
default value may result in unsupported behavior.
188+
:keyword api_version: Api Version. Default value is "2024-01-15-preview". Note that overriding
189+
this default value may result in unsupported behavior.
167190
:paramtype api_version: str
168191
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
169192
Retry-After header is present.
@@ -216,6 +239,7 @@ def __init__(
216239
self.partition_key_range_id_region = PartitionKeyRangeIdRegionOperations(
217240
self._client, self._config, self._serialize, self._deserialize
218241
)
242+
self.graph_resources = GraphResourcesOperations(self._client, self._config, self._serialize, self._deserialize)
219243
self.sql_resources = SqlResourcesOperations(self._client, self._config, self._serialize, self._deserialize)
220244
self.mongo_db_resources = MongoDBResourcesOperations(
221245
self._client, self._config, self._serialize, self._deserialize
@@ -228,12 +252,16 @@ def __init__(
228252
self._client, self._config, self._serialize, self._deserialize
229253
)
230254
self.locations = LocationsOperations(self._client, self._config, self._serialize, self._deserialize)
255+
self.data_transfer_jobs = DataTransferJobsOperations(
256+
self._client, self._config, self._serialize, self._deserialize
257+
)
231258
self.cassandra_clusters = CassandraClustersOperations(
232259
self._client, self._config, self._serialize, self._deserialize
233260
)
234261
self.cassandra_data_centers = CassandraDataCentersOperations(
235262
self._client, self._config, self._serialize, self._deserialize
236263
)
264+
self.mongo_clusters = MongoClustersOperations(self._client, self._config, self._serialize, self._deserialize)
237265
self.notebook_workspaces = NotebookWorkspacesOperations(
238266
self._client, self._config, self._serialize, self._deserialize
239267
)
@@ -280,6 +308,16 @@ def __init__(
280308
self._client, self._config, self._serialize, self._deserialize
281309
)
282310
self.service = ServiceOperations(self._client, self._config, self._serialize, self._deserialize)
311+
self.throughput_pools = ThroughputPoolsOperations(
312+
self._client, self._config, self._serialize, self._deserialize
313+
)
314+
self.throughput_pool = ThroughputPoolOperations(self._client, self._config, self._serialize, self._deserialize)
315+
self.throughput_pool_accounts = ThroughputPoolAccountsOperations(
316+
self._client, self._config, self._serialize, self._deserialize
317+
)
318+
self.throughput_pool_account = ThroughputPoolAccountOperations(
319+
self._client, self._config, self._serialize, self._deserialize
320+
)
283321

284322
def _send_request(self, request: HttpRequest, **kwargs: Any) -> Awaitable[AsyncHttpResponse]:
285323
"""Runs the network request through the client's chained policies.

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

Lines changed: 14 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
@@ -43,6 +46,10 @@
4346
from ._restorable_tables_operations import RestorableTablesOperations
4447
from ._restorable_table_resources_operations import RestorableTableResourcesOperations
4548
from ._service_operations import ServiceOperations
49+
from ._throughput_pools_operations import ThroughputPoolsOperations
50+
from ._throughput_pool_operations import ThroughputPoolOperations
51+
from ._throughput_pool_accounts_operations import ThroughputPoolAccountsOperations
52+
from ._throughput_pool_account_operations import ThroughputPoolAccountOperations
4653

4754
from ._patch import __all__ as _patch_all
4855
from ._patch import * # pylint: disable=unused-wildcard-import
@@ -62,14 +69,17 @@
6269
"CollectionPartitionOperations",
6370
"PartitionKeyRangeIdOperations",
6471
"PartitionKeyRangeIdRegionOperations",
72+
"GraphResourcesOperations",
6573
"SqlResourcesOperations",
6674
"MongoDBResourcesOperations",
6775
"TableResourcesOperations",
6876
"CassandraResourcesOperations",
6977
"GremlinResourcesOperations",
7078
"LocationsOperations",
79+
"DataTransferJobsOperations",
7180
"CassandraClustersOperations",
7281
"CassandraDataCentersOperations",
82+
"MongoClustersOperations",
7383
"NotebookWorkspacesOperations",
7484
"PrivateEndpointConnectionsOperations",
7585
"PrivateLinkResourcesOperations",
@@ -86,6 +96,10 @@
8696
"RestorableTablesOperations",
8797
"RestorableTableResourcesOperations",
8898
"ServiceOperations",
99+
"ThroughputPoolsOperations",
100+
"ThroughputPoolOperations",
101+
"ThroughputPoolAccountsOperations",
102+
"ThroughputPoolAccountOperations",
89103
]
90104
__all__.extend([p for p in _patch_all if p not in __all__])
91105
_patch_sdk()

0 commit comments

Comments
 (0)