Skip to content

Commit cbfb037

Browse files
00Kai0SDKAuto
andauthored
[T1] cosmosdb 2020 06 01 preview (Azure#16189)
* CodeGen from PR 12445 in Azure/azure-rest-api-specs Merge af9f7aa394fae0c0486c29d24d650d7c481b71ba into 2fba87a * update test, changelog, version Co-authored-by: SDKAuto <[email protected]>
1 parent 6f142b0 commit cbfb037

18 files changed

+2261
-3177
lines changed

sdk/cosmos/azure-mgmt-cosmosdb/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Release History
22

3+
## 2.0.0rc2 (2021-01-15)
4+
5+
**Features**
6+
- Model RestorableDatabaseAccountGetResult has a new parameter restorable_locations
7+
- Model RestorableDatabaseAccountGetResult has a new parameter api_type
8+
- Added operation group RestorableMongodbResourcesOperations
9+
- Added operation group RestorableMongodbDatabasesOperations
10+
- Added operation group RestorableSqlDatabasesOperations
11+
- Added operation group RestorableMongodbCollectionsOperations
12+
- Added operation group RestorableSqlContainersOperations
13+
- Added operation group RestorableSqlResourcesOperations
14+
315
## 2.0.0rc1 (2020-10-14)
416

517
**Features**

sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_cosmos_db_management_client.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@
3333
from .operations import GremlinResourcesOperations
3434
from .operations import RestorableDatabaseAccountsOperations
3535
from .operations import NotebookWorkspacesOperations
36+
from .operations import RestorableSqlDatabasesOperations
37+
from .operations import RestorableSqlContainersOperations
38+
from .operations import RestorableSqlResourcesOperations
39+
from .operations import RestorableMongodbDatabasesOperations
40+
from .operations import RestorableMongodbCollectionsOperations
41+
from .operations import RestorableMongodbResourcesOperations
3642
from .operations import PrivateLinkResourcesOperations
3743
from .operations import PrivateEndpointConnectionsOperations
3844
from . import models
@@ -84,6 +90,18 @@ class CosmosDBManagementClient(SDKClient):
8490
:vartype restorable_database_accounts: azure.mgmt.cosmosdb.operations.RestorableDatabaseAccountsOperations
8591
:ivar notebook_workspaces: NotebookWorkspaces operations
8692
:vartype notebook_workspaces: azure.mgmt.cosmosdb.operations.NotebookWorkspacesOperations
93+
:ivar restorable_sql_databases: RestorableSqlDatabases operations
94+
:vartype restorable_sql_databases: azure.mgmt.cosmosdb.operations.RestorableSqlDatabasesOperations
95+
:ivar restorable_sql_containers: RestorableSqlContainers operations
96+
:vartype restorable_sql_containers: azure.mgmt.cosmosdb.operations.RestorableSqlContainersOperations
97+
:ivar restorable_sql_resources: RestorableSqlResources operations
98+
:vartype restorable_sql_resources: azure.mgmt.cosmosdb.operations.RestorableSqlResourcesOperations
99+
:ivar restorable_mongodb_databases: RestorableMongodbDatabases operations
100+
:vartype restorable_mongodb_databases: azure.mgmt.cosmosdb.operations.RestorableMongodbDatabasesOperations
101+
:ivar restorable_mongodb_collections: RestorableMongodbCollections operations
102+
:vartype restorable_mongodb_collections: azure.mgmt.cosmosdb.operations.RestorableMongodbCollectionsOperations
103+
:ivar restorable_mongodb_resources: RestorableMongodbResources operations
104+
:vartype restorable_mongodb_resources: azure.mgmt.cosmosdb.operations.RestorableMongodbResourcesOperations
87105
:ivar private_link_resources: PrivateLinkResources operations
88106
:vartype private_link_resources: azure.mgmt.cosmosdb.operations.PrivateLinkResourcesOperations
89107
:ivar private_endpoint_connections: PrivateEndpointConnections operations
@@ -147,6 +165,18 @@ def __init__(
147165
self._client, self.config, self._serialize, self._deserialize)
148166
self.notebook_workspaces = NotebookWorkspacesOperations(
149167
self._client, self.config, self._serialize, self._deserialize)
168+
self.restorable_sql_databases = RestorableSqlDatabasesOperations(
169+
self._client, self.config, self._serialize, self._deserialize)
170+
self.restorable_sql_containers = RestorableSqlContainersOperations(
171+
self._client, self.config, self._serialize, self._deserialize)
172+
self.restorable_sql_resources = RestorableSqlResourcesOperations(
173+
self._client, self.config, self._serialize, self._deserialize)
174+
self.restorable_mongodb_databases = RestorableMongodbDatabasesOperations(
175+
self._client, self.config, self._serialize, self._deserialize)
176+
self.restorable_mongodb_collections = RestorableMongodbCollectionsOperations(
177+
self._client, self.config, self._serialize, self._deserialize)
178+
self.restorable_mongodb_resources = RestorableMongodbResourcesOperations(
179+
self._client, self.config, self._serialize, self._deserialize)
150180
self.private_link_resources = PrivateLinkResourcesOperations(
151181
self._client, self.config, self._serialize, self._deserialize)
152182
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(

sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/__init__.py

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,17 @@
113113
from ._models_py3 import RegionForOnlineOffline
114114
from ._models_py3 import Resource
115115
from ._models_py3 import RestorableDatabaseAccountGetResult
116+
from ._models_py3 import RestorableLocationResource
117+
from ._models_py3 import RestorableMongodbCollectionGetResult
118+
from ._models_py3 import RestorableMongodbCollectionPropertiesResource
119+
from ._models_py3 import RestorableMongodbDatabaseGetResult
120+
from ._models_py3 import RestorableMongodbDatabasePropertiesResource
121+
from ._models_py3 import RestorableSqlContainerGetResult
122+
from ._models_py3 import RestorableSqlContainerPropertiesResource
123+
from ._models_py3 import RestorableSqlContainerPropertiesResourceContainer
124+
from ._models_py3 import RestorableSqlDatabaseGetResult
125+
from ._models_py3 import RestorableSqlDatabasePropertiesResource
126+
from ._models_py3 import RestorableSqlDatabasePropertiesResourceDatabase
116127
from ._models_py3 import RestoreParameters
117128
from ._models_py3 import RestoreReqeustDatabaseAccountCreateUpdateProperties
118129
from ._models_py3 import SpatialSpec
@@ -262,6 +273,17 @@
262273
from ._models import RegionForOnlineOffline
263274
from ._models import Resource
264275
from ._models import RestorableDatabaseAccountGetResult
276+
from ._models import RestorableLocationResource
277+
from ._models import RestorableMongodbCollectionGetResult
278+
from ._models import RestorableMongodbCollectionPropertiesResource
279+
from ._models import RestorableMongodbDatabaseGetResult
280+
from ._models import RestorableMongodbDatabasePropertiesResource
281+
from ._models import RestorableSqlContainerGetResult
282+
from ._models import RestorableSqlContainerPropertiesResource
283+
from ._models import RestorableSqlContainerPropertiesResourceContainer
284+
from ._models import RestorableSqlDatabaseGetResult
285+
from ._models import RestorableSqlDatabasePropertiesResource
286+
from ._models import RestorableSqlDatabasePropertiesResourceDatabase
265287
from ._models import RestoreParameters
266288
from ._models import RestoreReqeustDatabaseAccountCreateUpdateProperties
267289
from ._models import SpatialSpec
@@ -310,6 +332,7 @@
310332
from ._paged_models import CassandraKeyspaceGetResultsPaged
311333
from ._paged_models import CassandraTableGetResultsPaged
312334
from ._paged_models import DatabaseAccountGetResultsPaged
335+
from ._paged_models import DatabaseRestoreResourcePaged
313336
from ._paged_models import GremlinDatabaseGetResultsPaged
314337
from ._paged_models import GremlinGraphGetResultsPaged
315338
from ._paged_models import MetricDefinitionPaged
@@ -324,6 +347,10 @@
324347
from ._paged_models import PrivateEndpointConnectionPaged
325348
from ._paged_models import PrivateLinkResourcePaged
326349
from ._paged_models import RestorableDatabaseAccountGetResultPaged
350+
from ._paged_models import RestorableMongodbCollectionGetResultPaged
351+
from ._paged_models import RestorableMongodbDatabaseGetResultPaged
352+
from ._paged_models import RestorableSqlContainerGetResultPaged
353+
from ._paged_models import RestorableSqlDatabaseGetResultPaged
327354
from ._paged_models import SqlContainerGetResultsPaged
328355
from ._paged_models import SqlDatabaseGetResultsPaged
329356
from ._paged_models import SqlRoleAssignmentGetResultsPaged
@@ -356,7 +383,9 @@
356383
KeyKind,
357384
UnitType,
358385
PrimaryAggregationType,
386+
ApiType,
359387
RoleDefinitionType,
388+
OperationType,
360389
)
361390

362391
__all__ = [
@@ -463,6 +492,17 @@
463492
'RegionForOnlineOffline',
464493
'Resource',
465494
'RestorableDatabaseAccountGetResult',
495+
'RestorableLocationResource',
496+
'RestorableMongodbCollectionGetResult',
497+
'RestorableMongodbCollectionPropertiesResource',
498+
'RestorableMongodbDatabaseGetResult',
499+
'RestorableMongodbDatabasePropertiesResource',
500+
'RestorableSqlContainerGetResult',
501+
'RestorableSqlContainerPropertiesResource',
502+
'RestorableSqlContainerPropertiesResourceContainer',
503+
'RestorableSqlDatabaseGetResult',
504+
'RestorableSqlDatabasePropertiesResource',
505+
'RestorableSqlDatabasePropertiesResourceDatabase',
466506
'RestoreParameters',
467507
'RestoreReqeustDatabaseAccountCreateUpdateProperties',
468508
'SpatialSpec',
@@ -532,6 +572,11 @@
532572
'GremlinGraphGetResultsPaged',
533573
'RestorableDatabaseAccountGetResultPaged',
534574
'NotebookWorkspacePaged',
575+
'RestorableSqlDatabaseGetResultPaged',
576+
'RestorableSqlContainerGetResultPaged',
577+
'DatabaseRestoreResourcePaged',
578+
'RestorableMongodbDatabaseGetResultPaged',
579+
'RestorableMongodbCollectionGetResultPaged',
535580
'PrivateLinkResourcePaged',
536581
'PrivateEndpointConnectionPaged',
537582
'DatabaseAccountKind',
@@ -556,5 +601,7 @@
556601
'KeyKind',
557602
'UnitType',
558603
'PrimaryAggregationType',
604+
'ApiType',
559605
'RoleDefinitionType',
606+
'OperationType',
560607
]

sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_cosmos_db_management_client_enums.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,25 @@ class PrimaryAggregationType(str, Enum):
171171
last = "Last"
172172

173173

174+
class ApiType(str, Enum):
175+
176+
mongo_db = "MongoDB"
177+
gremlin = "Gremlin"
178+
cassandra = "Cassandra"
179+
table = "Table"
180+
sql = "Sql"
181+
gremlin_v2 = "GremlinV2"
182+
183+
174184
class RoleDefinitionType(str, Enum):
175185

176186
built_in_role = "BuiltInRole"
177187
custom_role = "CustomRole"
188+
189+
190+
class OperationType(str, Enum):
191+
192+
create = "Create"
193+
replace = "Replace"
194+
delete = "Delete"
195+
system_operation = "SystemOperation"

0 commit comments

Comments
 (0)