Skip to content

Commit 67fcacd

Browse files
author
SDKAuto
committed
CodeGen from PR 13253 in Azure/azure-rest-api-specs
Merge ffc328066144db99928cbefda002485420a326c2 into f14ad9b
1 parent 1fc8f30 commit 67fcacd

File tree

50 files changed

+311
-270
lines changed

Some content is hidden

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

50 files changed

+311
-270
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(
4848

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ 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
113114
self._deserialize = Deserializer(client_models)
114115

115116
self.database_accounts = DatabaseAccountsOperations(

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"chosen_version": "2021-01-15",
3-
"total_api_version_list": ["2021-01-15"],
2+
"chosen_version": "2021-03-15",
3+
"total_api_version_list": ["2021-03-15"],
44
"client": {
55
"name": "CosmosDBManagementClient",
66
"filename": "_cosmos_db_management_client",
@@ -9,7 +9,7 @@
99
"custom_base_url": null,
1010
"azure_arm": true,
1111
"has_lro_operations": true,
12-
"client_side_validation": true
12+
"client_side_validation": false
1313
},
1414
"global_parameters": {
1515
"sync": {

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(
4545

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ 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
110111
self._deserialize = Deserializer(client_models)
111112

112113
self.database_accounts = DatabaseAccountsOperations(

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def list_cassandra_keyspaces(
6565
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
6666
}
6767
error_map.update(kwargs.pop('error_map', {}))
68-
api_version = "2021-01-15"
68+
api_version = "2021-03-15"
6969
accept = "application/json"
7070

7171
def prepare_request(next_link=None):
@@ -143,7 +143,7 @@ async def get_cassandra_keyspace(
143143
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
144144
}
145145
error_map.update(kwargs.pop('error_map', {}))
146-
api_version = "2021-01-15"
146+
api_version = "2021-03-15"
147147
accept = "application/json"
148148

149149
# Construct URL
@@ -193,7 +193,7 @@ async def _create_update_cassandra_keyspace_initial(
193193
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
194194
}
195195
error_map.update(kwargs.pop('error_map', {}))
196-
api_version = "2021-01-15"
196+
api_version = "2021-03-15"
197197
content_type = kwargs.pop("content_type", "application/json")
198198
accept = "application/json"
199199

@@ -326,7 +326,7 @@ async def _delete_cassandra_keyspace_initial(
326326
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
327327
}
328328
error_map.update(kwargs.pop('error_map', {}))
329-
api_version = "2021-01-15"
329+
api_version = "2021-03-15"
330330

331331
# Construct URL
332332
url = self._delete_cassandra_keyspace_initial.metadata['url'] # type: ignore
@@ -453,7 +453,7 @@ async def get_cassandra_keyspace_throughput(
453453
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
454454
}
455455
error_map.update(kwargs.pop('error_map', {}))
456-
api_version = "2021-01-15"
456+
api_version = "2021-03-15"
457457
accept = "application/json"
458458

459459
# Construct URL
@@ -503,7 +503,7 @@ async def _update_cassandra_keyspace_throughput_initial(
503503
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
504504
}
505505
error_map.update(kwargs.pop('error_map', {}))
506-
api_version = "2021-01-15"
506+
api_version = "2021-03-15"
507507
content_type = kwargs.pop("content_type", "application/json")
508508
accept = "application/json"
509509

@@ -636,7 +636,7 @@ async def _migrate_cassandra_keyspace_to_autoscale_initial(
636636
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
637637
}
638638
error_map.update(kwargs.pop('error_map', {}))
639-
api_version = "2021-01-15"
639+
api_version = "2021-03-15"
640640
accept = "application/json"
641641

642642
# Construct URL
@@ -760,7 +760,7 @@ async def _migrate_cassandra_keyspace_to_manual_throughput_initial(
760760
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
761761
}
762762
error_map.update(kwargs.pop('error_map', {}))
763-
api_version = "2021-01-15"
763+
api_version = "2021-03-15"
764764
accept = "application/json"
765765

766766
# Construct URL
@@ -897,7 +897,7 @@ def list_cassandra_tables(
897897
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
898898
}
899899
error_map.update(kwargs.pop('error_map', {}))
900-
api_version = "2021-01-15"
900+
api_version = "2021-03-15"
901901
accept = "application/json"
902902

903903
def prepare_request(next_link=None):
@@ -978,7 +978,7 @@ async def get_cassandra_table(
978978
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
979979
}
980980
error_map.update(kwargs.pop('error_map', {}))
981-
api_version = "2021-01-15"
981+
api_version = "2021-03-15"
982982
accept = "application/json"
983983

984984
# Construct URL
@@ -1030,7 +1030,7 @@ async def _create_update_cassandra_table_initial(
10301030
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
10311031
}
10321032
error_map.update(kwargs.pop('error_map', {}))
1033-
api_version = "2021-01-15"
1033+
api_version = "2021-03-15"
10341034
content_type = kwargs.pop("content_type", "application/json")
10351035
accept = "application/json"
10361036

@@ -1170,7 +1170,7 @@ async def _delete_cassandra_table_initial(
11701170
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
11711171
}
11721172
error_map.update(kwargs.pop('error_map', {}))
1173-
api_version = "2021-01-15"
1173+
api_version = "2021-03-15"
11741174

11751175
# Construct URL
11761176
url = self._delete_cassandra_table_initial.metadata['url'] # type: ignore
@@ -1306,7 +1306,7 @@ async def get_cassandra_table_throughput(
13061306
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
13071307
}
13081308
error_map.update(kwargs.pop('error_map', {}))
1309-
api_version = "2021-01-15"
1309+
api_version = "2021-03-15"
13101310
accept = "application/json"
13111311

13121312
# Construct URL
@@ -1358,7 +1358,7 @@ async def _update_cassandra_table_throughput_initial(
13581358
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
13591359
}
13601360
error_map.update(kwargs.pop('error_map', {}))
1361-
api_version = "2021-01-15"
1361+
api_version = "2021-03-15"
13621362
content_type = kwargs.pop("content_type", "application/json")
13631363
accept = "application/json"
13641364

@@ -1498,7 +1498,7 @@ async def _migrate_cassandra_table_to_autoscale_initial(
14981498
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
14991499
}
15001500
error_map.update(kwargs.pop('error_map', {}))
1501-
api_version = "2021-01-15"
1501+
api_version = "2021-03-15"
15021502
accept = "application/json"
15031503

15041504
# Construct URL
@@ -1629,7 +1629,7 @@ async def _migrate_cassandra_table_to_manual_throughput_initial(
16291629
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
16301630
}
16311631
error_map.update(kwargs.pop('error_map', {}))
1632-
api_version = "2021-01-15"
1632+
api_version = "2021-03-15"
16331633
accept = "application/json"
16341634

16351635
# Construct URL

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def list_metrics(
7575
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
7676
}
7777
error_map.update(kwargs.pop('error_map', {}))
78-
api_version = "2021-01-15"
78+
api_version = "2021-03-15"
7979
accept = "application/json"
8080

8181
def prepare_request(next_link=None):
@@ -162,7 +162,7 @@ def list_usages(
162162
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
163163
}
164164
error_map.update(kwargs.pop('error_map', {}))
165-
api_version = "2021-01-15"
165+
api_version = "2021-03-15"
166166
accept = "application/json"
167167

168168
def prepare_request(next_link=None):
@@ -246,7 +246,7 @@ def list_metric_definitions(
246246
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
247247
}
248248
error_map.update(kwargs.pop('error_map', {}))
249-
api_version = "2021-01-15"
249+
api_version = "2021-03-15"
250250
accept = "application/json"
251251

252252
def prepare_request(next_link=None):

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def list_metrics(
7575
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
7676
}
7777
error_map.update(kwargs.pop('error_map', {}))
78-
api_version = "2021-01-15"
78+
api_version = "2021-03-15"
7979
accept = "application/json"
8080

8181
def prepare_request(next_link=None):
@@ -162,7 +162,7 @@ def list_usages(
162162
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
163163
}
164164
error_map.update(kwargs.pop('error_map', {}))
165-
api_version = "2021-01-15"
165+
api_version = "2021-03-15"
166166
accept = "application/json"
167167

168168
def prepare_request(next_link=None):

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def list_metrics(
7878
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
7979
}
8080
error_map.update(kwargs.pop('error_map', {}))
81-
api_version = "2021-01-15"
81+
api_version = "2021-03-15"
8282
accept = "application/json"
8383

8484
def prepare_request(next_link=None):

0 commit comments

Comments
 (0)