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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,104 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import * as coreClient from "@azure/core-client";
9
+ import * as Mappers from "../models/mappers.js";
10
+ import * as Parameters from "../models/parameters.js";
11
+ import { createHttpPoller } from "@azure/core-lro";
12
+ import { createLroSpec } from "../lroImpl.js";
13
+ /** Class containing Exchange operations. */
14
+ export class ExchangeImpl {
15
+ /**
16
+ * Initialize a new instance of the class Exchange class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.
24
+ *
25
+ * @param body Request containing the refunds and purchases that need to be executed.
26
+ * @param options The options parameters.
27
+ */
28
+ async beginPost(body, options) {
29
+ const directSendOperation = async (args, spec) => {
30
+ return this.client.sendOperationRequest(args, spec);
31
+ };
32
+ const sendOperationFn = async (args, spec) => {
33
+ var _a;
34
+ let currentRawResponse = undefined;
35
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
36
+ const callback = (rawResponse, flatResponse) => {
37
+ currentRawResponse = rawResponse;
38
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
39
+ };
40
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
41
+ const flatResponse = await directSendOperation(updatedArgs, spec);
42
+ return {
43
+ flatResponse,
44
+ rawResponse: {
45
+ statusCode: currentRawResponse.status,
46
+ body: currentRawResponse.parsedBody,
47
+ headers: currentRawResponse.headers.toJSON()
48
+ }
49
+ };
50
+ };
51
+ const lro = createLroSpec({
52
+ sendOperationFn,
53
+ args: { body, options },
54
+ spec: postOperationSpec
55
+ });
56
+ const poller = await createHttpPoller(lro, {
57
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
58
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
59
+ resourceLocationConfig: "azure-async-operation"
60
+ });
61
+ await poller.poll();
62
+ return poller;
63
+ }
64
+ /**
65
+ * Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.
66
+ *
67
+ * @param body Request containing the refunds and purchases that need to be executed.
68
+ * @param options The options parameters.
69
+ */
70
+ async beginPostAndWait(body, options) {
71
+ const poller = await this.beginPost(body, options);
72
+ return poller.pollUntilDone();
73
+ }
74
+ }
75
+ // Operation Specifications
76
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
77
+ const postOperationSpec = {
78
+ path: "/providers/Microsoft.Capacity/exchange",
79
+ httpMethod: "POST",
80
+ responses: {
81
+ 200: {
82
+ bodyMapper: Mappers.ExchangeOperationResultResponse
83
+ },
84
+ 201: {
85
+ bodyMapper: Mappers.ExchangeOperationResultResponse
86
+ },
87
+ 202: {
88
+ bodyMapper: Mappers.ExchangeOperationResultResponse
89
+ },
90
+ 204: {
91
+ bodyMapper: Mappers.ExchangeOperationResultResponse
92
+ },
93
+ default: {
94
+ bodyMapper: Mappers.ErrorModel
95
+ }
96
+ },
97
+ requestBody: Parameters.body8,
98
+ queryParameters: [Parameters.apiVersion],
99
+ urlParameters: [Parameters.$host],
100
+ headerParameters: [Parameters.contentType, Parameters.accept],
101
+ mediaType: "json",
102
+ serializer
103
+ };
104
+ //# sourceMappingURL=exchange.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exchange.js","sourceRoot":"","sources":["../../../src/operations/exchange.ts"],"names":[],"mappings":"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","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { Exchange } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureReservationAPI } from \"../azureReservationAPI.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n ExchangeRequest,\n ExchangePostOptionalParams,\n ExchangePostResponse\n} from \"../models/index.js\";\n\n/** Class containing Exchange operations. */\nexport class ExchangeImpl implements Exchange {\n private readonly client: AzureReservationAPI;\n\n /**\n * Initialize a new instance of the class Exchange class.\n * @param client Reference to the service client\n */\n constructor(client: AzureReservationAPI) {\n this.client = client;\n }\n\n /**\n * Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.\n *\n * @param body Request containing the refunds and purchases that need to be executed.\n * @param options The options parameters.\n */\n async beginPost(\n body: ExchangeRequest,\n options?: ExchangePostOptionalParams\n ): Promise<\n SimplePollerLike<OperationState<ExchangePostResponse>, ExchangePostResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ExchangePostResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { body, options },\n spec: postOperationSpec\n });\n const poller = await createHttpPoller<\n ExchangePostResponse,\n OperationState<ExchangePostResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.\n *\n * @param body Request containing the refunds and purchases that need to be executed.\n * @param options The options parameters.\n */\n async beginPostAndWait(\n body: ExchangeRequest,\n options?: ExchangePostOptionalParams\n ): Promise<ExchangePostResponse> {\n const poller = await this.beginPost(body, options);\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst postOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Capacity/exchange\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ExchangeOperationResultResponse\n },\n 201: {\n bodyMapper: Mappers.ExchangeOperationResultResponse\n },\n 202: {\n bodyMapper: Mappers.ExchangeOperationResultResponse\n },\n 204: {\n bodyMapper: Mappers.ExchangeOperationResultResponse\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.body8,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\n"]}
@@ -0,0 +1,10 @@
1
+ export * from "./reservation.js";
2
+ export * from "./reservationOrder.js";
3
+ export * from "./operation.js";
4
+ export * from "./calculateRefund.js";
5
+ export * from "./return.js";
6
+ export * from "./calculateExchange.js";
7
+ export * from "./exchange.js";
8
+ export * from "./quota.js";
9
+ export * from "./quotaRequestStatus.js";
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export * from "./reservation.js";
9
+ export * from "./reservationOrder.js";
10
+ export * from "./operation.js";
11
+ export * from "./calculateRefund.js";
12
+ export * from "./return.js";
13
+ export * from "./calculateExchange.js";
14
+ export * from "./exchange.js";
15
+ export * from "./quota.js";
16
+ export * from "./quotaRequestStatus.js";
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./reservation.js\";\nexport * from \"./reservationOrder.js\";\nexport * from \"./operation.js\";\nexport * from \"./calculateRefund.js\";\nexport * from \"./return.js\";\nexport * from \"./calculateExchange.js\";\nexport * from \"./exchange.js\";\nexport * from \"./quota.js\";\nexport * from \"./quotaRequestStatus.js\";\n"]}
@@ -0,0 +1,32 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Operation } from "../operationsInterfaces/index.js";
3
+ import { AzureReservationAPI } from "../azureReservationAPI.js";
4
+ import { OperationResponse, OperationListOptionalParams } from "../models/index.js";
5
+ /** Class containing Operation operations. */
6
+ export declare class OperationImpl implements Operation {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Operation class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: AzureReservationAPI);
13
+ /**
14
+ * List all the operations.
15
+ * @param options The options parameters.
16
+ */
17
+ list(options?: OperationListOptionalParams): PagedAsyncIterableIterator<OperationResponse>;
18
+ private listPagingPage;
19
+ private listPagingAll;
20
+ /**
21
+ * List all the operations.
22
+ * @param options The options parameters.
23
+ */
24
+ private _list;
25
+ /**
26
+ * ListNext
27
+ * @param nextLink The nextLink from the previous successful call to the List method.
28
+ * @param options The options parameters.
29
+ */
30
+ private _listNext;
31
+ }
32
+ //# sourceMappingURL=operation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../../src/operations/operation.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAI7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACL,iBAAiB,EAEjB,2BAA2B,EAG5B,MAAM,oBAAoB,CAAC;AAG5B,6CAA6C;AAC7C,qBAAa,aAAc,YAAW,SAAS;IAC7C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsB;IAE7C;;;OAGG;gBACS,MAAM,EAAE,mBAAmB;IAIvC;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,2BAA2B,GACpC,0BAA0B,CAAC,iBAAiB,CAAC;YAkBjC,cAAc;YAsBd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
@@ -0,0 +1,133 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import { setContinuationToken } from "../pagingHelper.js";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers.js";
12
+ import * as Parameters from "../models/parameters.js";
13
+ /// <reference lib="esnext.asynciterable" />
14
+ /** Class containing Operation operations. */
15
+ export class OperationImpl {
16
+ /**
17
+ * Initialize a new instance of the class Operation class.
18
+ * @param client Reference to the service client
19
+ */
20
+ constructor(client) {
21
+ this.client = client;
22
+ }
23
+ /**
24
+ * List all the operations.
25
+ * @param options The options parameters.
26
+ */
27
+ list(options) {
28
+ const iter = this.listPagingAll(options);
29
+ return {
30
+ next() {
31
+ return iter.next();
32
+ },
33
+ [Symbol.asyncIterator]() {
34
+ return this;
35
+ },
36
+ byPage: (settings) => {
37
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
38
+ throw new Error("maxPageSize is not supported by this operation.");
39
+ }
40
+ return this.listPagingPage(options, settings);
41
+ }
42
+ };
43
+ }
44
+ listPagingPage(options, settings) {
45
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
46
+ let result;
47
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
48
+ if (!continuationToken) {
49
+ result = yield __await(this._list(options));
50
+ let page = result.value || [];
51
+ continuationToken = result.nextLink;
52
+ setContinuationToken(page, continuationToken);
53
+ yield yield __await(page);
54
+ }
55
+ while (continuationToken) {
56
+ result = yield __await(this._listNext(continuationToken, options));
57
+ continuationToken = result.nextLink;
58
+ let page = result.value || [];
59
+ setContinuationToken(page, continuationToken);
60
+ yield yield __await(page);
61
+ }
62
+ });
63
+ }
64
+ listPagingAll(options) {
65
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
66
+ var _a, e_1, _b, _c;
67
+ try {
68
+ for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
69
+ _c = _f.value;
70
+ _d = false;
71
+ const page = _c;
72
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
73
+ }
74
+ }
75
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
76
+ finally {
77
+ try {
78
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
79
+ }
80
+ finally { if (e_1) throw e_1.error; }
81
+ }
82
+ });
83
+ }
84
+ /**
85
+ * List all the operations.
86
+ * @param options The options parameters.
87
+ */
88
+ _list(options) {
89
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
90
+ }
91
+ /**
92
+ * ListNext
93
+ * @param nextLink The nextLink from the previous successful call to the List method.
94
+ * @param options The options parameters.
95
+ */
96
+ _listNext(nextLink, options) {
97
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
98
+ }
99
+ }
100
+ // Operation Specifications
101
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
102
+ const listOperationSpec = {
103
+ path: "/providers/Microsoft.Capacity/operations",
104
+ httpMethod: "GET",
105
+ responses: {
106
+ 200: {
107
+ bodyMapper: Mappers.OperationList
108
+ },
109
+ default: {
110
+ bodyMapper: Mappers.ErrorModel
111
+ }
112
+ },
113
+ queryParameters: [Parameters.apiVersion],
114
+ urlParameters: [Parameters.$host],
115
+ headerParameters: [Parameters.accept],
116
+ serializer
117
+ };
118
+ const listNextOperationSpec = {
119
+ path: "{nextLink}",
120
+ httpMethod: "GET",
121
+ responses: {
122
+ 200: {
123
+ bodyMapper: Mappers.OperationList
124
+ },
125
+ default: {
126
+ bodyMapper: Mappers.ErrorModel
127
+ }
128
+ },
129
+ urlParameters: [Parameters.$host, Parameters.nextLink],
130
+ headerParameters: [Parameters.accept],
131
+ serializer
132
+ };
133
+ //# sourceMappingURL=operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation.js","sourceRoot":"","sources":["../../../src/operations/operation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,6CAA6C;AAC7C,MAAM,OAAO,aAAa;IAGxB;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAqC;QAErC,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,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAAqC,EACrC,QAAuB;;YAEvB,IAAI,MAA6B,CAAC;YAClC,IAAI,iBAAiB,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,iBAAiB,CAAC;YACpD,IAAI,CAAC,iBAAiB,EAAE,CAAC;gBACvB,MAAM,GAAG,cAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA,CAAC;gBACnC,IAAI,IAAI,GAAG,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC;gBAC9B,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CAAC;gBACpC,oBAAoB,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;gBAC9C,oBAAM,IAAI,CAAA,CAAC;YACb,CAAC;YACD,OAAO,iBAAiB,EAAE,CAAC;gBACzB,MAAM,GAAG,cAAM,IAAI,CAAC,SAAS,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAA,CAAC;gBAC1D,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CAAC;gBACpC,IAAI,IAAI,GAAG,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC;gBAC9B,oBAAoB,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;gBAC9C,oBAAM,IAAI,CAAA,CAAC;YACb,CAAC;QACH,CAAC;KAAA;IAEc,aAAa,CAC1B,OAAqC;;;;gBAErC,KAAyB,eAAA,KAAA,cAAA,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAA,IAAA,+DAAE,CAAC;oBAA/B,cAA4B;oBAA5B,WAA4B;oBAA1C,MAAM,IAAI,KAAA,CAAA;oBACnB,cAAA,KAAK,CAAC,CAAC,iBAAA,cAAA,IAAI,CAAA,CAAA,CAAA,CAAC;gBACd,CAAC;;;;;;;;;QACH,CAAC;KAAA;IAED;;;OAGG;IACK,KAAK,CACX,OAAqC;QAErC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC1E,CAAC;IAED;;;;OAIG;IACK,SAAS,CACf,QAAgB,EAChB,OAAyC;QAEzC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,OAAO,EAAE,EACrB,qBAAqB,CACtB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,0CAA0C;IAChD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Operation } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureReservationAPI } from \"../azureReservationAPI.js\";\nimport {\n OperationResponse,\n OperationListNextOptionalParams,\n OperationListOptionalParams,\n OperationListResponse,\n OperationListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operation operations. */\nexport class OperationImpl implements Operation {\n private readonly client: AzureReservationAPI;\n\n /**\n * Initialize a new instance of the class Operation class.\n * @param client Reference to the service client\n */\n constructor(client: AzureReservationAPI) {\n this.client = client;\n }\n\n /**\n * List all the operations.\n * @param options The options parameters.\n */\n public list(\n options?: OperationListOptionalParams\n ): PagedAsyncIterableIterator<OperationResponse> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: OperationListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<OperationResponse[]> {\n let result: OperationListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: OperationListOptionalParams\n ): AsyncIterableIterator<OperationResponse> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List all the operations.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationListOptionalParams\n ): Promise<OperationListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationListNextOptionalParams\n ): Promise<OperationListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Capacity/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -0,0 +1,121 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Quota } from "../operationsInterfaces/index.js";
3
+ import { AzureReservationAPI } from "../azureReservationAPI.js";
4
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
5
+ import { CurrentQuotaLimitBase, QuotaListOptionalParams, QuotaGetOptionalParams, QuotaGetResponse, QuotaCreateOrUpdateOptionalParams, QuotaCreateOrUpdateResponse, QuotaUpdateOptionalParams, QuotaUpdateResponse } from "../models/index.js";
6
+ /** Class containing Quota operations. */
7
+ export declare class QuotaImpl implements Quota {
8
+ private readonly client;
9
+ /**
10
+ * Initialize a new instance of the class Quota class.
11
+ * @param client Reference to the service client
12
+ */
13
+ constructor(client: AzureReservationAPI);
14
+ /**
15
+ * Gets a list of current quotas (service limits) and usage for all resources. The response from the
16
+ * list quota operation can be leveraged to request quota updates.
17
+ * @param subscriptionId Azure subscription ID.
18
+ * @param providerId Azure resource provider ID.
19
+ * @param location Azure region.
20
+ * @param options The options parameters.
21
+ */
22
+ list(subscriptionId: string, providerId: string, location: string, options?: QuotaListOptionalParams): PagedAsyncIterableIterator<CurrentQuotaLimitBase>;
23
+ private listPagingPage;
24
+ private listPagingAll;
25
+ /**
26
+ * Get the current quota (service limit) and usage of a resource. You can use the response from the GET
27
+ * operation to submit quota update request.
28
+ * @param subscriptionId Azure subscription ID.
29
+ * @param providerId Azure resource provider ID.
30
+ * @param location Azure region.
31
+ * @param resourceName The resource name for a resource provider, such as SKU name for
32
+ * Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices
33
+ * @param options The options parameters.
34
+ */
35
+ get(subscriptionId: string, providerId: string, location: string, resourceName: string, options?: QuotaGetOptionalParams): Promise<QuotaGetResponse>;
36
+ /**
37
+ * Create or update the quota (service limits) of a resource to the requested value.
38
+ * Steps:
39
+ * 1. Make the Get request to get the quota information for specific resource.
40
+ * 2. To increase the quota, update the limit field in the response from Get request to new value.
41
+ * 3. Submit the JSON to the quota request API to update the quota.
42
+ * The Create quota request may be constructed as follows. The PUT operation can be used to update
43
+ * the quota.
44
+ * @param subscriptionId Azure subscription ID.
45
+ * @param providerId Azure resource provider ID.
46
+ * @param location Azure region.
47
+ * @param resourceName The resource name for a resource provider, such as SKU name for
48
+ * Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices
49
+ * @param createQuotaRequest Quota requests payload.
50
+ * @param options The options parameters.
51
+ */
52
+ beginCreateOrUpdate(subscriptionId: string, providerId: string, location: string, resourceName: string, createQuotaRequest: CurrentQuotaLimitBase, options?: QuotaCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<QuotaCreateOrUpdateResponse>, QuotaCreateOrUpdateResponse>>;
53
+ /**
54
+ * Create or update the quota (service limits) of a resource to the requested value.
55
+ * Steps:
56
+ * 1. Make the Get request to get the quota information for specific resource.
57
+ * 2. To increase the quota, update the limit field in the response from Get request to new value.
58
+ * 3. Submit the JSON to the quota request API to update the quota.
59
+ * The Create quota request may be constructed as follows. The PUT operation can be used to update
60
+ * the quota.
61
+ * @param subscriptionId Azure subscription ID.
62
+ * @param providerId Azure resource provider ID.
63
+ * @param location Azure region.
64
+ * @param resourceName The resource name for a resource provider, such as SKU name for
65
+ * Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices
66
+ * @param createQuotaRequest Quota requests payload.
67
+ * @param options The options parameters.
68
+ */
69
+ beginCreateOrUpdateAndWait(subscriptionId: string, providerId: string, location: string, resourceName: string, createQuotaRequest: CurrentQuotaLimitBase, options?: QuotaCreateOrUpdateOptionalParams): Promise<QuotaCreateOrUpdateResponse>;
70
+ /**
71
+ * Update the quota (service limits) of this resource to the requested value.
72
+ * • To get the quota information for specific resource, send a GET request.
73
+ * • To increase the quota, update the limit field from the GET response to a new value.
74
+ * • To update the quota value, submit the JSON response to the quota request API to update the
75
+ * quota.
76
+ * • To update the quota. use the PATCH operation.
77
+ * @param subscriptionId Azure subscription ID.
78
+ * @param providerId Azure resource provider ID.
79
+ * @param location Azure region.
80
+ * @param resourceName The resource name for a resource provider, such as SKU name for
81
+ * Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices
82
+ * @param createQuotaRequest Payload for the quota request.
83
+ * @param options The options parameters.
84
+ */
85
+ beginUpdate(subscriptionId: string, providerId: string, location: string, resourceName: string, createQuotaRequest: CurrentQuotaLimitBase, options?: QuotaUpdateOptionalParams): Promise<SimplePollerLike<OperationState<QuotaUpdateResponse>, QuotaUpdateResponse>>;
86
+ /**
87
+ * Update the quota (service limits) of this resource to the requested value.
88
+ * • To get the quota information for specific resource, send a GET request.
89
+ * • To increase the quota, update the limit field from the GET response to a new value.
90
+ * • To update the quota value, submit the JSON response to the quota request API to update the
91
+ * quota.
92
+ * • To update the quota. use the PATCH operation.
93
+ * @param subscriptionId Azure subscription ID.
94
+ * @param providerId Azure resource provider ID.
95
+ * @param location Azure region.
96
+ * @param resourceName The resource name for a resource provider, such as SKU name for
97
+ * Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices
98
+ * @param createQuotaRequest Payload for the quota request.
99
+ * @param options The options parameters.
100
+ */
101
+ beginUpdateAndWait(subscriptionId: string, providerId: string, location: string, resourceName: string, createQuotaRequest: CurrentQuotaLimitBase, options?: QuotaUpdateOptionalParams): Promise<QuotaUpdateResponse>;
102
+ /**
103
+ * Gets a list of current quotas (service limits) and usage for all resources. The response from the
104
+ * list quota operation can be leveraged to request quota updates.
105
+ * @param subscriptionId Azure subscription ID.
106
+ * @param providerId Azure resource provider ID.
107
+ * @param location Azure region.
108
+ * @param options The options parameters.
109
+ */
110
+ private _list;
111
+ /**
112
+ * ListNext
113
+ * @param subscriptionId Azure subscription ID.
114
+ * @param providerId Azure resource provider ID.
115
+ * @param location Azure region.
116
+ * @param nextLink The nextLink from the previous successful call to the List method.
117
+ * @param options The options parameters.
118
+ */
119
+ private _listNext;
120
+ }
121
+ //# sourceMappingURL=quota.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quota.d.ts","sourceRoot":"","sources":["../../../src/operations/quota.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAIzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACL,gBAAgB,EAChB,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,qBAAqB,EAErB,uBAAuB,EAEvB,sBAAsB,EACtB,gBAAgB,EAChB,iCAAiC,EACjC,2BAA2B,EAC3B,yBAAyB,EACzB,mBAAmB,EAEpB,MAAM,oBAAoB,CAAC;AAG5B,yCAAyC;AACzC,qBAAa,SAAU,YAAW,KAAK;IACrC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsB;IAE7C;;;OAGG;gBACS,MAAM,EAAE,mBAAmB;IAIvC;;;;;;;OAOG;IACI,IAAI,CACT,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,uBAAuB,GAChC,0BAA0B,CAAC,qBAAqB,CAAC;YA6BrC,cAAc;YA+Bd,aAAa;IAgB5B;;;;;;;;;OASG;IACH,GAAG,CACD,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,sBAAsB,GAC/B,OAAO,CAAC,gBAAgB,CAAC;IAO5B;;;;;;;;;;;;;;;OAeG;IACG,mBAAmB,CACvB,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,EACpB,kBAAkB,EAAE,qBAAqB,EACzC,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,2BAA2B,CAAC,EAC3C,2BAA2B,CAC5B,CACF;IAgED;;;;;;;;;;;;;;;OAeG;IACG,0BAA0B,CAC9B,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,EACpB,kBAAkB,EAAE,qBAAqB,EACzC,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,2BAA2B,CAAC;IAYvC;;;;;;;;;;;;;;OAcG;IACG,WAAW,CACf,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,EACpB,kBAAkB,EAAE,qBAAqB,EACzC,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CACR,gBAAgB,CAAC,cAAc,CAAC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC,CAC3E;IAgED;;;;;;;;;;;;;;OAcG;IACG,kBAAkB,CACtB,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,EACpB,kBAAkB,EAAE,qBAAqB,EACzC,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC;IAY/B;;;;;;;OAOG;IACH,OAAO,CAAC,KAAK;IAYb;;;;;;;OAOG;IACH,OAAO,CAAC,SAAS;CAYlB"}