@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 DatabaseAccounts operations. */
|
|
16
15
|
export class DatabaseAccountsImpl {
|
|
16
|
+
client;
|
|
17
17
|
/**
|
|
18
18
|
* Initialize a new instance of the class DatabaseAccounts class.
|
|
19
19
|
* @param client Reference to the service client
|
|
@@ -35,39 +35,22 @@ export class DatabaseAccountsImpl {
|
|
|
35
35
|
return this;
|
|
36
36
|
},
|
|
37
37
|
byPage: (settings) => {
|
|
38
|
-
if (settings
|
|
38
|
+
if (settings?.maxPageSize) {
|
|
39
39
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
40
40
|
}
|
|
41
41
|
return this.listPagingPage(options, settings);
|
|
42
42
|
},
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
listPagingPage(options, _settings) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
yield yield __await(result.value || []);
|
|
50
|
-
});
|
|
45
|
+
async *listPagingPage(options, _settings) {
|
|
46
|
+
let result;
|
|
47
|
+
result = await this._list(options);
|
|
48
|
+
yield result.value || [];
|
|
51
49
|
}
|
|
52
|
-
listPagingAll(options) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
57
|
-
_c = _f.value;
|
|
58
|
-
_d = false;
|
|
59
|
-
const page = _c;
|
|
60
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
64
|
-
finally {
|
|
65
|
-
try {
|
|
66
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
67
|
-
}
|
|
68
|
-
finally { if (e_1) throw e_1.error; }
|
|
69
|
-
}
|
|
70
|
-
});
|
|
50
|
+
async *listPagingAll(options) {
|
|
51
|
+
for await (const page of this.listPagingPage(options)) {
|
|
52
|
+
yield* page;
|
|
53
|
+
}
|
|
71
54
|
}
|
|
72
55
|
/**
|
|
73
56
|
* Lists all the Azure Cosmos DB database accounts available under the given resource group.
|
|
@@ -84,39 +67,22 @@ export class DatabaseAccountsImpl {
|
|
|
84
67
|
return this;
|
|
85
68
|
},
|
|
86
69
|
byPage: (settings) => {
|
|
87
|
-
if (settings
|
|
70
|
+
if (settings?.maxPageSize) {
|
|
88
71
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
89
72
|
}
|
|
90
73
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
91
74
|
},
|
|
92
75
|
};
|
|
93
76
|
}
|
|
94
|
-
listByResourceGroupPagingPage(resourceGroupName, options, _settings) {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
yield yield __await(result.value || []);
|
|
99
|
-
});
|
|
77
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, _settings) {
|
|
78
|
+
let result;
|
|
79
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
80
|
+
yield result.value || [];
|
|
100
81
|
}
|
|
101
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
106
|
-
_c = _f.value;
|
|
107
|
-
_d = false;
|
|
108
|
-
const page = _c;
|
|
109
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
113
|
-
finally {
|
|
114
|
-
try {
|
|
115
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
116
|
-
}
|
|
117
|
-
finally { if (e_2) throw e_2.error; }
|
|
118
|
-
}
|
|
119
|
-
});
|
|
82
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
83
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
84
|
+
yield* page;
|
|
85
|
+
}
|
|
120
86
|
}
|
|
121
87
|
/**
|
|
122
88
|
* Retrieves the metrics determined by the given filter for the given database account.
|
|
@@ -137,39 +103,22 @@ export class DatabaseAccountsImpl {
|
|
|
137
103
|
return this;
|
|
138
104
|
},
|
|
139
105
|
byPage: (settings) => {
|
|
140
|
-
if (settings
|
|
106
|
+
if (settings?.maxPageSize) {
|
|
141
107
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
142
108
|
}
|
|
143
109
|
return this.listMetricsPagingPage(resourceGroupName, accountName, filter, options, settings);
|
|
144
110
|
},
|
|
145
111
|
};
|
|
146
112
|
}
|
|
147
|
-
listMetricsPagingPage(resourceGroupName, accountName, filter, options, _settings) {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
yield yield __await(result.value || []);
|
|
152
|
-
});
|
|
113
|
+
async *listMetricsPagingPage(resourceGroupName, accountName, filter, options, _settings) {
|
|
114
|
+
let result;
|
|
115
|
+
result = await this._listMetrics(resourceGroupName, accountName, filter, options);
|
|
116
|
+
yield result.value || [];
|
|
153
117
|
}
|
|
154
|
-
listMetricsPagingAll(resourceGroupName, accountName, filter, options) {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
for (var _d = true, _e = __asyncValues(this.listMetricsPagingPage(resourceGroupName, accountName, filter, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
159
|
-
_c = _f.value;
|
|
160
|
-
_d = false;
|
|
161
|
-
const page = _c;
|
|
162
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
166
|
-
finally {
|
|
167
|
-
try {
|
|
168
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
169
|
-
}
|
|
170
|
-
finally { if (e_3) throw e_3.error; }
|
|
171
|
-
}
|
|
172
|
-
});
|
|
118
|
+
async *listMetricsPagingAll(resourceGroupName, accountName, filter, options) {
|
|
119
|
+
for await (const page of this.listMetricsPagingPage(resourceGroupName, accountName, filter, options)) {
|
|
120
|
+
yield* page;
|
|
121
|
+
}
|
|
173
122
|
}
|
|
174
123
|
/**
|
|
175
124
|
* Retrieves the usages (most recent data) for the given database account.
|
|
@@ -187,39 +136,22 @@ export class DatabaseAccountsImpl {
|
|
|
187
136
|
return this;
|
|
188
137
|
},
|
|
189
138
|
byPage: (settings) => {
|
|
190
|
-
if (settings
|
|
139
|
+
if (settings?.maxPageSize) {
|
|
191
140
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
192
141
|
}
|
|
193
142
|
return this.listUsagesPagingPage(resourceGroupName, accountName, options, settings);
|
|
194
143
|
},
|
|
195
144
|
};
|
|
196
145
|
}
|
|
197
|
-
listUsagesPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
yield yield __await(result.value || []);
|
|
202
|
-
});
|
|
146
|
+
async *listUsagesPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
147
|
+
let result;
|
|
148
|
+
result = await this._listUsages(resourceGroupName, accountName, options);
|
|
149
|
+
yield result.value || [];
|
|
203
150
|
}
|
|
204
|
-
listUsagesPagingAll(resourceGroupName, accountName, options) {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
for (var _d = true, _e = __asyncValues(this.listUsagesPagingPage(resourceGroupName, accountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
209
|
-
_c = _f.value;
|
|
210
|
-
_d = false;
|
|
211
|
-
const page = _c;
|
|
212
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
216
|
-
finally {
|
|
217
|
-
try {
|
|
218
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
219
|
-
}
|
|
220
|
-
finally { if (e_4) throw e_4.error; }
|
|
221
|
-
}
|
|
222
|
-
});
|
|
151
|
+
async *listUsagesPagingAll(resourceGroupName, accountName, options) {
|
|
152
|
+
for await (const page of this.listUsagesPagingPage(resourceGroupName, accountName, options)) {
|
|
153
|
+
yield* page;
|
|
154
|
+
}
|
|
223
155
|
}
|
|
224
156
|
/**
|
|
225
157
|
* Retrieves metric definitions for the given database account.
|
|
@@ -237,39 +169,22 @@ export class DatabaseAccountsImpl {
|
|
|
237
169
|
return this;
|
|
238
170
|
},
|
|
239
171
|
byPage: (settings) => {
|
|
240
|
-
if (settings
|
|
172
|
+
if (settings?.maxPageSize) {
|
|
241
173
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
242
174
|
}
|
|
243
175
|
return this.listMetricDefinitionsPagingPage(resourceGroupName, accountName, options, settings);
|
|
244
176
|
},
|
|
245
177
|
};
|
|
246
178
|
}
|
|
247
|
-
listMetricDefinitionsPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
yield yield __await(result.value || []);
|
|
252
|
-
});
|
|
179
|
+
async *listMetricDefinitionsPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
180
|
+
let result;
|
|
181
|
+
result = await this._listMetricDefinitions(resourceGroupName, accountName, options);
|
|
182
|
+
yield result.value || [];
|
|
253
183
|
}
|
|
254
|
-
listMetricDefinitionsPagingAll(resourceGroupName, accountName, options) {
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
for (var _d = true, _e = __asyncValues(this.listMetricDefinitionsPagingPage(resourceGroupName, accountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
259
|
-
_c = _f.value;
|
|
260
|
-
_d = false;
|
|
261
|
-
const page = _c;
|
|
262
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
266
|
-
finally {
|
|
267
|
-
try {
|
|
268
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
269
|
-
}
|
|
270
|
-
finally { if (e_5) throw e_5.error; }
|
|
271
|
-
}
|
|
272
|
-
});
|
|
184
|
+
async *listMetricDefinitionsPagingAll(resourceGroupName, accountName, options) {
|
|
185
|
+
for await (const page of this.listMetricDefinitionsPagingPage(resourceGroupName, accountName, options)) {
|
|
186
|
+
yield* page;
|
|
187
|
+
}
|
|
273
188
|
}
|
|
274
189
|
/**
|
|
275
190
|
* Retrieves the properties of an existing Azure Cosmos DB database account.
|
|
@@ -292,14 +207,19 @@ export class DatabaseAccountsImpl {
|
|
|
292
207
|
return this.client.sendOperationRequest(args, spec);
|
|
293
208
|
};
|
|
294
209
|
const sendOperationFn = async (args, spec) => {
|
|
295
|
-
var _a;
|
|
296
210
|
let currentRawResponse = undefined;
|
|
297
|
-
const providedCallback =
|
|
211
|
+
const providedCallback = args.options?.onResponse;
|
|
298
212
|
const callback = (rawResponse, flatResponse) => {
|
|
299
213
|
currentRawResponse = rawResponse;
|
|
300
|
-
providedCallback
|
|
214
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
215
|
+
};
|
|
216
|
+
const updatedArgs = {
|
|
217
|
+
...args,
|
|
218
|
+
options: {
|
|
219
|
+
...args.options,
|
|
220
|
+
onResponse: callback,
|
|
221
|
+
},
|
|
301
222
|
};
|
|
302
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
303
223
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
304
224
|
return {
|
|
305
225
|
flatResponse,
|
|
@@ -316,8 +236,8 @@ export class DatabaseAccountsImpl {
|
|
|
316
236
|
spec: updateOperationSpec,
|
|
317
237
|
});
|
|
318
238
|
const poller = await createHttpPoller(lro, {
|
|
319
|
-
restoreFrom: options
|
|
320
|
-
intervalInMs: options
|
|
239
|
+
restoreFrom: options?.resumeFrom,
|
|
240
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
321
241
|
});
|
|
322
242
|
await poller.poll();
|
|
323
243
|
return poller;
|
|
@@ -346,14 +266,19 @@ export class DatabaseAccountsImpl {
|
|
|
346
266
|
return this.client.sendOperationRequest(args, spec);
|
|
347
267
|
};
|
|
348
268
|
const sendOperationFn = async (args, spec) => {
|
|
349
|
-
var _a;
|
|
350
269
|
let currentRawResponse = undefined;
|
|
351
|
-
const providedCallback =
|
|
270
|
+
const providedCallback = args.options?.onResponse;
|
|
352
271
|
const callback = (rawResponse, flatResponse) => {
|
|
353
272
|
currentRawResponse = rawResponse;
|
|
354
|
-
providedCallback
|
|
273
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
274
|
+
};
|
|
275
|
+
const updatedArgs = {
|
|
276
|
+
...args,
|
|
277
|
+
options: {
|
|
278
|
+
...args.options,
|
|
279
|
+
onResponse: callback,
|
|
280
|
+
},
|
|
355
281
|
};
|
|
356
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
357
282
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
358
283
|
return {
|
|
359
284
|
flatResponse,
|
|
@@ -370,8 +295,8 @@ export class DatabaseAccountsImpl {
|
|
|
370
295
|
spec: createOrUpdateOperationSpec,
|
|
371
296
|
});
|
|
372
297
|
const poller = await createHttpPoller(lro, {
|
|
373
|
-
restoreFrom: options
|
|
374
|
-
intervalInMs: options
|
|
298
|
+
restoreFrom: options?.resumeFrom,
|
|
299
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
375
300
|
});
|
|
376
301
|
await poller.poll();
|
|
377
302
|
return poller;
|
|
@@ -399,14 +324,19 @@ export class DatabaseAccountsImpl {
|
|
|
399
324
|
return this.client.sendOperationRequest(args, spec);
|
|
400
325
|
};
|
|
401
326
|
const sendOperationFn = async (args, spec) => {
|
|
402
|
-
var _a;
|
|
403
327
|
let currentRawResponse = undefined;
|
|
404
|
-
const providedCallback =
|
|
328
|
+
const providedCallback = args.options?.onResponse;
|
|
405
329
|
const callback = (rawResponse, flatResponse) => {
|
|
406
330
|
currentRawResponse = rawResponse;
|
|
407
|
-
providedCallback
|
|
331
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
332
|
+
};
|
|
333
|
+
const updatedArgs = {
|
|
334
|
+
...args,
|
|
335
|
+
options: {
|
|
336
|
+
...args.options,
|
|
337
|
+
onResponse: callback,
|
|
338
|
+
},
|
|
408
339
|
};
|
|
409
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
410
340
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
411
341
|
return {
|
|
412
342
|
flatResponse,
|
|
@@ -423,8 +353,8 @@ export class DatabaseAccountsImpl {
|
|
|
423
353
|
spec: deleteOperationSpec,
|
|
424
354
|
});
|
|
425
355
|
const poller = await createHttpPoller(lro, {
|
|
426
|
-
restoreFrom: options
|
|
427
|
-
intervalInMs: options
|
|
356
|
+
restoreFrom: options?.resumeFrom,
|
|
357
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
428
358
|
});
|
|
429
359
|
await poller.poll();
|
|
430
360
|
return poller;
|
|
@@ -454,14 +384,19 @@ export class DatabaseAccountsImpl {
|
|
|
454
384
|
return this.client.sendOperationRequest(args, spec);
|
|
455
385
|
};
|
|
456
386
|
const sendOperationFn = async (args, spec) => {
|
|
457
|
-
var _a;
|
|
458
387
|
let currentRawResponse = undefined;
|
|
459
|
-
const providedCallback =
|
|
388
|
+
const providedCallback = args.options?.onResponse;
|
|
460
389
|
const callback = (rawResponse, flatResponse) => {
|
|
461
390
|
currentRawResponse = rawResponse;
|
|
462
|
-
providedCallback
|
|
391
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
392
|
+
};
|
|
393
|
+
const updatedArgs = {
|
|
394
|
+
...args,
|
|
395
|
+
options: {
|
|
396
|
+
...args.options,
|
|
397
|
+
onResponse: callback,
|
|
398
|
+
},
|
|
463
399
|
};
|
|
464
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
465
400
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
466
401
|
return {
|
|
467
402
|
flatResponse,
|
|
@@ -478,8 +413,8 @@ export class DatabaseAccountsImpl {
|
|
|
478
413
|
spec: failoverPriorityChangeOperationSpec,
|
|
479
414
|
});
|
|
480
415
|
const poller = await createHttpPoller(lro, {
|
|
481
|
-
restoreFrom: options
|
|
482
|
-
intervalInMs: options
|
|
416
|
+
restoreFrom: options?.resumeFrom,
|
|
417
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
483
418
|
});
|
|
484
419
|
await poller.poll();
|
|
485
420
|
return poller;
|
|
@@ -543,14 +478,19 @@ export class DatabaseAccountsImpl {
|
|
|
543
478
|
return this.client.sendOperationRequest(args, spec);
|
|
544
479
|
};
|
|
545
480
|
const sendOperationFn = async (args, spec) => {
|
|
546
|
-
var _a;
|
|
547
481
|
let currentRawResponse = undefined;
|
|
548
|
-
const providedCallback =
|
|
482
|
+
const providedCallback = args.options?.onResponse;
|
|
549
483
|
const callback = (rawResponse, flatResponse) => {
|
|
550
484
|
currentRawResponse = rawResponse;
|
|
551
|
-
providedCallback
|
|
485
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
486
|
+
};
|
|
487
|
+
const updatedArgs = {
|
|
488
|
+
...args,
|
|
489
|
+
options: {
|
|
490
|
+
...args.options,
|
|
491
|
+
onResponse: callback,
|
|
492
|
+
},
|
|
552
493
|
};
|
|
553
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
554
494
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
555
495
|
return {
|
|
556
496
|
flatResponse,
|
|
@@ -572,8 +512,8 @@ export class DatabaseAccountsImpl {
|
|
|
572
512
|
spec: offlineRegionOperationSpec,
|
|
573
513
|
});
|
|
574
514
|
const poller = await createHttpPoller(lro, {
|
|
575
|
-
restoreFrom: options
|
|
576
|
-
intervalInMs: options
|
|
515
|
+
restoreFrom: options?.resumeFrom,
|
|
516
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
577
517
|
});
|
|
578
518
|
await poller.poll();
|
|
579
519
|
return poller;
|
|
@@ -601,14 +541,19 @@ export class DatabaseAccountsImpl {
|
|
|
601
541
|
return this.client.sendOperationRequest(args, spec);
|
|
602
542
|
};
|
|
603
543
|
const sendOperationFn = async (args, spec) => {
|
|
604
|
-
var _a;
|
|
605
544
|
let currentRawResponse = undefined;
|
|
606
|
-
const providedCallback =
|
|
545
|
+
const providedCallback = args.options?.onResponse;
|
|
607
546
|
const callback = (rawResponse, flatResponse) => {
|
|
608
547
|
currentRawResponse = rawResponse;
|
|
609
|
-
providedCallback
|
|
548
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
549
|
+
};
|
|
550
|
+
const updatedArgs = {
|
|
551
|
+
...args,
|
|
552
|
+
options: {
|
|
553
|
+
...args.options,
|
|
554
|
+
onResponse: callback,
|
|
555
|
+
},
|
|
610
556
|
};
|
|
611
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
612
557
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
613
558
|
return {
|
|
614
559
|
flatResponse,
|
|
@@ -630,8 +575,8 @@ export class DatabaseAccountsImpl {
|
|
|
630
575
|
spec: onlineRegionOperationSpec,
|
|
631
576
|
});
|
|
632
577
|
const poller = await createHttpPoller(lro, {
|
|
633
|
-
restoreFrom: options
|
|
634
|
-
intervalInMs: options
|
|
578
|
+
restoreFrom: options?.resumeFrom,
|
|
579
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
635
580
|
});
|
|
636
581
|
await poller.poll();
|
|
637
582
|
return poller;
|
|
@@ -677,14 +622,19 @@ export class DatabaseAccountsImpl {
|
|
|
677
622
|
return this.client.sendOperationRequest(args, spec);
|
|
678
623
|
};
|
|
679
624
|
const sendOperationFn = async (args, spec) => {
|
|
680
|
-
var _a;
|
|
681
625
|
let currentRawResponse = undefined;
|
|
682
|
-
const providedCallback =
|
|
626
|
+
const providedCallback = args.options?.onResponse;
|
|
683
627
|
const callback = (rawResponse, flatResponse) => {
|
|
684
628
|
currentRawResponse = rawResponse;
|
|
685
|
-
providedCallback
|
|
629
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
630
|
+
};
|
|
631
|
+
const updatedArgs = {
|
|
632
|
+
...args,
|
|
633
|
+
options: {
|
|
634
|
+
...args.options,
|
|
635
|
+
onResponse: callback,
|
|
636
|
+
},
|
|
686
637
|
};
|
|
687
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
688
638
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
689
639
|
return {
|
|
690
640
|
flatResponse,
|
|
@@ -701,8 +651,8 @@ export class DatabaseAccountsImpl {
|
|
|
701
651
|
spec: regenerateKeyOperationSpec,
|
|
702
652
|
});
|
|
703
653
|
const poller = await createHttpPoller(lro, {
|
|
704
|
-
restoreFrom: options
|
|
705
|
-
intervalInMs: options
|
|
654
|
+
restoreFrom: options?.resumeFrom,
|
|
655
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
706
656
|
});
|
|
707
657
|
await poller.poll();
|
|
708
658
|
return poller;
|