@azure/arm-cosmosdb 16.3.0-alpha.20250718.1 → 16.3.0-alpha.20250730.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/commonjs/tsdoc-metadata.json +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
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import * as coreClient from "@azure/core-client";
|
|
10
9
|
import * as Mappers from "../models/mappers.js";
|
|
11
10
|
import * as Parameters from "../models/parameters.js";
|
|
@@ -14,6 +13,7 @@ import { createLroSpec } from "../lroImpl.js";
|
|
|
14
13
|
/// <reference lib="esnext.asynciterable" />
|
|
15
14
|
/** Class containing MongoDBResources operations. */
|
|
16
15
|
export class MongoDBResourcesImpl {
|
|
16
|
+
client;
|
|
17
17
|
/**
|
|
18
18
|
* Initialize a new instance of the class MongoDBResources class.
|
|
19
19
|
* @param client Reference to the service client
|
|
@@ -37,39 +37,22 @@ export class MongoDBResourcesImpl {
|
|
|
37
37
|
return this;
|
|
38
38
|
},
|
|
39
39
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
40
|
+
if (settings?.maxPageSize) {
|
|
41
41
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
42
|
}
|
|
43
43
|
return this.listMongoDBDatabasesPagingPage(resourceGroupName, accountName, options, settings);
|
|
44
44
|
},
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
listMongoDBDatabasesPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
yield yield __await(result.value || []);
|
|
52
|
-
});
|
|
47
|
+
async *listMongoDBDatabasesPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
48
|
+
let result;
|
|
49
|
+
result = await this._listMongoDBDatabases(resourceGroupName, accountName, options);
|
|
50
|
+
yield result.value || [];
|
|
53
51
|
}
|
|
54
|
-
listMongoDBDatabasesPagingAll(resourceGroupName, accountName, options) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
for (var _d = true, _e = __asyncValues(this.listMongoDBDatabasesPagingPage(resourceGroupName, accountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
59
|
-
_c = _f.value;
|
|
60
|
-
_d = false;
|
|
61
|
-
const page = _c;
|
|
62
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
66
|
-
finally {
|
|
67
|
-
try {
|
|
68
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
69
|
-
}
|
|
70
|
-
finally { if (e_1) throw e_1.error; }
|
|
71
|
-
}
|
|
72
|
-
});
|
|
52
|
+
async *listMongoDBDatabasesPagingAll(resourceGroupName, accountName, options) {
|
|
53
|
+
for await (const page of this.listMongoDBDatabasesPagingPage(resourceGroupName, accountName, options)) {
|
|
54
|
+
yield* page;
|
|
55
|
+
}
|
|
73
56
|
}
|
|
74
57
|
/**
|
|
75
58
|
* Lists the MongoDB collection under an existing Azure Cosmos DB database account.
|
|
@@ -88,39 +71,22 @@ export class MongoDBResourcesImpl {
|
|
|
88
71
|
return this;
|
|
89
72
|
},
|
|
90
73
|
byPage: (settings) => {
|
|
91
|
-
if (settings
|
|
74
|
+
if (settings?.maxPageSize) {
|
|
92
75
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
93
76
|
}
|
|
94
77
|
return this.listMongoDBCollectionsPagingPage(resourceGroupName, accountName, databaseName, options, settings);
|
|
95
78
|
},
|
|
96
79
|
};
|
|
97
80
|
}
|
|
98
|
-
listMongoDBCollectionsPagingPage(resourceGroupName, accountName, databaseName, options, _settings) {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
yield yield __await(result.value || []);
|
|
103
|
-
});
|
|
81
|
+
async *listMongoDBCollectionsPagingPage(resourceGroupName, accountName, databaseName, options, _settings) {
|
|
82
|
+
let result;
|
|
83
|
+
result = await this._listMongoDBCollections(resourceGroupName, accountName, databaseName, options);
|
|
84
|
+
yield result.value || [];
|
|
104
85
|
}
|
|
105
|
-
listMongoDBCollectionsPagingAll(resourceGroupName, accountName, databaseName, options) {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
for (var _d = true, _e = __asyncValues(this.listMongoDBCollectionsPagingPage(resourceGroupName, accountName, databaseName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
110
|
-
_c = _f.value;
|
|
111
|
-
_d = false;
|
|
112
|
-
const page = _c;
|
|
113
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
117
|
-
finally {
|
|
118
|
-
try {
|
|
119
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
120
|
-
}
|
|
121
|
-
finally { if (e_2) throw e_2.error; }
|
|
122
|
-
}
|
|
123
|
-
});
|
|
86
|
+
async *listMongoDBCollectionsPagingAll(resourceGroupName, accountName, databaseName, options) {
|
|
87
|
+
for await (const page of this.listMongoDBCollectionsPagingPage(resourceGroupName, accountName, databaseName, options)) {
|
|
88
|
+
yield* page;
|
|
89
|
+
}
|
|
124
90
|
}
|
|
125
91
|
/**
|
|
126
92
|
* Retrieves the list of all Azure Cosmos DB Mongo Role Definitions.
|
|
@@ -138,39 +104,22 @@ export class MongoDBResourcesImpl {
|
|
|
138
104
|
return this;
|
|
139
105
|
},
|
|
140
106
|
byPage: (settings) => {
|
|
141
|
-
if (settings
|
|
107
|
+
if (settings?.maxPageSize) {
|
|
142
108
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
143
109
|
}
|
|
144
110
|
return this.listMongoRoleDefinitionsPagingPage(resourceGroupName, accountName, options, settings);
|
|
145
111
|
},
|
|
146
112
|
};
|
|
147
113
|
}
|
|
148
|
-
listMongoRoleDefinitionsPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
yield yield __await(result.value || []);
|
|
153
|
-
});
|
|
114
|
+
async *listMongoRoleDefinitionsPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
115
|
+
let result;
|
|
116
|
+
result = await this._listMongoRoleDefinitions(resourceGroupName, accountName, options);
|
|
117
|
+
yield result.value || [];
|
|
154
118
|
}
|
|
155
|
-
listMongoRoleDefinitionsPagingAll(resourceGroupName, accountName, options) {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
for (var _d = true, _e = __asyncValues(this.listMongoRoleDefinitionsPagingPage(resourceGroupName, accountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
160
|
-
_c = _f.value;
|
|
161
|
-
_d = false;
|
|
162
|
-
const page = _c;
|
|
163
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
167
|
-
finally {
|
|
168
|
-
try {
|
|
169
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
170
|
-
}
|
|
171
|
-
finally { if (e_3) throw e_3.error; }
|
|
172
|
-
}
|
|
173
|
-
});
|
|
119
|
+
async *listMongoRoleDefinitionsPagingAll(resourceGroupName, accountName, options) {
|
|
120
|
+
for await (const page of this.listMongoRoleDefinitionsPagingPage(resourceGroupName, accountName, options)) {
|
|
121
|
+
yield* page;
|
|
122
|
+
}
|
|
174
123
|
}
|
|
175
124
|
/**
|
|
176
125
|
* Retrieves the list of all Azure Cosmos DB Mongo User Definition.
|
|
@@ -188,39 +137,22 @@ export class MongoDBResourcesImpl {
|
|
|
188
137
|
return this;
|
|
189
138
|
},
|
|
190
139
|
byPage: (settings) => {
|
|
191
|
-
if (settings
|
|
140
|
+
if (settings?.maxPageSize) {
|
|
192
141
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
193
142
|
}
|
|
194
143
|
return this.listMongoUserDefinitionsPagingPage(resourceGroupName, accountName, options, settings);
|
|
195
144
|
},
|
|
196
145
|
};
|
|
197
146
|
}
|
|
198
|
-
listMongoUserDefinitionsPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
yield yield __await(result.value || []);
|
|
203
|
-
});
|
|
147
|
+
async *listMongoUserDefinitionsPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
148
|
+
let result;
|
|
149
|
+
result = await this._listMongoUserDefinitions(resourceGroupName, accountName, options);
|
|
150
|
+
yield result.value || [];
|
|
204
151
|
}
|
|
205
|
-
listMongoUserDefinitionsPagingAll(resourceGroupName, accountName, options) {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
for (var _d = true, _e = __asyncValues(this.listMongoUserDefinitionsPagingPage(resourceGroupName, accountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
210
|
-
_c = _f.value;
|
|
211
|
-
_d = false;
|
|
212
|
-
const page = _c;
|
|
213
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
217
|
-
finally {
|
|
218
|
-
try {
|
|
219
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
220
|
-
}
|
|
221
|
-
finally { if (e_4) throw e_4.error; }
|
|
222
|
-
}
|
|
223
|
-
});
|
|
152
|
+
async *listMongoUserDefinitionsPagingAll(resourceGroupName, accountName, options) {
|
|
153
|
+
for await (const page of this.listMongoUserDefinitionsPagingPage(resourceGroupName, accountName, options)) {
|
|
154
|
+
yield* page;
|
|
155
|
+
}
|
|
224
156
|
}
|
|
225
157
|
/**
|
|
226
158
|
* Lists the MongoDB databases under an existing Azure Cosmos DB database account.
|
|
@@ -256,14 +188,19 @@ export class MongoDBResourcesImpl {
|
|
|
256
188
|
return this.client.sendOperationRequest(args, spec);
|
|
257
189
|
};
|
|
258
190
|
const sendOperationFn = async (args, spec) => {
|
|
259
|
-
var _a;
|
|
260
191
|
let currentRawResponse = undefined;
|
|
261
|
-
const providedCallback =
|
|
192
|
+
const providedCallback = args.options?.onResponse;
|
|
262
193
|
const callback = (rawResponse, flatResponse) => {
|
|
263
194
|
currentRawResponse = rawResponse;
|
|
264
|
-
providedCallback
|
|
195
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
196
|
+
};
|
|
197
|
+
const updatedArgs = {
|
|
198
|
+
...args,
|
|
199
|
+
options: {
|
|
200
|
+
...args.options,
|
|
201
|
+
onResponse: callback,
|
|
202
|
+
},
|
|
265
203
|
};
|
|
266
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
267
204
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
268
205
|
return {
|
|
269
206
|
flatResponse,
|
|
@@ -286,8 +223,8 @@ export class MongoDBResourcesImpl {
|
|
|
286
223
|
spec: createUpdateMongoDBDatabaseOperationSpec,
|
|
287
224
|
});
|
|
288
225
|
const poller = await createHttpPoller(lro, {
|
|
289
|
-
restoreFrom: options
|
|
290
|
-
intervalInMs: options
|
|
226
|
+
restoreFrom: options?.resumeFrom,
|
|
227
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
291
228
|
});
|
|
292
229
|
await poller.poll();
|
|
293
230
|
return poller;
|
|
@@ -317,14 +254,19 @@ export class MongoDBResourcesImpl {
|
|
|
317
254
|
return this.client.sendOperationRequest(args, spec);
|
|
318
255
|
};
|
|
319
256
|
const sendOperationFn = async (args, spec) => {
|
|
320
|
-
var _a;
|
|
321
257
|
let currentRawResponse = undefined;
|
|
322
|
-
const providedCallback =
|
|
258
|
+
const providedCallback = args.options?.onResponse;
|
|
323
259
|
const callback = (rawResponse, flatResponse) => {
|
|
324
260
|
currentRawResponse = rawResponse;
|
|
325
|
-
providedCallback
|
|
261
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
262
|
+
};
|
|
263
|
+
const updatedArgs = {
|
|
264
|
+
...args,
|
|
265
|
+
options: {
|
|
266
|
+
...args.options,
|
|
267
|
+
onResponse: callback,
|
|
268
|
+
},
|
|
326
269
|
};
|
|
327
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
328
270
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
329
271
|
return {
|
|
330
272
|
flatResponse,
|
|
@@ -341,8 +283,8 @@ export class MongoDBResourcesImpl {
|
|
|
341
283
|
spec: deleteMongoDBDatabaseOperationSpec,
|
|
342
284
|
});
|
|
343
285
|
const poller = await createHttpPoller(lro, {
|
|
344
|
-
restoreFrom: options
|
|
345
|
-
intervalInMs: options
|
|
286
|
+
restoreFrom: options?.resumeFrom,
|
|
287
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
346
288
|
});
|
|
347
289
|
await poller.poll();
|
|
348
290
|
return poller;
|
|
@@ -383,14 +325,19 @@ export class MongoDBResourcesImpl {
|
|
|
383
325
|
return this.client.sendOperationRequest(args, spec);
|
|
384
326
|
};
|
|
385
327
|
const sendOperationFn = async (args, spec) => {
|
|
386
|
-
var _a;
|
|
387
328
|
let currentRawResponse = undefined;
|
|
388
|
-
const providedCallback =
|
|
329
|
+
const providedCallback = args.options?.onResponse;
|
|
389
330
|
const callback = (rawResponse, flatResponse) => {
|
|
390
331
|
currentRawResponse = rawResponse;
|
|
391
|
-
providedCallback
|
|
332
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
333
|
+
};
|
|
334
|
+
const updatedArgs = {
|
|
335
|
+
...args,
|
|
336
|
+
options: {
|
|
337
|
+
...args.options,
|
|
338
|
+
onResponse: callback,
|
|
339
|
+
},
|
|
392
340
|
};
|
|
393
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
394
341
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
395
342
|
return {
|
|
396
343
|
flatResponse,
|
|
@@ -413,8 +360,8 @@ export class MongoDBResourcesImpl {
|
|
|
413
360
|
spec: updateMongoDBDatabaseThroughputOperationSpec,
|
|
414
361
|
});
|
|
415
362
|
const poller = await createHttpPoller(lro, {
|
|
416
|
-
restoreFrom: options
|
|
417
|
-
intervalInMs: options
|
|
363
|
+
restoreFrom: options?.resumeFrom,
|
|
364
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
418
365
|
});
|
|
419
366
|
await poller.poll();
|
|
420
367
|
return poller;
|
|
@@ -444,14 +391,19 @@ export class MongoDBResourcesImpl {
|
|
|
444
391
|
return this.client.sendOperationRequest(args, spec);
|
|
445
392
|
};
|
|
446
393
|
const sendOperationFn = async (args, spec) => {
|
|
447
|
-
var _a;
|
|
448
394
|
let currentRawResponse = undefined;
|
|
449
|
-
const providedCallback =
|
|
395
|
+
const providedCallback = args.options?.onResponse;
|
|
450
396
|
const callback = (rawResponse, flatResponse) => {
|
|
451
397
|
currentRawResponse = rawResponse;
|
|
452
|
-
providedCallback
|
|
398
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
399
|
+
};
|
|
400
|
+
const updatedArgs = {
|
|
401
|
+
...args,
|
|
402
|
+
options: {
|
|
403
|
+
...args.options,
|
|
404
|
+
onResponse: callback,
|
|
405
|
+
},
|
|
453
406
|
};
|
|
454
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
455
407
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
456
408
|
return {
|
|
457
409
|
flatResponse,
|
|
@@ -468,8 +420,8 @@ export class MongoDBResourcesImpl {
|
|
|
468
420
|
spec: migrateMongoDBDatabaseToAutoscaleOperationSpec,
|
|
469
421
|
});
|
|
470
422
|
const poller = await createHttpPoller(lro, {
|
|
471
|
-
restoreFrom: options
|
|
472
|
-
intervalInMs: options
|
|
423
|
+
restoreFrom: options?.resumeFrom,
|
|
424
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
473
425
|
});
|
|
474
426
|
await poller.poll();
|
|
475
427
|
return poller;
|
|
@@ -497,14 +449,19 @@ export class MongoDBResourcesImpl {
|
|
|
497
449
|
return this.client.sendOperationRequest(args, spec);
|
|
498
450
|
};
|
|
499
451
|
const sendOperationFn = async (args, spec) => {
|
|
500
|
-
var _a;
|
|
501
452
|
let currentRawResponse = undefined;
|
|
502
|
-
const providedCallback =
|
|
453
|
+
const providedCallback = args.options?.onResponse;
|
|
503
454
|
const callback = (rawResponse, flatResponse) => {
|
|
504
455
|
currentRawResponse = rawResponse;
|
|
505
|
-
providedCallback
|
|
456
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
457
|
+
};
|
|
458
|
+
const updatedArgs = {
|
|
459
|
+
...args,
|
|
460
|
+
options: {
|
|
461
|
+
...args.options,
|
|
462
|
+
onResponse: callback,
|
|
463
|
+
},
|
|
506
464
|
};
|
|
507
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
508
465
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
509
466
|
return {
|
|
510
467
|
flatResponse,
|
|
@@ -521,8 +478,8 @@ export class MongoDBResourcesImpl {
|
|
|
521
478
|
spec: migrateMongoDBDatabaseToManualThroughputOperationSpec,
|
|
522
479
|
});
|
|
523
480
|
const poller = await createHttpPoller(lro, {
|
|
524
|
-
restoreFrom: options
|
|
525
|
-
intervalInMs: options
|
|
481
|
+
restoreFrom: options?.resumeFrom,
|
|
482
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
526
483
|
});
|
|
527
484
|
await poller.poll();
|
|
528
485
|
return poller;
|
|
@@ -574,14 +531,19 @@ export class MongoDBResourcesImpl {
|
|
|
574
531
|
return this.client.sendOperationRequest(args, spec);
|
|
575
532
|
};
|
|
576
533
|
const sendOperationFn = async (args, spec) => {
|
|
577
|
-
var _a;
|
|
578
534
|
let currentRawResponse = undefined;
|
|
579
|
-
const providedCallback =
|
|
535
|
+
const providedCallback = args.options?.onResponse;
|
|
580
536
|
const callback = (rawResponse, flatResponse) => {
|
|
581
537
|
currentRawResponse = rawResponse;
|
|
582
|
-
providedCallback
|
|
538
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
539
|
+
};
|
|
540
|
+
const updatedArgs = {
|
|
541
|
+
...args,
|
|
542
|
+
options: {
|
|
543
|
+
...args.options,
|
|
544
|
+
onResponse: callback,
|
|
545
|
+
},
|
|
583
546
|
};
|
|
584
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
585
547
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
586
548
|
return {
|
|
587
549
|
flatResponse,
|
|
@@ -605,8 +567,8 @@ export class MongoDBResourcesImpl {
|
|
|
605
567
|
spec: createUpdateMongoDBCollectionOperationSpec,
|
|
606
568
|
});
|
|
607
569
|
const poller = await createHttpPoller(lro, {
|
|
608
|
-
restoreFrom: options
|
|
609
|
-
intervalInMs: options
|
|
570
|
+
restoreFrom: options?.resumeFrom,
|
|
571
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
610
572
|
});
|
|
611
573
|
await poller.poll();
|
|
612
574
|
return poller;
|
|
@@ -638,14 +600,19 @@ export class MongoDBResourcesImpl {
|
|
|
638
600
|
return this.client.sendOperationRequest(args, spec);
|
|
639
601
|
};
|
|
640
602
|
const sendOperationFn = async (args, spec) => {
|
|
641
|
-
var _a;
|
|
642
603
|
let currentRawResponse = undefined;
|
|
643
|
-
const providedCallback =
|
|
604
|
+
const providedCallback = args.options?.onResponse;
|
|
644
605
|
const callback = (rawResponse, flatResponse) => {
|
|
645
606
|
currentRawResponse = rawResponse;
|
|
646
|
-
providedCallback
|
|
607
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
608
|
+
};
|
|
609
|
+
const updatedArgs = {
|
|
610
|
+
...args,
|
|
611
|
+
options: {
|
|
612
|
+
...args.options,
|
|
613
|
+
onResponse: callback,
|
|
614
|
+
},
|
|
647
615
|
};
|
|
648
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
649
616
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
650
617
|
return {
|
|
651
618
|
flatResponse,
|
|
@@ -668,8 +635,8 @@ export class MongoDBResourcesImpl {
|
|
|
668
635
|
spec: deleteMongoDBCollectionOperationSpec,
|
|
669
636
|
});
|
|
670
637
|
const poller = await createHttpPoller(lro, {
|
|
671
|
-
restoreFrom: options
|
|
672
|
-
intervalInMs: options
|
|
638
|
+
restoreFrom: options?.resumeFrom,
|
|
639
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
673
640
|
});
|
|
674
641
|
await poller.poll();
|
|
675
642
|
return poller;
|
|
@@ -713,14 +680,19 @@ export class MongoDBResourcesImpl {
|
|
|
713
680
|
return this.client.sendOperationRequest(args, spec);
|
|
714
681
|
};
|
|
715
682
|
const sendOperationFn = async (args, spec) => {
|
|
716
|
-
var _a;
|
|
717
683
|
let currentRawResponse = undefined;
|
|
718
|
-
const providedCallback =
|
|
684
|
+
const providedCallback = args.options?.onResponse;
|
|
719
685
|
const callback = (rawResponse, flatResponse) => {
|
|
720
686
|
currentRawResponse = rawResponse;
|
|
721
|
-
providedCallback
|
|
687
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
688
|
+
};
|
|
689
|
+
const updatedArgs = {
|
|
690
|
+
...args,
|
|
691
|
+
options: {
|
|
692
|
+
...args.options,
|
|
693
|
+
onResponse: callback,
|
|
694
|
+
},
|
|
722
695
|
};
|
|
723
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
724
696
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
725
697
|
return {
|
|
726
698
|
flatResponse,
|
|
@@ -744,8 +716,8 @@ export class MongoDBResourcesImpl {
|
|
|
744
716
|
spec: updateMongoDBCollectionThroughputOperationSpec,
|
|
745
717
|
});
|
|
746
718
|
const poller = await createHttpPoller(lro, {
|
|
747
|
-
restoreFrom: options
|
|
748
|
-
intervalInMs: options
|
|
719
|
+
restoreFrom: options?.resumeFrom,
|
|
720
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
749
721
|
});
|
|
750
722
|
await poller.poll();
|
|
751
723
|
return poller;
|
|
@@ -777,14 +749,19 @@ export class MongoDBResourcesImpl {
|
|
|
777
749
|
return this.client.sendOperationRequest(args, spec);
|
|
778
750
|
};
|
|
779
751
|
const sendOperationFn = async (args, spec) => {
|
|
780
|
-
var _a;
|
|
781
752
|
let currentRawResponse = undefined;
|
|
782
|
-
const providedCallback =
|
|
753
|
+
const providedCallback = args.options?.onResponse;
|
|
783
754
|
const callback = (rawResponse, flatResponse) => {
|
|
784
755
|
currentRawResponse = rawResponse;
|
|
785
|
-
providedCallback
|
|
756
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
757
|
+
};
|
|
758
|
+
const updatedArgs = {
|
|
759
|
+
...args,
|
|
760
|
+
options: {
|
|
761
|
+
...args.options,
|
|
762
|
+
onResponse: callback,
|
|
763
|
+
},
|
|
786
764
|
};
|
|
787
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
788
765
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
789
766
|
return {
|
|
790
767
|
flatResponse,
|
|
@@ -807,8 +784,8 @@ export class MongoDBResourcesImpl {
|
|
|
807
784
|
spec: migrateMongoDBCollectionToAutoscaleOperationSpec,
|
|
808
785
|
});
|
|
809
786
|
const poller = await createHttpPoller(lro, {
|
|
810
|
-
restoreFrom: options
|
|
811
|
-
intervalInMs: options
|
|
787
|
+
restoreFrom: options?.resumeFrom,
|
|
788
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
812
789
|
});
|
|
813
790
|
await poller.poll();
|
|
814
791
|
return poller;
|
|
@@ -838,14 +815,19 @@ export class MongoDBResourcesImpl {
|
|
|
838
815
|
return this.client.sendOperationRequest(args, spec);
|
|
839
816
|
};
|
|
840
817
|
const sendOperationFn = async (args, spec) => {
|
|
841
|
-
var _a;
|
|
842
818
|
let currentRawResponse = undefined;
|
|
843
|
-
const providedCallback =
|
|
819
|
+
const providedCallback = args.options?.onResponse;
|
|
844
820
|
const callback = (rawResponse, flatResponse) => {
|
|
845
821
|
currentRawResponse = rawResponse;
|
|
846
|
-
providedCallback
|
|
822
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
823
|
+
};
|
|
824
|
+
const updatedArgs = {
|
|
825
|
+
...args,
|
|
826
|
+
options: {
|
|
827
|
+
...args.options,
|
|
828
|
+
onResponse: callback,
|
|
829
|
+
},
|
|
847
830
|
};
|
|
848
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
849
831
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
850
832
|
return {
|
|
851
833
|
flatResponse,
|
|
@@ -868,8 +850,8 @@ export class MongoDBResourcesImpl {
|
|
|
868
850
|
spec: migrateMongoDBCollectionToManualThroughputOperationSpec,
|
|
869
851
|
});
|
|
870
852
|
const poller = await createHttpPoller(lro, {
|
|
871
|
-
restoreFrom: options
|
|
872
|
-
intervalInMs: options
|
|
853
|
+
restoreFrom: options?.resumeFrom,
|
|
854
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
873
855
|
});
|
|
874
856
|
await poller.poll();
|
|
875
857
|
return poller;
|
|
@@ -910,14 +892,19 @@ export class MongoDBResourcesImpl {
|
|
|
910
892
|
return this.client.sendOperationRequest(args, spec);
|
|
911
893
|
};
|
|
912
894
|
const sendOperationFn = async (args, spec) => {
|
|
913
|
-
var _a;
|
|
914
895
|
let currentRawResponse = undefined;
|
|
915
|
-
const providedCallback =
|
|
896
|
+
const providedCallback = args.options?.onResponse;
|
|
916
897
|
const callback = (rawResponse, flatResponse) => {
|
|
917
898
|
currentRawResponse = rawResponse;
|
|
918
|
-
providedCallback
|
|
899
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
900
|
+
};
|
|
901
|
+
const updatedArgs = {
|
|
902
|
+
...args,
|
|
903
|
+
options: {
|
|
904
|
+
...args.options,
|
|
905
|
+
onResponse: callback,
|
|
906
|
+
},
|
|
919
907
|
};
|
|
920
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
921
908
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
922
909
|
return {
|
|
923
910
|
flatResponse,
|
|
@@ -940,8 +927,8 @@ export class MongoDBResourcesImpl {
|
|
|
940
927
|
spec: createUpdateMongoRoleDefinitionOperationSpec,
|
|
941
928
|
});
|
|
942
929
|
const poller = await createHttpPoller(lro, {
|
|
943
|
-
restoreFrom: options
|
|
944
|
-
intervalInMs: options
|
|
930
|
+
restoreFrom: options?.resumeFrom,
|
|
931
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
945
932
|
});
|
|
946
933
|
await poller.poll();
|
|
947
934
|
return poller;
|
|
@@ -971,14 +958,19 @@ export class MongoDBResourcesImpl {
|
|
|
971
958
|
return this.client.sendOperationRequest(args, spec);
|
|
972
959
|
};
|
|
973
960
|
const sendOperationFn = async (args, spec) => {
|
|
974
|
-
var _a;
|
|
975
961
|
let currentRawResponse = undefined;
|
|
976
|
-
const providedCallback =
|
|
962
|
+
const providedCallback = args.options?.onResponse;
|
|
977
963
|
const callback = (rawResponse, flatResponse) => {
|
|
978
964
|
currentRawResponse = rawResponse;
|
|
979
|
-
providedCallback
|
|
965
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
966
|
+
};
|
|
967
|
+
const updatedArgs = {
|
|
968
|
+
...args,
|
|
969
|
+
options: {
|
|
970
|
+
...args.options,
|
|
971
|
+
onResponse: callback,
|
|
972
|
+
},
|
|
980
973
|
};
|
|
981
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
982
974
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
983
975
|
return {
|
|
984
976
|
flatResponse,
|
|
@@ -995,8 +987,8 @@ export class MongoDBResourcesImpl {
|
|
|
995
987
|
spec: deleteMongoRoleDefinitionOperationSpec,
|
|
996
988
|
});
|
|
997
989
|
const poller = await createHttpPoller(lro, {
|
|
998
|
-
restoreFrom: options
|
|
999
|
-
intervalInMs: options
|
|
990
|
+
restoreFrom: options?.resumeFrom,
|
|
991
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1000
992
|
});
|
|
1001
993
|
await poller.poll();
|
|
1002
994
|
return poller;
|
|
@@ -1045,14 +1037,19 @@ export class MongoDBResourcesImpl {
|
|
|
1045
1037
|
return this.client.sendOperationRequest(args, spec);
|
|
1046
1038
|
};
|
|
1047
1039
|
const sendOperationFn = async (args, spec) => {
|
|
1048
|
-
var _a;
|
|
1049
1040
|
let currentRawResponse = undefined;
|
|
1050
|
-
const providedCallback =
|
|
1041
|
+
const providedCallback = args.options?.onResponse;
|
|
1051
1042
|
const callback = (rawResponse, flatResponse) => {
|
|
1052
1043
|
currentRawResponse = rawResponse;
|
|
1053
|
-
providedCallback
|
|
1044
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1045
|
+
};
|
|
1046
|
+
const updatedArgs = {
|
|
1047
|
+
...args,
|
|
1048
|
+
options: {
|
|
1049
|
+
...args.options,
|
|
1050
|
+
onResponse: callback,
|
|
1051
|
+
},
|
|
1054
1052
|
};
|
|
1055
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1056
1053
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1057
1054
|
return {
|
|
1058
1055
|
flatResponse,
|
|
@@ -1075,8 +1072,8 @@ export class MongoDBResourcesImpl {
|
|
|
1075
1072
|
spec: createUpdateMongoUserDefinitionOperationSpec,
|
|
1076
1073
|
});
|
|
1077
1074
|
const poller = await createHttpPoller(lro, {
|
|
1078
|
-
restoreFrom: options
|
|
1079
|
-
intervalInMs: options
|
|
1075
|
+
restoreFrom: options?.resumeFrom,
|
|
1076
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1080
1077
|
});
|
|
1081
1078
|
await poller.poll();
|
|
1082
1079
|
return poller;
|
|
@@ -1106,14 +1103,19 @@ export class MongoDBResourcesImpl {
|
|
|
1106
1103
|
return this.client.sendOperationRequest(args, spec);
|
|
1107
1104
|
};
|
|
1108
1105
|
const sendOperationFn = async (args, spec) => {
|
|
1109
|
-
var _a;
|
|
1110
1106
|
let currentRawResponse = undefined;
|
|
1111
|
-
const providedCallback =
|
|
1107
|
+
const providedCallback = args.options?.onResponse;
|
|
1112
1108
|
const callback = (rawResponse, flatResponse) => {
|
|
1113
1109
|
currentRawResponse = rawResponse;
|
|
1114
|
-
providedCallback
|
|
1110
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1111
|
+
};
|
|
1112
|
+
const updatedArgs = {
|
|
1113
|
+
...args,
|
|
1114
|
+
options: {
|
|
1115
|
+
...args.options,
|
|
1116
|
+
onResponse: callback,
|
|
1117
|
+
},
|
|
1115
1118
|
};
|
|
1116
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1117
1119
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1118
1120
|
return {
|
|
1119
1121
|
flatResponse,
|
|
@@ -1130,8 +1132,8 @@ export class MongoDBResourcesImpl {
|
|
|
1130
1132
|
spec: deleteMongoUserDefinitionOperationSpec,
|
|
1131
1133
|
});
|
|
1132
1134
|
const poller = await createHttpPoller(lro, {
|
|
1133
|
-
restoreFrom: options
|
|
1134
|
-
intervalInMs: options
|
|
1135
|
+
restoreFrom: options?.resumeFrom,
|
|
1136
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1135
1137
|
});
|
|
1136
1138
|
await poller.poll();
|
|
1137
1139
|
return poller;
|
|
@@ -1170,14 +1172,19 @@ export class MongoDBResourcesImpl {
|
|
|
1170
1172
|
return this.client.sendOperationRequest(args, spec);
|
|
1171
1173
|
};
|
|
1172
1174
|
const sendOperationFn = async (args, spec) => {
|
|
1173
|
-
var _a;
|
|
1174
1175
|
let currentRawResponse = undefined;
|
|
1175
|
-
const providedCallback =
|
|
1176
|
+
const providedCallback = args.options?.onResponse;
|
|
1176
1177
|
const callback = (rawResponse, flatResponse) => {
|
|
1177
1178
|
currentRawResponse = rawResponse;
|
|
1178
|
-
providedCallback
|
|
1179
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1180
|
+
};
|
|
1181
|
+
const updatedArgs = {
|
|
1182
|
+
...args,
|
|
1183
|
+
options: {
|
|
1184
|
+
...args.options,
|
|
1185
|
+
onResponse: callback,
|
|
1186
|
+
},
|
|
1179
1187
|
};
|
|
1180
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1181
1188
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1182
1189
|
return {
|
|
1183
1190
|
flatResponse,
|
|
@@ -1201,8 +1208,8 @@ export class MongoDBResourcesImpl {
|
|
|
1201
1208
|
spec: retrieveContinuousBackupInformationOperationSpec,
|
|
1202
1209
|
});
|
|
1203
1210
|
const poller = await createHttpPoller(lro, {
|
|
1204
|
-
restoreFrom: options
|
|
1205
|
-
intervalInMs: options
|
|
1211
|
+
restoreFrom: options?.resumeFrom,
|
|
1212
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1206
1213
|
resourceLocationConfig: "location",
|
|
1207
1214
|
});
|
|
1208
1215
|
await poller.poll();
|