Skip to content

Commit

Permalink
CodeGen from PR 12972 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Fix cosmos-db package-2020-09 output-folder (Azure#12972)
  • Loading branch information
SDKAuto committed Feb 18, 2021
1 parent 34aed9f commit c74d9c2
Show file tree
Hide file tree
Showing 35 changed files with 2,414 additions and 4,895 deletions.
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
111 changes: 9 additions & 102 deletions sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,14 @@
from ._models_py3 import CreateUpdateOptions
from ._models_py3 import DatabaseAccountConnectionString
from ._models_py3 import DatabaseAccountCreateUpdateParameters
from ._models_py3 import DatabaseAccountCreateUpdateProperties
from ._models_py3 import DatabaseAccountGetResults
from ._models_py3 import DatabaseAccountListConnectionStringsResult
from ._models_py3 import DatabaseAccountListKeysResult
from ._models_py3 import DatabaseAccountListReadOnlyKeysResult
from ._models_py3 import DatabaseAccountRegenerateKeyParameters
from ._models_py3 import DatabaseAccountUpdateParameters
from ._models_py3 import DatabaseRestoreResource
from ._models_py3 import DefaultErrorResponse, DefaultErrorResponseException
from ._models_py3 import DefaultRequestDatabaseAccountCreateUpdateProperties
from ._models_py3 import ErrorResponse, ErrorResponseException
from ._models_py3 import ErrorResponseUpdatedFormat, ErrorResponseUpdatedFormatException
from ._models_py3 import ExcludedPath
from ._models_py3 import ExtendedResourceProperties
from ._models_py3 import FailoverPolicies
Expand Down Expand Up @@ -104,28 +101,13 @@
from ._models_py3 import PercentileMetricValue
from ._models_py3 import PeriodicModeBackupPolicy
from ._models_py3 import PeriodicModeProperties
from ._models_py3 import Permission
from ._models_py3 import PrivateEndpointConnection
from ._models_py3 import PrivateEndpointProperty
from ._models_py3 import PrivateLinkResource
from ._models_py3 import PrivateLinkServiceConnectionStateProperty
from ._models_py3 import ProxyResource
from ._models_py3 import RegionForOnlineOffline
from ._models_py3 import Resource
from ._models_py3 import RestorableDatabaseAccountGetResult
from ._models_py3 import RestorableLocationResource
from ._models_py3 import RestorableMongodbCollectionGetResult
from ._models_py3 import RestorableMongodbCollectionPropertiesResource
from ._models_py3 import RestorableMongodbDatabaseGetResult
from ._models_py3 import RestorableMongodbDatabasePropertiesResource
from ._models_py3 import RestorableSqlContainerGetResult
from ._models_py3 import RestorableSqlContainerPropertiesResource
from ._models_py3 import RestorableSqlContainerPropertiesResourceContainer
from ._models_py3 import RestorableSqlDatabaseGetResult
from ._models_py3 import RestorableSqlDatabasePropertiesResource
from ._models_py3 import RestorableSqlDatabasePropertiesResourceDatabase
from ._models_py3 import RestoreParameters
from ._models_py3 import RestoreReqeustDatabaseAccountCreateUpdateProperties
from ._models_py3 import SpatialSpec
from ._models_py3 import SqlContainerCreateUpdateParameters
from ._models_py3 import SqlContainerGetPropertiesOptions
Expand All @@ -137,10 +119,6 @@
from ._models_py3 import SqlDatabaseGetPropertiesResource
from ._models_py3 import SqlDatabaseGetResults
from ._models_py3 import SqlDatabaseResource
from ._models_py3 import SqlRoleAssignmentCreateUpdateParameters
from ._models_py3 import SqlRoleAssignmentGetResults
from ._models_py3 import SqlRoleDefinitionCreateUpdateParameters
from ._models_py3 import SqlRoleDefinitionGetResults
from ._models_py3 import SqlStoredProcedureCreateUpdateParameters
from ._models_py3 import SqlStoredProcedureGetPropertiesResource
from ._models_py3 import SqlStoredProcedureGetResults
Expand All @@ -153,7 +131,6 @@
from ._models_py3 import SqlUserDefinedFunctionGetPropertiesResource
from ._models_py3 import SqlUserDefinedFunctionGetResults
from ._models_py3 import SqlUserDefinedFunctionResource
from ._models_py3 import SystemData
from ._models_py3 import TableCreateUpdateParameters
from ._models_py3 import TableGetPropertiesOptions
from ._models_py3 import TableGetPropertiesResource
Expand Down Expand Up @@ -202,17 +179,14 @@
from ._models import CreateUpdateOptions
from ._models import DatabaseAccountConnectionString
from ._models import DatabaseAccountCreateUpdateParameters
from ._models import DatabaseAccountCreateUpdateProperties
from ._models import DatabaseAccountGetResults
from ._models import DatabaseAccountListConnectionStringsResult
from ._models import DatabaseAccountListKeysResult
from ._models import DatabaseAccountListReadOnlyKeysResult
from ._models import DatabaseAccountRegenerateKeyParameters
from ._models import DatabaseAccountUpdateParameters
from ._models import DatabaseRestoreResource
from ._models import DefaultErrorResponse, DefaultErrorResponseException
from ._models import DefaultRequestDatabaseAccountCreateUpdateProperties
from ._models import ErrorResponse, ErrorResponseException
from ._models import ErrorResponseUpdatedFormat, ErrorResponseUpdatedFormatException
from ._models import ExcludedPath
from ._models import ExtendedResourceProperties
from ._models import FailoverPolicies
Expand Down Expand Up @@ -264,28 +238,13 @@
from ._models import PercentileMetricValue
from ._models import PeriodicModeBackupPolicy
from ._models import PeriodicModeProperties
from ._models import Permission
from ._models import PrivateEndpointConnection
from ._models import PrivateEndpointProperty
from ._models import PrivateLinkResource
from ._models import PrivateLinkServiceConnectionStateProperty
from ._models import ProxyResource
from ._models import RegionForOnlineOffline
from ._models import Resource
from ._models import RestorableDatabaseAccountGetResult
from ._models import RestorableLocationResource
from ._models import RestorableMongodbCollectionGetResult
from ._models import RestorableMongodbCollectionPropertiesResource
from ._models import RestorableMongodbDatabaseGetResult
from ._models import RestorableMongodbDatabasePropertiesResource
from ._models import RestorableSqlContainerGetResult
from ._models import RestorableSqlContainerPropertiesResource
from ._models import RestorableSqlContainerPropertiesResourceContainer
from ._models import RestorableSqlDatabaseGetResult
from ._models import RestorableSqlDatabasePropertiesResource
from ._models import RestorableSqlDatabasePropertiesResourceDatabase
from ._models import RestoreParameters
from ._models import RestoreReqeustDatabaseAccountCreateUpdateProperties
from ._models import SpatialSpec
from ._models import SqlContainerCreateUpdateParameters
from ._models import SqlContainerGetPropertiesOptions
Expand All @@ -297,10 +256,6 @@
from ._models import SqlDatabaseGetPropertiesResource
from ._models import SqlDatabaseGetResults
from ._models import SqlDatabaseResource
from ._models import SqlRoleAssignmentCreateUpdateParameters
from ._models import SqlRoleAssignmentGetResults
from ._models import SqlRoleDefinitionCreateUpdateParameters
from ._models import SqlRoleDefinitionGetResults
from ._models import SqlStoredProcedureCreateUpdateParameters
from ._models import SqlStoredProcedureGetPropertiesResource
from ._models import SqlStoredProcedureGetResults
Expand All @@ -313,7 +268,6 @@
from ._models import SqlUserDefinedFunctionGetPropertiesResource
from ._models import SqlUserDefinedFunctionGetResults
from ._models import SqlUserDefinedFunctionResource
from ._models import SystemData
from ._models import TableCreateUpdateParameters
from ._models import TableGetPropertiesOptions
from ._models import TableGetPropertiesResource
Expand All @@ -332,7 +286,6 @@
from ._paged_models import CassandraKeyspaceGetResultsPaged
from ._paged_models import CassandraTableGetResultsPaged
from ._paged_models import DatabaseAccountGetResultsPaged
from ._paged_models import DatabaseRestoreResourcePaged
from ._paged_models import GremlinDatabaseGetResultsPaged
from ._paged_models import GremlinGraphGetResultsPaged
from ._paged_models import MetricDefinitionPaged
Expand All @@ -346,30 +299,22 @@
from ._paged_models import PercentileMetricPaged
from ._paged_models import PrivateEndpointConnectionPaged
from ._paged_models import PrivateLinkResourcePaged
from ._paged_models import RestorableDatabaseAccountGetResultPaged
from ._paged_models import RestorableMongodbCollectionGetResultPaged
from ._paged_models import RestorableMongodbDatabaseGetResultPaged
from ._paged_models import RestorableSqlContainerGetResultPaged
from ._paged_models import RestorableSqlDatabaseGetResultPaged
from ._paged_models import SqlContainerGetResultsPaged
from ._paged_models import SqlDatabaseGetResultsPaged
from ._paged_models import SqlRoleAssignmentGetResultsPaged
from ._paged_models import SqlRoleDefinitionGetResultsPaged
from ._paged_models import SqlStoredProcedureGetResultsPaged
from ._paged_models import SqlTriggerGetResultsPaged
from ._paged_models import SqlUserDefinedFunctionGetResultsPaged
from ._paged_models import TableGetResultsPaged
from ._paged_models import UsagePaged
from ._cosmos_db_management_client_enums import (
DatabaseAccountKind,
ResourceIdentityType,
DatabaseAccountOfferType,
DefaultConsistencyLevel,
ConnectorOffer,
PublicNetworkAccess,
ServerVersion,
CreateMode,
RestoreMode,
CreatedByType,
NetworkAclBypass,
IndexingMode,
DataType,
IndexKind,
Expand All @@ -379,13 +324,10 @@
ConflictResolutionMode,
TriggerType,
TriggerOperation,
ResourceIdentityType,
KeyKind,
UnitType,
PrimaryAggregationType,
ApiType,
RoleDefinitionType,
OperationType,
BackupPolicyType,
)

__all__ = [
Expand Down Expand Up @@ -421,17 +363,14 @@
'CreateUpdateOptions',
'DatabaseAccountConnectionString',
'DatabaseAccountCreateUpdateParameters',
'DatabaseAccountCreateUpdateProperties',
'DatabaseAccountGetResults',
'DatabaseAccountListConnectionStringsResult',
'DatabaseAccountListKeysResult',
'DatabaseAccountListReadOnlyKeysResult',
'DatabaseAccountRegenerateKeyParameters',
'DatabaseAccountUpdateParameters',
'DatabaseRestoreResource',
'DefaultErrorResponse', 'DefaultErrorResponseException',
'DefaultRequestDatabaseAccountCreateUpdateProperties',
'ErrorResponse', 'ErrorResponseException',
'ErrorResponseUpdatedFormat', 'ErrorResponseUpdatedFormatException',
'ExcludedPath',
'ExtendedResourceProperties',
'FailoverPolicies',
Expand Down Expand Up @@ -483,28 +422,13 @@
'PercentileMetricValue',
'PeriodicModeBackupPolicy',
'PeriodicModeProperties',
'Permission',
'PrivateEndpointConnection',
'PrivateEndpointProperty',
'PrivateLinkResource',
'PrivateLinkServiceConnectionStateProperty',
'ProxyResource',
'RegionForOnlineOffline',
'Resource',
'RestorableDatabaseAccountGetResult',
'RestorableLocationResource',
'RestorableMongodbCollectionGetResult',
'RestorableMongodbCollectionPropertiesResource',
'RestorableMongodbDatabaseGetResult',
'RestorableMongodbDatabasePropertiesResource',
'RestorableSqlContainerGetResult',
'RestorableSqlContainerPropertiesResource',
'RestorableSqlContainerPropertiesResourceContainer',
'RestorableSqlDatabaseGetResult',
'RestorableSqlDatabasePropertiesResource',
'RestorableSqlDatabasePropertiesResourceDatabase',
'RestoreParameters',
'RestoreReqeustDatabaseAccountCreateUpdateProperties',
'SpatialSpec',
'SqlContainerCreateUpdateParameters',
'SqlContainerGetPropertiesOptions',
Expand All @@ -516,10 +440,6 @@
'SqlDatabaseGetPropertiesResource',
'SqlDatabaseGetResults',
'SqlDatabaseResource',
'SqlRoleAssignmentCreateUpdateParameters',
'SqlRoleAssignmentGetResults',
'SqlRoleDefinitionCreateUpdateParameters',
'SqlRoleDefinitionGetResults',
'SqlStoredProcedureCreateUpdateParameters',
'SqlStoredProcedureGetPropertiesResource',
'SqlStoredProcedureGetResults',
Expand All @@ -532,7 +452,6 @@
'SqlUserDefinedFunctionGetPropertiesResource',
'SqlUserDefinedFunctionGetResults',
'SqlUserDefinedFunctionResource',
'SystemData',
'TableCreateUpdateParameters',
'TableGetPropertiesOptions',
'TableGetPropertiesResource',
Expand Down Expand Up @@ -561,33 +480,24 @@
'SqlStoredProcedureGetResultsPaged',
'SqlUserDefinedFunctionGetResultsPaged',
'SqlTriggerGetResultsPaged',
'SqlRoleDefinitionGetResultsPaged',
'SqlRoleAssignmentGetResultsPaged',
'MongoDBDatabaseGetResultsPaged',
'MongoDBCollectionGetResultsPaged',
'TableGetResultsPaged',
'CassandraKeyspaceGetResultsPaged',
'CassandraTableGetResultsPaged',
'GremlinDatabaseGetResultsPaged',
'GremlinGraphGetResultsPaged',
'RestorableDatabaseAccountGetResultPaged',
'NotebookWorkspacePaged',
'RestorableSqlDatabaseGetResultPaged',
'RestorableSqlContainerGetResultPaged',
'DatabaseRestoreResourcePaged',
'RestorableMongodbDatabaseGetResultPaged',
'RestorableMongodbCollectionGetResultPaged',
'PrivateLinkResourcePaged',
'PrivateEndpointConnectionPaged',
'DatabaseAccountKind',
'ResourceIdentityType',
'DatabaseAccountOfferType',
'DefaultConsistencyLevel',
'ConnectorOffer',
'PublicNetworkAccess',
'ServerVersion',
'CreateMode',
'RestoreMode',
'CreatedByType',
'NetworkAclBypass',
'IndexingMode',
'DataType',
'IndexKind',
Expand All @@ -597,11 +507,8 @@
'ConflictResolutionMode',
'TriggerType',
'TriggerOperation',
'ResourceIdentityType',
'KeyKind',
'UnitType',
'PrimaryAggregationType',
'ApiType',
'RoleDefinitionType',
'OperationType',
'BackupPolicyType',
]
Loading

0 comments on commit c74d9c2

Please sign in to comment.