@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":"reservation.js","sourceRoot":"","sources":["../../../src/operations/reservation.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAiC9C,4CAA4C;AAC5C,+CAA+C;AAC/C,MAAa,eAAe;IAG1B;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,kBAA0B,EAC1B,OAAuC;QAEvC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;QAC7D,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAA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EAAE,OAAO,CAAC,eAAe;SACpC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,wBAAwB,GAA6B;IACzD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;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 { Reservation } 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 ReservationResponse,\n ReservationListNextOptionalParams,\n ReservationListOptionalParams,\n ReservationListResponse,\n ReservationListRevisionsNextOptionalParams,\n ReservationListRevisionsOptionalParams,\n ReservationListRevisionsResponse,\n ReservationListAllNextOptionalParams,\n ReservationListAllOptionalParams,\n ReservationListAllResponse,\n AvailableScopeRequest,\n ReservationAvailableScopesOptionalParams,\n ReservationAvailableScopesResponse,\n SplitRequest,\n ReservationSplitOptionalParams,\n ReservationSplitResponse,\n MergeRequest,\n ReservationMergeOptionalParams,\n ReservationMergeResponse,\n ReservationGetOptionalParams,\n ReservationGetResponse,\n Patch,\n ReservationUpdateOptionalParams,\n ReservationUpdateResponse,\n ReservationArchiveOptionalParams,\n ReservationUnarchiveOptionalParams,\n ReservationListNextResponse,\n ReservationListRevisionsNextResponse,\n ReservationListAllNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Reservation operations. */\nexport class ReservationImpl implements Reservation {\n private readonly client: AzureReservationAPI;\n\n /**\n * Initialize a new instance of the class Reservation class.\n * @param client Reference to the service client\n */\n constructor(client: AzureReservationAPI) {\n this.client = client;\n }\n\n /**\n * List `Reservation`s within a single `ReservationOrder`.\n * @param reservationOrderId Order Id of the reservation\n * @param options The options parameters.\n */\n public list(\n reservationOrderId: string,\n options?: ReservationListOptionalParams\n ): PagedAsyncIterableIterator<ReservationResponse> {\n const iter = this.listPagingAll(reservationOrderId, 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(reservationOrderId, options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n reservationOrderId: string,\n options?: ReservationListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ReservationResponse[]> {\n let result: ReservationListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(reservationOrderId, 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 reservationOrderId,\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 reservationOrderId: string,\n options?: ReservationListOptionalParams\n ): AsyncIterableIterator<ReservationResponse> {\n for await (const page of this.listPagingPage(reservationOrderId, options)) {\n yield* page;\n }\n }\n\n /**\n * List of all the revisions for the `Reservation`.\n * @param reservationOrderId Order Id of the reservation\n * @param reservationId Id of the reservation item\n * @param options The options parameters.\n */\n public listRevisions(\n reservationOrderId: string,\n reservationId: string,\n options?: ReservationListRevisionsOptionalParams\n ): PagedAsyncIterableIterator<ReservationResponse> {\n const iter = this.listRevisionsPagingAll(\n reservationOrderId,\n reservationId,\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.listRevisionsPagingPage(\n reservationOrderId,\n reservationId,\n options,\n settings\n );\n }\n };\n }\n\n private async *listRevisionsPagingPage(\n reservationOrderId: string,\n reservationId: string,\n options?: ReservationListRevisionsOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ReservationResponse[]> {\n let result: ReservationListRevisionsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listRevisions(\n reservationOrderId,\n reservationId,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listRevisionsNext(\n reservationOrderId,\n reservationId,\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 *listRevisionsPagingAll(\n reservationOrderId: string,\n reservationId: string,\n options?: ReservationListRevisionsOptionalParams\n ): AsyncIterableIterator<ReservationResponse> {\n for await (const page of this.listRevisionsPagingPage(\n reservationOrderId,\n reservationId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List the reservations and the roll up counts of reservations group by provisioning states that the\n * user has access to in the current tenant.\n * @param options The options parameters.\n */\n public listAll(\n options?: ReservationListAllOptionalParams\n ): PagedAsyncIterableIterator<ReservationResponse> {\n const iter = this.listAllPagingAll(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.listAllPagingPage(options, settings);\n }\n };\n }\n\n private async *listAllPagingPage(\n options?: ReservationListAllOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ReservationResponse[]> {\n let result: ReservationListAllResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listAll(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._listAllNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listAllPagingAll(\n options?: ReservationListAllOptionalParams\n ): AsyncIterableIterator<ReservationResponse> {\n for await (const page of this.listAllPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Check whether the scopes from request is valid for `Reservation`.\n *\n * @param reservationOrderId Order Id of the reservation\n * @param reservationId Id of the reservation item\n * @param body Scopes to be checked for eligibility.\n * @param options The options parameters.\n */\n async beginAvailableScopes(\n reservationOrderId: string,\n reservationId: string,\n body: AvailableScopeRequest,\n options?: ReservationAvailableScopesOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<ReservationAvailableScopesResponse>,\n ReservationAvailableScopesResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ReservationAvailableScopesResponse> => {\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: { reservationOrderId, reservationId, body, options },\n spec: availableScopesOperationSpec\n });\n const poller = await createHttpPoller<\n ReservationAvailableScopesResponse,\n OperationState<ReservationAvailableScopesResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Check whether the scopes from request is valid for `Reservation`.\n *\n * @param reservationOrderId Order Id of the reservation\n * @param reservationId Id of the reservation item\n * @param body Scopes to be checked for eligibility.\n * @param options The options parameters.\n */\n async beginAvailableScopesAndWait(\n reservationOrderId: string,\n reservationId: string,\n body: AvailableScopeRequest,\n options?: ReservationAvailableScopesOptionalParams\n ): Promise<ReservationAvailableScopesResponse> {\n const poller = await this.beginAvailableScopes(\n reservationOrderId,\n reservationId,\n body,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Split a `Reservation` into two `Reservation`s with specified quantity distribution.\n * @param reservationOrderId Order Id of the reservation\n * @param body Information needed to Split a reservation item\n * @param options The options parameters.\n */\n async beginSplit(\n reservationOrderId: string,\n body: SplitRequest,\n options?: ReservationSplitOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<ReservationSplitResponse>,\n ReservationSplitResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ReservationSplitResponse> => {\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: { reservationOrderId, body, options },\n spec: splitOperationSpec\n });\n const poller = await createHttpPoller<\n ReservationSplitResponse,\n OperationState<ReservationSplitResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Split a `Reservation` into two `Reservation`s with specified quantity distribution.\n * @param reservationOrderId Order Id of the reservation\n * @param body Information needed to Split a reservation item\n * @param options The options parameters.\n */\n async beginSplitAndWait(\n reservationOrderId: string,\n body: SplitRequest,\n options?: ReservationSplitOptionalParams\n ): Promise<ReservationSplitResponse> {\n const poller = await this.beginSplit(reservationOrderId, body, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Merge the specified `Reservation`s into a new `Reservation`. The two `Reservation`s being merged\n * must have same properties.\n * @param reservationOrderId Order Id of the reservation\n * @param body Information needed for commercial request for a reservation\n * @param options The options parameters.\n */\n async beginMerge(\n reservationOrderId: string,\n body: MergeRequest,\n options?: ReservationMergeOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<ReservationMergeResponse>,\n ReservationMergeResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ReservationMergeResponse> => {\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: { reservationOrderId, body, options },\n spec: mergeOperationSpec\n });\n const poller = await createHttpPoller<\n ReservationMergeResponse,\n OperationState<ReservationMergeResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Merge the specified `Reservation`s into a new `Reservation`. The two `Reservation`s being merged\n * must have same properties.\n * @param reservationOrderId Order Id of the reservation\n * @param body Information needed for commercial request for a reservation\n * @param options The options parameters.\n */\n async beginMergeAndWait(\n reservationOrderId: string,\n body: MergeRequest,\n options?: ReservationMergeOptionalParams\n ): Promise<ReservationMergeResponse> {\n const poller = await this.beginMerge(reservationOrderId, body, options);\n return poller.pollUntilDone();\n }\n\n /**\n * List `Reservation`s within a single `ReservationOrder`.\n * @param reservationOrderId Order Id of the reservation\n * @param options The options parameters.\n */\n private _list(\n reservationOrderId: string,\n options?: ReservationListOptionalParams\n ): Promise<ReservationListResponse> {\n return this.client.sendOperationRequest(\n { reservationOrderId, options },\n listOperationSpec\n );\n }\n\n /**\n * Get specific `Reservation` details.\n * @param reservationOrderId Order Id of the reservation\n * @param reservationId Id of the reservation item\n * @param options The options parameters.\n */\n get(\n reservationOrderId: string,\n reservationId: string,\n options?: ReservationGetOptionalParams\n ): Promise<ReservationGetResponse> {\n return this.client.sendOperationRequest(\n { reservationOrderId, reservationId, options },\n getOperationSpec\n );\n }\n\n /**\n * Updates the applied scopes of the `Reservation`.\n * @param reservationOrderId Order Id of the reservation\n * @param reservationId Id of the reservation item\n * @param parameters Information needed to patch a reservation item\n * @param options The options parameters.\n */\n async beginUpdate(\n reservationOrderId: string,\n reservationId: string,\n parameters: Patch,\n options?: ReservationUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<ReservationUpdateResponse>,\n ReservationUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ReservationUpdateResponse> => {\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: { reservationOrderId, reservationId, parameters, options },\n spec: updateOperationSpec\n });\n const poller = await createHttpPoller<\n ReservationUpdateResponse,\n OperationState<ReservationUpdateResponse>\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 * Updates the applied scopes of the `Reservation`.\n * @param reservationOrderId Order Id of the reservation\n * @param reservationId Id of the reservation item\n * @param parameters Information needed to patch a reservation item\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n reservationOrderId: string,\n reservationId: string,\n parameters: Patch,\n options?: ReservationUpdateOptionalParams\n ): Promise<ReservationUpdateResponse> {\n const poller = await this.beginUpdate(\n reservationOrderId,\n reservationId,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Archiving a `Reservation` moves it to `Archived` state.\n * @param reservationOrderId Order Id of the reservation\n * @param reservationId Id of the reservation item\n * @param options The options parameters.\n */\n archive(\n reservationOrderId: string,\n reservationId: string,\n options?: ReservationArchiveOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { reservationOrderId, reservationId, options },\n archiveOperationSpec\n );\n }\n\n /**\n * Restores a `Reservation` to the state it was before archiving.\n *\n * @param reservationOrderId Order Id of the reservation\n * @param reservationId Id of the reservation item\n * @param options The options parameters.\n */\n unarchive(\n reservationOrderId: string,\n reservationId: string,\n options?: ReservationUnarchiveOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { reservationOrderId, reservationId, options },\n unarchiveOperationSpec\n );\n }\n\n /**\n * List of all the revisions for the `Reservation`.\n * @param reservationOrderId Order Id of the reservation\n * @param reservationId Id of the reservation item\n * @param options The options parameters.\n */\n private _listRevisions(\n reservationOrderId: string,\n reservationId: string,\n options?: ReservationListRevisionsOptionalParams\n ): Promise<ReservationListRevisionsResponse> {\n return this.client.sendOperationRequest(\n { reservationOrderId, reservationId, options },\n listRevisionsOperationSpec\n );\n }\n\n /**\n * List the reservations and the roll up counts of reservations group by provisioning states that the\n * user has access to in the current tenant.\n * @param options The options parameters.\n */\n private _listAll(\n options?: ReservationListAllOptionalParams\n ): Promise<ReservationListAllResponse> {\n return this.client.sendOperationRequest({ options }, listAllOperationSpec);\n }\n\n /**\n * ListNext\n * @param reservationOrderId Order Id of the reservation\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 reservationOrderId: string,\n nextLink: string,\n options?: ReservationListNextOptionalParams\n ): Promise<ReservationListNextResponse> {\n return this.client.sendOperationRequest(\n { reservationOrderId, nextLink, options },\n listNextOperationSpec\n );\n }\n\n /**\n * ListRevisionsNext\n * @param reservationOrderId Order Id of the reservation\n * @param reservationId Id of the reservation item\n * @param nextLink The nextLink from the previous successful call to the ListRevisions method.\n * @param options The options parameters.\n */\n private _listRevisionsNext(\n reservationOrderId: string,\n reservationId: string,\n nextLink: string,\n options?: ReservationListRevisionsNextOptionalParams\n ): Promise<ReservationListRevisionsNextResponse> {\n return this.client.sendOperationRequest(\n { reservationOrderId, reservationId, nextLink, options },\n listRevisionsNextOperationSpec\n );\n }\n\n /**\n * ListAllNext\n * @param nextLink The nextLink from the previous successful call to the ListAll method.\n * @param options The options parameters.\n */\n private _listAllNext(\n nextLink: string,\n options?: ReservationListAllNextOptionalParams\n ): Promise<ReservationListAllNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listAllNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst availableScopesOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/availableScopes\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailableScopeProperties\n },\n 201: {\n bodyMapper: Mappers.AvailableScopeProperties\n },\n 202: {\n bodyMapper: Mappers.AvailableScopeProperties\n },\n 204: {\n bodyMapper: Mappers.AvailableScopeProperties\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.body,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.reservationOrderId,\n Parameters.reservationId\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst splitOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/split\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"ReservationResponse\" }\n }\n }\n }\n },\n 201: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"ReservationResponse\" }\n }\n }\n }\n },\n 202: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"ReservationResponse\" }\n }\n }\n }\n },\n 204: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"ReservationResponse\" }\n }\n }\n }\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.body1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.reservationOrderId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst mergeOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/merge\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"ReservationResponse\" }\n }\n }\n }\n },\n 201: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"ReservationResponse\" }\n }\n }\n }\n },\n 202: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"ReservationResponse\" }\n }\n }\n }\n },\n 204: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"ReservationResponse\" }\n }\n }\n }\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.body2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.reservationOrderId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.reservationOrderId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationResponse\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [\n Parameters.$host,\n Parameters.reservationOrderId,\n Parameters.reservationId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationResponse\n },\n 201: {\n bodyMapper: Mappers.ReservationResponse\n },\n 202: {\n bodyMapper: Mappers.ReservationResponse\n },\n 204: {\n bodyMapper: Mappers.ReservationResponse\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.reservationOrderId,\n Parameters.reservationId\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst archiveOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/archive\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.reservationOrderId,\n Parameters.reservationId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst unarchiveOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/unarchive\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.reservationOrderId,\n Parameters.reservationId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listRevisionsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/revisions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.reservationOrderId,\n Parameters.reservationId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listAllOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Capacity/reservations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationsListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.orderby,\n Parameters.refreshSummary,\n Parameters.skiptoken,\n Parameters.selectedState,\n Parameters.take\n ],\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.ReservationList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.reservationOrderId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listRevisionsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.reservationOrderId,\n Parameters.reservationId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listAllNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationsListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -0,0 +1,67 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { ReservationOrder } from "../operationsInterfaces/index.js";
3
+ import { AzureReservationAPI } from "../azureReservationAPI.js";
4
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
5
+ import { ReservationOrderResponse, ReservationOrderListOptionalParams, PurchaseRequest, ReservationOrderCalculateOptionalParams, ReservationOrderCalculateResponse, ReservationOrderPurchaseOptionalParams, ReservationOrderPurchaseResponse, ReservationOrderGetOptionalParams, ReservationOrderGetResponse, ChangeDirectoryRequest, ReservationOrderChangeDirectoryOptionalParams, ReservationOrderChangeDirectoryResponse } from "../models/index.js";
6
+ /** Class containing ReservationOrder operations. */
7
+ export declare class ReservationOrderImpl implements ReservationOrder {
8
+ private readonly client;
9
+ /**
10
+ * Initialize a new instance of the class ReservationOrder class.
11
+ * @param client Reference to the service client
12
+ */
13
+ constructor(client: AzureReservationAPI);
14
+ /**
15
+ * List of all the `ReservationOrder`s that the user has access to in the current tenant.
16
+ * @param options The options parameters.
17
+ */
18
+ list(options?: ReservationOrderListOptionalParams): PagedAsyncIterableIterator<ReservationOrderResponse>;
19
+ private listPagingPage;
20
+ private listPagingAll;
21
+ /**
22
+ * Calculate price for placing a `ReservationOrder`.
23
+ * @param body Information needed for calculate or purchase reservation
24
+ * @param options The options parameters.
25
+ */
26
+ calculate(body: PurchaseRequest, options?: ReservationOrderCalculateOptionalParams): Promise<ReservationOrderCalculateResponse>;
27
+ /**
28
+ * List of all the `ReservationOrder`s that the user has access to in the current tenant.
29
+ * @param options The options parameters.
30
+ */
31
+ private _list;
32
+ /**
33
+ * Purchase `ReservationOrder` and create resource under the specified URI.
34
+ * @param reservationOrderId Order Id of the reservation
35
+ * @param body Information needed for calculate or purchase reservation
36
+ * @param options The options parameters.
37
+ */
38
+ beginPurchase(reservationOrderId: string, body: PurchaseRequest, options?: ReservationOrderPurchaseOptionalParams): Promise<SimplePollerLike<OperationState<ReservationOrderPurchaseResponse>, ReservationOrderPurchaseResponse>>;
39
+ /**
40
+ * Purchase `ReservationOrder` and create resource under the specified URI.
41
+ * @param reservationOrderId Order Id of the reservation
42
+ * @param body Information needed for calculate or purchase reservation
43
+ * @param options The options parameters.
44
+ */
45
+ beginPurchaseAndWait(reservationOrderId: string, body: PurchaseRequest, options?: ReservationOrderPurchaseOptionalParams): Promise<ReservationOrderPurchaseResponse>;
46
+ /**
47
+ * Get the details of the `ReservationOrder`.
48
+ * @param reservationOrderId Order Id of the reservation
49
+ * @param options The options parameters.
50
+ */
51
+ get(reservationOrderId: string, options?: ReservationOrderGetOptionalParams): Promise<ReservationOrderGetResponse>;
52
+ /**
53
+ * Change directory (tenant) of `ReservationOrder` and all `Reservation` under it to specified tenant
54
+ * id
55
+ * @param reservationOrderId Order Id of the reservation
56
+ * @param body Information needed to change directory of reservation order
57
+ * @param options The options parameters.
58
+ */
59
+ changeDirectory(reservationOrderId: string, body: ChangeDirectoryRequest, options?: ReservationOrderChangeDirectoryOptionalParams): Promise<ReservationOrderChangeDirectoryResponse>;
60
+ /**
61
+ * ListNext
62
+ * @param nextLink The nextLink from the previous successful call to the List method.
63
+ * @param options The options parameters.
64
+ */
65
+ private _listNext;
66
+ }
67
+ //# sourceMappingURL=reservationOrder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reservationOrder.d.ts","sourceRoot":"","sources":["../../../src/operations/reservationOrder.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAIpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACL,gBAAgB,EAChB,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,wBAAwB,EAExB,kCAAkC,EAElC,eAAe,EACf,uCAAuC,EACvC,iCAAiC,EACjC,sCAAsC,EACtC,gCAAgC,EAChC,iCAAiC,EACjC,2BAA2B,EAC3B,sBAAsB,EACtB,6CAA6C,EAC7C,uCAAuC,EAExC,MAAM,oBAAoB,CAAC;AAG5B,oDAAoD;AACpD,qBAAa,oBAAqB,YAAW,gBAAgB;IAC3D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsB;IAE7C;;;OAGG;gBACS,MAAM,EAAE,mBAAmB;IAIvC;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,kCAAkC,GAC3C,0BAA0B,CAAC,wBAAwB,CAAC;YAkBxC,cAAc;YAsBd,aAAa;IAQ5B;;;;OAIG;IACH,SAAS,CACP,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,uCAAuC,GAChD,OAAO,CAAC,iCAAiC,CAAC;IAO7C;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;;OAKG;IACG,aAAa,CACjB,kBAAkB,EAAE,MAAM,EAC1B,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,gCAAgC,CAAC,EAChD,gCAAgC,CACjC,CACF;IAyDD;;;;;OAKG;IACG,oBAAoB,CACxB,kBAAkB,EAAE,MAAM,EAC1B,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,gCAAgC,CAAC;IAK5C;;;;OAIG;IACH,GAAG,CACD,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,2BAA2B,CAAC;IAOvC;;;;;;OAMG;IACH,eAAe,CACb,kBAAkB,EAAE,MAAM,EAC1B,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,6CAA6C,GACtD,OAAO,CAAC,uCAAuC,CAAC;IAOnD;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
@@ -0,0 +1,296 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.ReservationOrderImpl = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const pagingHelper_js_1 = require("../pagingHelper.js");
13
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
14
+ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
15
+ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
+ const core_lro_1 = require("@azure/core-lro");
17
+ const lroImpl_js_1 = require("../lroImpl.js");
18
+ /// <reference lib="esnext.asynciterable" />
19
+ /** Class containing ReservationOrder operations. */
20
+ class ReservationOrderImpl {
21
+ /**
22
+ * Initialize a new instance of the class ReservationOrder class.
23
+ * @param client Reference to the service client
24
+ */
25
+ constructor(client) {
26
+ this.client = client;
27
+ }
28
+ /**
29
+ * List of all the `ReservationOrder`s that the user has access to in the current tenant.
30
+ * @param options The options parameters.
31
+ */
32
+ list(options) {
33
+ const iter = this.listPagingAll(options);
34
+ return {
35
+ next() {
36
+ return iter.next();
37
+ },
38
+ [Symbol.asyncIterator]() {
39
+ return this;
40
+ },
41
+ byPage: (settings) => {
42
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
43
+ throw new Error("maxPageSize is not supported by this operation.");
44
+ }
45
+ return this.listPagingPage(options, settings);
46
+ }
47
+ };
48
+ }
49
+ listPagingPage(options, settings) {
50
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
51
+ let result;
52
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
53
+ if (!continuationToken) {
54
+ result = yield tslib_1.__await(this._list(options));
55
+ let page = result.value || [];
56
+ continuationToken = result.nextLink;
57
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
58
+ yield yield tslib_1.__await(page);
59
+ }
60
+ while (continuationToken) {
61
+ result = yield tslib_1.__await(this._listNext(continuationToken, options));
62
+ continuationToken = result.nextLink;
63
+ let page = result.value || [];
64
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
65
+ yield yield tslib_1.__await(page);
66
+ }
67
+ });
68
+ }
69
+ listPagingAll(options) {
70
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
71
+ var _a, e_1, _b, _c;
72
+ try {
73
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
74
+ _c = _f.value;
75
+ _d = false;
76
+ const page = _c;
77
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
78
+ }
79
+ }
80
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
81
+ finally {
82
+ try {
83
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
84
+ }
85
+ finally { if (e_1) throw e_1.error; }
86
+ }
87
+ });
88
+ }
89
+ /**
90
+ * Calculate price for placing a `ReservationOrder`.
91
+ * @param body Information needed for calculate or purchase reservation
92
+ * @param options The options parameters.
93
+ */
94
+ calculate(body, options) {
95
+ return this.client.sendOperationRequest({ body, options }, calculateOperationSpec);
96
+ }
97
+ /**
98
+ * List of all the `ReservationOrder`s that the user has access to in the current tenant.
99
+ * @param options The options parameters.
100
+ */
101
+ _list(options) {
102
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
103
+ }
104
+ /**
105
+ * Purchase `ReservationOrder` and create resource under the specified URI.
106
+ * @param reservationOrderId Order Id of the reservation
107
+ * @param body Information needed for calculate or purchase reservation
108
+ * @param options The options parameters.
109
+ */
110
+ async beginPurchase(reservationOrderId, body, options) {
111
+ const directSendOperation = async (args, spec) => {
112
+ return this.client.sendOperationRequest(args, spec);
113
+ };
114
+ const sendOperationFn = async (args, spec) => {
115
+ var _a;
116
+ let currentRawResponse = undefined;
117
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
118
+ const callback = (rawResponse, flatResponse) => {
119
+ currentRawResponse = rawResponse;
120
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
121
+ };
122
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
123
+ const flatResponse = await directSendOperation(updatedArgs, spec);
124
+ return {
125
+ flatResponse,
126
+ rawResponse: {
127
+ statusCode: currentRawResponse.status,
128
+ body: currentRawResponse.parsedBody,
129
+ headers: currentRawResponse.headers.toJSON()
130
+ }
131
+ };
132
+ };
133
+ const lro = (0, lroImpl_js_1.createLroSpec)({
134
+ sendOperationFn,
135
+ args: { reservationOrderId, body, options },
136
+ spec: purchaseOperationSpec
137
+ });
138
+ const poller = await (0, core_lro_1.createHttpPoller)(lro, {
139
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
140
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
141
+ resourceLocationConfig: "location"
142
+ });
143
+ await poller.poll();
144
+ return poller;
145
+ }
146
+ /**
147
+ * Purchase `ReservationOrder` and create resource under the specified URI.
148
+ * @param reservationOrderId Order Id of the reservation
149
+ * @param body Information needed for calculate or purchase reservation
150
+ * @param options The options parameters.
151
+ */
152
+ async beginPurchaseAndWait(reservationOrderId, body, options) {
153
+ const poller = await this.beginPurchase(reservationOrderId, body, options);
154
+ return poller.pollUntilDone();
155
+ }
156
+ /**
157
+ * Get the details of the `ReservationOrder`.
158
+ * @param reservationOrderId Order Id of the reservation
159
+ * @param options The options parameters.
160
+ */
161
+ get(reservationOrderId, options) {
162
+ return this.client.sendOperationRequest({ reservationOrderId, options }, getOperationSpec);
163
+ }
164
+ /**
165
+ * Change directory (tenant) of `ReservationOrder` and all `Reservation` under it to specified tenant
166
+ * id
167
+ * @param reservationOrderId Order Id of the reservation
168
+ * @param body Information needed to change directory of reservation order
169
+ * @param options The options parameters.
170
+ */
171
+ changeDirectory(reservationOrderId, body, options) {
172
+ return this.client.sendOperationRequest({ reservationOrderId, body, options }, changeDirectoryOperationSpec);
173
+ }
174
+ /**
175
+ * ListNext
176
+ * @param nextLink The nextLink from the previous successful call to the List method.
177
+ * @param options The options parameters.
178
+ */
179
+ _listNext(nextLink, options) {
180
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
181
+ }
182
+ }
183
+ exports.ReservationOrderImpl = ReservationOrderImpl;
184
+ // Operation Specifications
185
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
186
+ const calculateOperationSpec = {
187
+ path: "/providers/Microsoft.Capacity/calculatePrice",
188
+ httpMethod: "POST",
189
+ responses: {
190
+ 200: {
191
+ bodyMapper: Mappers.CalculatePriceResponse
192
+ },
193
+ default: {
194
+ bodyMapper: Mappers.ErrorModel
195
+ }
196
+ },
197
+ requestBody: Parameters.body3,
198
+ queryParameters: [Parameters.apiVersion],
199
+ urlParameters: [Parameters.$host],
200
+ headerParameters: [Parameters.contentType, Parameters.accept],
201
+ mediaType: "json",
202
+ serializer
203
+ };
204
+ const listOperationSpec = {
205
+ path: "/providers/Microsoft.Capacity/reservationOrders",
206
+ httpMethod: "GET",
207
+ responses: {
208
+ 200: {
209
+ bodyMapper: Mappers.ReservationOrderList
210
+ },
211
+ default: {
212
+ bodyMapper: Mappers.ErrorModel
213
+ }
214
+ },
215
+ queryParameters: [Parameters.apiVersion],
216
+ urlParameters: [Parameters.$host],
217
+ headerParameters: [Parameters.accept],
218
+ serializer
219
+ };
220
+ const purchaseOperationSpec = {
221
+ path: "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}",
222
+ httpMethod: "PUT",
223
+ responses: {
224
+ 200: {
225
+ bodyMapper: Mappers.ReservationOrderResponse
226
+ },
227
+ 201: {
228
+ bodyMapper: Mappers.ReservationOrderResponse
229
+ },
230
+ 202: {
231
+ bodyMapper: Mappers.ReservationOrderResponse
232
+ },
233
+ 204: {
234
+ bodyMapper: Mappers.ReservationOrderResponse
235
+ },
236
+ default: {
237
+ bodyMapper: Mappers.ErrorModel
238
+ }
239
+ },
240
+ requestBody: Parameters.body3,
241
+ queryParameters: [Parameters.apiVersion],
242
+ urlParameters: [Parameters.$host, Parameters.reservationOrderId],
243
+ headerParameters: [Parameters.contentType, Parameters.accept],
244
+ mediaType: "json",
245
+ serializer
246
+ };
247
+ const getOperationSpec = {
248
+ path: "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}",
249
+ httpMethod: "GET",
250
+ responses: {
251
+ 200: {
252
+ bodyMapper: Mappers.ReservationOrderResponse
253
+ },
254
+ default: {
255
+ bodyMapper: Mappers.ErrorModel
256
+ }
257
+ },
258
+ queryParameters: [Parameters.apiVersion, Parameters.expand],
259
+ urlParameters: [Parameters.$host, Parameters.reservationOrderId],
260
+ headerParameters: [Parameters.accept],
261
+ serializer
262
+ };
263
+ const changeDirectoryOperationSpec = {
264
+ path: "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/changeDirectory",
265
+ httpMethod: "POST",
266
+ responses: {
267
+ 200: {
268
+ bodyMapper: Mappers.ChangeDirectoryResponse
269
+ },
270
+ default: {
271
+ bodyMapper: Mappers.ErrorModel
272
+ }
273
+ },
274
+ requestBody: Parameters.body4,
275
+ queryParameters: [Parameters.apiVersion],
276
+ urlParameters: [Parameters.$host, Parameters.reservationOrderId],
277
+ headerParameters: [Parameters.contentType, Parameters.accept],
278
+ mediaType: "json",
279
+ serializer
280
+ };
281
+ const listNextOperationSpec = {
282
+ path: "{nextLink}",
283
+ httpMethod: "GET",
284
+ responses: {
285
+ 200: {
286
+ bodyMapper: Mappers.ReservationOrderList
287
+ },
288
+ default: {
289
+ bodyMapper: Mappers.ErrorModel
290
+ }
291
+ },
292
+ urlParameters: [Parameters.$host, Parameters.nextLink],
293
+ headerParameters: [Parameters.accept],
294
+ serializer
295
+ };
296
+ //# sourceMappingURL=reservationOrder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reservationOrder.js","sourceRoot":"","sources":["../../../src/operations/reservationOrder.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAmB9C,4CAA4C;AAC5C,oDAAoD;AACpD,MAAa,oBAAoB;IAG/B;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAA4C;QAE5C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAA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AC7D,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;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;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 { ReservationOrder } 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 ReservationOrderResponse,\n ReservationOrderListNextOptionalParams,\n ReservationOrderListOptionalParams,\n ReservationOrderListResponse,\n PurchaseRequest,\n ReservationOrderCalculateOptionalParams,\n ReservationOrderCalculateResponse,\n ReservationOrderPurchaseOptionalParams,\n ReservationOrderPurchaseResponse,\n ReservationOrderGetOptionalParams,\n ReservationOrderGetResponse,\n ChangeDirectoryRequest,\n ReservationOrderChangeDirectoryOptionalParams,\n ReservationOrderChangeDirectoryResponse,\n ReservationOrderListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ReservationOrder operations. */\nexport class ReservationOrderImpl implements ReservationOrder {\n private readonly client: AzureReservationAPI;\n\n /**\n * Initialize a new instance of the class ReservationOrder class.\n * @param client Reference to the service client\n */\n constructor(client: AzureReservationAPI) {\n this.client = client;\n }\n\n /**\n * List of all the `ReservationOrder`s that the user has access to in the current tenant.\n * @param options The options parameters.\n */\n public list(\n options?: ReservationOrderListOptionalParams\n ): PagedAsyncIterableIterator<ReservationOrderResponse> {\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?: ReservationOrderListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ReservationOrderResponse[]> {\n let result: ReservationOrderListResponse;\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?: ReservationOrderListOptionalParams\n ): AsyncIterableIterator<ReservationOrderResponse> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Calculate price for placing a `ReservationOrder`.\n * @param body Information needed for calculate or purchase reservation\n * @param options The options parameters.\n */\n calculate(\n body: PurchaseRequest,\n options?: ReservationOrderCalculateOptionalParams\n ): Promise<ReservationOrderCalculateResponse> {\n return this.client.sendOperationRequest(\n { body, options },\n calculateOperationSpec\n );\n }\n\n /**\n * List of all the `ReservationOrder`s that the user has access to in the current tenant.\n * @param options The options parameters.\n */\n private _list(\n options?: ReservationOrderListOptionalParams\n ): Promise<ReservationOrderListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Purchase `ReservationOrder` and create resource under the specified URI.\n * @param reservationOrderId Order Id of the reservation\n * @param body Information needed for calculate or purchase reservation\n * @param options The options parameters.\n */\n async beginPurchase(\n reservationOrderId: string,\n body: PurchaseRequest,\n options?: ReservationOrderPurchaseOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<ReservationOrderPurchaseResponse>,\n ReservationOrderPurchaseResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ReservationOrderPurchaseResponse> => {\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: { reservationOrderId, body, options },\n spec: purchaseOperationSpec\n });\n const poller = await createHttpPoller<\n ReservationOrderPurchaseResponse,\n OperationState<ReservationOrderPurchaseResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Purchase `ReservationOrder` and create resource under the specified URI.\n * @param reservationOrderId Order Id of the reservation\n * @param body Information needed for calculate or purchase reservation\n * @param options The options parameters.\n */\n async beginPurchaseAndWait(\n reservationOrderId: string,\n body: PurchaseRequest,\n options?: ReservationOrderPurchaseOptionalParams\n ): Promise<ReservationOrderPurchaseResponse> {\n const poller = await this.beginPurchase(reservationOrderId, body, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Get the details of the `ReservationOrder`.\n * @param reservationOrderId Order Id of the reservation\n * @param options The options parameters.\n */\n get(\n reservationOrderId: string,\n options?: ReservationOrderGetOptionalParams\n ): Promise<ReservationOrderGetResponse> {\n return this.client.sendOperationRequest(\n { reservationOrderId, options },\n getOperationSpec\n );\n }\n\n /**\n * Change directory (tenant) of `ReservationOrder` and all `Reservation` under it to specified tenant\n * id\n * @param reservationOrderId Order Id of the reservation\n * @param body Information needed to change directory of reservation order\n * @param options The options parameters.\n */\n changeDirectory(\n reservationOrderId: string,\n body: ChangeDirectoryRequest,\n options?: ReservationOrderChangeDirectoryOptionalParams\n ): Promise<ReservationOrderChangeDirectoryResponse> {\n return this.client.sendOperationRequest(\n { reservationOrderId, body, options },\n changeDirectoryOperationSpec\n );\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?: ReservationOrderListNextOptionalParams\n ): Promise<ReservationOrderListNextResponse> {\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 calculateOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Capacity/calculatePrice\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CalculatePriceResponse\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.body3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Capacity/reservationOrders\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationOrderList\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 purchaseOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationOrderResponse\n },\n 201: {\n bodyMapper: Mappers.ReservationOrderResponse\n },\n 202: {\n bodyMapper: Mappers.ReservationOrderResponse\n },\n 204: {\n bodyMapper: Mappers.ReservationOrderResponse\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.body3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.reservationOrderId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationOrderResponse\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [Parameters.$host, Parameters.reservationOrderId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst changeDirectoryOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/changeDirectory\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChangeDirectoryResponse\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.body4,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.reservationOrderId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationOrderList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -0,0 +1,28 @@
1
+ import { Return } from "../operationsInterfaces/index.js";
2
+ import { AzureReservationAPI } from "../azureReservationAPI.js";
3
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
4
+ import { RefundRequest, ReturnPostOptionalParams, ReturnPostResponse } from "../models/index.js";
5
+ /** Class containing Return operations. */
6
+ export declare class ReturnImpl implements Return {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Return class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: AzureReservationAPI);
13
+ /**
14
+ * Return a reservation and get refund information.
15
+ * @param reservationOrderId Order Id of the reservation
16
+ * @param body Information needed for returning reservation.
17
+ * @param options The options parameters.
18
+ */
19
+ beginPost(reservationOrderId: string, body: RefundRequest, options?: ReturnPostOptionalParams): Promise<SimplePollerLike<OperationState<ReturnPostResponse>, ReturnPostResponse>>;
20
+ /**
21
+ * Return a reservation and get refund information.
22
+ * @param reservationOrderId Order Id of the reservation
23
+ * @param body Information needed for returning reservation.
24
+ * @param options The options parameters.
25
+ */
26
+ beginPostAndWait(reservationOrderId: string, body: RefundRequest, options?: ReturnPostOptionalParams): Promise<ReturnPostResponse>;
27
+ }
28
+ //# sourceMappingURL=return.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"return.d.ts","sourceRoot":"","sources":["../../../src/operations/return.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAI1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACL,gBAAgB,EAChB,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,aAAa,EACb,wBAAwB,EACxB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAE5B,0CAA0C;AAC1C,qBAAa,UAAW,YAAW,MAAM;IACvC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsB;IAE7C;;;OAGG;gBACS,MAAM,EAAE,mBAAmB;IAIvC;;;;;OAKG;IACG,SAAS,CACb,kBAAkB,EAAE,MAAM,EAC1B,IAAI,EAAE,aAAa,EACnB,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CACR,gBAAgB,CAAC,cAAc,CAAC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC,CACzE;IAyDD;;;;;OAKG;IACG,gBAAgB,CACpB,kBAAkB,EAAE,MAAM,EAC1B,IAAI,EAAE,aAAa,EACnB,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,kBAAkB,CAAC;CAI/B"}