@azure/arm-commitmentplans 2.0.0-beta.2 → 2.0.0-beta.3

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 (355) hide show
  1. package/CHANGELOG.md +6 -4
  2. package/LICENSE +4 -4
  3. package/README.md +30 -20
  4. package/{dist-esm/src → dist/browser}/azureMLCommitmentPlansManagementClient.d.ts +4 -2
  5. package/dist/browser/azureMLCommitmentPlansManagementClient.d.ts.map +1 -0
  6. package/dist/browser/azureMLCommitmentPlansManagementClient.js +114 -0
  7. package/dist/browser/azureMLCommitmentPlansManagementClient.js.map +1 -0
  8. package/dist/browser/index.d.ts +5 -0
  9. package/dist/browser/index.d.ts.map +1 -0
  10. package/{dist-esm/src → dist/browser}/index.js +4 -3
  11. package/dist/browser/index.js.map +1 -0
  12. package/{dist-esm/src → dist/browser}/models/index.d.ts +29 -22
  13. package/{dist-esm/src → dist/browser}/models/index.d.ts.map +1 -1
  14. package/{dist-esm/src → dist/browser}/models/index.js +7 -0
  15. package/dist/browser/models/index.js.map +1 -0
  16. package/{dist-esm/src → dist/browser}/models/mappers.js +16 -7
  17. package/dist/browser/models/mappers.js.map +1 -0
  18. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  19. package/dist/browser/models/parameters.js.map +1 -0
  20. package/{dist-esm/src → dist/browser}/operations/commitmentAssociations.d.ts +3 -3
  21. package/dist/browser/operations/commitmentAssociations.d.ts.map +1 -0
  22. package/{dist-esm/src → dist/browser}/operations/commitmentAssociations.js +30 -33
  23. package/dist/browser/operations/commitmentAssociations.js.map +1 -0
  24. package/{dist-esm/src → dist/browser}/operations/commitmentPlans.d.ts +3 -3
  25. package/dist/browser/operations/commitmentPlans.d.ts.map +1 -0
  26. package/{dist-esm/src → dist/browser}/operations/commitmentPlans.js +56 -63
  27. package/dist/browser/operations/commitmentPlans.js.map +1 -0
  28. package/dist/browser/operations/index.d.ts +6 -0
  29. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  30. package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +5 -5
  31. package/dist/browser/operations/index.js.map +1 -0
  32. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  33. package/dist/browser/operations/operations.d.ts.map +1 -0
  34. package/{dist-esm/src → dist/browser}/operations/operations.js +16 -27
  35. package/dist/browser/operations/operations.js.map +1 -0
  36. package/{dist-esm/src → dist/browser}/operations/skus.d.ts +3 -3
  37. package/dist/browser/operations/skus.d.ts.map +1 -0
  38. package/{dist-esm/src → dist/browser}/operations/skus.js +16 -27
  39. package/dist/browser/operations/skus.js.map +1 -0
  40. package/{dist-esm/src → dist/browser}/operations/usageHistory.d.ts +3 -3
  41. package/dist/browser/operations/usageHistory.d.ts.map +1 -0
  42. package/{dist-esm/src → dist/browser}/operations/usageHistory.js +30 -33
  43. package/dist/browser/operations/usageHistory.js.map +1 -0
  44. package/{dist-esm/src → dist/browser}/operationsInterfaces/commitmentAssociations.d.ts +1 -1
  45. package/dist/browser/operationsInterfaces/commitmentAssociations.d.ts.map +1 -0
  46. package/dist/browser/operationsInterfaces/commitmentAssociations.js.map +1 -0
  47. package/{dist-esm/src → dist/browser}/operationsInterfaces/commitmentPlans.d.ts +1 -1
  48. package/dist/browser/operationsInterfaces/commitmentPlans.d.ts.map +1 -0
  49. package/dist/browser/operationsInterfaces/commitmentPlans.js.map +1 -0
  50. package/dist/browser/operationsInterfaces/index.d.ts +6 -0
  51. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  52. package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +5 -5
  53. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  54. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  55. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
  56. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  57. package/{dist-esm/src → dist/browser}/operationsInterfaces/skus.d.ts +1 -1
  58. package/{dist-esm/src → dist/browser}/operationsInterfaces/skus.d.ts.map +1 -1
  59. package/dist/browser/operationsInterfaces/skus.js.map +1 -0
  60. package/{dist-esm/src → dist/browser}/operationsInterfaces/usageHistory.d.ts +1 -1
  61. package/dist/browser/operationsInterfaces/usageHistory.d.ts.map +1 -0
  62. package/dist/browser/operationsInterfaces/usageHistory.js.map +1 -0
  63. package/dist/browser/package.json +3 -0
  64. package/dist/browser/pagingHelper.d.ts +13 -0
  65. package/dist/browser/pagingHelper.d.ts.map +1 -0
  66. package/dist/browser/pagingHelper.js +30 -0
  67. package/dist/browser/pagingHelper.js.map +1 -0
  68. package/dist/commonjs/azureMLCommitmentPlansManagementClient.d.ts +24 -0
  69. package/dist/commonjs/azureMLCommitmentPlansManagementClient.d.ts.map +1 -0
  70. package/dist/commonjs/azureMLCommitmentPlansManagementClient.js +119 -0
  71. package/dist/commonjs/azureMLCommitmentPlansManagementClient.js.map +1 -0
  72. package/dist/commonjs/index.d.ts +5 -0
  73. package/dist/commonjs/index.d.ts.map +1 -0
  74. package/dist/commonjs/index.js +19 -0
  75. package/dist/commonjs/index.js.map +1 -0
  76. package/{types/arm-commitmentplans.d.ts → dist/commonjs/models/index.d.ts} +529 -706
  77. package/dist/commonjs/models/index.d.ts.map +1 -0
  78. package/dist/commonjs/models/index.js +37 -0
  79. package/dist/commonjs/models/index.js.map +1 -0
  80. package/dist/commonjs/models/mappers.d.ts +24 -0
  81. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  82. package/dist/commonjs/models/mappers.js +753 -0
  83. package/dist/commonjs/models/mappers.js.map +1 -0
  84. package/dist/commonjs/models/parameters.d.ts +15 -0
  85. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  86. package/dist/commonjs/models/parameters.js +128 -0
  87. package/dist/commonjs/models/parameters.js.map +1 -0
  88. package/dist/commonjs/operations/commitmentAssociations.d.ts +55 -0
  89. package/dist/commonjs/operations/commitmentAssociations.d.ts.map +1 -0
  90. package/dist/commonjs/operations/commitmentAssociations.js +205 -0
  91. package/dist/commonjs/operations/commitmentAssociations.js.map +1 -0
  92. package/dist/commonjs/operations/commitmentPlans.d.ts +84 -0
  93. package/dist/commonjs/operations/commitmentPlans.d.ts.map +1 -0
  94. package/dist/commonjs/operations/commitmentPlans.js +330 -0
  95. package/dist/commonjs/operations/commitmentPlans.js.map +1 -0
  96. package/dist/commonjs/operations/index.d.ts +6 -0
  97. package/dist/commonjs/operations/index.d.ts.map +1 -0
  98. package/dist/commonjs/operations/index.js +16 -0
  99. package/dist/commonjs/operations/index.js.map +1 -0
  100. package/dist/commonjs/operations/operations.d.ts +26 -0
  101. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  102. package/dist/commonjs/operations/operations.js +81 -0
  103. package/dist/commonjs/operations/operations.js.map +1 -0
  104. package/dist/commonjs/operations/skus.d.ts +26 -0
  105. package/dist/commonjs/operations/skus.d.ts.map +1 -0
  106. package/dist/commonjs/operations/skus.js +81 -0
  107. package/dist/commonjs/operations/skus.js.map +1 -0
  108. package/dist/commonjs/operations/usageHistory.d.ts +38 -0
  109. package/dist/commonjs/operations/usageHistory.d.ts.map +1 -0
  110. package/dist/commonjs/operations/usageHistory.js +133 -0
  111. package/dist/commonjs/operations/usageHistory.js.map +1 -0
  112. package/dist/commonjs/operationsInterfaces/commitmentAssociations.d.ts +30 -0
  113. package/dist/commonjs/operationsInterfaces/commitmentAssociations.d.ts.map +1 -0
  114. package/dist/commonjs/operationsInterfaces/commitmentAssociations.js +10 -0
  115. package/dist/commonjs/operationsInterfaces/commitmentAssociations.js.map +1 -0
  116. package/dist/commonjs/operationsInterfaces/commitmentPlans.d.ts +48 -0
  117. package/dist/commonjs/operationsInterfaces/commitmentPlans.d.ts.map +1 -0
  118. package/dist/commonjs/operationsInterfaces/commitmentPlans.js +10 -0
  119. package/dist/commonjs/operationsInterfaces/commitmentPlans.js.map +1 -0
  120. package/dist/commonjs/operationsInterfaces/index.d.ts +6 -0
  121. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  122. package/dist/commonjs/operationsInterfaces/index.js +16 -0
  123. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  124. package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
  125. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  126. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  127. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  128. package/dist/commonjs/operationsInterfaces/skus.d.ts +11 -0
  129. package/dist/commonjs/operationsInterfaces/skus.d.ts.map +1 -0
  130. package/dist/commonjs/operationsInterfaces/skus.js +10 -0
  131. package/dist/commonjs/operationsInterfaces/skus.js.map +1 -0
  132. package/dist/commonjs/operationsInterfaces/usageHistory.d.ts +13 -0
  133. package/dist/commonjs/operationsInterfaces/usageHistory.d.ts.map +1 -0
  134. package/dist/commonjs/operationsInterfaces/usageHistory.js +10 -0
  135. package/dist/commonjs/operationsInterfaces/usageHistory.js.map +1 -0
  136. package/dist/commonjs/package.json +3 -0
  137. package/dist/commonjs/pagingHelper.d.ts +13 -0
  138. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  139. package/dist/commonjs/pagingHelper.js +34 -0
  140. package/dist/commonjs/pagingHelper.js.map +1 -0
  141. package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
  142. package/dist/esm/azureMLCommitmentPlansManagementClient.d.ts +24 -0
  143. package/dist/esm/azureMLCommitmentPlansManagementClient.d.ts.map +1 -0
  144. package/dist/esm/azureMLCommitmentPlansManagementClient.js +114 -0
  145. package/dist/esm/azureMLCommitmentPlansManagementClient.js.map +1 -0
  146. package/dist/esm/index.d.ts +5 -0
  147. package/dist/esm/index.d.ts.map +1 -0
  148. package/{src/index.ts → dist/esm/index.js} +5 -4
  149. package/dist/esm/index.js.map +1 -0
  150. package/dist/esm/models/index.d.ts +529 -0
  151. package/dist/esm/models/index.d.ts.map +1 -0
  152. package/dist/esm/models/index.js +34 -0
  153. package/dist/esm/models/index.js.map +1 -0
  154. package/dist/esm/models/mappers.d.ts +24 -0
  155. package/dist/esm/models/mappers.d.ts.map +1 -0
  156. package/dist/esm/models/mappers.js +750 -0
  157. package/dist/esm/models/mappers.js.map +1 -0
  158. package/dist/esm/models/parameters.d.ts +15 -0
  159. package/dist/esm/models/parameters.d.ts.map +1 -0
  160. package/dist/esm/models/parameters.js +125 -0
  161. package/dist/esm/models/parameters.js.map +1 -0
  162. package/dist/esm/operations/commitmentAssociations.d.ts +55 -0
  163. package/dist/esm/operations/commitmentAssociations.d.ts.map +1 -0
  164. package/dist/esm/operations/commitmentAssociations.js +200 -0
  165. package/dist/esm/operations/commitmentAssociations.js.map +1 -0
  166. package/dist/esm/operations/commitmentPlans.d.ts +84 -0
  167. package/dist/esm/operations/commitmentPlans.d.ts.map +1 -0
  168. package/dist/esm/operations/commitmentPlans.js +325 -0
  169. package/dist/esm/operations/commitmentPlans.js.map +1 -0
  170. package/dist/esm/operations/index.d.ts +6 -0
  171. package/dist/esm/operations/index.d.ts.map +1 -0
  172. package/dist/esm/operations/index.js +13 -0
  173. package/dist/esm/operations/index.js.map +1 -0
  174. package/dist/esm/operations/operations.d.ts +26 -0
  175. package/dist/esm/operations/operations.d.ts.map +1 -0
  176. package/dist/esm/operations/operations.js +76 -0
  177. package/dist/esm/operations/operations.js.map +1 -0
  178. package/dist/esm/operations/skus.d.ts +26 -0
  179. package/dist/esm/operations/skus.d.ts.map +1 -0
  180. package/dist/esm/operations/skus.js +76 -0
  181. package/dist/esm/operations/skus.js.map +1 -0
  182. package/dist/esm/operations/usageHistory.d.ts +38 -0
  183. package/dist/esm/operations/usageHistory.d.ts.map +1 -0
  184. package/dist/esm/operations/usageHistory.js +128 -0
  185. package/dist/esm/operations/usageHistory.js.map +1 -0
  186. package/dist/esm/operationsInterfaces/commitmentAssociations.d.ts +30 -0
  187. package/dist/esm/operationsInterfaces/commitmentAssociations.d.ts.map +1 -0
  188. package/dist/esm/operationsInterfaces/commitmentAssociations.js +9 -0
  189. package/dist/esm/operationsInterfaces/commitmentAssociations.js.map +1 -0
  190. package/dist/esm/operationsInterfaces/commitmentPlans.d.ts +48 -0
  191. package/dist/esm/operationsInterfaces/commitmentPlans.d.ts.map +1 -0
  192. package/dist/esm/operationsInterfaces/commitmentPlans.js +9 -0
  193. package/dist/esm/operationsInterfaces/commitmentPlans.js.map +1 -0
  194. package/dist/esm/operationsInterfaces/index.d.ts +6 -0
  195. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  196. package/dist/esm/operationsInterfaces/index.js +13 -0
  197. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  198. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  199. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  200. package/dist/esm/operationsInterfaces/operations.js +9 -0
  201. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  202. package/dist/esm/operationsInterfaces/skus.d.ts +11 -0
  203. package/dist/esm/operationsInterfaces/skus.d.ts.map +1 -0
  204. package/dist/esm/operationsInterfaces/skus.js +9 -0
  205. package/dist/esm/operationsInterfaces/skus.js.map +1 -0
  206. package/dist/esm/operationsInterfaces/usageHistory.d.ts +13 -0
  207. package/dist/esm/operationsInterfaces/usageHistory.d.ts.map +1 -0
  208. package/dist/esm/operationsInterfaces/usageHistory.js +9 -0
  209. package/dist/esm/operationsInterfaces/usageHistory.js.map +1 -0
  210. package/dist/esm/package.json +3 -0
  211. package/dist/esm/pagingHelper.d.ts +13 -0
  212. package/dist/esm/pagingHelper.d.ts.map +1 -0
  213. package/dist/esm/pagingHelper.js +30 -0
  214. package/dist/esm/pagingHelper.js.map +1 -0
  215. package/dist/react-native/azureMLCommitmentPlansManagementClient.d.ts +24 -0
  216. package/dist/react-native/azureMLCommitmentPlansManagementClient.d.ts.map +1 -0
  217. package/dist/react-native/azureMLCommitmentPlansManagementClient.js +114 -0
  218. package/dist/react-native/azureMLCommitmentPlansManagementClient.js.map +1 -0
  219. package/dist/react-native/index.d.ts +5 -0
  220. package/dist/react-native/index.d.ts.map +1 -0
  221. package/dist/react-native/index.js +13 -0
  222. package/dist/react-native/index.js.map +1 -0
  223. package/dist/react-native/models/index.d.ts +529 -0
  224. package/dist/react-native/models/index.d.ts.map +1 -0
  225. package/dist/react-native/models/index.js +34 -0
  226. package/dist/react-native/models/index.js.map +1 -0
  227. package/dist/react-native/models/mappers.d.ts +24 -0
  228. package/dist/react-native/models/mappers.d.ts.map +1 -0
  229. package/dist/react-native/models/mappers.js +750 -0
  230. package/dist/react-native/models/mappers.js.map +1 -0
  231. package/dist/react-native/models/parameters.d.ts +15 -0
  232. package/dist/react-native/models/parameters.d.ts.map +1 -0
  233. package/dist/react-native/models/parameters.js +125 -0
  234. package/dist/react-native/models/parameters.js.map +1 -0
  235. package/dist/react-native/operations/commitmentAssociations.d.ts +55 -0
  236. package/dist/react-native/operations/commitmentAssociations.d.ts.map +1 -0
  237. package/dist/react-native/operations/commitmentAssociations.js +200 -0
  238. package/dist/react-native/operations/commitmentAssociations.js.map +1 -0
  239. package/dist/react-native/operations/commitmentPlans.d.ts +84 -0
  240. package/dist/react-native/operations/commitmentPlans.d.ts.map +1 -0
  241. package/dist/react-native/operations/commitmentPlans.js +325 -0
  242. package/dist/react-native/operations/commitmentPlans.js.map +1 -0
  243. package/dist/react-native/operations/index.d.ts +6 -0
  244. package/dist/react-native/operations/index.d.ts.map +1 -0
  245. package/dist/react-native/operations/index.js +13 -0
  246. package/dist/react-native/operations/index.js.map +1 -0
  247. package/dist/react-native/operations/operations.d.ts +26 -0
  248. package/dist/react-native/operations/operations.d.ts.map +1 -0
  249. package/dist/react-native/operations/operations.js +76 -0
  250. package/dist/react-native/operations/operations.js.map +1 -0
  251. package/dist/react-native/operations/skus.d.ts +26 -0
  252. package/dist/react-native/operations/skus.d.ts.map +1 -0
  253. package/dist/react-native/operations/skus.js +76 -0
  254. package/dist/react-native/operations/skus.js.map +1 -0
  255. package/dist/react-native/operations/usageHistory.d.ts +38 -0
  256. package/dist/react-native/operations/usageHistory.d.ts.map +1 -0
  257. package/dist/react-native/operations/usageHistory.js +128 -0
  258. package/dist/react-native/operations/usageHistory.js.map +1 -0
  259. package/dist/react-native/operationsInterfaces/commitmentAssociations.d.ts +30 -0
  260. package/dist/react-native/operationsInterfaces/commitmentAssociations.d.ts.map +1 -0
  261. package/dist/react-native/operationsInterfaces/commitmentAssociations.js +9 -0
  262. package/dist/react-native/operationsInterfaces/commitmentAssociations.js.map +1 -0
  263. package/dist/react-native/operationsInterfaces/commitmentPlans.d.ts +48 -0
  264. package/dist/react-native/operationsInterfaces/commitmentPlans.d.ts.map +1 -0
  265. package/dist/react-native/operationsInterfaces/commitmentPlans.js +9 -0
  266. package/dist/react-native/operationsInterfaces/commitmentPlans.js.map +1 -0
  267. package/dist/react-native/operationsInterfaces/index.d.ts +6 -0
  268. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  269. package/dist/react-native/operationsInterfaces/index.js +13 -0
  270. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  271. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  272. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  273. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  274. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  275. package/dist/react-native/operationsInterfaces/skus.d.ts +11 -0
  276. package/dist/react-native/operationsInterfaces/skus.d.ts.map +1 -0
  277. package/dist/react-native/operationsInterfaces/skus.js +9 -0
  278. package/dist/react-native/operationsInterfaces/skus.js.map +1 -0
  279. package/dist/react-native/operationsInterfaces/usageHistory.d.ts +13 -0
  280. package/dist/react-native/operationsInterfaces/usageHistory.d.ts.map +1 -0
  281. package/dist/react-native/operationsInterfaces/usageHistory.js +9 -0
  282. package/dist/react-native/operationsInterfaces/usageHistory.js.map +1 -0
  283. package/dist/react-native/package.json +3 -0
  284. package/dist/react-native/pagingHelper.d.ts +13 -0
  285. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  286. package/dist/react-native/pagingHelper.js +30 -0
  287. package/dist/react-native/pagingHelper.js.map +1 -0
  288. package/package.json +86 -73
  289. package/review/{arm-commitmentplans.api.md → arm-commitmentplans-node.api.md} +7 -11
  290. package/dist/index.js +0 -1839
  291. package/dist/index.js.map +0 -1
  292. package/dist/index.min.js +0 -1
  293. package/dist/index.min.js.map +0 -1
  294. package/dist-esm/src/azureMLCommitmentPlansManagementClient.d.ts.map +0 -1
  295. package/dist-esm/src/azureMLCommitmentPlansManagementClient.js +0 -73
  296. package/dist-esm/src/azureMLCommitmentPlansManagementClient.js.map +0 -1
  297. package/dist-esm/src/index.d.ts +0 -5
  298. package/dist-esm/src/index.d.ts.map +0 -1
  299. package/dist-esm/src/index.js.map +0 -1
  300. package/dist-esm/src/models/index.js.map +0 -1
  301. package/dist-esm/src/models/mappers.js.map +0 -1
  302. package/dist-esm/src/models/parameters.js.map +0 -1
  303. package/dist-esm/src/operations/commitmentAssociations.d.ts.map +0 -1
  304. package/dist-esm/src/operations/commitmentAssociations.js.map +0 -1
  305. package/dist-esm/src/operations/commitmentPlans.d.ts.map +0 -1
  306. package/dist-esm/src/operations/commitmentPlans.js.map +0 -1
  307. package/dist-esm/src/operations/index.d.ts +0 -6
  308. package/dist-esm/src/operations/index.js.map +0 -1
  309. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  310. package/dist-esm/src/operations/operations.js.map +0 -1
  311. package/dist-esm/src/operations/skus.d.ts.map +0 -1
  312. package/dist-esm/src/operations/skus.js.map +0 -1
  313. package/dist-esm/src/operations/usageHistory.d.ts.map +0 -1
  314. package/dist-esm/src/operations/usageHistory.js.map +0 -1
  315. package/dist-esm/src/operationsInterfaces/commitmentAssociations.d.ts.map +0 -1
  316. package/dist-esm/src/operationsInterfaces/commitmentAssociations.js.map +0 -1
  317. package/dist-esm/src/operationsInterfaces/commitmentPlans.d.ts.map +0 -1
  318. package/dist-esm/src/operationsInterfaces/commitmentPlans.js.map +0 -1
  319. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -6
  320. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  321. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  322. package/dist-esm/src/operationsInterfaces/skus.js.map +0 -1
  323. package/dist-esm/src/operationsInterfaces/usageHistory.d.ts.map +0 -1
  324. package/dist-esm/src/operationsInterfaces/usageHistory.js.map +0 -1
  325. package/dist-esm/test/sampleTest.d.ts +0 -2
  326. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  327. package/dist-esm/test/sampleTest.js +0 -40
  328. package/dist-esm/test/sampleTest.js.map +0 -1
  329. package/rollup.config.js +0 -122
  330. package/src/azureMLCommitmentPlansManagementClient.ts +0 -120
  331. package/src/models/index.ts +0 -579
  332. package/src/models/mappers.ts +0 -773
  333. package/src/models/parameters.ts +0 -147
  334. package/src/operations/commitmentAssociations.ts +0 -281
  335. package/src/operations/commitmentPlans.ts +0 -420
  336. package/src/operations/index.ts +0 -13
  337. package/src/operations/operations.ts +0 -95
  338. package/src/operations/skus.ts +0 -94
  339. package/src/operations/usageHistory.ts +0 -183
  340. package/src/operationsInterfaces/commitmentAssociations.ts +0 -62
  341. package/src/operationsInterfaces/commitmentPlans.ts +0 -92
  342. package/src/operationsInterfaces/index.ts +0 -13
  343. package/src/operationsInterfaces/operations.ts +0 -22
  344. package/src/operationsInterfaces/skus.ts +0 -22
  345. package/src/operationsInterfaces/usageHistory.ts +0 -26
  346. package/tsconfig.json +0 -33
  347. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  348. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  349. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  350. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  351. /package/{dist-esm/src → dist/browser}/operationsInterfaces/commitmentAssociations.js +0 -0
  352. /package/{dist-esm/src → dist/browser}/operationsInterfaces/commitmentPlans.js +0 -0
  353. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  354. /package/{dist-esm/src → dist/browser}/operationsInterfaces/skus.js +0 -0
  355. /package/{dist-esm/src → dist/browser}/operationsInterfaces/usageHistory.js +0 -0
