Skip to content

Commit

Permalink
T1 cosmosdb 2021 02 18 (Azure#16804)
Browse files Browse the repository at this point in the history
* CodeGen from PR 12972 in Azure/azure-rest-api-specs
Fix cosmos-db package-2020-09 output-folder (Azure#12972)

* test,version,CHANGELOG

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
  • Loading branch information
00Kai0 and SDKAuto authored Feb 19, 2021
1 parent 2104545 commit c081534
Show file tree
Hide file tree
Showing 40 changed files with 2,656 additions and 5,189 deletions.
80 changes: 80 additions & 0 deletions sdk/cosmos/azure-mgmt-cosmosdb/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,85 @@
# Release History

## 3.0.0 (2021-02-18)

**Features**

- Model DatabaseAccountGetResults has a new parameter network_acl_bypass
- Model DatabaseAccountGetResults has a new parameter network_acl_bypass_resource_ids
- Model DatabaseAccountUpdateParameters has a new parameter network_acl_bypass
- Model DatabaseAccountUpdateParameters has a new parameter network_acl_bypass_resource_ids
- Model SqlContainerGetPropertiesResource has a new parameter analytical_storage_ttl
- Model SqlContainerResource has a new parameter analytical_storage_ttl
- Model ContainerPartitionKey has a new parameter system_key
- Added operation CassandraResourcesOperations.migrate_cassandra_keyspace_to_manual_throughput
- Added operation CassandraResourcesOperations.migrate_cassandra_table_to_manual_throughput
- Added operation CassandraResourcesOperations.migrate_cassandra_table_to_autoscale
- Added operation CassandraResourcesOperations.migrate_cassandra_keyspace_to_autoscale
- Added operation GremlinResourcesOperations.migrate_gremlin_graph_to_manual_throughput
- Added operation GremlinResourcesOperations.migrate_gremlin_graph_to_autoscale
- Added operation GremlinResourcesOperations.migrate_gremlin_database_to_autoscale
- Added operation GremlinResourcesOperations.migrate_gremlin_database_to_manual_throughput
- Added operation SqlResourcesOperations.migrate_sql_container_to_manual_throughput
- Added operation SqlResourcesOperations.migrate_sql_container_to_autoscale
- Added operation SqlResourcesOperations.migrate_sql_database_to_autoscale
- Added operation SqlResourcesOperations.migrate_sql_database_to_manual_throughput
- Added operation TableResourcesOperations.migrate_table_to_autoscale
- Added operation TableResourcesOperations.migrate_table_to_manual_throughput
- Added operation MongoDBResourcesOperations.migrate_mongo_db_database_to_manual_throughput
- Added operation MongoDBResourcesOperations.migrate_mongo_db_collection_to_autoscale
- Added operation MongoDBResourcesOperations.migrate_mongo_db_database_to_autoscale
- Added operation MongoDBResourcesOperations.migrate_mongo_db_collection_to_manual_throughput

**Breaking changes**

- Model SqlTriggerGetResults no longer has parameter identity
- Model CassandraTableGetResults no longer has parameter identity
- Model TableGetResults no longer has parameter identity
- Model SqlContainerGetResults no longer has parameter identity
- Model SqlContainerCreateUpdateParameters no longer has parameter identity
- Model CassandraKeyspaceCreateUpdateParameters no longer has parameter identity
- Model GremlinDatabaseCreateUpdateParameters no longer has parameter identity
- Model DatabaseAccountGetResults no longer has parameter instance_id
- Model DatabaseAccountGetResults no longer has parameter create_mode
- Model DatabaseAccountGetResults no longer has parameter system_data
- Model DatabaseAccountGetResults no longer has parameter restore_parameters
- Model MongoDBDatabaseGetResults no longer has parameter identity
- Model SqlDatabaseCreateUpdateParameters no longer has parameter identity
- Model ThroughputSettingsGetResults no longer has parameter identity
- Model ARMResourceProperties no longer has parameter identity
- Model TableCreateUpdateParameters no longer has parameter identity
- Model MongoDBDatabaseCreateUpdateParameters no longer has parameter identity
- Model CassandraTableCreateUpdateParameters no longer has parameter identity
- Model CassandraKeyspaceGetResults no longer has parameter identity
- Model MongoDBCollectionCreateUpdateParameters no longer has parameter identity
- Model ThroughputSettingsUpdateParameters no longer has parameter identity
- Model SqlUserDefinedFunctionGetResults no longer has parameter identity
- Model SqlStoredProcedureGetResults no longer has parameter identity
- Model SqlTriggerCreateUpdateParameters no longer has parameter identity
- Model SqlStoredProcedureCreateUpdateParameters no longer has parameter identity
- Model SqlUserDefinedFunctionCreateUpdateParameters no longer has parameter identity
- Model GremlinGraphGetResults no longer has parameter identity
- Model GremlinDatabaseGetResults no longer has parameter identity
- Model MongoDBCollectionGetResults no longer has parameter identity
- Model GremlinGraphCreateUpdateParameters no longer has parameter identity
- Model SqlDatabaseGetResults no longer has parameter identity
- Model DatabaseAccountCreateUpdateParameters has a new signature
- Removed operation SqlResourcesOperations.create_update_sql_role_definition
- Removed operation SqlResourcesOperations.list_sql_role_definitions
- Removed operation SqlResourcesOperations.get_sql_role_assignment
- Removed operation SqlResourcesOperations.delete_sql_role_assignment
- Removed operation SqlResourcesOperations.get_sql_role_definition
- Removed operation SqlResourcesOperations.create_update_sql_role_assignment
- Removed operation SqlResourcesOperations.list_sql_role_assignments
- Removed operation SqlResourcesOperations.delete_sql_role_definition
- Removed operation group RestorableSqlResourcesOperations
- Removed operation group RestorableMongodbDatabasesOperations
- Removed operation group RestorableSqlContainersOperations
- Removed operation group RestorableSqlDatabasesOperations
- Removed operation group RestorableDatabaseAccountsOperations
- Removed operation group RestorableMongodbCollectionsOperations
- Removed operation group RestorableMongodbResourcesOperations

## 2.0.0rc2 (2021-01-15)

**Features**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,14 @@
from .operations import TableResourcesOperations
from .operations import CassandraResourcesOperations
from .operations import GremlinResourcesOperations
from .operations import RestorableDatabaseAccountsOperations
from .operations import NotebookWorkspacesOperations
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 .operations import PrivateLinkResourcesOperations
from .operations import PrivateEndpointConnectionsOperations
from . import models


class CosmosDBManagementClient(SDKClient):
"""CosmosDBManagementClient
"""Azure Cosmos DB Database Service Resource Provider REST API
:ivar config: Configuration for client.
:vartype config: CosmosDBManagementClientConfiguration
Expand Down Expand Up @@ -86,22 +79,8 @@ class CosmosDBManagementClient(SDKClient):
:vartype cassandra_resources: azure.mgmt.cosmosdb.operations.CassandraResourcesOperations
:ivar gremlin_resources: GremlinResources operations
:vartype gremlin_resources: azure.mgmt.cosmosdb.operations.GremlinResourcesOperations
:ivar restorable_database_accounts: RestorableDatabaseAccounts operations
:vartype restorable_database_accounts: azure.mgmt.cosmosdb.operations.RestorableDatabaseAccountsOperations
:ivar notebook_workspaces: NotebookWorkspaces operations
:vartype notebook_workspaces: azure.mgmt.cosmosdb.operations.NotebookWorkspacesOperations
:ivar restorable_sql_databases: RestorableSqlDatabases operations
:vartype restorable_sql_databases: azure.mgmt.cosmosdb.operations.RestorableSqlDatabasesOperations
:ivar restorable_sql_containers: RestorableSqlContainers operations
:vartype restorable_sql_containers: azure.mgmt.cosmosdb.operations.RestorableSqlContainersOperations
:ivar restorable_sql_resources: RestorableSqlResources operations
:vartype restorable_sql_resources: azure.mgmt.cosmosdb.operations.RestorableSqlResourcesOperations
:ivar restorable_mongodb_databases: RestorableMongodbDatabases operations
:vartype restorable_mongodb_databases: azure.mgmt.cosmosdb.operations.RestorableMongodbDatabasesOperations
:ivar restorable_mongodb_collections: RestorableMongodbCollections operations
:vartype restorable_mongodb_collections: azure.mgmt.cosmosdb.operations.RestorableMongodbCollectionsOperations
:ivar restorable_mongodb_resources: RestorableMongodbResources operations
:vartype restorable_mongodb_resources: azure.mgmt.cosmosdb.operations.RestorableMongodbResourcesOperations
:ivar private_link_resources: PrivateLinkResources operations
:vartype private_link_resources: azure.mgmt.cosmosdb.operations.PrivateLinkResourcesOperations
:ivar private_endpoint_connections: PrivateEndpointConnections operations
Expand All @@ -122,6 +101,7 @@ def __init__(
super(CosmosDBManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2021-01-15'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand Down Expand Up @@ -161,22 +141,8 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.gremlin_resources = GremlinResourcesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.restorable_database_accounts = RestorableDatabaseAccountsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.notebook_workspaces = NotebookWorkspacesOperations(
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)
self.private_link_resources = PrivateLinkResourcesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
Expand Down
Loading

0 comments on commit c081534

Please sign in to comment.