Skip to content

Commit 8d4fa9a

Browse files
azure-sdkChenxiJiang333
authored andcommitted
[AutoRelease] t2-cosmosdb-2024-11-14-60943(can only be merged by SDK owner) (Azure#38531)
* code and test * update-testcase --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent 5d36028 commit 8d4fa9a

File tree

411 files changed

+6832
-30857
lines changed

Some content is hidden

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

411 files changed

+6832
-30857
lines changed

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

+18
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# Release History
22

3+
## 9.7.0 (2024-11-18)
4+
5+
### Features Added
6+
7+
- Model `DatabaseAccountCreateUpdateParameters` added property `enable_per_region_per_partition_autoscale`
8+
- Model `DatabaseAccountGetResults` added property `enable_per_region_per_partition_autoscale`
9+
- Model `DatabaseAccountUpdateParameters` added property `enable_per_region_per_partition_autoscale`
10+
- Model `IndexingPolicy` added property `vector_indexes`
11+
- Model `RestorableSqlContainerPropertiesResourceContainer` added property `vector_embedding_policy`
12+
- Model `SqlContainerGetPropertiesResource` added property `vector_embedding_policy`
13+
- Model `SqlContainerResource` added property `vector_embedding_policy`
14+
- Added enum `DistanceFunction`
15+
- Added enum `VectorDataType`
16+
- Added model `VectorEmbedding`
17+
- Added model `VectorEmbeddingPolicy`
18+
- Added model `VectorIndex`
19+
- Added enum `VectorIndexType`
20+
321
## 10.0.0b4 (2024-09-23)
422

523
### Features Added
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "b72e0199fa3242d64b0b49f38e71586066a8c048",
2+
"commit": "00d50cba07376c494f3b50647b847cd4ba348a04",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
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 --generate-test=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.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/cosmos-db/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/cosmos-db/resource-manager/readme.md"
1111
}

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ class CosmosDBManagementClientConfiguration: # pylint: disable=too-many-instanc
2828
:type credential: ~azure.core.credentials.TokenCredential
2929
:param subscription_id: The ID of the target subscription. Required.
3030
:type subscription_id: str
31-
:keyword api_version: Api Version. Default value is "2024-09-01-preview". Note that overriding
32-
this default value may result in unsupported behavior.
31+
:keyword api_version: Api Version. Default value is "2024-11-15". Note that overriding this
32+
default value may result in unsupported behavior.
3333
:paramtype api_version: str
3434
"""
3535

3636
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
37-
api_version: str = kwargs.pop("api_version", "2024-09-01-preview")
37+
api_version: str = kwargs.pop("api_version", "2024-11-15")
3838

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

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

+2-48
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,16 @@
2222
CassandraClustersOperations,
2323
CassandraDataCentersOperations,
2424
CassandraResourcesOperations,
25-
ChaosFaultOperations,
2625
CollectionOperations,
2726
CollectionPartitionOperations,
2827
CollectionPartitionRegionOperations,
2928
CollectionRegionOperations,
30-
DataTransferJobsOperations,
3129
DatabaseAccountRegionOperations,
3230
DatabaseAccountsOperations,
3331
DatabaseOperations,
34-
GraphResourcesOperations,
3532
GremlinResourcesOperations,
3633
LocationsOperations,
3734
MongoDBResourcesOperations,
38-
NetworkSecurityPerimeterConfigurationsOperations,
3935
NotebookWorkspacesOperations,
4036
Operations,
4137
PartitionKeyRangeIdOperations,
@@ -60,10 +56,6 @@
6056
ServiceOperations,
6157
SqlResourcesOperations,
6258
TableResourcesOperations,
63-
ThroughputPoolAccountOperations,
64-
ThroughputPoolAccountsOperations,
65-
ThroughputPoolOperations,
66-
ThroughputPoolsOperations,
6759
)
6860

6961
if TYPE_CHECKING:
@@ -104,8 +96,6 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
10496
:ivar partition_key_range_id_region: PartitionKeyRangeIdRegionOperations operations
10597
:vartype partition_key_range_id_region:
10698
azure.mgmt.cosmosdb.operations.PartitionKeyRangeIdRegionOperations
107-
:ivar graph_resources: GraphResourcesOperations operations
108-
:vartype graph_resources: azure.mgmt.cosmosdb.operations.GraphResourcesOperations
10999
:ivar sql_resources: SqlResourcesOperations operations
110100
:vartype sql_resources: azure.mgmt.cosmosdb.operations.SqlResourcesOperations
111101
:ivar mongo_db_resources: MongoDBResourcesOperations operations
@@ -118,16 +108,10 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
118108
:vartype gremlin_resources: azure.mgmt.cosmosdb.operations.GremlinResourcesOperations
119109
:ivar locations: LocationsOperations operations
120110
:vartype locations: azure.mgmt.cosmosdb.operations.LocationsOperations
121-
:ivar data_transfer_jobs: DataTransferJobsOperations operations
122-
:vartype data_transfer_jobs: azure.mgmt.cosmosdb.operations.DataTransferJobsOperations
123111
:ivar cassandra_clusters: CassandraClustersOperations operations
124112
:vartype cassandra_clusters: azure.mgmt.cosmosdb.operations.CassandraClustersOperations
125113
:ivar cassandra_data_centers: CassandraDataCentersOperations operations
126114
:vartype cassandra_data_centers: azure.mgmt.cosmosdb.operations.CassandraDataCentersOperations
127-
:ivar network_security_perimeter_configurations:
128-
NetworkSecurityPerimeterConfigurationsOperations operations
129-
:vartype network_security_perimeter_configurations:
130-
azure.mgmt.cosmosdb.operations.NetworkSecurityPerimeterConfigurationsOperations
131115
:ivar notebook_workspaces: NotebookWorkspacesOperations operations
132116
:vartype notebook_workspaces: azure.mgmt.cosmosdb.operations.NotebookWorkspacesOperations
133117
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
@@ -172,26 +156,14 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
172156
azure.mgmt.cosmosdb.operations.RestorableTableResourcesOperations
173157
:ivar service: ServiceOperations operations
174158
:vartype service: azure.mgmt.cosmosdb.operations.ServiceOperations
175-
:ivar throughput_pools: ThroughputPoolsOperations operations
176-
:vartype throughput_pools: azure.mgmt.cosmosdb.operations.ThroughputPoolsOperations
177-
:ivar throughput_pool: ThroughputPoolOperations operations
178-
:vartype throughput_pool: azure.mgmt.cosmosdb.operations.ThroughputPoolOperations
179-
:ivar throughput_pool_accounts: ThroughputPoolAccountsOperations operations
180-
:vartype throughput_pool_accounts:
181-
azure.mgmt.cosmosdb.operations.ThroughputPoolAccountsOperations
182-
:ivar throughput_pool_account: ThroughputPoolAccountOperations operations
183-
:vartype throughput_pool_account:
184-
azure.mgmt.cosmosdb.operations.ThroughputPoolAccountOperations
185-
:ivar chaos_fault: ChaosFaultOperations operations
186-
:vartype chaos_fault: azure.mgmt.cosmosdb.operations.ChaosFaultOperations
187159
:param credential: Credential needed for the client to connect to Azure. Required.
188160
:type credential: ~azure.core.credentials.TokenCredential
189161
:param subscription_id: The ID of the target subscription. Required.
190162
:type subscription_id: str
191163
:param base_url: Service URL. Default value is "https://management.azure.com".
192164
:type base_url: str
193-
:keyword api_version: Api Version. Default value is "2024-09-01-preview". Note that overriding
194-
this default value may result in unsupported behavior.
165+
:keyword api_version: Api Version. Default value is "2024-11-15". Note that overriding this
166+
default value may result in unsupported behavior.
195167
:paramtype api_version: str
196168
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
197169
Retry-After header is present.
@@ -262,7 +234,6 @@ def __init__(
262234
self.partition_key_range_id_region = PartitionKeyRangeIdRegionOperations(
263235
self._client, self._config, self._serialize, self._deserialize
264236
)
265-
self.graph_resources = GraphResourcesOperations(self._client, self._config, self._serialize, self._deserialize)
266237
self.sql_resources = SqlResourcesOperations(self._client, self._config, self._serialize, self._deserialize)
267238
self.mongo_db_resources = MongoDBResourcesOperations(
268239
self._client, self._config, self._serialize, self._deserialize
@@ -275,18 +246,12 @@ def __init__(
275246
self._client, self._config, self._serialize, self._deserialize
276247
)
277248
self.locations = LocationsOperations(self._client, self._config, self._serialize, self._deserialize)
278-
self.data_transfer_jobs = DataTransferJobsOperations(
279-
self._client, self._config, self._serialize, self._deserialize
280-
)
281249
self.cassandra_clusters = CassandraClustersOperations(
282250
self._client, self._config, self._serialize, self._deserialize
283251
)
284252
self.cassandra_data_centers = CassandraDataCentersOperations(
285253
self._client, self._config, self._serialize, self._deserialize
286254
)
287-
self.network_security_perimeter_configurations = NetworkSecurityPerimeterConfigurationsOperations(
288-
self._client, self._config, self._serialize, self._deserialize
289-
)
290255
self.notebook_workspaces = NotebookWorkspacesOperations(
291256
self._client, self._config, self._serialize, self._deserialize
292257
)
@@ -333,17 +298,6 @@ def __init__(
333298
self._client, self._config, self._serialize, self._deserialize
334299
)
335300
self.service = ServiceOperations(self._client, self._config, self._serialize, self._deserialize)
336-
self.throughput_pools = ThroughputPoolsOperations(
337-
self._client, self._config, self._serialize, self._deserialize
338-
)
339-
self.throughput_pool = ThroughputPoolOperations(self._client, self._config, self._serialize, self._deserialize)
340-
self.throughput_pool_accounts = ThroughputPoolAccountsOperations(
341-
self._client, self._config, self._serialize, self._deserialize
342-
)
343-
self.throughput_pool_account = ThroughputPoolAccountOperations(
344-
self._client, self._config, self._serialize, self._deserialize
345-
)
346-
self.chaos_fault = ChaosFaultOperations(self._client, self._config, self._serialize, self._deserialize)
347301

348302
def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
349303
"""Runs the network request through the client's chained policies.

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