@@ -0,0 +1,330 @@
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.CommitmentPlansImpl = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const pagingHelper_js_1 = require("../pagingHelper.js");
13
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
14
+ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
15
+ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
+ /// <reference lib="esnext.asynciterable" />
17
+ /** Class containing CommitmentPlans operations. */
18
+ class CommitmentPlansImpl {
19
+ client;
20
+ /**
21
+ * Initialize a new instance of the class CommitmentPlans class.
22
+ * @param client Reference to the service client
23
+ */
24
+ constructor(client) {
25
+ this.client = client;
26
+ }
27
+ /**
28
+ * Retrieve all Azure ML commitment plans in a subscription.
29
+ * @param options The options parameters.
30
+ */
31
+ list(options) {
32
+ const iter = this.listPagingAll(options);
33
+ return {
34
+ next() {
35
+ return iter.next();
36
+ },
37
+ [Symbol.asyncIterator]() {
38
+ return this;
39
+ },
40
+ byPage: (settings) => {
41
+ if (settings?.maxPageSize) {
42
+ throw new Error("maxPageSize is not supported by this operation.");
43
+ }
44
+ return this.listPagingPage(options, settings);
45
+ }
46
+ };
47
+ }
48
+ async *listPagingPage(options, settings) {
49
+ let result;
50
+ let continuationToken = settings?.continuationToken;
51
+ if (!continuationToken) {
52
+ result = await this._list(options);
53
+ let page = result.value || [];
54
+ continuationToken = result.nextLink;
55
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
56
+ yield page;
57
+ }
58
+ while (continuationToken) {
59
+ result = await this._listNext(continuationToken, options);
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
63
+ yield page;
64
+ }
65
+ }
66
+ async *listPagingAll(options) {
67
+ for await (const page of this.listPagingPage(options)) {
68
+ yield* page;
69
+ }
70
+ }
71
+ /**
72
+ * Retrieve all Azure ML commitment plans in a resource group.
73
+ * @param resourceGroupName The resource group name.
74
+ * @param options The options parameters.
75
+ */
76
+ listInResourceGroup(resourceGroupName, options) {
77
+ const iter = this.listInResourceGroupPagingAll(resourceGroupName, options);
78
+ return {
79
+ next() {
80
+ return iter.next();
81
+ },
82
+ [Symbol.asyncIterator]() {
83
+ return this;
84
+ },
85
+ byPage: (settings) => {
86
+ if (settings?.maxPageSize) {
87
+ throw new Error("maxPageSize is not supported by this operation.");
88
+ }
89
+ return this.listInResourceGroupPagingPage(resourceGroupName, options, settings);
90
+ }
91
+ };
92
+ }
93
+ async *listInResourceGroupPagingPage(resourceGroupName, options, settings) {
94
+ let result;
95
+ let continuationToken = settings?.continuationToken;
96
+ if (!continuationToken) {
97
+ result = await this._listInResourceGroup(resourceGroupName, options);
98
+ let page = result.value || [];
99
+ continuationToken = result.nextLink;
100
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
101
+ yield page;
102
+ }
103
+ while (continuationToken) {
104
+ result = await this._listInResourceGroupNext(resourceGroupName, continuationToken, options);
105
+ continuationToken = result.nextLink;
106
+ let page = result.value || [];
107
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
108
+ yield page;
109
+ }
110
+ }
111
+ async *listInResourceGroupPagingAll(resourceGroupName, options) {
112
+ for await (const page of this.listInResourceGroupPagingPage(resourceGroupName, options)) {
113
+ yield* page;
114
+ }
115
+ }
116
+ /**
117
+ * Retrieve an Azure ML commitment plan by its subscription, resource group and name.
118
+ * @param resourceGroupName The resource group name.
119
+ * @param commitmentPlanName The Azure ML commitment plan name.
120
+ * @param options The options parameters.
121
+ */
122
+ get(resourceGroupName, commitmentPlanName, options) {
123
+ return this.client.sendOperationRequest({ resourceGroupName, commitmentPlanName, options }, getOperationSpec);
124
+ }
125
+ /**
126
+ * Create a new Azure ML commitment plan resource or updates an existing one.
127
+ * @param resourceGroupName The resource group name.
128
+ * @param commitmentPlanName The Azure ML commitment plan name.
129
+ * @param createOrUpdatePayload The payload to create or update the Azure ML commitment plan.
130
+ * @param options The options parameters.
131
+ */
132
+ createOrUpdate(resourceGroupName, commitmentPlanName, createOrUpdatePayload, options) {
133
+ return this.client.sendOperationRequest({ resourceGroupName, commitmentPlanName, createOrUpdatePayload, options }, createOrUpdateOperationSpec);
134
+ }
135
+ /**
136
+ * Remove an existing Azure ML commitment plan.
137
+ * @param resourceGroupName The resource group name.
138
+ * @param commitmentPlanName The Azure ML commitment plan name.
139
+ * @param options The options parameters.
140
+ */
141
+ remove(resourceGroupName, commitmentPlanName, options) {
142
+ return this.client.sendOperationRequest({ resourceGroupName, commitmentPlanName, options }, removeOperationSpec);
143
+ }
144
+ /**
145
+ * Patch an existing Azure ML commitment plan resource.
146
+ * @param resourceGroupName The resource group name.
147
+ * @param commitmentPlanName The Azure ML commitment plan name.
148
+ * @param patchPayload The payload to use to patch the Azure ML commitment plan. Only tags and SKU may
149
+ * be modified on an existing commitment plan.
150
+ * @param options The options parameters.
151
+ */
152
+ patch(resourceGroupName, commitmentPlanName, patchPayload, options) {
153
+ return this.client.sendOperationRequest({ resourceGroupName, commitmentPlanName, patchPayload, options }, patchOperationSpec);
154
+ }
155
+ /**
156
+ * Retrieve all Azure ML commitment plans in a subscription.
157
+ * @param options The options parameters.
158
+ */
159
+ _list(options) {
160
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
161
+ }
162
+ /**
163
+ * Retrieve all Azure ML commitment plans in a resource group.
164
+ * @param resourceGroupName The resource group name.
165
+ * @param options The options parameters.
166
+ */
167
+ _listInResourceGroup(resourceGroupName, options) {
168
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listInResourceGroupOperationSpec);
169
+ }
170
+ /**
171
+ * ListNext
172
+ * @param nextLink The nextLink from the previous successful call to the List method.
173
+ * @param options The options parameters.
174
+ */
175
+ _listNext(nextLink, options) {
176
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
177
+ }
178
+ /**
179
+ * ListInResourceGroupNext
180
+ * @param resourceGroupName The resource group name.
181
+ * @param nextLink The nextLink from the previous successful call to the ListInResourceGroup method.
182
+ * @param options The options parameters.
183
+ */
184
+ _listInResourceGroupNext(resourceGroupName, nextLink, options) {
185
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listInResourceGroupNextOperationSpec);
186
+ }
187
+ }
188
+ exports.CommitmentPlansImpl = CommitmentPlansImpl;
189
+ // Operation Specifications
190
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
191
+ const getOperationSpec = {
192
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}",
193
+ httpMethod: "GET",
194
+ responses: {
195
+ 200: {
196
+ bodyMapper: Mappers.CommitmentPlan
197
+ }
198
+ },
199
+ queryParameters: [Parameters.apiVersion],
200
+ urlParameters: [
201
+ Parameters.$host,
202
+ Parameters.subscriptionId,
203
+ Parameters.resourceGroupName,
204
+ Parameters.commitmentPlanName
205
+ ],
206
+ headerParameters: [Parameters.accept],
207
+ serializer
208
+ };
209
+ const createOrUpdateOperationSpec = {
210
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}",
211
+ httpMethod: "PUT",
212
+ responses: {
213
+ 200: {
214
+ bodyMapper: Mappers.CommitmentPlan
215
+ },
216
+ 201: {
217
+ bodyMapper: Mappers.CommitmentPlan
218
+ }
219
+ },
220
+ requestBody: Parameters.createOrUpdatePayload,
221
+ queryParameters: [Parameters.apiVersion],
222
+ urlParameters: [
223
+ Parameters.$host,
224
+ Parameters.subscriptionId,
225
+ Parameters.resourceGroupName,
226
+ Parameters.commitmentPlanName
227
+ ],
228
+ headerParameters: [Parameters.accept, Parameters.contentType],
229
+ mediaType: "json",
230
+ serializer
231
+ };
232
+ const removeOperationSpec = {
233
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}",
234
+ httpMethod: "DELETE",
235
+ responses: { 200: {} },
236
+ queryParameters: [Parameters.apiVersion],
237
+ urlParameters: [
238
+ Parameters.$host,
239
+ Parameters.subscriptionId,
240
+ Parameters.resourceGroupName,
241
+ Parameters.commitmentPlanName
242
+ ],
243
+ serializer
244
+ };
245
+ const patchOperationSpec = {
246
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}",
247
+ httpMethod: "PATCH",
248
+ responses: {
249
+ 200: {
250
+ bodyMapper: Mappers.CommitmentPlan
251
+ }
252
+ },
253
+ requestBody: Parameters.patchPayload,
254
+ queryParameters: [Parameters.apiVersion],
255
+ urlParameters: [
256
+ Parameters.$host,
257
+ Parameters.subscriptionId,
258
+ Parameters.resourceGroupName,
259
+ Parameters.commitmentPlanName
260
+ ],
261
+ headerParameters: [Parameters.accept, Parameters.contentType],
262
+ mediaType: "json",
263
+ serializer
264
+ };
265
+ const listOperationSpec = {
266
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/commitmentPlans",
267
+ httpMethod: "GET",
268
+ responses: {
269
+ 200: {
270
+ bodyMapper: Mappers.CommitmentPlanListResult
271
+ }
272
+ },
273
+ queryParameters: [Parameters.apiVersion, Parameters.skipToken],
274
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
275
+ headerParameters: [Parameters.accept],
276
+ serializer
277
+ };
278
+ const listInResourceGroupOperationSpec = {
279
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans",
280
+ httpMethod: "GET",
281
+ responses: {
282
+ 200: {
283
+ bodyMapper: Mappers.CommitmentPlanListResult
284
+ }
285
+ },
286
+ queryParameters: [Parameters.apiVersion, Parameters.skipToken],
287
+ urlParameters: [
288
+ Parameters.$host,
289
+ Parameters.subscriptionId,
290
+ Parameters.resourceGroupName
291
+ ],
292
+ headerParameters: [Parameters.accept],
293
+ serializer
294
+ };
295
+ const listNextOperationSpec = {
296
+ path: "{nextLink}",
297
+ httpMethod: "GET",
298
+ responses: {
299
+ 200: {
300
+ bodyMapper: Mappers.CommitmentPlanListResult
301
+ }
302
+ },
303
+ queryParameters: [Parameters.apiVersion, Parameters.skipToken],
304
+ urlParameters: [
305
+ Parameters.$host,
306
+ Parameters.subscriptionId,
307
+ Parameters.nextLink
308
+ ],
309
+ headerParameters: [Parameters.accept],
310
+ serializer
311
+ };
312
+ const listInResourceGroupNextOperationSpec = {
313
+ path: "{nextLink}",
314
+ httpMethod: "GET",
315
+ responses: {
316
+ 200: {
317
+ bodyMapper: Mappers.CommitmentPlanListResult
318
+ }
319
+ },
320
+ queryParameters: [Parameters.apiVersion, Parameters.skipToken],
321
+ urlParameters: [
322
+ Parameters.$host,
323
+ Parameters.subscriptionId,
324
+ Parameters.resourceGroupName,
325
+ Parameters.nextLink
326
+ ],
327
+ headerParameters: [Parameters.accept],
328
+ serializer
329
+ };
330
+ //# sourceMappingURL=commitmentPlans.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commitmentPlans.js","sourceRoot":"","sources":["../../../src/operations/commitmentPlans.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAsBtD,4CAA4C;AAC5C,mDAAmD;AACnD,MAAa,mBAAmB;IACb,MAAM,CAAyC;IAEhE;;;OAGG;IACH,YAAY,MAA8C;QACxD,IAAI,CAAC,MA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B,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,SAAS,CAAC;IAC9D,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,SAAS,CAAC;IAC9D,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { CommitmentPlans } 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 { AzureMLCommitmentPlansManagementClient } from \"../azureMLCommitmentPlansManagementClient.js\";\nimport {\n CommitmentPlan,\n CommitmentPlansListNextOptionalParams,\n CommitmentPlansListOptionalParams,\n CommitmentPlansListResponse,\n CommitmentPlansListInResourceGroupNextOptionalParams,\n CommitmentPlansListInResourceGroupOptionalParams,\n CommitmentPlansListInResourceGroupResponse,\n CommitmentPlansGetOptionalParams,\n CommitmentPlansGetResponse,\n CommitmentPlansCreateOrUpdateOptionalParams,\n CommitmentPlansCreateOrUpdateResponse,\n CommitmentPlansRemoveOptionalParams,\n CommitmentPlanPatchPayload,\n CommitmentPlansPatchOptionalParams,\n CommitmentPlansPatchResponse,\n CommitmentPlansListNextResponse,\n CommitmentPlansListInResourceGroupNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing CommitmentPlans operations. */\nexport class CommitmentPlansImpl implements CommitmentPlans {\n private readonly client: AzureMLCommitmentPlansManagementClient;\n\n /**\n * Initialize a new instance of the class CommitmentPlans class.\n * @param client Reference to the service client\n */\n constructor(client: AzureMLCommitmentPlansManagementClient) {\n this.client = client;\n }\n\n /**\n * Retrieve all Azure ML commitment plans in a subscription.\n * @param options The options parameters.\n */\n public list(\n options?: CommitmentPlansListOptionalParams\n ): PagedAsyncIterableIterator<CommitmentPlan> {\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?: CommitmentPlansListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<CommitmentPlan[]> {\n let result: CommitmentPlansListResponse;\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?: CommitmentPlansListOptionalParams\n ): AsyncIterableIterator<CommitmentPlan> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Retrieve all Azure ML commitment plans in a resource group.\n * @param resourceGroupName The resource group name.\n * @param options The options parameters.\n */\n public listInResourceGroup(\n resourceGroupName: string,\n options?: CommitmentPlansListInResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<CommitmentPlan> {\n const iter = this.listInResourceGroupPagingAll(resourceGroupName, 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.listInResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listInResourceGroupPagingPage(\n resourceGroupName: string,\n options?: CommitmentPlansListInResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<CommitmentPlan[]> {\n let result: CommitmentPlansListInResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listInResourceGroup(resourceGroupName, 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._listInResourceGroupNext(\n resourceGroupName,\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 *listInResourceGroupPagingAll(\n resourceGroupName: string,\n options?: CommitmentPlansListInResourceGroupOptionalParams\n ): AsyncIterableIterator<CommitmentPlan> {\n for await (const page of this.listInResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieve an Azure ML commitment plan by its subscription, resource group and name.\n * @param resourceGroupName The resource group name.\n * @param commitmentPlanName The Azure ML commitment plan name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n commitmentPlanName: string,\n options?: CommitmentPlansGetOptionalParams\n ): Promise<CommitmentPlansGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, commitmentPlanName, options },\n getOperationSpec\n );\n }\n\n /**\n * Create a new Azure ML commitment plan resource or updates an existing one.\n * @param resourceGroupName The resource group name.\n * @param commitmentPlanName The Azure ML commitment plan name.\n * @param createOrUpdatePayload The payload to create or update the Azure ML commitment plan.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n commitmentPlanName: string,\n createOrUpdatePayload: CommitmentPlan,\n options?: CommitmentPlansCreateOrUpdateOptionalParams\n ): Promise<CommitmentPlansCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, commitmentPlanName, createOrUpdatePayload, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Remove an existing Azure ML commitment plan.\n * @param resourceGroupName The resource group name.\n * @param commitmentPlanName The Azure ML commitment plan name.\n * @param options The options parameters.\n */\n remove(\n resourceGroupName: string,\n commitmentPlanName: string,\n options?: CommitmentPlansRemoveOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, commitmentPlanName, options },\n removeOperationSpec\n );\n }\n\n /**\n * Patch an existing Azure ML commitment plan resource.\n * @param resourceGroupName The resource group name.\n * @param commitmentPlanName The Azure ML commitment plan name.\n * @param patchPayload The payload to use to patch the Azure ML commitment plan. Only tags and SKU may\n * be modified on an existing commitment plan.\n * @param options The options parameters.\n */\n patch(\n resourceGroupName: string,\n commitmentPlanName: string,\n patchPayload: CommitmentPlanPatchPayload,\n options?: CommitmentPlansPatchOptionalParams\n ): Promise<CommitmentPlansPatchResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, commitmentPlanName, patchPayload, options },\n patchOperationSpec\n );\n }\n\n /**\n * Retrieve all Azure ML commitment plans in a subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: CommitmentPlansListOptionalParams\n ): Promise<CommitmentPlansListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Retrieve all Azure ML commitment plans in a resource group.\n * @param resourceGroupName The resource group name.\n * @param options The options parameters.\n */\n private _listInResourceGroup(\n resourceGroupName: string,\n options?: CommitmentPlansListInResourceGroupOptionalParams\n ): Promise<CommitmentPlansListInResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listInResourceGroupOperationSpec\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?: CommitmentPlansListNextOptionalParams\n ): Promise<CommitmentPlansListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n\n /**\n * ListInResourceGroupNext\n * @param resourceGroupName The resource group name.\n * @param nextLink The nextLink from the previous successful call to the ListInResourceGroup method.\n * @param options The options parameters.\n */\n private _listInResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: CommitmentPlansListInResourceGroupNextOptionalParams\n ): Promise<CommitmentPlansListInResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listInResourceGroupNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CommitmentPlan\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.commitmentPlanName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CommitmentPlan\n },\n 201: {\n bodyMapper: Mappers.CommitmentPlan\n }\n },\n requestBody: Parameters.createOrUpdatePayload,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.commitmentPlanName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst removeOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.commitmentPlanName\n ],\n serializer\n};\nconst patchOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.CommitmentPlan\n }\n },\n requestBody: Parameters.patchPayload,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.commitmentPlanName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/commitmentPlans\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CommitmentPlanListResult\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.skipToken],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listInResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CommitmentPlanListResult\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.skipToken],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CommitmentPlanListResult\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.skipToken],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listInResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CommitmentPlanListResult\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.skipToken],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -0,0 +1,6 @@
1
+ export * from "./operations.js";
2
+ export * from "./skus.js";
3
+ export * from "./commitmentAssociations.js";
4
+ export * from "./commitmentPlans.js";
5
+ export * from "./usageHistory.js";
6
+ //# 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,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,16 @@
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
+ const tslib_1 = require("tslib");
11
+ tslib_1.__exportStar(require("./operations.js"), exports);
12
+ tslib_1.__exportStar(require("./skus.js"), exports);
13
+ tslib_1.__exportStar(require("./commitmentAssociations.js"), exports);
14
+ tslib_1.__exportStar(require("./commitmentPlans.js"), exports);
15
+ tslib_1.__exportStar(require("./usageHistory.js"), exports);
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,0DAAgC;AAChC,oDAA0B;AAC1B,sEAA4C;AAC5C,+DAAqC;AACrC,4DAAkC","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 \"./operations.js\";\nexport * from \"./skus.js\";\nexport * from \"./commitmentAssociations.js\";\nexport * from \"./commitmentPlans.js\";\nexport * from \"./usageHistory.js\";\n"]}
@@ -0,0 +1,26 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Operations } from "../operationsInterfaces/index.js";
3
+ import { AzureMLCommitmentPlansManagementClient } from "../azureMLCommitmentPlansManagementClient.js";
4
+ import { OperationEntity, OperationsListOptionalParams } from "../models/index.js";
5
+ /** Class containing Operations operations. */
6
+ export declare class OperationsImpl implements Operations {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Operations class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: AzureMLCommitmentPlansManagementClient);
13
+ /**
14
+ * Lists all of the available Azure Machine Learning Studio Commitment Plan RP REST API operations.
15
+ * @param options The options parameters.
16
+ */
17
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<OperationEntity>;
18
+ private listPagingPage;
19
+ private listPagingAll;
20
+ /**
21
+ * Lists all of the available Azure Machine Learning Studio Commitment Plan RP REST API operations.
22
+ * @param options The options parameters.
23
+ */
24
+ private _list;
25
+ }
26
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAI9D,OAAO,EAAE,sCAAsC,EAAE,MAAM,8CAA8C,CAAC;AACtG,OAAO,EACL,eAAe,EACf,4BAA4B,EAE7B,MAAM,oBAAoB,CAAC;AAG5B,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyC;IAEhE;;;OAGG;gBACS,MAAM,EAAE,sCAAsC;IAI1D;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,eAAe,CAAC;YAkB/B,cAAc;YASd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;CAKd"}
@@ -0,0 +1,81 @@
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.OperationsImpl = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
13
+ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
14
+ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
+ /// <reference lib="esnext.asynciterable" />
16
+ /** Class containing Operations operations. */
17
+ class OperationsImpl {
18
+ client;
19
+ /**
20
+ * Initialize a new instance of the class Operations class.
21
+ * @param client Reference to the service client
22
+ */
23
+ constructor(client) {
24
+ this.client = client;
25
+ }
26
+ /**
27
+ * Lists all of the available Azure Machine Learning Studio Commitment Plan RP REST API operations.
28
+ * @param options The options parameters.
29
+ */
30
+ list(options) {
31
+ const iter = this.listPagingAll(options);
32
+ return {
33
+ next() {
34
+ return iter.next();
35
+ },
36
+ [Symbol.asyncIterator]() {
37
+ return this;
38
+ },
39
+ byPage: (settings) => {
40
+ if (settings?.maxPageSize) {
41
+ throw new Error("maxPageSize is not supported by this operation.");
42
+ }
43
+ return this.listPagingPage(options, settings);
44
+ }
45
+ };
46
+ }
47
+ async *listPagingPage(options, _settings) {
48
+ let result;
49
+ result = await this._list(options);
50
+ yield result.value || [];
51
+ }
52
+ async *listPagingAll(options) {
53
+ for await (const page of this.listPagingPage(options)) {
54
+ yield* page;
55
+ }
56
+ }
57
+ /**
58
+ * Lists all of the available Azure Machine Learning Studio Commitment Plan RP REST API operations.
59
+ * @param options The options parameters.
60
+ */
61
+ _list(options) {
62
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
63
+ }
64
+ }
65
+ exports.OperationsImpl = OperationsImpl;
66
+ // Operation Specifications
67
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
68
+ const listOperationSpec = {
69
+ path: "/providers/Microsoft.MachineLearning/operations",
70
+ httpMethod: "GET",
71
+ responses: {
72
+ 200: {
73
+ bodyMapper: Mappers.OperationEntityListResult
74
+ }
75
+ },
76
+ queryParameters: [Parameters.apiVersion],
77
+ urlParameters: [Parameters.$host],
78
+ headerParameters: [Parameters.accept],
79
+ serializer
80
+ };
81
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations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AoB,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC1E,CAAC;CACF;AA7DD,wCA6DC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,iDAAiD;IACvD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;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","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 { Operations } 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 { AzureMLCommitmentPlansManagementClient } from \"../azureMLCommitmentPlansManagementClient.js\";\nimport {\n OperationEntity,\n OperationsListOptionalParams,\n OperationsListResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: AzureMLCommitmentPlansManagementClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: AzureMLCommitmentPlansManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the available Azure Machine Learning Studio Commitment Plan RP REST API operations.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<OperationEntity> {\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?: OperationsListOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<OperationEntity[]> {\n let result: OperationsListResponse;\n result = await this._list(options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<OperationEntity> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available Azure Machine Learning Studio Commitment Plan RP REST API operations.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.MachineLearning/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationEntityListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -0,0 +1,26 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Skus } from "../operationsInterfaces/index.js";
3
+ import { AzureMLCommitmentPlansManagementClient } from "../azureMLCommitmentPlansManagementClient.js";
4
+ import { CatalogSku, SkusListOptionalParams } from "../models/index.js";
5
+ /** Class containing Skus operations. */
6
+ export declare class SkusImpl implements Skus {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Skus class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: AzureMLCommitmentPlansManagementClient);
13
+ /**
14
+ * Lists the available commitment plan SKUs.
15
+ * @param options The options parameters.
16
+ */
17
+ list(options?: SkusListOptionalParams): PagedAsyncIterableIterator<CatalogSku>;
18
+ private listPagingPage;
19
+ private listPagingAll;
20
+ /**
21
+ * Lists the available commitment plan SKUs.
22
+ * @param options The options parameters.
23
+ */
24
+ private _list;
25
+ }
26
+ //# sourceMappingURL=skus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skus.d.ts","sourceRoot":"","sources":["../../../src/operations/skus.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAIxD,OAAO,EAAE,sCAAsC,EAAE,MAAM,8CAA8C,CAAC;AACtG,OAAO,EACL,UAAU,EACV,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAG5B,wCAAwC;AACxC,qBAAa,QAAS,YAAW,IAAI;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyC;IAEhE;;;OAGG;gBACS,MAAM,EAAE,sCAAsC;IAI1D;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,sBAAsB,GAC/B,0BAA0B,CAAC,UAAU,CAAC;YAkB1B,cAAc;YASd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;CAGd"}
@@ -0,0 +1,81 @@
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.SkusImpl = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
13
+ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
14
+ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
+ /// <reference lib="esnext.asynciterable" />
16
+ /** Class containing Skus operations. */
17
+ class SkusImpl {
18
+ client;
19
+ /**
20
+ * Initialize a new instance of the class Skus class.
21
+ * @param client Reference to the service client
22
+ */
23
+ constructor(client) {
24
+ this.client = client;
25
+ }
26
+ /**
27
+ * Lists the available commitment plan SKUs.
28
+ * @param options The options parameters.
29
+ */
30
+ list(options) {
31
+ const iter = this.listPagingAll(options);
32
+ return {
33
+ next() {
34
+ return iter.next();
35
+ },
36
+ [Symbol.asyncIterator]() {
37
+ return this;
38
+ },
39
+ byPage: (settings) => {
40
+ if (settings?.maxPageSize) {
41
+ throw new Error("maxPageSize is not supported by this operation.");
42
+ }
43
+ return this.listPagingPage(options, settings);
44
+ }
45
+ };
46
+ }
47
+ async *listPagingPage(options, _settings) {
48
+ let result;
49
+ result = await this._list(options);
50
+ yield result.value || [];
51
+ }
52
+ async *listPagingAll(options) {
53
+ for await (const page of this.listPagingPage(options)) {
54
+ yield* page;
55
+ }
56
+ }
57
+ /**
58
+ * Lists the available commitment plan SKUs.
59
+ * @param options The options parameters.
60
+ */
61
+ _list(options) {
62
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
63
+ }
64
+ }
65
+ exports.SkusImpl = SkusImpl;
66
+ // Operation Specifications
67
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
68
+ const listOperationSpec = {
69
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/skus",
70
+ httpMethod: "GET",
71
+ responses: {
72
+ 200: {
73
+ bodyMapper: Mappers.SkuListResult
74
+ }
75
+ },
76
+ queryParameters: [Parameters.apiVersion],
77
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
78
+ headerParameters: [Parameters.accept],
79
+ serializer
80
+ };
81
+ //# sourceMappingURL=skus.js.map