@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 TableResources operations. */
|
|
19
19
|
class TableResourcesImpl {
|
|
20
|
+
client;
|
|
20
21
|
/**
|
|
21
22
|
* Initialize a new instance of the class TableResources class.
|
|
22
23
|
* @param client Reference to the service client
|
|
@@ -40,39 +41,22 @@ class TableResourcesImpl {
|
|
|
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.listTablesPagingPage(resourceGroupName, accountName, options, settings);
|
|
47
48
|
},
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
|
-
listTablesPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
yield yield tslib_1.__await(result.value || []);
|
|
55
|
-
});
|
|
51
|
+
async *listTablesPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
52
|
+
let result;
|
|
53
|
+
result = await this._listTables(resourceGroupName, accountName, options);
|
|
54
|
+
yield result.value || [];
|
|
56
55
|
}
|
|
57
|
-
listTablesPagingAll(resourceGroupName, accountName, options) {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listTablesPagingPage(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 *listTablesPagingAll(resourceGroupName, accountName, options) {
|
|
57
|
+
for await (const page of this.listTablesPagingPage(resourceGroupName, accountName, options)) {
|
|
58
|
+
yield* page;
|
|
59
|
+
}
|
|
76
60
|
}
|
|
77
61
|
/**
|
|
78
62
|
* Lists the Tables under an existing Azure Cosmos DB database account.
|
|
@@ -106,14 +90,19 @@ class TableResourcesImpl {
|
|
|
106
90
|
return this.client.sendOperationRequest(args, spec);
|
|
107
91
|
};
|
|
108
92
|
const sendOperationFn = async (args, spec) => {
|
|
109
|
-
var _a;
|
|
110
93
|
let currentRawResponse = undefined;
|
|
111
|
-
const providedCallback =
|
|
94
|
+
const providedCallback = args.options?.onResponse;
|
|
112
95
|
const callback = (rawResponse, flatResponse) => {
|
|
113
96
|
currentRawResponse = rawResponse;
|
|
114
|
-
providedCallback
|
|
97
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
98
|
+
};
|
|
99
|
+
const updatedArgs = {
|
|
100
|
+
...args,
|
|
101
|
+
options: {
|
|
102
|
+
...args.options,
|
|
103
|
+
onResponse: callback,
|
|
104
|
+
},
|
|
115
105
|
};
|
|
116
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
117
106
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
118
107
|
return {
|
|
119
108
|
flatResponse,
|
|
@@ -136,8 +125,8 @@ class TableResourcesImpl {
|
|
|
136
125
|
spec: createUpdateTableOperationSpec,
|
|
137
126
|
});
|
|
138
127
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
139
|
-
restoreFrom: options
|
|
140
|
-
intervalInMs: options
|
|
128
|
+
restoreFrom: options?.resumeFrom,
|
|
129
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
141
130
|
});
|
|
142
131
|
await poller.poll();
|
|
143
132
|
return poller;
|
|
@@ -166,14 +155,19 @@ class TableResourcesImpl {
|
|
|
166
155
|
return this.client.sendOperationRequest(args, spec);
|
|
167
156
|
};
|
|
168
157
|
const sendOperationFn = async (args, spec) => {
|
|
169
|
-
var _a;
|
|
170
158
|
let currentRawResponse = undefined;
|
|
171
|
-
const providedCallback =
|
|
159
|
+
const providedCallback = args.options?.onResponse;
|
|
172
160
|
const callback = (rawResponse, flatResponse) => {
|
|
173
161
|
currentRawResponse = rawResponse;
|
|
174
|
-
providedCallback
|
|
162
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
163
|
+
};
|
|
164
|
+
const updatedArgs = {
|
|
165
|
+
...args,
|
|
166
|
+
options: {
|
|
167
|
+
...args.options,
|
|
168
|
+
onResponse: callback,
|
|
169
|
+
},
|
|
175
170
|
};
|
|
176
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
177
171
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
178
172
|
return {
|
|
179
173
|
flatResponse,
|
|
@@ -190,8 +184,8 @@ class TableResourcesImpl {
|
|
|
190
184
|
spec: deleteTableOperationSpec,
|
|
191
185
|
});
|
|
192
186
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
193
|
-
restoreFrom: options
|
|
194
|
-
intervalInMs: options
|
|
187
|
+
restoreFrom: options?.resumeFrom,
|
|
188
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
195
189
|
});
|
|
196
190
|
await poller.poll();
|
|
197
191
|
return poller;
|
|
@@ -232,14 +226,19 @@ class TableResourcesImpl {
|
|
|
232
226
|
return this.client.sendOperationRequest(args, spec);
|
|
233
227
|
};
|
|
234
228
|
const sendOperationFn = async (args, spec) => {
|
|
235
|
-
var _a;
|
|
236
229
|
let currentRawResponse = undefined;
|
|
237
|
-
const providedCallback =
|
|
230
|
+
const providedCallback = args.options?.onResponse;
|
|
238
231
|
const callback = (rawResponse, flatResponse) => {
|
|
239
232
|
currentRawResponse = rawResponse;
|
|
240
|
-
providedCallback
|
|
233
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
234
|
+
};
|
|
235
|
+
const updatedArgs = {
|
|
236
|
+
...args,
|
|
237
|
+
options: {
|
|
238
|
+
...args.options,
|
|
239
|
+
onResponse: callback,
|
|
240
|
+
},
|
|
241
241
|
};
|
|
242
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
243
242
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
244
243
|
return {
|
|
245
244
|
flatResponse,
|
|
@@ -262,8 +261,8 @@ class TableResourcesImpl {
|
|
|
262
261
|
spec: updateTableThroughputOperationSpec,
|
|
263
262
|
});
|
|
264
263
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
265
|
-
restoreFrom: options
|
|
266
|
-
intervalInMs: options
|
|
264
|
+
restoreFrom: options?.resumeFrom,
|
|
265
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
267
266
|
});
|
|
268
267
|
await poller.poll();
|
|
269
268
|
return poller;
|
|
@@ -293,14 +292,19 @@ class TableResourcesImpl {
|
|
|
293
292
|
return this.client.sendOperationRequest(args, spec);
|
|
294
293
|
};
|
|
295
294
|
const sendOperationFn = async (args, spec) => {
|
|
296
|
-
var _a;
|
|
297
295
|
let currentRawResponse = undefined;
|
|
298
|
-
const providedCallback =
|
|
296
|
+
const providedCallback = args.options?.onResponse;
|
|
299
297
|
const callback = (rawResponse, flatResponse) => {
|
|
300
298
|
currentRawResponse = rawResponse;
|
|
301
|
-
providedCallback
|
|
299
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
300
|
+
};
|
|
301
|
+
const updatedArgs = {
|
|
302
|
+
...args,
|
|
303
|
+
options: {
|
|
304
|
+
...args.options,
|
|
305
|
+
onResponse: callback,
|
|
306
|
+
},
|
|
302
307
|
};
|
|
303
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
304
308
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
305
309
|
return {
|
|
306
310
|
flatResponse,
|
|
@@ -317,8 +321,8 @@ class TableResourcesImpl {
|
|
|
317
321
|
spec: migrateTableToAutoscaleOperationSpec,
|
|
318
322
|
});
|
|
319
323
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
320
|
-
restoreFrom: options
|
|
321
|
-
intervalInMs: options
|
|
324
|
+
restoreFrom: options?.resumeFrom,
|
|
325
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
322
326
|
});
|
|
323
327
|
await poller.poll();
|
|
324
328
|
return poller;
|
|
@@ -346,14 +350,19 @@ class TableResourcesImpl {
|
|
|
346
350
|
return this.client.sendOperationRequest(args, spec);
|
|
347
351
|
};
|
|
348
352
|
const sendOperationFn = async (args, spec) => {
|
|
349
|
-
var _a;
|
|
350
353
|
let currentRawResponse = undefined;
|
|
351
|
-
const providedCallback =
|
|
354
|
+
const providedCallback = args.options?.onResponse;
|
|
352
355
|
const callback = (rawResponse, flatResponse) => {
|
|
353
356
|
currentRawResponse = rawResponse;
|
|
354
|
-
providedCallback
|
|
357
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
358
|
+
};
|
|
359
|
+
const updatedArgs = {
|
|
360
|
+
...args,
|
|
361
|
+
options: {
|
|
362
|
+
...args.options,
|
|
363
|
+
onResponse: callback,
|
|
364
|
+
},
|
|
355
365
|
};
|
|
356
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
357
366
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
358
367
|
return {
|
|
359
368
|
flatResponse,
|
|
@@ -370,8 +379,8 @@ class TableResourcesImpl {
|
|
|
370
379
|
spec: migrateTableToManualThroughputOperationSpec,
|
|
371
380
|
});
|
|
372
381
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
373
|
-
restoreFrom: options
|
|
374
|
-
intervalInMs: options
|
|
382
|
+
restoreFrom: options?.resumeFrom,
|
|
383
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
375
384
|
});
|
|
376
385
|
await poller.poll();
|
|
377
386
|
return poller;
|
|
@@ -400,14 +409,19 @@ class TableResourcesImpl {
|
|
|
400
409
|
return this.client.sendOperationRequest(args, spec);
|
|
401
410
|
};
|
|
402
411
|
const sendOperationFn = async (args, spec) => {
|
|
403
|
-
var _a;
|
|
404
412
|
let currentRawResponse = undefined;
|
|
405
|
-
const providedCallback =
|
|
413
|
+
const providedCallback = args.options?.onResponse;
|
|
406
414
|
const callback = (rawResponse, flatResponse) => {
|
|
407
415
|
currentRawResponse = rawResponse;
|
|
408
|
-
providedCallback
|
|
416
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
417
|
+
};
|
|
418
|
+
const updatedArgs = {
|
|
419
|
+
...args,
|
|
420
|
+
options: {
|
|
421
|
+
...args.options,
|
|
422
|
+
onResponse: callback,
|
|
423
|
+
},
|
|
409
424
|
};
|
|
410
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
411
425
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
412
426
|
return {
|
|
413
427
|
flatResponse,
|
|
@@ -424,8 +438,8 @@ class TableResourcesImpl {
|
|
|
424
438
|
spec: retrieveContinuousBackupInformationOperationSpec,
|
|
425
439
|
});
|
|
426
440
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
427
|
-
restoreFrom: options
|
|
428
|
-
intervalInMs: options
|
|
441
|
+
restoreFrom: options?.resumeFrom,
|
|
442
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
429
443
|
resourceLocationConfig: "location",
|
|
430
444
|
});
|
|
431
445
|
await poller.poll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tableResources.js","sourceRoot":"","sources":["../../../src/operations/tableResources.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AA0B9C,4CAA4C;AAC5C,kDAAkD;AAClD,MAAa,kBAAkB;IAG7B;;;OAGG;IACH,YAAY,MAAgC;QAC1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,UAAU,CACf,iBAAyB,EACzB,WAAmB,EACnB,OAAgD;QAEhD,MAAM,IAAI,GAAG,IAAI,CAAC,mBAAmB,CACnC,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,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AAC,QAAQ;IAChC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { TableResources } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CosmosDBManagementClient } from \"../cosmosDBManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n TableGetResults,\n TableResourcesListTablesOptionalParams,\n TableResourcesListTablesResponse,\n TableResourcesGetTableOptionalParams,\n TableResourcesGetTableResponse,\n TableCreateUpdateParameters,\n TableResourcesCreateUpdateTableOptionalParams,\n TableResourcesCreateUpdateTableResponse,\n TableResourcesDeleteTableOptionalParams,\n TableResourcesDeleteTableResponse,\n TableResourcesGetTableThroughputOptionalParams,\n TableResourcesGetTableThroughputResponse,\n ThroughputSettingsUpdateParameters,\n TableResourcesUpdateTableThroughputOptionalParams,\n TableResourcesUpdateTableThroughputResponse,\n TableResourcesMigrateTableToAutoscaleOptionalParams,\n TableResourcesMigrateTableToAutoscaleResponse,\n TableResourcesMigrateTableToManualThroughputOptionalParams,\n TableResourcesMigrateTableToManualThroughputResponse,\n ContinuousBackupRestoreLocation,\n TableResourcesRetrieveContinuousBackupInformationOptionalParams,\n TableResourcesRetrieveContinuousBackupInformationResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing TableResources operations. */\nexport class TableResourcesImpl implements TableResources {\n private readonly client: CosmosDBManagementClient;\n\n /**\n * Initialize a new instance of the class TableResources class.\n * @param client Reference to the service client\n */\n constructor(client: CosmosDBManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the Tables under an existing Azure Cosmos DB database account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param options The options parameters.\n */\n public listTables(\n resourceGroupName: string,\n accountName: string,\n options?: TableResourcesListTablesOptionalParams,\n ): PagedAsyncIterableIterator<TableGetResults> {\n const iter = this.listTablesPagingAll(\n resourceGroupName,\n accountName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listTablesPagingPage(\n resourceGroupName,\n accountName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listTablesPagingPage(\n resourceGroupName: string,\n accountName: string,\n options?: TableResourcesListTablesOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<TableGetResults[]> {\n let result: TableResourcesListTablesResponse;\n result = await this._listTables(resourceGroupName, accountName, options);\n yield result.value || [];\n }\n\n private async *listTablesPagingAll(\n resourceGroupName: string,\n accountName: string,\n options?: TableResourcesListTablesOptionalParams,\n ): AsyncIterableIterator<TableGetResults> {\n for await (const page of this.listTablesPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the Tables under an existing Azure Cosmos DB database account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param options The options parameters.\n */\n private _listTables(\n resourceGroupName: string,\n accountName: string,\n options?: TableResourcesListTablesOptionalParams,\n ): Promise<TableResourcesListTablesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listTablesOperationSpec,\n );\n }\n\n /**\n * Gets the Tables under an existing Azure Cosmos DB database account with the provided name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param tableName Cosmos DB table name.\n * @param options The options parameters.\n */\n getTable(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n options?: TableResourcesGetTableOptionalParams,\n ): Promise<TableResourcesGetTableResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, tableName, options },\n getTableOperationSpec,\n );\n }\n\n /**\n * Create or update an Azure Cosmos DB Table\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param tableName Cosmos DB table name.\n * @param createUpdateTableParameters The parameters to provide for the current Table.\n * @param options The options parameters.\n */\n async beginCreateUpdateTable(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n createUpdateTableParameters: TableCreateUpdateParameters,\n options?: TableResourcesCreateUpdateTableOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<TableResourcesCreateUpdateTableResponse>,\n TableResourcesCreateUpdateTableResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<TableResourcesCreateUpdateTableResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n accountName,\n tableName,\n createUpdateTableParameters,\n options,\n },\n spec: createUpdateTableOperationSpec,\n });\n const poller = await createHttpPoller<\n TableResourcesCreateUpdateTableResponse,\n OperationState<TableResourcesCreateUpdateTableResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create or update an Azure Cosmos DB Table\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param tableName Cosmos DB table name.\n * @param createUpdateTableParameters The parameters to provide for the current Table.\n * @param options The options parameters.\n */\n async beginCreateUpdateTableAndWait(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n createUpdateTableParameters: TableCreateUpdateParameters,\n options?: TableResourcesCreateUpdateTableOptionalParams,\n ): Promise<TableResourcesCreateUpdateTableResponse> {\n const poller = await this.beginCreateUpdateTable(\n resourceGroupName,\n accountName,\n tableName,\n createUpdateTableParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes an existing Azure Cosmos DB Table.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param tableName Cosmos DB table name.\n * @param options The options parameters.\n */\n async beginDeleteTable(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n options?: TableResourcesDeleteTableOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<TableResourcesDeleteTableResponse>,\n TableResourcesDeleteTableResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<TableResourcesDeleteTableResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, accountName, tableName, options },\n spec: deleteTableOperationSpec,\n });\n const poller = await createHttpPoller<\n TableResourcesDeleteTableResponse,\n OperationState<TableResourcesDeleteTableResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes an existing Azure Cosmos DB Table.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param tableName Cosmos DB table name.\n * @param options The options parameters.\n */\n async beginDeleteTableAndWait(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n options?: TableResourcesDeleteTableOptionalParams,\n ): Promise<TableResourcesDeleteTableResponse> {\n const poller = await this.beginDeleteTable(\n resourceGroupName,\n accountName,\n tableName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets the RUs per second of the Table under an existing Azure Cosmos DB database account with the\n * provided name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param tableName Cosmos DB table name.\n * @param options The options parameters.\n */\n getTableThroughput(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n options?: TableResourcesGetTableThroughputOptionalParams,\n ): Promise<TableResourcesGetTableThroughputResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, tableName, options },\n getTableThroughputOperationSpec,\n );\n }\n\n /**\n * Update RUs per second of an Azure Cosmos DB Table\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param tableName Cosmos DB table name.\n * @param updateThroughputParameters The parameters to provide for the RUs per second of the current\n * Table.\n * @param options The options parameters.\n */\n async beginUpdateTableThroughput(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n updateThroughputParameters: ThroughputSettingsUpdateParameters,\n options?: TableResourcesUpdateTableThroughputOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<TableResourcesUpdateTableThroughputResponse>,\n TableResourcesUpdateTableThroughputResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<TableResourcesUpdateTableThroughputResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n accountName,\n tableName,\n updateThroughputParameters,\n options,\n },\n spec: updateTableThroughputOperationSpec,\n });\n const poller = await createHttpPoller<\n TableResourcesUpdateTableThroughputResponse,\n OperationState<TableResourcesUpdateTableThroughputResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update RUs per second of an Azure Cosmos DB Table\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param tableName Cosmos DB table name.\n * @param updateThroughputParameters The parameters to provide for the RUs per second of the current\n * Table.\n * @param options The options parameters.\n */\n async beginUpdateTableThroughputAndWait(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n updateThroughputParameters: ThroughputSettingsUpdateParameters,\n options?: TableResourcesUpdateTableThroughputOptionalParams,\n ): Promise<TableResourcesUpdateTableThroughputResponse> {\n const poller = await this.beginUpdateTableThroughput(\n resourceGroupName,\n accountName,\n tableName,\n updateThroughputParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Migrate an Azure Cosmos DB Table from manual throughput to autoscale\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param tableName Cosmos DB table name.\n * @param options The options parameters.\n */\n async beginMigrateTableToAutoscale(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n options?: TableResourcesMigrateTableToAutoscaleOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<TableResourcesMigrateTableToAutoscaleResponse>,\n TableResourcesMigrateTableToAutoscaleResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<TableResourcesMigrateTableToAutoscaleResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, accountName, tableName, options },\n spec: migrateTableToAutoscaleOperationSpec,\n });\n const poller = await createHttpPoller<\n TableResourcesMigrateTableToAutoscaleResponse,\n OperationState<TableResourcesMigrateTableToAutoscaleResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Migrate an Azure Cosmos DB Table from manual throughput to autoscale\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param tableName Cosmos DB table name.\n * @param options The options parameters.\n */\n async beginMigrateTableToAutoscaleAndWait(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n options?: TableResourcesMigrateTableToAutoscaleOptionalParams,\n ): Promise<TableResourcesMigrateTableToAutoscaleResponse> {\n const poller = await this.beginMigrateTableToAutoscale(\n resourceGroupName,\n accountName,\n tableName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Migrate an Azure Cosmos DB Table from autoscale to manual throughput\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param tableName Cosmos DB table name.\n * @param options The options parameters.\n */\n async beginMigrateTableToManualThroughput(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n options?: TableResourcesMigrateTableToManualThroughputOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<TableResourcesMigrateTableToManualThroughputResponse>,\n TableResourcesMigrateTableToManualThroughputResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<TableResourcesMigrateTableToManualThroughputResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, accountName, tableName, options },\n spec: migrateTableToManualThroughputOperationSpec,\n });\n const poller = await createHttpPoller<\n TableResourcesMigrateTableToManualThroughputResponse,\n OperationState<TableResourcesMigrateTableToManualThroughputResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Migrate an Azure Cosmos DB Table from autoscale to manual throughput\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param tableName Cosmos DB table name.\n * @param options The options parameters.\n */\n async beginMigrateTableToManualThroughputAndWait(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n options?: TableResourcesMigrateTableToManualThroughputOptionalParams,\n ): Promise<TableResourcesMigrateTableToManualThroughputResponse> {\n const poller = await this.beginMigrateTableToManualThroughput(\n resourceGroupName,\n accountName,\n tableName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Retrieves continuous backup information for a table.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param tableName Cosmos DB table name.\n * @param location The name of the continuous backup restore location.\n * @param options The options parameters.\n */\n async beginRetrieveContinuousBackupInformation(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n location: ContinuousBackupRestoreLocation,\n options?: TableResourcesRetrieveContinuousBackupInformationOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<TableResourcesRetrieveContinuousBackupInformationResponse>,\n TableResourcesRetrieveContinuousBackupInformationResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<TableResourcesRetrieveContinuousBackupInformationResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, accountName, tableName, location, options },\n spec: retrieveContinuousBackupInformationOperationSpec,\n });\n const poller = await createHttpPoller<\n TableResourcesRetrieveContinuousBackupInformationResponse,\n OperationState<TableResourcesRetrieveContinuousBackupInformationResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Retrieves continuous backup information for a table.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param tableName Cosmos DB table name.\n * @param location The name of the continuous backup restore location.\n * @param options The options parameters.\n */\n async beginRetrieveContinuousBackupInformationAndWait(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n location: ContinuousBackupRestoreLocation,\n options?: TableResourcesRetrieveContinuousBackupInformationOptionalParams,\n ): Promise<TableResourcesRetrieveContinuousBackupInformationResponse> {\n const poller = await this.beginRetrieveContinuousBackupInformation(\n resourceGroupName,\n accountName,\n tableName,\n location,\n options,\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listTablesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TableListResult,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.accountName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getTableOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TableGetResults,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.tableName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createUpdateTableOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.TableGetResults,\n },\n 201: {\n bodyMapper: Mappers.TableGetResults,\n },\n 202: {\n bodyMapper: Mappers.TableGetResults,\n },\n 204: {\n bodyMapper: Mappers.TableGetResults,\n },\n },\n requestBody: Parameters.createUpdateTableParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.tableName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteTableOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.TableResourcesDeleteTableHeaders,\n },\n 201: {\n headersMapper: Mappers.TableResourcesDeleteTableHeaders,\n },\n 202: {\n headersMapper: Mappers.TableResourcesDeleteTableHeaders,\n },\n 204: {\n headersMapper: Mappers.TableResourcesDeleteTableHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.tableName,\n ],\n serializer,\n};\nconst getTableThroughputOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ThroughputSettingsGetResults,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.tableName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateTableThroughputOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ThroughputSettingsGetResults,\n },\n 201: {\n bodyMapper: Mappers.ThroughputSettingsGetResults,\n },\n 202: {\n bodyMapper: Mappers.ThroughputSettingsGetResults,\n },\n 204: {\n bodyMapper: Mappers.ThroughputSettingsGetResults,\n },\n },\n requestBody: Parameters.updateThroughputParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.tableName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst migrateTableToAutoscaleOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default/migrateToAutoscale\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ThroughputSettingsGetResults,\n },\n 201: {\n bodyMapper: Mappers.ThroughputSettingsGetResults,\n },\n 202: {\n bodyMapper: Mappers.ThroughputSettingsGetResults,\n },\n 204: {\n bodyMapper: Mappers.ThroughputSettingsGetResults,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.tableName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst migrateTableToManualThroughputOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default/migrateToManualThroughput\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ThroughputSettingsGetResults,\n },\n 201: {\n bodyMapper: Mappers.ThroughputSettingsGetResults,\n },\n 202: {\n bodyMapper: Mappers.ThroughputSettingsGetResults,\n },\n 204: {\n bodyMapper: Mappers.ThroughputSettingsGetResults,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.tableName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst retrieveContinuousBackupInformationOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/retrieveContinuousBackupInformation\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupInformation,\n },\n 201: {\n bodyMapper: Mappers.BackupInformation,\n },\n 202: {\n bodyMapper: Mappers.BackupInformation,\n },\n 204: {\n bodyMapper: Mappers.BackupInformation,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.location,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.tableName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n };\n"]}
|
|
1
|
+
{"version":3,"file":"tableResources.js","sourceRoot":"","sources":["../../../src/operations/tableResources.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AA0B9C,4CAA4C;AAC5C,kDAAkD;AAClD,MAAa,kBAAkB;IACZ,MAAM,CAA2B;IAElD;;;OAGG;IACH,YAAY,MAAgC;QAC1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,UAAU,CACf,iBAAyB,EACzB,W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;IAChC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { TableResources } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CosmosDBManagementClient } from \"../cosmosDBManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n TableGetResults,\n TableResourcesListTablesOptionalParams,\n TableResourcesListTablesResponse,\n TableResourcesGetTableOptionalParams,\n TableResourcesGetTableResponse,\n TableCreateUpdateParameters,\n TableResourcesCreateUpdateTableOptionalParams,\n TableResourcesCreateUpdateTableResponse,\n TableResourcesDeleteTableOptionalParams,\n TableResourcesDeleteTableResponse,\n TableResourcesGetTableThroughputOptionalParams,\n TableResourcesGetTableThroughputResponse,\n ThroughputSettingsUpdateParameters,\n TableResourcesUpdateTableThroughputOptionalParams,\n TableResourcesUpdateTableThroughputResponse,\n TableResourcesMigrateTableToAutoscaleOptionalParams,\n TableResourcesMigrateTableToAutoscaleResponse,\n TableResourcesMigrateTableToManualThroughputOptionalParams,\n TableResourcesMigrateTableToManualThroughputResponse,\n ContinuousBackupRestoreLocation,\n TableResourcesRetrieveContinuousBackupInformationOptionalParams,\n TableResourcesRetrieveContinuousBackupInformationResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing TableResources operations. */\nexport class TableResourcesImpl implements TableResources {\n private readonly client: CosmosDBManagementClient;\n\n /**\n * Initialize a new instance of the class TableResources class.\n * @param client Reference to the service client\n */\n constructor(client: CosmosDBManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the Tables under an existing Azure Cosmos DB database account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param options The options parameters.\n */\n public listTables(\n resourceGroupName: string,\n accountName: string,\n options?: TableResourcesListTablesOptionalParams,\n ): PagedAsyncIterableIterator<TableGetResults> {\n const iter = this.listTablesPagingAll(\n resourceGroupName,\n accountName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listTablesPagingPage(\n resourceGroupName,\n accountName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listTablesPagingPage(\n resourceGroupName: string,\n accountName: string,\n options?: TableResourcesListTablesOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<TableGetResults[]> {\n let result: TableResourcesListTablesResponse;\n result = await this._listTables(resourceGroupName, accountName, options);\n yield result.value || [];\n }\n\n private async *listTablesPagingAll(\n resourceGroupName: string,\n accountName: string,\n options?: TableResourcesListTablesOptionalParams,\n ): AsyncIterableIterator<TableGetResults> {\n for await (const page of this.listTablesPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the Tables under an existing Azure Cosmos DB database account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param options The options parameters.\n */\n private _listTables(\n resourceGroupName: string,\n accountName: string,\n options?: TableResourcesListTablesOptionalParams,\n ): Promise<TableResourcesListTablesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listTablesOperationSpec,\n );\n }\n\n /**\n * Gets the Tables under an existing Azure Cosmos DB database account with the provided name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param tableName Cosmos DB table name.\n * @param options The options parameters.\n */\n getTable(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n options?: TableResourcesGetTableOptionalParams,\n ): Promise<TableResourcesGetTableResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, tableName, options },\n getTableOperationSpec,\n );\n }\n\n /**\n * Create or update an Azure Cosmos DB Table\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param tableName Cosmos DB table name.\n * @param createUpdateTableParameters The parameters to provide for the current Table.\n * @param options The options parameters.\n */\n async beginCreateUpdateTable(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n createUpdateTableParameters: TableCreateUpdateParameters,\n options?: TableResourcesCreateUpdateTableOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<TableResourcesCreateUpdateTableResponse>,\n TableResourcesCreateUpdateTableResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<TableResourcesCreateUpdateTableResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n accountName,\n tableName,\n createUpdateTableParameters,\n options,\n },\n spec: createUpdateTableOperationSpec,\n });\n const poller = await createHttpPoller<\n TableResourcesCreateUpdateTableResponse,\n OperationState<TableResourcesCreateUpdateTableResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create or update an Azure Cosmos DB Table\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param tableName Cosmos DB table name.\n * @param createUpdateTableParameters The parameters to provide for the current Table.\n * @param options The options parameters.\n */\n async beginCreateUpdateTableAndWait(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n createUpdateTableParameters: TableCreateUpdateParameters,\n options?: TableResourcesCreateUpdateTableOptionalParams,\n ): Promise<TableResourcesCreateUpdateTableResponse> {\n const poller = await this.beginCreateUpdateTable(\n resourceGroupName,\n accountName,\n tableName,\n createUpdateTableParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes an existing Azure Cosmos DB Table.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param tableName Cosmos DB table name.\n * @param options The options parameters.\n */\n async beginDeleteTable(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n options?: TableResourcesDeleteTableOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<TableResourcesDeleteTableResponse>,\n TableResourcesDeleteTableResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<TableResourcesDeleteTableResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, accountName, tableName, options },\n spec: deleteTableOperationSpec,\n });\n const poller = await createHttpPoller<\n TableResourcesDeleteTableResponse,\n OperationState<TableResourcesDeleteTableResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes an existing Azure Cosmos DB Table.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param tableName Cosmos DB table name.\n * @param options The options parameters.\n */\n async beginDeleteTableAndWait(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n options?: TableResourcesDeleteTableOptionalParams,\n ): Promise<TableResourcesDeleteTableResponse> {\n const poller = await this.beginDeleteTable(\n resourceGroupName,\n accountName,\n tableName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets the RUs per second of the Table under an existing Azure Cosmos DB database account with the\n * provided name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param tableName Cosmos DB table name.\n * @param options The options parameters.\n */\n getTableThroughput(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n options?: TableResourcesGetTableThroughputOptionalParams,\n ): Promise<TableResourcesGetTableThroughputResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, tableName, options },\n getTableThroughputOperationSpec,\n );\n }\n\n /**\n * Update RUs per second of an Azure Cosmos DB Table\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param tableName Cosmos DB table name.\n * @param updateThroughputParameters The parameters to provide for the RUs per second of the current\n * Table.\n * @param options The options parameters.\n */\n async beginUpdateTableThroughput(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n updateThroughputParameters: ThroughputSettingsUpdateParameters,\n options?: TableResourcesUpdateTableThroughputOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<TableResourcesUpdateTableThroughputResponse>,\n TableResourcesUpdateTableThroughputResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<TableResourcesUpdateTableThroughputResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n accountName,\n tableName,\n updateThroughputParameters,\n options,\n },\n spec: updateTableThroughputOperationSpec,\n });\n const poller = await createHttpPoller<\n TableResourcesUpdateTableThroughputResponse,\n OperationState<TableResourcesUpdateTableThroughputResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update RUs per second of an Azure Cosmos DB Table\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param tableName Cosmos DB table name.\n * @param updateThroughputParameters The parameters to provide for the RUs per second of the current\n * Table.\n * @param options The options parameters.\n */\n async beginUpdateTableThroughputAndWait(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n updateThroughputParameters: ThroughputSettingsUpdateParameters,\n options?: TableResourcesUpdateTableThroughputOptionalParams,\n ): Promise<TableResourcesUpdateTableThroughputResponse> {\n const poller = await this.beginUpdateTableThroughput(\n resourceGroupName,\n accountName,\n tableName,\n updateThroughputParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Migrate an Azure Cosmos DB Table from manual throughput to autoscale\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param tableName Cosmos DB table name.\n * @param options The options parameters.\n */\n async beginMigrateTableToAutoscale(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n options?: TableResourcesMigrateTableToAutoscaleOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<TableResourcesMigrateTableToAutoscaleResponse>,\n TableResourcesMigrateTableToAutoscaleResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<TableResourcesMigrateTableToAutoscaleResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, accountName, tableName, options },\n spec: migrateTableToAutoscaleOperationSpec,\n });\n const poller = await createHttpPoller<\n TableResourcesMigrateTableToAutoscaleResponse,\n OperationState<TableResourcesMigrateTableToAutoscaleResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Migrate an Azure Cosmos DB Table from manual throughput to autoscale\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param tableName Cosmos DB table name.\n * @param options The options parameters.\n */\n async beginMigrateTableToAutoscaleAndWait(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n options?: TableResourcesMigrateTableToAutoscaleOptionalParams,\n ): Promise<TableResourcesMigrateTableToAutoscaleResponse> {\n const poller = await this.beginMigrateTableToAutoscale(\n resourceGroupName,\n accountName,\n tableName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Migrate an Azure Cosmos DB Table from autoscale to manual throughput\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param tableName Cosmos DB table name.\n * @param options The options parameters.\n */\n async beginMigrateTableToManualThroughput(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n options?: TableResourcesMigrateTableToManualThroughputOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<TableResourcesMigrateTableToManualThroughputResponse>,\n TableResourcesMigrateTableToManualThroughputResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<TableResourcesMigrateTableToManualThroughputResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, accountName, tableName, options },\n spec: migrateTableToManualThroughputOperationSpec,\n });\n const poller = await createHttpPoller<\n TableResourcesMigrateTableToManualThroughputResponse,\n OperationState<TableResourcesMigrateTableToManualThroughputResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Migrate an Azure Cosmos DB Table from autoscale to manual throughput\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param tableName Cosmos DB table name.\n * @param options The options parameters.\n */\n async beginMigrateTableToManualThroughputAndWait(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n options?: TableResourcesMigrateTableToManualThroughputOptionalParams,\n ): Promise<TableResourcesMigrateTableToManualThroughputResponse> {\n const poller = await this.beginMigrateTableToManualThroughput(\n resourceGroupName,\n accountName,\n tableName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Retrieves continuous backup information for a table.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param tableName Cosmos DB table name.\n * @param location The name of the continuous backup restore location.\n * @param options The options parameters.\n */\n async beginRetrieveContinuousBackupInformation(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n location: ContinuousBackupRestoreLocation,\n options?: TableResourcesRetrieveContinuousBackupInformationOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<TableResourcesRetrieveContinuousBackupInformationResponse>,\n TableResourcesRetrieveContinuousBackupInformationResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<TableResourcesRetrieveContinuousBackupInformationResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, accountName, tableName, location, options },\n spec: retrieveContinuousBackupInformationOperationSpec,\n });\n const poller = await createHttpPoller<\n TableResourcesRetrieveContinuousBackupInformationResponse,\n OperationState<TableResourcesRetrieveContinuousBackupInformationResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Retrieves continuous backup information for a table.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName Cosmos DB database account name.\n * @param tableName Cosmos DB table name.\n * @param location The name of the continuous backup restore location.\n * @param options The options parameters.\n */\n async beginRetrieveContinuousBackupInformationAndWait(\n resourceGroupName: string,\n accountName: string,\n tableName: string,\n location: ContinuousBackupRestoreLocation,\n options?: TableResourcesRetrieveContinuousBackupInformationOptionalParams,\n ): Promise<TableResourcesRetrieveContinuousBackupInformationResponse> {\n const poller = await this.beginRetrieveContinuousBackupInformation(\n resourceGroupName,\n accountName,\n tableName,\n location,\n options,\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listTablesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TableListResult,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.accountName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getTableOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TableGetResults,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.tableName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createUpdateTableOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.TableGetResults,\n },\n 201: {\n bodyMapper: Mappers.TableGetResults,\n },\n 202: {\n bodyMapper: Mappers.TableGetResults,\n },\n 204: {\n bodyMapper: Mappers.TableGetResults,\n },\n },\n requestBody: Parameters.createUpdateTableParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.tableName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteTableOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.TableResourcesDeleteTableHeaders,\n },\n 201: {\n headersMapper: Mappers.TableResourcesDeleteTableHeaders,\n },\n 202: {\n headersMapper: Mappers.TableResourcesDeleteTableHeaders,\n },\n 204: {\n headersMapper: Mappers.TableResourcesDeleteTableHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.tableName,\n ],\n serializer,\n};\nconst getTableThroughputOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ThroughputSettingsGetResults,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.tableName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateTableThroughputOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ThroughputSettingsGetResults,\n },\n 201: {\n bodyMapper: Mappers.ThroughputSettingsGetResults,\n },\n 202: {\n bodyMapper: Mappers.ThroughputSettingsGetResults,\n },\n 204: {\n bodyMapper: Mappers.ThroughputSettingsGetResults,\n },\n },\n requestBody: Parameters.updateThroughputParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.tableName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst migrateTableToAutoscaleOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default/migrateToAutoscale\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ThroughputSettingsGetResults,\n },\n 201: {\n bodyMapper: Mappers.ThroughputSettingsGetResults,\n },\n 202: {\n bodyMapper: Mappers.ThroughputSettingsGetResults,\n },\n 204: {\n bodyMapper: Mappers.ThroughputSettingsGetResults,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.tableName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst migrateTableToManualThroughputOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default/migrateToManualThroughput\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ThroughputSettingsGetResults,\n },\n 201: {\n bodyMapper: Mappers.ThroughputSettingsGetResults,\n },\n 202: {\n bodyMapper: Mappers.ThroughputSettingsGetResults,\n },\n 204: {\n bodyMapper: Mappers.ThroughputSettingsGetResults,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.tableName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst retrieveContinuousBackupInformationOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/retrieveContinuousBackupInformation\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupInformation,\n },\n 201: {\n bodyMapper: Mappers.BackupInformation,\n },\n 202: {\n bodyMapper: Mappers.BackupInformation,\n },\n 204: {\n bodyMapper: Mappers.BackupInformation,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.location,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.tableName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n };\n"]}
|
|
@@ -18,18 +18,16 @@ const pageMap = new WeakMap();
|
|
|
18
18
|
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
19
19
|
*/
|
|
20
20
|
function getContinuationToken(page) {
|
|
21
|
-
var _a;
|
|
22
21
|
if (typeof page !== "object" || page === null) {
|
|
23
22
|
return undefined;
|
|
24
23
|
}
|
|
25
|
-
return
|
|
24
|
+
return pageMap.get(page)?.continuationToken;
|
|
26
25
|
}
|
|
27
26
|
function setContinuationToken(page, continuationToken) {
|
|
28
|
-
var _a;
|
|
29
27
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
30
28
|
return;
|
|
31
29
|
}
|
|
32
|
-
const pageInfo =
|
|
30
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
33
31
|
pageInfo.continuationToken = continuationToken;
|
|
34
32
|
pageMap.set(page, pageInfo);
|
|
35
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,oDAKC;AAED,oDAUC;AA1BD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,IAAa
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,oDAKC;AAED,oDAUC;AA1BD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,SAAgB,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined,\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|
|
@@ -9,6 +9,9 @@ import * as coreClient from "@azure/core-client";
|
|
|
9
9
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
10
|
import { DatabaseAccountsImpl, OperationsImpl, DatabaseImpl, CollectionImpl, CollectionRegionImpl, DatabaseAccountRegionImpl, PercentileSourceTargetImpl, PercentileTargetImpl, PercentileImpl, CollectionPartitionRegionImpl, CollectionPartitionImpl, PartitionKeyRangeIdImpl, PartitionKeyRangeIdRegionImpl, SqlResourcesImpl, MongoDBResourcesImpl, TableResourcesImpl, CassandraResourcesImpl, GremlinResourcesImpl, LocationsImpl, CassandraClustersImpl, CassandraDataCentersImpl, NotebookWorkspacesImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, RestorableDatabaseAccountsImpl, RestorableSqlDatabasesImpl, RestorableSqlContainersImpl, RestorableSqlResourcesImpl, RestorableMongodbDatabasesImpl, RestorableMongodbCollectionsImpl, RestorableMongodbResourcesImpl, RestorableGremlinDatabasesImpl, RestorableGremlinGraphsImpl, RestorableGremlinResourcesImpl, RestorableTablesImpl, RestorableTableResourcesImpl, ServiceImpl, } from "./operations/index.js";
|
|
11
11
|
export class CosmosDBManagementClient extends coreClient.ServiceClient {
|
|
12
|
+
$host;
|
|
13
|
+
subscriptionId;
|
|
14
|
+
apiVersion;
|
|
12
15
|
/**
|
|
13
16
|
* Initializes a new instance of the CosmosDBManagementClient class.
|
|
14
17
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -16,7 +19,6 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient {
|
|
|
16
19
|
* @param options The parameter options
|
|
17
20
|
*/
|
|
18
21
|
constructor(credentials, subscriptionId, options) {
|
|
19
|
-
var _a, _b, _c;
|
|
20
22
|
if (credentials === undefined) {
|
|
21
23
|
throw new Error("'credentials' cannot be null");
|
|
22
24
|
}
|
|
@@ -35,12 +37,17 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient {
|
|
|
35
37
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
36
38
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
37
39
|
: `${packageDetails}`;
|
|
38
|
-
const optionsWithDefaults =
|
|
40
|
+
const optionsWithDefaults = {
|
|
41
|
+
...defaults,
|
|
42
|
+
...options,
|
|
43
|
+
userAgentOptions: {
|
|
39
44
|
userAgentPrefix,
|
|
40
|
-
},
|
|
45
|
+
},
|
|
46
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
|
|
47
|
+
};
|
|
41
48
|
super(optionsWithDefaults);
|
|
42
49
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
43
|
-
if (
|
|
50
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
44
51
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
45
52
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
46
53
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
@@ -54,7 +61,8 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient {
|
|
|
54
61
|
});
|
|
55
62
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
56
63
|
credential: credentials,
|
|
57
|
-
scopes:
|
|
64
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
65
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
58
66
|
challengeCallbacks: {
|
|
59
67
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
|
|
60
68
|
},
|
|
@@ -129,5 +137,42 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient {
|
|
|
129
137
|
};
|
|
130
138
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
131
139
|
}
|
|
140
|
+
databaseAccounts;
|
|
141
|
+
operations;
|
|
142
|
+
database;
|
|
143
|
+
collection;
|
|
144
|
+
collectionRegion;
|
|
145
|
+
databaseAccountRegion;
|
|
146
|
+
percentileSourceTarget;
|
|
147
|
+
percentileTarget;
|
|
148
|
+
percentile;
|
|
149
|
+
collectionPartitionRegion;
|
|
150
|
+
collectionPartition;
|
|
151
|
+
partitionKeyRangeId;
|
|
152
|
+
partitionKeyRangeIdRegion;
|
|
153
|
+
sqlResources;
|
|
154
|
+
mongoDBResources;
|
|
155
|
+
tableResources;
|
|
156
|
+
cassandraResources;
|
|
157
|
+
gremlinResources;
|
|
158
|
+
locations;
|
|
159
|
+
cassandraClusters;
|
|
160
|
+
cassandraDataCenters;
|
|
161
|
+
notebookWorkspaces;
|
|
162
|
+
privateEndpointConnections;
|
|
163
|
+
privateLinkResources;
|
|
164
|
+
restorableDatabaseAccounts;
|
|
165
|
+
restorableSqlDatabases;
|
|
166
|
+
restorableSqlContainers;
|
|
167
|
+
restorableSqlResources;
|
|
168
|
+
restorableMongodbDatabases;
|
|
169
|
+
restorableMongodbCollections;
|
|
170
|
+
restorableMongodbResources;
|
|
171
|
+
restorableGremlinDatabases;
|
|
172
|
+
restorableGremlinGraphs;
|
|
173
|
+
restorableGremlinResources;
|
|
174
|
+
restorableTables;
|
|
175
|
+
restorableTableResources;
|
|
176
|
+
service;
|
|
132
177
|
}
|
|
133
178
|
//# sourceMappingURL=cosmosDBManagementClient.js.map
|