@azure/arm-commitmentplans 2.0.0-alpha.20250207.1 → 2.0.0-alpha.20250211.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (351) hide show
  1. package/README.md +21 -14
  2. package/{dist-esm/src → dist/browser}/azureMLCommitmentPlansManagementClient.d.ts +2 -2
  3. package/dist/browser/azureMLCommitmentPlansManagementClient.d.ts.map +1 -0
  4. package/{dist-esm/src → dist/browser}/azureMLCommitmentPlansManagementClient.js +15 -18
  5. package/dist/browser/azureMLCommitmentPlansManagementClient.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/models/index.js.map +1 -0
  11. package/dist/browser/models/mappers.js.map +1 -0
  12. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  13. package/dist/browser/models/parameters.js.map +1 -0
  14. package/{dist-esm/src → dist/browser}/operations/commitmentAssociations.d.ts +3 -3
  15. package/dist/browser/operations/commitmentAssociations.d.ts.map +1 -0
  16. package/{dist-esm/src → dist/browser}/operations/commitmentAssociations.js +3 -3
  17. package/dist/browser/operations/commitmentAssociations.js.map +1 -0
  18. package/{dist-esm/src → dist/browser}/operations/commitmentPlans.d.ts +3 -3
  19. package/dist/browser/operations/commitmentPlans.d.ts.map +1 -0
  20. package/{dist-esm/src → dist/browser}/operations/commitmentPlans.js +3 -3
  21. package/dist/browser/operations/commitmentPlans.js.map +1 -0
  22. package/dist/browser/operations/index.d.ts +6 -0
  23. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  24. package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +5 -5
  25. package/dist/browser/operations/index.js.map +1 -0
  26. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  27. package/dist/browser/operations/operations.d.ts.map +1 -0
  28. package/{dist-esm/src → dist/browser}/operations/operations.js +2 -2
  29. package/dist/browser/operations/operations.js.map +1 -0
  30. package/{dist-esm/src → dist/browser}/operations/skus.d.ts +3 -3
  31. package/dist/browser/operations/skus.d.ts.map +1 -0
  32. package/{dist-esm/src → dist/browser}/operations/skus.js +2 -2
  33. package/dist/browser/operations/skus.js.map +1 -0
  34. package/{dist-esm/src → dist/browser}/operations/usageHistory.d.ts +3 -3
  35. package/dist/browser/operations/usageHistory.d.ts.map +1 -0
  36. package/{dist-esm/src → dist/browser}/operations/usageHistory.js +3 -3
  37. package/dist/browser/operations/usageHistory.js.map +1 -0
  38. package/{dist-esm/src → dist/browser}/operationsInterfaces/commitmentAssociations.d.ts +1 -1
  39. package/dist/browser/operationsInterfaces/commitmentAssociations.d.ts.map +1 -0
  40. package/dist/browser/operationsInterfaces/commitmentAssociations.js.map +1 -0
  41. package/{dist-esm/src → dist/browser}/operationsInterfaces/commitmentPlans.d.ts +1 -1
  42. package/dist/browser/operationsInterfaces/commitmentPlans.d.ts.map +1 -0
  43. package/dist/browser/operationsInterfaces/commitmentPlans.js.map +1 -0
  44. package/dist/browser/operationsInterfaces/index.d.ts +6 -0
  45. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  46. package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +5 -5
  47. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  48. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  49. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
  50. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  51. package/{dist-esm/src → dist/browser}/operationsInterfaces/skus.d.ts +1 -1
  52. package/{dist-esm/src → dist/browser}/operationsInterfaces/skus.d.ts.map +1 -1
  53. package/dist/browser/operationsInterfaces/skus.js.map +1 -0
  54. package/{dist-esm/src → dist/browser}/operationsInterfaces/usageHistory.d.ts +1 -1
  55. package/dist/browser/operationsInterfaces/usageHistory.d.ts.map +1 -0
  56. package/dist/browser/operationsInterfaces/usageHistory.js.map +1 -0
  57. package/dist/browser/package.json +3 -0
  58. package/dist/browser/pagingHelper.js.map +1 -0
  59. package/dist/commonjs/azureMLCommitmentPlansManagementClient.d.ts +24 -0
  60. package/dist/commonjs/azureMLCommitmentPlansManagementClient.d.ts.map +1 -0
  61. package/dist/commonjs/azureMLCommitmentPlansManagementClient.js +106 -0
  62. package/dist/commonjs/azureMLCommitmentPlansManagementClient.js.map +1 -0
  63. package/dist/commonjs/index.d.ts +5 -0
  64. package/dist/commonjs/index.d.ts.map +1 -0
  65. package/dist/commonjs/index.js +19 -0
  66. package/dist/commonjs/index.js.map +1 -0
  67. package/{types/arm-commitmentplans.d.ts → dist/commonjs/models/index.d.ts} +529 -724
  68. package/dist/commonjs/models/index.d.ts.map +1 -0
  69. package/dist/commonjs/models/index.js +37 -0
  70. package/dist/commonjs/models/index.js.map +1 -0
  71. package/dist/commonjs/models/mappers.d.ts +24 -0
  72. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  73. package/dist/commonjs/models/mappers.js +744 -0
  74. package/dist/commonjs/models/mappers.js.map +1 -0
  75. package/dist/commonjs/models/parameters.d.ts +15 -0
  76. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  77. package/dist/commonjs/models/parameters.js +128 -0
  78. package/dist/commonjs/models/parameters.js.map +1 -0
  79. package/dist/commonjs/operations/commitmentAssociations.d.ts +55 -0
  80. package/dist/commonjs/operations/commitmentAssociations.d.ts.map +1 -0
  81. package/dist/commonjs/operations/commitmentAssociations.js +221 -0
  82. package/dist/commonjs/operations/commitmentAssociations.js.map +1 -0
  83. package/dist/commonjs/operations/commitmentPlans.d.ts +84 -0
  84. package/dist/commonjs/operations/commitmentPlans.d.ts.map +1 -0
  85. package/dist/commonjs/operations/commitmentPlans.js +363 -0
  86. package/dist/commonjs/operations/commitmentPlans.js.map +1 -0
  87. package/dist/commonjs/operations/index.d.ts +6 -0
  88. package/dist/commonjs/operations/index.d.ts.map +1 -0
  89. package/dist/commonjs/operations/index.js +16 -0
  90. package/dist/commonjs/operations/index.js.map +1 -0
  91. package/dist/commonjs/operations/operations.d.ts +26 -0
  92. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  93. package/dist/commonjs/operations/operations.js +97 -0
  94. package/dist/commonjs/operations/operations.js.map +1 -0
  95. package/dist/commonjs/operations/skus.d.ts +26 -0
  96. package/dist/commonjs/operations/skus.d.ts.map +1 -0
  97. package/dist/commonjs/operations/skus.js +97 -0
  98. package/dist/commonjs/operations/skus.js.map +1 -0
  99. package/dist/commonjs/operations/usageHistory.d.ts +38 -0
  100. package/dist/commonjs/operations/usageHistory.d.ts.map +1 -0
  101. package/dist/commonjs/operations/usageHistory.js +149 -0
  102. package/dist/commonjs/operations/usageHistory.js.map +1 -0
  103. package/dist/commonjs/operationsInterfaces/commitmentAssociations.d.ts +30 -0
  104. package/dist/commonjs/operationsInterfaces/commitmentAssociations.d.ts.map +1 -0
  105. package/dist/commonjs/operationsInterfaces/commitmentAssociations.js +10 -0
  106. package/dist/commonjs/operationsInterfaces/commitmentAssociations.js.map +1 -0
  107. package/dist/commonjs/operationsInterfaces/commitmentPlans.d.ts +48 -0
  108. package/dist/commonjs/operationsInterfaces/commitmentPlans.d.ts.map +1 -0
  109. package/dist/commonjs/operationsInterfaces/commitmentPlans.js +10 -0
  110. package/dist/commonjs/operationsInterfaces/commitmentPlans.js.map +1 -0
  111. package/dist/commonjs/operationsInterfaces/index.d.ts +6 -0
  112. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  113. package/dist/commonjs/operationsInterfaces/index.js +16 -0
  114. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  115. package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
  116. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  117. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  118. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  119. package/dist/commonjs/operationsInterfaces/skus.d.ts +11 -0
  120. package/dist/commonjs/operationsInterfaces/skus.d.ts.map +1 -0
  121. package/dist/commonjs/operationsInterfaces/skus.js +10 -0
  122. package/dist/commonjs/operationsInterfaces/skus.js.map +1 -0
  123. package/dist/commonjs/operationsInterfaces/usageHistory.d.ts +13 -0
  124. package/dist/commonjs/operationsInterfaces/usageHistory.d.ts.map +1 -0
  125. package/dist/commonjs/operationsInterfaces/usageHistory.js +10 -0
  126. package/dist/commonjs/operationsInterfaces/usageHistory.js.map +1 -0
  127. package/dist/commonjs/package.json +3 -0
  128. package/dist/commonjs/pagingHelper.d.ts +13 -0
  129. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  130. package/dist/commonjs/pagingHelper.js +36 -0
  131. package/dist/commonjs/pagingHelper.js.map +1 -0
  132. package/dist/esm/azureMLCommitmentPlansManagementClient.d.ts +24 -0
  133. package/dist/esm/azureMLCommitmentPlansManagementClient.d.ts.map +1 -0
  134. package/dist/esm/azureMLCommitmentPlansManagementClient.js +101 -0
  135. package/dist/esm/azureMLCommitmentPlansManagementClient.js.map +1 -0
  136. package/dist/esm/index.d.ts +5 -0
  137. package/dist/esm/index.d.ts.map +1 -0
  138. package/{src/index.ts → dist/esm/index.js} +5 -5
  139. package/dist/esm/index.js.map +1 -0
  140. package/dist/esm/models/index.d.ts +529 -0
  141. package/dist/esm/models/index.d.ts.map +1 -0
  142. package/dist/esm/models/index.js +34 -0
  143. package/dist/esm/models/index.js.map +1 -0
  144. package/dist/esm/models/mappers.d.ts +24 -0
  145. package/dist/esm/models/mappers.d.ts.map +1 -0
  146. package/dist/esm/models/mappers.js +741 -0
  147. package/dist/esm/models/mappers.js.map +1 -0
  148. package/dist/esm/models/parameters.d.ts +15 -0
  149. package/dist/esm/models/parameters.d.ts.map +1 -0
  150. package/dist/esm/models/parameters.js +125 -0
  151. package/dist/esm/models/parameters.js.map +1 -0
  152. package/dist/esm/operations/commitmentAssociations.d.ts +55 -0
  153. package/dist/esm/operations/commitmentAssociations.d.ts.map +1 -0
  154. package/dist/esm/operations/commitmentAssociations.js +217 -0
  155. package/dist/esm/operations/commitmentAssociations.js.map +1 -0
  156. package/dist/esm/operations/commitmentPlans.d.ts +84 -0
  157. package/dist/esm/operations/commitmentPlans.d.ts.map +1 -0
  158. package/dist/esm/operations/commitmentPlans.js +359 -0
  159. package/dist/esm/operations/commitmentPlans.js.map +1 -0
  160. package/dist/esm/operations/index.d.ts +6 -0
  161. package/dist/esm/operations/index.d.ts.map +1 -0
  162. package/dist/esm/operations/index.js +13 -0
  163. package/dist/esm/operations/index.js.map +1 -0
  164. package/dist/esm/operations/operations.d.ts +26 -0
  165. package/dist/esm/operations/operations.d.ts.map +1 -0
  166. package/dist/esm/operations/operations.js +93 -0
  167. package/dist/esm/operations/operations.js.map +1 -0
  168. package/dist/esm/operations/skus.d.ts +26 -0
  169. package/dist/esm/operations/skus.d.ts.map +1 -0
  170. package/dist/esm/operations/skus.js +93 -0
  171. package/dist/esm/operations/skus.js.map +1 -0
  172. package/dist/esm/operations/usageHistory.d.ts +38 -0
  173. package/dist/esm/operations/usageHistory.d.ts.map +1 -0
  174. package/dist/esm/operations/usageHistory.js +145 -0
  175. package/dist/esm/operations/usageHistory.js.map +1 -0
  176. package/dist/esm/operationsInterfaces/commitmentAssociations.d.ts +30 -0
  177. package/dist/esm/operationsInterfaces/commitmentAssociations.d.ts.map +1 -0
  178. package/dist/esm/operationsInterfaces/commitmentAssociations.js +9 -0
  179. package/dist/esm/operationsInterfaces/commitmentAssociations.js.map +1 -0
  180. package/dist/esm/operationsInterfaces/commitmentPlans.d.ts +48 -0
  181. package/dist/esm/operationsInterfaces/commitmentPlans.d.ts.map +1 -0
  182. package/dist/esm/operationsInterfaces/commitmentPlans.js +9 -0
  183. package/dist/esm/operationsInterfaces/commitmentPlans.js.map +1 -0
  184. package/dist/esm/operationsInterfaces/index.d.ts +6 -0
  185. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  186. package/dist/esm/operationsInterfaces/index.js +13 -0
  187. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  188. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  189. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  190. package/dist/esm/operationsInterfaces/operations.js +9 -0
  191. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  192. package/dist/esm/operationsInterfaces/skus.d.ts +11 -0
  193. package/dist/esm/operationsInterfaces/skus.d.ts.map +1 -0
  194. package/dist/esm/operationsInterfaces/skus.js +9 -0
  195. package/dist/esm/operationsInterfaces/skus.js.map +1 -0
  196. package/dist/esm/operationsInterfaces/usageHistory.d.ts +13 -0
  197. package/dist/esm/operationsInterfaces/usageHistory.d.ts.map +1 -0
  198. package/dist/esm/operationsInterfaces/usageHistory.js +9 -0
  199. package/dist/esm/operationsInterfaces/usageHistory.js.map +1 -0
  200. package/dist/esm/package.json +3 -0
  201. package/dist/esm/pagingHelper.d.ts +13 -0
  202. package/dist/esm/pagingHelper.d.ts.map +1 -0
  203. package/dist/esm/pagingHelper.js +32 -0
  204. package/dist/esm/pagingHelper.js.map +1 -0
  205. package/dist/react-native/azureMLCommitmentPlansManagementClient.d.ts +24 -0
  206. package/dist/react-native/azureMLCommitmentPlansManagementClient.d.ts.map +1 -0
  207. package/dist/react-native/azureMLCommitmentPlansManagementClient.js +101 -0
  208. package/dist/react-native/azureMLCommitmentPlansManagementClient.js.map +1 -0
  209. package/dist/react-native/index.d.ts +5 -0
  210. package/dist/react-native/index.d.ts.map +1 -0
  211. package/dist/react-native/index.js +13 -0
  212. package/dist/react-native/index.js.map +1 -0
  213. package/dist/react-native/models/index.d.ts +529 -0
  214. package/dist/react-native/models/index.d.ts.map +1 -0
  215. package/dist/react-native/models/index.js +34 -0
  216. package/dist/react-native/models/index.js.map +1 -0
  217. package/dist/react-native/models/mappers.d.ts +24 -0
  218. package/dist/react-native/models/mappers.d.ts.map +1 -0
  219. package/dist/react-native/models/mappers.js +741 -0
  220. package/dist/react-native/models/mappers.js.map +1 -0
  221. package/dist/react-native/models/parameters.d.ts +15 -0
  222. package/dist/react-native/models/parameters.d.ts.map +1 -0
  223. package/dist/react-native/models/parameters.js +125 -0
  224. package/dist/react-native/models/parameters.js.map +1 -0
  225. package/dist/react-native/operations/commitmentAssociations.d.ts +55 -0
  226. package/dist/react-native/operations/commitmentAssociations.d.ts.map +1 -0
  227. package/dist/react-native/operations/commitmentAssociations.js +217 -0
  228. package/dist/react-native/operations/commitmentAssociations.js.map +1 -0
  229. package/dist/react-native/operations/commitmentPlans.d.ts +84 -0
  230. package/dist/react-native/operations/commitmentPlans.d.ts.map +1 -0
  231. package/dist/react-native/operations/commitmentPlans.js +359 -0
  232. package/dist/react-native/operations/commitmentPlans.js.map +1 -0
  233. package/dist/react-native/operations/index.d.ts +6 -0
  234. package/dist/react-native/operations/index.d.ts.map +1 -0
  235. package/dist/react-native/operations/index.js +13 -0
  236. package/dist/react-native/operations/index.js.map +1 -0
  237. package/dist/react-native/operations/operations.d.ts +26 -0
  238. package/dist/react-native/operations/operations.d.ts.map +1 -0
  239. package/dist/react-native/operations/operations.js +93 -0
  240. package/dist/react-native/operations/operations.js.map +1 -0
  241. package/dist/react-native/operations/skus.d.ts +26 -0
  242. package/dist/react-native/operations/skus.d.ts.map +1 -0
  243. package/dist/react-native/operations/skus.js +93 -0
  244. package/dist/react-native/operations/skus.js.map +1 -0
  245. package/dist/react-native/operations/usageHistory.d.ts +38 -0
  246. package/dist/react-native/operations/usageHistory.d.ts.map +1 -0
  247. package/dist/react-native/operations/usageHistory.js +145 -0
  248. package/dist/react-native/operations/usageHistory.js.map +1 -0
  249. package/dist/react-native/operationsInterfaces/commitmentAssociations.d.ts +30 -0
  250. package/dist/react-native/operationsInterfaces/commitmentAssociations.d.ts.map +1 -0
  251. package/dist/react-native/operationsInterfaces/commitmentAssociations.js +9 -0
  252. package/dist/react-native/operationsInterfaces/commitmentAssociations.js.map +1 -0
  253. package/dist/react-native/operationsInterfaces/commitmentPlans.d.ts +48 -0
  254. package/dist/react-native/operationsInterfaces/commitmentPlans.d.ts.map +1 -0
  255. package/dist/react-native/operationsInterfaces/commitmentPlans.js +9 -0
  256. package/dist/react-native/operationsInterfaces/commitmentPlans.js.map +1 -0
  257. package/dist/react-native/operationsInterfaces/index.d.ts +6 -0
  258. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  259. package/dist/react-native/operationsInterfaces/index.js +13 -0
  260. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  261. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  262. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  263. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  264. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  265. package/dist/react-native/operationsInterfaces/skus.d.ts +11 -0
  266. package/dist/react-native/operationsInterfaces/skus.d.ts.map +1 -0
  267. package/dist/react-native/operationsInterfaces/skus.js +9 -0
  268. package/dist/react-native/operationsInterfaces/skus.js.map +1 -0
  269. package/dist/react-native/operationsInterfaces/usageHistory.d.ts +13 -0
  270. package/dist/react-native/operationsInterfaces/usageHistory.d.ts.map +1 -0
  271. package/dist/react-native/operationsInterfaces/usageHistory.js +9 -0
  272. package/dist/react-native/operationsInterfaces/usageHistory.js.map +1 -0
  273. package/dist/react-native/package.json +3 -0
  274. package/dist/react-native/pagingHelper.d.ts +13 -0
  275. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  276. package/dist/react-native/pagingHelper.js +32 -0
  277. package/dist/react-native/pagingHelper.js.map +1 -0
  278. package/package.json +70 -41
  279. package/dist/index.js +0 -1972
  280. package/dist/index.js.map +0 -1
  281. package/dist/index.min.js +0 -1
  282. package/dist/index.min.js.map +0 -1
  283. package/dist-esm/src/azureMLCommitmentPlansManagementClient.d.ts.map +0 -1
  284. package/dist-esm/src/azureMLCommitmentPlansManagementClient.js.map +0 -1
  285. package/dist-esm/src/index.d.ts +0 -5
  286. package/dist-esm/src/index.js.map +0 -1
  287. package/dist-esm/src/models/index.js.map +0 -1
  288. package/dist-esm/src/models/mappers.js.map +0 -1
  289. package/dist-esm/src/models/parameters.js.map +0 -1
  290. package/dist-esm/src/operations/commitmentAssociations.d.ts.map +0 -1
  291. package/dist-esm/src/operations/commitmentAssociations.js.map +0 -1
  292. package/dist-esm/src/operations/commitmentPlans.d.ts.map +0 -1
  293. package/dist-esm/src/operations/commitmentPlans.js.map +0 -1
  294. package/dist-esm/src/operations/index.d.ts +0 -6
  295. package/dist-esm/src/operations/index.js.map +0 -1
  296. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  297. package/dist-esm/src/operations/operations.js.map +0 -1
  298. package/dist-esm/src/operations/skus.d.ts.map +0 -1
  299. package/dist-esm/src/operations/skus.js.map +0 -1
  300. package/dist-esm/src/operations/usageHistory.d.ts.map +0 -1
  301. package/dist-esm/src/operations/usageHistory.js.map +0 -1
  302. package/dist-esm/src/operationsInterfaces/commitmentAssociations.d.ts.map +0 -1
  303. package/dist-esm/src/operationsInterfaces/commitmentAssociations.js.map +0 -1
  304. package/dist-esm/src/operationsInterfaces/commitmentPlans.d.ts.map +0 -1
  305. package/dist-esm/src/operationsInterfaces/commitmentPlans.js.map +0 -1
  306. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -6
  307. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  308. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  309. package/dist-esm/src/operationsInterfaces/skus.js.map +0 -1
  310. package/dist-esm/src/operationsInterfaces/usageHistory.d.ts.map +0 -1
  311. package/dist-esm/src/operationsInterfaces/usageHistory.js.map +0 -1
  312. package/dist-esm/src/pagingHelper.js.map +0 -1
  313. package/dist-esm/test/sampleTest.d.ts +0 -2
  314. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  315. package/dist-esm/test/sampleTest.js +0 -42
  316. package/dist-esm/test/sampleTest.js.map +0 -1
  317. package/src/azureMLCommitmentPlansManagementClient.ts +0 -160
  318. package/src/models/index.ts +0 -586
  319. package/src/models/mappers.ts +0 -773
  320. package/src/models/parameters.ts +0 -147
  321. package/src/operations/commitmentAssociations.ts +0 -291
  322. package/src/operations/commitmentPlans.ts +0 -449
  323. package/src/operations/index.ts +0 -13
  324. package/src/operations/operations.ts +0 -100
  325. package/src/operations/skus.ts +0 -99
  326. package/src/operations/usageHistory.ts +0 -193
  327. package/src/operationsInterfaces/commitmentAssociations.ts +0 -62
  328. package/src/operationsInterfaces/commitmentPlans.ts +0 -92
  329. package/src/operationsInterfaces/index.ts +0 -13
  330. package/src/operationsInterfaces/operations.ts +0 -22
  331. package/src/operationsInterfaces/skus.ts +0 -22
  332. package/src/operationsInterfaces/usageHistory.ts +0 -26
  333. package/src/pagingHelper.ts +0 -39
  334. package/tsconfig.json +0 -33
  335. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  336. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  337. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  338. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  339. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  340. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  341. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  342. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  343. /package/{dist-esm/src → dist/browser}/operationsInterfaces/commitmentAssociations.js +0 -0
  344. /package/{dist-esm/src → dist/browser}/operationsInterfaces/commitmentPlans.js +0 -0
  345. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  346. /package/{dist-esm/src → dist/browser}/operationsInterfaces/skus.js +0 -0
  347. /package/{dist-esm/src → dist/browser}/operationsInterfaces/usageHistory.js +0 -0
  348. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  349. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  350. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
  351. /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
