@azure/arm-cosmosdb 16.3.0-alpha.20250522.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.
Files changed (533) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/LICENSE +1 -1
  3. package/README.md +2 -2
  4. package/dist/browser/cosmosDBManagementClient.d.ts +2 -10
  5. package/dist/browser/cosmosDBManagementClient.d.ts.map +1 -1
  6. package/dist/browser/cosmosDBManagementClient.js +4 -13
  7. package/dist/browser/cosmosDBManagementClient.js.map +1 -1
  8. package/dist/browser/lroImpl.d.ts.map +1 -1
  9. package/dist/browser/lroImpl.js +7 -0
  10. package/dist/browser/lroImpl.js.map +1 -1
  11. package/dist/browser/models/index.d.ts +285 -2015
  12. package/dist/browser/models/index.d.ts.map +1 -1
  13. package/dist/browser/models/index.js +12 -196
  14. package/dist/browser/models/index.js.map +1 -1
  15. package/dist/browser/models/mappers.d.ts +29 -131
  16. package/dist/browser/models/mappers.d.ts.map +1 -1
  17. package/dist/browser/models/mappers.js +1733 -4254
  18. package/dist/browser/models/mappers.js.map +1 -1
  19. package/dist/browser/models/parameters.d.ts +6 -28
  20. package/dist/browser/models/parameters.d.ts.map +1 -1
  21. package/dist/browser/models/parameters.js +45 -206
  22. package/dist/browser/models/parameters.js.map +1 -1
  23. package/dist/browser/operations/cassandraClusters.d.ts +1 -65
  24. package/dist/browser/operations/cassandraClusters.d.ts.map +1 -1
  25. package/dist/browser/operations/cassandraClusters.js +1 -310
  26. package/dist/browser/operations/cassandraClusters.js.map +1 -1
  27. package/dist/browser/operations/cassandraDataCenters.js +2 -2
  28. package/dist/browser/operations/cassandraDataCenters.js.map +1 -1
  29. package/dist/browser/operations/cassandraResources.d.ts +1 -134
  30. package/dist/browser/operations/cassandraResources.d.ts.map +1 -1
  31. package/dist/browser/operations/cassandraResources.js +0 -579
  32. package/dist/browser/operations/cassandraResources.js.map +1 -1
  33. package/dist/browser/operations/gremlinResources.js +8 -8
  34. package/dist/browser/operations/gremlinResources.js.map +1 -1
  35. package/dist/browser/operations/index.d.ts +0 -8
  36. package/dist/browser/operations/index.d.ts.map +1 -1
  37. package/dist/browser/operations/index.js +0 -8
  38. package/dist/browser/operations/index.js.map +1 -1
  39. package/dist/browser/operations/mongoDBResources.d.ts +1 -123
  40. package/dist/browser/operations/mongoDBResources.d.ts.map +1 -1
  41. package/dist/browser/operations/mongoDBResources.js +0 -590
  42. package/dist/browser/operations/mongoDBResources.js.map +1 -1
  43. package/dist/browser/operations/sqlResources.d.ts +26 -148
  44. package/dist/browser/operations/sqlResources.d.ts.map +1 -1
  45. package/dist/browser/operations/sqlResources.js +92 -682
  46. package/dist/browser/operations/sqlResources.js.map +1 -1
  47. package/dist/browser/operations/tableResources.d.ts +1 -121
  48. package/dist/browser/operations/tableResources.d.ts.map +1 -1
  49. package/dist/browser/operations/tableResources.js +0 -568
  50. package/dist/browser/operations/tableResources.js.map +1 -1
  51. package/dist/browser/operationsInterfaces/cassandraClusters.d.ts +1 -47
  52. package/dist/browser/operationsInterfaces/cassandraClusters.d.ts.map +1 -1
  53. package/dist/browser/operationsInterfaces/cassandraClusters.js.map +1 -1
  54. package/dist/browser/operationsInterfaces/cassandraResources.d.ts +1 -124
  55. package/dist/browser/operationsInterfaces/cassandraResources.d.ts.map +1 -1
  56. package/dist/browser/operationsInterfaces/cassandraResources.js.map +1 -1
  57. package/dist/browser/operationsInterfaces/collectionRegion.d.ts.map +1 -1
  58. package/dist/browser/operationsInterfaces/collectionRegion.js.map +1 -1
  59. package/dist/browser/operationsInterfaces/index.d.ts +0 -8
  60. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -1
  61. package/dist/browser/operationsInterfaces/index.js +0 -8
  62. package/dist/browser/operationsInterfaces/index.js.map +1 -1
  63. package/dist/browser/operationsInterfaces/mongoDBResources.d.ts +1 -123
  64. package/dist/browser/operationsInterfaces/mongoDBResources.d.ts.map +1 -1
  65. package/dist/browser/operationsInterfaces/mongoDBResources.js.map +1 -1
  66. package/dist/browser/operationsInterfaces/sqlResources.d.ts +20 -142
  67. package/dist/browser/operationsInterfaces/sqlResources.d.ts.map +1 -1
  68. package/dist/browser/operationsInterfaces/sqlResources.js.map +1 -1
  69. package/dist/browser/operationsInterfaces/tableResources.d.ts +1 -103
  70. package/dist/browser/operationsInterfaces/tableResources.d.ts.map +1 -1
  71. package/dist/browser/operationsInterfaces/tableResources.js.map +1 -1
  72. package/dist/commonjs/cosmosDBManagementClient.d.ts +2 -10
  73. package/dist/commonjs/cosmosDBManagementClient.d.ts.map +1 -1
  74. package/dist/commonjs/cosmosDBManagementClient.js +3 -12
  75. package/dist/commonjs/cosmosDBManagementClient.js.map +1 -1
  76. package/dist/commonjs/lroImpl.d.ts.map +1 -1
  77. package/dist/commonjs/lroImpl.js +7 -0
  78. package/dist/commonjs/lroImpl.js.map +1 -1
  79. package/dist/commonjs/models/index.d.ts +285 -2015
  80. package/dist/commonjs/models/index.d.ts.map +1 -1
  81. package/dist/commonjs/models/index.js +13 -198
  82. package/dist/commonjs/models/index.js.map +1 -1
  83. package/dist/commonjs/models/mappers.d.ts +29 -131
  84. package/dist/commonjs/models/mappers.d.ts.map +1 -1
  85. package/dist/commonjs/models/mappers.js +1740 -4263
  86. package/dist/commonjs/models/mappers.js.map +1 -1
  87. package/dist/commonjs/models/parameters.d.ts +6 -28
  88. package/dist/commonjs/models/parameters.d.ts.map +1 -1
  89. package/dist/commonjs/models/parameters.js +46 -207
  90. package/dist/commonjs/models/parameters.js.map +1 -1
  91. package/dist/commonjs/operations/cassandraClusters.d.ts +1 -65
  92. package/dist/commonjs/operations/cassandraClusters.d.ts.map +1 -1
  93. package/dist/commonjs/operations/cassandraClusters.js +1 -310
  94. package/dist/commonjs/operations/cassandraClusters.js.map +1 -1
  95. package/dist/commonjs/operations/cassandraDataCenters.js +2 -2
  96. package/dist/commonjs/operations/cassandraDataCenters.js.map +1 -1
  97. package/dist/commonjs/operations/cassandraResources.d.ts +1 -134
  98. package/dist/commonjs/operations/cassandraResources.d.ts.map +1 -1
  99. package/dist/commonjs/operations/cassandraResources.js +0 -579
  100. package/dist/commonjs/operations/cassandraResources.js.map +1 -1
  101. package/dist/commonjs/operations/gremlinResources.js +8 -8
  102. package/dist/commonjs/operations/gremlinResources.js.map +1 -1
  103. package/dist/commonjs/operations/index.d.ts +0 -8
  104. package/dist/commonjs/operations/index.d.ts.map +1 -1
  105. package/dist/commonjs/operations/index.js +0 -8
  106. package/dist/commonjs/operations/index.js.map +1 -1
  107. package/dist/commonjs/operations/mongoDBResources.d.ts +1 -123
  108. package/dist/commonjs/operations/mongoDBResources.d.ts.map +1 -1
  109. package/dist/commonjs/operations/mongoDBResources.js +0 -590
  110. package/dist/commonjs/operations/mongoDBResources.js.map +1 -1
  111. package/dist/commonjs/operations/sqlResources.d.ts +26 -148
  112. package/dist/commonjs/operations/sqlResources.d.ts.map +1 -1
  113. package/dist/commonjs/operations/sqlResources.js +92 -682
  114. package/dist/commonjs/operations/sqlResources.js.map +1 -1
  115. package/dist/commonjs/operations/tableResources.d.ts +1 -121
  116. package/dist/commonjs/operations/tableResources.d.ts.map +1 -1
  117. package/dist/commonjs/operations/tableResources.js +0 -568
  118. package/dist/commonjs/operations/tableResources.js.map +1 -1
  119. package/dist/commonjs/operationsInterfaces/cassandraClusters.d.ts +1 -47
  120. package/dist/commonjs/operationsInterfaces/cassandraClusters.d.ts.map +1 -1
  121. package/dist/commonjs/operationsInterfaces/cassandraClusters.js.map +1 -1
  122. package/dist/commonjs/operationsInterfaces/cassandraResources.d.ts +1 -124
  123. package/dist/commonjs/operationsInterfaces/cassandraResources.d.ts.map +1 -1
  124. package/dist/commonjs/operationsInterfaces/cassandraResources.js.map +1 -1
  125. package/dist/commonjs/operationsInterfaces/collectionRegion.d.ts.map +1 -1
  126. package/dist/commonjs/operationsInterfaces/collectionRegion.js.map +1 -1
  127. package/dist/commonjs/operationsInterfaces/index.d.ts +0 -8
  128. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -1
  129. package/dist/commonjs/operationsInterfaces/index.js +0 -8
  130. package/dist/commonjs/operationsInterfaces/index.js.map +1 -1
  131. package/dist/commonjs/operationsInterfaces/mongoDBResources.d.ts +1 -123
  132. package/dist/commonjs/operationsInterfaces/mongoDBResources.d.ts.map +1 -1
  133. package/dist/commonjs/operationsInterfaces/mongoDBResources.js.map +1 -1
  134. package/dist/commonjs/operationsInterfaces/sqlResources.d.ts +20 -142
  135. package/dist/commonjs/operationsInterfaces/sqlResources.d.ts.map +1 -1
  136. package/dist/commonjs/operationsInterfaces/sqlResources.js.map +1 -1
  137. package/dist/commonjs/operationsInterfaces/tableResources.d.ts +1 -103
  138. package/dist/commonjs/operationsInterfaces/tableResources.d.ts.map +1 -1
  139. package/dist/commonjs/operationsInterfaces/tableResources.js.map +1 -1
  140. package/dist/esm/cosmosDBManagementClient.d.ts +2 -10
  141. package/dist/esm/cosmosDBManagementClient.d.ts.map +1 -1
  142. package/dist/esm/cosmosDBManagementClient.js +4 -13
  143. package/dist/esm/cosmosDBManagementClient.js.map +1 -1
  144. package/dist/esm/lroImpl.d.ts.map +1 -1
  145. package/dist/esm/lroImpl.js +7 -0
  146. package/dist/esm/lroImpl.js.map +1 -1
  147. package/dist/esm/models/index.d.ts +285 -2015
  148. package/dist/esm/models/index.d.ts.map +1 -1
  149. package/dist/esm/models/index.js +12 -196
  150. package/dist/esm/models/index.js.map +1 -1
  151. package/dist/esm/models/mappers.d.ts +29 -131
  152. package/dist/esm/models/mappers.d.ts.map +1 -1
  153. package/dist/esm/models/mappers.js +1733 -4254
  154. package/dist/esm/models/mappers.js.map +1 -1
  155. package/dist/esm/models/parameters.d.ts +6 -28
  156. package/dist/esm/models/parameters.d.ts.map +1 -1
  157. package/dist/esm/models/parameters.js +45 -206
  158. package/dist/esm/models/parameters.js.map +1 -1
  159. package/dist/esm/operations/cassandraClusters.d.ts +1 -65
  160. package/dist/esm/operations/cassandraClusters.d.ts.map +1 -1
  161. package/dist/esm/operations/cassandraClusters.js +1 -310
  162. package/dist/esm/operations/cassandraClusters.js.map +1 -1
  163. package/dist/esm/operations/cassandraDataCenters.js +2 -2
  164. package/dist/esm/operations/cassandraDataCenters.js.map +1 -1
  165. package/dist/esm/operations/cassandraResources.d.ts +1 -134
  166. package/dist/esm/operations/cassandraResources.d.ts.map +1 -1
  167. package/dist/esm/operations/cassandraResources.js +0 -579
  168. package/dist/esm/operations/cassandraResources.js.map +1 -1
  169. package/dist/esm/operations/gremlinResources.js +8 -8
  170. package/dist/esm/operations/gremlinResources.js.map +1 -1
  171. package/dist/esm/operations/index.d.ts +0 -8
  172. package/dist/esm/operations/index.d.ts.map +1 -1
  173. package/dist/esm/operations/index.js +0 -8
  174. package/dist/esm/operations/index.js.map +1 -1
  175. package/dist/esm/operations/mongoDBResources.d.ts +1 -123
  176. package/dist/esm/operations/mongoDBResources.d.ts.map +1 -1
  177. package/dist/esm/operations/mongoDBResources.js +0 -590
  178. package/dist/esm/operations/mongoDBResources.js.map +1 -1
  179. package/dist/esm/operations/sqlResources.d.ts +26 -148
  180. package/dist/esm/operations/sqlResources.d.ts.map +1 -1
  181. package/dist/esm/operations/sqlResources.js +92 -682
  182. package/dist/esm/operations/sqlResources.js.map +1 -1
  183. package/dist/esm/operations/tableResources.d.ts +1 -121
  184. package/dist/esm/operations/tableResources.d.ts.map +1 -1
  185. package/dist/esm/operations/tableResources.js +0 -568
  186. package/dist/esm/operations/tableResources.js.map +1 -1
  187. package/dist/esm/operationsInterfaces/cassandraClusters.d.ts +1 -47
  188. package/dist/esm/operationsInterfaces/cassandraClusters.d.ts.map +1 -1
  189. package/dist/esm/operationsInterfaces/cassandraClusters.js.map +1 -1
  190. package/dist/esm/operationsInterfaces/cassandraResources.d.ts +1 -124
  191. package/dist/esm/operationsInterfaces/cassandraResources.d.ts.map +1 -1
  192. package/dist/esm/operationsInterfaces/cassandraResources.js.map +1 -1
  193. package/dist/esm/operationsInterfaces/collectionRegion.d.ts.map +1 -1
  194. package/dist/esm/operationsInterfaces/collectionRegion.js.map +1 -1
  195. package/dist/esm/operationsInterfaces/index.d.ts +0 -8
  196. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -1
  197. package/dist/esm/operationsInterfaces/index.js +0 -8
  198. package/dist/esm/operationsInterfaces/index.js.map +1 -1
  199. package/dist/esm/operationsInterfaces/mongoDBResources.d.ts +1 -123
  200. package/dist/esm/operationsInterfaces/mongoDBResources.d.ts.map +1 -1
  201. package/dist/esm/operationsInterfaces/mongoDBResources.js.map +1 -1
  202. package/dist/esm/operationsInterfaces/sqlResources.d.ts +20 -142
  203. package/dist/esm/operationsInterfaces/sqlResources.d.ts.map +1 -1
  204. package/dist/esm/operationsInterfaces/sqlResources.js.map +1 -1
  205. package/dist/esm/operationsInterfaces/tableResources.d.ts +1 -103
  206. package/dist/esm/operationsInterfaces/tableResources.d.ts.map +1 -1
  207. package/dist/esm/operationsInterfaces/tableResources.js.map +1 -1
  208. package/dist/react-native/cosmosDBManagementClient.d.ts +2 -10
  209. package/dist/react-native/cosmosDBManagementClient.d.ts.map +1 -1
  210. package/dist/react-native/cosmosDBManagementClient.js +4 -13
  211. package/dist/react-native/cosmosDBManagementClient.js.map +1 -1
  212. package/dist/react-native/lroImpl.d.ts.map +1 -1
  213. package/dist/react-native/lroImpl.js +7 -0
  214. package/dist/react-native/lroImpl.js.map +1 -1
  215. package/dist/react-native/models/index.d.ts +285 -2015
  216. package/dist/react-native/models/index.d.ts.map +1 -1
  217. package/dist/react-native/models/index.js +12 -196
  218. package/dist/react-native/models/index.js.map +1 -1
  219. package/dist/react-native/models/mappers.d.ts +29 -131
  220. package/dist/react-native/models/mappers.d.ts.map +1 -1
  221. package/dist/react-native/models/mappers.js +1733 -4254
  222. package/dist/react-native/models/mappers.js.map +1 -1
  223. package/dist/react-native/models/parameters.d.ts +6 -28
  224. package/dist/react-native/models/parameters.d.ts.map +1 -1
  225. package/dist/react-native/models/parameters.js +45 -206
  226. package/dist/react-native/models/parameters.js.map +1 -1
  227. package/dist/react-native/operations/cassandraClusters.d.ts +1 -65
  228. package/dist/react-native/operations/cassandraClusters.d.ts.map +1 -1
  229. package/dist/react-native/operations/cassandraClusters.js +1 -310
  230. package/dist/react-native/operations/cassandraClusters.js.map +1 -1
  231. package/dist/react-native/operations/cassandraDataCenters.js +2 -2
  232. package/dist/react-native/operations/cassandraDataCenters.js.map +1 -1
  233. package/dist/react-native/operations/cassandraResources.d.ts +1 -134
  234. package/dist/react-native/operations/cassandraResources.d.ts.map +1 -1
  235. package/dist/react-native/operations/cassandraResources.js +0 -579
  236. package/dist/react-native/operations/cassandraResources.js.map +1 -1
  237. package/dist/react-native/operations/gremlinResources.js +8 -8
  238. package/dist/react-native/operations/gremlinResources.js.map +1 -1
  239. package/dist/react-native/operations/index.d.ts +0 -8
  240. package/dist/react-native/operations/index.d.ts.map +1 -1
  241. package/dist/react-native/operations/index.js +0 -8
  242. package/dist/react-native/operations/index.js.map +1 -1
  243. package/dist/react-native/operations/mongoDBResources.d.ts +1 -123
  244. package/dist/react-native/operations/mongoDBResources.d.ts.map +1 -1
  245. package/dist/react-native/operations/mongoDBResources.js +0 -590
  246. package/dist/react-native/operations/mongoDBResources.js.map +1 -1
  247. package/dist/react-native/operations/sqlResources.d.ts +26 -148
  248. package/dist/react-native/operations/sqlResources.d.ts.map +1 -1
  249. package/dist/react-native/operations/sqlResources.js +92 -682
  250. package/dist/react-native/operations/sqlResources.js.map +1 -1
  251. package/dist/react-native/operations/tableResources.d.ts +1 -121
  252. package/dist/react-native/operations/tableResources.d.ts.map +1 -1
  253. package/dist/react-native/operations/tableResources.js +0 -568
  254. package/dist/react-native/operations/tableResources.js.map +1 -1
  255. package/dist/react-native/operationsInterfaces/cassandraClusters.d.ts +1 -47
  256. package/dist/react-native/operationsInterfaces/cassandraClusters.d.ts.map +1 -1
  257. package/dist/react-native/operationsInterfaces/cassandraClusters.js.map +1 -1
  258. package/dist/react-native/operationsInterfaces/cassandraResources.d.ts +1 -124
  259. package/dist/react-native/operationsInterfaces/cassandraResources.d.ts.map +1 -1
  260. package/dist/react-native/operationsInterfaces/cassandraResources.js.map +1 -1
  261. package/dist/react-native/operationsInterfaces/collectionRegion.d.ts.map +1 -1
  262. package/dist/react-native/operationsInterfaces/collectionRegion.js.map +1 -1
  263. package/dist/react-native/operationsInterfaces/index.d.ts +0 -8
  264. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -1
  265. package/dist/react-native/operationsInterfaces/index.js +0 -8
  266. package/dist/react-native/operationsInterfaces/index.js.map +1 -1
  267. package/dist/react-native/operationsInterfaces/mongoDBResources.d.ts +1 -123
  268. package/dist/react-native/operationsInterfaces/mongoDBResources.d.ts.map +1 -1
  269. package/dist/react-native/operationsInterfaces/mongoDBResources.js.map +1 -1
  270. package/dist/react-native/operationsInterfaces/sqlResources.d.ts +20 -142
  271. package/dist/react-native/operationsInterfaces/sqlResources.d.ts.map +1 -1
  272. package/dist/react-native/operationsInterfaces/sqlResources.js.map +1 -1
  273. package/dist/react-native/operationsInterfaces/tableResources.d.ts +1 -103
  274. package/dist/react-native/operationsInterfaces/tableResources.d.ts.map +1 -1
  275. package/dist/react-native/operationsInterfaces/tableResources.js.map +1 -1
  276. package/package.json +23 -23
  277. package/review/arm-cosmosdb.api.md +39 -1537
  278. package/dist/browser/operations/chaosFault.d.ts +0 -65
  279. package/dist/browser/operations/chaosFault.d.ts.map +0 -1
  280. package/dist/browser/operations/chaosFault.js +0 -279
  281. package/dist/browser/operations/chaosFault.js.map +0 -1
  282. package/dist/browser/operations/dataTransferJobs.d.ts +0 -87
  283. package/dist/browser/operations/dataTransferJobs.d.ts.map +0 -1
  284. package/dist/browser/operations/dataTransferJobs.js +0 -345
  285. package/dist/browser/operations/dataTransferJobs.js.map +0 -1
  286. package/dist/browser/operations/graphResources.d.ts +0 -73
  287. package/dist/browser/operations/graphResources.d.ts.map +0 -1
  288. package/dist/browser/operations/graphResources.js +0 -291
  289. package/dist/browser/operations/graphResources.js.map +0 -1
  290. package/dist/browser/operations/networkSecurityPerimeterConfigurations.d.ts +0 -66
  291. package/dist/browser/operations/networkSecurityPerimeterConfigurations.d.ts.map +0 -1
  292. package/dist/browser/operations/networkSecurityPerimeterConfigurations.js +0 -282
  293. package/dist/browser/operations/networkSecurityPerimeterConfigurations.js.map +0 -1
  294. package/dist/browser/operations/throughputPool.d.ts +0 -67
  295. package/dist/browser/operations/throughputPool.d.ts.map +0 -1
  296. package/dist/browser/operations/throughputPool.js +0 -308
  297. package/dist/browser/operations/throughputPool.js.map +0 -1
  298. package/dist/browser/operations/throughputPoolAccount.d.ts +0 -58
  299. package/dist/browser/operations/throughputPoolAccount.d.ts.map +0 -1
  300. package/dist/browser/operations/throughputPoolAccount.js +0 -248
  301. package/dist/browser/operations/throughputPoolAccount.js.map +0 -1
  302. package/dist/browser/operations/throughputPoolAccounts.d.ts +0 -38
  303. package/dist/browser/operations/throughputPoolAccounts.d.ts.map +0 -1
  304. package/dist/browser/operations/throughputPoolAccounts.js +0 -150
  305. package/dist/browser/operations/throughputPoolAccounts.js.map +0 -1
  306. package/dist/browser/operations/throughputPools.d.ts +0 -53
  307. package/dist/browser/operations/throughputPools.d.ts.map +0 -1
  308. package/dist/browser/operations/throughputPools.js +0 -256
  309. package/dist/browser/operations/throughputPools.js.map +0 -1
  310. package/dist/browser/operationsInterfaces/chaosFault.d.ts +0 -40
  311. package/dist/browser/operationsInterfaces/chaosFault.d.ts.map +0 -1
  312. package/dist/browser/operationsInterfaces/chaosFault.js +0 -9
  313. package/dist/browser/operationsInterfaces/chaosFault.js.map +0 -1
  314. package/dist/browser/operationsInterfaces/dataTransferJobs.d.ts +0 -62
  315. package/dist/browser/operationsInterfaces/dataTransferJobs.d.ts.map +0 -1
  316. package/dist/browser/operationsInterfaces/dataTransferJobs.js +0 -9
  317. package/dist/browser/operationsInterfaces/dataTransferJobs.js.map +0 -1
  318. package/dist/browser/operationsInterfaces/graphResources.d.ts +0 -56
  319. package/dist/browser/operationsInterfaces/graphResources.d.ts.map +0 -1
  320. package/dist/browser/operationsInterfaces/graphResources.js +0 -9
  321. package/dist/browser/operationsInterfaces/graphResources.js.map +0 -1
  322. package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +0 -41
  323. package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +0 -1
  324. package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.js +0 -9
  325. package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +0 -1
  326. package/dist/browser/operationsInterfaces/throughputPool.d.ts +0 -59
  327. package/dist/browser/operationsInterfaces/throughputPool.d.ts.map +0 -1
  328. package/dist/browser/operationsInterfaces/throughputPool.js +0 -9
  329. package/dist/browser/operationsInterfaces/throughputPool.js.map +0 -1
  330. package/dist/browser/operationsInterfaces/throughputPoolAccount.d.ts +0 -50
  331. package/dist/browser/operationsInterfaces/throughputPoolAccount.d.ts.map +0 -1
  332. package/dist/browser/operationsInterfaces/throughputPoolAccount.js +0 -9
  333. package/dist/browser/operationsInterfaces/throughputPoolAccount.js.map +0 -1
  334. package/dist/browser/operationsInterfaces/throughputPoolAccounts.d.ts +0 -13
  335. package/dist/browser/operationsInterfaces/throughputPoolAccounts.d.ts.map +0 -1
  336. package/dist/browser/operationsInterfaces/throughputPoolAccounts.js +0 -9
  337. package/dist/browser/operationsInterfaces/throughputPoolAccounts.js.map +0 -1
  338. package/dist/browser/operationsInterfaces/throughputPools.d.ts +0 -17
  339. package/dist/browser/operationsInterfaces/throughputPools.d.ts.map +0 -1
  340. package/dist/browser/operationsInterfaces/throughputPools.js +0 -9
  341. package/dist/browser/operationsInterfaces/throughputPools.js.map +0 -1
  342. package/dist/commonjs/operations/chaosFault.d.ts +0 -65
  343. package/dist/commonjs/operations/chaosFault.d.ts.map +0 -1
  344. package/dist/commonjs/operations/chaosFault.js +0 -283
  345. package/dist/commonjs/operations/chaosFault.js.map +0 -1
  346. package/dist/commonjs/operations/dataTransferJobs.d.ts +0 -87
  347. package/dist/commonjs/operations/dataTransferJobs.d.ts.map +0 -1
  348. package/dist/commonjs/operations/dataTransferJobs.js +0 -349
  349. package/dist/commonjs/operations/dataTransferJobs.js.map +0 -1
  350. package/dist/commonjs/operations/graphResources.d.ts +0 -73
  351. package/dist/commonjs/operations/graphResources.d.ts.map +0 -1
  352. package/dist/commonjs/operations/graphResources.js +0 -295
  353. package/dist/commonjs/operations/graphResources.js.map +0 -1
  354. package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.d.ts +0 -66
  355. package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.d.ts.map +0 -1
  356. package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js +0 -286
  357. package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js.map +0 -1
  358. package/dist/commonjs/operations/throughputPool.d.ts +0 -67
  359. package/dist/commonjs/operations/throughputPool.d.ts.map +0 -1
  360. package/dist/commonjs/operations/throughputPool.js +0 -313
  361. package/dist/commonjs/operations/throughputPool.js.map +0 -1
  362. package/dist/commonjs/operations/throughputPoolAccount.d.ts +0 -58
  363. package/dist/commonjs/operations/throughputPoolAccount.d.ts.map +0 -1
  364. package/dist/commonjs/operations/throughputPoolAccount.js +0 -253
  365. package/dist/commonjs/operations/throughputPoolAccount.js.map +0 -1
  366. package/dist/commonjs/operations/throughputPoolAccounts.d.ts +0 -38
  367. package/dist/commonjs/operations/throughputPoolAccounts.d.ts.map +0 -1
  368. package/dist/commonjs/operations/throughputPoolAccounts.js +0 -154
  369. package/dist/commonjs/operations/throughputPoolAccounts.js.map +0 -1
  370. package/dist/commonjs/operations/throughputPools.d.ts +0 -53
  371. package/dist/commonjs/operations/throughputPools.d.ts.map +0 -1
  372. package/dist/commonjs/operations/throughputPools.js +0 -260
  373. package/dist/commonjs/operations/throughputPools.js.map +0 -1
  374. package/dist/commonjs/operationsInterfaces/chaosFault.d.ts +0 -40
  375. package/dist/commonjs/operationsInterfaces/chaosFault.d.ts.map +0 -1
  376. package/dist/commonjs/operationsInterfaces/chaosFault.js +0 -10
  377. package/dist/commonjs/operationsInterfaces/chaosFault.js.map +0 -1
  378. package/dist/commonjs/operationsInterfaces/dataTransferJobs.d.ts +0 -62
  379. package/dist/commonjs/operationsInterfaces/dataTransferJobs.d.ts.map +0 -1
  380. package/dist/commonjs/operationsInterfaces/dataTransferJobs.js +0 -10
  381. package/dist/commonjs/operationsInterfaces/dataTransferJobs.js.map +0 -1
  382. package/dist/commonjs/operationsInterfaces/graphResources.d.ts +0 -56
  383. package/dist/commonjs/operationsInterfaces/graphResources.d.ts.map +0 -1
  384. package/dist/commonjs/operationsInterfaces/graphResources.js +0 -10
  385. package/dist/commonjs/operationsInterfaces/graphResources.js.map +0 -1
  386. package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +0 -41
  387. package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +0 -1
  388. package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.js +0 -10
  389. package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +0 -1
  390. package/dist/commonjs/operationsInterfaces/throughputPool.d.ts +0 -59
  391. package/dist/commonjs/operationsInterfaces/throughputPool.d.ts.map +0 -1
  392. package/dist/commonjs/operationsInterfaces/throughputPool.js +0 -10
  393. package/dist/commonjs/operationsInterfaces/throughputPool.js.map +0 -1
  394. package/dist/commonjs/operationsInterfaces/throughputPoolAccount.d.ts +0 -50
  395. package/dist/commonjs/operationsInterfaces/throughputPoolAccount.d.ts.map +0 -1
  396. package/dist/commonjs/operationsInterfaces/throughputPoolAccount.js +0 -10
  397. package/dist/commonjs/operationsInterfaces/throughputPoolAccount.js.map +0 -1
  398. package/dist/commonjs/operationsInterfaces/throughputPoolAccounts.d.ts +0 -13
  399. package/dist/commonjs/operationsInterfaces/throughputPoolAccounts.d.ts.map +0 -1
  400. package/dist/commonjs/operationsInterfaces/throughputPoolAccounts.js +0 -10
  401. package/dist/commonjs/operationsInterfaces/throughputPoolAccounts.js.map +0 -1
  402. package/dist/commonjs/operationsInterfaces/throughputPools.d.ts +0 -17
  403. package/dist/commonjs/operationsInterfaces/throughputPools.d.ts.map +0 -1
  404. package/dist/commonjs/operationsInterfaces/throughputPools.js +0 -10
  405. package/dist/commonjs/operationsInterfaces/throughputPools.js.map +0 -1
  406. package/dist/esm/operations/chaosFault.d.ts +0 -65
  407. package/dist/esm/operations/chaosFault.d.ts.map +0 -1
  408. package/dist/esm/operations/chaosFault.js +0 -279
  409. package/dist/esm/operations/chaosFault.js.map +0 -1
  410. package/dist/esm/operations/dataTransferJobs.d.ts +0 -87
  411. package/dist/esm/operations/dataTransferJobs.d.ts.map +0 -1
  412. package/dist/esm/operations/dataTransferJobs.js +0 -345
  413. package/dist/esm/operations/dataTransferJobs.js.map +0 -1
  414. package/dist/esm/operations/graphResources.d.ts +0 -73
  415. package/dist/esm/operations/graphResources.d.ts.map +0 -1
  416. package/dist/esm/operations/graphResources.js +0 -291
  417. package/dist/esm/operations/graphResources.js.map +0 -1
  418. package/dist/esm/operations/networkSecurityPerimeterConfigurations.d.ts +0 -66
  419. package/dist/esm/operations/networkSecurityPerimeterConfigurations.d.ts.map +0 -1
  420. package/dist/esm/operations/networkSecurityPerimeterConfigurations.js +0 -282
  421. package/dist/esm/operations/networkSecurityPerimeterConfigurations.js.map +0 -1
  422. package/dist/esm/operations/throughputPool.d.ts +0 -67
  423. package/dist/esm/operations/throughputPool.d.ts.map +0 -1
  424. package/dist/esm/operations/throughputPool.js +0 -308
  425. package/dist/esm/operations/throughputPool.js.map +0 -1
  426. package/dist/esm/operations/throughputPoolAccount.d.ts +0 -58
  427. package/dist/esm/operations/throughputPoolAccount.d.ts.map +0 -1
  428. package/dist/esm/operations/throughputPoolAccount.js +0 -248
  429. package/dist/esm/operations/throughputPoolAccount.js.map +0 -1
  430. package/dist/esm/operations/throughputPoolAccounts.d.ts +0 -38
  431. package/dist/esm/operations/throughputPoolAccounts.d.ts.map +0 -1
  432. package/dist/esm/operations/throughputPoolAccounts.js +0 -150
  433. package/dist/esm/operations/throughputPoolAccounts.js.map +0 -1
  434. package/dist/esm/operations/throughputPools.d.ts +0 -53
  435. package/dist/esm/operations/throughputPools.d.ts.map +0 -1
  436. package/dist/esm/operations/throughputPools.js +0 -256
  437. package/dist/esm/operations/throughputPools.js.map +0 -1
  438. package/dist/esm/operationsInterfaces/chaosFault.d.ts +0 -40
  439. package/dist/esm/operationsInterfaces/chaosFault.d.ts.map +0 -1
  440. package/dist/esm/operationsInterfaces/chaosFault.js +0 -9
  441. package/dist/esm/operationsInterfaces/chaosFault.js.map +0 -1
  442. package/dist/esm/operationsInterfaces/dataTransferJobs.d.ts +0 -62
  443. package/dist/esm/operationsInterfaces/dataTransferJobs.d.ts.map +0 -1
  444. package/dist/esm/operationsInterfaces/dataTransferJobs.js +0 -9
  445. package/dist/esm/operationsInterfaces/dataTransferJobs.js.map +0 -1
  446. package/dist/esm/operationsInterfaces/graphResources.d.ts +0 -56
  447. package/dist/esm/operationsInterfaces/graphResources.d.ts.map +0 -1
  448. package/dist/esm/operationsInterfaces/graphResources.js +0 -9
  449. package/dist/esm/operationsInterfaces/graphResources.js.map +0 -1
  450. package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +0 -41
  451. package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +0 -1
  452. package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.js +0 -9
  453. package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +0 -1
  454. package/dist/esm/operationsInterfaces/throughputPool.d.ts +0 -59
  455. package/dist/esm/operationsInterfaces/throughputPool.d.ts.map +0 -1
  456. package/dist/esm/operationsInterfaces/throughputPool.js +0 -9
  457. package/dist/esm/operationsInterfaces/throughputPool.js.map +0 -1
  458. package/dist/esm/operationsInterfaces/throughputPoolAccount.d.ts +0 -50
  459. package/dist/esm/operationsInterfaces/throughputPoolAccount.d.ts.map +0 -1
  460. package/dist/esm/operationsInterfaces/throughputPoolAccount.js +0 -9
  461. package/dist/esm/operationsInterfaces/throughputPoolAccount.js.map +0 -1
  462. package/dist/esm/operationsInterfaces/throughputPoolAccounts.d.ts +0 -13
  463. package/dist/esm/operationsInterfaces/throughputPoolAccounts.d.ts.map +0 -1
  464. package/dist/esm/operationsInterfaces/throughputPoolAccounts.js +0 -9
  465. package/dist/esm/operationsInterfaces/throughputPoolAccounts.js.map +0 -1
  466. package/dist/esm/operationsInterfaces/throughputPools.d.ts +0 -17
  467. package/dist/esm/operationsInterfaces/throughputPools.d.ts.map +0 -1
  468. package/dist/esm/operationsInterfaces/throughputPools.js +0 -9
  469. package/dist/esm/operationsInterfaces/throughputPools.js.map +0 -1
  470. package/dist/react-native/operations/chaosFault.d.ts +0 -65
  471. package/dist/react-native/operations/chaosFault.d.ts.map +0 -1
  472. package/dist/react-native/operations/chaosFault.js +0 -279
  473. package/dist/react-native/operations/chaosFault.js.map +0 -1
  474. package/dist/react-native/operations/dataTransferJobs.d.ts +0 -87
  475. package/dist/react-native/operations/dataTransferJobs.d.ts.map +0 -1
  476. package/dist/react-native/operations/dataTransferJobs.js +0 -345
  477. package/dist/react-native/operations/dataTransferJobs.js.map +0 -1
  478. package/dist/react-native/operations/graphResources.d.ts +0 -73
  479. package/dist/react-native/operations/graphResources.d.ts.map +0 -1
  480. package/dist/react-native/operations/graphResources.js +0 -291
  481. package/dist/react-native/operations/graphResources.js.map +0 -1
  482. package/dist/react-native/operations/networkSecurityPerimeterConfigurations.d.ts +0 -66
  483. package/dist/react-native/operations/networkSecurityPerimeterConfigurations.d.ts.map +0 -1
  484. package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js +0 -282
  485. package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js.map +0 -1
  486. package/dist/react-native/operations/throughputPool.d.ts +0 -67
  487. package/dist/react-native/operations/throughputPool.d.ts.map +0 -1
  488. package/dist/react-native/operations/throughputPool.js +0 -308
  489. package/dist/react-native/operations/throughputPool.js.map +0 -1
  490. package/dist/react-native/operations/throughputPoolAccount.d.ts +0 -58
  491. package/dist/react-native/operations/throughputPoolAccount.d.ts.map +0 -1
  492. package/dist/react-native/operations/throughputPoolAccount.js +0 -248
  493. package/dist/react-native/operations/throughputPoolAccount.js.map +0 -1
  494. package/dist/react-native/operations/throughputPoolAccounts.d.ts +0 -38
  495. package/dist/react-native/operations/throughputPoolAccounts.d.ts.map +0 -1
  496. package/dist/react-native/operations/throughputPoolAccounts.js +0 -150
  497. package/dist/react-native/operations/throughputPoolAccounts.js.map +0 -1
  498. package/dist/react-native/operations/throughputPools.d.ts +0 -53
  499. package/dist/react-native/operations/throughputPools.d.ts.map +0 -1
  500. package/dist/react-native/operations/throughputPools.js +0 -256
  501. package/dist/react-native/operations/throughputPools.js.map +0 -1
  502. package/dist/react-native/operationsInterfaces/chaosFault.d.ts +0 -40
  503. package/dist/react-native/operationsInterfaces/chaosFault.d.ts.map +0 -1
  504. package/dist/react-native/operationsInterfaces/chaosFault.js +0 -9
  505. package/dist/react-native/operationsInterfaces/chaosFault.js.map +0 -1
  506. package/dist/react-native/operationsInterfaces/dataTransferJobs.d.ts +0 -62
  507. package/dist/react-native/operationsInterfaces/dataTransferJobs.d.ts.map +0 -1
  508. package/dist/react-native/operationsInterfaces/dataTransferJobs.js +0 -9
  509. package/dist/react-native/operationsInterfaces/dataTransferJobs.js.map +0 -1
  510. package/dist/react-native/operationsInterfaces/graphResources.d.ts +0 -56
  511. package/dist/react-native/operationsInterfaces/graphResources.d.ts.map +0 -1
  512. package/dist/react-native/operationsInterfaces/graphResources.js +0 -9
  513. package/dist/react-native/operationsInterfaces/graphResources.js.map +0 -1
  514. package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +0 -41
  515. package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +0 -1
  516. package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.js +0 -9
  517. package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +0 -1
  518. package/dist/react-native/operationsInterfaces/throughputPool.d.ts +0 -59
  519. package/dist/react-native/operationsInterfaces/throughputPool.d.ts.map +0 -1
  520. package/dist/react-native/operationsInterfaces/throughputPool.js +0 -9
  521. package/dist/react-native/operationsInterfaces/throughputPool.js.map +0 -1
  522. package/dist/react-native/operationsInterfaces/throughputPoolAccount.d.ts +0 -50
  523. package/dist/react-native/operationsInterfaces/throughputPoolAccount.d.ts.map +0 -1
  524. package/dist/react-native/operationsInterfaces/throughputPoolAccount.js +0 -9
  525. package/dist/react-native/operationsInterfaces/throughputPoolAccount.js.map +0 -1
  526. package/dist/react-native/operationsInterfaces/throughputPoolAccounts.d.ts +0 -13
  527. package/dist/react-native/operationsInterfaces/throughputPoolAccounts.d.ts.map +0 -1
  528. package/dist/react-native/operationsInterfaces/throughputPoolAccounts.js +0 -9
  529. package/dist/react-native/operationsInterfaces/throughputPoolAccounts.js.map +0 -1
  530. package/dist/react-native/operationsInterfaces/throughputPools.d.ts +0 -17
  531. package/dist/react-native/operationsInterfaces/throughputPools.d.ts.map +0 -1
  532. package/dist/react-native/operationsInterfaces/throughputPools.js +0 -9
  533. 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,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAW9C,yDAAyD;AACzD,MAAa,yBAAyB;IAGpC;;;OAGG;IACH,YAAY,MAAgC;QAC1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACH,GAAG,CACD,iBAAyB,EACzB,kBAA0B,EAC1B,yBAAiC,EACjC,OAAgD;QAEhD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,kBAAkB;YAClB,yBAAyB;YACzB,OAAO;SACR,EACD,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,WAAW,CACf,iBAAyB,EACzB,kBAA0B,EAC1B,yBAAiC,EACjC,IAAmC,EACnC,OAAmD;QAOnD,MAAM,mBAAmB,GAAG,KAAK,EAC/B,IAAmC,EACnC,IAA8B,EACgB,EAAE;YAChD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACtD,CAAC,CAAC;QACF,MAAM,eAAe,GAAG,KAAK,EAC3B,IAAmC,EACnC,IAA8B,EAC9B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AAkC;SAC1D;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,kCAAkC;SAC1D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,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,kBAAkB;QAC7B,UAAU,CAAC,yBAAyB;KACrC;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 { 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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,CAAC,iBAAiB;QAC5B,UAAU,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"}