Skip to content

Commit

Permalink
Generated from e0713c36960661579b09ab1e073456565f285931
Browse files Browse the repository at this point in the history
  • Loading branch information
SDK Automation committed Oct 22, 2020
1 parent e50b27a commit 25ef439
Show file tree
Hide file tree
Showing 29 changed files with 2,183 additions and 3,659 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,12 @@
from .operations import TableResourcesOperations
from .operations import CassandraResourcesOperations
from .operations import GremlinResourcesOperations
from .operations import RestorableDatabaseAccountsOperations
from .operations import NotebookWorkspacesOperations
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 @@ -80,14 +77,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 private_link_resources: PrivateLinkResources operations
:vartype private_link_resources: azure.mgmt.cosmosdb.operations.PrivateLinkResourcesOperations
:ivar private_endpoint_connections: PrivateEndpointConnections operations
:vartype private_endpoint_connections: azure.mgmt.cosmosdb.operations.PrivateEndpointConnectionsOperations
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand All @@ -104,6 +95,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 = '2020-09-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand Down Expand Up @@ -143,11 +135,5 @@ 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.private_link_resources = PrivateLinkResourcesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
self._client, self.config, self._serialize, self._deserialize)
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 All @@ -72,8 +69,6 @@
from ._models_py3 import IndexingPolicy
from ._models_py3 import IpAddressOrRange
from ._models_py3 import Location
from ._models_py3 import ManagedServiceIdentity
from ._models_py3 import ManagedServiceIdentityUserAssignedIdentitiesValue
from ._models_py3 import Metric
from ._models_py3 import MetricAvailability
from ._models_py3 import MetricDefinition
Expand Down Expand Up @@ -104,17 +99,12 @@
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 RestoreParameters
from ._models_py3 import RestoreReqeustDatabaseAccountCreateUpdateProperties
from ._models_py3 import SpatialSpec
from ._models_py3 import SqlContainerCreateUpdateParameters
from ._models_py3 import SqlContainerGetPropertiesOptions
Expand All @@ -126,10 +116,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 @@ -142,7 +128,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 @@ -191,17 +176,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 All @@ -221,8 +203,6 @@
from ._models import IndexingPolicy
from ._models import IpAddressOrRange
from ._models import Location
from ._models import ManagedServiceIdentity
from ._models import ManagedServiceIdentityUserAssignedIdentitiesValue
from ._models import Metric
from ._models import MetricAvailability
from ._models import MetricDefinition
Expand Down Expand Up @@ -253,17 +233,12 @@
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 RestoreParameters
from ._models import RestoreReqeustDatabaseAccountCreateUpdateProperties
from ._models import SpatialSpec
from ._models import SqlContainerCreateUpdateParameters
from ._models import SqlContainerGetPropertiesOptions
Expand All @@ -275,10 +250,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 @@ -291,7 +262,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 Down Expand Up @@ -321,13 +291,8 @@
from ._paged_models import PartitionMetricPaged
from ._paged_models import PartitionUsagePaged
from ._paged_models import PercentileMetricPaged
from ._paged_models import PrivateEndpointConnectionPaged
from ._paged_models import PrivateLinkResourcePaged
from ._paged_models import RestorableDatabaseAccountGetResultPaged
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
Expand All @@ -340,9 +305,6 @@
ConnectorOffer,
PublicNetworkAccess,
ServerVersion,
CreateMode,
RestoreMode,
CreatedByType,
IndexingMode,
DataType,
IndexKind,
Expand All @@ -352,11 +314,10 @@
ConflictResolutionMode,
TriggerType,
TriggerOperation,
ResourceIdentityType,
KeyKind,
UnitType,
PrimaryAggregationType,
RoleDefinitionType,
BackupPolicyType,
)

