Skip to content

Commit 3b9ff1c

Browse files
[AutoRelease] t2-cosmosdb-2024-01-07-84944(can only be merged by SDK owner) (#33736)
* code and test * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent 47e8a8f commit 3b9ff1c

File tree

322 files changed

+29915
-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.

322 files changed

+29915
-2642
lines changed

sdk/cosmos/azure-mgmt-cosmosdb/CHANGELOG.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,79 @@
11
# Release History
22

3+
## 10.0.0b2 (2024-01-26)
4+
5+
### Features Added
6+
7+
- Added operation CassandraClustersOperations.begin_invoke_command_async
8+
- Added operation CassandraClustersOperations.get_command_async
9+
- Added operation CassandraClustersOperations.list_command
10+
- Added operation group ThroughputPoolAccountOperations
11+
- Added operation group ThroughputPoolAccountsOperations
12+
- Added operation group ThroughputPoolOperations
13+
- Added operation group ThroughputPoolsOperations
14+
- Model BackupResource has a new parameter backup_expiry_timestamp
15+
- Model BackupResource has a new parameter backup_id
16+
- Model BackupResource has a new parameter backup_start_timestamp
17+
- Model BackupResource has a new parameter backup_state
18+
- Model BackupResource has a new parameter backup_stop_timestamp
19+
- Model CassandraClusterDataCenterNodeItem has a new parameter is_latest_model
20+
- Model ClusterResourceProperties has a new parameter auto_replicate
21+
- Model ClusterResourceProperties has a new parameter azure_connection_method
22+
- Model ClusterResourceProperties has a new parameter backup_schedules
23+
- Model ClusterResourceProperties has a new parameter cluster_type
24+
- Model ClusterResourceProperties has a new parameter extensions
25+
- Model ClusterResourceProperties has a new parameter external_data_centers
26+
- Model ClusterResourceProperties has a new parameter private_link_resource_id
27+
- Model ClusterResourceProperties has a new parameter scheduled_event_strategy
28+
- Model CommandPostBody has a new parameter read_write
29+
- Model CosmosCassandraDataTransferDataSourceSink has a new parameter remote_account_name
30+
- Model CosmosMongoDataTransferDataSourceSink has a new parameter remote_account_name
31+
- Model CosmosSqlDataTransferDataSourceSink has a new parameter remote_account_name
32+
- Model DataCenterResourceProperties has a new parameter private_endpoint_ip_address
33+
- Model DataTransferJobGetResults has a new parameter duration
34+
- Model DataTransferJobGetResults has a new parameter mode
35+
- Model DataTransferJobProperties has a new parameter duration
36+
- Model DataTransferJobProperties has a new parameter mode
37+
- Model DatabaseAccountCreateUpdateParameters has a new parameter customer_managed_key_status
38+
- Model DatabaseAccountCreateUpdateParameters has a new parameter default_priority_level
39+
- Model DatabaseAccountCreateUpdateParameters has a new parameter enable_priority_based_execution
40+
- Model DatabaseAccountGetResults has a new parameter customer_managed_key_status
41+
- Model DatabaseAccountGetResults has a new parameter default_priority_level
42+
- Model DatabaseAccountGetResults has a new parameter enable_priority_based_execution
43+
- Model DatabaseAccountUpdateParameters has a new parameter customer_managed_key_status
44+
- Model DatabaseAccountUpdateParameters has a new parameter default_priority_level
45+
- Model DatabaseAccountUpdateParameters has a new parameter enable_priority_based_execution
46+
- Model RestorableGremlinDatabasePropertiesResource has a new parameter can_undelete
47+
- Model RestorableGremlinDatabasePropertiesResource has a new parameter can_undelete_reason
48+
- Model RestorableGremlinGraphPropertiesResource has a new parameter can_undelete
49+
- Model RestorableGremlinGraphPropertiesResource has a new parameter can_undelete_reason
50+
- Model RestorableMongodbCollectionPropertiesResource has a new parameter can_undelete
51+
- Model RestorableMongodbCollectionPropertiesResource has a new parameter can_undelete_reason
52+
- Model RestorableMongodbDatabasePropertiesResource has a new parameter can_undelete
53+
- Model RestorableMongodbDatabasePropertiesResource has a new parameter can_undelete_reason
54+
- Model RestorableSqlContainerPropertiesResource has a new parameter can_undelete
55+
- Model RestorableSqlContainerPropertiesResource has a new parameter can_undelete_reason
56+
- Model RestorableSqlContainerPropertiesResourceContainer has a new parameter computed_properties
57+
- Model RestorableSqlDatabasePropertiesResource has a new parameter can_undelete
58+
- Model RestorableSqlDatabasePropertiesResource has a new parameter can_undelete_reason
59+
- Model RestorableTablePropertiesResource has a new parameter can_undelete
60+
- Model RestorableTablePropertiesResource has a new parameter can_undelete_reason
61+
- Model SqlContainerGetPropertiesResource has a new parameter computed_properties
62+
- Model SqlContainerResource has a new parameter computed_properties
63+
- Model ThroughputSettingsGetPropertiesResource has a new parameter instant_maximum_throughput
64+
- Model ThroughputSettingsGetPropertiesResource has a new parameter soft_allowed_maximum_throughput
65+
- Model ThroughputSettingsResource has a new parameter instant_maximum_throughput
66+
- Model ThroughputSettingsResource has a new parameter soft_allowed_maximum_throughput
67+
- Operation CassandraClustersOperations.begin_deallocate has a new optional parameter x_ms_force_deallocate
68+
69+
### Breaking Changes
70+
71+
- Model BackupResource no longer has parameter id
72+
- Model BackupResource no longer has parameter name
73+
- Model BackupResource no longer has parameter properties
74+
- Model BackupResource no longer has parameter type
75+
- Model CommandPostBody no longer has parameter readwrite
76+
377
## 9.4.0 (2023-12-19)
478

579
### Features Added

sdk/cosmos/azure-mgmt-cosmosdb/_meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"commit": "583a4974607e00e1da26915562aeafb4bad079de",
2+
"commit": "8e674dd2a88ae73868c6fa7593a0ba4371e45991",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.7",
55
"use": [

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 "2023-11-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", "2023-11-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 "2023-11-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 = "10.0.0b2"

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 "2023-11-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", "2023-11-15-preview")
4040

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

0 commit comments

Comments
 (0)