@azure/arm-cosmosdb 16.3.0-beta.1 → 16.3.0
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/CHANGELOG.md +9 -0
- package/LICENSE +3 -3
- package/README.md +22 -15
- package/dist/browser/cosmosDBManagementClient.d.ts +2 -10
- package/dist/browser/cosmosDBManagementClient.d.ts.map +1 -1
- package/dist/browser/cosmosDBManagementClient.js +4 -13
- package/dist/browser/cosmosDBManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.d.ts.map +1 -1
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/index.d.ts +285 -2015
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js +12 -196
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/mappers.d.ts +29 -131
- package/dist/browser/models/mappers.d.ts.map +1 -1
- package/dist/browser/models/mappers.js +1733 -4254
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/models/parameters.d.ts +6 -28
- package/dist/browser/models/parameters.d.ts.map +1 -1
- package/dist/browser/models/parameters.js +45 -206
- package/dist/browser/models/parameters.js.map +1 -1
- package/dist/browser/operations/cassandraClusters.d.ts +1 -65
- package/dist/browser/operations/cassandraClusters.d.ts.map +1 -1
- package/dist/browser/operations/cassandraClusters.js +1 -310
- package/dist/browser/operations/cassandraClusters.js.map +1 -1
- package/dist/browser/operations/cassandraDataCenters.js +2 -2
- package/dist/browser/operations/cassandraDataCenters.js.map +1 -1
- package/dist/browser/operations/cassandraResources.d.ts +1 -134
- package/dist/browser/operations/cassandraResources.d.ts.map +1 -1
- package/dist/browser/operations/cassandraResources.js +0 -579
- package/dist/browser/operations/cassandraResources.js.map +1 -1
- package/dist/browser/operations/gremlinResources.js +8 -8
- package/dist/browser/operations/gremlinResources.js.map +1 -1
- package/dist/browser/operations/index.d.ts +0 -8
- package/dist/browser/operations/index.d.ts.map +1 -1
- package/dist/browser/operations/index.js +0 -8
- package/dist/browser/operations/index.js.map +1 -1
- package/dist/browser/operations/mongoDBResources.d.ts +1 -123
- package/dist/browser/operations/mongoDBResources.d.ts.map +1 -1
- package/dist/browser/operations/mongoDBResources.js +0 -590
- package/dist/browser/operations/mongoDBResources.js.map +1 -1
- package/dist/browser/operations/sqlResources.d.ts +26 -148
- package/dist/browser/operations/sqlResources.d.ts.map +1 -1
- package/dist/browser/operations/sqlResources.js +92 -682
- package/dist/browser/operations/sqlResources.js.map +1 -1
- package/dist/browser/operations/tableResources.d.ts +1 -121
- package/dist/browser/operations/tableResources.d.ts.map +1 -1
- package/dist/browser/operations/tableResources.js +0 -568
- package/dist/browser/operations/tableResources.js.map +1 -1
- package/dist/browser/operationsInterfaces/cassandraClusters.d.ts +1 -47
- package/dist/browser/operationsInterfaces/cassandraClusters.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/cassandraClusters.js.map +1 -1
- package/dist/browser/operationsInterfaces/cassandraResources.d.ts +1 -124
- package/dist/browser/operationsInterfaces/cassandraResources.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/cassandraResources.js.map +1 -1
- package/dist/browser/operationsInterfaces/collectionRegion.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/collectionRegion.js.map +1 -1
- package/dist/browser/operationsInterfaces/index.d.ts +0 -8
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/index.js +0 -8
- package/dist/browser/operationsInterfaces/index.js.map +1 -1
- package/dist/browser/operationsInterfaces/mongoDBResources.d.ts +1 -123
- package/dist/browser/operationsInterfaces/mongoDBResources.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/mongoDBResources.js.map +1 -1
- package/dist/browser/operationsInterfaces/sqlResources.d.ts +20 -142
- package/dist/browser/operationsInterfaces/sqlResources.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/sqlResources.js.map +1 -1
- package/dist/browser/operationsInterfaces/tableResources.d.ts +1 -103
- package/dist/browser/operationsInterfaces/tableResources.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/tableResources.js.map +1 -1
- package/dist/commonjs/cosmosDBManagementClient.d.ts +2 -10
- package/dist/commonjs/cosmosDBManagementClient.d.ts.map +1 -1
- package/dist/commonjs/cosmosDBManagementClient.js +3 -12
- package/dist/commonjs/cosmosDBManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.d.ts.map +1 -1
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +285 -2015
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +13 -198
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/mappers.d.ts +29 -131
- package/dist/commonjs/models/mappers.d.ts.map +1 -1
- package/dist/commonjs/models/mappers.js +1740 -4263
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/models/parameters.d.ts +6 -28
- package/dist/commonjs/models/parameters.d.ts.map +1 -1
- package/dist/commonjs/models/parameters.js +46 -207
- package/dist/commonjs/models/parameters.js.map +1 -1
- package/dist/commonjs/operations/cassandraClusters.d.ts +1 -65
- package/dist/commonjs/operations/cassandraClusters.d.ts.map +1 -1
- package/dist/commonjs/operations/cassandraClusters.js +1 -310
- package/dist/commonjs/operations/cassandraClusters.js.map +1 -1
- package/dist/commonjs/operations/cassandraDataCenters.js +2 -2
- package/dist/commonjs/operations/cassandraDataCenters.js.map +1 -1
- package/dist/commonjs/operations/cassandraResources.d.ts +1 -134
- package/dist/commonjs/operations/cassandraResources.d.ts.map +1 -1
- package/dist/commonjs/operations/cassandraResources.js +0 -579
- package/dist/commonjs/operations/cassandraResources.js.map +1 -1
- package/dist/commonjs/operations/gremlinResources.js +8 -8
- package/dist/commonjs/operations/gremlinResources.js.map +1 -1
- package/dist/commonjs/operations/index.d.ts +0 -8
- package/dist/commonjs/operations/index.d.ts.map +1 -1
- package/dist/commonjs/operations/index.js +0 -8
- package/dist/commonjs/operations/index.js.map +1 -1
- package/dist/commonjs/operations/mongoDBResources.d.ts +1 -123
- package/dist/commonjs/operations/mongoDBResources.d.ts.map +1 -1
- package/dist/commonjs/operations/mongoDBResources.js +0 -590
- package/dist/commonjs/operations/mongoDBResources.js.map +1 -1
- package/dist/commonjs/operations/sqlResources.d.ts +26 -148
- package/dist/commonjs/operations/sqlResources.d.ts.map +1 -1
- package/dist/commonjs/operations/sqlResources.js +92 -682
- package/dist/commonjs/operations/sqlResources.js.map +1 -1
- package/dist/commonjs/operations/tableResources.d.ts +1 -121
- package/dist/commonjs/operations/tableResources.d.ts.map +1 -1
- package/dist/commonjs/operations/tableResources.js +0 -568
- package/dist/commonjs/operations/tableResources.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/cassandraClusters.d.ts +1 -47
- package/dist/commonjs/operationsInterfaces/cassandraClusters.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/cassandraClusters.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/cassandraResources.d.ts +1 -124
- package/dist/commonjs/operationsInterfaces/cassandraResources.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/cassandraResources.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/collectionRegion.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/collectionRegion.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/index.d.ts +0 -8
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/index.js +0 -8
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/mongoDBResources.d.ts +1 -123
- package/dist/commonjs/operationsInterfaces/mongoDBResources.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/mongoDBResources.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/sqlResources.d.ts +20 -142
- package/dist/commonjs/operationsInterfaces/sqlResources.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/sqlResources.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/tableResources.d.ts +1 -103
- package/dist/commonjs/operationsInterfaces/tableResources.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/tableResources.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/cosmosDBManagementClient.d.ts +2 -10
- package/dist/esm/cosmosDBManagementClient.d.ts.map +1 -1
- package/dist/esm/cosmosDBManagementClient.js +4 -13
- package/dist/esm/cosmosDBManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.d.ts.map +1 -1
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/index.d.ts +285 -2015
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +12 -196
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/mappers.d.ts +29 -131
- package/dist/esm/models/mappers.d.ts.map +1 -1
- package/dist/esm/models/mappers.js +1733 -4254
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/models/parameters.d.ts +6 -28
- package/dist/esm/models/parameters.d.ts.map +1 -1
- package/dist/esm/models/parameters.js +45 -206
- package/dist/esm/models/parameters.js.map +1 -1
- package/dist/esm/operations/cassandraClusters.d.ts +1 -65
- package/dist/esm/operations/cassandraClusters.d.ts.map +1 -1
- package/dist/esm/operations/cassandraClusters.js +1 -310
- package/dist/esm/operations/cassandraClusters.js.map +1 -1
- package/dist/esm/operations/cassandraDataCenters.js +2 -2
- package/dist/esm/operations/cassandraDataCenters.js.map +1 -1
- package/dist/esm/operations/cassandraResources.d.ts +1 -134
- package/dist/esm/operations/cassandraResources.d.ts.map +1 -1
- package/dist/esm/operations/cassandraResources.js +0 -579
- package/dist/esm/operations/cassandraResources.js.map +1 -1
- package/dist/esm/operations/gremlinResources.js +8 -8
- package/dist/esm/operations/gremlinResources.js.map +1 -1
- package/dist/esm/operations/index.d.ts +0 -8
- package/dist/esm/operations/index.d.ts.map +1 -1
- package/dist/esm/operations/index.js +0 -8
- package/dist/esm/operations/index.js.map +1 -1
- package/dist/esm/operations/mongoDBResources.d.ts +1 -123
- package/dist/esm/operations/mongoDBResources.d.ts.map +1 -1
- package/dist/esm/operations/mongoDBResources.js +0 -590
- package/dist/esm/operations/mongoDBResources.js.map +1 -1
- package/dist/esm/operations/sqlResources.d.ts +26 -148
- package/dist/esm/operations/sqlResources.d.ts.map +1 -1
- package/dist/esm/operations/sqlResources.js +92 -682
- package/dist/esm/operations/sqlResources.js.map +1 -1
- package/dist/esm/operations/tableResources.d.ts +1 -121
- package/dist/esm/operations/tableResources.d.ts.map +1 -1
- package/dist/esm/operations/tableResources.js +0 -568
- package/dist/esm/operations/tableResources.js.map +1 -1
- package/dist/esm/operationsInterfaces/cassandraClusters.d.ts +1 -47
- package/dist/esm/operationsInterfaces/cassandraClusters.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/cassandraClusters.js.map +1 -1
- package/dist/esm/operationsInterfaces/cassandraResources.d.ts +1 -124
- package/dist/esm/operationsInterfaces/cassandraResources.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/cassandraResources.js.map +1 -1
- package/dist/esm/operationsInterfaces/collectionRegion.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/collectionRegion.js.map +1 -1
- package/dist/esm/operationsInterfaces/index.d.ts +0 -8
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/index.js +0 -8
- package/dist/esm/operationsInterfaces/index.js.map +1 -1
- package/dist/esm/operationsInterfaces/mongoDBResources.d.ts +1 -123
- package/dist/esm/operationsInterfaces/mongoDBResources.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/mongoDBResources.js.map +1 -1
- package/dist/esm/operationsInterfaces/sqlResources.d.ts +20 -142
- package/dist/esm/operationsInterfaces/sqlResources.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/sqlResources.js.map +1 -1
- package/dist/esm/operationsInterfaces/tableResources.d.ts +1 -103
- package/dist/esm/operationsInterfaces/tableResources.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/tableResources.js.map +1 -1
- package/dist/react-native/cosmosDBManagementClient.d.ts +2 -10
- package/dist/react-native/cosmosDBManagementClient.d.ts.map +1 -1
- package/dist/react-native/cosmosDBManagementClient.js +4 -13
- package/dist/react-native/cosmosDBManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.d.ts.map +1 -1
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/index.d.ts +285 -2015
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js +12 -196
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/mappers.d.ts +29 -131
- package/dist/react-native/models/mappers.d.ts.map +1 -1
- package/dist/react-native/models/mappers.js +1733 -4254
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/models/parameters.d.ts +6 -28
- package/dist/react-native/models/parameters.d.ts.map +1 -1
- package/dist/react-native/models/parameters.js +45 -206
- package/dist/react-native/models/parameters.js.map +1 -1
- package/dist/react-native/operations/cassandraClusters.d.ts +1 -65
- package/dist/react-native/operations/cassandraClusters.d.ts.map +1 -1
- package/dist/react-native/operations/cassandraClusters.js +1 -310
- package/dist/react-native/operations/cassandraClusters.js.map +1 -1
- package/dist/react-native/operations/cassandraDataCenters.js +2 -2
- package/dist/react-native/operations/cassandraDataCenters.js.map +1 -1
- package/dist/react-native/operations/cassandraResources.d.ts +1 -134
- package/dist/react-native/operations/cassandraResources.d.ts.map +1 -1
- package/dist/react-native/operations/cassandraResources.js +0 -579
- package/dist/react-native/operations/cassandraResources.js.map +1 -1
- package/dist/react-native/operations/gremlinResources.js +8 -8
- package/dist/react-native/operations/gremlinResources.js.map +1 -1
- package/dist/react-native/operations/index.d.ts +0 -8
- package/dist/react-native/operations/index.d.ts.map +1 -1
- package/dist/react-native/operations/index.js +0 -8
- package/dist/react-native/operations/index.js.map +1 -1
- package/dist/react-native/operations/mongoDBResources.d.ts +1 -123
- package/dist/react-native/operations/mongoDBResources.d.ts.map +1 -1
- package/dist/react-native/operations/mongoDBResources.js +0 -590
- package/dist/react-native/operations/mongoDBResources.js.map +1 -1
- package/dist/react-native/operations/sqlResources.d.ts +26 -148
- package/dist/react-native/operations/sqlResources.d.ts.map +1 -1
- package/dist/react-native/operations/sqlResources.js +92 -682
- package/dist/react-native/operations/sqlResources.js.map +1 -1
- package/dist/react-native/operations/tableResources.d.ts +1 -121
- package/dist/react-native/operations/tableResources.d.ts.map +1 -1
- package/dist/react-native/operations/tableResources.js +0 -568
- package/dist/react-native/operations/tableResources.js.map +1 -1
- package/dist/react-native/operationsInterfaces/cassandraClusters.d.ts +1 -47
- package/dist/react-native/operationsInterfaces/cassandraClusters.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/cassandraClusters.js.map +1 -1
- package/dist/react-native/operationsInterfaces/cassandraResources.d.ts +1 -124
- package/dist/react-native/operationsInterfaces/cassandraResources.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/cassandraResources.js.map +1 -1
- package/dist/react-native/operationsInterfaces/collectionRegion.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/collectionRegion.js.map +1 -1
- package/dist/react-native/operationsInterfaces/index.d.ts +0 -8
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/index.js +0 -8
- package/dist/react-native/operationsInterfaces/index.js.map +1 -1
- package/dist/react-native/operationsInterfaces/mongoDBResources.d.ts +1 -123
- package/dist/react-native/operationsInterfaces/mongoDBResources.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/mongoDBResources.js.map +1 -1
- package/dist/react-native/operationsInterfaces/sqlResources.d.ts +20 -142
- package/dist/react-native/operationsInterfaces/sqlResources.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/sqlResources.js.map +1 -1
- package/dist/react-native/operationsInterfaces/tableResources.d.ts +1 -103
- package/dist/react-native/operationsInterfaces/tableResources.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/tableResources.js.map +1 -1
- package/package.json +37 -48
- package/review/arm-cosmosdb.api.md +39 -1537
- package/dist/browser/operations/chaosFault.d.ts +0 -65
- package/dist/browser/operations/chaosFault.d.ts.map +0 -1
- package/dist/browser/operations/chaosFault.js +0 -279
- package/dist/browser/operations/chaosFault.js.map +0 -1
- package/dist/browser/operations/dataTransferJobs.d.ts +0 -87
- package/dist/browser/operations/dataTransferJobs.d.ts.map +0 -1
- package/dist/browser/operations/dataTransferJobs.js +0 -345
- package/dist/browser/operations/dataTransferJobs.js.map +0 -1
- package/dist/browser/operations/graphResources.d.ts +0 -73
- package/dist/browser/operations/graphResources.d.ts.map +0 -1
- package/dist/browser/operations/graphResources.js +0 -291
- package/dist/browser/operations/graphResources.js.map +0 -1
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.d.ts +0 -66
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.d.ts.map +0 -1
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.js +0 -282
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.js.map +0 -1
- package/dist/browser/operations/throughputPool.d.ts +0 -67
- package/dist/browser/operations/throughputPool.d.ts.map +0 -1
- package/dist/browser/operations/throughputPool.js +0 -308
- package/dist/browser/operations/throughputPool.js.map +0 -1
- package/dist/browser/operations/throughputPoolAccount.d.ts +0 -58
- package/dist/browser/operations/throughputPoolAccount.d.ts.map +0 -1
- package/dist/browser/operations/throughputPoolAccount.js +0 -248
- package/dist/browser/operations/throughputPoolAccount.js.map +0 -1
- package/dist/browser/operations/throughputPoolAccounts.d.ts +0 -38
- package/dist/browser/operations/throughputPoolAccounts.d.ts.map +0 -1
- package/dist/browser/operations/throughputPoolAccounts.js +0 -150
- package/dist/browser/operations/throughputPoolAccounts.js.map +0 -1
- package/dist/browser/operations/throughputPools.d.ts +0 -53
- package/dist/browser/operations/throughputPools.d.ts.map +0 -1
- package/dist/browser/operations/throughputPools.js +0 -256
- package/dist/browser/operations/throughputPools.js.map +0 -1
- package/dist/browser/operationsInterfaces/chaosFault.d.ts +0 -40
- package/dist/browser/operationsInterfaces/chaosFault.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/chaosFault.js +0 -9
- package/dist/browser/operationsInterfaces/chaosFault.js.map +0 -1
- package/dist/browser/operationsInterfaces/dataTransferJobs.d.ts +0 -62
- package/dist/browser/operationsInterfaces/dataTransferJobs.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/dataTransferJobs.js +0 -9
- package/dist/browser/operationsInterfaces/dataTransferJobs.js.map +0 -1
- package/dist/browser/operationsInterfaces/graphResources.d.ts +0 -56
- package/dist/browser/operationsInterfaces/graphResources.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/graphResources.js +0 -9
- package/dist/browser/operationsInterfaces/graphResources.js.map +0 -1
- package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +0 -41
- package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.js +0 -9
- package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +0 -1
- package/dist/browser/operationsInterfaces/throughputPool.d.ts +0 -59
- package/dist/browser/operationsInterfaces/throughputPool.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/throughputPool.js +0 -9
- package/dist/browser/operationsInterfaces/throughputPool.js.map +0 -1
- package/dist/browser/operationsInterfaces/throughputPoolAccount.d.ts +0 -50
- package/dist/browser/operationsInterfaces/throughputPoolAccount.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/throughputPoolAccount.js +0 -9
- package/dist/browser/operationsInterfaces/throughputPoolAccount.js.map +0 -1
- package/dist/browser/operationsInterfaces/throughputPoolAccounts.d.ts +0 -13
- package/dist/browser/operationsInterfaces/throughputPoolAccounts.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/throughputPoolAccounts.js +0 -9
- package/dist/browser/operationsInterfaces/throughputPoolAccounts.js.map +0 -1
- package/dist/browser/operationsInterfaces/throughputPools.d.ts +0 -17
- package/dist/browser/operationsInterfaces/throughputPools.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/throughputPools.js +0 -9
- package/dist/browser/operationsInterfaces/throughputPools.js.map +0 -1
- package/dist/commonjs/operations/chaosFault.d.ts +0 -65
- package/dist/commonjs/operations/chaosFault.d.ts.map +0 -1
- package/dist/commonjs/operations/chaosFault.js +0 -283
- package/dist/commonjs/operations/chaosFault.js.map +0 -1
- package/dist/commonjs/operations/dataTransferJobs.d.ts +0 -87
- package/dist/commonjs/operations/dataTransferJobs.d.ts.map +0 -1
- package/dist/commonjs/operations/dataTransferJobs.js +0 -349
- package/dist/commonjs/operations/dataTransferJobs.js.map +0 -1
- package/dist/commonjs/operations/graphResources.d.ts +0 -73
- package/dist/commonjs/operations/graphResources.d.ts.map +0 -1
- package/dist/commonjs/operations/graphResources.js +0 -295
- package/dist/commonjs/operations/graphResources.js.map +0 -1
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.d.ts +0 -66
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.d.ts.map +0 -1
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js +0 -286
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js.map +0 -1
- package/dist/commonjs/operations/throughputPool.d.ts +0 -67
- package/dist/commonjs/operations/throughputPool.d.ts.map +0 -1
- package/dist/commonjs/operations/throughputPool.js +0 -313
- package/dist/commonjs/operations/throughputPool.js.map +0 -1
- package/dist/commonjs/operations/throughputPoolAccount.d.ts +0 -58
- package/dist/commonjs/operations/throughputPoolAccount.d.ts.map +0 -1
- package/dist/commonjs/operations/throughputPoolAccount.js +0 -253
- package/dist/commonjs/operations/throughputPoolAccount.js.map +0 -1
- package/dist/commonjs/operations/throughputPoolAccounts.d.ts +0 -38
- package/dist/commonjs/operations/throughputPoolAccounts.d.ts.map +0 -1
- package/dist/commonjs/operations/throughputPoolAccounts.js +0 -154
- package/dist/commonjs/operations/throughputPoolAccounts.js.map +0 -1
- package/dist/commonjs/operations/throughputPools.d.ts +0 -53
- package/dist/commonjs/operations/throughputPools.d.ts.map +0 -1
- package/dist/commonjs/operations/throughputPools.js +0 -260
- package/dist/commonjs/operations/throughputPools.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/chaosFault.d.ts +0 -40
- package/dist/commonjs/operationsInterfaces/chaosFault.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/chaosFault.js +0 -10
- package/dist/commonjs/operationsInterfaces/chaosFault.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/dataTransferJobs.d.ts +0 -62
- package/dist/commonjs/operationsInterfaces/dataTransferJobs.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/dataTransferJobs.js +0 -10
- package/dist/commonjs/operationsInterfaces/dataTransferJobs.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/graphResources.d.ts +0 -56
- package/dist/commonjs/operationsInterfaces/graphResources.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/graphResources.js +0 -10
- package/dist/commonjs/operationsInterfaces/graphResources.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +0 -41
- package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.js +0 -10
- package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/throughputPool.d.ts +0 -59
- package/dist/commonjs/operationsInterfaces/throughputPool.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/throughputPool.js +0 -10
- package/dist/commonjs/operationsInterfaces/throughputPool.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/throughputPoolAccount.d.ts +0 -50
- package/dist/commonjs/operationsInterfaces/throughputPoolAccount.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/throughputPoolAccount.js +0 -10
- package/dist/commonjs/operationsInterfaces/throughputPoolAccount.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/throughputPoolAccounts.d.ts +0 -13
- package/dist/commonjs/operationsInterfaces/throughputPoolAccounts.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/throughputPoolAccounts.js +0 -10
- package/dist/commonjs/operationsInterfaces/throughputPoolAccounts.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/throughputPools.d.ts +0 -17
- package/dist/commonjs/operationsInterfaces/throughputPools.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/throughputPools.js +0 -10
- package/dist/commonjs/operationsInterfaces/throughputPools.js.map +0 -1
- package/dist/esm/operations/chaosFault.d.ts +0 -65
- package/dist/esm/operations/chaosFault.d.ts.map +0 -1
- package/dist/esm/operations/chaosFault.js +0 -279
- package/dist/esm/operations/chaosFault.js.map +0 -1
- package/dist/esm/operations/dataTransferJobs.d.ts +0 -87
- package/dist/esm/operations/dataTransferJobs.d.ts.map +0 -1
- package/dist/esm/operations/dataTransferJobs.js +0 -345
- package/dist/esm/operations/dataTransferJobs.js.map +0 -1
- package/dist/esm/operations/graphResources.d.ts +0 -73
- package/dist/esm/operations/graphResources.d.ts.map +0 -1
- package/dist/esm/operations/graphResources.js +0 -291
- package/dist/esm/operations/graphResources.js.map +0 -1
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.d.ts +0 -66
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.d.ts.map +0 -1
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.js +0 -282
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.js.map +0 -1
- package/dist/esm/operations/throughputPool.d.ts +0 -67
- package/dist/esm/operations/throughputPool.d.ts.map +0 -1
- package/dist/esm/operations/throughputPool.js +0 -308
- package/dist/esm/operations/throughputPool.js.map +0 -1
- package/dist/esm/operations/throughputPoolAccount.d.ts +0 -58
- package/dist/esm/operations/throughputPoolAccount.d.ts.map +0 -1
- package/dist/esm/operations/throughputPoolAccount.js +0 -248
- package/dist/esm/operations/throughputPoolAccount.js.map +0 -1
- package/dist/esm/operations/throughputPoolAccounts.d.ts +0 -38
- package/dist/esm/operations/throughputPoolAccounts.d.ts.map +0 -1
- package/dist/esm/operations/throughputPoolAccounts.js +0 -150
- package/dist/esm/operations/throughputPoolAccounts.js.map +0 -1
- package/dist/esm/operations/throughputPools.d.ts +0 -53
- package/dist/esm/operations/throughputPools.d.ts.map +0 -1
- package/dist/esm/operations/throughputPools.js +0 -256
- package/dist/esm/operations/throughputPools.js.map +0 -1
- package/dist/esm/operationsInterfaces/chaosFault.d.ts +0 -40
- package/dist/esm/operationsInterfaces/chaosFault.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/chaosFault.js +0 -9
- package/dist/esm/operationsInterfaces/chaosFault.js.map +0 -1
- package/dist/esm/operationsInterfaces/dataTransferJobs.d.ts +0 -62
- package/dist/esm/operationsInterfaces/dataTransferJobs.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/dataTransferJobs.js +0 -9
- package/dist/esm/operationsInterfaces/dataTransferJobs.js.map +0 -1
- package/dist/esm/operationsInterfaces/graphResources.d.ts +0 -56
- package/dist/esm/operationsInterfaces/graphResources.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/graphResources.js +0 -9
- package/dist/esm/operationsInterfaces/graphResources.js.map +0 -1
- package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +0 -41
- package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.js +0 -9
- package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +0 -1
- package/dist/esm/operationsInterfaces/throughputPool.d.ts +0 -59
- package/dist/esm/operationsInterfaces/throughputPool.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/throughputPool.js +0 -9
- package/dist/esm/operationsInterfaces/throughputPool.js.map +0 -1
- package/dist/esm/operationsInterfaces/throughputPoolAccount.d.ts +0 -50
- package/dist/esm/operationsInterfaces/throughputPoolAccount.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/throughputPoolAccount.js +0 -9
- package/dist/esm/operationsInterfaces/throughputPoolAccount.js.map +0 -1
- package/dist/esm/operationsInterfaces/throughputPoolAccounts.d.ts +0 -13
- package/dist/esm/operationsInterfaces/throughputPoolAccounts.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/throughputPoolAccounts.js +0 -9
- package/dist/esm/operationsInterfaces/throughputPoolAccounts.js.map +0 -1
- package/dist/esm/operationsInterfaces/throughputPools.d.ts +0 -17
- package/dist/esm/operationsInterfaces/throughputPools.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/throughputPools.js +0 -9
- package/dist/esm/operationsInterfaces/throughputPools.js.map +0 -1
- package/dist/react-native/operations/chaosFault.d.ts +0 -65
- package/dist/react-native/operations/chaosFault.d.ts.map +0 -1
- package/dist/react-native/operations/chaosFault.js +0 -279
- package/dist/react-native/operations/chaosFault.js.map +0 -1
- package/dist/react-native/operations/dataTransferJobs.d.ts +0 -87
- package/dist/react-native/operations/dataTransferJobs.d.ts.map +0 -1
- package/dist/react-native/operations/dataTransferJobs.js +0 -345
- package/dist/react-native/operations/dataTransferJobs.js.map +0 -1
- package/dist/react-native/operations/graphResources.d.ts +0 -73
- package/dist/react-native/operations/graphResources.d.ts.map +0 -1
- package/dist/react-native/operations/graphResources.js +0 -291
- package/dist/react-native/operations/graphResources.js.map +0 -1
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.d.ts +0 -66
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.d.ts.map +0 -1
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js +0 -282
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js.map +0 -1
- package/dist/react-native/operations/throughputPool.d.ts +0 -67
- package/dist/react-native/operations/throughputPool.d.ts.map +0 -1
- package/dist/react-native/operations/throughputPool.js +0 -308
- package/dist/react-native/operations/throughputPool.js.map +0 -1
- package/dist/react-native/operations/throughputPoolAccount.d.ts +0 -58
- package/dist/react-native/operations/throughputPoolAccount.d.ts.map +0 -1
- package/dist/react-native/operations/throughputPoolAccount.js +0 -248
- package/dist/react-native/operations/throughputPoolAccount.js.map +0 -1
- package/dist/react-native/operations/throughputPoolAccounts.d.ts +0 -38
- package/dist/react-native/operations/throughputPoolAccounts.d.ts.map +0 -1
- package/dist/react-native/operations/throughputPoolAccounts.js +0 -150
- package/dist/react-native/operations/throughputPoolAccounts.js.map +0 -1
- package/dist/react-native/operations/throughputPools.d.ts +0 -53
- package/dist/react-native/operations/throughputPools.d.ts.map +0 -1
- package/dist/react-native/operations/throughputPools.js +0 -256
- package/dist/react-native/operations/throughputPools.js.map +0 -1
- package/dist/react-native/operationsInterfaces/chaosFault.d.ts +0 -40
- package/dist/react-native/operationsInterfaces/chaosFault.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/chaosFault.js +0 -9
- package/dist/react-native/operationsInterfaces/chaosFault.js.map +0 -1
- package/dist/react-native/operationsInterfaces/dataTransferJobs.d.ts +0 -62
- package/dist/react-native/operationsInterfaces/dataTransferJobs.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/dataTransferJobs.js +0 -9
- package/dist/react-native/operationsInterfaces/dataTransferJobs.js.map +0 -1
- package/dist/react-native/operationsInterfaces/graphResources.d.ts +0 -56
- package/dist/react-native/operationsInterfaces/graphResources.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/graphResources.js +0 -9
- package/dist/react-native/operationsInterfaces/graphResources.js.map +0 -1
- package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +0 -41
- package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.js +0 -9
- package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +0 -1
- package/dist/react-native/operationsInterfaces/throughputPool.d.ts +0 -59
- package/dist/react-native/operationsInterfaces/throughputPool.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/throughputPool.js +0 -9
- package/dist/react-native/operationsInterfaces/throughputPool.js.map +0 -1
- package/dist/react-native/operationsInterfaces/throughputPoolAccount.d.ts +0 -50
- package/dist/react-native/operationsInterfaces/throughputPoolAccount.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/throughputPoolAccount.js +0 -9
- package/dist/react-native/operationsInterfaces/throughputPoolAccount.js.map +0 -1
- package/dist/react-native/operationsInterfaces/throughputPoolAccounts.d.ts +0 -13
- package/dist/react-native/operationsInterfaces/throughputPoolAccounts.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/throughputPoolAccounts.js +0 -9
- package/dist/react-native/operationsInterfaces/throughputPoolAccounts.js.map +0 -1
- package/dist/react-native/operationsInterfaces/throughputPools.d.ts +0 -17
- package/dist/react-native/operationsInterfaces/throughputPools.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/throughputPools.js +0 -9
- package/dist/react-native/operationsInterfaces/throughputPools.js.map +0 -1
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.ThroughputPoolAccountImpl = void 0;
|
|
11
|
-
const tslib_1 = require("tslib");
|
|
12
|
-
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
13
|
-
const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
14
|
-
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
15
|
-
const core_lro_1 = require("@azure/core-lro");
|
|
16
|
-
const lroImpl_js_1 = require("../lroImpl.js");
|
|
17
|
-
/** Class containing ThroughputPoolAccount operations. */
|
|
18
|
-
class ThroughputPoolAccountImpl {
|
|
19
|
-
/**
|
|
20
|
-
* Initialize a new instance of the class ThroughputPoolAccount class.
|
|
21
|
-
* @param client Reference to the service client
|
|
22
|
-
*/
|
|
23
|
-
constructor(client) {
|
|
24
|
-
this.client = client;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Retrieves the properties of an existing Azure Cosmos DB Throughput Pool
|
|
28
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
29
|
-
* @param throughputPoolName Cosmos DB Throughput Pool name.
|
|
30
|
-
* @param throughputPoolAccountName Cosmos DB global database account in a Throughput Pool
|
|
31
|
-
* @param options The options parameters.
|
|
32
|
-
*/
|
|
33
|
-
get(resourceGroupName, throughputPoolName, throughputPoolAccountName, options) {
|
|
34
|
-
return this.client.sendOperationRequest({
|
|
35
|
-
resourceGroupName,
|
|
36
|
-
throughputPoolName,
|
|
37
|
-
throughputPoolAccountName,
|
|
38
|
-
options,
|
|
39
|
-
}, getOperationSpec);
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Creates or updates an Azure Cosmos DB ThroughputPool account. The "Update" method is preferred when
|
|
43
|
-
* performing updates on an account.
|
|
44
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
45
|
-
* @param throughputPoolName Cosmos DB Throughput Pool name.
|
|
46
|
-
* @param throughputPoolAccountName Cosmos DB global database account in a Throughput Pool
|
|
47
|
-
* @param body The parameters to provide for the current ThroughputPoolAccount.
|
|
48
|
-
* @param options The options parameters.
|
|
49
|
-
*/
|
|
50
|
-
async beginCreate(resourceGroupName, throughputPoolName, throughputPoolAccountName, body, options) {
|
|
51
|
-
const directSendOperation = async (args, spec) => {
|
|
52
|
-
return this.client.sendOperationRequest(args, spec);
|
|
53
|
-
};
|
|
54
|
-
const sendOperationFn = async (args, spec) => {
|
|
55
|
-
var _a;
|
|
56
|
-
let currentRawResponse = undefined;
|
|
57
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
58
|
-
const callback = (rawResponse, flatResponse) => {
|
|
59
|
-
currentRawResponse = rawResponse;
|
|
60
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
61
|
-
};
|
|
62
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
63
|
-
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
64
|
-
return {
|
|
65
|
-
flatResponse,
|
|
66
|
-
rawResponse: {
|
|
67
|
-
statusCode: currentRawResponse.status,
|
|
68
|
-
body: currentRawResponse.parsedBody,
|
|
69
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
70
|
-
},
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
const lro = (0, lroImpl_js_1.createLroSpec)({
|
|
74
|
-
sendOperationFn,
|
|
75
|
-
args: {
|
|
76
|
-
resourceGroupName,
|
|
77
|
-
throughputPoolName,
|
|
78
|
-
throughputPoolAccountName,
|
|
79
|
-
body,
|
|
80
|
-
options,
|
|
81
|
-
},
|
|
82
|
-
spec: createOperationSpec,
|
|
83
|
-
});
|
|
84
|
-
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
85
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
86
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
87
|
-
resourceLocationConfig: "azure-async-operation",
|
|
88
|
-
});
|
|
89
|
-
await poller.poll();
|
|
90
|
-
return poller;
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Creates or updates an Azure Cosmos DB ThroughputPool account. The "Update" method is preferred when
|
|
94
|
-
* performing updates on an account.
|
|
95
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
96
|
-
* @param throughputPoolName Cosmos DB Throughput Pool name.
|
|
97
|
-
* @param throughputPoolAccountName Cosmos DB global database account in a Throughput Pool
|
|
98
|
-
* @param body The parameters to provide for the current ThroughputPoolAccount.
|
|
99
|
-
* @param options The options parameters.
|
|
100
|
-
*/
|
|
101
|
-
async beginCreateAndWait(resourceGroupName, throughputPoolName, throughputPoolAccountName, body, options) {
|
|
102
|
-
const poller = await this.beginCreate(resourceGroupName, throughputPoolName, throughputPoolAccountName, body, options);
|
|
103
|
-
return poller.pollUntilDone();
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Removes an existing Azure Cosmos DB database account from a throughput pool.
|
|
107
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
108
|
-
* @param throughputPoolName Cosmos DB Throughput Pool name.
|
|
109
|
-
* @param throughputPoolAccountName Cosmos DB global database account in a Throughput Pool
|
|
110
|
-
* @param options The options parameters.
|
|
111
|
-
*/
|
|
112
|
-
async beginDelete(resourceGroupName, throughputPoolName, throughputPoolAccountName, options) {
|
|
113
|
-
const directSendOperation = async (args, spec) => {
|
|
114
|
-
return this.client.sendOperationRequest(args, spec);
|
|
115
|
-
};
|
|
116
|
-
const sendOperationFn = async (args, spec) => {
|
|
117
|
-
var _a;
|
|
118
|
-
let currentRawResponse = undefined;
|
|
119
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
120
|
-
const callback = (rawResponse, flatResponse) => {
|
|
121
|
-
currentRawResponse = rawResponse;
|
|
122
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
123
|
-
};
|
|
124
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
125
|
-
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
126
|
-
return {
|
|
127
|
-
flatResponse,
|
|
128
|
-
rawResponse: {
|
|
129
|
-
statusCode: currentRawResponse.status,
|
|
130
|
-
body: currentRawResponse.parsedBody,
|
|
131
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
132
|
-
},
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
const lro = (0, lroImpl_js_1.createLroSpec)({
|
|
136
|
-
sendOperationFn,
|
|
137
|
-
args: {
|
|
138
|
-
resourceGroupName,
|
|
139
|
-
throughputPoolName,
|
|
140
|
-
throughputPoolAccountName,
|
|
141
|
-
options,
|
|
142
|
-
},
|
|
143
|
-
spec: deleteOperationSpec,
|
|
144
|
-
});
|
|
145
|
-
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
146
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
147
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
148
|
-
});
|
|
149
|
-
await poller.poll();
|
|
150
|
-
return poller;
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Removes an existing Azure Cosmos DB database account from a throughput pool.
|
|
154
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
155
|
-
* @param throughputPoolName Cosmos DB Throughput Pool name.
|
|
156
|
-
* @param throughputPoolAccountName Cosmos DB global database account in a Throughput Pool
|
|
157
|
-
* @param options The options parameters.
|
|
158
|
-
*/
|
|
159
|
-
async beginDeleteAndWait(resourceGroupName, throughputPoolName, throughputPoolAccountName, options) {
|
|
160
|
-
const poller = await this.beginDelete(resourceGroupName, throughputPoolName, throughputPoolAccountName, options);
|
|
161
|
-
return poller.pollUntilDone();
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
exports.ThroughputPoolAccountImpl = ThroughputPoolAccountImpl;
|
|
165
|
-
// Operation Specifications
|
|
166
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
167
|
-
const getOperationSpec = {
|
|
168
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/throughputPools/{throughputPoolName}/throughputPoolAccounts/{throughputPoolAccountName}",
|
|
169
|
-
httpMethod: "GET",
|
|
170
|
-
responses: {
|
|
171
|
-
200: {
|
|
172
|
-
bodyMapper: Mappers.ThroughputPoolAccountResource,
|
|
173
|
-
},
|
|
174
|
-
default: {
|
|
175
|
-
bodyMapper: Mappers.ErrorResponse,
|
|
176
|
-
},
|
|
177
|
-
},
|
|
178
|
-
queryParameters: [Parameters.apiVersion],
|
|
179
|
-
urlParameters: [
|
|
180
|
-
Parameters.$host,
|
|
181
|
-
Parameters.subscriptionId,
|
|
182
|
-
Parameters.resourceGroupName,
|
|
183
|
-
Parameters.throughputPoolName,
|
|
184
|
-
Parameters.throughputPoolAccountName,
|
|
185
|
-
],
|
|
186
|
-
headerParameters: [Parameters.accept],
|
|
187
|
-
serializer,
|
|
188
|
-
};
|
|
189
|
-
const createOperationSpec = {
|
|
190
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/throughputPools/{throughputPoolName}/throughputPoolAccounts/{throughputPoolAccountName}",
|
|
191
|
-
httpMethod: "PUT",
|
|
192
|
-
responses: {
|
|
193
|
-
200: {
|
|
194
|
-
bodyMapper: Mappers.ThroughputPoolAccountResource,
|
|
195
|
-
},
|
|
196
|
-
201: {
|
|
197
|
-
bodyMapper: Mappers.ThroughputPoolAccountResource,
|
|
198
|
-
},
|
|
199
|
-
202: {
|
|
200
|
-
bodyMapper: Mappers.ThroughputPoolAccountResource,
|
|
201
|
-
},
|
|
202
|
-
204: {
|
|
203
|
-
bodyMapper: Mappers.ThroughputPoolAccountResource,
|
|
204
|
-
},
|
|
205
|
-
default: {
|
|
206
|
-
bodyMapper: Mappers.ErrorResponse,
|
|
207
|
-
},
|
|
208
|
-
},
|
|
209
|
-
requestBody: Parameters.body6,
|
|
210
|
-
queryParameters: [Parameters.apiVersion],
|
|
211
|
-
urlParameters: [
|
|
212
|
-
Parameters.$host,
|
|
213
|
-
Parameters.subscriptionId,
|
|
214
|
-
Parameters.resourceGroupName,
|
|
215
|
-
Parameters.throughputPoolName,
|
|
216
|
-
Parameters.throughputPoolAccountName,
|
|
217
|
-
],
|
|
218
|
-
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
219
|
-
mediaType: "json",
|
|
220
|
-
serializer,
|
|
221
|
-
};
|
|
222
|
-
const deleteOperationSpec = {
|
|
223
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/throughputPools/{throughputPoolName}/throughputPoolAccounts/{throughputPoolAccountName}",
|
|
224
|
-
httpMethod: "DELETE",
|
|
225
|
-
responses: {
|
|
226
|
-
200: {
|
|
227
|
-
headersMapper: Mappers.ThroughputPoolAccountDeleteHeaders,
|
|
228
|
-
},
|
|
229
|
-
201: {
|
|
230
|
-
headersMapper: Mappers.ThroughputPoolAccountDeleteHeaders,
|
|
231
|
-
},
|
|
232
|
-
202: {
|
|
233
|
-
headersMapper: Mappers.ThroughputPoolAccountDeleteHeaders,
|
|
234
|
-
},
|
|
235
|
-
204: {
|
|
236
|
-
headersMapper: Mappers.ThroughputPoolAccountDeleteHeaders,
|
|
237
|
-
},
|
|
238
|
-
default: {
|
|
239
|
-
bodyMapper: Mappers.ErrorResponse,
|
|
240
|
-
},
|
|
241
|
-
},
|
|
242
|
-
queryParameters: [Parameters.apiVersion],
|
|
243
|
-
urlParameters: [
|
|
244
|
-
Parameters.$host,
|
|
245
|
-
Parameters.subscriptionId,
|
|
246
|
-
Parameters.resourceGroupName,
|
|
247
|
-
Parameters.throughputPoolName,
|
|
248
|
-
Parameters.throughputPoolAccountName,
|
|
249
|
-
],
|
|
250
|
-
headerParameters: [Parameters.accept],
|
|
251
|
-
serializer,
|
|
252
|
-
};
|
|
253
|
-
//# sourceMappingURL=throughputPoolAccount.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"throughputPoolAccount.js","sourceRoot":"","sources":["../../../src/operations/throughputPoolAccount.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEA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*\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 { ThroughputPoolAccount } 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 ThroughputPoolAccountGetOptionalParams,\n ThroughputPoolAccountGetResponse,\n ThroughputPoolAccountResource,\n ThroughputPoolAccountCreateOptionalParams,\n ThroughputPoolAccountCreateResponse,\n ThroughputPoolAccountDeleteOptionalParams,\n ThroughputPoolAccountDeleteResponse,\n} from \"../models/index.js\";\n\n/** Class containing ThroughputPoolAccount operations. */\nexport class ThroughputPoolAccountImpl implements ThroughputPoolAccount {\n private readonly client: CosmosDBManagementClient;\n\n /**\n * Initialize a new instance of the class ThroughputPoolAccount class.\n * @param client Reference to the service client\n */\n constructor(client: CosmosDBManagementClient) {\n this.client = client;\n }\n\n /**\n * Retrieves the properties of an existing Azure Cosmos DB Throughput Pool\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param throughputPoolName Cosmos DB Throughput Pool name.\n * @param throughputPoolAccountName Cosmos DB global database account in a Throughput Pool\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n throughputPoolName: string,\n throughputPoolAccountName: string,\n options?: ThroughputPoolAccountGetOptionalParams,\n ): Promise<ThroughputPoolAccountGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n throughputPoolName,\n throughputPoolAccountName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Creates or updates an Azure Cosmos DB ThroughputPool account. The \"Update\" method is preferred when\n * performing updates on an account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param throughputPoolName Cosmos DB Throughput Pool name.\n * @param throughputPoolAccountName Cosmos DB global database account in a Throughput Pool\n * @param body The parameters to provide for the current ThroughputPoolAccount.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n throughputPoolName: string,\n throughputPoolAccountName: string,\n body: ThroughputPoolAccountResource,\n options?: ThroughputPoolAccountCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ThroughputPoolAccountCreateResponse>,\n ThroughputPoolAccountCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ThroughputPoolAccountCreateResponse> => {\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 throughputPoolName,\n throughputPoolAccountName,\n body,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n ThroughputPoolAccountCreateResponse,\n OperationState<ThroughputPoolAccountCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates or updates an Azure Cosmos DB ThroughputPool account. The \"Update\" method is preferred when\n * performing updates on an account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param throughputPoolName Cosmos DB Throughput Pool name.\n * @param throughputPoolAccountName Cosmos DB global database account in a Throughput Pool\n * @param body The parameters to provide for the current ThroughputPoolAccount.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n throughputPoolName: string,\n throughputPoolAccountName: string,\n body: ThroughputPoolAccountResource,\n options?: ThroughputPoolAccountCreateOptionalParams,\n ): Promise<ThroughputPoolAccountCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n throughputPoolName,\n throughputPoolAccountName,\n body,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Removes an existing Azure Cosmos DB database account from a throughput pool.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param throughputPoolName Cosmos DB Throughput Pool name.\n * @param throughputPoolAccountName Cosmos DB global database account in a Throughput Pool\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n throughputPoolName: string,\n throughputPoolAccountName: string,\n options?: ThroughputPoolAccountDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ThroughputPoolAccountDeleteResponse>,\n ThroughputPoolAccountDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ThroughputPoolAccountDeleteResponse> => {\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 throughputPoolName,\n throughputPoolAccountName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n ThroughputPoolAccountDeleteResponse,\n OperationState<ThroughputPoolAccountDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Removes an existing Azure Cosmos DB database account from a throughput pool.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param throughputPoolName Cosmos DB Throughput Pool name.\n * @param throughputPoolAccountName Cosmos DB global database account in a Throughput Pool\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n throughputPoolName: string,\n throughputPoolAccountName: string,\n options?: ThroughputPoolAccountDeleteOptionalParams,\n ): Promise<ThroughputPoolAccountDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n throughputPoolName,\n throughputPoolAccountName,\n options,\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/throughputPools/{throughputPoolName}/throughputPoolAccounts/{throughputPoolAccountName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ThroughputPoolAccountResource,\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.throughputPoolName,\n Parameters.throughputPoolAccountName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/throughputPools/{throughputPoolName}/throughputPoolAccounts/{throughputPoolAccountName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ThroughputPoolAccountResource,\n },\n 201: {\n bodyMapper: Mappers.ThroughputPoolAccountResource,\n },\n 202: {\n bodyMapper: Mappers.ThroughputPoolAccountResource,\n },\n 204: {\n bodyMapper: Mappers.ThroughputPoolAccountResource,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.body6,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.throughputPoolName,\n Parameters.throughputPoolAccountName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/throughputPools/{throughputPoolName}/throughputPoolAccounts/{throughputPoolAccountName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.ThroughputPoolAccountDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.ThroughputPoolAccountDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.ThroughputPoolAccountDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.ThroughputPoolAccountDeleteHeaders,\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.throughputPoolName,\n Parameters.throughputPoolAccountName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { ThroughputPoolAccounts } from "../operationsInterfaces/index.js";
|
|
3
|
-
import { CosmosDBManagementClient } from "../cosmosDBManagementClient.js";
|
|
4
|
-
import { ThroughputPoolAccountResource, ThroughputPoolAccountsListOptionalParams } from "../models/index.js";
|
|
5
|
-
/** Class containing ThroughputPoolAccounts operations. */
|
|
6
|
-
export declare class ThroughputPoolAccountsImpl implements ThroughputPoolAccounts {
|
|
7
|
-
private readonly client;
|
|
8
|
-
/**
|
|
9
|
-
* Initialize a new instance of the class ThroughputPoolAccounts class.
|
|
10
|
-
* @param client Reference to the service client
|
|
11
|
-
*/
|
|
12
|
-
constructor(client: CosmosDBManagementClient);
|
|
13
|
-
/**
|
|
14
|
-
* Lists all the Azure Cosmos DB accounts available under the subscription.
|
|
15
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
16
|
-
* @param throughputPoolName Cosmos DB Throughput Pool name.
|
|
17
|
-
* @param options The options parameters.
|
|
18
|
-
*/
|
|
19
|
-
list(resourceGroupName: string, throughputPoolName: string, options?: ThroughputPoolAccountsListOptionalParams): PagedAsyncIterableIterator<ThroughputPoolAccountResource>;
|
|
20
|
-
private listPagingPage;
|
|
21
|
-
private listPagingAll;
|
|
22
|
-
/**
|
|
23
|
-
* Lists all the Azure Cosmos DB accounts available under the subscription.
|
|
24
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
25
|
-
* @param throughputPoolName Cosmos DB Throughput Pool name.
|
|
26
|
-
* @param options The options parameters.
|
|
27
|
-
*/
|
|
28
|
-
private _list;
|
|
29
|
-
/**
|
|
30
|
-
* ListNext
|
|
31
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
32
|
-
* @param throughputPoolName Cosmos DB Throughput Pool name.
|
|
33
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
34
|
-
* @param options The options parameters.
|
|
35
|
-
*/
|
|
36
|
-
private _listNext;
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=throughputPoolAccounts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"throughputPoolAccounts.d.ts","sourceRoot":"","sources":["../../../src/operations/throughputPoolAccounts.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAI1E,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EACL,6BAA6B,EAE7B,wCAAwC,EAGzC,MAAM,oBAAoB,CAAC;AAG5B,0DAA0D;AAC1D,qBAAa,0BAA2B,YAAW,sBAAsB;IACvE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAElD;;;OAGG;gBACS,MAAM,EAAE,wBAAwB;IAI5C;;;;;OAKG;IACI,IAAI,CACT,iBAAiB,EAAE,MAAM,EACzB,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,wCAAwC,GACjD,0BAA0B,CAAC,6BAA6B,CAAC;YA2B7C,cAAc;YA6Bd,aAAa;IAc5B;;;;;OAKG;IACH,OAAO,CAAC,KAAK;IAWb;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;CAWlB"}
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.ThroughputPoolAccountsImpl = void 0;
|
|
11
|
-
const tslib_1 = require("tslib");
|
|
12
|
-
const pagingHelper_js_1 = require("../pagingHelper.js");
|
|
13
|
-
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
14
|
-
const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
15
|
-
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
16
|
-
/// <reference lib="esnext.asynciterable" />
|
|
17
|
-
/** Class containing ThroughputPoolAccounts operations. */
|
|
18
|
-
class ThroughputPoolAccountsImpl {
|
|
19
|
-
/**
|
|
20
|
-
* Initialize a new instance of the class ThroughputPoolAccounts class.
|
|
21
|
-
* @param client Reference to the service client
|
|
22
|
-
*/
|
|
23
|
-
constructor(client) {
|
|
24
|
-
this.client = client;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Lists all the Azure Cosmos DB accounts available under the subscription.
|
|
28
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
29
|
-
* @param throughputPoolName Cosmos DB Throughput Pool name.
|
|
30
|
-
* @param options The options parameters.
|
|
31
|
-
*/
|
|
32
|
-
list(resourceGroupName, throughputPoolName, options) {
|
|
33
|
-
const iter = this.listPagingAll(resourceGroupName, throughputPoolName, options);
|
|
34
|
-
return {
|
|
35
|
-
next() {
|
|
36
|
-
return iter.next();
|
|
37
|
-
},
|
|
38
|
-
[Symbol.asyncIterator]() {
|
|
39
|
-
return this;
|
|
40
|
-
},
|
|
41
|
-
byPage: (settings) => {
|
|
42
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
43
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
|
-
}
|
|
45
|
-
return this.listPagingPage(resourceGroupName, throughputPoolName, options, settings);
|
|
46
|
-
},
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
listPagingPage(resourceGroupName, throughputPoolName, options, settings) {
|
|
50
|
-
return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
51
|
-
let result;
|
|
52
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
53
|
-
if (!continuationToken) {
|
|
54
|
-
result = yield tslib_1.__await(this._list(resourceGroupName, throughputPoolName, options));
|
|
55
|
-
let page = result.value || [];
|
|
56
|
-
continuationToken = result.nextLink;
|
|
57
|
-
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
58
|
-
yield yield tslib_1.__await(page);
|
|
59
|
-
}
|
|
60
|
-
while (continuationToken) {
|
|
61
|
-
result = yield tslib_1.__await(this._listNext(resourceGroupName, throughputPoolName, continuationToken, options));
|
|
62
|
-
continuationToken = result.nextLink;
|
|
63
|
-
let page = result.value || [];
|
|
64
|
-
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
65
|
-
yield yield tslib_1.__await(page);
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
listPagingAll(resourceGroupName, throughputPoolName, options) {
|
|
70
|
-
return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
71
|
-
var _a, e_1, _b, _c;
|
|
72
|
-
try {
|
|
73
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, throughputPoolName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
74
|
-
_c = _f.value;
|
|
75
|
-
_d = false;
|
|
76
|
-
const page = _c;
|
|
77
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
-
finally {
|
|
82
|
-
try {
|
|
83
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
84
|
-
}
|
|
85
|
-
finally { if (e_1) throw e_1.error; }
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Lists all the Azure Cosmos DB accounts available under the subscription.
|
|
91
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
92
|
-
* @param throughputPoolName Cosmos DB Throughput Pool name.
|
|
93
|
-
* @param options The options parameters.
|
|
94
|
-
*/
|
|
95
|
-
_list(resourceGroupName, throughputPoolName, options) {
|
|
96
|
-
return this.client.sendOperationRequest({ resourceGroupName, throughputPoolName, options }, listOperationSpec);
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* ListNext
|
|
100
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
101
|
-
* @param throughputPoolName Cosmos DB Throughput Pool name.
|
|
102
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
103
|
-
* @param options The options parameters.
|
|
104
|
-
*/
|
|
105
|
-
_listNext(resourceGroupName, throughputPoolName, nextLink, options) {
|
|
106
|
-
return this.client.sendOperationRequest({ resourceGroupName, throughputPoolName, nextLink, options }, listNextOperationSpec);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
exports.ThroughputPoolAccountsImpl = ThroughputPoolAccountsImpl;
|
|
110
|
-
// Operation Specifications
|
|
111
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
112
|
-
const listOperationSpec = {
|
|
113
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/throughputPools/{throughputPoolName}/throughputPoolAccounts",
|
|
114
|
-
httpMethod: "GET",
|
|
115
|
-
responses: {
|
|
116
|
-
200: {
|
|
117
|
-
bodyMapper: Mappers.ThroughputPoolAccountsListResult,
|
|
118
|
-
},
|
|
119
|
-
default: {
|
|
120
|
-
bodyMapper: Mappers.ErrorResponse,
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
queryParameters: [Parameters.apiVersion],
|
|
124
|
-
urlParameters: [
|
|
125
|
-
Parameters.$host,
|
|
126
|
-
Parameters.subscriptionId,
|
|
127
|
-
Parameters.resourceGroupName,
|
|
128
|
-
Parameters.throughputPoolName,
|
|
129
|
-
],
|
|
130
|
-
headerParameters: [Parameters.accept],
|
|
131
|
-
serializer,
|
|
132
|
-
};
|
|
133
|
-
const listNextOperationSpec = {
|
|
134
|
-
path: "{nextLink}",
|
|
135
|
-
httpMethod: "GET",
|
|
136
|
-
responses: {
|
|
137
|
-
200: {
|
|
138
|
-
bodyMapper: Mappers.ThroughputPoolAccountsListResult,
|
|
139
|
-
},
|
|
140
|
-
default: {
|
|
141
|
-
bodyMapper: Mappers.ErrorResponse,
|
|
142
|
-
},
|
|
143
|
-
},
|
|
144
|
-
urlParameters: [
|
|
145
|
-
Parameters.$host,
|
|
146
|
-
Parameters.subscriptionId,
|
|
147
|
-
Parameters.resourceGroupName,
|
|
148
|
-
Parameters.nextLink,
|
|
149
|
-
Parameters.throughputPoolName,
|
|
150
|
-
],
|
|
151
|
-
headerParameters: [Parameters.accept],
|
|
152
|
-
serializer,
|
|
153
|
-
};
|
|
154
|
-
//# sourceMappingURL=throughputPoolAccounts.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"throughputPoolAccounts.js","sourceRoot":"","sources":["../../../src/operations/throughputPoolAccounts.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,0DAA0D;AAC1D,MAAa,0BAA0B;IAGrC;;;OAGG;IACH,YAAY,MAAgC;QAC1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,kBAA0B,EAC1B,OAAkD;QAElD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,iBAAiB,EACjB,kBAAkB,EAClB,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,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,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gCAAgC;SACrD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,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 { setContinuationToken } from \"../pagingHelper.js\";\nimport { ThroughputPoolAccounts } 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 ThroughputPoolAccountResource,\n ThroughputPoolAccountsListNextOptionalParams,\n ThroughputPoolAccountsListOptionalParams,\n ThroughputPoolAccountsListResponse,\n ThroughputPoolAccountsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ThroughputPoolAccounts operations. */\nexport class ThroughputPoolAccountsImpl implements ThroughputPoolAccounts {\n private readonly client: CosmosDBManagementClient;\n\n /**\n * Initialize a new instance of the class ThroughputPoolAccounts class.\n * @param client Reference to the service client\n */\n constructor(client: CosmosDBManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all the Azure Cosmos DB accounts available under the subscription.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param throughputPoolName Cosmos DB Throughput Pool name.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n throughputPoolName: string,\n options?: ThroughputPoolAccountsListOptionalParams,\n ): PagedAsyncIterableIterator<ThroughputPoolAccountResource> {\n const iter = this.listPagingAll(\n resourceGroupName,\n throughputPoolName,\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.listPagingPage(\n resourceGroupName,\n throughputPoolName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n throughputPoolName: string,\n options?: ThroughputPoolAccountsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ThroughputPoolAccountResource[]> {\n let result: ThroughputPoolAccountsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, throughputPoolName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n throughputPoolName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n throughputPoolName: string,\n options?: ThroughputPoolAccountsListOptionalParams,\n ): AsyncIterableIterator<ThroughputPoolAccountResource> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n throughputPoolName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all the Azure Cosmos DB accounts available under the subscription.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param throughputPoolName Cosmos DB Throughput Pool name.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n throughputPoolName: string,\n options?: ThroughputPoolAccountsListOptionalParams,\n ): Promise<ThroughputPoolAccountsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, throughputPoolName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param throughputPoolName Cosmos DB Throughput Pool name.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n throughputPoolName: string,\n nextLink: string,\n options?: ThroughputPoolAccountsListNextOptionalParams,\n ): Promise<ThroughputPoolAccountsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, throughputPoolName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/throughputPools/{throughputPoolName}/throughputPoolAccounts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ThroughputPoolAccountsListResult,\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.throughputPoolName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ThroughputPoolAccountsListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.throughputPoolName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { ThroughputPools } from "../operationsInterfaces/index.js";
|
|
3
|
-
import { CosmosDBManagementClient } from "../cosmosDBManagementClient.js";
|
|
4
|
-
import { ThroughputPoolResource, ThroughputPoolsListOptionalParams, ThroughputPoolsListByResourceGroupOptionalParams } from "../models/index.js";
|
|
5
|
-
/** Class containing ThroughputPools operations. */
|
|
6
|
-
export declare class ThroughputPoolsImpl implements ThroughputPools {
|
|
7
|
-
private readonly client;
|
|
8
|
-
/**
|
|
9
|
-
* Initialize a new instance of the class ThroughputPools class.
|
|
10
|
-
* @param client Reference to the service client
|
|
11
|
-
*/
|
|
12
|
-
constructor(client: CosmosDBManagementClient);
|
|
13
|
-
/**
|
|
14
|
-
* Lists all the Azure Cosmos DB Throughput Pools available under the subscription.
|
|
15
|
-
* @param options The options parameters.
|
|
16
|
-
*/
|
|
17
|
-
list(options?: ThroughputPoolsListOptionalParams): PagedAsyncIterableIterator<ThroughputPoolResource>;
|
|
18
|
-
private listPagingPage;
|
|
19
|
-
private listPagingAll;
|
|
20
|
-
/**
|
|
21
|
-
* List all the ThroughputPools in a given resource group.
|
|
22
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
23
|
-
* @param options The options parameters.
|
|
24
|
-
*/
|
|
25
|
-
listByResourceGroup(resourceGroupName: string, options?: ThroughputPoolsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ThroughputPoolResource>;
|
|
26
|
-
private listByResourceGroupPagingPage;
|
|
27
|
-
private listByResourceGroupPagingAll;
|
|
28
|
-
/**
|
|
29
|
-
* Lists all the Azure Cosmos DB Throughput Pools available under the subscription.
|
|
30
|
-
* @param options The options parameters.
|
|
31
|
-
*/
|
|
32
|
-
private _list;
|
|
33
|
-
/**
|
|
34
|
-
* List all the ThroughputPools in a given resource group.
|
|
35
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
36
|
-
* @param options The options parameters.
|
|
37
|
-
*/
|
|
38
|
-
private _listByResourceGroup;
|
|
39
|
-
/**
|
|
40
|
-
* ListNext
|
|
41
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
42
|
-
* @param options The options parameters.
|
|
43
|
-
*/
|
|
44
|
-
private _listNext;
|
|
45
|
-
/**
|
|
46
|
-
* ListByResourceGroupNext
|
|
47
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
48
|
-
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
49
|
-
* @param options The options parameters.
|
|
50
|
-
*/
|
|
51
|
-
private _listByResourceGroupNext;
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=throughputPools.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"throughputPools.d.ts","sourceRoot":"","sources":["../../../src/operations/throughputPools.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAInE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EACL,sBAAsB,EAEtB,iCAAiC,EAGjC,gDAAgD,EAIjD,MAAM,oBAAoB,CAAC;AAG5B,mDAAmD;AACnD,qBAAa,mBAAoB,YAAW,eAAe;IACzD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAElD;;;OAGG;gBACS,MAAM,EAAE,wBAAwB;IAI5C;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,iCAAiC,GAC1C,0BAA0B,CAAC,sBAAsB,CAAC;YAkBtC,cAAc;YAsBd,aAAa;IAQ5B;;;;OAIG;IACI,mBAAmB,CACxB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,gDAAgD,GACzD,0BAA0B,CAAC,sBAAsB,CAAC;YAsBtC,6BAA6B;YA2B7B,4BAA4B;IAY3C;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,oBAAoB;IAU5B;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAUjB;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB;CAUjC"}
|