@azure/arm-cosmosdb 16.3.0-alpha.20250718.1 → 16.3.0-alpha.20250730.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/cosmosDBManagementClient.js +50 -5
- package/dist/browser/cosmosDBManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +661 -279
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/cassandraClusters.js +85 -89
- package/dist/browser/operations/cassandraClusters.js.map +1 -1
- package/dist/browser/operations/cassandraDataCenters.js +43 -45
- package/dist/browser/operations/cassandraDataCenters.js.map +1 -1
- package/dist/browser/operations/cassandraResources.js +129 -113
- package/dist/browser/operations/cassandraResources.js.map +1 -1
- package/dist/browser/operations/collection.js +28 -79
- package/dist/browser/operations/collection.js.map +1 -1
- package/dist/browser/operations/collectionPartition.js +19 -53
- package/dist/browser/operations/collectionPartition.js.map +1 -1
- package/dist/browser/operations/collectionPartitionRegion.js +10 -27
- package/dist/browser/operations/collectionPartitionRegion.js.map +1 -1
- package/dist/browser/operations/collectionRegion.js +10 -27
- package/dist/browser/operations/collectionRegion.js.map +1 -1
- package/dist/browser/operations/database.js +28 -79
- package/dist/browser/operations/database.js.map +1 -1
- package/dist/browser/operations/databaseAccountRegion.js +10 -27
- package/dist/browser/operations/databaseAccountRegion.js.map +1 -1
- package/dist/browser/operations/databaseAccounts.js +123 -173
- package/dist/browser/operations/databaseAccounts.js.map +1 -1
- package/dist/browser/operations/gremlinResources.js +140 -119
- package/dist/browser/operations/gremlinResources.js.map +1 -1
- package/dist/browser/operations/locations.js +10 -27
- package/dist/browser/operations/locations.js.map +1 -1
- package/dist/browser/operations/mongoDBResources.js +202 -195
- package/dist/browser/operations/mongoDBResources.js.map +1 -1
- package/dist/browser/operations/notebookWorkspaces.js +54 -51
- package/dist/browser/operations/notebookWorkspaces.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/partitionKeyRangeId.js +10 -27
- package/dist/browser/operations/partitionKeyRangeId.js.map +1 -1
- package/dist/browser/operations/partitionKeyRangeIdRegion.js +10 -27
- package/dist/browser/operations/partitionKeyRangeIdRegion.js.map +1 -1
- package/dist/browser/operations/percentile.js +10 -27
- package/dist/browser/operations/percentile.js.map +1 -1
- package/dist/browser/operations/percentileSourceTarget.js +10 -27
- package/dist/browser/operations/percentileSourceTarget.js.map +1 -1
- package/dist/browser/operations/percentileTarget.js +10 -27
- package/dist/browser/operations/percentileTarget.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.js +32 -39
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.js +10 -27
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/restorableDatabaseAccounts.js +19 -53
- package/dist/browser/operations/restorableDatabaseAccounts.js.map +1 -1
- package/dist/browser/operations/restorableGremlinDatabases.js +10 -27
- package/dist/browser/operations/restorableGremlinDatabases.js.map +1 -1
- package/dist/browser/operations/restorableGremlinGraphs.js +10 -27
- package/dist/browser/operations/restorableGremlinGraphs.js.map +1 -1
- package/dist/browser/operations/restorableGremlinResources.js +10 -27
- package/dist/browser/operations/restorableGremlinResources.js.map +1 -1
- package/dist/browser/operations/restorableMongodbCollections.js +10 -27
- package/dist/browser/operations/restorableMongodbCollections.js.map +1 -1
- package/dist/browser/operations/restorableMongodbDatabases.js +10 -27
- package/dist/browser/operations/restorableMongodbDatabases.js.map +1 -1
- package/dist/browser/operations/restorableMongodbResources.js +10 -27
- package/dist/browser/operations/restorableMongodbResources.js.map +1 -1
- package/dist/browser/operations/restorableSqlContainers.js +10 -27
- package/dist/browser/operations/restorableSqlContainers.js.map +1 -1
- package/dist/browser/operations/restorableSqlDatabases.js +10 -27
- package/dist/browser/operations/restorableSqlDatabases.js.map +1 -1
- package/dist/browser/operations/restorableSqlResources.js +10 -27
- package/dist/browser/operations/restorableSqlResources.js.map +1 -1
- package/dist/browser/operations/restorableTableResources.js +10 -27
- package/dist/browser/operations/restorableTableResources.js.map +1 -1
- package/dist/browser/operations/restorableTables.js +10 -27
- package/dist/browser/operations/restorableTables.js.map +1 -1
- package/dist/browser/operations/service.js +32 -39
- package/dist/browser/operations/service.js.map +1 -1
- package/dist/browser/operations/sqlResources.js +315 -341
- package/dist/browser/operations/sqlResources.js.map +1 -1
- package/dist/browser/operations/tableResources.js +76 -63
- package/dist/browser/operations/tableResources.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/cosmosDBManagementClient.js +50 -5
- package/dist/commonjs/cosmosDBManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +661 -279
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/cassandraClusters.js +85 -88
- package/dist/commonjs/operations/cassandraClusters.js.map +1 -1
- package/dist/commonjs/operations/cassandraDataCenters.js +43 -44
- package/dist/commonjs/operations/cassandraDataCenters.js.map +1 -1
- package/dist/commonjs/operations/cassandraResources.js +129 -112
- package/dist/commonjs/operations/cassandraResources.js.map +1 -1
- package/dist/commonjs/operations/collection.js +28 -78
- package/dist/commonjs/operations/collection.js.map +1 -1
- package/dist/commonjs/operations/collectionPartition.js +19 -52
- package/dist/commonjs/operations/collectionPartition.js.map +1 -1
- package/dist/commonjs/operations/collectionPartitionRegion.js +10 -26
- package/dist/commonjs/operations/collectionPartitionRegion.js.map +1 -1
- package/dist/commonjs/operations/collectionRegion.js +10 -26
- package/dist/commonjs/operations/collectionRegion.js.map +1 -1
- package/dist/commonjs/operations/database.js +28 -78
- package/dist/commonjs/operations/database.js.map +1 -1
- package/dist/commonjs/operations/databaseAccountRegion.js +10 -26
- package/dist/commonjs/operations/databaseAccountRegion.js.map +1 -1
- package/dist/commonjs/operations/databaseAccounts.js +123 -172
- package/dist/commonjs/operations/databaseAccounts.js.map +1 -1
- package/dist/commonjs/operations/gremlinResources.js +140 -118
- package/dist/commonjs/operations/gremlinResources.js.map +1 -1
- package/dist/commonjs/operations/locations.js +10 -26
- package/dist/commonjs/operations/locations.js.map +1 -1
- package/dist/commonjs/operations/mongoDBResources.js +202 -194
- package/dist/commonjs/operations/mongoDBResources.js.map +1 -1
- package/dist/commonjs/operations/notebookWorkspaces.js +54 -50
- package/dist/commonjs/operations/notebookWorkspaces.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/partitionKeyRangeId.js +10 -26
- package/dist/commonjs/operations/partitionKeyRangeId.js.map +1 -1
- package/dist/commonjs/operations/partitionKeyRangeIdRegion.js +10 -26
- package/dist/commonjs/operations/partitionKeyRangeIdRegion.js.map +1 -1
- package/dist/commonjs/operations/percentile.js +10 -26
- package/dist/commonjs/operations/percentile.js.map +1 -1
- package/dist/commonjs/operations/percentileSourceTarget.js +10 -26
- package/dist/commonjs/operations/percentileSourceTarget.js.map +1 -1
- package/dist/commonjs/operations/percentileTarget.js +10 -26
- package/dist/commonjs/operations/percentileTarget.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.js +32 -38
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js +10 -26
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/restorableDatabaseAccounts.js +19 -52
- package/dist/commonjs/operations/restorableDatabaseAccounts.js.map +1 -1
- package/dist/commonjs/operations/restorableGremlinDatabases.js +10 -26
- package/dist/commonjs/operations/restorableGremlinDatabases.js.map +1 -1
- package/dist/commonjs/operations/restorableGremlinGraphs.js +10 -26
- package/dist/commonjs/operations/restorableGremlinGraphs.js.map +1 -1
- package/dist/commonjs/operations/restorableGremlinResources.js +10 -26
- package/dist/commonjs/operations/restorableGremlinResources.js.map +1 -1
- package/dist/commonjs/operations/restorableMongodbCollections.js +10 -26
- package/dist/commonjs/operations/restorableMongodbCollections.js.map +1 -1
- package/dist/commonjs/operations/restorableMongodbDatabases.js +10 -26
- package/dist/commonjs/operations/restorableMongodbDatabases.js.map +1 -1
- package/dist/commonjs/operations/restorableMongodbResources.js +10 -26
- package/dist/commonjs/operations/restorableMongodbResources.js.map +1 -1
- package/dist/commonjs/operations/restorableSqlContainers.js +10 -26
- package/dist/commonjs/operations/restorableSqlContainers.js.map +1 -1
- package/dist/commonjs/operations/restorableSqlDatabases.js +10 -26
- package/dist/commonjs/operations/restorableSqlDatabases.js.map +1 -1
- package/dist/commonjs/operations/restorableSqlResources.js +10 -26
- package/dist/commonjs/operations/restorableSqlResources.js.map +1 -1
- package/dist/commonjs/operations/restorableTableResources.js +10 -26
- package/dist/commonjs/operations/restorableTableResources.js.map +1 -1
- package/dist/commonjs/operations/restorableTables.js +10 -26
- package/dist/commonjs/operations/restorableTables.js.map +1 -1
- package/dist/commonjs/operations/service.js +32 -38
- package/dist/commonjs/operations/service.js.map +1 -1
- package/dist/commonjs/operations/sqlResources.js +315 -340
- package/dist/commonjs/operations/sqlResources.js.map +1 -1
- package/dist/commonjs/operations/tableResources.js +76 -62
- package/dist/commonjs/operations/tableResources.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/cosmosDBManagementClient.js +50 -5
- package/dist/esm/cosmosDBManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +661 -279
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/cassandraClusters.js +85 -89
- package/dist/esm/operations/cassandraClusters.js.map +1 -1
- package/dist/esm/operations/cassandraDataCenters.js +43 -45
- package/dist/esm/operations/cassandraDataCenters.js.map +1 -1
- package/dist/esm/operations/cassandraResources.js +129 -113
- package/dist/esm/operations/cassandraResources.js.map +1 -1
- package/dist/esm/operations/collection.js +28 -79
- package/dist/esm/operations/collection.js.map +1 -1
- package/dist/esm/operations/collectionPartition.js +19 -53
- package/dist/esm/operations/collectionPartition.js.map +1 -1
- package/dist/esm/operations/collectionPartitionRegion.js +10 -27
- package/dist/esm/operations/collectionPartitionRegion.js.map +1 -1
- package/dist/esm/operations/collectionRegion.js +10 -27
- package/dist/esm/operations/collectionRegion.js.map +1 -1
- package/dist/esm/operations/database.js +28 -79
- package/dist/esm/operations/database.js.map +1 -1
- package/dist/esm/operations/databaseAccountRegion.js +10 -27
- package/dist/esm/operations/databaseAccountRegion.js.map +1 -1
- package/dist/esm/operations/databaseAccounts.js +123 -173
- package/dist/esm/operations/databaseAccounts.js.map +1 -1
- package/dist/esm/operations/gremlinResources.js +140 -119
- package/dist/esm/operations/gremlinResources.js.map +1 -1
- package/dist/esm/operations/locations.js +10 -27
- package/dist/esm/operations/locations.js.map +1 -1
- package/dist/esm/operations/mongoDBResources.js +202 -195
- package/dist/esm/operations/mongoDBResources.js.map +1 -1
- package/dist/esm/operations/notebookWorkspaces.js +54 -51
- package/dist/esm/operations/notebookWorkspaces.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/partitionKeyRangeId.js +10 -27
- package/dist/esm/operations/partitionKeyRangeId.js.map +1 -1
- package/dist/esm/operations/partitionKeyRangeIdRegion.js +10 -27
- package/dist/esm/operations/partitionKeyRangeIdRegion.js.map +1 -1
- package/dist/esm/operations/percentile.js +10 -27
- package/dist/esm/operations/percentile.js.map +1 -1
- package/dist/esm/operations/percentileSourceTarget.js +10 -27
- package/dist/esm/operations/percentileSourceTarget.js.map +1 -1
- package/dist/esm/operations/percentileTarget.js +10 -27
- package/dist/esm/operations/percentileTarget.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnections.js +32 -39
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/privateLinkResources.js +10 -27
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/operations/restorableDatabaseAccounts.js +19 -53
- package/dist/esm/operations/restorableDatabaseAccounts.js.map +1 -1
- package/dist/esm/operations/restorableGremlinDatabases.js +10 -27
- package/dist/esm/operations/restorableGremlinDatabases.js.map +1 -1
- package/dist/esm/operations/restorableGremlinGraphs.js +10 -27
- package/dist/esm/operations/restorableGremlinGraphs.js.map +1 -1
- package/dist/esm/operations/restorableGremlinResources.js +10 -27
- package/dist/esm/operations/restorableGremlinResources.js.map +1 -1
- package/dist/esm/operations/restorableMongodbCollections.js +10 -27
- package/dist/esm/operations/restorableMongodbCollections.js.map +1 -1
- package/dist/esm/operations/restorableMongodbDatabases.js +10 -27
- package/dist/esm/operations/restorableMongodbDatabases.js.map +1 -1
- package/dist/esm/operations/restorableMongodbResources.js +10 -27
- package/dist/esm/operations/restorableMongodbResources.js.map +1 -1
- package/dist/esm/operations/restorableSqlContainers.js +10 -27
- package/dist/esm/operations/restorableSqlContainers.js.map +1 -1
- package/dist/esm/operations/restorableSqlDatabases.js +10 -27
- package/dist/esm/operations/restorableSqlDatabases.js.map +1 -1
- package/dist/esm/operations/restorableSqlResources.js +10 -27
- package/dist/esm/operations/restorableSqlResources.js.map +1 -1
- package/dist/esm/operations/restorableTableResources.js +10 -27
- package/dist/esm/operations/restorableTableResources.js.map +1 -1
- package/dist/esm/operations/restorableTables.js +10 -27
- package/dist/esm/operations/restorableTables.js.map +1 -1
- package/dist/esm/operations/service.js +32 -39
- package/dist/esm/operations/service.js.map +1 -1
- package/dist/esm/operations/sqlResources.js +315 -341
- package/dist/esm/operations/sqlResources.js.map +1 -1
- package/dist/esm/operations/tableResources.js +76 -63
- package/dist/esm/operations/tableResources.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/cosmosDBManagementClient.js +50 -5
- package/dist/react-native/cosmosDBManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +661 -279
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/cassandraClusters.js +85 -89
- package/dist/react-native/operations/cassandraClusters.js.map +1 -1
- package/dist/react-native/operations/cassandraDataCenters.js +43 -45
- package/dist/react-native/operations/cassandraDataCenters.js.map +1 -1
- package/dist/react-native/operations/cassandraResources.js +129 -113
- package/dist/react-native/operations/cassandraResources.js.map +1 -1
- package/dist/react-native/operations/collection.js +28 -79
- package/dist/react-native/operations/collection.js.map +1 -1
- package/dist/react-native/operations/collectionPartition.js +19 -53
- package/dist/react-native/operations/collectionPartition.js.map +1 -1
- package/dist/react-native/operations/collectionPartitionRegion.js +10 -27
- package/dist/react-native/operations/collectionPartitionRegion.js.map +1 -1
- package/dist/react-native/operations/collectionRegion.js +10 -27
- package/dist/react-native/operations/collectionRegion.js.map +1 -1
- package/dist/react-native/operations/database.js +28 -79
- package/dist/react-native/operations/database.js.map +1 -1
- package/dist/react-native/operations/databaseAccountRegion.js +10 -27
- package/dist/react-native/operations/databaseAccountRegion.js.map +1 -1
- package/dist/react-native/operations/databaseAccounts.js +123 -173
- package/dist/react-native/operations/databaseAccounts.js.map +1 -1
- package/dist/react-native/operations/gremlinResources.js +140 -119
- package/dist/react-native/operations/gremlinResources.js.map +1 -1
- package/dist/react-native/operations/locations.js +10 -27
- package/dist/react-native/operations/locations.js.map +1 -1
- package/dist/react-native/operations/mongoDBResources.js +202 -195
- package/dist/react-native/operations/mongoDBResources.js.map +1 -1
- package/dist/react-native/operations/notebookWorkspaces.js +54 -51
- package/dist/react-native/operations/notebookWorkspaces.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/partitionKeyRangeId.js +10 -27
- package/dist/react-native/operations/partitionKeyRangeId.js.map +1 -1
- package/dist/react-native/operations/partitionKeyRangeIdRegion.js +10 -27
- package/dist/react-native/operations/partitionKeyRangeIdRegion.js.map +1 -1
- package/dist/react-native/operations/percentile.js +10 -27
- package/dist/react-native/operations/percentile.js.map +1 -1
- package/dist/react-native/operations/percentileSourceTarget.js +10 -27
- package/dist/react-native/operations/percentileSourceTarget.js.map +1 -1
- package/dist/react-native/operations/percentileTarget.js +10 -27
- package/dist/react-native/operations/percentileTarget.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnections.js +32 -39
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/privateLinkResources.js +10 -27
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/operations/restorableDatabaseAccounts.js +19 -53
- package/dist/react-native/operations/restorableDatabaseAccounts.js.map +1 -1
- package/dist/react-native/operations/restorableGremlinDatabases.js +10 -27
- package/dist/react-native/operations/restorableGremlinDatabases.js.map +1 -1
- package/dist/react-native/operations/restorableGremlinGraphs.js +10 -27
- package/dist/react-native/operations/restorableGremlinGraphs.js.map +1 -1
- package/dist/react-native/operations/restorableGremlinResources.js +10 -27
- package/dist/react-native/operations/restorableGremlinResources.js.map +1 -1
- package/dist/react-native/operations/restorableMongodbCollections.js +10 -27
- package/dist/react-native/operations/restorableMongodbCollections.js.map +1 -1
- package/dist/react-native/operations/restorableMongodbDatabases.js +10 -27
- package/dist/react-native/operations/restorableMongodbDatabases.js.map +1 -1
- package/dist/react-native/operations/restorableMongodbResources.js +10 -27
- package/dist/react-native/operations/restorableMongodbResources.js.map +1 -1
- package/dist/react-native/operations/restorableSqlContainers.js +10 -27
- package/dist/react-native/operations/restorableSqlContainers.js.map +1 -1
- package/dist/react-native/operations/restorableSqlDatabases.js +10 -27
- package/dist/react-native/operations/restorableSqlDatabases.js.map +1 -1
- package/dist/react-native/operations/restorableSqlResources.js +10 -27
- package/dist/react-native/operations/restorableSqlResources.js.map +1 -1
- package/dist/react-native/operations/restorableTableResources.js +10 -27
- package/dist/react-native/operations/restorableTableResources.js.map +1 -1
- package/dist/react-native/operations/restorableTables.js +10 -27
- package/dist/react-native/operations/restorableTables.js.map +1 -1
- package/dist/react-native/operations/service.js +32 -39
- package/dist/react-native/operations/service.js.map +1 -1
- package/dist/react-native/operations/sqlResources.js +315 -341
- package/dist/react-native/operations/sqlResources.js.map +1 -1
- package/dist/react-native/operations/tableResources.js +76 -63
- package/dist/react-native/operations/tableResources.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import * as coreClient from "@azure/core-client";
|
|
10
9
|
import * as Mappers from "../models/mappers.js";
|
|
11
10
|
import * as Parameters from "../models/parameters.js";
|
|
@@ -14,6 +13,7 @@ import { createLroSpec } from "../lroImpl.js";
|
|
|
14
13
|
/// <reference lib="esnext.asynciterable" />
|
|
15
14
|
/** Class containing SqlResources operations. */
|
|
16
15
|
export class SqlResourcesImpl {
|
|
16
|
+
client;
|
|
17
17
|
/**
|
|
18
18
|
* Initialize a new instance of the class SqlResources class.
|
|
19
19
|
* @param client Reference to the service client
|
|
@@ -37,39 +37,22 @@ export class SqlResourcesImpl {
|
|
|
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.listSqlDatabasesPagingPage(resourceGroupName, accountName, options, settings);
|
|
44
44
|
},
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
listSqlDatabasesPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
yield yield __await(result.value || []);
|
|
52
|
-
});
|
|
47
|
+
async *listSqlDatabasesPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
48
|
+
let result;
|
|
49
|
+
result = await this._listSqlDatabases(resourceGroupName, accountName, options);
|
|
50
|
+
yield result.value || [];
|
|
53
51
|
}
|
|
54
|
-
listSqlDatabasesPagingAll(resourceGroupName, accountName, options) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
for (var _d = true, _e = __asyncValues(this.listSqlDatabasesPagingPage(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 *listSqlDatabasesPagingAll(resourceGroupName, accountName, options) {
|
|
53
|
+
for await (const page of this.listSqlDatabasesPagingPage(resourceGroupName, accountName, options)) {
|
|
54
|
+
yield* page;
|
|
55
|
+
}
|
|
73
56
|
}
|
|
74
57
|
/**
|
|
75
58
|
* Lists the SQL container under an existing Azure Cosmos DB database account.
|
|
@@ -88,39 +71,22 @@ export class SqlResourcesImpl {
|
|
|
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.listSqlContainersPagingPage(resourceGroupName, accountName, databaseName, options, settings);
|
|
95
78
|
},
|
|
96
79
|
};
|
|
97
80
|
}
|
|
98
|
-
listSqlContainersPagingPage(resourceGroupName, accountName, databaseName, options, _settings) {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
yield yield __await(result.value || []);
|
|
103
|
-
});
|
|
81
|
+
async *listSqlContainersPagingPage(resourceGroupName, accountName, databaseName, options, _settings) {
|
|
82
|
+
let result;
|
|
83
|
+
result = await this._listSqlContainers(resourceGroupName, accountName, databaseName, options);
|
|
84
|
+
yield result.value || [];
|
|
104
85
|
}
|
|
105
|
-
listSqlContainersPagingAll(resourceGroupName, accountName, databaseName, options) {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
for (var _d = true, _e = __asyncValues(this.listSqlContainersPagingPage(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 *listSqlContainersPagingAll(resourceGroupName, accountName, databaseName, options) {
|
|
87
|
+
for await (const page of this.listSqlContainersPagingPage(resourceGroupName, accountName, databaseName, options)) {
|
|
88
|
+
yield* page;
|
|
89
|
+
}
|
|
124
90
|
}
|
|
125
91
|
/**
|
|
126
92
|
* Lists the ClientEncryptionKeys under an existing Azure Cosmos DB SQL database.
|
|
@@ -139,39 +105,22 @@ export class SqlResourcesImpl {
|
|
|
139
105
|
return this;
|
|
140
106
|
},
|
|
141
107
|
byPage: (settings) => {
|
|
142
|
-
if (settings
|
|
108
|
+
if (settings?.maxPageSize) {
|
|
143
109
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
144
110
|
}
|
|
145
111
|
return this.listClientEncryptionKeysPagingPage(resourceGroupName, accountName, databaseName, options, settings);
|
|
146
112
|
},
|
|
147
113
|
};
|
|
148
114
|
}
|
|
149
|
-
listClientEncryptionKeysPagingPage(resourceGroupName, accountName, databaseName, options, _settings) {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
yield yield __await(result.value || []);
|
|
154
|
-
});
|
|
115
|
+
async *listClientEncryptionKeysPagingPage(resourceGroupName, accountName, databaseName, options, _settings) {
|
|
116
|
+
let result;
|
|
117
|
+
result = await this._listClientEncryptionKeys(resourceGroupName, accountName, databaseName, options);
|
|
118
|
+
yield result.value || [];
|
|
155
119
|
}
|
|
156
|
-
listClientEncryptionKeysPagingAll(resourceGroupName, accountName, databaseName, options) {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
for (var _d = true, _e = __asyncValues(this.listClientEncryptionKeysPagingPage(resourceGroupName, accountName, databaseName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
161
|
-
_c = _f.value;
|
|
162
|
-
_d = false;
|
|
163
|
-
const page = _c;
|
|
164
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
168
|
-
finally {
|
|
169
|
-
try {
|
|
170
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
171
|
-
}
|
|
172
|
-
finally { if (e_3) throw e_3.error; }
|
|
173
|
-
}
|
|
174
|
-
});
|
|
120
|
+
async *listClientEncryptionKeysPagingAll(resourceGroupName, accountName, databaseName, options) {
|
|
121
|
+
for await (const page of this.listClientEncryptionKeysPagingPage(resourceGroupName, accountName, databaseName, options)) {
|
|
122
|
+
yield* page;
|
|
123
|
+
}
|
|
175
124
|
}
|
|
176
125
|
/**
|
|
177
126
|
* Lists the SQL storedProcedure under an existing Azure Cosmos DB database account.
|
|
@@ -191,39 +140,22 @@ export class SqlResourcesImpl {
|
|
|
191
140
|
return this;
|
|
192
141
|
},
|
|
193
142
|
byPage: (settings) => {
|
|
194
|
-
if (settings
|
|
143
|
+
if (settings?.maxPageSize) {
|
|
195
144
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
196
145
|
}
|
|
197
146
|
return this.listSqlStoredProceduresPagingPage(resourceGroupName, accountName, databaseName, containerName, options, settings);
|
|
198
147
|
},
|
|
199
148
|
};
|
|
200
149
|
}
|
|
201
|
-
listSqlStoredProceduresPagingPage(resourceGroupName, accountName, databaseName, containerName, options, _settings) {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
yield yield __await(result.value || []);
|
|
206
|
-
});
|
|
150
|
+
async *listSqlStoredProceduresPagingPage(resourceGroupName, accountName, databaseName, containerName, options, _settings) {
|
|
151
|
+
let result;
|
|
152
|
+
result = await this._listSqlStoredProcedures(resourceGroupName, accountName, databaseName, containerName, options);
|
|
153
|
+
yield result.value || [];
|
|
207
154
|
}
|
|
208
|
-
listSqlStoredProceduresPagingAll(resourceGroupName, accountName, databaseName, containerName, options) {
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
for (var _d = true, _e = __asyncValues(this.listSqlStoredProceduresPagingPage(resourceGroupName, accountName, databaseName, containerName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
213
|
-
_c = _f.value;
|
|
214
|
-
_d = false;
|
|
215
|
-
const page = _c;
|
|
216
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
220
|
-
finally {
|
|
221
|
-
try {
|
|
222
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
223
|
-
}
|
|
224
|
-
finally { if (e_4) throw e_4.error; }
|
|
225
|
-
}
|
|
226
|
-
});
|
|
155
|
+
async *listSqlStoredProceduresPagingAll(resourceGroupName, accountName, databaseName, containerName, options) {
|
|
156
|
+
for await (const page of this.listSqlStoredProceduresPagingPage(resourceGroupName, accountName, databaseName, containerName, options)) {
|
|
157
|
+
yield* page;
|
|
158
|
+
}
|
|
227
159
|
}
|
|
228
160
|
/**
|
|
229
161
|
* Lists the SQL userDefinedFunction under an existing Azure Cosmos DB database account.
|
|
@@ -243,39 +175,22 @@ export class SqlResourcesImpl {
|
|
|
243
175
|
return this;
|
|
244
176
|
},
|
|
245
177
|
byPage: (settings) => {
|
|
246
|
-
if (settings
|
|
178
|
+
if (settings?.maxPageSize) {
|
|
247
179
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
248
180
|
}
|
|
249
181
|
return this.listSqlUserDefinedFunctionsPagingPage(resourceGroupName, accountName, databaseName, containerName, options, settings);
|
|
250
182
|
},
|
|
251
183
|
};
|
|
252
184
|
}
|
|
253
|
-
listSqlUserDefinedFunctionsPagingPage(resourceGroupName, accountName, databaseName, containerName, options, _settings) {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
yield yield __await(result.value || []);
|
|
258
|
-
});
|
|
185
|
+
async *listSqlUserDefinedFunctionsPagingPage(resourceGroupName, accountName, databaseName, containerName, options, _settings) {
|
|
186
|
+
let result;
|
|
187
|
+
result = await this._listSqlUserDefinedFunctions(resourceGroupName, accountName, databaseName, containerName, options);
|
|
188
|
+
yield result.value || [];
|
|
259
189
|
}
|
|
260
|
-
listSqlUserDefinedFunctionsPagingAll(resourceGroupName, accountName, databaseName, containerName, options) {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
for (var _d = true, _e = __asyncValues(this.listSqlUserDefinedFunctionsPagingPage(resourceGroupName, accountName, databaseName, containerName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
265
|
-
_c = _f.value;
|
|
266
|
-
_d = false;
|
|
267
|
-
const page = _c;
|
|
268
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
272
|
-
finally {
|
|
273
|
-
try {
|
|
274
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
275
|
-
}
|
|
276
|
-
finally { if (e_5) throw e_5.error; }
|
|
277
|
-
}
|
|
278
|
-
});
|
|
190
|
+
async *listSqlUserDefinedFunctionsPagingAll(resourceGroupName, accountName, databaseName, containerName, options) {
|
|
191
|
+
for await (const page of this.listSqlUserDefinedFunctionsPagingPage(resourceGroupName, accountName, databaseName, containerName, options)) {
|
|
192
|
+
yield* page;
|
|
193
|
+
}
|
|
279
194
|
}
|
|
280
195
|
/**
|
|
281
196
|
* Lists the SQL trigger under an existing Azure Cosmos DB database account.
|
|
@@ -295,39 +210,22 @@ export class SqlResourcesImpl {
|
|
|
295
210
|
return this;
|
|
296
211
|
},
|
|
297
212
|
byPage: (settings) => {
|
|
298
|
-
if (settings
|
|
213
|
+
if (settings?.maxPageSize) {
|
|
299
214
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
300
215
|
}
|
|
301
216
|
return this.listSqlTriggersPagingPage(resourceGroupName, accountName, databaseName, containerName, options, settings);
|
|
302
217
|
},
|
|
303
218
|
};
|
|
304
219
|
}
|
|
305
|
-
listSqlTriggersPagingPage(resourceGroupName, accountName, databaseName, containerName, options, _settings) {
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
yield yield __await(result.value || []);
|
|
310
|
-
});
|
|
220
|
+
async *listSqlTriggersPagingPage(resourceGroupName, accountName, databaseName, containerName, options, _settings) {
|
|
221
|
+
let result;
|
|
222
|
+
result = await this._listSqlTriggers(resourceGroupName, accountName, databaseName, containerName, options);
|
|
223
|
+
yield result.value || [];
|
|
311
224
|
}
|
|
312
|
-
listSqlTriggersPagingAll(resourceGroupName, accountName, databaseName, containerName, options) {
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
for (var _d = true, _e = __asyncValues(this.listSqlTriggersPagingPage(resourceGroupName, accountName, databaseName, containerName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
317
|
-
_c = _f.value;
|
|
318
|
-
_d = false;
|
|
319
|
-
const page = _c;
|
|
320
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
324
|
-
finally {
|
|
325
|
-
try {
|
|
326
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
327
|
-
}
|
|
328
|
-
finally { if (e_6) throw e_6.error; }
|
|
329
|
-
}
|
|
330
|
-
});
|
|
225
|
+
async *listSqlTriggersPagingAll(resourceGroupName, accountName, databaseName, containerName, options) {
|
|
226
|
+
for await (const page of this.listSqlTriggersPagingPage(resourceGroupName, accountName, databaseName, containerName, options)) {
|
|
227
|
+
yield* page;
|
|
228
|
+
}
|
|
331
229
|
}
|
|
332
230
|
/**
|
|
333
231
|
* Retrieves the list of all Azure Cosmos DB SQL Role Definitions.
|
|
@@ -345,39 +243,22 @@ export class SqlResourcesImpl {
|
|
|
345
243
|
return this;
|
|
346
244
|
},
|
|
347
245
|
byPage: (settings) => {
|
|
348
|
-
if (settings
|
|
246
|
+
if (settings?.maxPageSize) {
|
|
349
247
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
350
248
|
}
|
|
351
249
|
return this.listSqlRoleDefinitionsPagingPage(resourceGroupName, accountName, options, settings);
|
|
352
250
|
},
|
|
353
251
|
};
|
|
354
252
|
}
|
|
355
|
-
listSqlRoleDefinitionsPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
yield yield __await(result.value || []);
|
|
360
|
-
});
|
|
253
|
+
async *listSqlRoleDefinitionsPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
254
|
+
let result;
|
|
255
|
+
result = await this._listSqlRoleDefinitions(resourceGroupName, accountName, options);
|
|
256
|
+
yield result.value || [];
|
|
361
257
|
}
|
|
362
|
-
listSqlRoleDefinitionsPagingAll(resourceGroupName, accountName, options) {
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
for (var _d = true, _e = __asyncValues(this.listSqlRoleDefinitionsPagingPage(resourceGroupName, accountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
367
|
-
_c = _f.value;
|
|
368
|
-
_d = false;
|
|
369
|
-
const page = _c;
|
|
370
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
catch (e_7_1) { e_7 = { error: e_7_1 }; }
|
|
374
|
-
finally {
|
|
375
|
-
try {
|
|
376
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
377
|
-
}
|
|
378
|
-
finally { if (e_7) throw e_7.error; }
|
|
379
|
-
}
|
|
380
|
-
});
|
|
258
|
+
async *listSqlRoleDefinitionsPagingAll(resourceGroupName, accountName, options) {
|
|
259
|
+
for await (const page of this.listSqlRoleDefinitionsPagingPage(resourceGroupName, accountName, options)) {
|
|
260
|
+
yield* page;
|
|
261
|
+
}
|
|
381
262
|
}
|
|
382
263
|
/**
|
|
383
264
|
* Retrieves the list of all Azure Cosmos DB SQL Role Assignments.
|
|
@@ -395,39 +276,22 @@ export class SqlResourcesImpl {
|
|
|
395
276
|
return this;
|
|
396
277
|
},
|
|
397
278
|
byPage: (settings) => {
|
|
398
|
-
if (settings
|
|
279
|
+
if (settings?.maxPageSize) {
|
|
399
280
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
400
281
|
}
|
|
401
282
|
return this.listSqlRoleAssignmentsPagingPage(resourceGroupName, accountName, options, settings);
|
|
402
283
|
},
|
|
403
284
|
};
|
|
404
285
|
}
|
|
405
|
-
listSqlRoleAssignmentsPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
yield yield __await(result.value || []);
|
|
410
|
-
});
|
|
286
|
+
async *listSqlRoleAssignmentsPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
287
|
+
let result;
|
|
288
|
+
result = await this._listSqlRoleAssignments(resourceGroupName, accountName, options);
|
|
289
|
+
yield result.value || [];
|
|
411
290
|
}
|
|
412
|
-
listSqlRoleAssignmentsPagingAll(resourceGroupName, accountName, options) {
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
for (var _d = true, _e = __asyncValues(this.listSqlRoleAssignmentsPagingPage(resourceGroupName, accountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
417
|
-
_c = _f.value;
|
|
418
|
-
_d = false;
|
|
419
|
-
const page = _c;
|
|
420
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
catch (e_8_1) { e_8 = { error: e_8_1 }; }
|
|
424
|
-
finally {
|
|
425
|
-
try {
|
|
426
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
427
|
-
}
|
|
428
|
-
finally { if (e_8) throw e_8.error; }
|
|
429
|
-
}
|
|
430
|
-
});
|
|
291
|
+
async *listSqlRoleAssignmentsPagingAll(resourceGroupName, accountName, options) {
|
|
292
|
+
for await (const page of this.listSqlRoleAssignmentsPagingPage(resourceGroupName, accountName, options)) {
|
|
293
|
+
yield* page;
|
|
294
|
+
}
|
|
431
295
|
}
|
|
432
296
|
/**
|
|
433
297
|
* Lists the SQL databases under an existing Azure Cosmos DB database account.
|
|
@@ -461,14 +325,19 @@ export class SqlResourcesImpl {
|
|
|
461
325
|
return this.client.sendOperationRequest(args, spec);
|
|
462
326
|
};
|
|
463
327
|
const sendOperationFn = async (args, spec) => {
|
|
464
|
-
var _a;
|
|
465
328
|
let currentRawResponse = undefined;
|
|
466
|
-
const providedCallback =
|
|
329
|
+
const providedCallback = args.options?.onResponse;
|
|
467
330
|
const callback = (rawResponse, flatResponse) => {
|
|
468
331
|
currentRawResponse = rawResponse;
|
|
469
|
-
providedCallback
|
|
332
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
333
|
+
};
|
|
334
|
+
const updatedArgs = {
|
|
335
|
+
...args,
|
|
336
|
+
options: {
|
|
337
|
+
...args.options,
|
|
338
|
+
onResponse: callback,
|
|
339
|
+
},
|
|
470
340
|
};
|
|
471
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
472
341
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
473
342
|
return {
|
|
474
343
|
flatResponse,
|
|
@@ -491,8 +360,8 @@ export class SqlResourcesImpl {
|
|
|
491
360
|
spec: createUpdateSqlDatabaseOperationSpec,
|
|
492
361
|
});
|
|
493
362
|
const poller = await createHttpPoller(lro, {
|
|
494
|
-
restoreFrom: options
|
|
495
|
-
intervalInMs: options
|
|
363
|
+
restoreFrom: options?.resumeFrom,
|
|
364
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
496
365
|
});
|
|
497
366
|
await poller.poll();
|
|
498
367
|
return poller;
|
|
@@ -521,14 +390,19 @@ export class SqlResourcesImpl {
|
|
|
521
390
|
return this.client.sendOperationRequest(args, spec);
|
|
522
391
|
};
|
|
523
392
|
const sendOperationFn = async (args, spec) => {
|
|
524
|
-
var _a;
|
|
525
393
|
let currentRawResponse = undefined;
|
|
526
|
-
const providedCallback =
|
|
394
|
+
const providedCallback = args.options?.onResponse;
|
|
527
395
|
const callback = (rawResponse, flatResponse) => {
|
|
528
396
|
currentRawResponse = rawResponse;
|
|
529
|
-
providedCallback
|
|
397
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
398
|
+
};
|
|
399
|
+
const updatedArgs = {
|
|
400
|
+
...args,
|
|
401
|
+
options: {
|
|
402
|
+
...args.options,
|
|
403
|
+
onResponse: callback,
|
|
404
|
+
},
|
|
530
405
|
};
|
|
531
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
532
406
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
533
407
|
return {
|
|
534
408
|
flatResponse,
|
|
@@ -545,8 +419,8 @@ export class SqlResourcesImpl {
|
|
|
545
419
|
spec: deleteSqlDatabaseOperationSpec,
|
|
546
420
|
});
|
|
547
421
|
const poller = await createHttpPoller(lro, {
|
|
548
|
-
restoreFrom: options
|
|
549
|
-
intervalInMs: options
|
|
422
|
+
restoreFrom: options?.resumeFrom,
|
|
423
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
550
424
|
});
|
|
551
425
|
await poller.poll();
|
|
552
426
|
return poller;
|
|
@@ -587,14 +461,19 @@ export class SqlResourcesImpl {
|
|
|
587
461
|
return this.client.sendOperationRequest(args, spec);
|
|
588
462
|
};
|
|
589
463
|
const sendOperationFn = async (args, spec) => {
|
|
590
|
-
var _a;
|
|
591
464
|
let currentRawResponse = undefined;
|
|
592
|
-
const providedCallback =
|
|
465
|
+
const providedCallback = args.options?.onResponse;
|
|
593
466
|
const callback = (rawResponse, flatResponse) => {
|
|
594
467
|
currentRawResponse = rawResponse;
|
|
595
|
-
providedCallback
|
|
468
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
469
|
+
};
|
|
470
|
+
const updatedArgs = {
|
|
471
|
+
...args,
|
|
472
|
+
options: {
|
|
473
|
+
...args.options,
|
|
474
|
+
onResponse: callback,
|
|
475
|
+
},
|
|
596
476
|
};
|
|
597
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
598
477
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
599
478
|
return {
|
|
600
479
|
flatResponse,
|
|
@@ -617,8 +496,8 @@ export class SqlResourcesImpl {
|
|
|
617
496
|
spec: updateSqlDatabaseThroughputOperationSpec,
|
|
618
497
|
});
|
|
619
498
|
const poller = await createHttpPoller(lro, {
|
|
620
|
-
restoreFrom: options
|
|
621
|
-
intervalInMs: options
|
|
499
|
+
restoreFrom: options?.resumeFrom,
|
|
500
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
622
501
|
});
|
|
623
502
|
await poller.poll();
|
|
624
503
|
return poller;
|
|
@@ -648,14 +527,19 @@ export class SqlResourcesImpl {
|
|
|
648
527
|
return this.client.sendOperationRequest(args, spec);
|
|
649
528
|
};
|
|
650
529
|
const sendOperationFn = async (args, spec) => {
|
|
651
|
-
var _a;
|
|
652
530
|
let currentRawResponse = undefined;
|
|
653
|
-
const providedCallback =
|
|
531
|
+
const providedCallback = args.options?.onResponse;
|
|
654
532
|
const callback = (rawResponse, flatResponse) => {
|
|
655
533
|
currentRawResponse = rawResponse;
|
|
656
|
-
providedCallback
|
|
534
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
535
|
+
};
|
|
536
|
+
const updatedArgs = {
|
|
537
|
+
...args,
|
|
538
|
+
options: {
|
|
539
|
+
...args.options,
|
|
540
|
+
onResponse: callback,
|
|
541
|
+
},
|
|
657
542
|
};
|
|
658
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
659
543
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
660
544
|
return {
|
|
661
545
|
flatResponse,
|
|
@@ -672,8 +556,8 @@ export class SqlResourcesImpl {
|
|
|
672
556
|
spec: migrateSqlDatabaseToAutoscaleOperationSpec,
|
|
673
557
|
});
|
|
674
558
|
const poller = await createHttpPoller(lro, {
|
|
675
|
-
restoreFrom: options
|
|
676
|
-
intervalInMs: options
|
|
559
|
+
restoreFrom: options?.resumeFrom,
|
|
560
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
677
561
|
});
|
|
678
562
|
await poller.poll();
|
|
679
563
|
return poller;
|
|
@@ -701,14 +585,19 @@ export class SqlResourcesImpl {
|
|
|
701
585
|
return this.client.sendOperationRequest(args, spec);
|
|
702
586
|
};
|
|
703
587
|
const sendOperationFn = async (args, spec) => {
|
|
704
|
-
var _a;
|
|
705
588
|
let currentRawResponse = undefined;
|
|
706
|
-
const providedCallback =
|
|
589
|
+
const providedCallback = args.options?.onResponse;
|
|
707
590
|
const callback = (rawResponse, flatResponse) => {
|
|
708
591
|
currentRawResponse = rawResponse;
|
|
709
|
-
providedCallback
|
|
592
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
593
|
+
};
|
|
594
|
+
const updatedArgs = {
|
|
595
|
+
...args,
|
|
596
|
+
options: {
|
|
597
|
+
...args.options,
|
|
598
|
+
onResponse: callback,
|
|
599
|
+
},
|
|
710
600
|
};
|
|
711
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
712
601
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
713
602
|
return {
|
|
714
603
|
flatResponse,
|
|
@@ -725,8 +614,8 @@ export class SqlResourcesImpl {
|
|
|
725
614
|
spec: migrateSqlDatabaseToManualThroughputOperationSpec,
|
|
726
615
|
});
|
|
727
616
|
const poller = await createHttpPoller(lro, {
|
|
728
|
-
restoreFrom: options
|
|
729
|
-
intervalInMs: options
|
|
617
|
+
restoreFrom: options?.resumeFrom,
|
|
618
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
730
619
|
});
|
|
731
620
|
await poller.poll();
|
|
732
621
|
return poller;
|
|
@@ -777,14 +666,19 @@ export class SqlResourcesImpl {
|
|
|
777
666
|
return this.client.sendOperationRequest(args, spec);
|
|
778
667
|
};
|
|
779
668
|
const sendOperationFn = async (args, spec) => {
|
|
780
|
-
var _a;
|
|
781
669
|
let currentRawResponse = undefined;
|
|
782
|
-
const providedCallback =
|
|
670
|
+
const providedCallback = args.options?.onResponse;
|
|
783
671
|
const callback = (rawResponse, flatResponse) => {
|
|
784
672
|
currentRawResponse = rawResponse;
|
|
785
|
-
providedCallback
|
|
673
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
674
|
+
};
|
|
675
|
+
const updatedArgs = {
|
|
676
|
+
...args,
|
|
677
|
+
options: {
|
|
678
|
+
...args.options,
|
|
679
|
+
onResponse: callback,
|
|
680
|
+
},
|
|
786
681
|
};
|
|
787
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
788
682
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
789
683
|
return {
|
|
790
684
|
flatResponse,
|
|
@@ -808,8 +702,8 @@ export class SqlResourcesImpl {
|
|
|
808
702
|
spec: createUpdateSqlContainerOperationSpec,
|
|
809
703
|
});
|
|
810
704
|
const poller = await createHttpPoller(lro, {
|
|
811
|
-
restoreFrom: options
|
|
812
|
-
intervalInMs: options
|
|
705
|
+
restoreFrom: options?.resumeFrom,
|
|
706
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
813
707
|
});
|
|
814
708
|
await poller.poll();
|
|
815
709
|
return poller;
|
|
@@ -840,14 +734,19 @@ export class SqlResourcesImpl {
|
|
|
840
734
|
return this.client.sendOperationRequest(args, spec);
|
|
841
735
|
};
|
|
842
736
|
const sendOperationFn = async (args, spec) => {
|
|
843
|
-
var _a;
|
|
844
737
|
let currentRawResponse = undefined;
|
|
845
|
-
const providedCallback =
|
|
738
|
+
const providedCallback = args.options?.onResponse;
|
|
846
739
|
const callback = (rawResponse, flatResponse) => {
|
|
847
740
|
currentRawResponse = rawResponse;
|
|
848
|
-
providedCallback
|
|
741
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
742
|
+
};
|
|
743
|
+
const updatedArgs = {
|
|
744
|
+
...args,
|
|
745
|
+
options: {
|
|
746
|
+
...args.options,
|
|
747
|
+
onResponse: callback,
|
|
748
|
+
},
|
|
849
749
|
};
|
|
850
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
851
750
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
852
751
|
return {
|
|
853
752
|
flatResponse,
|
|
@@ -870,8 +769,8 @@ export class SqlResourcesImpl {
|
|
|
870
769
|
spec: deleteSqlContainerOperationSpec,
|
|
871
770
|
});
|
|
872
771
|
const poller = await createHttpPoller(lro, {
|
|
873
|
-
restoreFrom: options
|
|
874
|
-
intervalInMs: options
|
|
772
|
+
restoreFrom: options?.resumeFrom,
|
|
773
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
875
774
|
});
|
|
876
775
|
await poller.poll();
|
|
877
776
|
return poller;
|
|
@@ -914,14 +813,19 @@ export class SqlResourcesImpl {
|
|
|
914
813
|
return this.client.sendOperationRequest(args, spec);
|
|
915
814
|
};
|
|
916
815
|
const sendOperationFn = async (args, spec) => {
|
|
917
|
-
var _a;
|
|
918
816
|
let currentRawResponse = undefined;
|
|
919
|
-
const providedCallback =
|
|
817
|
+
const providedCallback = args.options?.onResponse;
|
|
920
818
|
const callback = (rawResponse, flatResponse) => {
|
|
921
819
|
currentRawResponse = rawResponse;
|
|
922
|
-
providedCallback
|
|
820
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
821
|
+
};
|
|
822
|
+
const updatedArgs = {
|
|
823
|
+
...args,
|
|
824
|
+
options: {
|
|
825
|
+
...args.options,
|
|
826
|
+
onResponse: callback,
|
|
827
|
+
},
|
|
923
828
|
};
|
|
924
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
925
829
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
926
830
|
return {
|
|
927
831
|
flatResponse,
|
|
@@ -945,8 +849,8 @@ export class SqlResourcesImpl {
|
|
|
945
849
|
spec: updateSqlContainerThroughputOperationSpec,
|
|
946
850
|
});
|
|
947
851
|
const poller = await createHttpPoller(lro, {
|
|
948
|
-
restoreFrom: options
|
|
949
|
-
intervalInMs: options
|
|
852
|
+
restoreFrom: options?.resumeFrom,
|
|
853
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
950
854
|
});
|
|
951
855
|
await poller.poll();
|
|
952
856
|
return poller;
|
|
@@ -978,14 +882,19 @@ export class SqlResourcesImpl {
|
|
|
978
882
|
return this.client.sendOperationRequest(args, spec);
|
|
979
883
|
};
|
|
980
884
|
const sendOperationFn = async (args, spec) => {
|
|
981
|
-
var _a;
|
|
982
885
|
let currentRawResponse = undefined;
|
|
983
|
-
const providedCallback =
|
|
886
|
+
const providedCallback = args.options?.onResponse;
|
|
984
887
|
const callback = (rawResponse, flatResponse) => {
|
|
985
888
|
currentRawResponse = rawResponse;
|
|
986
|
-
providedCallback
|
|
889
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
890
|
+
};
|
|
891
|
+
const updatedArgs = {
|
|
892
|
+
...args,
|
|
893
|
+
options: {
|
|
894
|
+
...args.options,
|
|
895
|
+
onResponse: callback,
|
|
896
|
+
},
|
|
987
897
|
};
|
|
988
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
989
898
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
990
899
|
return {
|
|
991
900
|
flatResponse,
|
|
@@ -1008,8 +917,8 @@ export class SqlResourcesImpl {
|
|
|
1008
917
|
spec: migrateSqlContainerToAutoscaleOperationSpec,
|
|
1009
918
|
});
|
|
1010
919
|
const poller = await createHttpPoller(lro, {
|
|
1011
|
-
restoreFrom: options
|
|
1012
|
-
intervalInMs: options
|
|
920
|
+
restoreFrom: options?.resumeFrom,
|
|
921
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1013
922
|
});
|
|
1014
923
|
await poller.poll();
|
|
1015
924
|
return poller;
|
|
@@ -1039,14 +948,19 @@ export class SqlResourcesImpl {
|
|
|
1039
948
|
return this.client.sendOperationRequest(args, spec);
|
|
1040
949
|
};
|
|
1041
950
|
const sendOperationFn = async (args, spec) => {
|
|
1042
|
-
var _a;
|
|
1043
951
|
let currentRawResponse = undefined;
|
|
1044
|
-
const providedCallback =
|
|
952
|
+
const providedCallback = args.options?.onResponse;
|
|
1045
953
|
const callback = (rawResponse, flatResponse) => {
|
|
1046
954
|
currentRawResponse = rawResponse;
|
|
1047
|
-
providedCallback
|
|
955
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
956
|
+
};
|
|
957
|
+
const updatedArgs = {
|
|
958
|
+
...args,
|
|
959
|
+
options: {
|
|
960
|
+
...args.options,
|
|
961
|
+
onResponse: callback,
|
|
962
|
+
},
|
|
1048
963
|
};
|
|
1049
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1050
964
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1051
965
|
return {
|
|
1052
966
|
flatResponse,
|
|
@@ -1069,8 +983,8 @@ export class SqlResourcesImpl {
|
|
|
1069
983
|
spec: migrateSqlContainerToManualThroughputOperationSpec,
|
|
1070
984
|
});
|
|
1071
985
|
const poller = await createHttpPoller(lro, {
|
|
1072
|
-
restoreFrom: options
|
|
1073
|
-
intervalInMs: options
|
|
986
|
+
restoreFrom: options?.resumeFrom,
|
|
987
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1074
988
|
});
|
|
1075
989
|
await poller.poll();
|
|
1076
990
|
return poller;
|
|
@@ -1130,14 +1044,19 @@ export class SqlResourcesImpl {
|
|
|
1130
1044
|
return this.client.sendOperationRequest(args, spec);
|
|
1131
1045
|
};
|
|
1132
1046
|
const sendOperationFn = async (args, spec) => {
|
|
1133
|
-
var _a;
|
|
1134
1047
|
let currentRawResponse = undefined;
|
|
1135
|
-
const providedCallback =
|
|
1048
|
+
const providedCallback = args.options?.onResponse;
|
|
1136
1049
|
const callback = (rawResponse, flatResponse) => {
|
|
1137
1050
|
currentRawResponse = rawResponse;
|
|
1138
|
-
providedCallback
|
|
1051
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1052
|
+
};
|
|
1053
|
+
const updatedArgs = {
|
|
1054
|
+
...args,
|
|
1055
|
+
options: {
|
|
1056
|
+
...args.options,
|
|
1057
|
+
onResponse: callback,
|
|
1058
|
+
},
|
|
1139
1059
|
};
|
|
1140
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1141
1060
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1142
1061
|
return {
|
|
1143
1062
|
flatResponse,
|
|
@@ -1161,8 +1080,8 @@ export class SqlResourcesImpl {
|
|
|
1161
1080
|
spec: createUpdateClientEncryptionKeyOperationSpec,
|
|
1162
1081
|
});
|
|
1163
1082
|
const poller = await createHttpPoller(lro, {
|
|
1164
|
-
restoreFrom: options
|
|
1165
|
-
intervalInMs: options
|
|
1083
|
+
restoreFrom: options?.resumeFrom,
|
|
1084
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1166
1085
|
});
|
|
1167
1086
|
await poller.poll();
|
|
1168
1087
|
return poller;
|
|
@@ -1228,14 +1147,19 @@ export class SqlResourcesImpl {
|
|
|
1228
1147
|
return this.client.sendOperationRequest(args, spec);
|
|
1229
1148
|
};
|
|
1230
1149
|
const sendOperationFn = async (args, spec) => {
|
|
1231
|
-
var _a;
|
|
1232
1150
|
let currentRawResponse = undefined;
|
|
1233
|
-
const providedCallback =
|
|
1151
|
+
const providedCallback = args.options?.onResponse;
|
|
1234
1152
|
const callback = (rawResponse, flatResponse) => {
|
|
1235
1153
|
currentRawResponse = rawResponse;
|
|
1236
|
-
providedCallback
|
|
1154
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1155
|
+
};
|
|
1156
|
+
const updatedArgs = {
|
|
1157
|
+
...args,
|
|
1158
|
+
options: {
|
|
1159
|
+
...args.options,
|
|
1160
|
+
onResponse: callback,
|
|
1161
|
+
},
|
|
1237
1162
|
};
|
|
1238
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1239
1163
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1240
1164
|
return {
|
|
1241
1165
|
flatResponse,
|
|
@@ -1260,8 +1184,8 @@ export class SqlResourcesImpl {
|
|
|
1260
1184
|
spec: createUpdateSqlStoredProcedureOperationSpec,
|
|
1261
1185
|
});
|
|
1262
1186
|
const poller = await createHttpPoller(lro, {
|
|
1263
|
-
restoreFrom: options
|
|
1264
|
-
intervalInMs: options
|
|
1187
|
+
restoreFrom: options?.resumeFrom,
|
|
1188
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1265
1189
|
});
|
|
1266
1190
|
await poller.poll();
|
|
1267
1191
|
return poller;
|
|
@@ -1295,14 +1219,19 @@ export class SqlResourcesImpl {
|
|
|
1295
1219
|
return this.client.sendOperationRequest(args, spec);
|
|
1296
1220
|
};
|
|
1297
1221
|
const sendOperationFn = async (args, spec) => {
|
|
1298
|
-
var _a;
|
|
1299
1222
|
let currentRawResponse = undefined;
|
|
1300
|
-
const providedCallback =
|
|
1223
|
+
const providedCallback = args.options?.onResponse;
|
|
1301
1224
|
const callback = (rawResponse, flatResponse) => {
|
|
1302
1225
|
currentRawResponse = rawResponse;
|
|
1303
|
-
providedCallback
|
|
1226
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1227
|
+
};
|
|
1228
|
+
const updatedArgs = {
|
|
1229
|
+
...args,
|
|
1230
|
+
options: {
|
|
1231
|
+
...args.options,
|
|
1232
|
+
onResponse: callback,
|
|
1233
|
+
},
|
|
1304
1234
|
};
|
|
1305
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1306
1235
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1307
1236
|
return {
|
|
1308
1237
|
flatResponse,
|
|
@@ -1326,8 +1255,8 @@ export class SqlResourcesImpl {
|
|
|
1326
1255
|
spec: deleteSqlStoredProcedureOperationSpec,
|
|
1327
1256
|
});
|
|
1328
1257
|
const poller = await createHttpPoller(lro, {
|
|
1329
|
-
restoreFrom: options
|
|
1330
|
-
intervalInMs: options
|
|
1258
|
+
restoreFrom: options?.resumeFrom,
|
|
1259
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1331
1260
|
});
|
|
1332
1261
|
await poller.poll();
|
|
1333
1262
|
return poller;
|
|
@@ -1391,14 +1320,19 @@ export class SqlResourcesImpl {
|
|
|
1391
1320
|
return this.client.sendOperationRequest(args, spec);
|
|
1392
1321
|
};
|
|
1393
1322
|
const sendOperationFn = async (args, spec) => {
|
|
1394
|
-
var _a;
|
|
1395
1323
|
let currentRawResponse = undefined;
|
|
1396
|
-
const providedCallback =
|
|
1324
|
+
const providedCallback = args.options?.onResponse;
|
|
1397
1325
|
const callback = (rawResponse, flatResponse) => {
|
|
1398
1326
|
currentRawResponse = rawResponse;
|
|
1399
|
-
providedCallback
|
|
1327
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1328
|
+
};
|
|
1329
|
+
const updatedArgs = {
|
|
1330
|
+
...args,
|
|
1331
|
+
options: {
|
|
1332
|
+
...args.options,
|
|
1333
|
+
onResponse: callback,
|
|
1334
|
+
},
|
|
1400
1335
|
};
|
|
1401
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1402
1336
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1403
1337
|
return {
|
|
1404
1338
|
flatResponse,
|
|
@@ -1423,8 +1357,8 @@ export class SqlResourcesImpl {
|
|
|
1423
1357
|
spec: createUpdateSqlUserDefinedFunctionOperationSpec,
|
|
1424
1358
|
});
|
|
1425
1359
|
const poller = await createHttpPoller(lro, {
|
|
1426
|
-
restoreFrom: options
|
|
1427
|
-
intervalInMs: options
|
|
1360
|
+
restoreFrom: options?.resumeFrom,
|
|
1361
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1428
1362
|
});
|
|
1429
1363
|
await poller.poll();
|
|
1430
1364
|
return poller;
|
|
@@ -1458,14 +1392,19 @@ export class SqlResourcesImpl {
|
|
|
1458
1392
|
return this.client.sendOperationRequest(args, spec);
|
|
1459
1393
|
};
|
|
1460
1394
|
const sendOperationFn = async (args, spec) => {
|
|
1461
|
-
var _a;
|
|
1462
1395
|
let currentRawResponse = undefined;
|
|
1463
|
-
const providedCallback =
|
|
1396
|
+
const providedCallback = args.options?.onResponse;
|
|
1464
1397
|
const callback = (rawResponse, flatResponse) => {
|
|
1465
1398
|
currentRawResponse = rawResponse;
|
|
1466
|
-
providedCallback
|
|
1399
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1400
|
+
};
|
|
1401
|
+
const updatedArgs = {
|
|
1402
|
+
...args,
|
|
1403
|
+
options: {
|
|
1404
|
+
...args.options,
|
|
1405
|
+
onResponse: callback,
|
|
1406
|
+
},
|
|
1467
1407
|
};
|
|
1468
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1469
1408
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1470
1409
|
return {
|
|
1471
1410
|
flatResponse,
|
|
@@ -1489,8 +1428,8 @@ export class SqlResourcesImpl {
|
|
|
1489
1428
|
spec: deleteSqlUserDefinedFunctionOperationSpec,
|
|
1490
1429
|
});
|
|
1491
1430
|
const poller = await createHttpPoller(lro, {
|
|
1492
|
-
restoreFrom: options
|
|
1493
|
-
intervalInMs: options
|
|
1431
|
+
restoreFrom: options?.resumeFrom,
|
|
1432
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1494
1433
|
});
|
|
1495
1434
|
await poller.poll();
|
|
1496
1435
|
return poller;
|
|
@@ -1553,14 +1492,19 @@ export class SqlResourcesImpl {
|
|
|
1553
1492
|
return this.client.sendOperationRequest(args, spec);
|
|
1554
1493
|
};
|
|
1555
1494
|
const sendOperationFn = async (args, spec) => {
|
|
1556
|
-
var _a;
|
|
1557
1495
|
let currentRawResponse = undefined;
|
|
1558
|
-
const providedCallback =
|
|
1496
|
+
const providedCallback = args.options?.onResponse;
|
|
1559
1497
|
const callback = (rawResponse, flatResponse) => {
|
|
1560
1498
|
currentRawResponse = rawResponse;
|
|
1561
|
-
providedCallback
|
|
1499
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1500
|
+
};
|
|
1501
|
+
const updatedArgs = {
|
|
1502
|
+
...args,
|
|
1503
|
+
options: {
|
|
1504
|
+
...args.options,
|
|
1505
|
+
onResponse: callback,
|
|
1506
|
+
},
|
|
1562
1507
|
};
|
|
1563
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1564
1508
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1565
1509
|
return {
|
|
1566
1510
|
flatResponse,
|
|
@@ -1585,8 +1529,8 @@ export class SqlResourcesImpl {
|
|
|
1585
1529
|
spec: createUpdateSqlTriggerOperationSpec,
|
|
1586
1530
|
});
|
|
1587
1531
|
const poller = await createHttpPoller(lro, {
|
|
1588
|
-
restoreFrom: options
|
|
1589
|
-
intervalInMs: options
|
|
1532
|
+
restoreFrom: options?.resumeFrom,
|
|
1533
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1590
1534
|
});
|
|
1591
1535
|
await poller.poll();
|
|
1592
1536
|
return poller;
|
|
@@ -1619,14 +1563,19 @@ export class SqlResourcesImpl {
|
|
|
1619
1563
|
return this.client.sendOperationRequest(args, spec);
|
|
1620
1564
|
};
|
|
1621
1565
|
const sendOperationFn = async (args, spec) => {
|
|
1622
|
-
var _a;
|
|
1623
1566
|
let currentRawResponse = undefined;
|
|
1624
|
-
const providedCallback =
|
|
1567
|
+
const providedCallback = args.options?.onResponse;
|
|
1625
1568
|
const callback = (rawResponse, flatResponse) => {
|
|
1626
1569
|
currentRawResponse = rawResponse;
|
|
1627
|
-
providedCallback
|
|
1570
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1571
|
+
};
|
|
1572
|
+
const updatedArgs = {
|
|
1573
|
+
...args,
|
|
1574
|
+
options: {
|
|
1575
|
+
...args.options,
|
|
1576
|
+
onResponse: callback,
|
|
1577
|
+
},
|
|
1628
1578
|
};
|
|
1629
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1630
1579
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1631
1580
|
return {
|
|
1632
1581
|
flatResponse,
|
|
@@ -1650,8 +1599,8 @@ export class SqlResourcesImpl {
|
|
|
1650
1599
|
spec: deleteSqlTriggerOperationSpec,
|
|
1651
1600
|
});
|
|
1652
1601
|
const poller = await createHttpPoller(lro, {
|
|
1653
|
-
restoreFrom: options
|
|
1654
|
-
intervalInMs: options
|
|
1602
|
+
restoreFrom: options?.resumeFrom,
|
|
1603
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1655
1604
|
});
|
|
1656
1605
|
await poller.poll();
|
|
1657
1606
|
return poller;
|
|
@@ -1693,14 +1642,19 @@ export class SqlResourcesImpl {
|
|
|
1693
1642
|
return this.client.sendOperationRequest(args, spec);
|
|
1694
1643
|
};
|
|
1695
1644
|
const sendOperationFn = async (args, spec) => {
|
|
1696
|
-
var _a;
|
|
1697
1645
|
let currentRawResponse = undefined;
|
|
1698
|
-
const providedCallback =
|
|
1646
|
+
const providedCallback = args.options?.onResponse;
|
|
1699
1647
|
const callback = (rawResponse, flatResponse) => {
|
|
1700
1648
|
currentRawResponse = rawResponse;
|
|
1701
|
-
providedCallback
|
|
1649
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1650
|
+
};
|
|
1651
|
+
const updatedArgs = {
|
|
1652
|
+
...args,
|
|
1653
|
+
options: {
|
|
1654
|
+
...args.options,
|
|
1655
|
+
onResponse: callback,
|
|
1656
|
+
},
|
|
1702
1657
|
};
|
|
1703
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1704
1658
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1705
1659
|
return {
|
|
1706
1660
|
flatResponse,
|
|
@@ -1723,8 +1677,8 @@ export class SqlResourcesImpl {
|
|
|
1723
1677
|
spec: createUpdateSqlRoleDefinitionOperationSpec,
|
|
1724
1678
|
});
|
|
1725
1679
|
const poller = await createHttpPoller(lro, {
|
|
1726
|
-
restoreFrom: options
|
|
1727
|
-
intervalInMs: options
|
|
1680
|
+
restoreFrom: options?.resumeFrom,
|
|
1681
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1728
1682
|
});
|
|
1729
1683
|
await poller.poll();
|
|
1730
1684
|
return poller;
|
|
@@ -1754,14 +1708,19 @@ export class SqlResourcesImpl {
|
|
|
1754
1708
|
return this.client.sendOperationRequest(args, spec);
|
|
1755
1709
|
};
|
|
1756
1710
|
const sendOperationFn = async (args, spec) => {
|
|
1757
|
-
var _a;
|
|
1758
1711
|
let currentRawResponse = undefined;
|
|
1759
|
-
const providedCallback =
|
|
1712
|
+
const providedCallback = args.options?.onResponse;
|
|
1760
1713
|
const callback = (rawResponse, flatResponse) => {
|
|
1761
1714
|
currentRawResponse = rawResponse;
|
|
1762
|
-
providedCallback
|
|
1715
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1716
|
+
};
|
|
1717
|
+
const updatedArgs = {
|
|
1718
|
+
...args,
|
|
1719
|
+
options: {
|
|
1720
|
+
...args.options,
|
|
1721
|
+
onResponse: callback,
|
|
1722
|
+
},
|
|
1763
1723
|
};
|
|
1764
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1765
1724
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1766
1725
|
return {
|
|
1767
1726
|
flatResponse,
|
|
@@ -1778,8 +1737,8 @@ export class SqlResourcesImpl {
|
|
|
1778
1737
|
spec: deleteSqlRoleDefinitionOperationSpec,
|
|
1779
1738
|
});
|
|
1780
1739
|
const poller = await createHttpPoller(lro, {
|
|
1781
|
-
restoreFrom: options
|
|
1782
|
-
intervalInMs: options
|
|
1740
|
+
restoreFrom: options?.resumeFrom,
|
|
1741
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1783
1742
|
});
|
|
1784
1743
|
await poller.poll();
|
|
1785
1744
|
return poller;
|
|
@@ -1828,14 +1787,19 @@ export class SqlResourcesImpl {
|
|
|
1828
1787
|
return this.client.sendOperationRequest(args, spec);
|
|
1829
1788
|
};
|
|
1830
1789
|
const sendOperationFn = async (args, spec) => {
|
|
1831
|
-
var _a;
|
|
1832
1790
|
let currentRawResponse = undefined;
|
|
1833
|
-
const providedCallback =
|
|
1791
|
+
const providedCallback = args.options?.onResponse;
|
|
1834
1792
|
const callback = (rawResponse, flatResponse) => {
|
|
1835
1793
|
currentRawResponse = rawResponse;
|
|
1836
|
-
providedCallback
|
|
1794
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1795
|
+
};
|
|
1796
|
+
const updatedArgs = {
|
|
1797
|
+
...args,
|
|
1798
|
+
options: {
|
|
1799
|
+
...args.options,
|
|
1800
|
+
onResponse: callback,
|
|
1801
|
+
},
|
|
1837
1802
|
};
|
|
1838
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1839
1803
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1840
1804
|
return {
|
|
1841
1805
|
flatResponse,
|
|
@@ -1858,8 +1822,8 @@ export class SqlResourcesImpl {
|
|
|
1858
1822
|
spec: createUpdateSqlRoleAssignmentOperationSpec,
|
|
1859
1823
|
});
|
|
1860
1824
|
const poller = await createHttpPoller(lro, {
|
|
1861
|
-
restoreFrom: options
|
|
1862
|
-
intervalInMs: options
|
|
1825
|
+
restoreFrom: options?.resumeFrom,
|
|
1826
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1863
1827
|
});
|
|
1864
1828
|
await poller.poll();
|
|
1865
1829
|
return poller;
|
|
@@ -1889,14 +1853,19 @@ export class SqlResourcesImpl {
|
|
|
1889
1853
|
return this.client.sendOperationRequest(args, spec);
|
|
1890
1854
|
};
|
|
1891
1855
|
const sendOperationFn = async (args, spec) => {
|
|
1892
|
-
var _a;
|
|
1893
1856
|
let currentRawResponse = undefined;
|
|
1894
|
-
const providedCallback =
|
|
1857
|
+
const providedCallback = args.options?.onResponse;
|
|
1895
1858
|
const callback = (rawResponse, flatResponse) => {
|
|
1896
1859
|
currentRawResponse = rawResponse;
|
|
1897
|
-
providedCallback
|
|
1860
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1861
|
+
};
|
|
1862
|
+
const updatedArgs = {
|
|
1863
|
+
...args,
|
|
1864
|
+
options: {
|
|
1865
|
+
...args.options,
|
|
1866
|
+
onResponse: callback,
|
|
1867
|
+
},
|
|
1898
1868
|
};
|
|
1899
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1900
1869
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1901
1870
|
return {
|
|
1902
1871
|
flatResponse,
|
|
@@ -1913,8 +1882,8 @@ export class SqlResourcesImpl {
|
|
|
1913
1882
|
spec: deleteSqlRoleAssignmentOperationSpec,
|
|
1914
1883
|
});
|
|
1915
1884
|
const poller = await createHttpPoller(lro, {
|
|
1916
|
-
restoreFrom: options
|
|
1917
|
-
intervalInMs: options
|
|
1885
|
+
restoreFrom: options?.resumeFrom,
|
|
1886
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1918
1887
|
});
|
|
1919
1888
|
await poller.poll();
|
|
1920
1889
|
return poller;
|
|
@@ -1953,14 +1922,19 @@ export class SqlResourcesImpl {
|
|
|
1953
1922
|
return this.client.sendOperationRequest(args, spec);
|
|
1954
1923
|
};
|
|
1955
1924
|
const sendOperationFn = async (args, spec) => {
|
|
1956
|
-
var _a;
|
|
1957
1925
|
let currentRawResponse = undefined;
|
|
1958
|
-
const providedCallback =
|
|
1926
|
+
const providedCallback = args.options?.onResponse;
|
|
1959
1927
|
const callback = (rawResponse, flatResponse) => {
|
|
1960
1928
|
currentRawResponse = rawResponse;
|
|
1961
|
-
providedCallback
|
|
1929
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1930
|
+
};
|
|
1931
|
+
const updatedArgs = {
|
|
1932
|
+
...args,
|
|
1933
|
+
options: {
|
|
1934
|
+
...args.options,
|
|
1935
|
+
onResponse: callback,
|
|
1936
|
+
},
|
|
1962
1937
|
};
|
|
1963
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1964
1938
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1965
1939
|
return {
|
|
1966
1940
|
flatResponse,
|
|
@@ -1984,8 +1958,8 @@ export class SqlResourcesImpl {
|
|
|
1984
1958
|
spec: retrieveContinuousBackupInformationOperationSpec,
|
|
1985
1959
|
});
|
|
1986
1960
|
const poller = await createHttpPoller(lro, {
|
|
1987
|
-
restoreFrom: options
|
|
1988
|
-
intervalInMs: options
|
|
1961
|
+
restoreFrom: options?.resumeFrom,
|
|
1962
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1989
1963
|
resourceLocationConfig: "location",
|
|
1990
1964
|
});
|
|
1991
1965
|
await poller.poll();
|