+1-1
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 = "10.0.0b4"
9+
VERSION = "9.7.0"

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ class CosmosDBManagementClientConfiguration: # pylint: disable=too-many-instanc
2828
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
2929
:param subscription_id: The ID of the target subscription. Required.
3030
:type subscription_id: str
31-
:keyword api_version: Api Version. Default value is "2024-09-01-preview". Note that overriding
32-
this default value may result in unsupported behavior.
31+
:keyword api_version: Api Version. Default value is "2024-11-15". Note that overriding this
32+
default value may result in unsupported behavior.
3333
:paramtype api_version: str
3434
"""
3535

3636
def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
37-
api_version: str = kwargs.pop("api_version", "2024-09-01-preview")
37+
api_version: str = kwargs.pop("api_version", "2024-11-15")
3838

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

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

+2-48
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,16 @@
2222
CassandraClustersOperations,
2323
CassandraDataCentersOperations,
2424
CassandraResourcesOperations,
25-
ChaosFaultOperations,
2625
CollectionOperations,
2726
CollectionPartitionOperations,
2827
CollectionPartitionRegionOperations,
2928
CollectionRegionOperations,
30-
DataTransferJobsOperations,
3129
DatabaseAccountRegionOperations,
3230
DatabaseAccountsOperations,
3331
DatabaseOperations,
34-
GraphResourcesOperations,
3532
GremlinResourcesOperations,
3633
LocationsOperations,
3734
MongoDBResourcesOperations,
38-
NetworkSecurityPerimeterConfigurationsOperations,
3935
NotebookWorkspacesOperations,
4036
Operations,
4137
PartitionKeyRangeIdOperations,
@@ -60,10 +56,6 @@
6056
ServiceOperations,
6157
SqlResourcesOperations,
6258
TableResourcesOperations,
63-
ThroughputPoolAccountOperations,
64-
ThroughputPoolAccountsOperations,
65-
ThroughputPoolOperations,
66-
ThroughputPoolsOperations,
6759
)
6860

6961
if TYPE_CHECKING:
@@ -105,8 +97,6 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
10597
:ivar partition_key_range_id_region: PartitionKeyRangeIdRegionOperations operations
10698
:vartype partition_key_range_id_region:
10799
azure.mgmt.cosmosdb.aio.operations.PartitionKeyRangeIdRegionOperations
108-
:ivar graph_resources: GraphResourcesOperations operations
109-
:vartype graph_resources: azure.mgmt.cosmosdb.aio.operations.GraphResourcesOperations
110100
:ivar sql_resources: SqlResourcesOperations operations
111101
:vartype sql_resources: azure.mgmt.cosmosdb.aio.operations.SqlResourcesOperations
112102
:ivar mongo_db_resources: MongoDBResourcesOperations operations
@@ -119,17 +109,11 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
119109
:vartype gremlin_resources: azure.mgmt.cosmosdb.aio.operations.GremlinResourcesOperations
120110
:ivar locations: LocationsOperations operations
121111
:vartype locations: azure.mgmt.cosmosdb.aio.operations.LocationsOperations
122-
:ivar data_transfer_jobs: DataTransferJobsOperations operations
123-
:vartype data_transfer_jobs: azure.mgmt.cosmosdb.aio.operations.DataTransferJobsOperations
124112
:ivar cassandra_clusters: CassandraClustersOperations operations
125113
:vartype cassandra_clusters: azure.mgmt.cosmosdb.aio.operations.CassandraClustersOperations
126114
:ivar cassandra_data_centers: CassandraDataCentersOperations operations
127115
:vartype cassandra_data_centers:
128116
azure.mgmt.cosmosdb.aio.operations.CassandraDataCentersOperations
129-
:ivar network_security_perimeter_configurations:
130-
NetworkSecurityPerimeterConfigurationsOperations operations
131-
:vartype network_security_perimeter_configurations:
132-
azure.mgmt.cosmosdb.aio.operations.NetworkSecurityPerimeterConfigurationsOperations
133117
:ivar notebook_workspaces: NotebookWorkspacesOperations operations
134118
:vartype notebook_workspaces: azure.mgmt.cosmosdb.aio.operations.NotebookWorkspacesOperations
135119
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
@@ -175,26 +159,14 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
175159
azure.mgmt.cosmosdb.aio.operations.RestorableTableResourcesOperations
176160
:ivar service: ServiceOperations operations
177161
:vartype service: azure.mgmt.cosmosdb.aio.operations.ServiceOperations
178-
:ivar throughput_pools: ThroughputPoolsOperations operations
179-
:vartype throughput_pools: azure.mgmt.cosmosdb.aio.operations.ThroughputPoolsOperations
180-
:ivar throughput_pool: ThroughputPoolOperations operations
181-
:vartype throughput_pool: azure.mgmt.cosmosdb.aio.operations.ThroughputPoolOperations
182-
:ivar throughput_pool_accounts: ThroughputPoolAccountsOperations operations
183-
:vartype throughput_pool_accounts:
184-
azure.mgmt.cosmosdb.aio.operations.ThroughputPoolAccountsOperations
185-
:ivar throughput_pool_account: ThroughputPoolAccountOperations operations
186-
:vartype throughput_pool_account:
187-
azure.mgmt.cosmosdb.aio.operations.ThroughputPoolAccountOperations
188-
:ivar chaos_fault: ChaosFaultOperations operations
189-
:vartype chaos_fault: azure.mgmt.cosmosdb.aio.operations.ChaosFaultOperations
190162
:param credential: Credential needed for the client to connect to Azure. Required.
191163
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
192164
:param subscription_id: The ID of the target subscription. Required.
193165
:type subscription_id: str
194166
:param base_url: Service URL. Default value is "https://management.azure.com".
195167
:type base_url: str
196-
:keyword api_version: Api Version. Default value is "2024-09-01-preview". Note that overriding
197-
this default value may result in unsupported behavior.
168+
:keyword api_version: Api Version. Default value is "2024-11-15". Note that overriding this
169+
default value may result in unsupported behavior.
198170
:paramtype api_version: str
199171
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
200172
Retry-After header is present.
@@ -265,7 +237,6 @@ def __init__(
265237
self.partition_key_range_id_region = PartitionKeyRangeIdRegionOperations(
266238
self._client, self._config, self._serialize, self._deserialize
267239
)
268-
self.graph_resources = GraphResourcesOperations(self._client, self._config, self._serialize, self._deserialize)
269240
self.sql_resources = SqlResourcesOperations(self._client, self._config, self._serialize, self._deserialize)
270241
self.mongo_db_resources = MongoDBResourcesOperations(
271242
self._client, self._config, self._serialize, self._deserialize
@@ -278,18 +249,12 @@ def __init__(
278249
self._client, self._config, self._serialize, self._deserialize
279250
)
280251
self.locations = LocationsOperations(self._client, self._config, self._serialize, self._deserialize)
281-
self.data_transfer_jobs = DataTransferJobsOperations(
282-
self._client, self._config, self._serialize, self._deserialize
283-
)
284252
self.cassandra_clusters = CassandraClustersOperations(
285253
self._client, self._config, self._serialize, self._deserialize
286254
)
287255
self.cassandra_data_centers = CassandraDataCentersOperations(
288256
self._client, self._config, self._serialize, self._deserialize
289257
)
290-
self.network_security_perimeter_configurations = NetworkSecurityPerimeterConfigurationsOperations(
291-
self._client, self._config, self._serialize, self._deserialize
292-
)
293258
self.notebook_workspaces = NotebookWorkspacesOperations(
294259
self._client, self._config, self._serialize, self._deserialize
295260
)
@@ -336,17 +301,6 @@ def __init__(
336301
self._client, self._config, self._serialize, self._deserialize
337302
)
338303
self.service = ServiceOperations(self._client, self._config, self._serialize, self._deserialize)
339-
self.throughput_pools = ThroughputPoolsOperations(
340-
self._client, self._config, self._serialize, self._deserialize
341-
)
342-
self.throughput_pool = ThroughputPoolOperations(self._client, self._config, self._serialize, self._deserialize)
343-
self.throughput_pool_accounts = ThroughputPoolAccountsOperations(
344-
self._client, self._config, self._serialize, self._deserialize
345-
)
346-
self.throughput_pool_account = ThroughputPoolAccountOperations(
347-
self._client, self._config, self._serialize, self._deserialize
348-
)
349-
self.chaos_fault = ChaosFaultOperations(self._client, self._config, self._serialize, self._deserialize)
350304

351305
def _send_request(
352306
self, request: HttpRequest, *, stream: bool = False, **kwargs: Any

0 commit comments

Comments
 (0)