@azure/arm-reservations 9.0.1-alpha.20250218.1 → 9.0.1-alpha.20250219.2

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 (641) hide show
  1. package/README.md +23 -16
  2. package/{dist-esm/src → dist/browser}/azureReservationAPI.d.ts +2 -2
  3. package/dist/browser/azureReservationAPI.d.ts.map +1 -0
  4. package/{dist-esm/src → dist/browser}/azureReservationAPI.js +4 -4
  5. package/dist/browser/azureReservationAPI.js.map +1 -0
  6. package/dist/browser/index.d.ts +5 -0
  7. package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
  8. package/{dist-esm/src → dist/browser}/index.js +4 -4
  9. package/dist/browser/index.js.map +1 -0
  10. package/dist/browser/lroImpl.js.map +1 -0
  11. package/dist/browser/models/index.js.map +1 -0
  12. package/dist/browser/models/mappers.js.map +1 -0
  13. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  14. package/dist/browser/models/parameters.js.map +1 -0
  15. package/{dist-esm/src → dist/browser}/operations/calculateExchange.d.ts +3 -3
  16. package/dist/browser/operations/calculateExchange.d.ts.map +1 -0
  17. package/dist/browser/operations/calculateExchange.js +104 -0
  18. package/dist/browser/operations/calculateExchange.js.map +1 -0
  19. package/{dist-esm/src → dist/browser}/operations/calculateRefund.d.ts +3 -3
  20. package/dist/browser/operations/calculateRefund.d.ts.map +1 -0
  21. package/{dist-esm/src → dist/browser}/operations/calculateRefund.js +2 -2
  22. package/dist/browser/operations/calculateRefund.js.map +1 -0
  23. package/{dist-esm/src → dist/browser}/operations/exchange.d.ts +3 -3
  24. package/dist/browser/operations/exchange.d.ts.map +1 -0
  25. package/dist/browser/operations/exchange.js +104 -0
  26. package/dist/browser/operations/exchange.js.map +1 -0
  27. package/dist/browser/operations/index.d.ts +10 -0
  28. package/dist/browser/operations/index.d.ts.map +1 -0
  29. package/dist/browser/operations/index.js +17 -0
  30. package/dist/browser/operations/index.js.map +1 -0
  31. package/{dist-esm/src → dist/browser}/operations/operation.d.ts +3 -3
  32. package/dist/browser/operations/operation.d.ts.map +1 -0
  33. package/{dist-esm/src → dist/browser}/operations/operation.js +3 -3
  34. package/dist/browser/operations/operation.js.map +1 -0
  35. package/{dist-esm/src → dist/browser}/operations/quota.d.ts +3 -3
  36. package/dist/browser/operations/quota.d.ts.map +1 -0
  37. package/{dist-esm/src → dist/browser}/operations/quota.js +93 -101
  38. package/dist/browser/operations/quota.js.map +1 -0
  39. package/{dist-esm/src → dist/browser}/operations/quotaRequestStatus.d.ts +3 -3
  40. package/dist/browser/operations/quotaRequestStatus.d.ts.map +1 -0
  41. package/{dist-esm/src → dist/browser}/operations/quotaRequestStatus.js +3 -3
  42. package/dist/browser/operations/quotaRequestStatus.js.map +1 -0
  43. package/{dist-esm/src → dist/browser}/operations/reservation.d.ts +3 -3
  44. package/dist/browser/operations/reservation.d.ts.map +1 -0
  45. package/{dist-esm/src → dist/browser}/operations/reservation.js +152 -168
  46. package/dist/browser/operations/reservation.js.map +1 -0
  47. package/{dist-esm/src → dist/browser}/operations/reservationOrder.d.ts +3 -3
  48. package/dist/browser/operations/reservationOrder.d.ts.map +1 -0
  49. package/{dist-esm/src → dist/browser}/operations/reservationOrder.js +42 -46
  50. package/dist/browser/operations/reservationOrder.js.map +1 -0
  51. package/{dist-esm/src → dist/browser}/operations/return.d.ts +3 -3
  52. package/dist/browser/operations/return.d.ts.map +1 -0
  53. package/dist/browser/operations/return.js +104 -0
  54. package/dist/browser/operations/return.js.map +1 -0
  55. package/{dist-esm/src → dist/browser}/operationsInterfaces/calculateExchange.d.ts +1 -1
  56. package/dist/browser/operationsInterfaces/calculateExchange.d.ts.map +1 -0
  57. package/dist/browser/operationsInterfaces/calculateExchange.js.map +1 -0
  58. package/{dist-esm/src → dist/browser}/operationsInterfaces/calculateRefund.d.ts +1 -1
  59. package/dist/browser/operationsInterfaces/calculateRefund.d.ts.map +1 -0
  60. package/dist/browser/operationsInterfaces/calculateRefund.js.map +1 -0
  61. package/{dist-esm/src → dist/browser}/operationsInterfaces/exchange.d.ts +1 -1
  62. package/dist/browser/operationsInterfaces/exchange.d.ts.map +1 -0
  63. package/dist/browser/operationsInterfaces/exchange.js.map +1 -0
  64. package/dist/browser/operationsInterfaces/index.d.ts +10 -0
  65. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
  66. package/dist/browser/operationsInterfaces/index.js +17 -0
  67. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  68. package/{dist-esm/src → dist/browser}/operationsInterfaces/operation.d.ts +1 -1
  69. package/{dist-esm/src → dist/browser}/operationsInterfaces/operation.d.ts.map +1 -1
  70. package/dist/browser/operationsInterfaces/operation.js.map +1 -0
  71. package/{dist-esm/src → dist/browser}/operationsInterfaces/quota.d.ts +1 -1
  72. package/dist/browser/operationsInterfaces/quota.d.ts.map +1 -0
  73. package/dist/browser/operationsInterfaces/quota.js.map +1 -0
  74. package/{dist-esm/src → dist/browser}/operationsInterfaces/quotaRequestStatus.d.ts +1 -1
  75. package/dist/browser/operationsInterfaces/quotaRequestStatus.d.ts.map +1 -0
  76. package/dist/browser/operationsInterfaces/quotaRequestStatus.js.map +1 -0
  77. package/{dist-esm/src → dist/browser}/operationsInterfaces/reservation.d.ts +1 -1
  78. package/dist/browser/operationsInterfaces/reservation.d.ts.map +1 -0
  79. package/dist/browser/operationsInterfaces/reservation.js.map +1 -0
  80. package/{dist-esm/src → dist/browser}/operationsInterfaces/reservationOrder.d.ts +1 -1
  81. package/dist/browser/operationsInterfaces/reservationOrder.d.ts.map +1 -0
  82. package/dist/browser/operationsInterfaces/reservationOrder.js.map +1 -0
  83. package/{dist-esm/src → dist/browser}/operationsInterfaces/return.d.ts +1 -1
  84. package/dist/browser/operationsInterfaces/return.d.ts.map +1 -0
  85. package/dist/browser/operationsInterfaces/return.js.map +1 -0
  86. package/dist/browser/package.json +3 -0
  87. package/dist/browser/pagingHelper.js.map +1 -0
  88. package/dist/commonjs/azureReservationAPI.d.ts +52 -0
  89. package/dist/commonjs/azureReservationAPI.d.ts.map +1 -0
  90. package/dist/commonjs/azureReservationAPI.js +232 -0
  91. package/dist/commonjs/azureReservationAPI.js.map +1 -0
  92. package/dist/commonjs/index.d.ts +5 -0
  93. package/dist/commonjs/index.d.ts.map +1 -0
  94. package/dist/commonjs/index.js +19 -0
  95. package/dist/commonjs/index.js.map +1 -0
  96. package/dist/commonjs/lroImpl.d.ts +11 -0
  97. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  98. package/dist/commonjs/lroImpl.js +17 -0
  99. package/dist/commonjs/lroImpl.js.map +1 -0
  100. package/{types/arm-reservations.d.ts → dist/commonjs/models/index.d.ts} +2489 -3123
  101. package/dist/commonjs/models/index.d.ts.map +1 -0
  102. package/dist/commonjs/models/index.js +489 -0
  103. package/dist/commonjs/models/index.js.map +1 -0
  104. package/dist/commonjs/models/mappers.d.ts +118 -0
  105. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  106. package/dist/commonjs/models/mappers.js +3901 -0
  107. package/dist/commonjs/models/mappers.js.map +1 -0
  108. package/dist/commonjs/models/parameters.d.ts +42 -0
  109. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  110. package/dist/commonjs/models/parameters.js +339 -0
  111. package/dist/commonjs/models/parameters.js.map +1 -0
  112. package/dist/commonjs/operations/calculateExchange.d.ts +28 -0
  113. package/dist/commonjs/operations/calculateExchange.d.ts.map +1 -0
  114. package/dist/commonjs/operations/calculateExchange.js +109 -0
  115. package/dist/commonjs/operations/calculateExchange.js.map +1 -0
  116. package/dist/commonjs/operations/calculateRefund.d.ts +21 -0
  117. package/dist/commonjs/operations/calculateRefund.d.ts.map +1 -0
  118. package/dist/commonjs/operations/calculateRefund.js +56 -0
  119. package/dist/commonjs/operations/calculateRefund.js.map +1 -0
  120. package/dist/commonjs/operations/exchange.d.ts +28 -0
  121. package/dist/commonjs/operations/exchange.d.ts.map +1 -0
  122. package/dist/commonjs/operations/exchange.js +109 -0
  123. package/dist/commonjs/operations/exchange.js.map +1 -0
  124. package/dist/commonjs/operations/index.d.ts +10 -0
  125. package/dist/commonjs/operations/index.d.ts.map +1 -0
  126. package/dist/commonjs/operations/index.js +20 -0
  127. package/dist/commonjs/operations/index.js.map +1 -0
  128. package/dist/commonjs/operations/operation.d.ts +32 -0
  129. package/dist/commonjs/operations/operation.d.ts.map +1 -0
  130. package/dist/commonjs/operations/operation.js +137 -0
  131. package/dist/commonjs/operations/operation.js.map +1 -0
  132. package/dist/commonjs/operations/quota.d.ts +121 -0
  133. package/dist/commonjs/operations/quota.d.ts.map +1 -0
  134. package/dist/commonjs/operations/quota.js +421 -0
  135. package/dist/commonjs/operations/quota.js.map +1 -0
  136. package/dist/commonjs/operations/quotaRequestStatus.d.ts +54 -0
  137. package/dist/commonjs/operations/quotaRequestStatus.d.ts.map +1 -0
  138. package/dist/commonjs/operations/quotaRequestStatus.js +199 -0
  139. package/dist/commonjs/operations/quotaRequestStatus.js.map +1 -0
  140. package/dist/commonjs/operations/reservation.d.ts +166 -0
  141. package/dist/commonjs/operations/reservation.d.ts.map +1 -0
  142. package/dist/commonjs/operations/reservation.js +856 -0
  143. package/dist/commonjs/operations/reservation.js.map +1 -0
  144. package/dist/commonjs/operations/reservationOrder.d.ts +67 -0
  145. package/dist/commonjs/operations/reservationOrder.d.ts.map +1 -0
  146. package/dist/commonjs/operations/reservationOrder.js +296 -0
  147. package/dist/commonjs/operations/reservationOrder.js.map +1 -0
  148. package/dist/commonjs/operations/return.d.ts +28 -0
  149. package/dist/commonjs/operations/return.d.ts.map +1 -0
  150. package/dist/commonjs/operations/return.js +109 -0
  151. package/dist/commonjs/operations/return.js.map +1 -0
  152. package/dist/commonjs/operationsInterfaces/calculateExchange.d.ts +20 -0
  153. package/dist/commonjs/operationsInterfaces/calculateExchange.d.ts.map +1 -0
  154. package/dist/commonjs/operationsInterfaces/calculateExchange.js +10 -0
  155. package/dist/commonjs/operationsInterfaces/calculateExchange.js.map +1 -0
  156. package/dist/commonjs/operationsInterfaces/calculateRefund.d.ts +13 -0
  157. package/dist/commonjs/operationsInterfaces/calculateRefund.d.ts.map +1 -0
  158. package/dist/commonjs/operationsInterfaces/calculateRefund.js +10 -0
  159. package/dist/commonjs/operationsInterfaces/calculateRefund.js.map +1 -0
  160. package/dist/commonjs/operationsInterfaces/exchange.d.ts +20 -0
  161. package/dist/commonjs/operationsInterfaces/exchange.d.ts.map +1 -0
  162. package/dist/commonjs/operationsInterfaces/exchange.js +10 -0
  163. package/dist/commonjs/operationsInterfaces/exchange.js.map +1 -0
  164. package/dist/commonjs/operationsInterfaces/index.d.ts +10 -0
  165. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  166. package/dist/commonjs/operationsInterfaces/index.js +20 -0
  167. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  168. package/dist/commonjs/operationsInterfaces/operation.d.ts +11 -0
  169. package/dist/commonjs/operationsInterfaces/operation.d.ts.map +1 -0
  170. package/dist/commonjs/operationsInterfaces/operation.js +10 -0
  171. package/dist/commonjs/operationsInterfaces/operation.js.map +1 -0
  172. package/dist/commonjs/operationsInterfaces/quota.d.ts +93 -0
  173. package/dist/commonjs/operationsInterfaces/quota.d.ts.map +1 -0
  174. package/dist/commonjs/operationsInterfaces/quota.js +10 -0
  175. package/dist/commonjs/operationsInterfaces/quota.js.map +1 -0
  176. package/dist/commonjs/operationsInterfaces/quotaRequestStatus.d.ts +26 -0
  177. package/dist/commonjs/operationsInterfaces/quotaRequestStatus.d.ts.map +1 -0
  178. package/dist/commonjs/operationsInterfaces/quotaRequestStatus.js +10 -0
  179. package/dist/commonjs/operationsInterfaces/quotaRequestStatus.js.map +1 -0
  180. package/dist/commonjs/operationsInterfaces/reservation.d.ts +112 -0
  181. package/dist/commonjs/operationsInterfaces/reservation.d.ts.map +1 -0
  182. package/dist/commonjs/operationsInterfaces/reservation.js +10 -0
  183. package/dist/commonjs/operationsInterfaces/reservation.js.map +1 -0
  184. package/dist/commonjs/operationsInterfaces/reservationOrder.d.ts +46 -0
  185. package/dist/commonjs/operationsInterfaces/reservationOrder.d.ts.map +1 -0
  186. package/dist/commonjs/operationsInterfaces/reservationOrder.js +10 -0
  187. package/dist/commonjs/operationsInterfaces/reservationOrder.js.map +1 -0
  188. package/dist/commonjs/operationsInterfaces/return.d.ts +20 -0
  189. package/dist/commonjs/operationsInterfaces/return.d.ts.map +1 -0
  190. package/dist/commonjs/operationsInterfaces/return.js +10 -0
  191. package/dist/commonjs/operationsInterfaces/return.js.map +1 -0
  192. package/dist/commonjs/package.json +3 -0
  193. package/dist/commonjs/pagingHelper.d.ts +13 -0
  194. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  195. package/dist/commonjs/pagingHelper.js +36 -0
  196. package/dist/commonjs/pagingHelper.js.map +1 -0
  197. package/{types → dist/commonjs}/tsdoc-metadata.json +1 -1
  198. package/dist/esm/azureReservationAPI.d.ts +52 -0
  199. package/dist/esm/azureReservationAPI.d.ts.map +1 -0
  200. package/dist/esm/azureReservationAPI.js +228 -0
  201. package/dist/esm/azureReservationAPI.js.map +1 -0
  202. package/dist/esm/index.d.ts +5 -0
  203. package/dist/esm/index.d.ts.map +1 -0
  204. package/{src/index.ts → dist/esm/index.js} +5 -5
  205. package/dist/esm/index.js.map +1 -0
  206. package/dist/esm/lroImpl.d.ts +11 -0
  207. package/dist/esm/lroImpl.d.ts.map +1 -0
  208. package/dist/esm/lroImpl.js +14 -0
  209. package/dist/esm/lroImpl.js.map +1 -0
  210. package/dist/esm/models/index.d.ts +2489 -0
  211. package/dist/esm/models/index.d.ts.map +1 -0
  212. package/dist/esm/models/index.js +486 -0
  213. package/dist/esm/models/index.js.map +1 -0
  214. package/dist/esm/models/mappers.d.ts +118 -0
  215. package/dist/esm/models/mappers.d.ts.map +1 -0
  216. package/dist/esm/models/mappers.js +3896 -0
  217. package/dist/esm/models/mappers.js.map +1 -0
  218. package/dist/esm/models/parameters.d.ts +42 -0
  219. package/dist/esm/models/parameters.d.ts.map +1 -0
  220. package/dist/esm/models/parameters.js +336 -0
  221. package/dist/esm/models/parameters.js.map +1 -0
  222. package/dist/esm/operations/calculateExchange.d.ts +28 -0
  223. package/dist/esm/operations/calculateExchange.d.ts.map +1 -0
  224. package/dist/esm/operations/calculateExchange.js +104 -0
  225. package/dist/esm/operations/calculateExchange.js.map +1 -0
  226. package/dist/esm/operations/calculateRefund.d.ts +21 -0
  227. package/dist/esm/operations/calculateRefund.d.ts.map +1 -0
  228. package/dist/esm/operations/calculateRefund.js +51 -0
  229. package/dist/esm/operations/calculateRefund.js.map +1 -0
  230. package/dist/esm/operations/exchange.d.ts +28 -0
  231. package/dist/esm/operations/exchange.d.ts.map +1 -0
  232. package/dist/esm/operations/exchange.js +104 -0
  233. package/dist/esm/operations/exchange.js.map +1 -0
  234. package/dist/esm/operations/index.d.ts +10 -0
  235. package/dist/esm/operations/index.d.ts.map +1 -0
  236. package/dist/esm/operations/index.js +17 -0
  237. package/dist/esm/operations/index.js.map +1 -0
  238. package/dist/esm/operations/operation.d.ts +32 -0
  239. package/dist/esm/operations/operation.d.ts.map +1 -0
  240. package/dist/esm/operations/operation.js +133 -0
  241. package/dist/esm/operations/operation.js.map +1 -0
  242. package/dist/esm/operations/quota.d.ts +121 -0
  243. package/dist/esm/operations/quota.d.ts.map +1 -0
  244. package/dist/esm/operations/quota.js +417 -0
  245. package/dist/esm/operations/quota.js.map +1 -0
  246. package/dist/esm/operations/quotaRequestStatus.d.ts +54 -0
  247. package/dist/esm/operations/quotaRequestStatus.d.ts.map +1 -0
  248. package/dist/esm/operations/quotaRequestStatus.js +195 -0
  249. package/dist/esm/operations/quotaRequestStatus.js.map +1 -0
  250. package/dist/esm/operations/reservation.d.ts +166 -0
  251. package/dist/esm/operations/reservation.d.ts.map +1 -0
  252. package/dist/esm/operations/reservation.js +852 -0
  253. package/dist/esm/operations/reservation.js.map +1 -0
  254. package/dist/esm/operations/reservationOrder.d.ts +67 -0
  255. package/dist/esm/operations/reservationOrder.d.ts.map +1 -0
  256. package/dist/esm/operations/reservationOrder.js +292 -0
  257. package/dist/esm/operations/reservationOrder.js.map +1 -0
  258. package/dist/esm/operations/return.d.ts +28 -0
  259. package/dist/esm/operations/return.d.ts.map +1 -0
  260. package/dist/esm/operations/return.js +104 -0
  261. package/dist/esm/operations/return.js.map +1 -0
  262. package/dist/esm/operationsInterfaces/calculateExchange.d.ts +20 -0
  263. package/dist/esm/operationsInterfaces/calculateExchange.d.ts.map +1 -0
  264. package/dist/esm/operationsInterfaces/calculateExchange.js +9 -0
  265. package/dist/esm/operationsInterfaces/calculateExchange.js.map +1 -0
  266. package/dist/esm/operationsInterfaces/calculateRefund.d.ts +13 -0
  267. package/dist/esm/operationsInterfaces/calculateRefund.d.ts.map +1 -0
  268. package/dist/esm/operationsInterfaces/calculateRefund.js +9 -0
  269. package/dist/esm/operationsInterfaces/calculateRefund.js.map +1 -0
  270. package/dist/esm/operationsInterfaces/exchange.d.ts +20 -0
  271. package/dist/esm/operationsInterfaces/exchange.d.ts.map +1 -0
  272. package/dist/esm/operationsInterfaces/exchange.js +9 -0
  273. package/dist/esm/operationsInterfaces/exchange.js.map +1 -0
  274. package/dist/esm/operationsInterfaces/index.d.ts +10 -0
  275. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  276. package/dist/esm/operationsInterfaces/index.js +17 -0
  277. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  278. package/dist/esm/operationsInterfaces/operation.d.ts +11 -0
  279. package/dist/esm/operationsInterfaces/operation.d.ts.map +1 -0
  280. package/dist/esm/operationsInterfaces/operation.js +9 -0
  281. package/dist/esm/operationsInterfaces/operation.js.map +1 -0
  282. package/dist/esm/operationsInterfaces/quota.d.ts +93 -0
  283. package/dist/esm/operationsInterfaces/quota.d.ts.map +1 -0
  284. package/dist/esm/operationsInterfaces/quota.js +9 -0
  285. package/dist/esm/operationsInterfaces/quota.js.map +1 -0
  286. package/dist/esm/operationsInterfaces/quotaRequestStatus.d.ts +26 -0
  287. package/dist/esm/operationsInterfaces/quotaRequestStatus.d.ts.map +1 -0
  288. package/dist/esm/operationsInterfaces/quotaRequestStatus.js +9 -0
  289. package/dist/esm/operationsInterfaces/quotaRequestStatus.js.map +1 -0
  290. package/dist/esm/operationsInterfaces/reservation.d.ts +112 -0
  291. package/dist/esm/operationsInterfaces/reservation.d.ts.map +1 -0
  292. package/dist/esm/operationsInterfaces/reservation.js +9 -0
  293. package/dist/esm/operationsInterfaces/reservation.js.map +1 -0
  294. package/dist/esm/operationsInterfaces/reservationOrder.d.ts +46 -0
  295. package/dist/esm/operationsInterfaces/reservationOrder.d.ts.map +1 -0
  296. package/dist/esm/operationsInterfaces/reservationOrder.js +9 -0
  297. package/dist/esm/operationsInterfaces/reservationOrder.js.map +1 -0
  298. package/dist/esm/operationsInterfaces/return.d.ts +20 -0
  299. package/dist/esm/operationsInterfaces/return.d.ts.map +1 -0
  300. package/dist/esm/operationsInterfaces/return.js +9 -0
  301. package/dist/esm/operationsInterfaces/return.js.map +1 -0
  302. package/dist/esm/package.json +3 -0
  303. package/dist/esm/pagingHelper.d.ts +13 -0
  304. package/dist/esm/pagingHelper.d.ts.map +1 -0
  305. package/dist/esm/pagingHelper.js +32 -0
  306. package/dist/esm/pagingHelper.js.map +1 -0
  307. package/dist/react-native/azureReservationAPI.d.ts +52 -0
  308. package/dist/react-native/azureReservationAPI.d.ts.map +1 -0
  309. package/dist/react-native/azureReservationAPI.js +228 -0
  310. package/dist/react-native/azureReservationAPI.js.map +1 -0
  311. package/dist/react-native/index.d.ts +5 -0
  312. package/dist/react-native/index.d.ts.map +1 -0
  313. package/dist/react-native/index.js +13 -0
  314. package/dist/react-native/index.js.map +1 -0
  315. package/dist/react-native/lroImpl.d.ts +11 -0
  316. package/dist/react-native/lroImpl.d.ts.map +1 -0
  317. package/dist/react-native/lroImpl.js +14 -0
  318. package/dist/react-native/lroImpl.js.map +1 -0
  319. package/dist/react-native/models/index.d.ts +2489 -0
  320. package/dist/react-native/models/index.d.ts.map +1 -0
  321. package/dist/react-native/models/index.js +486 -0
  322. package/dist/react-native/models/index.js.map +1 -0
  323. package/dist/react-native/models/mappers.d.ts +118 -0
  324. package/dist/react-native/models/mappers.d.ts.map +1 -0
  325. package/dist/react-native/models/mappers.js +3896 -0
  326. package/dist/react-native/models/mappers.js.map +1 -0
  327. package/dist/react-native/models/parameters.d.ts +42 -0
  328. package/dist/react-native/models/parameters.d.ts.map +1 -0
  329. package/dist/react-native/models/parameters.js +336 -0
  330. package/dist/react-native/models/parameters.js.map +1 -0
  331. package/dist/react-native/operations/calculateExchange.d.ts +28 -0
  332. package/dist/react-native/operations/calculateExchange.d.ts.map +1 -0
  333. package/dist/react-native/operations/calculateExchange.js +104 -0
  334. package/dist/react-native/operations/calculateExchange.js.map +1 -0
  335. package/dist/react-native/operations/calculateRefund.d.ts +21 -0
  336. package/dist/react-native/operations/calculateRefund.d.ts.map +1 -0
  337. package/dist/react-native/operations/calculateRefund.js +51 -0
  338. package/dist/react-native/operations/calculateRefund.js.map +1 -0
  339. package/dist/react-native/operations/exchange.d.ts +28 -0
  340. package/dist/react-native/operations/exchange.d.ts.map +1 -0
  341. package/dist/react-native/operations/exchange.js +104 -0
  342. package/dist/react-native/operations/exchange.js.map +1 -0
  343. package/dist/react-native/operations/index.d.ts +10 -0
  344. package/dist/react-native/operations/index.d.ts.map +1 -0
  345. package/dist/react-native/operations/index.js +17 -0
  346. package/dist/react-native/operations/index.js.map +1 -0
  347. package/dist/react-native/operations/operation.d.ts +32 -0
  348. package/dist/react-native/operations/operation.d.ts.map +1 -0
  349. package/dist/react-native/operations/operation.js +133 -0
  350. package/dist/react-native/operations/operation.js.map +1 -0
  351. package/dist/react-native/operations/quota.d.ts +121 -0
  352. package/dist/react-native/operations/quota.d.ts.map +1 -0
  353. package/dist/react-native/operations/quota.js +417 -0
  354. package/dist/react-native/operations/quota.js.map +1 -0
  355. package/dist/react-native/operations/quotaRequestStatus.d.ts +54 -0
  356. package/dist/react-native/operations/quotaRequestStatus.d.ts.map +1 -0
  357. package/dist/react-native/operations/quotaRequestStatus.js +195 -0
  358. package/dist/react-native/operations/quotaRequestStatus.js.map +1 -0
  359. package/dist/react-native/operations/reservation.d.ts +166 -0
  360. package/dist/react-native/operations/reservation.d.ts.map +1 -0
  361. package/dist/react-native/operations/reservation.js +852 -0
  362. package/dist/react-native/operations/reservation.js.map +1 -0
  363. package/dist/react-native/operations/reservationOrder.d.ts +67 -0
  364. package/dist/react-native/operations/reservationOrder.d.ts.map +1 -0
  365. package/dist/react-native/operations/reservationOrder.js +292 -0
  366. package/dist/react-native/operations/reservationOrder.js.map +1 -0
  367. package/dist/react-native/operations/return.d.ts +28 -0
  368. package/dist/react-native/operations/return.d.ts.map +1 -0
  369. package/dist/react-native/operations/return.js +104 -0
  370. package/dist/react-native/operations/return.js.map +1 -0
  371. package/dist/react-native/operationsInterfaces/calculateExchange.d.ts +20 -0
  372. package/dist/react-native/operationsInterfaces/calculateExchange.d.ts.map +1 -0
  373. package/dist/react-native/operationsInterfaces/calculateExchange.js +9 -0
  374. package/dist/react-native/operationsInterfaces/calculateExchange.js.map +1 -0
  375. package/dist/react-native/operationsInterfaces/calculateRefund.d.ts +13 -0
  376. package/dist/react-native/operationsInterfaces/calculateRefund.d.ts.map +1 -0
  377. package/dist/react-native/operationsInterfaces/calculateRefund.js +9 -0
  378. package/dist/react-native/operationsInterfaces/calculateRefund.js.map +1 -0
  379. package/dist/react-native/operationsInterfaces/exchange.d.ts +20 -0
  380. package/dist/react-native/operationsInterfaces/exchange.d.ts.map +1 -0
  381. package/dist/react-native/operationsInterfaces/exchange.js +9 -0
  382. package/dist/react-native/operationsInterfaces/exchange.js.map +1 -0
  383. package/dist/react-native/operationsInterfaces/index.d.ts +10 -0
  384. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  385. package/dist/react-native/operationsInterfaces/index.js +17 -0
  386. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  387. package/dist/react-native/operationsInterfaces/operation.d.ts +11 -0
  388. package/dist/react-native/operationsInterfaces/operation.d.ts.map +1 -0
  389. package/dist/react-native/operationsInterfaces/operation.js +9 -0
  390. package/dist/react-native/operationsInterfaces/operation.js.map +1 -0
  391. package/dist/react-native/operationsInterfaces/quota.d.ts +93 -0
  392. package/dist/react-native/operationsInterfaces/quota.d.ts.map +1 -0
  393. package/dist/react-native/operationsInterfaces/quota.js +9 -0
  394. package/dist/react-native/operationsInterfaces/quota.js.map +1 -0
  395. package/dist/react-native/operationsInterfaces/quotaRequestStatus.d.ts +26 -0
  396. package/dist/react-native/operationsInterfaces/quotaRequestStatus.d.ts.map +1 -0
  397. package/dist/react-native/operationsInterfaces/quotaRequestStatus.js +9 -0
  398. package/dist/react-native/operationsInterfaces/quotaRequestStatus.js.map +1 -0
  399. package/dist/react-native/operationsInterfaces/reservation.d.ts +112 -0
  400. package/dist/react-native/operationsInterfaces/reservation.d.ts.map +1 -0
  401. package/dist/react-native/operationsInterfaces/reservation.js +9 -0
  402. package/dist/react-native/operationsInterfaces/reservation.js.map +1 -0
  403. package/dist/react-native/operationsInterfaces/reservationOrder.d.ts +46 -0
  404. package/dist/react-native/operationsInterfaces/reservationOrder.d.ts.map +1 -0
  405. package/dist/react-native/operationsInterfaces/reservationOrder.js +9 -0
  406. package/dist/react-native/operationsInterfaces/reservationOrder.js.map +1 -0
  407. package/dist/react-native/operationsInterfaces/return.d.ts +20 -0
  408. package/dist/react-native/operationsInterfaces/return.d.ts.map +1 -0
  409. package/dist/react-native/operationsInterfaces/return.js +9 -0
  410. package/dist/react-native/operationsInterfaces/return.js.map +1 -0
  411. package/dist/react-native/package.json +3 -0
  412. package/dist/react-native/pagingHelper.d.ts +13 -0
  413. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  414. package/dist/react-native/pagingHelper.js +32 -0
  415. package/dist/react-native/pagingHelper.js.map +1 -0
  416. package/package.json +67 -36
  417. package/dist/index.js +0 -7378
  418. package/dist/index.js.map +0 -1
  419. package/dist/index.min.js +0 -1
  420. package/dist/index.min.js.map +0 -1
  421. package/dist-esm/samples-dev/calculateExchangePostSample.d.ts +0 -2
  422. package/dist-esm/samples-dev/calculateExchangePostSample.d.ts.map +0 -1
  423. package/dist-esm/samples-dev/calculateExchangePostSample.js +0 -67
  424. package/dist-esm/samples-dev/calculateExchangePostSample.js.map +0 -1
  425. package/dist-esm/samples-dev/calculateRefundPostSample.d.ts +0 -2
  426. package/dist-esm/samples-dev/calculateRefundPostSample.d.ts.map +0 -1
  427. package/dist-esm/samples-dev/calculateRefundPostSample.js +0 -39
  428. package/dist-esm/samples-dev/calculateRefundPostSample.js.map +0 -1
  429. package/dist-esm/samples-dev/exchangePostSample.d.ts +0 -2
  430. package/dist-esm/samples-dev/exchangePostSample.d.ts.map +0 -1
  431. package/dist-esm/samples-dev/exchangePostSample.js +0 -31
  432. package/dist-esm/samples-dev/exchangePostSample.js.map +0 -1
  433. package/dist-esm/samples-dev/getAppliedReservationListSample.d.ts +0 -2
  434. package/dist-esm/samples-dev/getAppliedReservationListSample.d.ts.map +0 -1
  435. package/dist-esm/samples-dev/getAppliedReservationListSample.js +0 -34
  436. package/dist-esm/samples-dev/getAppliedReservationListSample.js.map +0 -1
  437. package/dist-esm/samples-dev/getCatalogSample.d.ts +0 -2
  438. package/dist-esm/samples-dev/getCatalogSample.d.ts.map +0 -1
  439. package/dist-esm/samples-dev/getCatalogSample.js +0 -46
  440. package/dist-esm/samples-dev/getCatalogSample.js.map +0 -1
  441. package/dist-esm/samples-dev/operationListSample.d.ts +0 -2
  442. package/dist-esm/samples-dev/operationListSample.d.ts.map +0 -1
  443. package/dist-esm/samples-dev/operationListSample.js +0 -49
  444. package/dist-esm/samples-dev/operationListSample.js.map +0 -1
  445. package/dist-esm/samples-dev/quotaCreateOrUpdateSample.d.ts +0 -2
  446. package/dist-esm/samples-dev/quotaCreateOrUpdateSample.d.ts.map +0 -1
  447. package/dist-esm/samples-dev/quotaCreateOrUpdateSample.js +0 -121
  448. package/dist-esm/samples-dev/quotaCreateOrUpdateSample.js.map +0 -1
  449. package/dist-esm/samples-dev/quotaGetSample.d.ts +0 -2
  450. package/dist-esm/samples-dev/quotaGetSample.d.ts.map +0 -1
  451. package/dist-esm/samples-dev/quotaGetSample.js +0 -37
  452. package/dist-esm/samples-dev/quotaGetSample.js.map +0 -1
  453. package/dist-esm/samples-dev/quotaListSample.d.ts +0 -2
  454. package/dist-esm/samples-dev/quotaListSample.d.ts.map +0 -1
  455. package/dist-esm/samples-dev/quotaListSample.js +0 -86
  456. package/dist-esm/samples-dev/quotaListSample.js.map +0 -1
  457. package/dist-esm/samples-dev/quotaRequestStatusGetSample.d.ts +0 -2
  458. package/dist-esm/samples-dev/quotaRequestStatusGetSample.d.ts.map +0 -1
  459. package/dist-esm/samples-dev/quotaRequestStatusGetSample.js +0 -75
  460. package/dist-esm/samples-dev/quotaRequestStatusGetSample.js.map +0 -1
  461. package/dist-esm/samples-dev/quotaRequestStatusListSample.d.ts +0 -2
  462. package/dist-esm/samples-dev/quotaRequestStatusListSample.d.ts.map +0 -1
  463. package/dist-esm/samples-dev/quotaRequestStatusListSample.js +0 -52
  464. package/dist-esm/samples-dev/quotaRequestStatusListSample.js.map +0 -1
  465. package/dist-esm/samples-dev/quotaUpdateSample.d.ts +0 -2
  466. package/dist-esm/samples-dev/quotaUpdateSample.d.ts.map +0 -1
  467. package/dist-esm/samples-dev/quotaUpdateSample.js +0 -45
  468. package/dist-esm/samples-dev/quotaUpdateSample.js.map +0 -1
  469. package/dist-esm/samples-dev/reservationArchiveSample.d.ts +0 -2
  470. package/dist-esm/samples-dev/reservationArchiveSample.d.ts.map +0 -1
  471. package/dist-esm/samples-dev/reservationArchiveSample.js +0 -35
  472. package/dist-esm/samples-dev/reservationArchiveSample.js.map +0 -1
  473. package/dist-esm/samples-dev/reservationAvailableScopesSample.d.ts +0 -2
  474. package/dist-esm/samples-dev/reservationAvailableScopesSample.d.ts.map +0 -1
  475. package/dist-esm/samples-dev/reservationAvailableScopesSample.js +0 -35
  476. package/dist-esm/samples-dev/reservationAvailableScopesSample.js.map +0 -1
  477. package/dist-esm/samples-dev/reservationGetSample.d.ts +0 -2
  478. package/dist-esm/samples-dev/reservationGetSample.d.ts.map +0 -1
  479. package/dist-esm/samples-dev/reservationGetSample.js +0 -30
  480. package/dist-esm/samples-dev/reservationGetSample.js.map +0 -1
  481. package/dist-esm/samples-dev/reservationListAllSample.d.ts +0 -2
  482. package/dist-esm/samples-dev/reservationListAllSample.d.ts.map +0 -1
  483. package/dist-esm/samples-dev/reservationListAllSample.js +0 -52
  484. package/dist-esm/samples-dev/reservationListAllSample.js.map +0 -1
  485. package/dist-esm/samples-dev/reservationListRevisionsSample.d.ts +0 -2
  486. package/dist-esm/samples-dev/reservationListRevisionsSample.d.ts.map +0 -1
  487. package/dist-esm/samples-dev/reservationListRevisionsSample.js +0 -51
  488. package/dist-esm/samples-dev/reservationListRevisionsSample.js.map +0 -1
  489. package/dist-esm/samples-dev/reservationListSample.d.ts +0 -2
  490. package/dist-esm/samples-dev/reservationListSample.d.ts.map +0 -1
  491. package/dist-esm/samples-dev/reservationListSample.js +0 -50
  492. package/dist-esm/samples-dev/reservationListSample.js.map +0 -1
  493. package/dist-esm/samples-dev/reservationMergeSample.d.ts +0 -2
  494. package/dist-esm/samples-dev/reservationMergeSample.d.ts.map +0 -1
  495. package/dist-esm/samples-dev/reservationMergeSample.js +0 -33
  496. package/dist-esm/samples-dev/reservationMergeSample.js.map +0 -1
  497. package/dist-esm/samples-dev/reservationOrderCalculateSample.d.ts +0 -2
  498. package/dist-esm/samples-dev/reservationOrderCalculateSample.d.ts.map +0 -1
  499. package/dist-esm/samples-dev/reservationOrderCalculateSample.js +0 -39
  500. package/dist-esm/samples-dev/reservationOrderCalculateSample.js.map +0 -1
  501. package/dist-esm/samples-dev/reservationOrderChangeDirectorySample.d.ts +0 -2
  502. package/dist-esm/samples-dev/reservationOrderChangeDirectorySample.d.ts.map +0 -1
  503. package/dist-esm/samples-dev/reservationOrderChangeDirectorySample.js +0 -30
  504. package/dist-esm/samples-dev/reservationOrderChangeDirectorySample.js.map +0 -1
  505. package/dist-esm/samples-dev/reservationOrderGetSample.d.ts +0 -2
  506. package/dist-esm/samples-dev/reservationOrderGetSample.d.ts.map +0 -1
  507. package/dist-esm/samples-dev/reservationOrderGetSample.js +0 -45
  508. package/dist-esm/samples-dev/reservationOrderGetSample.js.map +0 -1
  509. package/dist-esm/samples-dev/reservationOrderListSample.d.ts +0 -2
  510. package/dist-esm/samples-dev/reservationOrderListSample.d.ts.map +0 -1
  511. package/dist-esm/samples-dev/reservationOrderListSample.js +0 -49
  512. package/dist-esm/samples-dev/reservationOrderListSample.js.map +0 -1
  513. package/dist-esm/samples-dev/reservationOrderPurchaseSample.d.ts +0 -2
  514. package/dist-esm/samples-dev/reservationOrderPurchaseSample.d.ts.map +0 -1
  515. package/dist-esm/samples-dev/reservationOrderPurchaseSample.js +0 -41
  516. package/dist-esm/samples-dev/reservationOrderPurchaseSample.js.map +0 -1
  517. package/dist-esm/samples-dev/reservationSplitSample.d.ts +0 -2
  518. package/dist-esm/samples-dev/reservationSplitSample.d.ts.map +0 -1
  519. package/dist-esm/samples-dev/reservationSplitSample.js +0 -31
  520. package/dist-esm/samples-dev/reservationSplitSample.js.map +0 -1
  521. package/dist-esm/samples-dev/reservationUnarchiveSample.d.ts +0 -2
  522. package/dist-esm/samples-dev/reservationUnarchiveSample.d.ts.map +0 -1
  523. package/dist-esm/samples-dev/reservationUnarchiveSample.js +0 -37
  524. package/dist-esm/samples-dev/reservationUnarchiveSample.js.map +0 -1
  525. package/dist-esm/samples-dev/reservationUpdateSample.d.ts +0 -2
  526. package/dist-esm/samples-dev/reservationUpdateSample.d.ts.map +0 -1
  527. package/dist-esm/samples-dev/reservationUpdateSample.js +0 -32
  528. package/dist-esm/samples-dev/reservationUpdateSample.js.map +0 -1
  529. package/dist-esm/samples-dev/returnPostSample.d.ts +0 -2
  530. package/dist-esm/samples-dev/returnPostSample.d.ts.map +0 -1
  531. package/dist-esm/samples-dev/returnPostSample.js +0 -38
  532. package/dist-esm/samples-dev/returnPostSample.js.map +0 -1
  533. package/dist-esm/src/azureReservationAPI.d.ts.map +0 -1
  534. package/dist-esm/src/azureReservationAPI.js.map +0 -1
  535. package/dist-esm/src/index.d.ts +0 -5
  536. package/dist-esm/src/index.js.map +0 -1
  537. package/dist-esm/src/lroImpl.js.map +0 -1
  538. package/dist-esm/src/models/index.js.map +0 -1
  539. package/dist-esm/src/models/mappers.js.map +0 -1
  540. package/dist-esm/src/models/parameters.js.map +0 -1
  541. package/dist-esm/src/operations/calculateExchange.d.ts.map +0 -1
  542. package/dist-esm/src/operations/calculateExchange.js +0 -109
  543. package/dist-esm/src/operations/calculateExchange.js.map +0 -1
  544. package/dist-esm/src/operations/calculateRefund.d.ts.map +0 -1
  545. package/dist-esm/src/operations/calculateRefund.js.map +0 -1
  546. package/dist-esm/src/operations/exchange.d.ts.map +0 -1
  547. package/dist-esm/src/operations/exchange.js +0 -109
  548. package/dist-esm/src/operations/exchange.js.map +0 -1
  549. package/dist-esm/src/operations/index.d.ts +0 -10
  550. package/dist-esm/src/operations/index.d.ts.map +0 -1
  551. package/dist-esm/src/operations/index.js +0 -17
  552. package/dist-esm/src/operations/index.js.map +0 -1
  553. package/dist-esm/src/operations/operation.d.ts.map +0 -1
  554. package/dist-esm/src/operations/operation.js.map +0 -1
  555. package/dist-esm/src/operations/quota.d.ts.map +0 -1
  556. package/dist-esm/src/operations/quota.js.map +0 -1
  557. package/dist-esm/src/operations/quotaRequestStatus.d.ts.map +0 -1
  558. package/dist-esm/src/operations/quotaRequestStatus.js.map +0 -1
  559. package/dist-esm/src/operations/reservation.d.ts.map +0 -1
  560. package/dist-esm/src/operations/reservation.js.map +0 -1
  561. package/dist-esm/src/operations/reservationOrder.d.ts.map +0 -1
  562. package/dist-esm/src/operations/reservationOrder.js.map +0 -1
  563. package/dist-esm/src/operations/return.d.ts.map +0 -1
  564. package/dist-esm/src/operations/return.js +0 -109
  565. package/dist-esm/src/operations/return.js.map +0 -1
  566. package/dist-esm/src/operationsInterfaces/calculateExchange.d.ts.map +0 -1
  567. package/dist-esm/src/operationsInterfaces/calculateExchange.js.map +0 -1
  568. package/dist-esm/src/operationsInterfaces/calculateRefund.d.ts.map +0 -1
  569. package/dist-esm/src/operationsInterfaces/calculateRefund.js.map +0 -1
  570. package/dist-esm/src/operationsInterfaces/exchange.d.ts.map +0 -1
  571. package/dist-esm/src/operationsInterfaces/exchange.js.map +0 -1
  572. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -10
  573. package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
  574. package/dist-esm/src/operationsInterfaces/index.js +0 -17
  575. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  576. package/dist-esm/src/operationsInterfaces/operation.js.map +0 -1
  577. package/dist-esm/src/operationsInterfaces/quota.d.ts.map +0 -1
  578. package/dist-esm/src/operationsInterfaces/quota.js.map +0 -1
  579. package/dist-esm/src/operationsInterfaces/quotaRequestStatus.d.ts.map +0 -1
  580. package/dist-esm/src/operationsInterfaces/quotaRequestStatus.js.map +0 -1
  581. package/dist-esm/src/operationsInterfaces/reservation.d.ts.map +0 -1
  582. package/dist-esm/src/operationsInterfaces/reservation.js.map +0 -1
  583. package/dist-esm/src/operationsInterfaces/reservationOrder.d.ts.map +0 -1
  584. package/dist-esm/src/operationsInterfaces/reservationOrder.js.map +0 -1
  585. package/dist-esm/src/operationsInterfaces/return.d.ts.map +0 -1
  586. package/dist-esm/src/operationsInterfaces/return.js.map +0 -1
  587. package/dist-esm/src/pagingHelper.js.map +0 -1
  588. package/dist-esm/test/reservations_examples.spec.d.ts +0 -4
  589. package/dist-esm/test/reservations_examples.spec.d.ts.map +0 -1
  590. package/dist-esm/test/reservations_examples.spec.js +0 -103
  591. package/dist-esm/test/reservations_examples.spec.js.map +0 -1
  592. package/src/azureReservationAPI.ts +0 -324
  593. package/src/lroImpl.ts +0 -38
  594. package/src/models/index.ts +0 -2735
  595. package/src/models/mappers.ts +0 -4025
  596. package/src/models/parameters.ts +0 -393
  597. package/src/operations/calculateExchange.ts +0 -152
  598. package/src/operations/calculateRefund.ts +0 -71
  599. package/src/operations/exchange.ts +0 -149
  600. package/src/operations/index.ts +0 -17
  601. package/src/operations/operation.ts +0 -149
  602. package/src/operations/quota.ts +0 -590
  603. package/src/operations/quotaRequestStatus.ts +0 -265
  604. package/src/operations/reservation.ts +0 -1136
  605. package/src/operations/reservationOrder.ts +0 -380
  606. package/src/operations/return.ts +0 -152
  607. package/src/operationsInterfaces/calculateExchange.ts +0 -43
  608. package/src/operationsInterfaces/calculateRefund.ts +0 -29
  609. package/src/operationsInterfaces/exchange.ts +0 -40
  610. package/src/operationsInterfaces/index.ts +0 -17
  611. package/src/operationsInterfaces/operation.ts +0 -22
  612. package/src/operationsInterfaces/quota.ts +0 -157
  613. package/src/operationsInterfaces/quotaRequestStatus.ts +0 -51
  614. package/src/operationsInterfaces/reservation.ts +0 -219
  615. package/src/operationsInterfaces/reservationOrder.ts +0 -93
  616. package/src/operationsInterfaces/return.ts +0 -42
  617. package/src/pagingHelper.ts +0 -39
  618. package/tsconfig.json +0 -33
  619. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  620. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
  621. /package/{dist-esm/src → dist/browser}/lroImpl.js +0 -0
  622. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  623. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  624. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  625. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  626. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  627. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  628. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  629. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  630. /package/{dist-esm/src → dist/browser}/operationsInterfaces/calculateExchange.js +0 -0
  631. /package/{dist-esm/src → dist/browser}/operationsInterfaces/calculateRefund.js +0 -0
  632. /package/{dist-esm/src → dist/browser}/operationsInterfaces/exchange.js +0 -0
  633. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operation.js +0 -0
  634. /package/{dist-esm/src → dist/browser}/operationsInterfaces/quota.js +0 -0
  635. /package/{dist-esm/src → dist/browser}/operationsInterfaces/quotaRequestStatus.js +0 -0
  636. /package/{dist-esm/src → dist/browser}/operationsInterfaces/reservation.js +0 -0
  637. /package/{dist-esm/src → dist/browser}/operationsInterfaces/reservationOrder.js +0 -0
  638. /package/{dist-esm/src → dist/browser}/operationsInterfaces/return.js +0 -0
  639. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  640. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  641. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calculateRefund.js","sourceRoot":"","sources":["../../../src/operations/calculateRefund.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAQtD,mDAAmD;AACnD,MAAM,OAAO,mBAAmB;IAG9B;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACH,IAAI,CACF,kBAA0B,EAC1B,IAA4B,EAC5B,OAA2C;QAE3C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,kBAAkB,EAAE,IAAI,EAAE,OAAO,EAAE,EACrC,iBAAiB,CAClB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EACF,sFAAsF;IACxF,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,KAAK;IAC7B,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,kBAAkB,CAAC;IAChE,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { CalculateRefund } 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 { AzureReservationAPI } from \"../azureReservationAPI.js\";\nimport {\n CalculateRefundRequest,\n CalculateRefundPostOptionalParams,\n CalculateRefundPostResponse\n} from \"../models/index.js\";\n\n/** Class containing CalculateRefund operations. */\nexport class CalculateRefundImpl implements CalculateRefund {\n private readonly client: AzureReservationAPI;\n\n /**\n * Initialize a new instance of the class CalculateRefund class.\n * @param client Reference to the service client\n */\n constructor(client: AzureReservationAPI) {\n this.client = client;\n }\n\n /**\n * Calculate price for returning `Reservations` if there are no policy errors.\n *\n * @param reservationOrderId Order Id of the reservation\n * @param body Information needed for calculating refund of a reservation.\n * @param options The options parameters.\n */\n post(\n reservationOrderId: string,\n body: CalculateRefundRequest,\n options?: CalculateRefundPostOptionalParams\n ): Promise<CalculateRefundPostResponse> {\n return this.client.sendOperationRequest(\n { reservationOrderId, body, options },\n postOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst postOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/calculateRefund\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CalculateRefundResponse\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.body5,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.reservationOrderId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\n"]}
