Skip to content

Commit

Permalink
CodeGen from PR 16211 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 60844c7e15d044326b64fbb44e42f4e3c50808fd into 9dcd83c
  • Loading branch information
SDKAuto committed Sep 29, 2021
1 parent c1c84eb commit 45575ab
Show file tree
Hide file tree
Showing 78 changed files with 1,274 additions and 1,038 deletions.
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": "d287737170b9031ed448e24bc40f49455db1983c",
"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-preview"
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 @@ -39,6 +39,8 @@
from .operations import CassandraResourcesOperations
from .operations import GremlinResourcesOperations
from .operations import CosmosDBManagementClientOperationsMixin
from .operations import CassandraClustersOperations
from .operations import CassandraDataCentersOperations
from .operations import NotebookWorkspacesOperations
from .operations import PrivateEndpointConnectionsOperations
from .operations import PrivateLinkResourcesOperations
Expand All @@ -49,8 +51,6 @@
from .operations import RestorableMongodbDatabasesOperations
from .operations import RestorableMongodbCollectionsOperations
from .operations import RestorableMongodbResourcesOperations
from .operations import CassandraClustersOperations
from .operations import CassandraDataCentersOperations
from .operations import ServiceOperations
from . import models

Expand Down Expand Up @@ -96,6 +96,10 @@ class CosmosDBManagementClient(CosmosDBManagementClientOperationsMixin):
:vartype cassandra_resources: azure.mgmt.cosmosdb.operations.CassandraResourcesOperations
:ivar gremlin_resources: GremlinResourcesOperations operations
:vartype gremlin_resources: azure.mgmt.cosmosdb.operations.GremlinResourcesOperations
:ivar cassandra_clusters: CassandraClustersOperations operations
:vartype cassandra_clusters: azure.mgmt.cosmosdb.operations.CassandraClustersOperations
:ivar cassandra_data_centers: CassandraDataCentersOperations operations
:vartype cassandra_data_centers: azure.mgmt.cosmosdb.operations.CassandraDataCentersOperations
:ivar notebook_workspaces: NotebookWorkspacesOperations operations
:vartype notebook_workspaces: azure.mgmt.cosmosdb.operations.NotebookWorkspacesOperations
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
Expand All @@ -116,10 +120,6 @@ class CosmosDBManagementClient(CosmosDBManagementClientOperationsMixin):
:vartype restorable_mongodb_collections: azure.mgmt.cosmosdb.operations.RestorableMongodbCollectionsOperations
:ivar restorable_mongodb_resources: RestorableMongodbResourcesOperations operations
:vartype restorable_mongodb_resources: azure.mgmt.cosmosdb.operations.RestorableMongodbResourcesOperations
:ivar cassandra_clusters: CassandraClustersOperations operations
: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.
Expand Down Expand Up @@ -186,6 +186,10 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.gremlin_resources = GremlinResourcesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.cassandra_clusters = CassandraClustersOperations(
self._client, self._config, self._serialize, self._deserialize)
self.cassandra_data_centers = CassandraDataCentersOperations(
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(
Expand All @@ -206,10 +210,6 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.restorable_mongodb_resources = RestorableMongodbResourcesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.cassandra_clusters = CassandraClustersOperations(
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)

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-preview",
"total_api_version_list": ["2021-10-15-preview"],
"client": {
"name": "CosmosDBManagementClient",
"filename": "_cosmos_db_management_client",
Expand Down Expand Up @@ -117,6 +117,8 @@
"table_resources": "TableResourcesOperations",
"cassandra_resources": "CassandraResourcesOperations",
"gremlin_resources": "GremlinResourcesOperations",
"cassandra_clusters": "CassandraClustersOperations",
"cassandra_data_centers": "CassandraDataCentersOperations",
"notebook_workspaces": "NotebookWorkspacesOperations",
"private_endpoint_connections": "PrivateEndpointConnectionsOperations",
"private_link_resources": "PrivateLinkResourcesOperations",
Expand All @@ -127,8 +129,6 @@
"restorable_mongodb_databases": "RestorableMongodbDatabasesOperations",
"restorable_mongodb_collections": "RestorableMongodbCollectionsOperations",
"restorable_mongodb_resources": "RestorableMongodbResourcesOperations",
"cassandra_clusters": "CassandraClustersOperations",
"cassandra_data_centers": "CassandraDataCentersOperations",
"service": "ServiceOperations"
},
"operation_mixins": {
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-preview"
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 @@ -37,6 +37,8 @@
from .operations import CassandraResourcesOperations
from .operations import GremlinResourcesOperations
from .operations import CosmosDBManagementClientOperationsMixin
from .operations import CassandraClustersOperations
from .operations import CassandraDataCentersOperations
from .operations import NotebookWorkspacesOperations
from .operations import PrivateEndpointConnectionsOperations
from .operations import PrivateLinkResourcesOperations
Expand All @@ -47,8 +49,6 @@
from .operations import RestorableMongodbDatabasesOperations
from .operations import RestorableMongodbCollectionsOperations
from .operations import RestorableMongodbResourcesOperations
from .operations import CassandraClustersOperations
from .operations import CassandraDataCentersOperations
from .operations import ServiceOperations
from .. import models

Expand Down Expand Up @@ -94,6 +94,10 @@ class CosmosDBManagementClient(CosmosDBManagementClientOperationsMixin):
:vartype cassandra_resources: azure.mgmt.cosmosdb.aio.operations.CassandraResourcesOperations
:ivar gremlin_resources: GremlinResourcesOperations operations
:vartype gremlin_resources: azure.mgmt.cosmosdb.aio.operations.GremlinResourcesOperations
:ivar cassandra_clusters: CassandraClustersOperations operations
: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 notebook_workspaces: NotebookWorkspacesOperations operations
:vartype notebook_workspaces: azure.mgmt.cosmosdb.aio.operations.NotebookWorkspacesOperations
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
Expand All @@ -114,10 +118,6 @@ class CosmosDBManagementClient(CosmosDBManagementClientOperationsMixin):
: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
:ivar cassandra_clusters: CassandraClustersOperations operations
: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.
Expand Down Expand Up @@ -183,6 +183,10 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.gremlin_resources = GremlinResourcesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.cassandra_clusters = CassandraClustersOperations(
self._client, self._config, self._serialize, self._deserialize)
self.cassandra_data_centers = CassandraDataCentersOperations(
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(
Expand All @@ -203,10 +207,6 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.restorable_mongodb_resources = RestorableMongodbResourcesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.cassandra_clusters = CassandraClustersOperations(
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)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
from ._cassandra_resources_operations import CassandraResourcesOperations
from ._gremlin_resources_operations import GremlinResourcesOperations
from ._cosmos_db_management_client_operations import CosmosDBManagementClientOperationsMixin
from ._cassandra_clusters_operations import CassandraClustersOperations
from ._cassandra_data_centers_operations import CassandraDataCentersOperations
from ._notebook_workspaces_operations import NotebookWorkspacesOperations
from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations
from ._private_link_resources_operations import PrivateLinkResourcesOperations
Expand All @@ -36,8 +38,6 @@
from ._restorable_mongodb_databases_operations import RestorableMongodbDatabasesOperations
from ._restorable_mongodb_collections_operations import RestorableMongodbCollectionsOperations
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__ = [
Expand All @@ -61,6 +61,8 @@
'CassandraResourcesOperations',
'GremlinResourcesOperations',
'CosmosDBManagementClientOperationsMixin',
'CassandraClustersOperations',
'CassandraDataCentersOperations',
'NotebookWorkspacesOperations',
'PrivateEndpointConnectionsOperations',
'PrivateLinkResourcesOperations',
Expand All @@ -71,7 +73,5 @@
'RestorableMongodbDatabasesOperations',
'RestorableMongodbCollectionsOperations',
'RestorableMongodbResourcesOperations',
'CassandraClustersOperations',
'CassandraDataCentersOperations',
'ServiceOperations',
]
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def list_by_subscription(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-07-01-preview"
api_version = "2021-10-15-preview"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -128,7 +128,7 @@ def list_by_resource_group(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-07-01-preview"
api_version = "2021-10-15-preview"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -201,7 +201,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-07-01-preview"
api_version = "2021-10-15-preview"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -248,7 +248,7 @@ async def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-07-01-preview"
api_version = "2021-10-15-preview"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -357,7 +357,7 @@ async def _create_update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-07-01-preview"
api_version = "2021-10-15-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -486,7 +486,7 @@ async def _update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-07-01-preview"
api_version = "2021-10-15-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -614,7 +614,7 @@ async def _request_repair_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-07-01-preview"
api_version = "2021-10-15-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -731,7 +731,7 @@ async def _fetch_node_status_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-07-01-preview"
api_version = "2021-10-15-preview"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -858,7 +858,7 @@ def list_backups(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-07-01-preview"
api_version = "2021-10-15-preview"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -935,7 +935,7 @@ async def get_backup(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-07-01-preview"
api_version = "2021-10-15-preview"
accept = "application/json"

# Construct URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-07-01-preview"
api_version = "2021-10-15-preview"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -142,7 +142,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-07-01-preview"
api_version = "2021-10-15-preview"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -191,7 +191,7 @@ async def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-07-01-preview"
api_version = "2021-10-15-preview"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -307,7 +307,7 @@ async def _create_update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-07-01-preview"
api_version = "2021-10-15-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -443,7 +443,7 @@ async def _update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-07-01-preview"
api_version = "2021-10-15-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down
Loading

0 comments on commit 45575ab

Please sign in to comment.