Skip to content

Commit 2d32ffe

Browse files
00Kai0SDKAutoYan Zhang (WICRESOFT NORTH AMERICA LTD)
authored
T2 cosmosdb 2021 02 23 (#16875)
* CodeGen from PR 13104 in Azure/azure-rest-api-specs add cosmosdb python track2 pipeline (#13104) * add cosmosdb python track2 pipeline * fix duplication error * test,version,CHANGELOG * fix test * regen sdk * fix changelog * fix readme * fix Co-authored-by: SDKAuto <[email protected]> Co-authored-by: Yan Zhang (WICRESOFT NORTH AMERICA LTD) <[email protected]>
1 parent 66cd060 commit 2d32ffe

File tree

66 files changed

+5689
-11696
lines changed

Some content is hidden

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

66 files changed

+5689
-11696
lines changed

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

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

3+
## 6.1.0 (2021-03-02)
4+
5+
**Features**
6+
7+
- Model DatabaseAccountGetResults has a new parameter network_acl_bypass
8+
- Model DatabaseAccountGetResults has a new parameter backup_policy
9+
- Model DatabaseAccountGetResults has a new parameter identity
10+
- Model DatabaseAccountGetResults has a new parameter network_acl_bypass_resource_ids
11+
- Model PrivateEndpointConnection has a new parameter group_id
12+
- Model PrivateEndpointConnection has a new parameter provisioning_state
13+
- Model ContainerPartitionKey has a new parameter system_key
14+
- Model DatabaseAccountUpdateParameters has a new parameter network_acl_bypass
15+
- Model DatabaseAccountUpdateParameters has a new parameter backup_policy
16+
- Model DatabaseAccountUpdateParameters has a new parameter identity
17+
- Model DatabaseAccountUpdateParameters has a new parameter network_acl_bypass_resource_ids
18+
- Model PrivateLinkServiceConnectionStateProperty has a new parameter description
19+
- Model DatabaseAccountCreateUpdateParameters has a new parameter network_acl_bypass
20+
- Model DatabaseAccountCreateUpdateParameters has a new parameter backup_policy
21+
- Model DatabaseAccountCreateUpdateParameters has a new parameter identity
22+
- Model DatabaseAccountCreateUpdateParameters has a new parameter network_acl_bypass_resource_ids
23+
324
## 6.0.0 (2020-11-24)
425

26+
- GA release
27+
528
## 6.0.0b1 (2020-10-12)
629

730
This is beta preview version.

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

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def __init__(
4848

4949
self.credential = credential
5050
self.subscription_id = subscription_id
51+
self.api_version = "2021-01-15"
5152
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5253
kwargs.setdefault('sdk_moniker', 'mgmt-cosmosdb/{}'.format(VERSION))
5354
self._configure(**kwargs)

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

-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ def __init__(
110110

111111
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
112112
self._serialize = Serializer(client_models)
113-
self._serialize.client_side_validation = False
114113
self._deserialize = Deserializer(client_models)
115114

116115
self.database_accounts = DatabaseAccountsOperations(
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
{
2+
"chosen_version": "2021-01-15",
3+
"total_api_version_list": ["2021-01-15"],
4+
"client": {
5+
"name": "CosmosDBManagementClient",
6+
"filename": "_cosmos_db_management_client",
7+
"description": "Azure Cosmos DB Database Service Resource Provider REST API.",
8+
"base_url": "\u0027https://management.azure.com\u0027",
9+
"custom_base_url": null,
10+
"azure_arm": true,
11+
"has_lro_operations": true,
12+
"client_side_validation": true
13+
},
14+
"global_parameters": {
15+
"sync": {
16+
"credential": {
17+
"signature": "credential, # type: \"TokenCredential\"",
18+
"description": "Credential needed for the client to connect to Azure.",
19+
"docstring_type": "~azure.core.credentials.TokenCredential",
20+
"required": true
21+
},
22+
"subscription_id": {
23+
"signature": "subscription_id, # type: str",
24+
"description": "The ID of the target subscription.",
25+
"docstring_type": "str",
26+
"required": true
27+
}
28+
},
29+
"async": {
30+
"credential": {
31+
"signature": "credential, # type: \"AsyncTokenCredential\"",
32+
"description": "Credential needed for the client to connect to Azure.",
33+
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
34+
"required": true
35+
},
36+
"subscription_id": {
37+
"signature": "subscription_id, # type: str",
38+
"description": "The ID of the target subscription.",
39+
"docstring_type": "str",
40+
"required": true
41+
}
42+
},
43+
"constant": {
44+
},
45+
"call": "credential, subscription_id"
46+
},
47+
"config": {
48+
"credential": true,
49+
"credential_scopes": ["https://management.azure.com/.default"],
50+
"credential_default_policy_type": "BearerTokenCredentialPolicy",
51+
"credential_default_policy_type_has_async_version": true,
52+
"credential_key_header_name": null
53+
},
54+
"operation_groups": {
55+
"database_accounts": "DatabaseAccountsOperations",
56+
"operations": "Operations",
57+
"database": "DatabaseOperations",
58+
"collection": "CollectionOperations",
59+
"collection_region": "CollectionRegionOperations",
60+
"database_account_region": "DatabaseAccountRegionOperations",
61+
"percentile_source_target": "PercentileSourceTargetOperations",
62+
"percentile_target": "PercentileTargetOperations",
63+
"percentile": "PercentileOperations",
64+
"collection_partition_region": "CollectionPartitionRegionOperations",
65+
"collection_partition": "CollectionPartitionOperations",
66+
"partition_key_range_id": "PartitionKeyRangeIdOperations",
67+
"partition_key_range_id_region": "PartitionKeyRangeIdRegionOperations",
68+
"sql_resources": "SqlResourcesOperations",
69+
"mongo_db_resources": "MongoDBResourcesOperations",
70+
"table_resources": "TableResourcesOperations",
71+
"cassandra_resources": "CassandraResourcesOperations",
72+
"gremlin_resources": "GremlinResourcesOperations",
73+
"notebook_workspaces": "NotebookWorkspacesOperations",
74+
"private_link_resources": "PrivateLinkResourcesOperations",
75+
"private_endpoint_connections": "PrivateEndpointConnectionsOperations"
76+
},
77+
"operation_mixins": {
78+
},
79+
"sync_imports": "None",
80+
"async_imports": "None"
81+
}

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 = "6.0.0"
9+
VERSION = "6.1.0"

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

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def __init__(
4545

4646
self.credential = credential
4747
self.subscription_id = subscription_id
48+
self.api_version = "2021-01-15"
4849
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
4950
kwargs.setdefault('sdk_moniker', 'mgmt-cosmosdb/{}'.format(VERSION))
5051
self._configure(**kwargs)

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

-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ def __init__(
107107

108108
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
109109
self._serialize = Serializer(client_models)
110-
self._serialize.client_side_validation = False
111110
self._deserialize = Deserializer(client_models)
112111

113112
self.database_accounts = DatabaseAccountsOperations(

0 commit comments

Comments
 (0)