Skip to content

Commit

Permalink
[AutoPR] cosmos-db/resource-manager (Azure#8560)
Browse files Browse the repository at this point in the history
* regenerated

* fix script

* another place

* fix

* fix

* one more change

* one more

* undo multiapi script

* regeneated

* undo multiapi script

* history, version + additional fix

* regenerated

* fixed test

* fixed generation mistake

* added more breaking changes to history

* regenerated again

* additional fixes

* udpated test names

* test recordings
  • Loading branch information
AutorestCI authored and Zim Kalinowski committed Nov 13, 2019
1 parent 535f455 commit 7d50d01
Show file tree
Hide file tree
Showing 33 changed files with 9,463 additions and 6,406 deletions.
83 changes: 83 additions & 0 deletions sdk/cosmos/azure-mgmt-cosmosdb/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,89 @@
Release History
===============

0.10.0 (2019-11-13)
+++++++++++++++++++

**Features**

- Model DatabaseAccountCreateUpdateParameters has a new parameter disable_key_based_metadata_write_access
- Model ContainerPartitionKey has a new parameter version
- Added operation DatabaseAccountsOperations.update
- Added operation group SqlResourcesOperations
- Added operation group MongoDBResourcesOperations
- Added operation group TableResourcesOperations
- Added operation group GremlinResourcesOperations
- Added operation group CassandraResourcesOperations

**Breaking changes**

- CosmosDB has been renamed to CosmosDBManagementClient
- CosmosDBConfiguration was renamed to CosmodDBManagementClientConfiguration
- Model MongoDBCollectionCreateUpdateParameters has a new signature
- Model GremlinGraphCreateUpdateParameters has a new signature
- Model CassandraKeyspaceCreateUpdateParameters has a new signature
- Model GremlinDatabaseCreateUpdateParameters has a new signature
- Model SqlContainerCreateUpdateParameters has a new signature
- Model CassandraTableCreateUpdateParameters has a new signature
- Model TableCreateUpdateParameters has a new signature
- Model MongoDBDatabaseCreateUpdateParameters has a new signature
- Model SqlDatabaseCreateUpdateParameters has a new signature
- Removed operation DatabaseAccountsOperations.get_gremlin_graph_throughput
- Removed operation DatabaseAccountsOperations.update_cassandra_keyspace_throughput
- Removed operation DatabaseAccountsOperations.delete_sql_database
- Removed operation DatabaseAccountsOperations.update_sql_database_throughput
- Removed operation DatabaseAccountsOperations.update_mongo_db_database_throughput
- Removed operation DatabaseAccountsOperations.delete_mongo_db_collection
- Removed operation DatabaseAccountsOperations.list_mongo_db_databases
- Removed operation DatabaseAccountsOperations.create_update_mongo_db_database
- Removed operation DatabaseAccountsOperations.create_update_gremlin_graph
- Removed operation DatabaseAccountsOperations.update_gremlin_database_throughput
- Removed operation DatabaseAccountsOperations.get_mongo_db_collection
- Removed operation DatabaseAccountsOperations.delete_gremlin_database
- Removed operation DatabaseAccountsOperations.create_update_cassandra_keyspace
- Removed operation DatabaseAccountsOperations.get_sql_database
- Removed operation DatabaseAccountsOperations.get_table
- Removed operation DatabaseAccountsOperations.update_table_throughput
- Removed operation DatabaseAccountsOperations.create_update_mongo_db_collection
- Removed operation DatabaseAccountsOperations.get_gremlin_database
- Removed operation DatabaseAccountsOperations.create_update_sql_container
- Removed operation DatabaseAccountsOperations.create_update_gremlin_database
- Removed operation DatabaseAccountsOperations.get_table_throughput
- Removed operation DatabaseAccountsOperations.delete_mongo_db_database
- Removed operation DatabaseAccountsOperations.get_cassandra_table_throughput
- Removed operation DatabaseAccountsOperations.update_sql_container_throughput
- Removed operation DatabaseAccountsOperations.get_cassandra_table
- Removed operation DatabaseAccountsOperations.list_gremlin_databases
- Removed operation DatabaseAccountsOperations.list_gremlin_graphs
- Removed operation DatabaseAccountsOperations.list_mongo_db_collections
- Removed operation DatabaseAccountsOperations.create_update_cassandra_table
- Removed operation DatabaseAccountsOperations.delete_cassandra_keyspace
- Removed operation DatabaseAccountsOperations.update_cassandra_table_throughput
- Removed operation DatabaseAccountsOperations.update_gremlin_graph_throughput
- Removed operation DatabaseAccountsOperations.create_update_table
- Removed operation DatabaseAccountsOperations.get_mongo_db_database_throughput
- Removed operation DatabaseAccountsOperations.get_sql_container
- Removed operation DatabaseAccountsOperations.get_gremlin_database_throughput
- Removed operation DatabaseAccountsOperations.get_mongo_db_collection_throughput
- Removed operation DatabaseAccountsOperations.list_cassandra_tables
- Removed operation DatabaseAccountsOperations.get_sql_database_throughput
- Removed operation DatabaseAccountsOperations.list_sql_databases
- Removed operation DatabaseAccountsOperations.list_tables
- Removed operation DatabaseAccountsOperations.get_cassandra_keyspace
- Removed operation DatabaseAccountsOperations.get_gremlin_graph
- Removed operation DatabaseAccountsOperations.get_mongo_db_database
- Removed operation DatabaseAccountsOperations.delete_table
- Removed operation DatabaseAccountsOperations.list_cassandra_keyspaces
- Removed operation DatabaseAccountsOperations.list_sql_containers
- Removed operation DatabaseAccountsOperations.delete_sql_container
- Removed operation DatabaseAccountsOperations.delete_gremlin_graph
- Removed operation DatabaseAccountsOperations.get_cassandra_keyspace_throughput
- Removed operation DatabaseAccountsOperations.get_sql_container_throughput
- Removed operation DatabaseAccountsOperations.delete_cassandra_table
- Removed operation DatabaseAccountsOperations.patch
- Removed operation DatabaseAccountsOperations.create_update_sql_database
- Removed operation DatabaseAccountsOperations.update_mongo_db_collection_throughput

0.9.0 (2019-11-09)
++++++++++++++++++

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
# regenerated.
# --------------------------------------------------------------------------

from ._configuration import CosmosDBConfiguration
from ._cosmos_db import CosmosDB
__all__ = ['CosmosDB', 'CosmosDBConfiguration']
from ._configuration import CosmosDBManagementClientConfiguration
from ._cosmos_db_management_client import CosmosDBManagementClient
__all__ = ['CosmosDBManagementClient', 'CosmosDBManagementClientConfiguration']

from .version import VERSION

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
from .version import VERSION


class CosmosDBConfiguration(AzureConfiguration):
"""Configuration for CosmosDB
class CosmosDBManagementClientConfiguration(AzureConfiguration):
"""Configuration for CosmosDBManagementClient
Note that all parameters used to create this instance are saved as instance
attributes.
Expand All @@ -36,7 +36,7 @@ def __init__(
if not base_url:
base_url = 'https://management.azure.com'

super(CosmosDBConfiguration, self).__init__(base_url)
super(CosmosDBManagementClientConfiguration, self).__init__(base_url)

# Starting Autorest.Python 4.0.64, make connection pool activated by default
self.keep_alive = True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer

from ._configuration import CosmosDBConfiguration
from ._configuration import CosmosDBManagementClientConfiguration
from .operations import DatabaseAccountsOperations
from .operations import Operations
from .operations import DatabaseOperations
Expand All @@ -26,16 +26,21 @@
from .operations import CollectionPartitionOperations
from .operations import PartitionKeyRangeIdOperations
from .operations import PartitionKeyRangeIdRegionOperations
from .operations import SqlResourcesOperations
from .operations import MongoDBResourcesOperations
from .operations import TableResourcesOperations
from .operations import CassandraResourcesOperations
from .operations import GremlinResourcesOperations
from .operations import PrivateLinkResourcesOperations
from .operations import PrivateEndpointConnectionsOperations
from . import models


class CosmosDB(SDKClient):
class CosmosDBManagementClient(SDKClient):
"""Azure Cosmos DB Database Service Resource Provider REST API
:ivar config: Configuration for client.
:vartype config: CosmosDBConfiguration
:vartype config: CosmosDBManagementClientConfiguration
:ivar database_accounts: DatabaseAccounts operations
:vartype database_accounts: azure.mgmt.cosmosdb.operations.DatabaseAccountsOperations
Expand Down Expand Up @@ -63,6 +68,16 @@ class CosmosDB(SDKClient):
:vartype partition_key_range_id: azure.mgmt.cosmosdb.operations.PartitionKeyRangeIdOperations
:ivar partition_key_range_id_region: PartitionKeyRangeIdRegion operations
:vartype partition_key_range_id_region: azure.mgmt.cosmosdb.operations.PartitionKeyRangeIdRegionOperations
:ivar sql_resources: SqlResources operations
:vartype sql_resources: azure.mgmt.cosmosdb.operations.SqlResourcesOperations
:ivar mongo_db_resources: MongoDBResources operations
:vartype mongo_db_resources: azure.mgmt.cosmosdb.operations.MongoDBResourcesOperations
:ivar table_resources: TableResources operations
:vartype table_resources: azure.mgmt.cosmosdb.operations.TableResourcesOperations
:ivar cassandra_resources: CassandraResources operations
:vartype cassandra_resources: azure.mgmt.cosmosdb.operations.CassandraResourcesOperations
:ivar gremlin_resources: GremlinResources operations
:vartype gremlin_resources: azure.mgmt.cosmosdb.operations.GremlinResourcesOperations
:ivar private_link_resources: PrivateLinkResources operations
:vartype private_link_resources: azure.mgmt.cosmosdb.operations.PrivateLinkResourcesOperations
:ivar private_endpoint_connections: PrivateEndpointConnections operations
Expand All @@ -79,8 +94,8 @@ class CosmosDB(SDKClient):
def __init__(
self, credentials, subscription_id, base_url=None):

self.config = CosmosDBConfiguration(credentials, subscription_id, base_url)
super(CosmosDB, self).__init__(self.config.credentials, self.config)
self.config = CosmosDBManagementClientConfiguration(credentials, subscription_id, base_url)
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._serialize = Serializer(client_models)
Expand Down Expand Up @@ -112,6 +127,16 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.partition_key_range_id_region = PartitionKeyRangeIdRegionOperations(
self._client, self.config, self._serialize, self._deserialize)
self.sql_resources = SqlResourcesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.mongo_db_resources = MongoDBResourcesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.table_resources = TableResourcesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.cassandra_resources = CassandraResourcesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.gremlin_resources = GremlinResourcesOperations(
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 7d50d01

Please sign in to comment.