@azure/arm-cosmosdb 16.3.0-alpha.20250718.1 → 16.3.0-alpha.20250721.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/cosmosDBManagementClient.js +50 -5
- package/dist/browser/cosmosDBManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +661 -279
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/cassandraClusters.js +85 -89
- package/dist/browser/operations/cassandraClusters.js.map +1 -1
- package/dist/browser/operations/cassandraDataCenters.js +43 -45
- package/dist/browser/operations/cassandraDataCenters.js.map +1 -1
- package/dist/browser/operations/cassandraResources.js +129 -113
- package/dist/browser/operations/cassandraResources.js.map +1 -1
- package/dist/browser/operations/collection.js +28 -79
- package/dist/browser/operations/collection.js.map +1 -1
- package/dist/browser/operations/collectionPartition.js +19 -53
- package/dist/browser/operations/collectionPartition.js.map +1 -1
- package/dist/browser/operations/collectionPartitionRegion.js +10 -27
- package/dist/browser/operations/collectionPartitionRegion.js.map +1 -1
- package/dist/browser/operations/collectionRegion.js +10 -27
- package/dist/browser/operations/collectionRegion.js.map +1 -1
- package/dist/browser/operations/database.js +28 -79
- package/dist/browser/operations/database.js.map +1 -1
- package/dist/browser/operations/databaseAccountRegion.js +10 -27
- package/dist/browser/operations/databaseAccountRegion.js.map +1 -1
- package/dist/browser/operations/databaseAccounts.js +123 -173
- package/dist/browser/operations/databaseAccounts.js.map +1 -1
- package/dist/browser/operations/gremlinResources.js +140 -119
- package/dist/browser/operations/gremlinResources.js.map +1 -1
- package/dist/browser/operations/locations.js +10 -27
- package/dist/browser/operations/locations.js.map +1 -1
- package/dist/browser/operations/mongoDBResources.js +202 -195
- package/dist/browser/operations/mongoDBResources.js.map +1 -1
- package/dist/browser/operations/notebookWorkspaces.js +54 -51
- package/dist/browser/operations/notebookWorkspaces.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/partitionKeyRangeId.js +10 -27
- package/dist/browser/operations/partitionKeyRangeId.js.map +1 -1
- package/dist/browser/operations/partitionKeyRangeIdRegion.js +10 -27
- package/dist/browser/operations/partitionKeyRangeIdRegion.js.map +1 -1
- package/dist/browser/operations/percentile.js +10 -27
- package/dist/browser/operations/percentile.js.map +1 -1
- package/dist/browser/operations/percentileSourceTarget.js +10 -27
- package/dist/browser/operations/percentileSourceTarget.js.map +1 -1
- package/dist/browser/operations/percentileTarget.js +10 -27
- package/dist/browser/operations/percentileTarget.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.js +32 -39
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.js +10 -27
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/restorableDatabaseAccounts.js +19 -53
- package/dist/browser/operations/restorableDatabaseAccounts.js.map +1 -1
- package/dist/browser/operations/restorableGremlinDatabases.js +10 -27
- package/dist/browser/operations/restorableGremlinDatabases.js.map +1 -1
- package/dist/browser/operations/restorableGremlinGraphs.js +10 -27
- package/dist/browser/operations/restorableGremlinGraphs.js.map +1 -1
- package/dist/browser/operations/restorableGremlinResources.js +10 -27
- package/dist/browser/operations/restorableGremlinResources.js.map +1 -1
- package/dist/browser/operations/restorableMongodbCollections.js +10 -27
- package/dist/browser/operations/restorableMongodbCollections.js.map +1 -1
- package/dist/browser/operations/restorableMongodbDatabases.js +10 -27
- package/dist/browser/operations/restorableMongodbDatabases.js.map +1 -1
- package/dist/browser/operations/restorableMongodbResources.js +10 -27
- package/dist/browser/operations/restorableMongodbResources.js.map +1 -1
- package/dist/browser/operations/restorableSqlContainers.js +10 -27
- package/dist/browser/operations/restorableSqlContainers.js.map +1 -1
- package/dist/browser/operations/restorableSqlDatabases.js +10 -27
- package/dist/browser/operations/restorableSqlDatabases.js.map +1 -1
- package/dist/browser/operations/restorableSqlResources.js +10 -27
- package/dist/browser/operations/restorableSqlResources.js.map +1 -1
- package/dist/browser/operations/restorableTableResources.js +10 -27
- package/dist/browser/operations/restorableTableResources.js.map +1 -1
- package/dist/browser/operations/restorableTables.js +10 -27
- package/dist/browser/operations/restorableTables.js.map +1 -1
- package/dist/browser/operations/service.js +32 -39
- package/dist/browser/operations/service.js.map +1 -1
- package/dist/browser/operations/sqlResources.js +315 -341
- package/dist/browser/operations/sqlResources.js.map +1 -1
- package/dist/browser/operations/tableResources.js +76 -63
- package/dist/browser/operations/tableResources.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/cosmosDBManagementClient.js +50 -5
- package/dist/commonjs/cosmosDBManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +661 -279
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/cassandraClusters.js +85 -88
- package/dist/commonjs/operations/cassandraClusters.js.map +1 -1
- package/dist/commonjs/operations/cassandraDataCenters.js +43 -44
- package/dist/commonjs/operations/cassandraDataCenters.js.map +1 -1
- package/dist/commonjs/operations/cassandraResources.js +129 -112
- package/dist/commonjs/operations/cassandraResources.js.map +1 -1
- package/dist/commonjs/operations/collection.js +28 -78
- package/dist/commonjs/operations/collection.js.map +1 -1
- package/dist/commonjs/operations/collectionPartition.js +19 -52
- package/dist/commonjs/operations/collectionPartition.js.map +1 -1
- package/dist/commonjs/operations/collectionPartitionRegion.js +10 -26
- package/dist/commonjs/operations/collectionPartitionRegion.js.map +1 -1
- package/dist/commonjs/operations/collectionRegion.js +10 -26
- package/dist/commonjs/operations/collectionRegion.js.map +1 -1
- package/dist/commonjs/operations/database.js +28 -78
- package/dist/commonjs/operations/database.js.map +1 -1
- package/dist/commonjs/operations/databaseAccountRegion.js +10 -26
- package/dist/commonjs/operations/databaseAccountRegion.js.map +1 -1
- package/dist/commonjs/operations/databaseAccounts.js +123 -172
- package/dist/commonjs/operations/databaseAccounts.js.map +1 -1
- package/dist/commonjs/operations/gremlinResources.js +140 -118
- package/dist/commonjs/operations/gremlinResources.js.map +1 -1
- package/dist/commonjs/operations/locations.js +10 -26
- package/dist/commonjs/operations/locations.js.map +1 -1
- package/dist/commonjs/operations/mongoDBResources.js +202 -194
- package/dist/commonjs/operations/mongoDBResources.js.map +1 -1
- package/dist/commonjs/operations/notebookWorkspaces.js +54 -50
- package/dist/commonjs/operations/notebookWorkspaces.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/partitionKeyRangeId.js +10 -26
- package/dist/commonjs/operations/partitionKeyRangeId.js.map +1 -1
- package/dist/commonjs/operations/partitionKeyRangeIdRegion.js +10 -26
- package/dist/commonjs/operations/partitionKeyRangeIdRegion.js.map +1 -1
- package/dist/commonjs/operations/percentile.js +10 -26
- package/dist/commonjs/operations/percentile.js.map +1 -1
- package/dist/commonjs/operations/percentileSourceTarget.js +10 -26
- package/dist/commonjs/operations/percentileSourceTarget.js.map +1 -1
- package/dist/commonjs/operations/percentileTarget.js +10 -26
- package/dist/commonjs/operations/percentileTarget.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.js +32 -38
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js +10 -26
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/restorableDatabaseAccounts.js +19 -52
- package/dist/commonjs/operations/restorableDatabaseAccounts.js.map +1 -1
- package/dist/commonjs/operations/restorableGremlinDatabases.js +10 -26
- package/dist/commonjs/operations/restorableGremlinDatabases.js.map +1 -1
- package/dist/commonjs/operations/restorableGremlinGraphs.js +10 -26
- package/dist/commonjs/operations/restorableGremlinGraphs.js.map +1 -1
- package/dist/commonjs/operations/restorableGremlinResources.js +10 -26
- package/dist/commonjs/operations/restorableGremlinResources.js.map +1 -1
- package/dist/commonjs/operations/restorableMongodbCollections.js +10 -26
- package/dist/commonjs/operations/restorableMongodbCollections.js.map +1 -1
- package/dist/commonjs/operations/restorableMongodbDatabases.js +10 -26
- package/dist/commonjs/operations/restorableMongodbDatabases.js.map +1 -1
- package/dist/commonjs/operations/restorableMongodbResources.js +10 -26
- package/dist/commonjs/operations/restorableMongodbResources.js.map +1 -1
- package/dist/commonjs/operations/restorableSqlContainers.js +10 -26
- package/dist/commonjs/operations/restorableSqlContainers.js.map +1 -1
- package/dist/commonjs/operations/restorableSqlDatabases.js +10 -26
- package/dist/commonjs/operations/restorableSqlDatabases.js.map +1 -1
- package/dist/commonjs/operations/restorableSqlResources.js +10 -26
- package/dist/commonjs/operations/restorableSqlResources.js.map +1 -1
- package/dist/commonjs/operations/restorableTableResources.js +10 -26
- package/dist/commonjs/operations/restorableTableResources.js.map +1 -1
- package/dist/commonjs/operations/restorableTables.js +10 -26
- package/dist/commonjs/operations/restorableTables.js.map +1 -1
- package/dist/commonjs/operations/service.js +32 -38
- package/dist/commonjs/operations/service.js.map +1 -1
- package/dist/commonjs/operations/sqlResources.js +315 -340
- package/dist/commonjs/operations/sqlResources.js.map +1 -1
- package/dist/commonjs/operations/tableResources.js +76 -62
- package/dist/commonjs/operations/tableResources.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/esm/cosmosDBManagementClient.js +50 -5
- package/dist/esm/cosmosDBManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +661 -279
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/cassandraClusters.js +85 -89
- package/dist/esm/operations/cassandraClusters.js.map +1 -1
- package/dist/esm/operations/cassandraDataCenters.js +43 -45
- package/dist/esm/operations/cassandraDataCenters.js.map +1 -1
- package/dist/esm/operations/cassandraResources.js +129 -113
- package/dist/esm/operations/cassandraResources.js.map +1 -1
- package/dist/esm/operations/collection.js +28 -79
- package/dist/esm/operations/collection.js.map +1 -1
- package/dist/esm/operations/collectionPartition.js +19 -53
- package/dist/esm/operations/collectionPartition.js.map +1 -1
- package/dist/esm/operations/collectionPartitionRegion.js +10 -27
- package/dist/esm/operations/collectionPartitionRegion.js.map +1 -1
- package/dist/esm/operations/collectionRegion.js +10 -27
- package/dist/esm/operations/collectionRegion.js.map +1 -1
- package/dist/esm/operations/database.js +28 -79
- package/dist/esm/operations/database.js.map +1 -1
- package/dist/esm/operations/databaseAccountRegion.js +10 -27
- package/dist/esm/operations/databaseAccountRegion.js.map +1 -1
- package/dist/esm/operations/databaseAccounts.js +123 -173
- package/dist/esm/operations/databaseAccounts.js.map +1 -1
- package/dist/esm/operations/gremlinResources.js +140 -119
- package/dist/esm/operations/gremlinResources.js.map +1 -1
- package/dist/esm/operations/locations.js +10 -27
- package/dist/esm/operations/locations.js.map +1 -1
- package/dist/esm/operations/mongoDBResources.js +202 -195
- package/dist/esm/operations/mongoDBResources.js.map +1 -1
- package/dist/esm/operations/notebookWorkspaces.js +54 -51
- package/dist/esm/operations/notebookWorkspaces.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/partitionKeyRangeId.js +10 -27
- package/dist/esm/operations/partitionKeyRangeId.js.map +1 -1
- package/dist/esm/operations/partitionKeyRangeIdRegion.js +10 -27
- package/dist/esm/operations/partitionKeyRangeIdRegion.js.map +1 -1
- package/dist/esm/operations/percentile.js +10 -27
- package/dist/esm/operations/percentile.js.map +1 -1
- package/dist/esm/operations/percentileSourceTarget.js +10 -27
- package/dist/esm/operations/percentileSourceTarget.js.map +1 -1
- package/dist/esm/operations/percentileTarget.js +10 -27
- package/dist/esm/operations/percentileTarget.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnections.js +32 -39
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/privateLinkResources.js +10 -27
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/operations/restorableDatabaseAccounts.js +19 -53
- package/dist/esm/operations/restorableDatabaseAccounts.js.map +1 -1
- package/dist/esm/operations/restorableGremlinDatabases.js +10 -27
- package/dist/esm/operations/restorableGremlinDatabases.js.map +1 -1
- package/dist/esm/operations/restorableGremlinGraphs.js +10 -27
- package/dist/esm/operations/restorableGremlinGraphs.js.map +1 -1
- package/dist/esm/operations/restorableGremlinResources.js +10 -27
- package/dist/esm/operations/restorableGremlinResources.js.map +1 -1
- package/dist/esm/operations/restorableMongodbCollections.js +10 -27
- package/dist/esm/operations/restorableMongodbCollections.js.map +1 -1
- package/dist/esm/operations/restorableMongodbDatabases.js +10 -27
- package/dist/esm/operations/restorableMongodbDatabases.js.map +1 -1
- package/dist/esm/operations/restorableMongodbResources.js +10 -27
- package/dist/esm/operations/restorableMongodbResources.js.map +1 -1
- package/dist/esm/operations/restorableSqlContainers.js +10 -27
- package/dist/esm/operations/restorableSqlContainers.js.map +1 -1
- package/dist/esm/operations/restorableSqlDatabases.js +10 -27
- package/dist/esm/operations/restorableSqlDatabases.js.map +1 -1
- package/dist/esm/operations/restorableSqlResources.js +10 -27
- package/dist/esm/operations/restorableSqlResources.js.map +1 -1
- package/dist/esm/operations/restorableTableResources.js +10 -27
- package/dist/esm/operations/restorableTableResources.js.map +1 -1
- package/dist/esm/operations/restorableTables.js +10 -27
- package/dist/esm/operations/restorableTables.js.map +1 -1
- package/dist/esm/operations/service.js +32 -39
- package/dist/esm/operations/service.js.map +1 -1
- package/dist/esm/operations/sqlResources.js +315 -341
- package/dist/esm/operations/sqlResources.js.map +1 -1
- package/dist/esm/operations/tableResources.js +76 -63
- package/dist/esm/operations/tableResources.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/cosmosDBManagementClient.js +50 -5
- package/dist/react-native/cosmosDBManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +661 -279
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/cassandraClusters.js +85 -89
- package/dist/react-native/operations/cassandraClusters.js.map +1 -1
- package/dist/react-native/operations/cassandraDataCenters.js +43 -45
- package/dist/react-native/operations/cassandraDataCenters.js.map +1 -1
- package/dist/react-native/operations/cassandraResources.js +129 -113
- package/dist/react-native/operations/cassandraResources.js.map +1 -1
- package/dist/react-native/operations/collection.js +28 -79
- package/dist/react-native/operations/collection.js.map +1 -1
- package/dist/react-native/operations/collectionPartition.js +19 -53
- package/dist/react-native/operations/collectionPartition.js.map +1 -1
- package/dist/react-native/operations/collectionPartitionRegion.js +10 -27
- package/dist/react-native/operations/collectionPartitionRegion.js.map +1 -1
- package/dist/react-native/operations/collectionRegion.js +10 -27
- package/dist/react-native/operations/collectionRegion.js.map +1 -1
- package/dist/react-native/operations/database.js +28 -79
- package/dist/react-native/operations/database.js.map +1 -1
- package/dist/react-native/operations/databaseAccountRegion.js +10 -27
- package/dist/react-native/operations/databaseAccountRegion.js.map +1 -1
- package/dist/react-native/operations/databaseAccounts.js +123 -173
- package/dist/react-native/operations/databaseAccounts.js.map +1 -1
- package/dist/react-native/operations/gremlinResources.js +140 -119
- package/dist/react-native/operations/gremlinResources.js.map +1 -1
- package/dist/react-native/operations/locations.js +10 -27
- package/dist/react-native/operations/locations.js.map +1 -1
- package/dist/react-native/operations/mongoDBResources.js +202 -195
- package/dist/react-native/operations/mongoDBResources.js.map +1 -1
- package/dist/react-native/operations/notebookWorkspaces.js +54 -51
- package/dist/react-native/operations/notebookWorkspaces.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/partitionKeyRangeId.js +10 -27
- package/dist/react-native/operations/partitionKeyRangeId.js.map +1 -1
- package/dist/react-native/operations/partitionKeyRangeIdRegion.js +10 -27
- package/dist/react-native/operations/partitionKeyRangeIdRegion.js.map +1 -1
- package/dist/react-native/operations/percentile.js +10 -27
- package/dist/react-native/operations/percentile.js.map +1 -1
- package/dist/react-native/operations/percentileSourceTarget.js +10 -27
- package/dist/react-native/operations/percentileSourceTarget.js.map +1 -1
- package/dist/react-native/operations/percentileTarget.js +10 -27
- package/dist/react-native/operations/percentileTarget.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnections.js +32 -39
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/privateLinkResources.js +10 -27
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/operations/restorableDatabaseAccounts.js +19 -53
- package/dist/react-native/operations/restorableDatabaseAccounts.js.map +1 -1
- package/dist/react-native/operations/restorableGremlinDatabases.js +10 -27
- package/dist/react-native/operations/restorableGremlinDatabases.js.map +1 -1
- package/dist/react-native/operations/restorableGremlinGraphs.js +10 -27
- package/dist/react-native/operations/restorableGremlinGraphs.js.map +1 -1
- package/dist/react-native/operations/restorableGremlinResources.js +10 -27
- package/dist/react-native/operations/restorableGremlinResources.js.map +1 -1
- package/dist/react-native/operations/restorableMongodbCollections.js +10 -27
- package/dist/react-native/operations/restorableMongodbCollections.js.map +1 -1
- package/dist/react-native/operations/restorableMongodbDatabases.js +10 -27
- package/dist/react-native/operations/restorableMongodbDatabases.js.map +1 -1
- package/dist/react-native/operations/restorableMongodbResources.js +10 -27
- package/dist/react-native/operations/restorableMongodbResources.js.map +1 -1
- package/dist/react-native/operations/restorableSqlContainers.js +10 -27
- package/dist/react-native/operations/restorableSqlContainers.js.map +1 -1
- package/dist/react-native/operations/restorableSqlDatabases.js +10 -27
- package/dist/react-native/operations/restorableSqlDatabases.js.map +1 -1
- package/dist/react-native/operations/restorableSqlResources.js +10 -27
- package/dist/react-native/operations/restorableSqlResources.js.map +1 -1
- package/dist/react-native/operations/restorableTableResources.js +10 -27
- package/dist/react-native/operations/restorableTableResources.js.map +1 -1
- package/dist/react-native/operations/restorableTables.js +10 -27
- package/dist/react-native/operations/restorableTables.js.map +1 -1
- package/dist/react-native/operations/service.js +32 -39
- package/dist/react-native/operations/service.js.map +1 -1
- package/dist/react-native/operations/sqlResources.js +315 -341
- package/dist/react-native/operations/sqlResources.js.map +1 -1
- package/dist/react-native/operations/tableResources.js +76 -63
- package/dist/react-native/operations/tableResources.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
|
@@ -17,6 +17,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
17
17
|
/// <reference lib="esnext.asynciterable" />
|
|
18
18
|
/** Class containing MongoDBResources operations. */
|
|
19
19
|
class MongoDBResourcesImpl {
|
|
20
|
+
client;
|
|
20
21
|
/**
|
|
21
22
|
* Initialize a new instance of the class MongoDBResources class.
|
|
22
23
|
* @param client Reference to the service client
|
|
@@ -40,39 +41,22 @@ class MongoDBResourcesImpl {
|
|
|
40
41
|
return this;
|
|
41
42
|
},
|
|
42
43
|
byPage: (settings) => {
|
|
43
|
-
if (settings
|
|
44
|
+
if (settings?.maxPageSize) {
|
|
44
45
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
45
46
|
}
|
|
46
47
|
return this.listMongoDBDatabasesPagingPage(resourceGroupName, accountName, options, settings);
|
|
47
48
|
},
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
|
-
listMongoDBDatabasesPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
yield yield tslib_1.__await(result.value || []);
|
|
55
|
-
});
|
|
51
|
+
async *listMongoDBDatabasesPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
52
|
+
let result;
|
|
53
|
+
result = await this._listMongoDBDatabases(resourceGroupName, accountName, options);
|
|
54
|
+
yield result.value || [];
|
|
56
55
|
}
|
|
57
|
-
listMongoDBDatabasesPagingAll(resourceGroupName, accountName, options) {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listMongoDBDatabasesPagingPage(resourceGroupName, accountName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
62
|
-
_c = _f.value;
|
|
63
|
-
_d = false;
|
|
64
|
-
const page = _c;
|
|
65
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
69
|
-
finally {
|
|
70
|
-
try {
|
|
71
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
72
|
-
}
|
|
73
|
-
finally { if (e_1) throw e_1.error; }
|
|
74
|
-
}
|
|
75
|
-
});
|
|
56
|
+
async *listMongoDBDatabasesPagingAll(resourceGroupName, accountName, options) {
|
|
57
|
+
for await (const page of this.listMongoDBDatabasesPagingPage(resourceGroupName, accountName, options)) {
|
|
58
|
+
yield* page;
|
|
59
|
+
}
|
|
76
60
|
}
|
|
77
61
|
/**
|
|
78
62
|
* Lists the MongoDB collection under an existing Azure Cosmos DB database account.
|
|
@@ -91,39 +75,22 @@ class MongoDBResourcesImpl {
|
|
|
91
75
|
return this;
|
|
92
76
|
},
|
|
93
77
|
byPage: (settings) => {
|
|
94
|
-
if (settings
|
|
78
|
+
if (settings?.maxPageSize) {
|
|
95
79
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
96
80
|
}
|
|
97
81
|
return this.listMongoDBCollectionsPagingPage(resourceGroupName, accountName, databaseName, options, settings);
|
|
98
82
|
},
|
|
99
83
|
};
|
|
100
84
|
}
|
|
101
|
-
listMongoDBCollectionsPagingPage(resourceGroupName, accountName, databaseName, options, _settings) {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
yield yield tslib_1.__await(result.value || []);
|
|
106
|
-
});
|
|
85
|
+
async *listMongoDBCollectionsPagingPage(resourceGroupName, accountName, databaseName, options, _settings) {
|
|
86
|
+
let result;
|
|
87
|
+
result = await this._listMongoDBCollections(resourceGroupName, accountName, databaseName, options);
|
|
88
|
+
yield result.value || [];
|
|
107
89
|
}
|
|
108
|
-
listMongoDBCollectionsPagingAll(resourceGroupName, accountName, databaseName, options) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listMongoDBCollectionsPagingPage(resourceGroupName, accountName, databaseName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
113
|
-
_c = _f.value;
|
|
114
|
-
_d = false;
|
|
115
|
-
const page = _c;
|
|
116
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
120
|
-
finally {
|
|
121
|
-
try {
|
|
122
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
123
|
-
}
|
|
124
|
-
finally { if (e_2) throw e_2.error; }
|
|
125
|
-
}
|
|
126
|
-
});
|
|
90
|
+
async *listMongoDBCollectionsPagingAll(resourceGroupName, accountName, databaseName, options) {
|
|
91
|
+
for await (const page of this.listMongoDBCollectionsPagingPage(resourceGroupName, accountName, databaseName, options)) {
|
|
92
|
+
yield* page;
|
|
93
|
+
}
|
|
127
94
|
}
|
|
128
95
|
/**
|
|
129
96
|
* Retrieves the list of all Azure Cosmos DB Mongo Role Definitions.
|
|
@@ -141,39 +108,22 @@ class MongoDBResourcesImpl {
|
|
|
141
108
|
return this;
|
|
142
109
|
},
|
|
143
110
|
byPage: (settings) => {
|
|
144
|
-
if (settings
|
|
111
|
+
if (settings?.maxPageSize) {
|
|
145
112
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
146
113
|
}
|
|
147
114
|
return this.listMongoRoleDefinitionsPagingPage(resourceGroupName, accountName, options, settings);
|
|
148
115
|
},
|
|
149
116
|
};
|
|
150
117
|
}
|
|
151
|
-
listMongoRoleDefinitionsPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
yield yield tslib_1.__await(result.value || []);
|
|
156
|
-
});
|
|
118
|
+
async *listMongoRoleDefinitionsPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
119
|
+
let result;
|
|
120
|
+
result = await this._listMongoRoleDefinitions(resourceGroupName, accountName, options);
|
|
121
|
+
yield result.value || [];
|
|
157
122
|
}
|
|
158
|
-
listMongoRoleDefinitionsPagingAll(resourceGroupName, accountName, options) {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listMongoRoleDefinitionsPagingPage(resourceGroupName, accountName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
163
|
-
_c = _f.value;
|
|
164
|
-
_d = false;
|
|
165
|
-
const page = _c;
|
|
166
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
170
|
-
finally {
|
|
171
|
-
try {
|
|
172
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
173
|
-
}
|
|
174
|
-
finally { if (e_3) throw e_3.error; }
|
|
175
|
-
}
|
|
176
|
-
});
|
|
123
|
+
async *listMongoRoleDefinitionsPagingAll(resourceGroupName, accountName, options) {
|
|
124
|
+
for await (const page of this.listMongoRoleDefinitionsPagingPage(resourceGroupName, accountName, options)) {
|
|
125
|
+
yield* page;
|
|
126
|
+
}
|
|
177
127
|
}
|
|
178
128
|
/**
|
|
179
129
|
* Retrieves the list of all Azure Cosmos DB Mongo User Definition.
|
|
@@ -191,39 +141,22 @@ class MongoDBResourcesImpl {
|
|
|
191
141
|
return this;
|
|
192
142
|
},
|
|
193
143
|
byPage: (settings) => {
|
|
194
|
-
if (settings
|
|
144
|
+
if (settings?.maxPageSize) {
|
|
195
145
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
196
146
|
}
|
|
197
147
|
return this.listMongoUserDefinitionsPagingPage(resourceGroupName, accountName, options, settings);
|
|
198
148
|
},
|
|
199
149
|
};
|
|
200
150
|
}
|
|
201
|
-
listMongoUserDefinitionsPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
yield yield tslib_1.__await(result.value || []);
|
|
206
|
-
});
|
|
151
|
+
async *listMongoUserDefinitionsPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
152
|
+
let result;
|
|
153
|
+
result = await this._listMongoUserDefinitions(resourceGroupName, accountName, options);
|
|
154
|
+
yield result.value || [];
|
|
207
155
|
}
|
|
208
|
-
listMongoUserDefinitionsPagingAll(resourceGroupName, accountName, options) {
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listMongoUserDefinitionsPagingPage(resourceGroupName, accountName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
213
|
-
_c = _f.value;
|
|
214
|
-
_d = false;
|
|
215
|
-
const page = _c;
|
|
216
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
220
|
-
finally {
|
|
221
|
-
try {
|
|
222
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
223
|
-
}
|
|
224
|
-
finally { if (e_4) throw e_4.error; }
|
|
225
|
-
}
|
|
226
|
-
});
|
|
156
|
+
async *listMongoUserDefinitionsPagingAll(resourceGroupName, accountName, options) {
|
|
157
|
+
for await (const page of this.listMongoUserDefinitionsPagingPage(resourceGroupName, accountName, options)) {
|
|
158
|
+
yield* page;
|
|
159
|
+
}
|
|
227
160
|
}
|
|
228
161
|
/**
|
|
229
162
|
* Lists the MongoDB databases under an existing Azure Cosmos DB database account.
|
|
@@ -259,14 +192,19 @@ class MongoDBResourcesImpl {
|
|
|
259
192
|
return this.client.sendOperationRequest(args, spec);
|
|
260
193
|
};
|
|
261
194
|
const sendOperationFn = async (args, spec) => {
|
|
262
|
-
var _a;
|
|
263
195
|
let currentRawResponse = undefined;
|
|
264
|
-
const providedCallback =
|
|
196
|
+
const providedCallback = args.options?.onResponse;
|
|
265
197
|
const callback = (rawResponse, flatResponse) => {
|
|
266
198
|
currentRawResponse = rawResponse;
|
|
267
|
-
providedCallback
|
|
199
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
200
|
+
};
|
|
201
|
+
const updatedArgs = {
|
|
202
|
+
...args,
|
|
203
|
+
options: {
|
|
204
|
+
...args.options,
|
|
205
|
+
onResponse: callback,
|
|
206
|
+
},
|
|
268
207
|
};
|
|
269
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
270
208
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
271
209
|
return {
|
|
272
210
|
flatResponse,
|
|
@@ -289,8 +227,8 @@ class MongoDBResourcesImpl {
|
|
|
289
227
|
spec: createUpdateMongoDBDatabaseOperationSpec,
|
|
290
228
|
});
|
|
291
229
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
292
|
-
restoreFrom: options
|
|
293
|
-
intervalInMs: options
|
|
230
|
+
restoreFrom: options?.resumeFrom,
|
|
231
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
294
232
|
});
|
|
295
233
|
await poller.poll();
|
|
296
234
|
return poller;
|
|
@@ -320,14 +258,19 @@ class MongoDBResourcesImpl {
|
|
|
320
258
|
return this.client.sendOperationRequest(args, spec);
|
|
321
259
|
};
|
|
322
260
|
const sendOperationFn = async (args, spec) => {
|
|
323
|
-
var _a;
|
|
324
261
|
let currentRawResponse = undefined;
|
|
325
|
-
const providedCallback =
|
|
262
|
+
const providedCallback = args.options?.onResponse;
|
|
326
263
|
const callback = (rawResponse, flatResponse) => {
|
|
327
264
|
currentRawResponse = rawResponse;
|
|
328
|
-
providedCallback
|
|
265
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
266
|
+
};
|
|
267
|
+
const updatedArgs = {
|
|
268
|
+
...args,
|
|
269
|
+
options: {
|
|
270
|
+
...args.options,
|
|
271
|
+
onResponse: callback,
|
|
272
|
+
},
|
|
329
273
|
};
|
|
330
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
331
274
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
332
275
|
return {
|
|
333
276
|
flatResponse,
|
|
@@ -344,8 +287,8 @@ class MongoDBResourcesImpl {
|
|
|
344
287
|
spec: deleteMongoDBDatabaseOperationSpec,
|
|
345
288
|
});
|
|
346
289
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
347
|
-
restoreFrom: options
|
|
348
|
-
intervalInMs: options
|
|
290
|
+
restoreFrom: options?.resumeFrom,
|
|
291
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
349
292
|
});
|
|
350
293
|
await poller.poll();
|
|
351
294
|
return poller;
|
|
@@ -386,14 +329,19 @@ class MongoDBResourcesImpl {
|
|
|
386
329
|
return this.client.sendOperationRequest(args, spec);
|
|
387
330
|
};
|
|
388
331
|
const sendOperationFn = async (args, spec) => {
|
|
389
|
-
var _a;
|
|
390
332
|
let currentRawResponse = undefined;
|
|
391
|
-
const providedCallback =
|
|
333
|
+
const providedCallback = args.options?.onResponse;
|
|
392
334
|
const callback = (rawResponse, flatResponse) => {
|
|
393
335
|
currentRawResponse = rawResponse;
|
|
394
|
-
providedCallback
|
|
336
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
337
|
+
};
|
|
338
|
+
const updatedArgs = {
|
|
339
|
+
...args,
|
|
340
|
+
options: {
|
|
341
|
+
...args.options,
|
|
342
|
+
onResponse: callback,
|
|
343
|
+
},
|
|
395
344
|
};
|
|
396
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
397
345
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
398
346
|
return {
|
|
399
347
|
flatResponse,
|
|
@@ -416,8 +364,8 @@ class MongoDBResourcesImpl {
|
|
|
416
364
|
spec: updateMongoDBDatabaseThroughputOperationSpec,
|
|
417
365
|
});
|
|
418
366
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
419
|
-
restoreFrom: options
|
|
420
|
-
intervalInMs: options
|
|
367
|
+
restoreFrom: options?.resumeFrom,
|
|
368
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
421
369
|
});
|
|
422
370
|
await poller.poll();
|
|
423
371
|
return poller;
|
|
@@ -447,14 +395,19 @@ class MongoDBResourcesImpl {
|
|
|
447
395
|
return this.client.sendOperationRequest(args, spec);
|
|
448
396
|
};
|
|
449
397
|
const sendOperationFn = async (args, spec) => {
|
|
450
|
-
var _a;
|
|
451
398
|
let currentRawResponse = undefined;
|
|
452
|
-
const providedCallback =
|
|
399
|
+
const providedCallback = args.options?.onResponse;
|
|
453
400
|
const callback = (rawResponse, flatResponse) => {
|
|
454
401
|
currentRawResponse = rawResponse;
|
|
455
|
-
providedCallback
|
|
402
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
403
|
+
};
|
|
404
|
+
const updatedArgs = {
|
|
405
|
+
...args,
|
|
406
|
+
options: {
|
|
407
|
+
...args.options,
|
|
408
|
+
onResponse: callback,
|
|
409
|
+
},
|
|
456
410
|
};
|
|
457
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
458
411
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
459
412
|
return {
|
|
460
413
|
flatResponse,
|
|
@@ -471,8 +424,8 @@ class MongoDBResourcesImpl {
|
|
|
471
424
|
spec: migrateMongoDBDatabaseToAutoscaleOperationSpec,
|
|
472
425
|
});
|
|
473
426
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
474
|
-
restoreFrom: options
|
|
475
|
-
intervalInMs: options
|
|
427
|
+
restoreFrom: options?.resumeFrom,
|
|
428
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
476
429
|
});
|
|
477
430
|
await poller.poll();
|
|
478
431
|
return poller;
|
|
@@ -500,14 +453,19 @@ class MongoDBResourcesImpl {
|
|
|
500
453
|
return this.client.sendOperationRequest(args, spec);
|
|
501
454
|
};
|
|
502
455
|
const sendOperationFn = async (args, spec) => {
|
|
503
|
-
var _a;
|
|
504
456
|
let currentRawResponse = undefined;
|
|
505
|
-
const providedCallback =
|
|
457
|
+
const providedCallback = args.options?.onResponse;
|
|
506
458
|
const callback = (rawResponse, flatResponse) => {
|
|
507
459
|
currentRawResponse = rawResponse;
|
|
508
|
-
providedCallback
|
|
460
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
461
|
+
};
|
|
462
|
+
const updatedArgs = {
|
|
463
|
+
...args,
|
|
464
|
+
options: {
|
|
465
|
+
...args.options,
|
|
466
|
+
onResponse: callback,
|
|
467
|
+
},
|
|
509
468
|
};
|
|
510
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
511
469
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
512
470
|
return {
|
|
513
471
|
flatResponse,
|
|
@@ -524,8 +482,8 @@ class MongoDBResourcesImpl {
|
|
|
524
482
|
spec: migrateMongoDBDatabaseToManualThroughputOperationSpec,
|
|
525
483
|
});
|
|
526
484
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
527
|
-
restoreFrom: options
|
|
528
|
-
intervalInMs: options
|
|
485
|
+
restoreFrom: options?.resumeFrom,
|
|
486
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
529
487
|
});
|
|
530
488
|
await poller.poll();
|
|
531
489
|
return poller;
|
|
@@ -577,14 +535,19 @@ class MongoDBResourcesImpl {
|
|
|
577
535
|
return this.client.sendOperationRequest(args, spec);
|
|
578
536
|
};
|
|
579
537
|
const sendOperationFn = async (args, spec) => {
|
|
580
|
-
var _a;
|
|
581
538
|
let currentRawResponse = undefined;
|
|
582
|
-
const providedCallback =
|
|
539
|
+
const providedCallback = args.options?.onResponse;
|
|
583
540
|
const callback = (rawResponse, flatResponse) => {
|
|
584
541
|
currentRawResponse = rawResponse;
|
|
585
|
-
providedCallback
|
|
542
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
543
|
+
};
|
|
544
|
+
const updatedArgs = {
|
|
545
|
+
...args,
|
|
546
|
+
options: {
|
|
547
|
+
...args.options,
|
|
548
|
+
onResponse: callback,
|
|
549
|
+
},
|
|
586
550
|
};
|
|
587
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
588
551
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
589
552
|
return {
|
|
590
553
|
flatResponse,
|
|
@@ -608,8 +571,8 @@ class MongoDBResourcesImpl {
|
|
|
608
571
|
spec: createUpdateMongoDBCollectionOperationSpec,
|
|
609
572
|
});
|
|
610
573
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
611
|
-
restoreFrom: options
|
|
612
|
-
intervalInMs: options
|
|
574
|
+
restoreFrom: options?.resumeFrom,
|
|
575
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
613
576
|
});
|
|
614
577
|
await poller.poll();
|
|
615
578
|
return poller;
|
|
@@ -641,14 +604,19 @@ class MongoDBResourcesImpl {
|
|
|
641
604
|
return this.client.sendOperationRequest(args, spec);
|
|
642
605
|
};
|
|
643
606
|
const sendOperationFn = async (args, spec) => {
|
|
644
|
-
var _a;
|
|
645
607
|
let currentRawResponse = undefined;
|
|
646
|
-
const providedCallback =
|
|
608
|
+
const providedCallback = args.options?.onResponse;
|
|
647
609
|
const callback = (rawResponse, flatResponse) => {
|
|
648
610
|
currentRawResponse = rawResponse;
|
|
649
|
-
providedCallback
|
|
611
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
612
|
+
};
|
|
613
|
+
const updatedArgs = {
|
|
614
|
+
...args,
|
|
615
|
+
options: {
|
|
616
|
+
...args.options,
|
|
617
|
+
onResponse: callback,
|
|
618
|
+
},
|
|
650
619
|
};
|
|
651
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
652
620
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
653
621
|
return {
|
|
654
622
|
flatResponse,
|
|
@@ -671,8 +639,8 @@ class MongoDBResourcesImpl {
|
|
|
671
639
|
spec: deleteMongoDBCollectionOperationSpec,
|
|
672
640
|
});
|
|
673
641
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
674
|
-
restoreFrom: options
|
|
675
|
-
intervalInMs: options
|
|
642
|
+
restoreFrom: options?.resumeFrom,
|
|
643
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
676
644
|
});
|
|
677
645
|
await poller.poll();
|
|
678
646
|
return poller;
|
|
@@ -716,14 +684,19 @@ class MongoDBResourcesImpl {
|
|
|
716
684
|
return this.client.sendOperationRequest(args, spec);
|
|
717
685
|
};
|
|
718
686
|
const sendOperationFn = async (args, spec) => {
|
|
719
|
-
var _a;
|
|
720
687
|
let currentRawResponse = undefined;
|
|
721
|
-
const providedCallback =
|
|
688
|
+
const providedCallback = args.options?.onResponse;
|
|
722
689
|
const callback = (rawResponse, flatResponse) => {
|
|
723
690
|
currentRawResponse = rawResponse;
|
|
724
|
-
providedCallback
|
|
691
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
692
|
+
};
|
|
693
|
+
const updatedArgs = {
|
|
694
|
+
...args,
|
|
695
|
+
options: {
|
|
696
|
+
...args.options,
|
|
697
|
+
onResponse: callback,
|
|
698
|
+
},
|
|
725
699
|
};
|
|
726
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
727
700
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
728
701
|
return {
|
|
729
702
|
flatResponse,
|
|
@@ -747,8 +720,8 @@ class MongoDBResourcesImpl {
|
|
|
747
720
|
spec: updateMongoDBCollectionThroughputOperationSpec,
|
|
748
721
|
});
|
|
749
722
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
750
|
-
restoreFrom: options
|
|
751
|
-
intervalInMs: options
|
|
723
|
+
restoreFrom: options?.resumeFrom,
|
|
724
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
752
725
|
});
|
|
753
726
|
await poller.poll();
|
|
754
727
|
return poller;
|
|
@@ -780,14 +753,19 @@ class MongoDBResourcesImpl {
|
|
|
780
753
|
return this.client.sendOperationRequest(args, spec);
|
|
781
754
|
};
|
|
782
755
|
const sendOperationFn = async (args, spec) => {
|
|
783
|
-
var _a;
|
|
784
756
|
let currentRawResponse = undefined;
|
|
785
|
-
const providedCallback =
|
|
757
|
+
const providedCallback = args.options?.onResponse;
|
|
786
758
|
const callback = (rawResponse, flatResponse) => {
|
|
787
759
|
currentRawResponse = rawResponse;
|
|
788
|
-
providedCallback
|
|
760
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
761
|
+
};
|
|
762
|
+
const updatedArgs = {
|
|
763
|
+
...args,
|
|
764
|
+
options: {
|
|
765
|
+
...args.options,
|
|
766
|
+
onResponse: callback,
|
|
767
|
+
},
|
|
789
768
|
};
|
|
790
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
791
769
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
792
770
|
return {
|
|
793
771
|
flatResponse,
|
|
@@ -810,8 +788,8 @@ class MongoDBResourcesImpl {
|
|
|
810
788
|
spec: migrateMongoDBCollectionToAutoscaleOperationSpec,
|
|
811
789
|
});
|
|
812
790
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
813
|
-
restoreFrom: options
|
|
814
|
-
intervalInMs: options
|
|
791
|
+
restoreFrom: options?.resumeFrom,
|
|
792
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
815
793
|
});
|
|
816
794
|
await poller.poll();
|
|
817
795
|
return poller;
|
|
@@ -841,14 +819,19 @@ class MongoDBResourcesImpl {
|
|
|
841
819
|
return this.client.sendOperationRequest(args, spec);
|
|
842
820
|
};
|
|
843
821
|
const sendOperationFn = async (args, spec) => {
|
|
844
|
-
var _a;
|
|
845
822
|
let currentRawResponse = undefined;
|
|
846
|
-
const providedCallback =
|
|
823
|
+
const providedCallback = args.options?.onResponse;
|
|
847
824
|
const callback = (rawResponse, flatResponse) => {
|
|
848
825
|
currentRawResponse = rawResponse;
|
|
849
|
-
providedCallback
|
|
826
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
827
|
+
};
|
|
828
|
+
const updatedArgs = {
|
|
829
|
+
...args,
|
|
830
|
+
options: {
|
|
831
|
+
...args.options,
|
|
832
|
+
onResponse: callback,
|
|
833
|
+
},
|
|
850
834
|
};
|
|
851
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
852
835
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
853
836
|
return {
|
|
854
837
|
flatResponse,
|
|
@@ -871,8 +854,8 @@ class MongoDBResourcesImpl {
|
|
|
871
854
|
spec: migrateMongoDBCollectionToManualThroughputOperationSpec,
|
|
872
855
|
});
|
|
873
856
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
874
|
-
restoreFrom: options
|
|
875
|
-
intervalInMs: options
|
|
857
|
+
restoreFrom: options?.resumeFrom,
|
|
858
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
876
859
|
});
|
|
877
860
|
await poller.poll();
|
|
878
861
|
return poller;
|
|
@@ -913,14 +896,19 @@ class MongoDBResourcesImpl {
|
|
|
913
896
|
return this.client.sendOperationRequest(args, spec);
|
|
914
897
|
};
|
|
915
898
|
const sendOperationFn = async (args, spec) => {
|
|
916
|
-
var _a;
|
|
917
899
|
let currentRawResponse = undefined;
|
|
918
|
-
const providedCallback =
|
|
900
|
+
const providedCallback = args.options?.onResponse;
|
|
919
901
|
const callback = (rawResponse, flatResponse) => {
|
|
920
902
|
currentRawResponse = rawResponse;
|
|
921
|
-
providedCallback
|
|
903
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
904
|
+
};
|
|
905
|
+
const updatedArgs = {
|
|
906
|
+
...args,
|
|
907
|
+
options: {
|
|
908
|
+
...args.options,
|
|
909
|
+
onResponse: callback,
|
|
910
|
+
},
|
|
922
911
|
};
|
|
923
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
924
912
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
925
913
|
return {
|
|
926
914
|
flatResponse,
|
|
@@ -943,8 +931,8 @@ class MongoDBResourcesImpl {
|
|
|
943
931
|
spec: createUpdateMongoRoleDefinitionOperationSpec,
|
|
944
932
|
});
|
|
945
933
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
946
|
-
restoreFrom: options
|
|
947
|
-
intervalInMs: options
|
|
934
|
+
restoreFrom: options?.resumeFrom,
|
|
935
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
948
936
|
});
|
|
949
937
|
await poller.poll();
|
|
950
938
|
return poller;
|
|
@@ -974,14 +962,19 @@ class MongoDBResourcesImpl {
|
|
|
974
962
|
return this.client.sendOperationRequest(args, spec);
|
|
975
963
|
};
|
|
976
964
|
const sendOperationFn = async (args, spec) => {
|
|
977
|
-
var _a;
|
|
978
965
|
let currentRawResponse = undefined;
|
|
979
|
-
const providedCallback =
|
|
966
|
+
const providedCallback = args.options?.onResponse;
|
|
980
967
|
const callback = (rawResponse, flatResponse) => {
|
|
981
968
|
currentRawResponse = rawResponse;
|
|
982
|
-
providedCallback
|
|
969
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
970
|
+
};
|
|
971
|
+
const updatedArgs = {
|
|
972
|
+
...args,
|
|
973
|
+
options: {
|
|
974
|
+
...args.options,
|
|
975
|
+
onResponse: callback,
|
|
976
|
+
},
|
|
983
977
|
};
|
|
984
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
985
978
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
986
979
|
return {
|
|
987
980
|
flatResponse,
|
|
@@ -998,8 +991,8 @@ class MongoDBResourcesImpl {
|
|
|
998
991
|
spec: deleteMongoRoleDefinitionOperationSpec,
|
|
999
992
|
});
|
|
1000
993
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
1001
|
-
restoreFrom: options
|
|
1002
|
-
intervalInMs: options
|
|
994
|
+
restoreFrom: options?.resumeFrom,
|
|
995
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1003
996
|
});
|
|
1004
997
|
await poller.poll();
|
|
1005
998
|
return poller;
|
|
@@ -1048,14 +1041,19 @@ class MongoDBResourcesImpl {
|
|
|
1048
1041
|
return this.client.sendOperationRequest(args, spec);
|
|
1049
1042
|
};
|
|
1050
1043
|
const sendOperationFn = async (args, spec) => {
|
|
1051
|
-
var _a;
|
|
1052
1044
|
let currentRawResponse = undefined;
|
|
1053
|
-
const providedCallback =
|
|
1045
|
+
const providedCallback = args.options?.onResponse;
|
|
1054
1046
|
const callback = (rawResponse, flatResponse) => {
|
|
1055
1047
|
currentRawResponse = rawResponse;
|
|
1056
|
-
providedCallback
|
|
1048
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1049
|
+
};
|
|
1050
|
+
const updatedArgs = {
|
|
1051
|
+
...args,
|
|
1052
|
+
options: {
|
|
1053
|
+
...args.options,
|
|
1054
|
+
onResponse: callback,
|
|
1055
|
+
},
|
|
1057
1056
|
};
|
|
1058
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1059
1057
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1060
1058
|
return {
|
|
1061
1059
|
flatResponse,
|
|
@@ -1078,8 +1076,8 @@ class MongoDBResourcesImpl {
|
|
|
1078
1076
|
spec: createUpdateMongoUserDefinitionOperationSpec,
|
|
1079
1077
|
});
|
|
1080
1078
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
1081
|
-
restoreFrom: options
|
|
1082
|
-
intervalInMs: options
|
|
1079
|
+
restoreFrom: options?.resumeFrom,
|
|
1080
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1083
1081
|
});
|
|
1084
1082
|
await poller.poll();
|
|
1085
1083
|
return poller;
|
|
@@ -1109,14 +1107,19 @@ class MongoDBResourcesImpl {
|
|
|
1109
1107
|
return this.client.sendOperationRequest(args, spec);
|
|
1110
1108
|
};
|
|
1111
1109
|
const sendOperationFn = async (args, spec) => {
|
|
1112
|
-
var _a;
|
|
1113
1110
|
let currentRawResponse = undefined;
|
|
1114
|
-
const providedCallback =
|
|
1111
|
+
const providedCallback = args.options?.onResponse;
|
|
1115
1112
|
const callback = (rawResponse, flatResponse) => {
|
|
1116
1113
|
currentRawResponse = rawResponse;
|
|
1117
|
-
providedCallback
|
|
1114
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1115
|
+
};
|
|
1116
|
+
const updatedArgs = {
|
|
1117
|
+
...args,
|
|
1118
|
+
options: {
|
|
1119
|
+
...args.options,
|
|
1120
|
+
onResponse: callback,
|
|
1121
|
+
},
|
|
1118
1122
|
};
|
|
1119
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1120
1123
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1121
1124
|
return {
|
|
1122
1125
|
flatResponse,
|
|
@@ -1133,8 +1136,8 @@ class MongoDBResourcesImpl {
|
|
|
1133
1136
|
spec: deleteMongoUserDefinitionOperationSpec,
|
|
1134
1137
|
});
|
|
1135
1138
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
1136
|
-
restoreFrom: options
|
|
1137
|
-
intervalInMs: options
|
|
1139
|
+
restoreFrom: options?.resumeFrom,
|
|
1140
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1138
1141
|
});
|
|
1139
1142
|
await poller.poll();
|
|
1140
1143
|
return poller;
|
|
@@ -1173,14 +1176,19 @@ class MongoDBResourcesImpl {
|
|
|
1173
1176
|
return this.client.sendOperationRequest(args, spec);
|
|
1174
1177
|
};
|
|
1175
1178
|
const sendOperationFn = async (args, spec) => {
|
|
1176
|
-
var _a;
|
|
1177
1179
|
let currentRawResponse = undefined;
|
|
1178
|
-
const providedCallback =
|
|
1180
|
+
const providedCallback = args.options?.onResponse;
|
|
1179
1181
|
const callback = (rawResponse, flatResponse) => {
|
|
1180
1182
|
currentRawResponse = rawResponse;
|
|
1181
|
-
providedCallback
|
|
1183
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1184
|
+
};
|
|
1185
|
+
const updatedArgs = {
|
|
1186
|
+
...args,
|
|
1187
|
+
options: {
|
|
1188
|
+
...args.options,
|
|
1189
|
+
onResponse: callback,
|
|
1190
|
+
},
|
|
1182
1191
|
};
|
|
1183
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1184
1192
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1185
1193
|
return {
|
|
1186
1194
|
flatResponse,
|
|
@@ -1204,8 +1212,8 @@ class MongoDBResourcesImpl {
|
|
|
1204
1212
|
spec: retrieveContinuousBackupInformationOperationSpec,
|
|
1205
1213
|
});
|
|
1206
1214
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
1207
|
-
restoreFrom: options
|
|
1208
|
-
intervalInMs: options
|
|
1215
|
+
restoreFrom: options?.resumeFrom,
|
|
1216
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1209
1217
|
resourceLocationConfig: "location",
|
|
1210
1218
|
});
|
|
1211
1219
|
await poller.poll();
|