@@ -1,7 +1,7 @@
1
- import { Exchange } from "../operationsInterfaces";
2
- import { AzureReservationAPI } from "../azureReservationAPI";
1
+ import { Exchange } from "../operationsInterfaces/index.js";
2
+ import { AzureReservationAPI } from "../azureReservationAPI.js";
3
3
  import { SimplePollerLike, OperationState } from "@azure/core-lro";
4
- import { ExchangeRequest, ExchangePostOptionalParams, ExchangePostResponse } from "../models";
4
+ import { ExchangeRequest, ExchangePostOptionalParams, ExchangePostResponse } from "../models/index.js";
5
5
  /** Class containing Exchange operations. */
6
6
  export declare class ExchangeImpl implements Exchange {
7
7
  private readonly client;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exchange.d.ts","sourceRoot":"","sources":["../../../src/operations/exchange.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAI5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACL,gBAAgB,EAChB,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,eAAe,EACf,0BAA0B,EAC1B,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAE5B,4CAA4C;AAC5C,qBAAa,YAAa,YAAW,QAAQ;IAC3C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsB;IAE7C;;;OAGG;gBACS,MAAM,EAAE,mBAAmB;IAIvC;;;;;OAKG;IACG,SAAS,CACb,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,0BAA0B,GACnC,OAAO,CACR,gBAAgB,CAAC,cAAc,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,CAC7E;IAyDD;;;;;OAKG;IACG,gBAAgB,CACpB,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,0BAA0B,GACnC,OAAO,CAAC,oBAAoB,CAAC;CAIjC"}
@@ -0,0 +1,104 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import * as coreClient from "@azure/core-client";
9
+ import * as Mappers from "../models/mappers.js";
10
+ import * as Parameters from "../models/parameters.js";
11
+ import { createHttpPoller } from "@azure/core-lro";
12
+ import { createLroSpec } from "../lroImpl.js";
13
+ /** Class containing Exchange operations. */
14
+ export class ExchangeImpl {
15
+ /**
16
+ * Initialize a new instance of the class Exchange class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.
24
+ *
25
+ * @param body Request containing the refunds and purchases that need to be executed.
26
+ * @param options The options parameters.
27
+ */
28
+ async beginPost(body, options) {
29
+ const directSendOperation = async (args, spec) => {
30
+ return this.client.sendOperationRequest(args, spec);
31
+ };
32
+ const sendOperationFn = async (args, spec) => {
33
+ var _a;
34
+ let currentRawResponse = undefined;
35
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
36
+ const callback = (rawResponse, flatResponse) => {
37
+ currentRawResponse = rawResponse;
38
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
39
+ };
40
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
41
+ const flatResponse = await directSendOperation(updatedArgs, spec);
42
+ return {
43
+ flatResponse,
44
+ rawResponse: {
45
+ statusCode: currentRawResponse.status,
46
+ body: currentRawResponse.parsedBody,
47
+ headers: currentRawResponse.headers.toJSON()
48
+ }
49
+ };
50
+ };
51
+ const lro = createLroSpec({
52
+ sendOperationFn,
53
+ args: { body, options },
54
+ spec: postOperationSpec
55
+ });
56
+ const poller = await createHttpPoller(lro, {
57
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
58
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
59
+ resourceLocationConfig: "azure-async-operation"
60
+ });
61
+ await poller.poll();
62
+ return poller;
63
+ }
64
+ /**
65
+ * Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.
66
+ *
67
+ * @param body Request containing the refunds and purchases that need to be executed.
68
+ * @param options The options parameters.
69
+ */
70
+ async beginPostAndWait(body, options) {
71
+ const poller = await this.beginPost(body, options);
72
+ return poller.pollUntilDone();
73
+ }
74
+ }
75
+ // Operation Specifications
76
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
77
+ const postOperationSpec = {
78
+ path: "/providers/Microsoft.Capacity/exchange",
79
+ httpMethod: "POST",
80
+ responses: {
81
+ 200: {
82
+ bodyMapper: Mappers.ExchangeOperationResultResponse
83
+ },
84
+ 201: {
85
+ bodyMapper: Mappers.ExchangeOperationResultResponse
86
+ },
87
+ 202: {
88
+ bodyMapper: Mappers.ExchangeOperationResultResponse
89
+ },
90
+ 204: {
91
+ bodyMapper: Mappers.ExchangeOperationResultResponse
92
+ },
93
+ default: {
94
+ bodyMapper: Mappers.ErrorModel
95
+ }
96
+ },
97
+ requestBody: Parameters.body8,
98
+ queryParameters: [Parameters.apiVersion],
99
+ urlParameters: [Parameters.$host],
100
+ headerParameters: [Parameters.contentType, Parameters.accept],
101
+ mediaType: "json",
102
+ serializer
103
+ };
104
+ //# sourceMappingURL=exchange.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exchange.js","sourceRoot":"","sources":["../../../src/operations/exchange.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAO9C,4CAA4C;AAC5C,MAAM,OAAO,YAAY;IAGvB;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,SAAS,CACb,IAAqB,EACrB,OAAoC;QAIpC,MAAM,mBAAmB,GAAG,KAAK,EAC/B,IAAmC,EACnC,IAA8B,EACC,EAAE;YACjC,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,EAAE;;YACF,IAAI,kBAAkB,GAEN,SAAS,CAAC;YAC1B,MAAM,gBAAgB,GAAG,MAAA,IAAI,CAAC,OAAO,0CAAE,UAAU,CAAC;YAClD,MAAM,QAAQ,GAAmC,CAC/C,WAA6C,EAC7C,YAAqB,EACrB,EAAE;gBACF,kBAAkB,GAAG,WAAW,CAAC;gBACjC,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAG,WAAW,EAAE,YAAY,CAAC,CAAC;YAChD,CAAC,CAAC;YACF,MAAM,WAAW,mCACZ,IAAI,K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,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,+BAA+B;SACpD;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,+BAA+B;SACpD;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,+BAA+B;SACpD;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,+BAA+B;SACpD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,KAAK;IAC7B,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { Exchange } 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 { AzureReservationAPI } from \"../azureReservationAPI.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n ExchangeRequest,\n ExchangePostOptionalParams,\n ExchangePostResponse\n} from \"../models/index.js\";\n\n/** Class containing Exchange operations. */\nexport class ExchangeImpl implements Exchange {\n private readonly client: AzureReservationAPI;\n\n /**\n * Initialize a new instance of the class Exchange class.\n * @param client Reference to the service client\n */\n constructor(client: AzureReservationAPI) {\n this.client = client;\n }\n\n /**\n * Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.\n *\n * @param body Request containing the refunds and purchases that need to be executed.\n * @param options The options parameters.\n */\n async beginPost(\n body: ExchangeRequest,\n options?: ExchangePostOptionalParams\n ): Promise<\n SimplePollerLike<OperationState<ExchangePostResponse>, ExchangePostResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ExchangePostResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = 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: { body, options },\n spec: postOperationSpec\n });\n const poller = await createHttpPoller<\n ExchangePostResponse,\n OperationState<ExchangePostResponse>\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 * Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.\n *\n * @param body Request containing the refunds and purchases that need to be executed.\n * @param options The options parameters.\n */\n async beginPostAndWait(\n body: ExchangeRequest,\n options?: ExchangePostOptionalParams\n ): Promise<ExchangePostResponse> {\n const poller = await this.beginPost(body, options);\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst postOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Capacity/exchange\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ExchangeOperationResultResponse\n },\n 201: {\n bodyMapper: Mappers.ExchangeOperationResultResponse\n },\n 202: {\n bodyMapper: Mappers.ExchangeOperationResultResponse\n },\n 204: {\n bodyMapper: Mappers.ExchangeOperationResultResponse\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.body8,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\n"]}
@@ -0,0 +1,10 @@
1
+ export * from "./reservation.js";
2
+ export * from "./reservationOrder.js";
3
+ export * from "./operation.js";
4
+ export * from "./calculateRefund.js";
5
+ export * from "./return.js";
6
+ export * from "./calculateExchange.js";
7
+ export * from "./exchange.js";
8
+ export * from "./quota.js";
9
+ export * from "./quotaRequestStatus.js";
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export * from "./reservation.js";
9
+ export * from "./reservationOrder.js";
10
+ export * from "./operation.js";
11
+ export * from "./calculateRefund.js";
12
+ export * from "./return.js";
13
+ export * from "./calculateExchange.js";
14
+ export * from "./exchange.js";
15
+ export * from "./quota.js";
16
+ export * from "./quotaRequestStatus.js";
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./reservation.js\";\nexport * from \"./reservationOrder.js\";\nexport * from \"./operation.js\";\nexport * from \"./calculateRefund.js\";\nexport * from \"./return.js\";\nexport * from \"./calculateExchange.js\";\nexport * from \"./exchange.js\";\nexport * from \"./quota.js\";\nexport * from \"./quotaRequestStatus.js\";\n"]}
@@ -1,7 +1,7 @@
1
1
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { Operation } from "../operationsInterfaces";
3
- import { AzureReservationAPI } from "../azureReservationAPI";
4
- import { OperationResponse, OperationListOptionalParams } from "../models";
2
+ import { Operation } from "../operationsInterfaces/index.js";
3
+ import { AzureReservationAPI } from "../azureReservationAPI.js";
4
+ import { OperationResponse, OperationListOptionalParams } from "../models/index.js";
5
5
  /** Class containing Operation operations. */
