Skip to content

Commit fe9117a

Browse files
author
SDKAuto
committed
CodeGen from PR 14255 in Azure/azure-rest-api-specs
Merge 6ac39240d4cbc9af46c34c51dba55647e3fa9804 into 119d0a9
1 parent 97c4a93 commit fe9117a

File tree

51 files changed

+858
-768
lines changed

Some content is hidden

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

51 files changed

+858
-768
lines changed
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
22
"autorest": "3.4.2",
3-
"use": "@autorest/[email protected]",
4-
"commit": "c6a18a2e52c498ab976dddd807221c2a12d5f9d1",
3+
"use": [
4+
"@autorest/[email protected]",
5+
"@autorest/[email protected]"
6+
],
7+
"commit": "f812180d6dc429c3cc7807e149386103d3652f8e",
58
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6-
"autorest_command": "autorest specification/cosmos-db/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.6.6 --version=3.4.2",
9+
"autorest_command": "autorest specification/cosmos-db/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.0 --use=@autorest/[email protected] --version=3.4.2",
710
"readme": "specification/cosmos-db/resource-manager/readme.md"
811
}

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-04-15"
51+
self.api_version = "2021-05-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/_metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"chosen_version": "2021-04-15",
3-
"total_api_version_list": ["2021-04-15"],
2+
"chosen_version": "2021-05-15",
3+
"total_api_version_list": ["2021-05-15"],
44
"client": {
55
"name": "CosmosDBManagementClient",
66
"filename": "_cosmos_db_management_client",

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.3.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-04-15"
48+
self.api_version = "2021-05-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/operations/_cassandra_resources_operations.py

Lines changed: 62 additions & 62 deletions
Large diffs are not rendered by default.

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def list_metrics(
4848
database_rid: str,
4949
collection_rid: str,
5050
filter: str,
51-
**kwargs
51+
**kwargs: Any
5252
) -> AsyncIterable["_models.MetricListResult"]:
5353
"""Retrieves the metrics determined by the given filter for the given database account and
5454
collection.
@@ -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-04-15"
78+
api_version = "2021-05-15"
7979
accept = "application/json"
8080

8181
def prepare_request(next_link=None):
@@ -137,7 +137,7 @@ def list_usages(
137137
database_rid: str,
138138
collection_rid: str,
139139
filter: Optional[str] = None,
140-
**kwargs
140+
**kwargs: Any
141141
) -> AsyncIterable["_models.UsagesResult"]:
142142
"""Retrieves the usages (most recent storage data) for the given collection.
143143
@@ -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-04-15"
165+
api_version = "2021-05-15"
166166
accept = "application/json"
167167

168168
def prepare_request(next_link=None):
@@ -224,7 +224,7 @@ def list_metric_definitions(
224224
account_name: str,
225225
database_rid: str,
226226
collection_rid: str,
227-
**kwargs
227+
**kwargs: Any
228228
) -> AsyncIterable["_models.MetricDefinitionsListResult"]:
229229
"""Retrieves metric definitions for the given collection.
230230
@@ -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-04-15"
249+
api_version = "2021-05-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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def list_metrics(
4848
database_rid: str,
4949
collection_rid: str,
5050
filter: str,
51-
**kwargs
51+
**kwargs: Any
5252
) -> AsyncIterable["_models.PartitionMetricListResult"]:
5353
"""Retrieves the metrics determined by the given filter for the given collection, split by
5454
partition.
@@ -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-04-15"
78+
api_version = "2021-05-15"
7979
accept = "application/json"
8080

8181
def prepare_request(next_link=None):
@@ -137,7 +137,7 @@ def list_usages(
137137
database_rid: str,
138138
collection_rid: str,
139139
filter: Optional[str] = None,
140-
**kwargs
140+
**kwargs: Any
141141
) -> AsyncIterable["_models.PartitionUsagesResult"]:
142142
"""Retrieves the usages (most recent storage data) for the given collection, split by partition.
143143
@@ -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-04-15"
165+
api_version = "2021-05-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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def list_metrics(
4949
database_rid: str,
5050
collection_rid: str,
5151
filter: str,
52-
**kwargs
52+
**kwargs: Any
5353
) -> AsyncIterable["_models.PartitionMetricListResult"]:
5454
"""Retrieves the metrics determined by the given filter for the given collection and region, split
5555
by partition.
@@ -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-04-15"
81+
api_version = "2021-05-15"
8282
accept = "application/json"
8383

8484
def prepare_request(next_link=None):

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def list_metrics(
4949
database_rid: str,
5050
collection_rid: str,
5151
filter: str,
52-
**kwargs
52+
**kwargs: Any
5353
) -> AsyncIterable["_models.MetricListResult"]:
5454
"""Retrieves the metrics determined by the given filter for the given database account, collection
5555
and region.
@@ -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-04-15"
81+
api_version = "2021-05-15"
8282
accept = "application/json"
8383

8484
def prepare_request(next_link=None):

0 commit comments

Comments
 (0)