Skip to content

Commit b55e230

Browse files
[AutoRelease] t2-cosmosdb-2024-09-19-29269(can only be merged by SDK owner) (#37465)
* code and test * Update CHANGELOG.md --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent 430cd21 commit b55e230

File tree

414 files changed

+28925
-2821
lines changed

Some content is hidden

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

414 files changed

+28925
-2821
lines changed

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

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

3+
## 10.0.0b4 (2024-09-23)
4+
5+
### Features Added
6+
7+
- Client `CosmosDBManagementClient` added operation group `network_security_perimeter_configurations`
8+
- Client `CosmosDBManagementClient` added operation group `chaos_fault`
9+
- Enum `DataTransferComponent` added member `COSMOS_DB_MONGO_V_CORE`
10+
- Model `DatabaseAccountCreateUpdateParameters` added property `capacity_mode`
11+
- Model `DatabaseAccountGetResults` added property `capacity_mode`
12+
- Model `DatabaseAccountGetResults` added property `capacity_mode_change_transition_state`
13+
- Model `DatabaseAccountUpdateParameters` added property `capacity_mode`
14+
- Enum `ServerVersion` added member `FIVE0`
15+
- Enum `ServerVersion` added member `SEVEN0`
16+
- Enum `ServerVersion` added member `SIX0`
17+
- Model `ServiceResourceCreateUpdateParameters` added parameter `properties` in method `__init__`
18+
- Model `SqlDedicatedGatewayServiceResourceProperties` added property `dedicated_gateway_type`
19+
- Added model `AccessRule`
20+
- Added enum `AccessRuleDirection`
21+
- Added model `AccessRuleProperties`
22+
- Added model `AccessRulePropertiesSubscriptionsItem`
23+
- Added enum `CapacityMode`
24+
- Added model `CapacityModeChangeTransitionState`
25+
- Added enum `CapacityModeTransitionStatus`
26+
- Added model `ChaosFaultListResponse`
27+
- Added model `ChaosFaultResource`
28+
- Added model `CosmosMongoVCoreDataTransferDataSourceSink`
29+
- Added model `DataTransferServiceResourceCreateUpdateProperties`
30+
- Added enum `DedicatedGatewayType`
31+
- Added model `GraphAPIComputeServiceResourceCreateUpdateProperties`
32+
- Added enum `IssueType`
33+
- Added model `MaterializedViewsBuilderServiceResourceCreateUpdateProperties`
34+
- Added model `NetworkSecurityPerimeter`
35+
- Added model `NetworkSecurityPerimeterConfiguration`
36+
- Added model `NetworkSecurityPerimeterConfigurationListResult`
37+
- Added model `NetworkSecurityPerimeterConfigurationProperties`
38+
- Added enum `NetworkSecurityPerimeterConfigurationProvisioningState`
39+
- Added model `NetworkSecurityProfile`
40+
- Added model `ProvisioningIssue`
41+
- Added model `ProvisioningIssueProperties`
42+
- Added model `ResourceAssociation`
43+
- Added enum `ResourceAssociationAccessMode`
44+
- Added model `ServiceResourceCreateUpdateProperties`
45+
- Added enum `Severity`
46+
- Added model `SqlDedicatedGatewayServiceResourceCreateUpdateProperties`
47+
- Added enum `SupportedActions`
48+
- Added model `ChaosFaultOperations`
49+
- Added model `NetworkSecurityPerimeterConfigurationsOperations`
50+
51+
### Breaking Changes
52+
53+
- Deleted or renamed client operation group `CosmosDBManagementClient.mongo_clusters`
54+
- Deleted or renamed enum value `CreateMode.POINT_IN_TIME_RESTORE`
55+
- Model `ServiceResourceCreateUpdateParameters` deleted or renamed its instance variable `instance_size`
56+
- Model `ServiceResourceCreateUpdateParameters` deleted or renamed its instance variable `instance_count`
57+
- Model `ServiceResourceCreateUpdateParameters` deleted or renamed its instance variable `service_type`
58+
- Deleted or renamed model `CheckNameAvailabilityReason`
59+
- Deleted or renamed model `CheckNameAvailabilityRequest`
60+
- Deleted or renamed model `CheckNameAvailabilityResponse`
61+
- Deleted or renamed model `ConnectionString`
62+
- Deleted or renamed model `FirewallRule`
63+
- Deleted or renamed model `ListConnectionStringsResult`
64+
- Deleted or renamed model `MongoCluster`
65+
- Deleted or renamed model `MongoClusterRestoreParameters`
66+
- Deleted or renamed model `MongoClusterStatus`
67+
- Deleted or renamed model `MongoClusterUpdate`
68+
- Deleted or renamed model `NodeGroupProperties`
69+
- Deleted or renamed model `NodeGroupSpec`
70+
- Deleted or renamed model `NodeKind`
71+
- Deleted or renamed model `ProvisioningState`
72+
- Deleted or renamed model `MongoClustersOperations`
73+
374
## 9.6.0 (2024-09-18)
475

576
### Features Added
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "3519c80fe510a268f6e59a29ccac8a53fdec15b6",
2+
"commit": "b72e0199fa3242d64b0b49f38e71586066a8c048",
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 --tag=package-2024-08 --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=/home/vsts/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

Lines changed: 3 additions & 3 deletions
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-08-15". Note that overriding this
32-
default value may result in unsupported behavior.
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.
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-08-15")
37+
api_version: str = kwargs.pop("api_version", "2024-09-01-preview")
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

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,20 @@
2222
CassandraClustersOperations,
2323
CassandraDataCentersOperations,
2424
CassandraResourcesOperations,
25+
ChaosFaultOperations,
2526
CollectionOperations,
2627
CollectionPartitionOperations,
2728
CollectionPartitionRegionOperations,
2829
CollectionRegionOperations,
30+
DataTransferJobsOperations,
2931
DatabaseAccountRegionOperations,
3032
DatabaseAccountsOperations,
3133
DatabaseOperations,
34+
GraphResourcesOperations,
3235
GremlinResourcesOperations,
3336
LocationsOperations,
3437
MongoDBResourcesOperations,
38+
NetworkSecurityPerimeterConfigurationsOperations,
3539
NotebookWorkspacesOperations,
3640
Operations,
3741
PartitionKeyRangeIdOperations,
@@ -56,6 +60,10 @@
5660
ServiceOperations,
5761
SqlResourcesOperations,
5862
TableResourcesOperations,
63+
ThroughputPoolAccountOperations,
64+
ThroughputPoolAccountsOperations,
65+
ThroughputPoolOperations,
66+
ThroughputPoolsOperations,
5967
)
6068