@@ -1,449 +0,0 @@
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
-
9
- import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
- import { setContinuationToken } from "../pagingHelper";
11
- import { CommitmentPlans } from "../operationsInterfaces";
12
- import * as coreClient from "@azure/core-client";
13
- import * as Mappers from "../models/mappers";
14
- import * as Parameters from "../models/parameters";
15
- import { AzureMLCommitmentPlansManagementClient } from "../azureMLCommitmentPlansManagementClient";
16
- import {
17
- CommitmentPlan,
18
- CommitmentPlansListNextOptionalParams,
19
- CommitmentPlansListOptionalParams,
20
- CommitmentPlansListResponse,
21
- CommitmentPlansListInResourceGroupNextOptionalParams,
22
- CommitmentPlansListInResourceGroupOptionalParams,
23
- CommitmentPlansListInResourceGroupResponse,
24
- CommitmentPlansGetOptionalParams,
25
- CommitmentPlansGetResponse,
26
- CommitmentPlansCreateOrUpdateOptionalParams,
27
- CommitmentPlansCreateOrUpdateResponse,
28
- CommitmentPlansRemoveOptionalParams,
29
- CommitmentPlanPatchPayload,
30
- CommitmentPlansPatchOptionalParams,
31
- CommitmentPlansPatchResponse,
32
- CommitmentPlansListNextResponse,
33
- CommitmentPlansListInResourceGroupNextResponse
34
- } from "../models";
35
-
36
- /// <reference lib="esnext.asynciterable" />
37
- /** Class containing CommitmentPlans operations. */
38
- export class CommitmentPlansImpl implements CommitmentPlans {
39
- private readonly client: AzureMLCommitmentPlansManagementClient;
40
-
41
- /**
42
- * Initialize a new instance of the class CommitmentPlans class.
43
- * @param client Reference to the service client
44
- */
45
- constructor(client: AzureMLCommitmentPlansManagementClient) {
46
- this.client = client;
47
- }
48
-
49
- /**
50
- * Retrieve all Azure ML commitment plans in a subscription.
51
- * @param options The options parameters.
52
- */
53
- public list(
54
- options?: CommitmentPlansListOptionalParams
55
- ): PagedAsyncIterableIterator<CommitmentPlan> {
56
- const iter = this.listPagingAll(options);
57
- return {
58
- next() {
59
- return iter.next();
60
- },
61
- [Symbol.asyncIterator]() {
62
- return this;
63
- },
64
- byPage: (settings?: PageSettings) => {
65
- if (settings?.maxPageSize) {
66
- throw new Error("maxPageSize is not supported by this operation.");
67
- }
68
- return this.listPagingPage(options, settings);
69
- }
70
- };
71
- }
72
-
73
- private async *listPagingPage(
74
- options?: CommitmentPlansListOptionalParams,
75
- settings?: PageSettings
76
- ): AsyncIterableIterator<CommitmentPlan[]> {
77
- let result: CommitmentPlansListResponse;
78
- let continuationToken = settings?.continuationToken;
79
- if (!continuationToken) {
80
- result = await this._list(options);
81
- let page = result.value || [];
82
- continuationToken = result.nextLink;
83
- setContinuationToken(page, continuationToken);
84
- yield page;
85
- }
86
- while (continuationToken) {
87
- result = await this._listNext(continuationToken, options);
88
- continuationToken = result.nextLink;
89
- let page = result.value || [];
90
- setContinuationToken(page, continuationToken);
91
- yield page;
92
- }
93
- }
94
-
95
- private async *listPagingAll(
96
- options?: CommitmentPlansListOptionalParams
97
- ): AsyncIterableIterator<CommitmentPlan> {
98
- for await (const page of this.listPagingPage(options)) {
99
- yield* page;
100
- }
101
- }
102
-
103
- /**
104
- * Retrieve all Azure ML commitment plans in a resource group.
105
- * @param resourceGroupName The resource group name.
106
- * @param options The options parameters.
107
- */
108
- public listInResourceGroup(
109
- resourceGroupName: string,
110
- options?: CommitmentPlansListInResourceGroupOptionalParams
111
- ): PagedAsyncIterableIterator<CommitmentPlan> {
112
- const iter = this.listInResourceGroupPagingAll(resourceGroupName, options);
113
- return {
114
- next() {
115
- return iter.next();
116
- },
117
- [Symbol.asyncIterator]() {
118
- return this;
119
- },
120
- byPage: (settings?: PageSettings) => {
121
- if (settings?.maxPageSize) {
122
- throw new Error("maxPageSize is not supported by this operation.");
123
- }
124
- return this.listInResourceGroupPagingPage(
125
- resourceGroupName,
126
- options,
127
- settings
128
- );
129
- }
130
- };
131
- }
132
-
133
- private async *listInResourceGroupPagingPage(
134
- resourceGroupName: string,
135
- options?: CommitmentPlansListInResourceGroupOptionalParams,
136
- settings?: PageSettings
137
- ): AsyncIterableIterator<CommitmentPlan[]> {
138
- let result: CommitmentPlansListInResourceGroupResponse;
139
- let continuationToken = settings?.continuationToken;
140
- if (!continuationToken) {
141
- result = await this._listInResourceGroup(resourceGroupName, options);
142
- let page = result.value || [];
143
- continuationToken = result.nextLink;
144
- setContinuationToken(page, continuationToken);
145
- yield page;
146
- }
147
- while (continuationToken) {
148
- result = await this._listInResourceGroupNext(
149
- resourceGroupName,
150
- continuationToken,
151
- options
152
- );
153
- continuationToken = result.nextLink;
154
- let page = result.value || [];
155
- setContinuationToken(page, continuationToken);
156
- yield page;
157
- }
158
- }
159
-
160
- private async *listInResourceGroupPagingAll(
161
- resourceGroupName: string,
162
- options?: CommitmentPlansListInResourceGroupOptionalParams
163
- ): AsyncIterableIterator<CommitmentPlan> {
164
- for await (const page of this.listInResourceGroupPagingPage(
165
- resourceGroupName,
166
- options
167
- )) {
168
- yield* page;
169
- }
170
- }
171
-
172
- /**
173
- * Retrieve an Azure ML commitment plan by its subscription, resource group and name.
174
- * @param resourceGroupName The resource group name.
175
- * @param commitmentPlanName The Azure ML commitment plan name.
176
- * @param options The options parameters.
177
- */
178
- get(
179
- resourceGroupName: string,
180
- commitmentPlanName: string,
181
- options?: CommitmentPlansGetOptionalParams
182
- ): Promise<CommitmentPlansGetResponse> {
183
- return this.client.sendOperationRequest(
184
- { resourceGroupName, commitmentPlanName, options },
185
- getOperationSpec
186
- );
187
- }
188
-
189
- /**
190
- * Create a new Azure ML commitment plan resource or updates an existing one.
191
- * @param resourceGroupName The resource group name.
192
- * @param commitmentPlanName The Azure ML commitment plan name.
193
- * @param createOrUpdatePayload The payload to create or update the Azure ML commitment plan.
194
- * @param options The options parameters.
195
- */
196
- createOrUpdate(
197
- resourceGroupName: string,
198
- commitmentPlanName: string,
199
- createOrUpdatePayload: CommitmentPlan,
200
- options?: CommitmentPlansCreateOrUpdateOptionalParams
201
- ): Promise<CommitmentPlansCreateOrUpdateResponse> {
202
- return this.client.sendOperationRequest(
203
- { resourceGroupName, commitmentPlanName, createOrUpdatePayload, options },
204
- createOrUpdateOperationSpec
205
- );
206
- }
207
-
208
- /**
209
- * Remove an existing Azure ML commitment plan.
210
- * @param resourceGroupName The resource group name.
211
- * @param commitmentPlanName The Azure ML commitment plan name.
212
- * @param options The options parameters.
213
- */
214
- remove(
215
- resourceGroupName: string,
216
- commitmentPlanName: string,
217
- options?: CommitmentPlansRemoveOptionalParams
218
- ): Promise<void> {
219
- return this.client.sendOperationRequest(
220
- { resourceGroupName, commitmentPlanName, options },
221
- removeOperationSpec
222
- );
223
- }
224
-
225
- /**
226
- * Patch an existing Azure ML commitment plan resource.
227
- * @param resourceGroupName The resource group name.
228
- * @param commitmentPlanName The Azure ML commitment plan name.
229
- * @param patchPayload The payload to use to patch the Azure ML commitment plan. Only tags and SKU may
230
- * be modified on an existing commitment plan.
231
- * @param options The options parameters.
232
- */
233
- patch(
234
- resourceGroupName: string,
235
- commitmentPlanName: string,
236
- patchPayload: CommitmentPlanPatchPayload,
237
- options?: CommitmentPlansPatchOptionalParams
238
- ): Promise<CommitmentPlansPatchResponse> {
239
- return this.client.sendOperationRequest(
240
- { resourceGroupName, commitmentPlanName, patchPayload, options },
241
- patchOperationSpec
242
- );
243
- }
244
-
245
- /**
246
- * Retrieve all Azure ML commitment plans in a subscription.
247
- * @param options The options parameters.
248
- */
249
- private _list(
250
- options?: CommitmentPlansListOptionalParams
251
- ): Promise<CommitmentPlansListResponse> {
252
- return this.client.sendOperationRequest({ options }, listOperationSpec);
253
- }
254
-
255
- /**
256
- * Retrieve all Azure ML commitment plans in a resource group.
257
- * @param resourceGroupName The resource group name.
258
- * @param options The options parameters.
259
- */
260
- private _listInResourceGroup(
261
- resourceGroupName: string,
262
- options?: CommitmentPlansListInResourceGroupOptionalParams
263
- ): Promise<CommitmentPlansListInResourceGroupResponse> {
264
- return this.client.sendOperationRequest(
265
- { resourceGroupName, options },
266
- listInResourceGroupOperationSpec
267
- );
268
- }
269
-
270
- /**
271
- * ListNext
272
- * @param nextLink The nextLink from the previous successful call to the List method.
273
- * @param options The options parameters.
274
- */
275
- private _listNext(
276
- nextLink: string,
277
- options?: CommitmentPlansListNextOptionalParams
278
- ): Promise<CommitmentPlansListNextResponse> {
279
- return this.client.sendOperationRequest(
280
- { nextLink, options },
281
- listNextOperationSpec
282
- );
283
- }
284
-
285
- /**
286
- * ListInResourceGroupNext
287
- * @param resourceGroupName The resource group name.
288
- * @param nextLink The nextLink from the previous successful call to the ListInResourceGroup method.
289
- * @param options The options parameters.
290
- */
291
- private _listInResourceGroupNext(
292
- resourceGroupName: string,
293
- nextLink: string,
294
- options?: CommitmentPlansListInResourceGroupNextOptionalParams
295
- ): Promise<CommitmentPlansListInResourceGroupNextResponse> {
296
- return this.client.sendOperationRequest(
297
- { resourceGroupName, nextLink, options },
298
- listInResourceGroupNextOperationSpec
299
- );
300
- }
301
- }
302
- // Operation Specifications
303
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
304
-
305
- const getOperationSpec: coreClient.OperationSpec = {
306
- path:
307
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}",
308
- httpMethod: "GET",
309
- responses: {
310
- 200: {
311
- bodyMapper: Mappers.CommitmentPlan
312
- }
313
- },
314
- queryParameters: [Parameters.apiVersion],
315
- urlParameters: [
316
- Parameters.$host,
317
- Parameters.subscriptionId,
318
- Parameters.resourceGroupName,
319
- Parameters.commitmentPlanName
320
- ],
321
- headerParameters: [Parameters.accept],
322
- serializer
323
- };
324
- const createOrUpdateOperationSpec: coreClient.OperationSpec = {
325
- path:
326
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}",
327
- httpMethod: "PUT",
328
- responses: {
329
- 200: {
330
- bodyMapper: Mappers.CommitmentPlan
331
- },
332
- 201: {
333
- bodyMapper: Mappers.CommitmentPlan
334
- }
335
- },
336
- requestBody: Parameters.createOrUpdatePayload,
337
- queryParameters: [Parameters.apiVersion],
338
- urlParameters: [
339
- Parameters.$host,
340
- Parameters.subscriptionId,
341
- Parameters.resourceGroupName,
342
- Parameters.commitmentPlanName
343
- ],
344
- headerParameters: [Parameters.accept, Parameters.contentType],
345
- mediaType: "json",
346
- serializer
347
- };
348
- const removeOperationSpec: coreClient.OperationSpec = {
349
- path:
350
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}",
351
- httpMethod: "DELETE",
352
- responses: { 200: {} },
353
- queryParameters: [Parameters.apiVersion],
354
- urlParameters: [
355
- Parameters.$host,
356
- Parameters.subscriptionId,
357
- Parameters.resourceGroupName,
358
- Parameters.commitmentPlanName
359
- ],
360
- serializer
361
- };
362
- const patchOperationSpec: coreClient.OperationSpec = {
363
- path:
364
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}",
365
- httpMethod: "PATCH",
366
- responses: {
367
- 200: {
368
- bodyMapper: Mappers.CommitmentPlan
369
- }
370
- },
371
- requestBody: Parameters.patchPayload,
372
- queryParameters: [Parameters.apiVersion],
373
- urlParameters: [
374
- Parameters.$host,
375
- Parameters.subscriptionId,
376
- Parameters.resourceGroupName,
377
- Parameters.commitmentPlanName
378
- ],
379
- headerParameters: [Parameters.accept, Parameters.contentType],
380
- mediaType: "json",
381
- serializer
382
- };
383
- const listOperationSpec: coreClient.OperationSpec = {
384
- path:
385
- "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/commitmentPlans",
386
- httpMethod: "GET",
387
- responses: {
388
- 200: {
389
- bodyMapper: Mappers.CommitmentPlanListResult
390
- }
391
- },
392
- queryParameters: [Parameters.apiVersion, Parameters.skipToken],
393
- urlParameters: [Parameters.$host, Parameters.subscriptionId],
394
- headerParameters: [Parameters.accept],
395
- serializer
396
- };
397
- const listInResourceGroupOperationSpec: coreClient.OperationSpec = {
398
- path:
399
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans",
400
- httpMethod: "GET",
401
- responses: {
402
- 200: {
403
- bodyMapper: Mappers.CommitmentPlanListResult
404
- }
405
- },
406
- queryParameters: [Parameters.apiVersion, Parameters.skipToken],
407
- urlParameters: [
408
- Parameters.$host,
409
- Parameters.subscriptionId,
410
- Parameters.resourceGroupName
411
- ],
412
- headerParameters: [Parameters.accept],
413
- serializer
414
- };
415
- const listNextOperationSpec: coreClient.OperationSpec = {
416
- path: "{nextLink}",
417
- httpMethod: "GET",
418
- responses: {
419
- 200: {
420
- bodyMapper: Mappers.CommitmentPlanListResult
421
- }
422
- },
423
- queryParameters: [Parameters.apiVersion, Parameters.skipToken],
424
- urlParameters: [
425
- Parameters.$host,
426
- Parameters.subscriptionId,
427
- Parameters.nextLink
428
- ],
429
- headerParameters: [Parameters.accept],
430
- serializer
431
- };
432
- const listInResourceGroupNextOperationSpec: coreClient.OperationSpec = {
433
- path: "{nextLink}",
434
- httpMethod: "GET",
435
- responses: {
436
- 200: {
437
- bodyMapper: Mappers.CommitmentPlanListResult
438
- }
439
- },
440
- queryParameters: [Parameters.apiVersion, Parameters.skipToken],
441
- urlParameters: [
442
- Parameters.$host,
443
- Parameters.subscriptionId,
444
- Parameters.resourceGroupName,
445
- Parameters.nextLink
446
- ],
447
- headerParameters: [Parameters.accept],
448
- serializer
449
- };
@@ -1,13 +0,0 @@
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
-
9
- export * from "./operations";
10
- export * from "./skus";
11
- export * from "./commitmentAssociations";
12
- export * from "./commitmentPlans";
13
- export * from "./usageHistory";
@@ -1,100 +0,0 @@
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
-
9
- import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
- import { Operations } from "../operationsInterfaces";
11
- import * as coreClient from "@azure/core-client";
12
- import * as Mappers from "../models/mappers";
13
- import * as Parameters from "../models/parameters";
14
- import { AzureMLCommitmentPlansManagementClient } from "../azureMLCommitmentPlansManagementClient";
15
- import {
16
- OperationEntity,
17
- OperationsListOptionalParams,
18
- OperationsListResponse
19
- } from "../models";
20
-
21
- /// <reference lib="esnext.asynciterable" />
22
- /** Class containing Operations operations. */
23
- export class OperationsImpl implements Operations {
24
- private readonly client: AzureMLCommitmentPlansManagementClient;
25
-
26
- /**
27
- * Initialize a new instance of the class Operations class.
28
- * @param client Reference to the service client
29
- */
30
- constructor(client: AzureMLCommitmentPlansManagementClient) {
31
- this.client = client;
32
- }
33
-
34
- /**
35
- * Lists all of the available Azure Machine Learning Studio Commitment Plan RP REST API operations.
36
- * @param options The options parameters.
37
- */
38
- public list(
39
- options?: OperationsListOptionalParams
40
- ): PagedAsyncIterableIterator<OperationEntity> {
41
- const iter = this.listPagingAll(options);
42
- return {
43
- next() {
44
- return iter.next();
45
- },
46
- [Symbol.asyncIterator]() {
47
- return this;
48
- },
49
- byPage: (settings?: PageSettings) => {
50
- if (settings?.maxPageSize) {
51
- throw new Error("maxPageSize is not supported by this operation.");
52
- }
53
- return this.listPagingPage(options, settings);
54
- }
55
- };
56
- }
57
-
58
- private async *listPagingPage(
59
- options?: OperationsListOptionalParams,
60
- _settings?: PageSettings
61
- ): AsyncIterableIterator<OperationEntity[]> {
62
- let result: OperationsListResponse;
63
- result = await this._list(options);
64
- yield result.value || [];
65
- }
66
-
67
- private async *listPagingAll(
68
- options?: OperationsListOptionalParams
69
- ): AsyncIterableIterator<OperationEntity> {
70
- for await (const page of this.listPagingPage(options)) {
71
- yield* page;
72
- }
73
- }
74
-
75
- /**
76
- * Lists all of the available Azure Machine Learning Studio Commitment Plan RP REST API operations.
77
- * @param options The options parameters.
78
- */
79
- private _list(
80
- options?: OperationsListOptionalParams
81
- ): Promise<OperationsListResponse> {
82
- return this.client.sendOperationRequest({ options }, listOperationSpec);
83
- }
84
- }
85
- // Operation Specifications
86
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
87
-
88
- const listOperationSpec: coreClient.OperationSpec = {
89
- path: "/providers/Microsoft.MachineLearning/operations",
90
- httpMethod: "GET",
91
- responses: {
92
- 200: {
93
- bodyMapper: Mappers.OperationEntityListResult
94
- }
95
- },
96
- queryParameters: [Parameters.apiVersion],
97
- urlParameters: [Parameters.$host],
98
- headerParameters: [Parameters.accept],
99
- serializer
100
- };
@@ -1,99 +0,0 @@
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
-
9
- import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
- import { Skus } from "../operationsInterfaces";
11
- import * as coreClient from "@azure/core-client";
12
- import * as Mappers from "../models/mappers";
13
- import * as Parameters from "../models/parameters";
14
- import { AzureMLCommitmentPlansManagementClient } from "../azureMLCommitmentPlansManagementClient";
15
- import {
16
- CatalogSku,
17
- SkusListOptionalParams,
18
- SkusListResponse
19
- } from "../models";
20
-
21
- /// <reference lib="esnext.asynciterable" />
22
- /** Class containing Skus operations. */
23
- export class SkusImpl implements Skus {
24
- private readonly client: AzureMLCommitmentPlansManagementClient;
25
-
26
- /**
27
- * Initialize a new instance of the class Skus class.
28
- * @param client Reference to the service client
29
- */
30
- constructor(client: AzureMLCommitmentPlansManagementClient) {
31
- this.client = client;
32
- }
33
-
34
- /**
35
- * Lists the available commitment plan SKUs.
36
- * @param options The options parameters.
37
- */
38
- public list(
39
- options?: SkusListOptionalParams
40
- ): PagedAsyncIterableIterator<CatalogSku> {
41
- const iter = this.listPagingAll(options);
42
- return {
43
- next() {
44
- return iter.next();
45
- },
46
- [Symbol.asyncIterator]() {
47
- return this;
48
- },
49
- byPage: (settings?: PageSettings) => {
50
- if (settings?.maxPageSize) {
51
- throw new Error("maxPageSize is not supported by this operation.");
52
- }
53
- return this.listPagingPage(options, settings);
54
- }
55
- };
56
- }
57
-
58
- private async *listPagingPage(
59
- options?: SkusListOptionalParams,
60
- _settings?: PageSettings
61
- ): AsyncIterableIterator<CatalogSku[]> {
62
- let result: SkusListResponse;
63
- result = await this._list(options);
64
- yield result.value || [];
65
- }
66
-
67
- private async *listPagingAll(
68
- options?: SkusListOptionalParams
69
- ): AsyncIterableIterator<CatalogSku> {
70
- for await (const page of this.listPagingPage(options)) {
71
- yield* page;
72
- }
73
- }
74
-
75
- /**
76
- * Lists the available commitment plan SKUs.
77
- * @param options The options parameters.
78
- */
79
- private _list(options?: SkusListOptionalParams): Promise<SkusListResponse> {
80
- return this.client.sendOperationRequest({ options }, listOperationSpec);
81
- }
82
- }
83
- // Operation Specifications
84
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
85
-
86
- const listOperationSpec: coreClient.OperationSpec = {
87
- path:
88
- "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/skus",
89
- httpMethod: "GET",
90
- responses: {
91
- 200: {
92
- bodyMapper: Mappers.SkuListResult
93
- }
94
- },
95
- queryParameters: [Parameters.apiVersion],
96
- urlParameters: [Parameters.$host, Parameters.subscriptionId],
97
- headerParameters: [Parameters.accept],
98
- serializer
99
- };