__all__ = [
Expand Down Expand Up @@ -392,17 +353,14 @@
'CreateUpdateOptions',
'DatabaseAccountConnectionString',
'DatabaseAccountCreateUpdateParameters',
'DatabaseAccountCreateUpdateProperties',
'DatabaseAccountGetResults',
'DatabaseAccountListConnectionStringsResult',
'DatabaseAccountListKeysResult',
'DatabaseAccountListReadOnlyKeysResult',
'DatabaseAccountRegenerateKeyParameters',
'DatabaseAccountUpdateParameters',
'DatabaseRestoreResource',
'DefaultErrorResponse', 'DefaultErrorResponseException',
'DefaultRequestDatabaseAccountCreateUpdateProperties',
'ErrorResponse', 'ErrorResponseException',
'ErrorResponseUpdatedFormat', 'ErrorResponseUpdatedFormatException',
'ExcludedPath',
'ExtendedResourceProperties',
'FailoverPolicies',
Expand All @@ -422,8 +380,6 @@
'IndexingPolicy',
'IpAddressOrRange',
'Location',
'ManagedServiceIdentity',
'ManagedServiceIdentityUserAssignedIdentitiesValue',
'Metric',
'MetricAvailability',
'MetricDefinition',
Expand Down Expand Up @@ -454,17 +410,12 @@
'PercentileMetricValue',
'PeriodicModeBackupPolicy',
'PeriodicModeProperties',
'Permission',
'PrivateEndpointConnection',
'PrivateEndpointProperty',
'PrivateLinkResource',
'PrivateLinkServiceConnectionStateProperty',
'ProxyResource',
'RegionForOnlineOffline',
'Resource',
'RestorableDatabaseAccountGetResult',
'RestoreParameters',
'RestoreReqeustDatabaseAccountCreateUpdateProperties',
'SpatialSpec',
'SqlContainerCreateUpdateParameters',
'SqlContainerGetPropertiesOptions',
Expand All @@ -476,10 +427,6 @@
'SqlDatabaseGetPropertiesResource',
'SqlDatabaseGetResults',
'SqlDatabaseResource',
'SqlRoleAssignmentCreateUpdateParameters',
'SqlRoleAssignmentGetResults',
'SqlRoleDefinitionCreateUpdateParameters',
'SqlRoleDefinitionGetResults',
'SqlStoredProcedureCreateUpdateParameters',
'SqlStoredProcedureGetPropertiesResource',
'SqlStoredProcedureGetResults',
Expand All @@ -492,7 +439,6 @@
'SqlUserDefinedFunctionGetPropertiesResource',
'SqlUserDefinedFunctionGetResults',
'SqlUserDefinedFunctionResource',
'SystemData',
'TableCreateUpdateParameters',
'TableGetPropertiesOptions',
'TableGetPropertiesResource',
Expand Down Expand Up @@ -521,28 +467,20 @@
'SqlStoredProcedureGetResultsPaged',
'SqlUserDefinedFunctionGetResultsPaged',
'SqlTriggerGetResultsPaged',
'SqlRoleDefinitionGetResultsPaged',
'SqlRoleAssignmentGetResultsPaged',
'MongoDBDatabaseGetResultsPaged',
'MongoDBCollectionGetResultsPaged',
'TableGetResultsPaged',
'CassandraKeyspaceGetResultsPaged',
'CassandraTableGetResultsPaged',
'GremlinDatabaseGetResultsPaged',
'GremlinGraphGetResultsPaged',
'RestorableDatabaseAccountGetResultPaged',
'NotebookWorkspacePaged',
'PrivateLinkResourcePaged',
'PrivateEndpointConnectionPaged',
'DatabaseAccountKind',
'DatabaseAccountOfferType',
'DefaultConsistencyLevel',
'ConnectorOffer',
'PublicNetworkAccess',
'ServerVersion',
'CreateMode',
'RestoreMode',
'CreatedByType',
'IndexingMode',
'DataType',
'IndexKind',
Expand All @@ -552,9 +490,8 @@
'ConflictResolutionMode',
'TriggerType',
'TriggerOperation',
'ResourceIdentityType',
'KeyKind',
'UnitType',
'PrimaryAggregationType',
'RoleDefinitionType',
'BackupPolicyType',
]
Original file line number Diff line number Diff line change
Expand Up @@ -50,25 +50,6 @@ class ServerVersion(str, Enum):
three_full_stop_six = "3.6"


class CreateMode(str, Enum):

default = "Default"
restore = "Restore"


class RestoreMode(str, Enum):

point_in_time = "PointInTime"


class CreatedByType(str, Enum):

user = "User"
application = "Application"
managed_identity = "ManagedIdentity"
key = "Key"


class IndexingMode(str, Enum):

consistent = "Consistent"
Expand Down Expand Up @@ -134,14 +115,6 @@ class TriggerOperation(str, Enum):
replace = "Replace"


class ResourceIdentityType(str, Enum):

system_assigned = "SystemAssigned"
user_assigned = "UserAssigned"
system_assigned_user_assigned = "SystemAssigned,UserAssigned"
none = "None"


class KeyKind(str, Enum):

primary = "primary"
Expand Down Expand Up @@ -171,7 +144,7 @@ class PrimaryAggregationType(str, Enum):
last = "Last"


class RoleDefinitionType(str, Enum):
class BackupPolicyType(str, Enum):

built_in_role = "BuiltInRole"
custom_role = "CustomRole"
periodic = "Periodic"
continuous = "Continuous"
Loading

0 comments on commit 25ef439

Please sign in to comment.