@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
|
@@ -17,6 +17,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
17
17
|
/// <reference lib="esnext.asynciterable" />
|
|
18
18
|
/** Class containing DatabaseAccounts operations. */
|
|
19
19
|
class DatabaseAccountsImpl {
|
|
20
|
+
client;
|
|
20
21
|
/**
|
|
21
22
|
* Initialize a new instance of the class DatabaseAccounts class.
|
|
22
23
|
* @param client Reference to the service client
|
|
@@ -38,39 +39,22 @@ class DatabaseAccountsImpl {
|
|
|
38
39
|
return this;
|
|
39
40
|
},
|
|
40
41
|
byPage: (settings) => {
|
|
41
|
-
if (settings
|
|
42
|
+
if (settings?.maxPageSize) {
|
|
42
43
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
44
|
}
|
|
44
45
|
return this.listPagingPage(options, settings);
|
|
45
46
|
},
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
|
-
listPagingPage(options, _settings) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
yield yield tslib_1.__await(result.value || []);
|
|
53
|
-
});
|
|
49
|
+
async *listPagingPage(options, _settings) {
|
|
50
|
+
let result;
|
|
51
|
+
result = await this._list(options);
|
|
52
|
+
yield result.value || [];
|
|
54
53
|
}
|
|
55
|
-
listPagingAll(options) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
60
|
-
_c = _f.value;
|
|
61
|
-
_d = false;
|
|
62
|
-
const page = _c;
|
|
63
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
67
|
-
finally {
|
|
68
|
-
try {
|
|
69
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
70
|
-
}
|
|
71
|
-
finally { if (e_1) throw e_1.error; }
|
|
72
|
-
}
|
|
73
|
-
});
|
|
54
|
+
async *listPagingAll(options) {
|
|
55
|
+
for await (const page of this.listPagingPage(options)) {
|
|
56
|
+
yield* page;
|
|
57
|
+
}
|
|
74
58
|
}
|
|
75
59
|
/**
|
|
76
60
|
* Lists all the Azure Cosmos DB database accounts available under the given resource group.
|
|
@@ -87,39 +71,22 @@ class DatabaseAccountsImpl {
|
|
|
87
71
|
return this;
|
|
88
72
|
},
|
|
89
73
|
byPage: (settings) => {
|
|
90
|
-
if (settings
|
|
74
|
+
if (settings?.maxPageSize) {
|
|
91
75
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
92
76
|
}
|
|
93
77
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
94
78
|
},
|
|
95
79
|
};
|
|
96
80
|
}
|
|
97
|
-
listByResourceGroupPagingPage(resourceGroupName, options, _settings) {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
yield yield tslib_1.__await(result.value || []);
|
|
102
|
-
});
|
|
81
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, _settings) {
|
|
82
|
+
let result;
|
|
83
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
84
|
+
yield result.value || [];
|
|
103
85
|
}
|
|
104
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
109
|
-
_c = _f.value;
|
|
110
|
-
_d = false;
|
|
111
|
-
const page = _c;
|
|
112
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
116
|
-
finally {
|
|
117
|
-
try {
|
|
118
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
119
|
-
}
|
|
120
|
-
finally { if (e_2) throw e_2.error; }
|
|
121
|
-
}
|
|
122
|
-
});
|
|
86
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
87
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
88
|
+
yield* page;
|
|
89
|
+
}
|
|
123
90
|
}
|
|
124
91
|
/**
|
|
125
92
|
* Retrieves the metrics determined by the given filter for the given database account.
|
|
@@ -140,39 +107,22 @@ class DatabaseAccountsImpl {
|
|
|
140
107
|
return this;
|
|
141
108
|
},
|
|
142
109
|
byPage: (settings) => {
|
|
143
|
-
if (settings
|
|
110
|
+
if (settings?.maxPageSize) {
|
|
144
111
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
145
112
|
}
|
|
146
113
|
return this.listMetricsPagingPage(resourceGroupName, accountName, filter, options, settings);
|
|
147
114
|
},
|
|
148
115
|
};
|
|
149
116
|
}
|
|
150
|
-
listMetricsPagingPage(resourceGroupName, accountName, filter, options, _settings) {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
yield yield tslib_1.__await(result.value || []);
|
|
155
|
-
});
|
|
117
|
+
async *listMetricsPagingPage(resourceGroupName, accountName, filter, options, _settings) {
|
|
118
|
+
let result;
|
|
119
|
+
result = await this._listMetrics(resourceGroupName, accountName, filter, options);
|
|
120
|
+
yield result.value || [];
|
|
156
121
|
}
|
|
157
|
-
listMetricsPagingAll(resourceGroupName, accountName, filter, options) {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listMetricsPagingPage(resourceGroupName, accountName, filter, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
162
|
-
_c = _f.value;
|
|
163
|
-
_d = false;
|
|
164
|
-
const page = _c;
|
|
165
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
169
|
-
finally {
|
|
170
|
-
try {
|
|
171
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
172
|
-
}
|
|
173
|
-
finally { if (e_3) throw e_3.error; }
|
|
174
|
-
}
|
|
175
|
-
});
|
|
122
|
+
async *listMetricsPagingAll(resourceGroupName, accountName, filter, options) {
|
|
123
|
+
for await (const page of this.listMetricsPagingPage(resourceGroupName, accountName, filter, options)) {
|
|
124
|
+
yield* page;
|
|
125
|
+
}
|
|
176
126
|
}
|
|
177
127
|
/**
|
|
178
128
|
* Retrieves the usages (most recent data) for the given database account.
|
|
@@ -190,39 +140,22 @@ class DatabaseAccountsImpl {
|
|
|
190
140
|
return this;
|
|
191
141
|
},
|
|
192
142
|
byPage: (settings) => {
|
|
193
|
-
if (settings
|
|
143
|
+
if (settings?.maxPageSize) {
|
|
194
144
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
195
145
|
}
|
|
196
146
|
return this.listUsagesPagingPage(resourceGroupName, accountName, options, settings);
|
|
197
147
|
},
|
|
198
148
|
};
|
|
199
149
|
}
|
|
200
|
-
listUsagesPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
yield yield tslib_1.__await(result.value || []);
|
|
205
|
-
});
|
|
150
|
+
async *listUsagesPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
151
|
+
let result;
|
|
152
|
+
result = await this._listUsages(resourceGroupName, accountName, options);
|
|
153
|
+
yield result.value || [];
|
|
206
154
|
}
|
|
207
|
-
listUsagesPagingAll(resourceGroupName, accountName, options) {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listUsagesPagingPage(resourceGroupName, accountName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
212
|
-
_c = _f.value;
|
|
213
|
-
_d = false;
|
|
214
|
-
const page = _c;
|
|
215
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
219
|
-
finally {
|
|
220
|
-
try {
|
|
221
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
222
|
-
}
|
|
223
|
-
finally { if (e_4) throw e_4.error; }
|
|
224
|
-
}
|
|
225
|
-
});
|
|
155
|
+
async *listUsagesPagingAll(resourceGroupName, accountName, options) {
|
|
156
|
+
for await (const page of this.listUsagesPagingPage(resourceGroupName, accountName, options)) {
|
|
157
|
+
yield* page;
|
|
158
|
+
}
|
|
226
159
|
}
|
|
227
160
|
/**
|
|
228
161
|
* Retrieves metric definitions for the given database account.
|
|
@@ -240,39 +173,22 @@ class DatabaseAccountsImpl {
|
|
|
240
173
|
return this;
|
|
241
174
|
},
|
|
242
175
|
byPage: (settings) => {
|
|
243
|
-
if (settings
|
|
176
|
+
if (settings?.maxPageSize) {
|
|
244
177
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
245
178
|
}
|
|
246
179
|
return this.listMetricDefinitionsPagingPage(resourceGroupName, accountName, options, settings);
|
|
247
180
|
},
|
|
248
181
|
};
|
|
249
182
|
}
|
|
250
|
-
listMetricDefinitionsPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
yield yield tslib_1.__await(result.value || []);
|
|
255
|
-
});
|
|
183
|
+
async *listMetricDefinitionsPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
184
|
+
let result;
|
|
185
|
+
result = await this._listMetricDefinitions(resourceGroupName, accountName, options);
|
|
186
|
+
yield result.value || [];
|
|
256
187
|
}
|
|
257
|
-
listMetricDefinitionsPagingAll(resourceGroupName, accountName, options) {
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listMetricDefinitionsPagingPage(resourceGroupName, accountName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
262
|
-
_c = _f.value;
|
|
263
|
-
_d = false;
|
|
264
|
-
const page = _c;
|
|
265
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
269
|
-
finally {
|
|
270
|
-
try {
|
|
271
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
272
|
-
}
|
|
273
|
-
finally { if (e_5) throw e_5.error; }
|
|
274
|
-
}
|
|
275
|
-
});
|
|
188
|
+
async *listMetricDefinitionsPagingAll(resourceGroupName, accountName, options) {
|
|
189
|
+
for await (const page of this.listMetricDefinitionsPagingPage(resourceGroupName, accountName, options)) {
|
|
190
|
+
yield* page;
|
|
191
|
+
}
|
|
276
192
|
}
|
|
277
193
|
/**
|
|
278
194
|
* Retrieves the properties of an existing Azure Cosmos DB database account.
|
|
@@ -295,14 +211,19 @@ class DatabaseAccountsImpl {
|
|
|
295
211
|
return this.client.sendOperationRequest(args, spec);
|
|
296
212
|
};
|
|
297
213
|
const sendOperationFn = async (args, spec) => {
|
|
298
|
-
var _a;
|
|
299
214
|
let currentRawResponse = undefined;
|
|
300
|
-
const providedCallback =
|
|
215
|
+
const providedCallback = args.options?.onResponse;
|
|
301
216
|
const callback = (rawResponse, flatResponse) => {
|
|
302
217
|
currentRawResponse = rawResponse;
|
|
303
|
-
providedCallback
|
|
218
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
219
|
+
};
|
|
220
|
+
const updatedArgs = {
|
|
221
|
+
...args,
|
|
222
|
+
options: {
|
|
223
|
+
...args.options,
|
|
224
|
+
onResponse: callback,
|
|
225
|
+
},
|
|
304
226
|
};
|
|
305
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
306
227
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
307
228
|
return {
|
|
308
229
|
flatResponse,
|
|
@@ -319,8 +240,8 @@ class DatabaseAccountsImpl {
|
|
|
319
240
|
spec: updateOperationSpec,
|
|
320
241
|
});
|
|
321
242
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
322
|
-
restoreFrom: options
|
|
323
|
-
intervalInMs: options
|
|
243
|
+
restoreFrom: options?.resumeFrom,
|
|
244
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
324
245
|
});
|
|
325
246
|
await poller.poll();
|
|
326
247
|
return poller;
|
|
@@ -349,14 +270,19 @@ class DatabaseAccountsImpl {
|
|
|
349
270
|
return this.client.sendOperationRequest(args, spec);
|
|
350
271
|
};
|
|
351
272
|
const sendOperationFn = async (args, spec) => {
|
|
352
|
-
var _a;
|
|
353
273
|
let currentRawResponse = undefined;
|
|
354
|
-
const providedCallback =
|
|
274
|
+
const providedCallback = args.options?.onResponse;
|
|
355
275
|
const callback = (rawResponse, flatResponse) => {
|
|
356
276
|
currentRawResponse = rawResponse;
|
|
357
|
-
providedCallback
|
|
277
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
278
|
+
};
|
|
279
|
+
const updatedArgs = {
|
|
280
|
+
...args,
|
|
281
|
+
options: {
|
|
282
|
+
...args.options,
|
|
283
|
+
onResponse: callback,
|
|
284
|
+
},
|
|
358
285
|
};
|
|
359
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
360
286
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
361
287
|
return {
|
|
362
288
|
flatResponse,
|
|
@@ -373,8 +299,8 @@ class DatabaseAccountsImpl {
|
|
|
373
299
|
spec: createOrUpdateOperationSpec,
|
|
374
300
|
});
|
|
375
301
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
376
|
-
restoreFrom: options
|
|
377
|
-
intervalInMs: options
|
|
302
|
+
restoreFrom: options?.resumeFrom,
|
|
303
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
378
304
|
});
|
|
379
305
|
await poller.poll();
|
|
380
306
|
return poller;
|
|
@@ -402,14 +328,19 @@ class DatabaseAccountsImpl {
|
|
|
402
328
|
return this.client.sendOperationRequest(args, spec);
|
|
403
329
|
};
|
|
404
330
|
const sendOperationFn = async (args, spec) => {
|
|
405
|
-
var _a;
|
|
406
331
|
let currentRawResponse = undefined;
|
|
407
|
-
const providedCallback =
|
|
332
|
+
const providedCallback = args.options?.onResponse;
|
|
408
333
|
const callback = (rawResponse, flatResponse) => {
|
|
409
334
|
currentRawResponse = rawResponse;
|
|
410
|
-
providedCallback
|
|
335
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
336
|
+
};
|
|
337
|
+
const updatedArgs = {
|
|
338
|
+
...args,
|
|
339
|
+
options: {
|
|
340
|
+
...args.options,
|
|
341
|
+
onResponse: callback,
|
|
342
|
+
},
|
|
411
343
|
};
|
|
412
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
413
344
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
414
345
|
return {
|
|
415
346
|
flatResponse,
|
|
@@ -426,8 +357,8 @@ class DatabaseAccountsImpl {
|
|
|
426
357
|
spec: deleteOperationSpec,
|
|
427
358
|
});
|
|
428
359
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
429
|
-
restoreFrom: options
|
|
430
|
-
intervalInMs: options
|
|
360
|
+
restoreFrom: options?.resumeFrom,
|
|
361
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
431
362
|
});
|
|
432
363
|
await poller.poll();
|
|
433
364
|
return poller;
|
|
@@ -457,14 +388,19 @@ class DatabaseAccountsImpl {
|
|
|
457
388
|
return this.client.sendOperationRequest(args, spec);
|
|
458
389
|
};
|
|
459
390
|
const sendOperationFn = async (args, spec) => {
|
|
460
|
-
var _a;
|
|
461
391
|
let currentRawResponse = undefined;
|
|
462
|
-
const providedCallback =
|
|
392
|
+
const providedCallback = args.options?.onResponse;
|
|
463
393
|
const callback = (rawResponse, flatResponse) => {
|
|
464
394
|
currentRawResponse = rawResponse;
|
|
465
|
-
providedCallback
|
|
395
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
396
|
+
};
|
|
397
|
+
const updatedArgs = {
|
|
398
|
+
...args,
|
|
399
|
+
options: {
|
|
400
|
+
...args.options,
|
|
401
|
+
onResponse: callback,
|
|
402
|
+
},
|
|
466
403
|
};
|
|
467
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
468
404
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
469
405
|
return {
|
|
470
406
|
flatResponse,
|
|
@@ -481,8 +417,8 @@ class DatabaseAccountsImpl {
|
|
|
481
417
|
spec: failoverPriorityChangeOperationSpec,
|
|
482
418
|
});
|
|
483
419
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
484
|
-
restoreFrom: options
|
|
485
|
-
intervalInMs: options
|
|
420
|
+
restoreFrom: options?.resumeFrom,
|
|
421
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
486
422
|
});
|
|
487
423
|
await poller.poll();
|
|
488
424
|
return poller;
|
|
@@ -546,14 +482,19 @@ class DatabaseAccountsImpl {
|
|
|
546
482
|
return this.client.sendOperationRequest(args, spec);
|
|
547
483
|
};
|
|
548
484
|
const sendOperationFn = async (args, spec) => {
|
|
549
|
-
var _a;
|
|
550
485
|
let currentRawResponse = undefined;
|
|
551
|
-
const providedCallback =
|
|
486
|
+
const providedCallback = args.options?.onResponse;
|
|
552
487
|
const callback = (rawResponse, flatResponse) => {
|
|
553
488
|
currentRawResponse = rawResponse;
|
|
554
|
-
providedCallback
|
|
489
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
490
|
+
};
|
|
491
|
+
const updatedArgs = {
|
|
492
|
+
...args,
|
|
493
|
+
options: {
|
|
494
|
+
...args.options,
|
|
495
|
+
onResponse: callback,
|
|
496
|
+
},
|
|
555
497
|
};
|
|
556
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
557
498
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
558
499
|
return {
|
|
559
500
|
flatResponse,
|
|
@@ -575,8 +516,8 @@ class DatabaseAccountsImpl {
|
|
|
575
516
|
spec: offlineRegionOperationSpec,
|
|
576
517
|
});
|
|
577
518
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
578
|
-
restoreFrom: options
|
|
579
|
-
intervalInMs: options
|
|
519
|
+
restoreFrom: options?.resumeFrom,
|
|
520
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
580
521
|
});
|
|
581
522
|
await poller.poll();
|
|
582
523
|
return poller;
|
|
@@ -604,14 +545,19 @@ class DatabaseAccountsImpl {
|
|
|
604
545
|
return this.client.sendOperationRequest(args, spec);
|
|
605
546
|
};
|
|
606
547
|
const sendOperationFn = async (args, spec) => {
|
|
607
|
-
var _a;
|
|
608
548
|
let currentRawResponse = undefined;
|
|
609
|
-
const providedCallback =
|
|
549
|
+
const providedCallback = args.options?.onResponse;
|
|
610
550
|
const callback = (rawResponse, flatResponse) => {
|
|
611
551
|
currentRawResponse = rawResponse;
|
|
612
|
-
providedCallback
|
|
552
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
553
|
+
};
|
|
554
|
+
const updatedArgs = {
|
|
555
|
+
...args,
|
|
556
|
+
options: {
|
|
557
|
+
...args.options,
|
|
558
|
+
onResponse: callback,
|
|
559
|
+
},
|
|
613
560
|
};
|
|
614
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
615
561
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
616
562
|
return {
|
|
617
563
|
flatResponse,
|
|
@@ -633,8 +579,8 @@ class DatabaseAccountsImpl {
|
|
|
633
579
|
spec: onlineRegionOperationSpec,
|
|
634
580
|
});
|
|
635
581
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
636
|
-
restoreFrom: options
|
|
637
|
-
intervalInMs: options
|
|
582
|
+
restoreFrom: options?.resumeFrom,
|
|
583
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
638
584
|
});
|
|
639
585
|
await poller.poll();
|
|
640
586
|
return poller;
|
|
@@ -680,14 +626,19 @@ class DatabaseAccountsImpl {
|
|
|
680
626
|
return this.client.sendOperationRequest(args, spec);
|
|
681
627
|
};
|
|
682
628
|
const sendOperationFn = async (args, spec) => {
|
|
683
|
-
var _a;
|
|
684
629
|
let currentRawResponse = undefined;
|
|
685
|
-
const providedCallback =
|
|
630
|
+
const providedCallback = args.options?.onResponse;
|
|
686
631
|
const callback = (rawResponse, flatResponse) => {
|
|
687
632
|
currentRawResponse = rawResponse;
|
|
688
|
-
providedCallback
|
|
633
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
634
|
+
};
|
|
635
|
+
const updatedArgs = {
|
|
636
|
+
...args,
|
|
637
|
+
options: {
|
|
638
|
+
...args.options,
|
|
639
|
+
onResponse: callback,
|
|
640
|
+
},
|
|
689
641
|
};
|
|
690
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
691
642
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
692
643
|
return {
|
|
693
644
|
flatResponse,
|
|
@@ -704,8 +655,8 @@ class DatabaseAccountsImpl {
|
|
|
704
655
|
spec: regenerateKeyOperationSpec,
|
|
705
656
|
});
|
|
706
657
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
707
|
-
restoreFrom: options
|
|
708
|
-
intervalInMs: options
|
|
658
|
+
restoreFrom: options?.resumeFrom,
|
|
659
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
709
660
|
});
|
|
710
661
|
await poller.poll();
|
|
711
662
|
return poller;
|