Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions sdk/cosmos/azure-mgmt-cosmosdb/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"autorest": "3.4.2",
"use": "@autorest/[email protected]",
"commit": "c6a18a2e52c498ab976dddd807221c2a12d5f9d1",
"use": [
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "f812180d6dc429c3cc7807e149386103d3652f8e",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"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",
"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",
"readme": "specification/cosmos-db/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2021-04-15"
self.api_version = "2021-05-15"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-cosmosdb/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chosen_version": "2021-04-15",
"total_api_version_list": ["2021-04-15"],
"chosen_version": "2021-05-15",
"total_api_version_list": ["2021-05-15"],
"client": {
"name": "CosmosDBManagementClient",
"filename": "_cosmos_db_management_client",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "6.3.0"
VERSION = "0.7.0"
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2021-04-15"
self.api_version = "2021-05-15"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-cosmosdb/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def list_metrics(
database_rid: str,
collection_rid: str,
filter: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.MetricListResult"]:
"""Retrieves the metrics determined by the given filter for the given database account and
collection.
Expand All @@ -75,7 +75,7 @@ def list_metrics(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-15"
api_version = "2021-05-15"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -137,7 +137,7 @@ def list_usages(
database_rid: str,
collection_rid: str,
filter: Optional[str] = None,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.UsagesResult"]:
"""Retrieves the usages (most recent storage data) for the given collection.

Expand All @@ -162,7 +162,7 @@ def list_usages(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-15"
api_version = "2021-05-15"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -224,7 +224,7 @@ def list_metric_definitions(
account_name: str,
database_rid: str,
collection_rid: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.MetricDefinitionsListResult"]:
"""Retrieves metric definitions for the given collection.

Expand All @@ -246,7 +246,7 @@ def list_metric_definitions(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-15"
api_version = "2021-05-15"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def list_metrics(
database_rid: str,
collection_rid: str,
filter: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.PartitionMetricListResult"]:
"""Retrieves the metrics determined by the given filter for the given collection, split by
partition.
Expand All @@ -75,7 +75,7 @@ def list_metrics(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-15"
api_version = "2021-05-15"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -137,7 +137,7 @@ def list_usages(
database_rid: str,
collection_rid: str,
filter: Optional[str] = None,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.PartitionUsagesResult"]:
"""Retrieves the usages (most recent storage data) for the given collection, split by partition.

Expand All @@ -162,7 +162,7 @@ def list_usages(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-15"
api_version = "2021-05-15"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def list_metrics(
database_rid: str,
collection_rid: str,
filter: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.PartitionMetricListResult"]:
"""Retrieves the metrics determined by the given filter for the given collection and region, split
by partition.
Expand Down Expand Up @@ -78,7 +78,7 @@ def list_metrics(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-15"
api_version = "2021-05-15"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def list_metrics(
database_rid: str,
collection_rid: str,
filter: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.MetricListResult"]:
"""Retrieves the metrics determined by the given filter for the given database account, collection
and region.
Expand Down Expand Up @@ -78,7 +78,7 @@ def list_metrics(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-15"
api_version = "2021-05-15"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def list_metrics(
account_name: str,
region: str,
filter: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.MetricListResult"]:
"""Retrieves the metrics determined by the given filter for the given database account and region.

Expand All @@ -71,7 +71,7 @@ def list_metrics(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-15"
api_version = "2021-05-15"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down
Loading