6
6
  export declare class OperationImpl implements Operation {
7
7
  private readonly client;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../../src/operations/operation.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAI7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACL,iBAAiB,EAEjB,2BAA2B,EAG5B,MAAM,oBAAoB,CAAC;AAG5B,6CAA6C;AAC7C,qBAAa,aAAc,YAAW,SAAS;IAC7C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsB;IAE7C;;;OAGG;gBACS,MAAM,EAAE,mBAAmB;IAIvC;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,2BAA2B,GACpC,0BAA0B,CAAC,iBAAiB,CAAC;YAkBjC,cAAc;YAsBd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
@@ -6,10 +6,10 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
- import { setContinuationToken } from "../pagingHelper";
9
+ import { setContinuationToken } from "../pagingHelper.js";
10
10
  import * as coreClient from "@azure/core-client";
11
- import * as Mappers from "../models/mappers";
12
- import * as Parameters from "../models/parameters";
11
+ import * as Mappers from "../models/mappers.js";
12
+ import * as Parameters from "../models/parameters.js";
13
13
  /// <reference lib="esnext.asynciterable" />
14
14
  /** Class containing Operation operations. */
15
15
  export class OperationImpl {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation.js","sourceRoot":"","sources":["../../../src/operations/operation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,6CAA6C;AAC7C,MAAM,OAAO,aAAa;IAGxB;;;OAGG;IACH,Y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BAAgB,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,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,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 { Operation } 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 { AzureReservationAPI } from \"../azureReservationAPI.js\";\nimport {\n OperationResponse,\n OperationListNextOptionalParams,\n OperationListOptionalParams,\n OperationListResponse,\n OperationListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operation operations. */\nexport class OperationImpl implements Operation {\n private readonly client: AzureReservationAPI;\n\n /**\n * Initialize a new instance of the class Operation class.\n * @param client Reference to the service client\n */\n constructor(client: AzureReservationAPI) {\n this.client = client;\n }\n\n /**\n * List all the operations.\n * @param options The options parameters.\n */\n public list(\n options?: OperationListOptionalParams\n ): PagedAsyncIterableIterator<OperationResponse> {\n const iter = this.listPagingAll(options);\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(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: OperationListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<OperationResponse[]> {\n let result: OperationListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(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(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: OperationListOptionalParams\n ): AsyncIterableIterator<OperationResponse> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List all the operations.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationListOptionalParams\n ): Promise<OperationListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\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 nextLink: string,\n options?: OperationListNextOptionalParams\n ): Promise<OperationListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Capacity/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -1,8 +1,8 @@
1
1
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { Quota } from "../operationsInterfaces";
3
- import { AzureReservationAPI } from "../azureReservationAPI";
2
+ import { Quota } from "../operationsInterfaces/index.js";
3
+ import { AzureReservationAPI } from "../azureReservationAPI.js";
4
4
  import { SimplePollerLike, OperationState } from "@azure/core-lro";
5
- import { CurrentQuotaLimitBase, QuotaListOptionalParams, QuotaGetOptionalParams, QuotaGetResponse, QuotaCreateOrUpdateOptionalParams, QuotaCreateOrUpdateResponse, QuotaUpdateOptionalParams, QuotaUpdateResponse } from "../models";
5
+ import { CurrentQuotaLimitBase, QuotaListOptionalParams, QuotaGetOptionalParams, QuotaGetResponse, QuotaCreateOrUpdateOptionalParams, QuotaCreateOrUpdateResponse, QuotaUpdateOptionalParams, QuotaUpdateResponse } from "../models/index.js";
6
6
  /** Class containing Quota operations. */
7
7
  export declare class QuotaImpl implements Quota {
8
8
  private readonly client;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quota.d.ts","sourceRoot":"","sources":["../../../src/operations/quota.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAIzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACL,gBAAgB,EAChB,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,qBAAqB,EAErB,uBAAuB,EAEvB,sBAAsB,EACtB,gBAAgB,EAChB,iCAAiC,EACjC,2BAA2B,EAC3B,yBAAyB,EACzB,mBAAmB,EAEpB,MAAM,oBAAoB,CAAC;AAG5B,yCAAyC;AACzC,qBAAa,SAAU,YAAW,KAAK;IACrC,OAAO,CAAC,QAAQ,CAAC,M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E,mBAAmB,CAAC,CAC3E;IAgED;;;;;;;;;;;;;;OAcG;IACG,kBAAkB,CACtB,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,EACpB,kBAAkB,EAAE,qBAAqB,EACzC,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC;IAY/B;;;;;;;OAOG;IACH,OAAO,CAAC,KAAK;IAYb;;;;;;;OAOG;IACH,OAAO,CAAC,SAAS;CAYlB"}
@@ -5,13 +5,13 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
9
- import { setContinuationToken } from "../pagingHelper";
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import { setContinuationToken } from "../pagingHelper.js";
10
10
  import * as coreClient from "@azure/core-client";
11
- import * as Mappers from "../models/mappers";
12
- import * as Parameters from "../models/parameters";
11
+ import * as Mappers from "../models/mappers.js";
12
+ import * as Parameters from "../models/parameters.js";
13
13
  import { createHttpPoller } from "@azure/core-lro";
14
- import { createLroSpec } from "../lroImpl";
14
+ import { createLroSpec } from "../lroImpl.js";
15
15
  /// <reference lib="esnext.asynciterable" />
16
16
  /** Class containing Quota operations. */
17
17
  export class QuotaImpl {
@@ -116,50 +116,48 @@ export class QuotaImpl {
116
116
  * @param createQuotaRequest Quota requests payload.
117
117
  * @param options The options parameters.
118
118
  */
119
- beginCreateOrUpdate(subscriptionId, providerId, location, resourceName, createQuotaRequest, options) {
120
- return __awaiter(this, void 0, void 0, function* () {
121
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
122
- return this.client.sendOperationRequest(args, spec);
123
- });
124
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
125
- var _a;
126
- let currentRawResponse = undefined;
127
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
128
- const callback = (rawResponse, flatResponse) => {
129
- currentRawResponse = rawResponse;
130
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
131
- };
132
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
133
- const flatResponse = yield directSendOperation(updatedArgs, spec);
134
- return {
135
- flatResponse,
136
- rawResponse: {
137
- statusCode: currentRawResponse.status,
138
- body: currentRawResponse.parsedBody,
139
- headers: currentRawResponse.headers.toJSON()
140
- }
141
- };
142
- });
143
- const lro = createLroSpec({
144
- sendOperationFn,
145
- args: {
146
- subscriptionId,
147
- providerId,
148
- location,
149
- resourceName,
150
- createQuotaRequest,
151
- options
152
- },
153
- spec: createOrUpdateOperationSpec
154
- });
155
- const poller = yield createHttpPoller(lro, {
156
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
157
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
158
- resourceLocationConfig: "original-uri"
159
- });
160
- yield poller.poll();
161
- return poller;
119
+ async beginCreateOrUpdate(subscriptionId, providerId, location, resourceName, createQuotaRequest, options) {
120
+ const directSendOperation = async (args, spec) => {
121
+ return this.client.sendOperationRequest(args, spec);
122
+ };
123
+ const sendOperationFn = async (args, spec) => {
124
+ var _a;
125
+ let currentRawResponse = undefined;
126
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
127
+ const callback = (rawResponse, flatResponse) => {
128
+ currentRawResponse = rawResponse;
129
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
130
+ };
131
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
132
+ const flatResponse = await directSendOperation(updatedArgs, spec);
133
+ return {
134
+ flatResponse,
135
+ rawResponse: {
136
+ statusCode: currentRawResponse.status,
137
+ body: currentRawResponse.parsedBody,
138
+ headers: currentRawResponse.headers.toJSON()
139
+ }
140
+ };
141
+ };
142
+ const lro = createLroSpec({
143
+ sendOperationFn,
144
+ args: {
145
+ subscriptionId,
146
+ providerId,
147
+ location,
148
+ resourceName,
149
+ createQuotaRequest,
150
+ options
151
+ },
152
+ spec: createOrUpdateOperationSpec
153
+ });
154
+ const poller = await createHttpPoller(lro, {
155
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
156
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
157
+ resourceLocationConfig: "original-uri"
162
158
  });
159
+ await poller.poll();
160
+ return poller;
163
161
  }
164
162
  /**
165
163
  * Create or update the quota (service limits) of a resource to the requested value.
@@ -177,11 +175,9 @@ export class QuotaImpl {
177
175
  * @param createQuotaRequest Quota requests payload.
178
176
  * @param options The options parameters.
179
177
  */
180
- beginCreateOrUpdateAndWait(subscriptionId, providerId, location, resourceName, createQuotaRequest, options) {
181
- return __awaiter(this, void 0, void 0, function* () {
182
- const poller = yield this.beginCreateOrUpdate(subscriptionId, providerId, location, resourceName, createQuotaRequest, options);
183
- return poller.pollUntilDone();
184
- });
178
+ async beginCreateOrUpdateAndWait(subscriptionId, providerId, location, resourceName, createQuotaRequest, options) {
179
+ const poller = await this.beginCreateOrUpdate(subscriptionId, providerId, location, resourceName, createQuotaRequest, options);
180
+ return poller.pollUntilDone();
185
181
  }
186
182
  /**
187
183
  * Update the quota (service limits) of this resource to the requested value.
@@ -198,50 +194,48 @@ export class QuotaImpl {
198
194
  * @param createQuotaRequest Payload for the quota request.
199
195
  * @param options The options parameters.
200
196
  */
201
- beginUpdate(subscriptionId, providerId, location, resourceName, createQuotaRequest, options) {
202
- return __awaiter(this, void 0, void 0, function* () {
203
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
204
- return this.client.sendOperationRequest(args, spec);
205
- });
206
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
207
- var _a;
208
- let currentRawResponse = undefined;
209
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
210
- const callback = (rawResponse, flatResponse) => {
211
- currentRawResponse = rawResponse;
212
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
213
- };
214
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
215
- const flatResponse = yield directSendOperation(updatedArgs, spec);
216
- return {
217
- flatResponse,
218
- rawResponse: {
219
- statusCode: currentRawResponse.status,
220
- body: currentRawResponse.parsedBody,
221
- headers: currentRawResponse.headers.toJSON()
222
- }
223
- };
224
- });
225
- const lro = createLroSpec({
226
- sendOperationFn,
227
- args: {
228
- subscriptionId,
229
- providerId,
230
- location,
231
- resourceName,
232
- createQuotaRequest,
233
- options
234
- },
235
- spec: updateOperationSpec
236
- });
237
- const poller = yield createHttpPoller(lro, {
238
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
239
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
240
- resourceLocationConfig: "original-uri"
241
- });
242
- yield poller.poll();
243
- return poller;
197
+ async beginUpdate(subscriptionId, providerId, location, resourceName, createQuotaRequest, options) {
198
+ const directSendOperation = async (args, spec) => {
199
+ return this.client.sendOperationRequest(args, spec);
200
+ };
201
+ const sendOperationFn = async (args, spec) => {
202
+ var _a;
203
+ let currentRawResponse = undefined;
204
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
205
+ const callback = (rawResponse, flatResponse) => {
206
+ currentRawResponse = rawResponse;
207
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
208
+ };
209
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
210
+ const flatResponse = await directSendOperation(updatedArgs, spec);
211
+ return {
212
+ flatResponse,
213
+ rawResponse: {
214
+ statusCode: currentRawResponse.status,
215
+ body: currentRawResponse.parsedBody,
216
+ headers: currentRawResponse.headers.toJSON()
217
+ }
218
+ };
219
+ };
220
+ const lro = createLroSpec({
221
+ sendOperationFn,
222
+ args: {
223
+ subscriptionId,
224
+ providerId,
225
+ location,
226
+ resourceName,
227
+ createQuotaRequest,
228
+ options
229
+ },
230
+ spec: updateOperationSpec
231
+ });
232
+ const poller = await createHttpPoller(lro, {
233
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
234
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
235
+ resourceLocationConfig: "original-uri"
244
236
  });
237
+ await poller.poll();
238
+ return poller;
245
239
  }
246
240
  /**
247
241
  * Update the quota (service limits) of this resource to the requested value.
@@ -258,11 +252,9 @@ export class QuotaImpl {
258
252
  * @param createQuotaRequest Payload for the quota request.
259
253
  * @param options The options parameters.
260
254
  */
261
- beginUpdateAndWait(subscriptionId, providerId, location, resourceName, createQuotaRequest, options) {
262
- return __awaiter(this, void 0, void 0, function* () {
263
- const poller = yield this.beginUpdate(subscriptionId, providerId, location, resourceName, createQuotaRequest, options);
264
- return poller.pollUntilDone();
265
- });
255
+ async beginUpdateAndWait(subscriptionId, providerId, location, resourceName, createQuotaRequest, options) {
256
+ const poller = await this.beginUpdate(subscriptionId, providerId, location, resourceName, createQuotaRequest, options);
257
+ return poller.pollUntilDone();
266
258
  }
267
259
  /**
268
260
  * Gets a list of current quotas (service limits) and usage for all resources. The response from the
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quota.js","sourceRoot":"","sources":["../../../src/operations/quota.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAA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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 { Quota } 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 { AzureReservationAPI } from \"../azureReservationAPI.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n CurrentQuotaLimitBase,\n QuotaListNextOptionalParams,\n QuotaListOptionalParams,\n QuotaListResponse,\n QuotaGetOptionalParams,\n QuotaGetResponse,\n QuotaCreateOrUpdateOptionalParams,\n QuotaCreateOrUpdateResponse,\n QuotaUpdateOptionalParams,\n QuotaUpdateResponse,\n QuotaListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Quota operations. */\nexport class QuotaImpl implements Quota {\n private readonly client: AzureReservationAPI;\n\n /**\n * Initialize a new instance of the class Quota class.\n * @param client Reference to the service client\n */\n constructor(client: AzureReservationAPI) {\n this.client = client;\n }\n\n /**\n * Gets a list of current quotas (service limits) and usage for all resources. The response from the\n * list quota operation can be leveraged to request quota updates.\n * @param subscriptionId Azure subscription ID.\n * @param providerId Azure resource provider ID.\n * @param location Azure region.\n * @param options The options parameters.\n */\n public list(\n subscriptionId: string,\n providerId: string,\n location: string,\n options?: QuotaListOptionalParams\n ): PagedAsyncIterableIterator<CurrentQuotaLimitBase> {\n const iter = this.listPagingAll(\n subscriptionId,\n providerId,\n location,\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 subscriptionId,\n providerId,\n location,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n subscriptionId: string,\n providerId: string,\n location: string,\n options?: QuotaListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<CurrentQuotaLimitBase[]> {\n let result: QuotaListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(subscriptionId, providerId, location, 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 subscriptionId,\n providerId,\n location,\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 subscriptionId: string,\n providerId: string,\n location: string,\n options?: QuotaListOptionalParams\n ): AsyncIterableIterator<CurrentQuotaLimitBase> {\n for await (const page of this.listPagingPage(\n subscriptionId,\n providerId,\n location,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Get the current quota (service limit) and usage of a resource. You can use the response from the GET\n * operation to submit quota update request.\n * @param subscriptionId Azure subscription ID.\n * @param providerId Azure resource provider ID.\n * @param location Azure region.\n * @param resourceName The resource name for a resource provider, such as SKU name for\n * Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices\n * @param options The options parameters.\n */\n get(\n subscriptionId: string,\n providerId: string,\n location: string,\n resourceName: string,\n options?: QuotaGetOptionalParams\n ): Promise<QuotaGetResponse> {\n return this.client.sendOperationRequest(\n { subscriptionId, providerId, location, resourceName, options },\n getOperationSpec\n );\n }\n\n /**\n * Create or update the quota (service limits) of a resource to the requested value.\n * Steps:\n * 1. Make the Get request to get the quota information for specific resource.\n * 2. To increase the quota, update the limit field in the response from Get request to new value.\n * 3. Submit the JSON to the quota request API to update the quota.\n * The Create quota request may be constructed as follows. The PUT operation can be used to update\n * the quota.\n * @param subscriptionId Azure subscription ID.\n * @param providerId Azure resource provider ID.\n * @param location Azure region.\n * @param resourceName The resource name for a resource provider, such as SKU name for\n * Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices\n * @param createQuotaRequest Quota requests payload.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n subscriptionId: string,\n providerId: string,\n location: string,\n resourceName: string,\n createQuotaRequest: CurrentQuotaLimitBase,\n options?: QuotaCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<QuotaCreateOrUpdateResponse>,\n QuotaCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<QuotaCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = 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 subscriptionId,\n providerId,\n location,\n resourceName,\n createQuotaRequest,\n options\n },\n spec: createOrUpdateOperationSpec\n });\n const poller = await createHttpPoller<\n QuotaCreateOrUpdateResponse,\n OperationState<QuotaCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"original-uri\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create or update the quota (service limits) of a resource to the requested value.\n * Steps:\n * 1. Make the Get request to get the quota information for specific resource.\n * 2. To increase the quota, update the limit field in the response from Get request to new value.\n * 3. Submit the JSON to the quota request API to update the quota.\n * The Create quota request may be constructed as follows. The PUT operation can be used to update\n * the quota.\n * @param subscriptionId Azure subscription ID.\n * @param providerId Azure resource provider ID.\n * @param location Azure region.\n * @param resourceName The resource name for a resource provider, such as SKU name for\n * Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices\n * @param createQuotaRequest Quota requests payload.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n subscriptionId: string,\n providerId: string,\n location: string,\n resourceName: string,\n createQuotaRequest: CurrentQuotaLimitBase,\n options?: QuotaCreateOrUpdateOptionalParams\n ): Promise<QuotaCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n subscriptionId,\n providerId,\n location,\n resourceName,\n createQuotaRequest,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update the quota (service limits) of this resource to the requested value.\n * • To get the quota information for specific resource, send a GET request.\n * • To increase the quota, update the limit field from the GET response to a new value.\n * • To update the quota value, submit the JSON response to the quota request API to update the\n * quota.\n * • To update the quota. use the PATCH operation.\n * @param subscriptionId Azure subscription ID.\n * @param providerId Azure resource provider ID.\n * @param location Azure region.\n * @param resourceName The resource name for a resource provider, such as SKU name for\n * Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices\n * @param createQuotaRequest Payload for the quota request.\n * @param options The options parameters.\n */\n async beginUpdate(\n subscriptionId: string,\n providerId: string,\n location: string,\n resourceName: string,\n createQuotaRequest: CurrentQuotaLimitBase,\n options?: QuotaUpdateOptionalParams\n ): Promise<\n SimplePollerLike<OperationState<QuotaUpdateResponse>, QuotaUpdateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<QuotaUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = 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 subscriptionId,\n providerId,\n location,\n resourceName,\n createQuotaRequest,\n options\n },\n spec: updateOperationSpec\n });\n const poller = await createHttpPoller<\n QuotaUpdateResponse,\n OperationState<QuotaUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"original-uri\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update the quota (service limits) of this resource to the requested value.\n * • To get the quota information for specific resource, send a GET request.\n * • To increase the quota, update the limit field from the GET response to a new value.\n * • To update the quota value, submit the JSON response to the quota request API to update the\n * quota.\n * • To update the quota. use the PATCH operation.\n * @param subscriptionId Azure subscription ID.\n * @param providerId Azure resource provider ID.\n * @param location Azure region.\n * @param resourceName The resource name for a resource provider, such as SKU name for\n * Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices\n * @param createQuotaRequest Payload for the quota request.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n subscriptionId: string,\n providerId: string,\n location: string,\n resourceName: string,\n createQuotaRequest: CurrentQuotaLimitBase,\n options?: QuotaUpdateOptionalParams\n ): Promise<QuotaUpdateResponse> {\n const poller = await this.beginUpdate(\n subscriptionId,\n providerId,\n location,\n resourceName,\n createQuotaRequest,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets a list of current quotas (service limits) and usage for all resources. The response from the\n * list quota operation can be leveraged to request quota updates.\n * @param subscriptionId Azure subscription ID.\n * @param providerId Azure resource provider ID.\n * @param location Azure region.\n * @param options The options parameters.\n */\n private _list(\n subscriptionId: string,\n providerId: string,\n location: string,\n options?: QuotaListOptionalParams\n ): Promise<QuotaListResponse> {\n return this.client.sendOperationRequest(\n { subscriptionId, providerId, location, options },\n listOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param subscriptionId Azure subscription ID.\n * @param providerId Azure resource provider ID.\n * @param location Azure region.\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 subscriptionId: string,\n providerId: string,\n location: string,\n nextLink: string,\n options?: QuotaListNextOptionalParams\n ): Promise<QuotaListNextResponse> {\n return this.client.sendOperationRequest(\n { subscriptionId, providerId, location, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimits/{resourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CurrentQuotaLimitBase,\n headersMapper: Mappers.QuotaGetHeaders\n },\n default: {\n bodyMapper: Mappers.ExceptionResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.providerId,\n Parameters.location1,\n Parameters.resourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimits/{resourceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CurrentQuotaLimitBase\n },\n 201: {\n bodyMapper: Mappers.CurrentQuotaLimitBase\n },\n 202: {\n bodyMapper: Mappers.CurrentQuotaLimitBase\n },\n 204: {\n bodyMapper: Mappers.CurrentQuotaLimitBase\n },\n default: {\n bodyMapper: Mappers.ExceptionResponse\n }\n },\n requestBody: Parameters.createQuotaRequest,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.providerId,\n Parameters.location1,\n Parameters.resourceName\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimits/{resourceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.CurrentQuotaLimitBase\n },\n 201: {\n bodyMapper: Mappers.CurrentQuotaLimitBase\n },\n 202: {\n bodyMapper: Mappers.CurrentQuotaLimitBase\n },\n 204: {\n bodyMapper: Mappers.CurrentQuotaLimitBase\n },\n default: {\n bodyMapper: Mappers.ExceptionResponse\n }\n },\n requestBody: Parameters.createQuotaRequest,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.providerId,\n Parameters.location1,\n Parameters.resourceName\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimits\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QuotaLimits,\n headersMapper: Mappers.QuotaListHeaders\n },\n default: {\n bodyMapper: Mappers.ExceptionResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.providerId,\n Parameters.location1\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.QuotaLimits,\n headersMapper: Mappers.QuotaListNextHeaders\n },\n default: {\n bodyMapper: Mappers.ExceptionResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.providerId,\n Parameters.location1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -1,7 +1,7 @@
1
1
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { QuotaRequestStatus } from "../operationsInterfaces";
3
- import { AzureReservationAPI } from "../azureReservationAPI";
4
- import { QuotaRequestDetails, QuotaRequestStatusListOptionalParams, QuotaRequestStatusGetOptionalParams, QuotaRequestStatusGetResponse } from "../models";
2
+ import { QuotaRequestStatus } from "../operationsInterfaces/index.js";
3
+ import { AzureReservationAPI } from "../azureReservationAPI.js";
4
+ import { QuotaRequestDetails, QuotaRequestStatusListOptionalParams, QuotaRequestStatusGetOptionalParams, QuotaRequestStatusGetResponse } from "../models/index.js";
5
5
  /** Class containing QuotaRequestStatus operations. */
6
6
  export declare class QuotaRequestStatusImpl implements QuotaRequestStatus {
7
7
  private readonly client;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quotaRequestStatus.d.ts","sourceRoot":"","sources":["../../../src/operations/quotaRequestStatus.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAItE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACL,mBAAmB,EAEnB,oCAAoC,EAEpC,mCAAmC,EACnC,6BAA6B,EAE9B,MAAM,oBAAoB,CAAC;AAG5B,sDAAsD;AACtD,qBAAa,sBAAuB,YAAW,kBAAkB;IAC/D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsB;IAE7C;;;OAGG;gBACS,MAAM,EAAE,mBAAmB;IAIvC;;;;;;;OAOG;IACI,IAAI,CACT,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,oCAAoC,GAC7C,0BAA0B,CAAC,mBAAmB,CAAC;YA6BnC,cAAc;YA+Bd,aAAa;IAgB5B;;;;;;;;;OASG;IACH,GAAG,CACD,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,mCAAmC,GAC5C,OAAO,CAAC,6BAA6B,CAAC;IAOzC;;;;;;;OAOG;IACH,OAAO,CAAC,KAAK;IAYb;;;;;;;OAOG;IACH,OAAO,CAAC,SAAS;CAYlB"}
@@ -6,10 +6,10 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
- import { setContinuationToken } from "../pagingHelper";
9
+ import { setContinuationToken } from "../pagingHelper.js";
10
10
  import * as coreClient from "@azure/core-client";
11
- import * as Mappers from "../models/mappers";
12
- import * as Parameters from "../models/parameters";
11
+ import * as Mappers from "../models/mappers.js";
12
+ import * as Parameters from "../models/parameters.js";
13
13
  /// <reference lib="esnext.asynciterable" />
14
14
  /** Class containing QuotaRequestStatus operations. */
15
15
  export class QuotaRequestStatusImpl {