6169
if TYPE_CHECKING:
@@ -96,6 +104,8 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
96104
:ivar partition_key_range_id_region: PartitionKeyRangeIdRegionOperations operations
97105
:vartype partition_key_range_id_region:
98106
azure.mgmt.cosmosdb.operations.PartitionKeyRangeIdRegionOperations
107+
:ivar graph_resources: GraphResourcesOperations operations
108+
:vartype graph_resources: azure.mgmt.cosmosdb.operations.GraphResourcesOperations
99109
:ivar sql_resources: SqlResourcesOperations operations
100110
:vartype sql_resources: azure.mgmt.cosmosdb.operations.SqlResourcesOperations
101111
:ivar mongo_db_resources: MongoDBResourcesOperations operations
@@ -108,10 +118,16 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
108118
:vartype gremlin_resources: azure.mgmt.cosmosdb.operations.GremlinResourcesOperations
109119
:ivar locations: LocationsOperations operations
110120
:vartype locations: azure.mgmt.cosmosdb.operations.LocationsOperations
121+
:ivar data_transfer_jobs: DataTransferJobsOperations operations
122+
:vartype data_transfer_jobs: azure.mgmt.cosmosdb.operations.DataTransferJobsOperations
111123
:ivar cassandra_clusters: CassandraClustersOperations operations
112124
:vartype cassandra_clusters: azure.mgmt.cosmosdb.operations.CassandraClustersOperations
113125
:ivar cassandra_data_centers: CassandraDataCentersOperations operations
114126
: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
115131
:ivar notebook_workspaces: NotebookWorkspacesOperations operations
116132
:vartype notebook_workspaces: azure.mgmt.cosmosdb.operations.NotebookWorkspacesOperations
117133
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
@@ -156,14 +172,26 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
156172
azure.mgmt.cosmosdb.operations.RestorableTableResourcesOperations
157173
:ivar service: ServiceOperations operations
158174
: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
159187
:param credential: Credential needed for the client to connect to Azure. Required.
160188
:type credential: ~azure.core.credentials.TokenCredential
161189
:param subscription_id: The ID of the target subscription. Required.
162190
:type subscription_id: str
163191
:param base_url: Service URL. Default value is "https://management.azure.com".
164192
:type base_url: str
165-
:keyword api_version: Api Version. Default value is "2024-08-15". Note that overriding this
166-
default value may result in unsupported behavior.
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.
167195
:paramtype api_version: str
168196
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
169197
Retry-After header is present.
@@ -234,6 +262,7 @@ def __init__(
234262
self.partition_key_range_id_region = PartitionKeyRangeIdRegionOperations(
235263
self._client, self._config, self._serialize, self._deserialize
236264
)
265+
self.graph_resources = GraphResourcesOperations(self._client, self._config, self._serialize, self._deserialize)
237266
self.sql_resources = SqlResourcesOperations(self._client, self._config, self._serialize, self._deserialize)
238267
self.mongo_db_resources = MongoDBResourcesOperations(
239268
self._client, self._config, self._serialize, self._deserialize
@@ -246,12 +275,18 @@ def __init__(
246275
self._client, self._config, self._serialize, self._deserialize
247276
)
248277
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+
)
249281
self.cassandra_clusters = CassandraClustersOperations(
250282
self._client, self._config, self._serialize, self._deserialize
251283
)
252284
self.cassandra_data_centers = CassandraDataCentersOperations(
253285
self._client, self._config, self._serialize, self._deserialize
254286
)
287+
self.network_security_perimeter_configurations = NetworkSecurityPerimeterConfigurationsOperations(
288+
self._client, self._config, self._serialize, self._deserialize
289+
)
255290
self.notebook_workspaces = NotebookWorkspacesOperations(
256291
self._client, self._config, self._serialize, self._deserialize
257292
)
@@ -298,6 +333,17 @@ def __init__(
298333
self._client, self._config, self._serialize, self._deserialize
299334
)
300335
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)
301347

302348
def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
303349
"""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.6.0"
9+
VERSION = "10.0.0b4"

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
@@ -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-08-15". Note that overriding this
32-
default value may result in unsupported behavior.
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.
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-08-15")
37+
api_version: str = kwargs.pop("api_version", "2024-09-01-preview")
3838

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

0 commit comments

Comments
 (0)