Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR track2_azure-mgmt-cosmosdb] [Hub Generated] Review request for Microsoft.DocumentDB to add version stable/2021-10-15 #7837

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
2 changes: 1 addition & 1 deletion sdk/cosmos/azure-mgmt-cosmosdb/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "f7bdc95b45115dd1d5d7aec82d1b88ea17a938a7",
"commit": "519330559f6f81cad0ba847f520cd20bd91bd353",
"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/[email protected] --use=@autorest/[email protected] --version=3.4.5",
"readme": "specification/cosmos-db/resource-manager/readme.md"
Expand Down
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-07-01-preview"
self.api_version = "2021-10-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 @@ -32,7 +32,6 @@
from .operations import CollectionPartitionOperations
from .operations import PartitionKeyRangeIdOperations
from .operations import PartitionKeyRangeIdRegionOperations
from .operations import GraphResourcesOperations
from .operations import SqlResourcesOperations
from .operations import MongoDBResourcesOperations
from .operations import TableResourcesOperations
Expand All @@ -51,7 +50,6 @@
from .operations import RestorableMongodbResourcesOperations
from .operations import CassandraClustersOperations
from .operations import CassandraDataCentersOperations
from .operations import ServiceOperations
from . import models


Expand Down Expand Up @@ -84,8 +82,6 @@ class CosmosDBManagementClient(CosmosDBManagementClientOperationsMixin):
:vartype partition_key_range_id: azure.mgmt.cosmosdb.operations.PartitionKeyRangeIdOperations
:ivar partition_key_range_id_region: PartitionKeyRangeIdRegionOperations operations
:vartype partition_key_range_id_region: azure.mgmt.cosmosdb.operations.PartitionKeyRangeIdRegionOperations
:ivar graph_resources: GraphResourcesOperations operations
:vartype graph_resources: azure.mgmt.cosmosdb.operations.GraphResourcesOperations
:ivar sql_resources: SqlResourcesOperations operations
:vartype sql_resources: azure.mgmt.cosmosdb.operations.SqlResourcesOperations
:ivar mongo_db_resources: MongoDBResourcesOperations operations
Expand Down Expand Up @@ -120,8 +116,6 @@ class CosmosDBManagementClient(CosmosDBManagementClientOperationsMixin):
:vartype cassandra_clusters: azure.mgmt.cosmosdb.operations.CassandraClustersOperations
:ivar cassandra_data_centers: CassandraDataCentersOperations operations
:vartype cassandra_data_centers: azure.mgmt.cosmosdb.operations.CassandraDataCentersOperations
:ivar service: ServiceOperations operations
:vartype service: azure.mgmt.cosmosdb.operations.ServiceOperations
: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 @@ -174,8 +168,6 @@ 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.graph_resources = GraphResourcesOperations(
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(
Expand Down Expand Up @@ -210,8 +202,6 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.cassandra_data_centers = CassandraDataCentersOperations(
self._client, self._config, self._serialize, self._deserialize)
self.service = ServiceOperations(
self._client, self._config, self._serialize, self._deserialize)

def _send_request(self, http_request, **kwargs):
# type: (HttpRequest, Any) -> HttpResponse
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chosen_version": "2021-07-01-preview",
"total_api_version_list": ["2021-07-01-preview"],
"chosen_version": "2021-10-15",
"total_api_version_list": ["2021-10-15"],
"client": {
"name": "CosmosDBManagementClient",
"filename": "_cosmos_db_management_client",
Expand Down Expand Up @@ -111,7 +111,6 @@
"collection_partition": "CollectionPartitionOperations",
"partition_key_range_id": "PartitionKeyRangeIdOperations",
"partition_key_range_id_region": "PartitionKeyRangeIdRegionOperations",
"graph_resources": "GraphResourcesOperations",
"sql_resources": "SqlResourcesOperations",
"mongo_db_resources": "MongoDBResourcesOperations",
"table_resources": "TableResourcesOperations",
Expand All @@ -128,8 +127,7 @@
"restorable_mongodb_collections": "RestorableMongodbCollectionsOperations",
"restorable_mongodb_resources": "RestorableMongodbResourcesOperations",
"cassandra_clusters": "CassandraClustersOperations",
"cassandra_data_centers": "CassandraDataCentersOperations",
"service": "ServiceOperations"
"cassandra_data_centers": "CassandraDataCentersOperations"
},
"operation_mixins": {
"sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.exceptions\": [\"ClientAuthenticationError\", \"HttpResponseError\", \"ResourceExistsError\", \"ResourceNotFoundError\", \"map_error\"], \"azure.mgmt.core.exceptions\": [\"ARMErrorFormat\"], \"azure.core.pipeline\": [\"PipelineResponse\"], \"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"], \"azure.core.paging\": [\"ItemPaged\"]}, \"stdlib\": {\"warnings\": [null]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Callable\", \"Dict\", \"Generic\", \"Iterable\", \"Optional\", \"TypeVar\"]}}}",
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 = "7.0.0b1"
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-07-01-preview"
self.api_version = "2021-10-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 @@ -30,7 +30,6 @@
from .operations import CollectionPartitionOperations
from .operations import PartitionKeyRangeIdOperations
from .operations import PartitionKeyRangeIdRegionOperations
from .operations import GraphResourcesOperations
from .operations import SqlResourcesOperations
from .operations import MongoDBResourcesOperations
from .operations import TableResourcesOperations
Expand All @@ -49,7 +48,6 @@
from .operations import RestorableMongodbResourcesOperations
from .operations import CassandraClustersOperations
from .operations import CassandraDataCentersOperations
from .operations import ServiceOperations
from .. import models


Expand Down Expand Up @@ -82,8 +80,6 @@ class CosmosDBManagementClient(CosmosDBManagementClientOperationsMixin):
:vartype partition_key_range_id: azure.mgmt.cosmosdb.aio.operations.PartitionKeyRangeIdOperations
:ivar partition_key_range_id_region: PartitionKeyRangeIdRegionOperations operations
:vartype partition_key_range_id_region: azure.mgmt.cosmosdb.aio.operations.PartitionKeyRangeIdRegionOperations
:ivar graph_resources: GraphResourcesOperations operations
:vartype graph_resources: azure.mgmt.cosmosdb.aio.operations.GraphResourcesOperations
:ivar sql_resources: SqlResourcesOperations operations
:vartype sql_resources: azure.mgmt.cosmosdb.aio.operations.SqlResourcesOperations
:ivar mongo_db_resources: MongoDBResourcesOperations operations
Expand Down Expand Up @@ -118,8 +114,6 @@ class CosmosDBManagementClient(CosmosDBManagementClientOperationsMixin):
:vartype cassandra_clusters: azure.mgmt.cosmosdb.aio.operations.CassandraClustersOperations
:ivar cassandra_data_centers: CassandraDataCentersOperations operations
:vartype cassandra_data_centers: azure.mgmt.cosmosdb.aio.operations.CassandraDataCentersOperations
:ivar service: ServiceOperations operations
:vartype service: azure.mgmt.cosmosdb.aio.operations.ServiceOperations
: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 @@ -171,8 +165,6 @@ 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.graph_resources = GraphResourcesOperations(
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(
Expand Down Expand Up @@ -207,8 +199,6 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.cassandra_data_centers = CassandraDataCentersOperations(
self._client, self._config, self._serialize, self._deserialize)
self.service = ServiceOperations(
self._client, self._config, self._serialize, self._deserialize)

async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from ._collection_partition_operations import CollectionPartitionOperations
from ._partition_key_range_id_operations import PartitionKeyRangeIdOperations
from ._partition_key_range_id_region_operations import PartitionKeyRangeIdRegionOperations
from ._graph_resources_operations import GraphResourcesOperations
from ._sql_resources_operations import SqlResourcesOperations
from ._mongo_db_resources_operations import MongoDBResourcesOperations
from ._table_resources_operations import TableResourcesOperations
Expand All @@ -38,7 +37,6 @@
from ._restorable_mongodb_resources_operations import RestorableMongodbResourcesOperations
from ._cassandra_clusters_operations import CassandraClustersOperations
from ._cassandra_data_centers_operations import CassandraDataCentersOperations
from ._service_operations import ServiceOperations

__all__ = [
'DatabaseAccountsOperations',
Expand All @@ -54,7 +52,6 @@
'CollectionPartitionOperations',
'PartitionKeyRangeIdOperations',
'PartitionKeyRangeIdRegionOperations',
'GraphResourcesOperations',
'SqlResourcesOperations',
'MongoDBResourcesOperations',
'TableResourcesOperations',
Expand All @@ -73,5 +70,4 @@
'RestorableMongodbResourcesOperations',
'CassandraClustersOperations',
'CassandraDataCentersOperations',
'ServiceOperations',
]
Loading