Skip to content

Commit

Permalink
[AutoRelease] t2-cosmosdb-2021-06-22-52995 (#19380)
Browse files Browse the repository at this point in the history
* CodeGen from PR 14627 in Azure/azure-rest-api-specs
[Hub Generated] Review request for Microsoft.DocumentDB to add version stable/2021-06-15 (#14627)

* Adds base for updating Microsoft.DocumentDB from version stable/2021-04-15 to version 2021-06-15

* Updates readme

* Updates API version in new specs and examples

* PITR apis to stable version

* Fixing readme

* Adding parameters

* Fixing restorable.json

* Fixing linter errors

* missing ref

* Unflattening the DatabaseAccountCreateUpdateProperties

* Adds base for updating Microsoft.DocumentDB from version stable/2021-05-15 to version 2021-06-15

* Updates readme

* Updates API version in new specs and examples

* Adding the restorable json to readme

* Added disableLocalAuth flag to DatabaseAccount CRU operations.

* Adding Backup policy migration state

* Fixing linter errors

* Fixing linter warnings

* Fixing breaking change

Co-authored-by: ayanMSFT <53790657+ayanMSFT@users.noreply.github.com>

* version,CHANGELOG

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
Co-authored-by: ayanMSFT <53790657+ayanMSFT@users.noreply.github.com>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
  • Loading branch information
3 people authored Jun 22, 2021
1 parent 6f2695b commit 53d3f97
Show file tree
Hide file tree
Showing 70 changed files with 4,303 additions and 1,560 deletions.
28 changes: 28 additions & 0 deletions sdk/cosmos/azure-mgmt-cosmosdb/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# Release History

## 6.4.0 (2021-06-22)

**Features**

- Model ContinuousModeBackupPolicy has a new parameter migration_state
- Model DatabaseAccountGetResults has a new parameter restore_parameters
- Model DatabaseAccountGetResults has a new parameter analytical_storage_configuration
- Model DatabaseAccountGetResults has a new parameter system_data
- Model DatabaseAccountGetResults has a new parameter instance_id
- Model DatabaseAccountGetResults has a new parameter disable_local_auth
- Model DatabaseAccountGetResults has a new parameter create_mode
- Model BackupPolicy has a new parameter migration_state
- Model DatabaseAccountCreateUpdateParameters has a new parameter analytical_storage_configuration
- Model DatabaseAccountCreateUpdateParameters has a new parameter restore_parameters
- Model DatabaseAccountCreateUpdateParameters has a new parameter disable_local_auth
- Model DatabaseAccountCreateUpdateParameters has a new parameter create_mode
- Model PeriodicModeBackupPolicy has a new parameter migration_state
- Model DatabaseAccountUpdateParameters has a new parameter analytical_storage_configuration
- Model DatabaseAccountUpdateParameters has a new parameter disable_local_auth
- Added operation SqlResourcesOperations.begin_retrieve_continuous_backup_information
- Added operation group RestorableMongodbDatabasesOperations
- Added operation group RestorableDatabaseAccountsOperations
- Added operation group RestorableSqlDatabasesOperations
- Added operation group RestorableSqlContainersOperations
- Added operation group RestorableMongodbResourcesOperations
- Added operation group RestorableMongodbCollectionsOperations
- Added operation group RestorableSqlResourcesOperations

## 6.3.0 (2021-05-14)

**Breaking changes**
Expand Down
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/python@5.6.6",
"commit": "c6a18a2e52c498ab976dddd807221c2a12d5f9d1",
"use": [
"@autorest/python@5.8.0",
"@autorest/modelerfour@4.19.2"
],
"commit": "f780b571abddf2fc99233212a00510d3bef6878d",
"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/modelerfour@4.19.2 --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-06-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
Expand Up @@ -38,8 +38,15 @@
from .operations import CassandraResourcesOperations
from .operations import GremlinResourcesOperations
from .operations import NotebookWorkspacesOperations
from .operations import PrivateLinkResourcesOperations
from .operations import PrivateEndpointConnectionsOperations
from .operations import PrivateLinkResourcesOperations
from .operations import RestorableDatabaseAccountsOperations
from .operations import RestorableSqlDatabasesOperations
from .operations import RestorableSqlContainersOperations
from .operations import RestorableSqlResourcesOperations
from .operations import RestorableMongodbDatabasesOperations
from .operations import RestorableMongodbCollectionsOperations
from .operations import RestorableMongodbResourcesOperations
from . import models


Expand Down Expand Up @@ -84,10 +91,24 @@ class CosmosDBManagementClient(object):
:vartype gremlin_resources: azure.mgmt.cosmosdb.operations.GremlinResourcesOperations
:ivar notebook_workspaces: NotebookWorkspacesOperations operations
:vartype notebook_workspaces: azure.mgmt.cosmosdb.operations.NotebookWorkspacesOperations
:ivar private_link_resources: PrivateLinkResourcesOperations operations
:vartype private_link_resources: azure.mgmt.cosmosdb.operations.PrivateLinkResourcesOperations
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
:vartype private_endpoint_connections: azure.mgmt.cosmosdb.operations.PrivateEndpointConnectionsOperations
:ivar private_link_resources: PrivateLinkResourcesOperations operations
:vartype private_link_resources: azure.mgmt.cosmosdb.operations.PrivateLinkResourcesOperations
:ivar restorable_database_accounts: RestorableDatabaseAccountsOperations operations
:vartype restorable_database_accounts: azure.mgmt.cosmosdb.operations.RestorableDatabaseAccountsOperations
:ivar restorable_sql_databases: RestorableSqlDatabasesOperations operations
:vartype restorable_sql_databases: azure.mgmt.cosmosdb.operations.RestorableSqlDatabasesOperations
:ivar restorable_sql_containers: RestorableSqlContainersOperations operations
:vartype restorable_sql_containers: azure.mgmt.cosmosdb.operations.RestorableSqlContainersOperations
:ivar restorable_sql_resources: RestorableSqlResourcesOperations operations
:vartype restorable_sql_resources: azure.mgmt.cosmosdb.operations.RestorableSqlResourcesOperations
:ivar restorable_mongodb_databases: RestorableMongodbDatabasesOperations operations
:vartype restorable_mongodb_databases: azure.mgmt.cosmosdb.operations.RestorableMongodbDatabasesOperations
:ivar restorable_mongodb_collections: RestorableMongodbCollectionsOperations operations
:vartype restorable_mongodb_collections: azure.mgmt.cosmosdb.operations.RestorableMongodbCollectionsOperations
:ivar restorable_mongodb_resources: RestorableMongodbResourcesOperations operations
:vartype restorable_mongodb_resources: azure.mgmt.cosmosdb.operations.RestorableMongodbResourcesOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription.
Expand Down Expand Up @@ -152,9 +173,23 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.notebook_workspaces = NotebookWorkspacesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.private_link_resources = PrivateLinkResourcesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
self.restorable_database_accounts = RestorableDatabaseAccountsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.restorable_sql_databases = RestorableSqlDatabasesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.restorable_sql_containers = RestorableSqlContainersOperations(
self._client, self._config, self._serialize, self._deserialize)
self.restorable_sql_resources = RestorableSqlResourcesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.restorable_mongodb_databases = RestorableMongodbDatabasesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.restorable_mongodb_collections = RestorableMongodbCollectionsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.restorable_mongodb_resources = RestorableMongodbResourcesOperations(
self._client, self._config, self._serialize, self._deserialize)

def _send_request(self, http_request, **kwargs):
Expand Down
13 changes: 10 additions & 3 deletions sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_metadata.json
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-06-15",
"total_api_version_list": ["2021-06-15"],
"client": {
"name": "CosmosDBManagementClient",
"filename": "_cosmos_db_management_client",
Expand Down Expand Up @@ -117,7 +117,14 @@
"cassandra_resources": "CassandraResourcesOperations",
"gremlin_resources": "GremlinResourcesOperations",
"notebook_workspaces": "NotebookWorkspacesOperations",
"private_endpoint_connections": "PrivateEndpointConnectionsOperations",
"private_link_resources": "PrivateLinkResourcesOperations",
"private_endpoint_connections": "PrivateEndpointConnectionsOperations"
"restorable_database_accounts": "RestorableDatabaseAccountsOperations",
"restorable_sql_databases": "RestorableSqlDatabasesOperations",
"restorable_sql_containers": "RestorableSqlContainersOperations",
"restorable_sql_resources": "RestorableSqlResourcesOperations",
"restorable_mongodb_databases": "RestorableMongodbDatabasesOperations",
"restorable_mongodb_collections": "RestorableMongodbCollectionsOperations",
"restorable_mongodb_resources": "RestorableMongodbResourcesOperations"
}
}
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 = "6.4.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-06-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
Expand Up @@ -36,8 +36,15 @@
from .operations import CassandraResourcesOperations
from .operations import GremlinResourcesOperations
from .operations import NotebookWorkspacesOperations
from .operations import PrivateLinkResourcesOperations
from .operations import PrivateEndpointConnectionsOperations
from .operations import PrivateLinkResourcesOperations
from .operations import RestorableDatabaseAccountsOperations
from .operations import RestorableSqlDatabasesOperations
from .operations import RestorableSqlContainersOperations
from .operations import RestorableSqlResourcesOperations
from .operations import RestorableMongodbDatabasesOperations
from .operations import RestorableMongodbCollectionsOperations
from .operations import RestorableMongodbResourcesOperations
from .. import models


Expand Down Expand Up @@ -82,10 +89,24 @@ class CosmosDBManagementClient(object):
:vartype gremlin_resources: azure.mgmt.cosmosdb.aio.operations.GremlinResourcesOperations
:ivar notebook_workspaces: NotebookWorkspacesOperations operations
:vartype notebook_workspaces: azure.mgmt.cosmosdb.aio.operations.NotebookWorkspacesOperations
:ivar private_link_resources: PrivateLinkResourcesOperations operations
:vartype private_link_resources: azure.mgmt.cosmosdb.aio.operations.PrivateLinkResourcesOperations
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
:vartype private_endpoint_connections: azure.mgmt.cosmosdb.aio.operations.PrivateEndpointConnectionsOperations
:ivar private_link_resources: PrivateLinkResourcesOperations operations
:vartype private_link_resources: azure.mgmt.cosmosdb.aio.operations.PrivateLinkResourcesOperations
:ivar restorable_database_accounts: RestorableDatabaseAccountsOperations operations
:vartype restorable_database_accounts: azure.mgmt.cosmosdb.aio.operations.RestorableDatabaseAccountsOperations
:ivar restorable_sql_databases: RestorableSqlDatabasesOperations operations
:vartype restorable_sql_databases: azure.mgmt.cosmosdb.aio.operations.RestorableSqlDatabasesOperations
:ivar restorable_sql_containers: RestorableSqlContainersOperations operations
:vartype restorable_sql_containers: azure.mgmt.cosmosdb.aio.operations.RestorableSqlContainersOperations
:ivar restorable_sql_resources: RestorableSqlResourcesOperations operations
:vartype restorable_sql_resources: azure.mgmt.cosmosdb.aio.operations.RestorableSqlResourcesOperations
:ivar restorable_mongodb_databases: RestorableMongodbDatabasesOperations operations
:vartype restorable_mongodb_databases: azure.mgmt.cosmosdb.aio.operations.RestorableMongodbDatabasesOperations
:ivar restorable_mongodb_collections: RestorableMongodbCollectionsOperations operations
:vartype restorable_mongodb_collections: azure.mgmt.cosmosdb.aio.operations.RestorableMongodbCollectionsOperations
:ivar restorable_mongodb_resources: RestorableMongodbResourcesOperations operations
:vartype restorable_mongodb_resources: azure.mgmt.cosmosdb.aio.operations.RestorableMongodbResourcesOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription.
Expand Down Expand Up @@ -149,9 +170,23 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.notebook_workspaces = NotebookWorkspacesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.private_link_resources = PrivateLinkResourcesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
self.restorable_database_accounts = RestorableDatabaseAccountsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.restorable_sql_databases = RestorableSqlDatabasesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.restorable_sql_containers = RestorableSqlContainersOperations(
self._client, self._config, self._serialize, self._deserialize)
self.restorable_sql_resources = RestorableSqlResourcesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.restorable_mongodb_databases = RestorableMongodbDatabasesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.restorable_mongodb_collections = RestorableMongodbCollectionsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.restorable_mongodb_resources = RestorableMongodbResourcesOperations(
self._client, self._config, self._serialize, self._deserialize)

async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,15 @@
from ._cassandra_resources_operations import CassandraResourcesOperations
from ._gremlin_resources_operations import GremlinResourcesOperations
from ._notebook_workspaces_operations import NotebookWorkspacesOperations
from ._private_link_resources_operations import PrivateLinkResourcesOperations
from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations
from ._private_link_resources_operations import PrivateLinkResourcesOperations
from ._restorable_database_accounts_operations import RestorableDatabaseAccountsOperations
from ._restorable_sql_databases_operations import RestorableSqlDatabasesOperations
from ._restorable_sql_containers_operations import RestorableSqlContainersOperations
from ._restorable_sql_resources_operations import RestorableSqlResourcesOperations
from ._restorable_mongodb_databases_operations import RestorableMongodbDatabasesOperations
from ._restorable_mongodb_collections_operations import RestorableMongodbCollectionsOperations
from ._restorable_mongodb_resources_operations import RestorableMongodbResourcesOperations

__all__ = [
'DatabaseAccountsOperations',
Expand All @@ -48,6 +55,13 @@
'CassandraResourcesOperations',
'GremlinResourcesOperations',
'NotebookWorkspacesOperations',
'PrivateLinkResourcesOperations',
'PrivateEndpointConnectionsOperations',
'PrivateLinkResourcesOperations',
'RestorableDatabaseAccountsOperations',
'RestorableSqlDatabasesOperations',
'RestorableSqlContainersOperations',
'RestorableSqlResourcesOperations',
'RestorableMongodbDatabasesOperations',
'RestorableMongodbCollectionsOperations',
'RestorableMongodbResourcesOperations',
]
Loading

0 comments on commit 53d3f97

Please sign in to comment.