Skip to content
Merged
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
16 changes: 16 additions & 0 deletions sdk/cosmos/azure-mgmt-cosmosdb/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Release History

## 7.0.0 (2022-07-22)

**Features**

- Added operation MongoDBResourcesOperations.begin_retrieve_continuous_backup_information
- Added operation group CassandraClustersOperations
- Added operation group CassandraDataCentersOperations
- Added operation group LocationsOperations
- Added operation group ServiceOperations
- Model DatabaseAccountCreateUpdateParameters has a new parameter capacity
- Model DatabaseAccountGetResults has a new parameter capacity
- Model DatabaseAccountUpdateParameters has a new parameter capacity
- Model GremlinGraphGetPropertiesResource has a new parameter analytical_storage_ttl
- Model GremlinGraphResource has a new parameter analytical_storage_ttl
- Model PeriodicModeProperties has a new parameter backup_storage_redundancy

## 7.0.0b6 (2022-05-23)

**Features**
Expand Down
2 changes: 1 addition & 1 deletion sdk/cosmos/azure-mgmt-cosmosdb/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
include _meta.json
recursive-include tests *.py *.yaml
recursive-include tests *.py *.json
include *.md
include azure/__init__.py
include azure/mgmt/__init__.py
Expand Down
6 changes: 3 additions & 3 deletions sdk/cosmos/azure-mgmt-cosmosdb/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"autorest": "3.7.2",
"use": [
"@autorest/python@5.13.0",
"@autorest/python@5.16.0",
"@autorest/modelerfour@4.19.3"
],
"commit": "d916ae110aa385d49cd24787a05611345696644b",
"commit": "432872fac1d0f8edcae98a0e8504afc0ee302710",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/cosmos-db/resource-manager/readme.md --multiapi --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.13.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
"autorest_command": "autorest specification/cosmos-db/resource-manager/readme.md --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --tag=package-2022-05 --use=@autorest/python@5.16.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
"readme": "specification/cosmos-db/resource-manager/readme.md"
}
13 changes: 9 additions & 4 deletions sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@
from ._version import VERSION

__version__ = VERSION

try:
from ._patch import __all__ as _patch_all
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk
__all__ = ['CosmosDBManagementClient']
__all__.extend([p for p in _patch_all if p not in __all__])

# `._patch.py` is used for handwritten extensions to the generated code
# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
from ._patch import patch_sdk
patch_sdk()
_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class CosmosDBManagementClientConfiguration(Configuration): # pylint: disable=t
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2022-02-15-preview". Note that overriding
this default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2022-05-15". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

Expand All @@ -41,7 +41,7 @@ def __init__(
**kwargs: Any
) -> None:
super(CosmosDBManagementClientConfiguration, self).__init__(**kwargs)
api_version = kwargs.pop('api_version', "2022-02-15-preview") # type: str
api_version = kwargs.pop('api_version', "2022-05-15") # type: str

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

Large diffs are not rendered by default.

140 changes: 0 additions & 140 deletions sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_metadata.json

This file was deleted.

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 = "7.0.0b6"
VERSION = "7.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@
# --------------------------------------------------------------------------

from ._cosmos_db_management_client import CosmosDBManagementClient

try:
from ._patch import __all__ as _patch_all
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk
__all__ = ['CosmosDBManagementClient']
__all__.extend([p for p in _patch_all if p not in __all__])

# `._patch.py` is used for handwritten extensions to the generated code
# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
from ._patch import patch_sdk
patch_sdk()
_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class CosmosDBManagementClientConfiguration(Configuration): # pylint: disable=t
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2022-02-15-preview". Note that overriding
this default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2022-05-15". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

Expand All @@ -41,7 +41,7 @@ def __init__(
**kwargs: Any
) -> None:
super(CosmosDBManagementClientConfiguration, self).__init__(**kwargs)
api_version = kwargs.pop('api_version', "2022-02-15-preview") # type: str
api_version = kwargs.pop('api_version', "2022-05-15") # type: str

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Loading