@azure/arm-cosmosdb 16.3.0-alpha.20250718.1 → 16.3.0-alpha.20250721.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/cosmosDBManagementClient.js +50 -5
- package/dist/browser/cosmosDBManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +661 -279
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/cassandraClusters.js +85 -89
- package/dist/browser/operations/cassandraClusters.js.map +1 -1
- package/dist/browser/operations/cassandraDataCenters.js +43 -45
- package/dist/browser/operations/cassandraDataCenters.js.map +1 -1
- package/dist/browser/operations/cassandraResources.js +129 -113
- package/dist/browser/operations/cassandraResources.js.map +1 -1
- package/dist/browser/operations/collection.js +28 -79
- package/dist/browser/operations/collection.js.map +1 -1
- package/dist/browser/operations/collectionPartition.js +19 -53
- package/dist/browser/operations/collectionPartition.js.map +1 -1
- package/dist/browser/operations/collectionPartitionRegion.js +10 -27
- package/dist/browser/operations/collectionPartitionRegion.js.map +1 -1
- package/dist/browser/operations/collectionRegion.js +10 -27
- package/dist/browser/operations/collectionRegion.js.map +1 -1
- package/dist/browser/operations/database.js +28 -79
- package/dist/browser/operations/database.js.map +1 -1
- package/dist/browser/operations/databaseAccountRegion.js +10 -27
- package/dist/browser/operations/databaseAccountRegion.js.map +1 -1
- package/dist/browser/operations/databaseAccounts.js +123 -173
- package/dist/browser/operations/databaseAccounts.js.map +1 -1
- package/dist/browser/operations/gremlinResources.js +140 -119
- package/dist/browser/operations/gremlinResources.js.map +1 -1
- package/dist/browser/operations/locations.js +10 -27
- package/dist/browser/operations/locations.js.map +1 -1
- package/dist/browser/operations/mongoDBResources.js +202 -195
- package/dist/browser/operations/mongoDBResources.js.map +1 -1
- package/dist/browser/operations/notebookWorkspaces.js +54 -51
- package/dist/browser/operations/notebookWorkspaces.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/partitionKeyRangeId.js +10 -27
- package/dist/browser/operations/partitionKeyRangeId.js.map +1 -1
- package/dist/browser/operations/partitionKeyRangeIdRegion.js +10 -27
- package/dist/browser/operations/partitionKeyRangeIdRegion.js.map +1 -1
- package/dist/browser/operations/percentile.js +10 -27
- package/dist/browser/operations/percentile.js.map +1 -1
- package/dist/browser/operations/percentileSourceTarget.js +10 -27
- package/dist/browser/operations/percentileSourceTarget.js.map +1 -1
- package/dist/browser/operations/percentileTarget.js +10 -27
- package/dist/browser/operations/percentileTarget.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.js +32 -39
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.js +10 -27
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/restorableDatabaseAccounts.js +19 -53
- package/dist/browser/operations/restorableDatabaseAccounts.js.map +1 -1
- package/dist/browser/operations/restorableGremlinDatabases.js +10 -27
- package/dist/browser/operations/restorableGremlinDatabases.js.map +1 -1
- package/dist/browser/operations/restorableGremlinGraphs.js +10 -27
- package/dist/browser/operations/restorableGremlinGraphs.js.map +1 -1
- package/dist/browser/operations/restorableGremlinResources.js +10 -27
- package/dist/browser/operations/restorableGremlinResources.js.map +1 -1
- package/dist/browser/operations/restorableMongodbCollections.js +10 -27
- package/dist/browser/operations/restorableMongodbCollections.js.map +1 -1
- package/dist/browser/operations/restorableMongodbDatabases.js +10 -27
- package/dist/browser/operations/restorableMongodbDatabases.js.map +1 -1
- package/dist/browser/operations/restorableMongodbResources.js +10 -27
- package/dist/browser/operations/restorableMongodbResources.js.map +1 -1
- package/dist/browser/operations/restorableSqlContainers.js +10 -27
- package/dist/browser/operations/restorableSqlContainers.js.map +1 -1
- package/dist/browser/operations/restorableSqlDatabases.js +10 -27
- package/dist/browser/operations/restorableSqlDatabases.js.map +1 -1
- package/dist/browser/operations/restorableSqlResources.js +10 -27
- package/dist/browser/operations/restorableSqlResources.js.map +1 -1
- package/dist/browser/operations/restorableTableResources.js +10 -27
- package/dist/browser/operations/restorableTableResources.js.map +1 -1
- package/dist/browser/operations/restorableTables.js +10 -27
- package/dist/browser/operations/restorableTables.js.map +1 -1
- package/dist/browser/operations/service.js +32 -39
- package/dist/browser/operations/service.js.map +1 -1
- package/dist/browser/operations/sqlResources.js +315 -341
- package/dist/browser/operations/sqlResources.js.map +1 -1
- package/dist/browser/operations/tableResources.js +76 -63
- package/dist/browser/operations/tableResources.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/cosmosDBManagementClient.js +50 -5
- package/dist/commonjs/cosmosDBManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +661 -279
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/cassandraClusters.js +85 -88
- package/dist/commonjs/operations/cassandraClusters.js.map +1 -1
- package/dist/commonjs/operations/cassandraDataCenters.js +43 -44
- package/dist/commonjs/operations/cassandraDataCenters.js.map +1 -1
- package/dist/commonjs/operations/cassandraResources.js +129 -112
- package/dist/commonjs/operations/cassandraResources.js.map +1 -1
- package/dist/commonjs/operations/collection.js +28 -78
- package/dist/commonjs/operations/collection.js.map +1 -1
- package/dist/commonjs/operations/collectionPartition.js +19 -52
- package/dist/commonjs/operations/collectionPartition.js.map +1 -1
- package/dist/commonjs/operations/collectionPartitionRegion.js +10 -26
- package/dist/commonjs/operations/collectionPartitionRegion.js.map +1 -1
- package/dist/commonjs/operations/collectionRegion.js +10 -26
- package/dist/commonjs/operations/collectionRegion.js.map +1 -1
- package/dist/commonjs/operations/database.js +28 -78
- package/dist/commonjs/operations/database.js.map +1 -1
- package/dist/commonjs/operations/databaseAccountRegion.js +10 -26
- package/dist/commonjs/operations/databaseAccountRegion.js.map +1 -1
- package/dist/commonjs/operations/databaseAccounts.js +123 -172
- package/dist/commonjs/operations/databaseAccounts.js.map +1 -1
- package/dist/commonjs/operations/gremlinResources.js +140 -118
- package/dist/commonjs/operations/gremlinResources.js.map +1 -1
- package/dist/commonjs/operations/locations.js +10 -26
- package/dist/commonjs/operations/locations.js.map +1 -1
- package/dist/commonjs/operations/mongoDBResources.js +202 -194
- package/dist/commonjs/operations/mongoDBResources.js.map +1 -1
- package/dist/commonjs/operations/notebookWorkspaces.js +54 -50
- package/dist/commonjs/operations/notebookWorkspaces.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/partitionKeyRangeId.js +10 -26
- package/dist/commonjs/operations/partitionKeyRangeId.js.map +1 -1
- package/dist/commonjs/operations/partitionKeyRangeIdRegion.js +10 -26
- package/dist/commonjs/operations/partitionKeyRangeIdRegion.js.map +1 -1
- package/dist/commonjs/operations/percentile.js +10 -26
- package/dist/commonjs/operations/percentile.js.map +1 -1
- package/dist/commonjs/operations/percentileSourceTarget.js +10 -26
- package/dist/commonjs/operations/percentileSourceTarget.js.map +1 -1
- package/dist/commonjs/operations/percentileTarget.js +10 -26
- package/dist/commonjs/operations/percentileTarget.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.js +32 -38
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js +10 -26
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/restorableDatabaseAccounts.js +19 -52
- package/dist/commonjs/operations/restorableDatabaseAccounts.js.map +1 -1
- package/dist/commonjs/operations/restorableGremlinDatabases.js +10 -26
- package/dist/commonjs/operations/restorableGremlinDatabases.js.map +1 -1
- package/dist/commonjs/operations/restorableGremlinGraphs.js +10 -26
- package/dist/commonjs/operations/restorableGremlinGraphs.js.map +1 -1
- package/dist/commonjs/operations/restorableGremlinResources.js +10 -26
- package/dist/commonjs/operations/restorableGremlinResources.js.map +1 -1
- package/dist/commonjs/operations/restorableMongodbCollections.js +10 -26
- package/dist/commonjs/operations/restorableMongodbCollections.js.map +1 -1
- package/dist/commonjs/operations/restorableMongodbDatabases.js +10 -26
- package/dist/commonjs/operations/restorableMongodbDatabases.js.map +1 -1
- package/dist/commonjs/operations/restorableMongodbResources.js +10 -26
- package/dist/commonjs/operations/restorableMongodbResources.js.map +1 -1
- package/dist/commonjs/operations/restorableSqlContainers.js +10 -26
- package/dist/commonjs/operations/restorableSqlContainers.js.map +1 -1
- package/dist/commonjs/operations/restorableSqlDatabases.js +10 -26
- package/dist/commonjs/operations/restorableSqlDatabases.js.map +1 -1
- package/dist/commonjs/operations/restorableSqlResources.js +10 -26
- package/dist/commonjs/operations/restorableSqlResources.js.map +1 -1
- package/dist/commonjs/operations/restorableTableResources.js +10 -26
- package/dist/commonjs/operations/restorableTableResources.js.map +1 -1
- package/dist/commonjs/operations/restorableTables.js +10 -26
- package/dist/commonjs/operations/restorableTables.js.map +1 -1
- package/dist/commonjs/operations/service.js +32 -38
- package/dist/commonjs/operations/service.js.map +1 -1
- package/dist/commonjs/operations/sqlResources.js +315 -340
- package/dist/commonjs/operations/sqlResources.js.map +1 -1
- package/dist/commonjs/operations/tableResources.js +76 -62
- package/dist/commonjs/operations/tableResources.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/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 SqlResources operations. */
|
|
19
19
|
class SqlResourcesImpl {
|
|
20
|
+
client;
|
|
20
21
|
/**
|
|
21
22
|
* Initialize a new instance of the class SqlResources class.
|
|
22
23
|
* @param client Reference to the service client
|
|
@@ -40,39 +41,22 @@ class SqlResourcesImpl {
|
|
|
40
41
|
return this;
|
|
41
42
|
},
|
|
42
43
|
byPage: (settings) => {
|
|
43
|
-
if (settings
|
|
44
|
+
if (settings?.maxPageSize) {
|
|
44
45
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
45
46
|
}
|
|
46
47
|
return this.listSqlDatabasesPagingPage(resourceGroupName, accountName, options, settings);
|
|
47
48
|
},
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
|
-
listSqlDatabasesPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
yield yield tslib_1.__await(result.value || []);
|
|
55
|
-
});
|
|
51
|
+
async *listSqlDatabasesPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
52
|
+
let result;
|
|
53
|
+
result = await this._listSqlDatabases(resourceGroupName, accountName, options);
|
|
54
|
+
yield result.value || [];
|
|
56
55
|
}
|
|
57
|
-
listSqlDatabasesPagingAll(resourceGroupName, accountName, options) {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listSqlDatabasesPagingPage(resourceGroupName, accountName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
62
|
-
_c = _f.value;
|
|
63
|
-
_d = false;
|
|
64
|
-
const page = _c;
|
|
65
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
69
|
-
finally {
|
|
70
|
-
try {
|
|
71
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
72
|
-
}
|
|
73
|
-
finally { if (e_1) throw e_1.error; }
|
|
74
|
-
}
|
|
75
|
-
});
|
|
56
|
+
async *listSqlDatabasesPagingAll(resourceGroupName, accountName, options) {
|
|
57
|
+
for await (const page of this.listSqlDatabasesPagingPage(resourceGroupName, accountName, options)) {
|
|
58
|
+
yield* page;
|
|
59
|
+
}
|
|
76
60
|
}
|
|
77
61
|
/**
|
|
78
62
|
* Lists the SQL container under an existing Azure Cosmos DB database account.
|
|
@@ -91,39 +75,22 @@ class SqlResourcesImpl {
|
|
|
91
75
|
return this;
|
|
92
76
|
},
|
|
93
77
|
byPage: (settings) => {
|
|
94
|
-
if (settings
|
|
78
|
+
if (settings?.maxPageSize) {
|
|
95
79
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
96
80
|
}
|
|
97
81
|
return this.listSqlContainersPagingPage(resourceGroupName, accountName, databaseName, options, settings);
|
|
98
82
|
},
|
|
99
83
|
};
|
|
100
84
|
}
|
|
101
|
-
listSqlContainersPagingPage(resourceGroupName, accountName, databaseName, options, _settings) {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
yield yield tslib_1.__await(result.value || []);
|
|
106
|
-
});
|
|
85
|
+
async *listSqlContainersPagingPage(resourceGroupName, accountName, databaseName, options, _settings) {
|
|
86
|
+
let result;
|
|
87
|
+
result = await this._listSqlContainers(resourceGroupName, accountName, databaseName, options);
|
|
88
|
+
yield result.value || [];
|
|
107
89
|
}
|
|
108
|
-
listSqlContainersPagingAll(resourceGroupName, accountName, databaseName, options) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listSqlContainersPagingPage(resourceGroupName, accountName, databaseName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
113
|
-
_c = _f.value;
|
|
114
|
-
_d = false;
|
|
115
|
-
const page = _c;
|
|
116
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
120
|
-
finally {
|
|
121
|
-
try {
|
|
122
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
123
|
-
}
|
|
124
|
-
finally { if (e_2) throw e_2.error; }
|
|
125
|
-
}
|
|
126
|
-
});
|
|
90
|
+
async *listSqlContainersPagingAll(resourceGroupName, accountName, databaseName, options) {
|
|
91
|
+
for await (const page of this.listSqlContainersPagingPage(resourceGroupName, accountName, databaseName, options)) {
|
|
92
|
+
yield* page;
|
|
93
|
+
}
|
|
127
94
|
}
|
|
128
95
|
/**
|
|
129
96
|
* Lists the ClientEncryptionKeys under an existing Azure Cosmos DB SQL database.
|
|
@@ -142,39 +109,22 @@ class SqlResourcesImpl {
|
|
|
142
109
|
return this;
|
|
143
110
|
},
|
|
144
111
|
byPage: (settings) => {
|
|
145
|
-
if (settings
|
|
112
|
+
if (settings?.maxPageSize) {
|
|
146
113
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
147
114
|
}
|
|
148
115
|
return this.listClientEncryptionKeysPagingPage(resourceGroupName, accountName, databaseName, options, settings);
|
|
149
116
|
},
|
|
150
117
|
};
|
|
151
118
|
}
|
|
152
|
-
listClientEncryptionKeysPagingPage(resourceGroupName, accountName, databaseName, options, _settings) {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
yield yield tslib_1.__await(result.value || []);
|
|
157
|
-
});
|
|
119
|
+
async *listClientEncryptionKeysPagingPage(resourceGroupName, accountName, databaseName, options, _settings) {
|
|
120
|
+
let result;
|
|
121
|
+
result = await this._listClientEncryptionKeys(resourceGroupName, accountName, databaseName, options);
|
|
122
|
+
yield result.value || [];
|
|
158
123
|
}
|
|
159
|
-
listClientEncryptionKeysPagingAll(resourceGroupName, accountName, databaseName, options) {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listClientEncryptionKeysPagingPage(resourceGroupName, accountName, databaseName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
164
|
-
_c = _f.value;
|
|
165
|
-
_d = false;
|
|
166
|
-
const page = _c;
|
|
167
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
171
|
-
finally {
|
|
172
|
-
try {
|
|
173
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
174
|
-
}
|
|
175
|
-
finally { if (e_3) throw e_3.error; }
|
|
176
|
-
}
|
|
177
|
-
});
|
|
124
|
+
async *listClientEncryptionKeysPagingAll(resourceGroupName, accountName, databaseName, options) {
|
|
125
|
+
for await (const page of this.listClientEncryptionKeysPagingPage(resourceGroupName, accountName, databaseName, options)) {
|
|
126
|
+
yield* page;
|
|
127
|
+
}
|
|
178
128
|
}
|
|
179
129
|
/**
|
|
180
130
|
* Lists the SQL storedProcedure under an existing Azure Cosmos DB database account.
|
|
@@ -194,39 +144,22 @@ class SqlResourcesImpl {
|
|
|
194
144
|
return this;
|
|
195
145
|
},
|
|
196
146
|
byPage: (settings) => {
|
|
197
|
-
if (settings
|
|
147
|
+
if (settings?.maxPageSize) {
|
|
198
148
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
199
149
|
}
|
|
200
150
|
return this.listSqlStoredProceduresPagingPage(resourceGroupName, accountName, databaseName, containerName, options, settings);
|
|
201
151
|
},
|
|
202
152
|
};
|
|
203
153
|
}
|
|
204
|
-
listSqlStoredProceduresPagingPage(resourceGroupName, accountName, databaseName, containerName, options, _settings) {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
yield yield tslib_1.__await(result.value || []);
|
|
209
|
-
});
|
|
154
|
+
async *listSqlStoredProceduresPagingPage(resourceGroupName, accountName, databaseName, containerName, options, _settings) {
|
|
155
|
+
let result;
|
|
156
|
+
result = await this._listSqlStoredProcedures(resourceGroupName, accountName, databaseName, containerName, options);
|
|
157
|
+
yield result.value || [];
|
|
210
158
|
}
|
|
211
|
-
listSqlStoredProceduresPagingAll(resourceGroupName, accountName, databaseName, containerName, options) {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listSqlStoredProceduresPagingPage(resourceGroupName, accountName, databaseName, containerName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
216
|
-
_c = _f.value;
|
|
217
|
-
_d = false;
|
|
218
|
-
const page = _c;
|
|
219
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
223
|
-
finally {
|
|
224
|
-
try {
|
|
225
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
226
|
-
}
|
|
227
|
-
finally { if (e_4) throw e_4.error; }
|
|
228
|
-
}
|
|
229
|
-
});
|
|
159
|
+
async *listSqlStoredProceduresPagingAll(resourceGroupName, accountName, databaseName, containerName, options) {
|
|
160
|
+
for await (const page of this.listSqlStoredProceduresPagingPage(resourceGroupName, accountName, databaseName, containerName, options)) {
|
|
161
|
+
yield* page;
|
|
162
|
+
}
|
|
230
163
|
}
|
|
231
164
|
/**
|
|
232
165
|
* Lists the SQL userDefinedFunction under an existing Azure Cosmos DB database account.
|
|
@@ -246,39 +179,22 @@ class SqlResourcesImpl {
|
|
|
246
179
|
return this;
|
|
247
180
|
},
|
|
248
181
|
byPage: (settings) => {
|
|
249
|
-
if (settings
|
|
182
|
+
if (settings?.maxPageSize) {
|
|
250
183
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
251
184
|
}
|
|
252
185
|
return this.listSqlUserDefinedFunctionsPagingPage(resourceGroupName, accountName, databaseName, containerName, options, settings);
|
|
253
186
|
},
|
|
254
187
|
};
|
|
255
188
|
}
|
|
256
|
-
listSqlUserDefinedFunctionsPagingPage(resourceGroupName, accountName, databaseName, containerName, options, _settings) {
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
yield yield tslib_1.__await(result.value || []);
|
|
261
|
-
});
|
|
189
|
+
async *listSqlUserDefinedFunctionsPagingPage(resourceGroupName, accountName, databaseName, containerName, options, _settings) {
|
|
190
|
+
let result;
|
|
191
|
+
result = await this._listSqlUserDefinedFunctions(resourceGroupName, accountName, databaseName, containerName, options);
|
|
192
|
+
yield result.value || [];
|
|
262
193
|
}
|
|
263
|
-
listSqlUserDefinedFunctionsPagingAll(resourceGroupName, accountName, databaseName, containerName, options) {
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listSqlUserDefinedFunctionsPagingPage(resourceGroupName, accountName, databaseName, containerName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
268
|
-
_c = _f.value;
|
|
269
|
-
_d = false;
|
|
270
|
-
const page = _c;
|
|
271
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
275
|
-
finally {
|
|
276
|
-
try {
|
|
277
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
278
|
-
}
|
|
279
|
-
finally { if (e_5) throw e_5.error; }
|
|
280
|
-
}
|
|
281
|
-
});
|
|
194
|
+
async *listSqlUserDefinedFunctionsPagingAll(resourceGroupName, accountName, databaseName, containerName, options) {
|
|
195
|
+
for await (const page of this.listSqlUserDefinedFunctionsPagingPage(resourceGroupName, accountName, databaseName, containerName, options)) {
|
|
196
|
+
yield* page;
|
|
197
|
+
}
|
|
282
198
|
}
|
|
283
199
|
/**
|
|
284
200
|
* Lists the SQL trigger under an existing Azure Cosmos DB database account.
|
|
@@ -298,39 +214,22 @@ class SqlResourcesImpl {
|
|
|
298
214
|
return this;
|
|
299
215
|
},
|
|
300
216
|
byPage: (settings) => {
|
|
301
|
-
if (settings
|
|
217
|
+
if (settings?.maxPageSize) {
|
|
302
218
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
303
219
|
}
|
|
304
220
|
return this.listSqlTriggersPagingPage(resourceGroupName, accountName, databaseName, containerName, options, settings);
|
|
305
221
|
},
|
|
306
222
|
};
|
|
307
223
|
}
|
|
308
|
-
listSqlTriggersPagingPage(resourceGroupName, accountName, databaseName, containerName, options, _settings) {
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
yield yield tslib_1.__await(result.value || []);
|
|
313
|
-
});
|
|
224
|
+
async *listSqlTriggersPagingPage(resourceGroupName, accountName, databaseName, containerName, options, _settings) {
|
|
225
|
+
let result;
|
|
226
|
+
result = await this._listSqlTriggers(resourceGroupName, accountName, databaseName, containerName, options);
|
|
227
|
+
yield result.value || [];
|
|
314
228
|
}
|
|
315
|
-
listSqlTriggersPagingAll(resourceGroupName, accountName, databaseName, containerName, options) {
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listSqlTriggersPagingPage(resourceGroupName, accountName, databaseName, containerName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
320
|
-
_c = _f.value;
|
|
321
|
-
_d = false;
|
|
322
|
-
const page = _c;
|
|
323
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
327
|
-
finally {
|
|
328
|
-
try {
|
|
329
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
330
|
-
}
|
|
331
|
-
finally { if (e_6) throw e_6.error; }
|
|
332
|
-
}
|
|
333
|
-
});
|
|
229
|
+
async *listSqlTriggersPagingAll(resourceGroupName, accountName, databaseName, containerName, options) {
|
|
230
|
+
for await (const page of this.listSqlTriggersPagingPage(resourceGroupName, accountName, databaseName, containerName, options)) {
|
|
231
|
+
yield* page;
|
|
232
|
+
}
|
|
334
233
|
}
|
|
335
234
|
/**
|
|
336
235
|
* Retrieves the list of all Azure Cosmos DB SQL Role Definitions.
|
|
@@ -348,39 +247,22 @@ class SqlResourcesImpl {
|
|
|
348
247
|
return this;
|
|
349
248
|
},
|
|
350
249
|
byPage: (settings) => {
|
|
351
|
-
if (settings
|
|
250
|
+
if (settings?.maxPageSize) {
|
|
352
251
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
353
252
|
}
|
|
354
253
|
return this.listSqlRoleDefinitionsPagingPage(resourceGroupName, accountName, options, settings);
|
|
355
254
|
},
|
|
356
255
|
};
|
|
357
256
|
}
|
|
358
|
-
listSqlRoleDefinitionsPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
yield yield tslib_1.__await(result.value || []);
|
|
363
|
-
});
|
|
257
|
+
async *listSqlRoleDefinitionsPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
258
|
+
let result;
|
|
259
|
+
result = await this._listSqlRoleDefinitions(resourceGroupName, accountName, options);
|
|
260
|
+
yield result.value || [];
|
|
364
261
|
}
|
|
365
|
-
listSqlRoleDefinitionsPagingAll(resourceGroupName, accountName, options) {
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listSqlRoleDefinitionsPagingPage(resourceGroupName, accountName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
370
|
-
_c = _f.value;
|
|
371
|
-
_d = false;
|
|
372
|
-
const page = _c;
|
|
373
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
catch (e_7_1) { e_7 = { error: e_7_1 }; }
|
|
377
|
-
finally {
|
|
378
|
-
try {
|
|
379
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
380
|
-
}
|
|
381
|
-
finally { if (e_7) throw e_7.error; }
|
|
382
|
-
}
|
|
383
|
-
});
|
|
262
|
+
async *listSqlRoleDefinitionsPagingAll(resourceGroupName, accountName, options) {
|
|
263
|
+
for await (const page of this.listSqlRoleDefinitionsPagingPage(resourceGroupName, accountName, options)) {
|
|
264
|
+
yield* page;
|
|
265
|
+
}
|
|
384
266
|
}
|
|
385
267
|
/**
|
|
386
268
|
* Retrieves the list of all Azure Cosmos DB SQL Role Assignments.
|
|
@@ -398,39 +280,22 @@ class SqlResourcesImpl {
|
|
|
398
280
|
return this;
|
|
399
281
|
},
|
|
400
282
|
byPage: (settings) => {
|
|
401
|
-
if (settings
|
|
283
|
+
if (settings?.maxPageSize) {
|
|
402
284
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
403
285
|
}
|
|
404
286
|
return this.listSqlRoleAssignmentsPagingPage(resourceGroupName, accountName, options, settings);
|
|
405
287
|
},
|
|
406
288
|
};
|
|
407
289
|
}
|
|
408
|
-
listSqlRoleAssignmentsPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
yield yield tslib_1.__await(result.value || []);
|
|
413
|
-
});
|
|
290
|
+
async *listSqlRoleAssignmentsPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
291
|
+
let result;
|
|
292
|
+
result = await this._listSqlRoleAssignments(resourceGroupName, accountName, options);
|
|
293
|
+
yield result.value || [];
|
|
414
294
|
}
|
|
415
|
-
listSqlRoleAssignmentsPagingAll(resourceGroupName, accountName, options) {
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listSqlRoleAssignmentsPagingPage(resourceGroupName, accountName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
420
|
-
_c = _f.value;
|
|
421
|
-
_d = false;
|
|
422
|
-
const page = _c;
|
|
423
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
catch (e_8_1) { e_8 = { error: e_8_1 }; }
|
|
427
|
-
finally {
|
|
428
|
-
try {
|
|
429
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
430
|
-
}
|
|
431
|
-
finally { if (e_8) throw e_8.error; }
|
|
432
|
-
}
|
|
433
|
-
});
|
|
295
|
+
async *listSqlRoleAssignmentsPagingAll(resourceGroupName, accountName, options) {
|
|
296
|
+
for await (const page of this.listSqlRoleAssignmentsPagingPage(resourceGroupName, accountName, options)) {
|
|
297
|
+
yield* page;
|
|
298
|
+
}
|
|
434
299
|
}
|
|
435
300
|
/**
|
|
436
301
|
* Lists the SQL databases under an existing Azure Cosmos DB database account.
|
|
@@ -464,14 +329,19 @@ class SqlResourcesImpl {
|
|
|
464
329
|
return this.client.sendOperationRequest(args, spec);
|
|
465
330
|
};
|
|
466
331
|
const sendOperationFn = async (args, spec) => {
|
|
467
|
-
var _a;
|
|
468
332
|
let currentRawResponse = undefined;
|
|
469
|
-
const providedCallback =
|
|
333
|
+
const providedCallback = args.options?.onResponse;
|
|
470
334
|
const callback = (rawResponse, flatResponse) => {
|
|
471
335
|
currentRawResponse = rawResponse;
|
|
472
|
-
providedCallback
|
|
336
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
337
|
+
};
|
|
338
|
+
const updatedArgs = {
|
|
339
|
+
...args,
|
|
340
|
+
options: {
|
|
341
|
+
...args.options,
|
|
342
|
+
onResponse: callback,
|
|
343
|
+
},
|
|
473
344
|
};
|
|
474
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
475
345
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
476
346
|
return {
|
|
477
347
|
flatResponse,
|
|
@@ -494,8 +364,8 @@ class SqlResourcesImpl {
|
|
|
494
364
|
spec: createUpdateSqlDatabaseOperationSpec,
|
|
495
365
|
});
|
|
496
366
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
497
|
-
restoreFrom: options
|
|
498
|
-
intervalInMs: options
|
|
367
|
+
restoreFrom: options?.resumeFrom,
|
|
368
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
499
369
|
});
|
|
500
370
|
await poller.poll();
|
|
501
371
|
return poller;
|
|
@@ -524,14 +394,19 @@ class SqlResourcesImpl {
|
|
|
524
394
|
return this.client.sendOperationRequest(args, spec);
|
|
525
395
|
};
|
|
526
396
|
const sendOperationFn = async (args, spec) => {
|
|
527
|
-
var _a;
|
|
528
397
|
let currentRawResponse = undefined;
|
|
529
|
-
const providedCallback =
|
|
398
|
+
const providedCallback = args.options?.onResponse;
|
|
530
399
|
const callback = (rawResponse, flatResponse) => {
|
|
531
400
|
currentRawResponse = rawResponse;
|
|
532
|
-
providedCallback
|
|
401
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
402
|
+
};
|
|
403
|
+
const updatedArgs = {
|
|
404
|
+
...args,
|
|
405
|
+
options: {
|
|
406
|
+
...args.options,
|
|
407
|
+
onResponse: callback,
|
|
408
|
+
},
|
|
533
409
|
};
|
|
534
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
535
410
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
536
411
|
return {
|
|
537
412
|
flatResponse,
|
|
@@ -548,8 +423,8 @@ class SqlResourcesImpl {
|
|
|
548
423
|
spec: deleteSqlDatabaseOperationSpec,
|
|
549
424
|
});
|
|
550
425
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
551
|
-
restoreFrom: options
|
|
552
|
-
intervalInMs: options
|
|
426
|
+
restoreFrom: options?.resumeFrom,
|
|
427
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
553
428
|
});
|
|
554
429
|
await poller.poll();
|
|
555
430
|
return poller;
|
|
@@ -590,14 +465,19 @@ class SqlResourcesImpl {
|
|
|
590
465
|
return this.client.sendOperationRequest(args, spec);
|
|
591
466
|
};
|
|
592
467
|
const sendOperationFn = async (args, spec) => {
|
|
593
|
-
var _a;
|
|
594
468
|
let currentRawResponse = undefined;
|
|
595
|
-
const providedCallback =
|
|
469
|
+
const providedCallback = args.options?.onResponse;
|
|
596
470
|
const callback = (rawResponse, flatResponse) => {
|
|
597
471
|
currentRawResponse = rawResponse;
|
|
598
|
-
providedCallback
|
|
472
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
473
|
+
};
|
|
474
|
+
const updatedArgs = {
|
|
475
|
+
...args,
|
|
476
|
+
options: {
|
|
477
|
+
...args.options,
|
|
478
|
+
onResponse: callback,
|
|
479
|
+
},
|
|
599
480
|
};
|
|
600
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
601
481
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
602
482
|
return {
|
|
603
483
|
flatResponse,
|
|
@@ -620,8 +500,8 @@ class SqlResourcesImpl {
|
|
|
620
500
|
spec: updateSqlDatabaseThroughputOperationSpec,
|
|
621
501
|
});
|
|
622
502
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
623
|
-
restoreFrom: options
|
|
624
|
-
intervalInMs: options
|
|
503
|
+
restoreFrom: options?.resumeFrom,
|
|
504
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
625
505
|
});
|
|
626
506
|
await poller.poll();
|
|
627
507
|
return poller;
|
|
@@ -651,14 +531,19 @@ class SqlResourcesImpl {
|
|
|
651
531
|
return this.client.sendOperationRequest(args, spec);
|
|
652
532
|
};
|
|
653
533
|
const sendOperationFn = async (args, spec) => {
|
|
654
|
-
var _a;
|
|
655
534
|
let currentRawResponse = undefined;
|
|
656
|
-
const providedCallback =
|
|
535
|
+
const providedCallback = args.options?.onResponse;
|
|
657
536
|
const callback = (rawResponse, flatResponse) => {
|
|
658
537
|
currentRawResponse = rawResponse;
|
|
659
|
-
providedCallback
|
|
538
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
539
|
+
};
|
|
540
|
+
const updatedArgs = {
|
|
541
|
+
...args,
|
|
542
|
+
options: {
|
|
543
|
+
...args.options,
|
|
544
|
+
onResponse: callback,
|
|
545
|
+
},
|
|
660
546
|
};
|
|
661
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
662
547
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
663
548
|
return {
|
|
664
549
|
flatResponse,
|
|
@@ -675,8 +560,8 @@ class SqlResourcesImpl {
|
|
|
675
560
|
spec: migrateSqlDatabaseToAutoscaleOperationSpec,
|
|
676
561
|
});
|
|
677
562
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
678
|
-
restoreFrom: options
|
|
679
|
-
intervalInMs: options
|
|
563
|
+
restoreFrom: options?.resumeFrom,
|
|
564
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
680
565
|
});
|
|
681
566
|
await poller.poll();
|
|
682
567
|
return poller;
|
|
@@ -704,14 +589,19 @@ class SqlResourcesImpl {
|
|
|
704
589
|
return this.client.sendOperationRequest(args, spec);
|
|
705
590
|
};
|
|
706
591
|
const sendOperationFn = async (args, spec) => {
|
|
707
|
-
var _a;
|
|
708
592
|
let currentRawResponse = undefined;
|
|
709
|
-
const providedCallback =
|
|
593
|
+
const providedCallback = args.options?.onResponse;
|
|
710
594
|
const callback = (rawResponse, flatResponse) => {
|
|
711
595
|
currentRawResponse = rawResponse;
|
|
712
|
-
providedCallback
|
|
596
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
597
|
+
};
|
|
598
|
+
const updatedArgs = {
|
|
599
|
+
...args,
|
|
600
|
+
options: {
|
|
601
|
+
...args.options,
|
|
602
|
+
onResponse: callback,
|
|
603
|
+
},
|
|
713
604
|
};
|
|
714
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
715
605
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
716
606
|
return {
|
|
717
607
|
flatResponse,
|
|
@@ -728,8 +618,8 @@ class SqlResourcesImpl {
|
|
|
728
618
|
spec: migrateSqlDatabaseToManualThroughputOperationSpec,
|
|
729
619
|
});
|
|
730
620
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
731
|
-
restoreFrom: options
|
|
732
|
-
intervalInMs: options
|
|
621
|
+
restoreFrom: options?.resumeFrom,
|
|
622
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
733
623
|
});
|
|
734
624
|
await poller.poll();
|
|
735
625
|
return poller;
|
|
@@ -780,14 +670,19 @@ class SqlResourcesImpl {
|
|
|
780
670
|
return this.client.sendOperationRequest(args, spec);
|
|
781
671
|
};
|
|
782
672
|
const sendOperationFn = async (args, spec) => {
|
|
783
|
-
var _a;
|
|
784
673
|
let currentRawResponse = undefined;
|
|
785
|
-
const providedCallback =
|
|
674
|
+
const providedCallback = args.options?.onResponse;
|
|
786
675
|
const callback = (rawResponse, flatResponse) => {
|
|
787
676
|
currentRawResponse = rawResponse;
|
|
788
|
-
providedCallback
|
|
677
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
678
|
+
};
|
|
679
|
+
const updatedArgs = {
|
|
680
|
+
...args,
|
|
681
|
+
options: {
|
|
682
|
+
...args.options,
|
|
683
|
+
onResponse: callback,
|
|
684
|
+
},
|
|
789
685
|
};
|
|
790
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
791
686
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
792
687
|
return {
|
|
793
688
|
flatResponse,
|
|
@@ -811,8 +706,8 @@ class SqlResourcesImpl {
|
|
|
811
706
|
spec: createUpdateSqlContainerOperationSpec,
|
|
812
707
|
});
|
|
813
708
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
814
|
-
restoreFrom: options
|
|
815
|
-
intervalInMs: options
|
|
709
|
+
restoreFrom: options?.resumeFrom,
|
|
710
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
816
711
|
});
|
|
817
712
|
await poller.poll();
|
|
818
713
|
return poller;
|
|
@@ -843,14 +738,19 @@ class SqlResourcesImpl {
|
|
|
843
738
|
return this.client.sendOperationRequest(args, spec);
|
|
844
739
|
};
|
|
845
740
|
const sendOperationFn = async (args, spec) => {
|
|
846
|
-
var _a;
|
|
847
741
|
let currentRawResponse = undefined;
|
|
848
|
-
const providedCallback =
|
|
742
|
+
const providedCallback = args.options?.onResponse;
|
|
849
743
|
const callback = (rawResponse, flatResponse) => {
|
|
850
744
|
currentRawResponse = rawResponse;
|
|
851
|
-
providedCallback
|
|
745
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
746
|
+
};
|
|
747
|
+
const updatedArgs = {
|
|
748
|
+
...args,
|
|
749
|
+
options: {
|
|
750
|
+
...args.options,
|
|
751
|
+
onResponse: callback,
|
|
752
|
+
},
|
|
852
753
|
};
|
|
853
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
854
754
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
855
755
|
return {
|
|
856
756
|
flatResponse,
|
|
@@ -873,8 +773,8 @@ class SqlResourcesImpl {
|
|
|
873
773
|
spec: deleteSqlContainerOperationSpec,
|
|
874
774
|
});
|
|
875
775
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
876
|
-
restoreFrom: options
|
|
877
|
-
intervalInMs: options
|
|
776
|
+
restoreFrom: options?.resumeFrom,
|
|
777
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
878
778
|
});
|
|
879
779
|
await poller.poll();
|
|
880
780
|
return poller;
|
|
@@ -917,14 +817,19 @@ class SqlResourcesImpl {
|
|
|
917
817
|
return this.client.sendOperationRequest(args, spec);
|
|
918
818
|
};
|
|
919
819
|
const sendOperationFn = async (args, spec) => {
|
|
920
|
-
var _a;
|
|
921
820
|
let currentRawResponse = undefined;
|
|
922
|
-
const providedCallback =
|
|
821
|
+
const providedCallback = args.options?.onResponse;
|
|
923
822
|
const callback = (rawResponse, flatResponse) => {
|
|
924
823
|
currentRawResponse = rawResponse;
|
|
925
|
-
providedCallback
|
|
824
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
825
|
+
};
|
|
826
|
+
const updatedArgs = {
|
|
827
|
+
...args,
|
|
828
|
+
options: {
|
|
829
|
+
...args.options,
|
|
830
|
+
onResponse: callback,
|
|
831
|
+
},
|
|
926
832
|
};
|
|
927
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
928
833
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
929
834
|
return {
|
|
930
835
|
flatResponse,
|
|
@@ -948,8 +853,8 @@ class SqlResourcesImpl {
|
|
|
948
853
|
spec: updateSqlContainerThroughputOperationSpec,
|
|
949
854
|
});
|
|
950
855
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
951
|
-
restoreFrom: options
|
|
952
|
-
intervalInMs: options
|
|
856
|
+
restoreFrom: options?.resumeFrom,
|
|
857
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
953
858
|
});
|
|
954
859
|
await poller.poll();
|
|
955
860
|
return poller;
|
|
@@ -981,14 +886,19 @@ class SqlResourcesImpl {
|
|
|
981
886
|
return this.client.sendOperationRequest(args, spec);
|
|
982
887
|
};
|
|
983
888
|
const sendOperationFn = async (args, spec) => {
|
|
984
|
-
var _a;
|
|
985
889
|
let currentRawResponse = undefined;
|
|
986
|
-
const providedCallback =
|
|
890
|
+
const providedCallback = args.options?.onResponse;
|
|
987
891
|
const callback = (rawResponse, flatResponse) => {
|
|
988
892
|
currentRawResponse = rawResponse;
|
|
989
|
-
providedCallback
|
|
893
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
894
|
+
};
|
|
895
|
+
const updatedArgs = {
|
|
896
|
+
...args,
|
|
897
|
+
options: {
|
|
898
|
+
...args.options,
|
|
899
|
+
onResponse: callback,
|
|
900
|
+
},
|
|
990
901
|
};
|
|
991
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
992
902
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
993
903
|
return {
|
|
994
904
|
flatResponse,
|
|
@@ -1011,8 +921,8 @@ class SqlResourcesImpl {
|
|
|
1011
921
|
spec: migrateSqlContainerToAutoscaleOperationSpec,
|
|
1012
922
|
});
|
|
1013
923
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
1014
|
-
restoreFrom: options
|
|
1015
|
-
intervalInMs: options
|
|
924
|
+
restoreFrom: options?.resumeFrom,
|
|
925
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1016
926
|
});
|
|
1017
927
|
await poller.poll();
|
|
1018
928
|
return poller;
|
|
@@ -1042,14 +952,19 @@ class SqlResourcesImpl {
|
|
|
1042
952
|
return this.client.sendOperationRequest(args, spec);
|
|
1043
953
|
};
|
|
1044
954
|
const sendOperationFn = async (args, spec) => {
|
|
1045
|
-
var _a;
|
|
1046
955
|
let currentRawResponse = undefined;
|
|
1047
|
-
const providedCallback =
|
|
956
|
+
const providedCallback = args.options?.onResponse;
|
|
1048
957
|
const callback = (rawResponse, flatResponse) => {
|
|
1049
958
|
currentRawResponse = rawResponse;
|
|
1050
|
-
providedCallback
|
|
959
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
960
|
+
};
|
|
961
|
+
const updatedArgs = {
|
|
962
|
+
...args,
|
|
963
|
+
options: {
|
|
964
|
+
...args.options,
|
|
965
|
+
onResponse: callback,
|
|
966
|
+
},
|
|
1051
967
|
};
|
|
1052
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1053
968
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1054
969
|
return {
|
|
1055
970
|
flatResponse,
|
|
@@ -1072,8 +987,8 @@ class SqlResourcesImpl {
|
|
|
1072
987
|
spec: migrateSqlContainerToManualThroughputOperationSpec,
|
|
1073
988
|
});
|
|
1074
989
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
1075
|
-
restoreFrom: options
|
|
1076
|
-
intervalInMs: options
|
|
990
|
+
restoreFrom: options?.resumeFrom,
|
|
991
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1077
992
|
});
|
|
1078
993
|
await poller.poll();
|
|
1079
994
|
return poller;
|
|
@@ -1133,14 +1048,19 @@ class SqlResourcesImpl {
|
|
|
1133
1048
|
return this.client.sendOperationRequest(args, spec);
|
|
1134
1049
|
};
|
|
1135
1050
|
const sendOperationFn = async (args, spec) => {
|
|
1136
|
-
var _a;
|
|
1137
1051
|
let currentRawResponse = undefined;
|
|
1138
|
-
const providedCallback =
|
|
1052
|
+
const providedCallback = args.options?.onResponse;
|
|
1139
1053
|
const callback = (rawResponse, flatResponse) => {
|
|
1140
1054
|
currentRawResponse = rawResponse;
|
|
1141
|
-
providedCallback
|
|
1055
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1056
|
+
};
|
|
1057
|
+
const updatedArgs = {
|
|
1058
|
+
...args,
|
|
1059
|
+
options: {
|
|
1060
|
+
...args.options,
|
|
1061
|
+
onResponse: callback,
|
|
1062
|
+
},
|
|
1142
1063
|
};
|
|
1143
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1144
1064
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1145
1065
|
return {
|
|
1146
1066
|
flatResponse,
|
|
@@ -1164,8 +1084,8 @@ class SqlResourcesImpl {
|
|
|
1164
1084
|
spec: createUpdateClientEncryptionKeyOperationSpec,
|
|
1165
1085
|
});
|
|
1166
1086
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
1167
|
-
restoreFrom: options
|
|
1168
|
-
intervalInMs: options
|
|
1087
|
+
restoreFrom: options?.resumeFrom,
|
|
1088
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1169
1089
|
});
|
|
1170
1090
|
await poller.poll();
|
|
1171
1091
|
return poller;
|
|
@@ -1231,14 +1151,19 @@ class SqlResourcesImpl {
|
|
|
1231
1151
|
return this.client.sendOperationRequest(args, spec);
|
|
1232
1152
|
};
|
|
1233
1153
|
const sendOperationFn = async (args, spec) => {
|
|
1234
|
-
var _a;
|
|
1235
1154
|
let currentRawResponse = undefined;
|
|
1236
|
-
const providedCallback =
|
|
1155
|
+
const providedCallback = args.options?.onResponse;
|
|
1237
1156
|
const callback = (rawResponse, flatResponse) => {
|
|
1238
1157
|
currentRawResponse = rawResponse;
|
|
1239
|
-
providedCallback
|
|
1158
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1159
|
+
};
|
|
1160
|
+
const updatedArgs = {
|
|
1161
|
+
...args,
|
|
1162
|
+
options: {
|
|
1163
|
+
...args.options,
|
|
1164
|
+
onResponse: callback,
|
|
1165
|
+
},
|
|
1240
1166
|
};
|
|
1241
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1242
1167
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1243
1168
|
return {
|
|
1244
1169
|
flatResponse,
|
|
@@ -1263,8 +1188,8 @@ class SqlResourcesImpl {
|
|
|
1263
1188
|
spec: createUpdateSqlStoredProcedureOperationSpec,
|
|
1264
1189
|
});
|
|
1265
1190
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
1266
|
-
restoreFrom: options
|
|
1267
|
-
intervalInMs: options
|
|
1191
|
+
restoreFrom: options?.resumeFrom,
|
|
1192
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1268
1193
|
});
|
|
1269
1194
|
await poller.poll();
|
|
1270
1195
|
return poller;
|
|
@@ -1298,14 +1223,19 @@ class SqlResourcesImpl {
|
|
|
1298
1223
|
return this.client.sendOperationRequest(args, spec);
|
|
1299
1224
|
};
|
|
1300
1225
|
const sendOperationFn = async (args, spec) => {
|
|
1301
|
-
var _a;
|
|
1302
1226
|
let currentRawResponse = undefined;
|
|
1303
|
-
const providedCallback =
|
|
1227
|
+
const providedCallback = args.options?.onResponse;
|
|
1304
1228
|
const callback = (rawResponse, flatResponse) => {
|
|
1305
1229
|
currentRawResponse = rawResponse;
|
|
1306
|
-
providedCallback
|
|
1230
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1231
|
+
};
|
|
1232
|
+
const updatedArgs = {
|
|
1233
|
+
...args,
|
|
1234
|
+
options: {
|
|
1235
|
+
...args.options,
|
|
1236
|
+
onResponse: callback,
|
|
1237
|
+
},
|
|
1307
1238
|
};
|
|
1308
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1309
1239
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1310
1240
|
return {
|
|
1311
1241
|
flatResponse,
|
|
@@ -1329,8 +1259,8 @@ class SqlResourcesImpl {
|
|
|
1329
1259
|
spec: deleteSqlStoredProcedureOperationSpec,
|
|
1330
1260
|
});
|
|
1331
1261
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
1332
|
-
restoreFrom: options
|
|
1333
|
-
intervalInMs: options
|
|
1262
|
+
restoreFrom: options?.resumeFrom,
|
|
1263
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1334
1264
|
});
|
|
1335
1265
|
await poller.poll();
|
|
1336
1266
|
return poller;
|
|
@@ -1394,14 +1324,19 @@ class SqlResourcesImpl {
|
|
|
1394
1324
|
return this.client.sendOperationRequest(args, spec);
|
|
1395
1325
|
};
|
|
1396
1326
|
const sendOperationFn = async (args, spec) => {
|
|
1397
|
-
var _a;
|
|
1398
1327
|
let currentRawResponse = undefined;
|
|
1399
|
-
const providedCallback =
|
|
1328
|
+
const providedCallback = args.options?.onResponse;
|
|
1400
1329
|
const callback = (rawResponse, flatResponse) => {
|
|
1401
1330
|
currentRawResponse = rawResponse;
|
|
1402
|
-
providedCallback
|
|
1331
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1332
|
+
};
|
|
1333
|
+
const updatedArgs = {
|
|
1334
|
+
...args,
|
|
1335
|
+
options: {
|
|
1336
|
+
...args.options,
|
|
1337
|
+
onResponse: callback,
|
|
1338
|
+
},
|
|
1403
1339
|
};
|
|
1404
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1405
1340
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1406
1341
|
return {
|
|
1407
1342
|
flatResponse,
|
|
@@ -1426,8 +1361,8 @@ class SqlResourcesImpl {
|
|
|
1426
1361
|
spec: createUpdateSqlUserDefinedFunctionOperationSpec,
|
|
1427
1362
|
});
|
|
1428
1363
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
1429
|
-
restoreFrom: options
|
|
1430
|
-
intervalInMs: options
|
|
1364
|
+
restoreFrom: options?.resumeFrom,
|
|
1365
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1431
1366
|
});
|
|
1432
1367
|
await poller.poll();
|
|
1433
1368
|
return poller;
|
|
@@ -1461,14 +1396,19 @@ class SqlResourcesImpl {
|
|
|
1461
1396
|
return this.client.sendOperationRequest(args, spec);
|
|
1462
1397
|
};
|
|
1463
1398
|
const sendOperationFn = async (args, spec) => {
|
|
1464
|
-
var _a;
|
|
1465
1399
|
let currentRawResponse = undefined;
|
|
1466
|
-
const providedCallback =
|
|
1400
|
+
const providedCallback = args.options?.onResponse;
|
|
1467
1401
|
const callback = (rawResponse, flatResponse) => {
|
|
1468
1402
|
currentRawResponse = rawResponse;
|
|
1469
|
-
providedCallback
|
|
1403
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1404
|
+
};
|
|
1405
|
+
const updatedArgs = {
|
|
1406
|
+
...args,
|
|
1407
|
+
options: {
|
|
1408
|
+
...args.options,
|
|
1409
|
+
onResponse: callback,
|
|
1410
|
+
},
|
|
1470
1411
|
};
|
|
1471
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1472
1412
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1473
1413
|
return {
|
|
1474
1414
|
flatResponse,
|
|
@@ -1492,8 +1432,8 @@ class SqlResourcesImpl {
|
|
|
1492
1432
|
spec: deleteSqlUserDefinedFunctionOperationSpec,
|
|
1493
1433
|
});
|
|
1494
1434
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
1495
|
-
restoreFrom: options
|
|
1496
|
-
intervalInMs: options
|
|
1435
|
+
restoreFrom: options?.resumeFrom,
|
|
1436
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1497
1437
|
});
|
|
1498
1438
|
await poller.poll();
|
|
1499
1439
|
return poller;
|
|
@@ -1556,14 +1496,19 @@ class SqlResourcesImpl {
|
|
|
1556
1496
|
return this.client.sendOperationRequest(args, spec);
|
|
1557
1497
|
};
|
|
1558
1498
|
const sendOperationFn = async (args, spec) => {
|
|
1559
|
-
var _a;
|
|
1560
1499
|
let currentRawResponse = undefined;
|
|
1561
|
-
const providedCallback =
|
|
1500
|
+
const providedCallback = args.options?.onResponse;
|
|
1562
1501
|
const callback = (rawResponse, flatResponse) => {
|
|
1563
1502
|
currentRawResponse = rawResponse;
|
|
1564
|
-
providedCallback
|
|
1503
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1504
|
+
};
|
|
1505
|
+
const updatedArgs = {
|
|
1506
|
+
...args,
|
|
1507
|
+
options: {
|
|
1508
|
+
...args.options,
|
|
1509
|
+
onResponse: callback,
|
|
1510
|
+
},
|
|
1565
1511
|
};
|
|
1566
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1567
1512
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1568
1513
|
return {
|
|
1569
1514
|
flatResponse,
|
|
@@ -1588,8 +1533,8 @@ class SqlResourcesImpl {
|
|
|
1588
1533
|
spec: createUpdateSqlTriggerOperationSpec,
|
|
1589
1534
|
});
|
|
1590
1535
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
1591
|
-
restoreFrom: options
|
|
1592
|
-
intervalInMs: options
|
|
1536
|
+
restoreFrom: options?.resumeFrom,
|
|
1537
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1593
1538
|
});
|
|
1594
1539
|
await poller.poll();
|
|
1595
1540
|
return poller;
|
|
@@ -1622,14 +1567,19 @@ class SqlResourcesImpl {
|
|
|
1622
1567
|
return this.client.sendOperationRequest(args, spec);
|
|
1623
1568
|
};
|
|
1624
1569
|
const sendOperationFn = async (args, spec) => {
|
|
1625
|
-
var _a;
|
|
1626
1570
|
let currentRawResponse = undefined;
|
|
1627
|
-
const providedCallback =
|
|
1571
|
+
const providedCallback = args.options?.onResponse;
|
|
1628
1572
|
const callback = (rawResponse, flatResponse) => {
|
|
1629
1573
|
currentRawResponse = rawResponse;
|
|
1630
|
-
providedCallback
|
|
1574
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1575
|
+
};
|
|
1576
|
+
const updatedArgs = {
|
|
1577
|
+
...args,
|
|
1578
|
+
options: {
|
|
1579
|
+
...args.options,
|
|
1580
|
+
onResponse: callback,
|
|
1581
|
+
},
|
|
1631
1582
|
};
|
|
1632
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1633
1583
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1634
1584
|
return {
|
|
1635
1585
|
flatResponse,
|
|
@@ -1653,8 +1603,8 @@ class SqlResourcesImpl {
|
|
|
1653
1603
|
spec: deleteSqlTriggerOperationSpec,
|
|
1654
1604
|
});
|
|
1655
1605
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
1656
|
-
restoreFrom: options
|
|
1657
|
-
intervalInMs: options
|
|
1606
|
+
restoreFrom: options?.resumeFrom,
|
|
1607
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1658
1608
|
});
|
|
1659
1609
|
await poller.poll();
|
|
1660
1610
|
return poller;
|
|
@@ -1696,14 +1646,19 @@ class SqlResourcesImpl {
|
|
|
1696
1646
|
return this.client.sendOperationRequest(args, spec);
|
|
1697
1647
|
};
|
|
1698
1648
|
const sendOperationFn = async (args, spec) => {
|
|
1699
|
-
var _a;
|
|
1700
1649
|
let currentRawResponse = undefined;
|
|
1701
|
-
const providedCallback =
|
|
1650
|
+
const providedCallback = args.options?.onResponse;
|
|
1702
1651
|
const callback = (rawResponse, flatResponse) => {
|
|
1703
1652
|
currentRawResponse = rawResponse;
|
|
1704
|
-
providedCallback
|
|
1653
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1654
|
+
};
|
|
1655
|
+
const updatedArgs = {
|
|
1656
|
+
...args,
|
|
1657
|
+
options: {
|
|
1658
|
+
...args.options,
|
|
1659
|
+
onResponse: callback,
|
|
1660
|
+
},
|
|
1705
1661
|
};
|
|
1706
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1707
1662
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1708
1663
|
return {
|
|
1709
1664
|
flatResponse,
|
|
@@ -1726,8 +1681,8 @@ class SqlResourcesImpl {
|
|
|
1726
1681
|
spec: createUpdateSqlRoleDefinitionOperationSpec,
|
|
1727
1682
|
});
|
|
1728
1683
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
1729
|
-
restoreFrom: options
|
|
1730
|
-
intervalInMs: options
|
|
1684
|
+
restoreFrom: options?.resumeFrom,
|
|
1685
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1731
1686
|
});
|
|
1732
1687
|
await poller.poll();
|
|
1733
1688
|
return poller;
|
|
@@ -1757,14 +1712,19 @@ class SqlResourcesImpl {
|
|
|
1757
1712
|
return this.client.sendOperationRequest(args, spec);
|
|
1758
1713
|
};
|
|
1759
1714
|
const sendOperationFn = async (args, spec) => {
|
|
1760
|
-
var _a;
|
|
1761
1715
|
let currentRawResponse = undefined;
|
|
1762
|
-
const providedCallback =
|
|
1716
|
+
const providedCallback = args.options?.onResponse;
|
|
1763
1717
|
const callback = (rawResponse, flatResponse) => {
|
|
1764
1718
|
currentRawResponse = rawResponse;
|
|
1765
|
-
providedCallback
|
|
1719
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1720
|
+
};
|
|
1721
|
+
const updatedArgs = {
|
|
1722
|
+
...args,
|
|
1723
|
+
options: {
|
|
1724
|
+
...args.options,
|
|
1725
|
+
onResponse: callback,
|
|
1726
|
+
},
|
|
1766
1727
|
};
|
|
1767
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1768
1728
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1769
1729
|
return {
|
|
1770
1730
|
flatResponse,
|
|
@@ -1781,8 +1741,8 @@ class SqlResourcesImpl {
|
|
|
1781
1741
|
spec: deleteSqlRoleDefinitionOperationSpec,
|
|
1782
1742
|
});
|
|
1783
1743
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
1784
|
-
restoreFrom: options
|
|
1785
|
-
intervalInMs: options
|
|
1744
|
+
restoreFrom: options?.resumeFrom,
|
|
1745
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1786
1746
|
});
|
|
1787
1747
|
await poller.poll();
|
|
1788
1748
|
return poller;
|
|
@@ -1831,14 +1791,19 @@ class SqlResourcesImpl {
|
|
|
1831
1791
|
return this.client.sendOperationRequest(args, spec);
|
|
1832
1792
|
};
|
|
1833
1793
|
const sendOperationFn = async (args, spec) => {
|
|
1834
|
-
var _a;
|
|
1835
1794
|
let currentRawResponse = undefined;
|
|
1836
|
-
const providedCallback =
|
|
1795
|
+
const providedCallback = args.options?.onResponse;
|
|
1837
1796
|
const callback = (rawResponse, flatResponse) => {
|
|
1838
1797
|
currentRawResponse = rawResponse;
|
|
1839
|
-
providedCallback
|
|
1798
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1799
|
+
};
|
|
1800
|
+
const updatedArgs = {
|
|
1801
|
+
...args,
|
|
1802
|
+
options: {
|
|
1803
|
+
...args.options,
|
|
1804
|
+
onResponse: callback,
|
|
1805
|
+
},
|
|
1840
1806
|
};
|
|
1841
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1842
1807
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1843
1808
|
return {
|
|
1844
1809
|
flatResponse,
|
|
@@ -1861,8 +1826,8 @@ class SqlResourcesImpl {
|
|
|
1861
1826
|
spec: createUpdateSqlRoleAssignmentOperationSpec,
|
|
1862
1827
|
});
|
|
1863
1828
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
1864
|
-
restoreFrom: options
|
|
1865
|
-
intervalInMs: options
|
|
1829
|
+
restoreFrom: options?.resumeFrom,
|
|
1830
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1866
1831
|
});
|
|
1867
1832
|
await poller.poll();
|
|
1868
1833
|
return poller;
|
|
@@ -1892,14 +1857,19 @@ class SqlResourcesImpl {
|
|
|
1892
1857
|
return this.client.sendOperationRequest(args, spec);
|
|
1893
1858
|
};
|
|
1894
1859
|
const sendOperationFn = async (args, spec) => {
|
|
1895
|
-
var _a;
|
|
1896
1860
|
let currentRawResponse = undefined;
|
|
1897
|
-
const providedCallback =
|
|
1861
|
+
const providedCallback = args.options?.onResponse;
|
|
1898
1862
|
const callback = (rawResponse, flatResponse) => {
|
|
1899
1863
|
currentRawResponse = rawResponse;
|
|
1900
|
-
providedCallback
|
|
1864
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1865
|
+
};
|
|
1866
|
+
const updatedArgs = {
|
|
1867
|
+
...args,
|
|
1868
|
+
options: {
|
|
1869
|
+
...args.options,
|
|
1870
|
+
onResponse: callback,
|
|
1871
|
+
},
|
|
1901
1872
|
};
|
|
1902
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1903
1873
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1904
1874
|
return {
|
|
1905
1875
|
flatResponse,
|
|
@@ -1916,8 +1886,8 @@ class SqlResourcesImpl {
|
|
|
1916
1886
|
spec: deleteSqlRoleAssignmentOperationSpec,
|
|
1917
1887
|
});
|
|
1918
1888
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
1919
|
-
restoreFrom: options
|
|
1920
|
-
intervalInMs: options
|
|
1889
|
+
restoreFrom: options?.resumeFrom,
|
|
1890
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1921
1891
|
});
|
|
1922
1892
|
await poller.poll();
|
|
1923
1893
|
return poller;
|
|
@@ -1956,14 +1926,19 @@ class SqlResourcesImpl {
|
|
|
1956
1926
|
return this.client.sendOperationRequest(args, spec);
|
|
1957
1927
|
};
|
|
1958
1928
|
const sendOperationFn = async (args, spec) => {
|
|
1959
|
-
var _a;
|
|
1960
1929
|
let currentRawResponse = undefined;
|
|
1961
|
-
const providedCallback =
|
|
1930
|
+
const providedCallback = args.options?.onResponse;
|
|
1962
1931
|
const callback = (rawResponse, flatResponse) => {
|
|
1963
1932
|
currentRawResponse = rawResponse;
|
|
1964
|
-
providedCallback
|
|
1933
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1934
|
+
};
|
|
1935
|
+
const updatedArgs = {
|
|
1936
|
+
...args,
|
|
1937
|
+
options: {
|
|
1938
|
+
...args.options,
|
|
1939
|
+
onResponse: callback,
|
|
1940
|
+
},
|
|
1965
1941
|
};
|
|
1966
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1967
1942
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1968
1943
|
return {
|
|
1969
1944
|
flatResponse,
|
|
@@ -1987,8 +1962,8 @@ class SqlResourcesImpl {
|
|
|
1987
1962
|
spec: retrieveContinuousBackupInformationOperationSpec,
|
|
1988
1963
|
});
|
|
1989
1964
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
1990
|
-
restoreFrom: options
|
|
1991
|
-
intervalInMs: options
|
|
1965
|
+
restoreFrom: options?.resumeFrom,
|
|
1966
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1992
1967
|
resourceLocationConfig: "location",
|
|
1993
1968
|
});
|
|
1994
1969
|
await poller.poll();
|