@azure/arm-cosmosdb 16.3.0-alpha.20250620.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/commonjs/tsdoc-metadata.json +11 -11
- 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
- /package/review/{arm-cosmosdb.api.md → arm-cosmosdb-node.api.md} +0 -0
|
@@ -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 GremlinResources operations. */
|
|
16
15
|
export class GremlinResourcesImpl {
|
|
16
|
+
client;
|
|
17
17
|
/**
|
|
18
18
|
* Initialize a new instance of the class GremlinResources class.
|
|
19
19
|
* @param client Reference to the service client
|
|
@@ -37,39 +37,22 @@ export class GremlinResourcesImpl {
|
|
|
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.listGremlinDatabasesPagingPage(resourceGroupName, accountName, options, settings);
|
|
44
44
|
},
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
listGremlinDatabasesPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
yield yield __await(result.value || []);
|
|
52
|
-
});
|
|
47
|
+
async *listGremlinDatabasesPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
48
|
+
let result;
|
|
49
|
+
result = await this._listGremlinDatabases(resourceGroupName, accountName, options);
|
|
50
|
+
yield result.value || [];
|
|
53
51
|
}
|
|
54
|
-
listGremlinDatabasesPagingAll(resourceGroupName, accountName, options) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
for (var _d = true, _e = __asyncValues(this.listGremlinDatabasesPagingPage(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 *listGremlinDatabasesPagingAll(resourceGroupName, accountName, options) {
|
|
53
|
+
for await (const page of this.listGremlinDatabasesPagingPage(resourceGroupName, accountName, options)) {
|
|
54
|
+
yield* page;
|
|
55
|
+
}
|
|
73
56
|
}
|
|
74
57
|
/**
|
|
75
58
|
* Lists the Gremlin graph under an existing Azure Cosmos DB database account.
|
|
@@ -88,39 +71,22 @@ export class GremlinResourcesImpl {
|
|
|
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.listGremlinGraphsPagingPage(resourceGroupName, accountName, databaseName, options, settings);
|
|
95
78
|
},
|
|
96
79
|
};
|
|
97
80
|
}
|
|
98
|
-
listGremlinGraphsPagingPage(resourceGroupName, accountName, databaseName, options, _settings) {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
yield yield __await(result.value || []);
|
|
103
|
-
});
|
|
81
|
+
async *listGremlinGraphsPagingPage(resourceGroupName, accountName, databaseName, options, _settings) {
|
|
82
|
+
let result;
|
|
83
|
+
result = await this._listGremlinGraphs(resourceGroupName, accountName, databaseName, options);
|
|
84
|
+
yield result.value || [];
|
|
104
85
|
}
|
|
105
|
-
listGremlinGraphsPagingAll(resourceGroupName, accountName, databaseName, options) {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
for (var _d = true, _e = __asyncValues(this.listGremlinGraphsPagingPage(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 *listGremlinGraphsPagingAll(resourceGroupName, accountName, databaseName, options) {
|
|
87
|
+
for await (const page of this.listGremlinGraphsPagingPage(resourceGroupName, accountName, databaseName, options)) {
|
|
88
|
+
yield* page;
|
|
89
|
+
}
|
|
124
90
|
}
|
|
125
91
|
/**
|
|
126
92
|
* Lists the Gremlin databases under an existing Azure Cosmos DB database account.
|
|
@@ -156,14 +122,19 @@ export class GremlinResourcesImpl {
|
|
|
156
122
|
return this.client.sendOperationRequest(args, spec);
|
|
157
123
|
};
|
|
158
124
|
const sendOperationFn = async (args, spec) => {
|
|
159
|
-
var _a;
|
|
160
125
|
let currentRawResponse = undefined;
|
|
161
|
-
const providedCallback =
|
|
126
|
+
const providedCallback = args.options?.onResponse;
|
|
162
127
|
const callback = (rawResponse, flatResponse) => {
|
|
163
128
|
currentRawResponse = rawResponse;
|
|
164
|
-
providedCallback
|
|
129
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
130
|
+
};
|
|
131
|
+
const updatedArgs = {
|
|
132
|
+
...args,
|
|
133
|
+
options: {
|
|
134
|
+
...args.options,
|
|
135
|
+
onResponse: callback,
|
|
136
|
+
},
|
|
165
137
|
};
|
|
166
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
167
138
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
168
139
|
return {
|
|
169
140
|
flatResponse,
|
|
@@ -186,8 +157,8 @@ export class GremlinResourcesImpl {
|
|
|
186
157
|
spec: createUpdateGremlinDatabaseOperationSpec,
|
|
187
158
|
});
|
|
188
159
|
const poller = await createHttpPoller(lro, {
|
|
189
|
-
restoreFrom: options
|
|
190
|
-
intervalInMs: options
|
|
160
|
+
restoreFrom: options?.resumeFrom,
|
|
161
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
191
162
|
});
|
|
192
163
|
await poller.poll();
|
|
193
164
|
return poller;
|
|
@@ -217,14 +188,19 @@ export class GremlinResourcesImpl {
|
|
|
217
188
|
return this.client.sendOperationRequest(args, spec);
|
|
218
189
|
};
|
|
219
190
|
const sendOperationFn = async (args, spec) => {
|
|
220
|
-
var _a;
|
|
221
191
|
let currentRawResponse = undefined;
|
|
222
|
-
const providedCallback =
|
|
192
|
+
const providedCallback = args.options?.onResponse;
|
|
223
193
|
const callback = (rawResponse, flatResponse) => {
|
|
224
194
|
currentRawResponse = rawResponse;
|
|
225
|
-
providedCallback
|
|
195
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
196
|
+
};
|
|
197
|
+
const updatedArgs = {
|
|
198
|
+
...args,
|
|
199
|
+
options: {
|
|
200
|
+
...args.options,
|
|
201
|
+
onResponse: callback,
|
|
202
|
+
},
|
|
226
203
|
};
|
|
227
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
228
204
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
229
205
|
return {
|
|
230
206
|
flatResponse,
|
|
@@ -241,8 +217,8 @@ export class GremlinResourcesImpl {
|
|
|
241
217
|
spec: deleteGremlinDatabaseOperationSpec,
|
|
242
218
|
});
|
|
243
219
|
const poller = await createHttpPoller(lro, {
|
|
244
|
-
restoreFrom: options
|
|
245
|
-
intervalInMs: options
|
|
220
|
+
restoreFrom: options?.resumeFrom,
|
|
221
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
246
222
|
});
|
|
247
223
|
await poller.poll();
|
|
248
224
|
return poller;
|
|
@@ -283,14 +259,19 @@ export class GremlinResourcesImpl {
|
|
|
283
259
|
return this.client.sendOperationRequest(args, spec);
|
|
284
260
|
};
|
|
285
261
|
const sendOperationFn = async (args, spec) => {
|
|
286
|
-
var _a;
|
|
287
262
|
let currentRawResponse = undefined;
|
|
288
|
-
const providedCallback =
|
|
263
|
+
const providedCallback = args.options?.onResponse;
|
|
289
264
|
const callback = (rawResponse, flatResponse) => {
|
|
290
265
|
currentRawResponse = rawResponse;
|
|
291
|
-
providedCallback
|
|
266
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
267
|
+
};
|
|
268
|
+
const updatedArgs = {
|
|
269
|
+
...args,
|
|
270
|
+
options: {
|
|
271
|
+
...args.options,
|
|
272
|
+
onResponse: callback,
|
|
273
|
+
},
|
|
292
274
|
};
|
|
293
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
294
275
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
295
276
|
return {
|
|
296
277
|
flatResponse,
|
|
@@ -313,8 +294,8 @@ export class GremlinResourcesImpl {
|
|
|
313
294
|
spec: updateGremlinDatabaseThroughputOperationSpec,
|
|
314
295
|
});
|
|
315
296
|
const poller = await createHttpPoller(lro, {
|
|
316
|
-
restoreFrom: options
|
|
317
|
-
intervalInMs: options
|
|
297
|
+
restoreFrom: options?.resumeFrom,
|
|
298
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
318
299
|
});
|
|
319
300
|
await poller.poll();
|
|
320
301
|
return poller;
|
|
@@ -344,14 +325,19 @@ export class GremlinResourcesImpl {
|
|
|
344
325
|
return this.client.sendOperationRequest(args, spec);
|
|
345
326
|
};
|
|
346
327
|
const sendOperationFn = async (args, spec) => {
|
|
347
|
-
var _a;
|
|
348
328
|
let currentRawResponse = undefined;
|
|
349
|
-
const providedCallback =
|
|
329
|
+
const providedCallback = args.options?.onResponse;
|
|
350
330
|
const callback = (rawResponse, flatResponse) => {
|
|
351
331
|
currentRawResponse = rawResponse;
|
|
352
|
-
providedCallback
|
|
332
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
333
|
+
};
|
|
334
|
+
const updatedArgs = {
|
|
335
|
+
...args,
|
|
336
|
+
options: {
|
|
337
|
+
...args.options,
|
|
338
|
+
onResponse: callback,
|
|
339
|
+
},
|
|
353
340
|
};
|
|
354
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
355
341
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
356
342
|
return {
|
|
357
343
|
flatResponse,
|
|
@@ -368,8 +354,8 @@ export class GremlinResourcesImpl {
|
|
|
368
354
|
spec: migrateGremlinDatabaseToAutoscaleOperationSpec,
|
|
369
355
|
});
|
|
370
356
|
const poller = await createHttpPoller(lro, {
|
|
371
|
-
restoreFrom: options
|
|
372
|
-
intervalInMs: options
|
|
357
|
+
restoreFrom: options?.resumeFrom,
|
|
358
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
373
359
|
});
|
|
374
360
|
await poller.poll();
|
|
375
361
|
return poller;
|
|
@@ -397,14 +383,19 @@ export class GremlinResourcesImpl {
|
|
|
397
383
|
return this.client.sendOperationRequest(args, spec);
|
|
398
384
|
};
|
|
399
385
|
const sendOperationFn = async (args, spec) => {
|
|
400
|
-
var _a;
|
|
401
386
|
let currentRawResponse = undefined;
|
|
402
|
-
const providedCallback =
|
|
387
|
+
const providedCallback = args.options?.onResponse;
|
|
403
388
|
const callback = (rawResponse, flatResponse) => {
|
|
404
389
|
currentRawResponse = rawResponse;
|
|
405
|
-
providedCallback
|
|
390
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
391
|
+
};
|
|
392
|
+
const updatedArgs = {
|
|
393
|
+
...args,
|
|
394
|
+
options: {
|
|
395
|
+
...args.options,
|
|
396
|
+
onResponse: callback,
|
|
397
|
+
},
|
|
406
398
|
};
|
|
407
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
408
399
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
409
400
|
return {
|
|
410
401
|
flatResponse,
|
|
@@ -421,8 +412,8 @@ export class GremlinResourcesImpl {
|
|
|
421
412
|
spec: migrateGremlinDatabaseToManualThroughputOperationSpec,
|
|
422
413
|
});
|
|
423
414
|
const poller = await createHttpPoller(lro, {
|
|
424
|
-
restoreFrom: options
|
|
425
|
-
intervalInMs: options
|
|
415
|
+
restoreFrom: options?.resumeFrom,
|
|
416
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
426
417
|
});
|
|
427
418
|
await poller.poll();
|
|
428
419
|
return poller;
|
|
@@ -473,14 +464,19 @@ export class GremlinResourcesImpl {
|
|
|
473
464
|
return this.client.sendOperationRequest(args, spec);
|
|
474
465
|
};
|
|
475
466
|
const sendOperationFn = async (args, spec) => {
|
|
476
|
-
var _a;
|
|
477
467
|
let currentRawResponse = undefined;
|
|
478
|
-
const providedCallback =
|
|
468
|
+
const providedCallback = args.options?.onResponse;
|
|
479
469
|
const callback = (rawResponse, flatResponse) => {
|
|
480
470
|
currentRawResponse = rawResponse;
|
|
481
|
-
providedCallback
|
|
471
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
472
|
+
};
|
|
473
|
+
const updatedArgs = {
|
|
474
|
+
...args,
|
|
475
|
+
options: {
|
|
476
|
+
...args.options,
|
|
477
|
+
onResponse: callback,
|
|
478
|
+
},
|
|
482
479
|
};
|
|
483
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
484
480
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
485
481
|
return {
|
|
486
482
|
flatResponse,
|
|
@@ -504,8 +500,8 @@ export class GremlinResourcesImpl {
|
|
|
504
500
|
spec: createUpdateGremlinGraphOperationSpec,
|
|
505
501
|
});
|
|
506
502
|
const poller = await createHttpPoller(lro, {
|
|
507
|
-
restoreFrom: options
|
|
508
|
-
intervalInMs: options
|
|
503
|
+
restoreFrom: options?.resumeFrom,
|
|
504
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
509
505
|
});
|
|
510
506
|
await poller.poll();
|
|
511
507
|
return poller;
|
|
@@ -536,14 +532,19 @@ export class GremlinResourcesImpl {
|
|
|
536
532
|
return this.client.sendOperationRequest(args, spec);
|
|
537
533
|
};
|
|
538
534
|
const sendOperationFn = async (args, spec) => {
|
|
539
|
-
var _a;
|
|
540
535
|
let currentRawResponse = undefined;
|
|
541
|
-
const providedCallback =
|
|
536
|
+
const providedCallback = args.options?.onResponse;
|
|
542
537
|
const callback = (rawResponse, flatResponse) => {
|
|
543
538
|
currentRawResponse = rawResponse;
|
|
544
|
-
providedCallback
|
|
539
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
540
|
+
};
|
|
541
|
+
const updatedArgs = {
|
|
542
|
+
...args,
|
|
543
|
+
options: {
|
|
544
|
+
...args.options,
|
|
545
|
+
onResponse: callback,
|
|
546
|
+
},
|
|
545
547
|
};
|
|
546
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
547
548
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
548
549
|
return {
|
|
549
550
|
flatResponse,
|
|
@@ -566,8 +567,8 @@ export class GremlinResourcesImpl {
|
|
|
566
567
|
spec: deleteGremlinGraphOperationSpec,
|
|
567
568
|
});
|
|
568
569
|
const poller = await createHttpPoller(lro, {
|
|
569
|
-
restoreFrom: options
|
|
570
|
-
intervalInMs: options
|
|
570
|
+
restoreFrom: options?.resumeFrom,
|
|
571
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
571
572
|
});
|
|
572
573
|
await poller.poll();
|
|
573
574
|
return poller;
|
|
@@ -611,14 +612,19 @@ export class GremlinResourcesImpl {
|
|
|
611
612
|
return this.client.sendOperationRequest(args, spec);
|
|
612
613
|
};
|
|
613
614
|
const sendOperationFn = async (args, spec) => {
|
|
614
|
-
var _a;
|
|
615
615
|
let currentRawResponse = undefined;
|
|
616
|
-
const providedCallback =
|
|
616
|
+
const providedCallback = args.options?.onResponse;
|
|
617
617
|
const callback = (rawResponse, flatResponse) => {
|
|
618
618
|
currentRawResponse = rawResponse;
|
|
619
|
-
providedCallback
|
|
619
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
620
|
+
};
|
|
621
|
+
const updatedArgs = {
|
|
622
|
+
...args,
|
|
623
|
+
options: {
|
|
624
|
+
...args.options,
|
|
625
|
+
onResponse: callback,
|
|
626
|
+
},
|
|
620
627
|
};
|
|
621
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
622
628
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
623
629
|
return {
|
|
624
630
|
flatResponse,
|
|
@@ -642,8 +648,8 @@ export class GremlinResourcesImpl {
|
|
|
642
648
|
spec: updateGremlinGraphThroughputOperationSpec,
|
|
643
649
|
});
|
|
644
650
|
const poller = await createHttpPoller(lro, {
|
|
645
|
-
restoreFrom: options
|
|
646
|
-
intervalInMs: options
|
|
651
|
+
restoreFrom: options?.resumeFrom,
|
|
652
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
647
653
|
});
|
|
648
654
|
await poller.poll();
|
|
649
655
|
return poller;
|
|
@@ -675,14 +681,19 @@ export class GremlinResourcesImpl {
|
|
|
675
681
|
return this.client.sendOperationRequest(args, spec);
|
|
676
682
|
};
|
|
677
683
|
const sendOperationFn = async (args, spec) => {
|
|
678
|
-
var _a;
|
|
679
684
|
let currentRawResponse = undefined;
|
|
680
|
-
const providedCallback =
|
|
685
|
+
const providedCallback = args.options?.onResponse;
|
|
681
686
|
const callback = (rawResponse, flatResponse) => {
|
|
682
687
|
currentRawResponse = rawResponse;
|
|
683
|
-
providedCallback
|
|
688
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
689
|
+
};
|
|
690
|
+
const updatedArgs = {
|
|
691
|
+
...args,
|
|
692
|
+
options: {
|
|
693
|
+
...args.options,
|
|
694
|
+
onResponse: callback,
|
|
695
|
+
},
|
|
684
696
|
};
|
|
685
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
686
697
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
687
698
|
return {
|
|
688
699
|
flatResponse,
|
|
@@ -705,8 +716,8 @@ export class GremlinResourcesImpl {
|
|
|
705
716
|
spec: migrateGremlinGraphToAutoscaleOperationSpec,
|
|
706
717
|
});
|
|
707
718
|
const poller = await createHttpPoller(lro, {
|
|
708
|
-
restoreFrom: options
|
|
709
|
-
intervalInMs: options
|
|
719
|
+
restoreFrom: options?.resumeFrom,
|
|
720
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
710
721
|
});
|
|
711
722
|
await poller.poll();
|
|
712
723
|
return poller;
|
|
@@ -736,14 +747,19 @@ export class GremlinResourcesImpl {
|
|
|
736
747
|
return this.client.sendOperationRequest(args, spec);
|
|
737
748
|
};
|
|
738
749
|
const sendOperationFn = async (args, spec) => {
|
|
739
|
-
var _a;
|
|
740
750
|
let currentRawResponse = undefined;
|
|
741
|
-
const providedCallback =
|
|
751
|
+
const providedCallback = args.options?.onResponse;
|
|
742
752
|
const callback = (rawResponse, flatResponse) => {
|
|
743
753
|
currentRawResponse = rawResponse;
|
|
744
|
-
providedCallback
|
|
754
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
755
|
+
};
|
|
756
|
+
const updatedArgs = {
|
|
757
|
+
...args,
|
|
758
|
+
options: {
|
|
759
|
+
...args.options,
|
|
760
|
+
onResponse: callback,
|
|
761
|
+
},
|
|
745
762
|
};
|
|
746
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
747
763
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
748
764
|
return {
|
|
749
765
|
flatResponse,
|
|
@@ -766,8 +782,8 @@ export class GremlinResourcesImpl {
|
|
|
766
782
|
spec: migrateGremlinGraphToManualThroughputOperationSpec,
|
|
767
783
|
});
|
|
768
784
|
const poller = await createHttpPoller(lro, {
|
|
769
|
-
restoreFrom: options
|
|
770
|
-
intervalInMs: options
|
|
785
|
+
restoreFrom: options?.resumeFrom,
|
|
786
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
771
787
|
});
|
|
772
788
|
await poller.poll();
|
|
773
789
|
return poller;
|
|
@@ -798,14 +814,19 @@ export class GremlinResourcesImpl {
|
|
|
798
814
|
return this.client.sendOperationRequest(args, spec);
|
|
799
815
|
};
|
|
800
816
|
const sendOperationFn = async (args, spec) => {
|
|
801
|
-
var _a;
|
|
802
817
|
let currentRawResponse = undefined;
|
|
803
|
-
const providedCallback =
|
|
818
|
+
const providedCallback = args.options?.onResponse;
|
|
804
819
|
const callback = (rawResponse, flatResponse) => {
|
|
805
820
|
currentRawResponse = rawResponse;
|
|
806
|
-
providedCallback
|
|
821
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
822
|
+
};
|
|
823
|
+
const updatedArgs = {
|
|
824
|
+
...args,
|
|
825
|
+
options: {
|
|
826
|
+
...args.options,
|
|
827
|
+
onResponse: callback,
|
|
828
|
+
},
|
|
807
829
|
};
|
|
808
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
809
830
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
810
831
|
return {
|
|
811
832
|
flatResponse,
|
|
@@ -829,8 +850,8 @@ export class GremlinResourcesImpl {
|
|
|
829
850
|
spec: retrieveContinuousBackupInformationOperationSpec,
|
|
830
851
|
});
|
|
831
852
|
const poller = await createHttpPoller(lro, {
|
|
832
|
-
restoreFrom: options
|
|
833
|
-
intervalInMs: options
|
|
853
|
+
restoreFrom: options?.resumeFrom,
|
|
854
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
834
855
|
resourceLocationConfig: "location",
|
|
835
856
|
});
|
|
836
857
|
await poller.poll();
|