@azure/arm-commitmentplans 2.0.0-beta.1 → 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 (356) hide show
  1. package/CHANGELOG.md +6 -4
  2. package/LICENSE +4 -4
  3. package/README.md +33 -12
  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 +97 -74
  289. package/review/{arm-commitmentplans.api.md → arm-commitmentplans-node.api.md} +7 -11
  290. package/LICENSE.txt +0 -21
  291. package/dist/index.js +0 -1794
  292. package/dist/index.js.map +0 -1
  293. package/dist/index.min.js +0 -1
  294. package/dist/index.min.js.map +0 -1
  295. package/dist-esm/src/azureMLCommitmentPlansManagementClient.d.ts.map +0 -1
  296. package/dist-esm/src/azureMLCommitmentPlansManagementClient.js +0 -55
  297. package/dist-esm/src/azureMLCommitmentPlansManagementClient.js.map +0 -1
  298. package/dist-esm/src/index.d.ts +0 -5
  299. package/dist-esm/src/index.d.ts.map +0 -1
  300. package/dist-esm/src/index.js.map +0 -1
  301. package/dist-esm/src/models/index.js.map +0 -1
  302. package/dist-esm/src/models/mappers.js.map +0 -1
  303. package/dist-esm/src/models/parameters.js.map +0 -1
  304. package/dist-esm/src/operations/commitmentAssociations.d.ts.map +0 -1
  305. package/dist-esm/src/operations/commitmentAssociations.js.map +0 -1
  306. package/dist-esm/src/operations/commitmentPlans.d.ts.map +0 -1
  307. package/dist-esm/src/operations/commitmentPlans.js.map +0 -1
  308. package/dist-esm/src/operations/index.d.ts +0 -6
  309. package/dist-esm/src/operations/index.js.map +0 -1
  310. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  311. package/dist-esm/src/operations/operations.js.map +0 -1
  312. package/dist-esm/src/operations/skus.d.ts.map +0 -1
  313. package/dist-esm/src/operations/skus.js.map +0 -1
  314. package/dist-esm/src/operations/usageHistory.d.ts.map +0 -1
  315. package/dist-esm/src/operations/usageHistory.js.map +0 -1
  316. package/dist-esm/src/operationsInterfaces/commitmentAssociations.d.ts.map +0 -1
  317. package/dist-esm/src/operationsInterfaces/commitmentAssociations.js.map +0 -1
  318. package/dist-esm/src/operationsInterfaces/commitmentPlans.d.ts.map +0 -1
  319. package/dist-esm/src/operationsInterfaces/commitmentPlans.js.map +0 -1
  320. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -6
  321. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  322. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  323. package/dist-esm/src/operationsInterfaces/skus.js.map +0 -1
  324. package/dist-esm/src/operationsInterfaces/usageHistory.d.ts.map +0 -1
  325. package/dist-esm/src/operationsInterfaces/usageHistory.js.map +0 -1
  326. package/dist-esm/test/sampleTest.d.ts +0 -2
  327. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  328. package/dist-esm/test/sampleTest.js +0 -40
  329. package/dist-esm/test/sampleTest.js.map +0 -1
  330. package/rollup.config.js +0 -188
  331. package/src/azureMLCommitmentPlansManagementClient.ts +0 -95
  332. package/src/models/index.ts +0 -579
  333. package/src/models/mappers.ts +0 -773
  334. package/src/models/parameters.ts +0 -147
  335. package/src/operations/commitmentAssociations.ts +0 -281
  336. package/src/operations/commitmentPlans.ts +0 -420
  337. package/src/operations/index.ts +0 -13
  338. package/src/operations/operations.ts +0 -95
  339. package/src/operations/skus.ts +0 -94
  340. package/src/operations/usageHistory.ts +0 -183
  341. package/src/operationsInterfaces/commitmentAssociations.ts +0 -62
  342. package/src/operationsInterfaces/commitmentPlans.ts +0 -92
  343. package/src/operationsInterfaces/index.ts +0 -13
  344. package/src/operationsInterfaces/operations.ts +0 -22
  345. package/src/operationsInterfaces/skus.ts +0 -22
  346. package/src/operationsInterfaces/usageHistory.ts +0 -26
  347. package/tsconfig.json +0 -20
  348. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  349. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  350. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  351. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  352. /package/{dist-esm/src → dist/browser}/operationsInterfaces/commitmentAssociations.js +0 -0
  353. /package/{dist-esm/src → dist/browser}/operationsInterfaces/commitmentPlans.js +0 -0
  354. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  355. /package/{dist-esm/src → dist/browser}/operationsInterfaces/skus.js +0 -0
  356. /package/{dist-esm/src → dist/browser}/operationsInterfaces/usageHistory.js +0 -0
package/dist/index.js DELETED
@@ -1,1794 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var coreClient = require('@azure/core-client');
6
- var tslib = require('tslib');
7
-
8
- /*
9
- * Copyright (c) Microsoft Corporation.
10
- * Licensed under the MIT License.
11
- *
12
- * Code generated by Microsoft (R) AutoRest Code Generator.
13
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
14
- */
15
- (function (KnownSkuCapacityScaleType) {
16
- KnownSkuCapacityScaleType["Automatic"] = "Automatic";
17
- KnownSkuCapacityScaleType["Manual"] = "Manual";
18
- KnownSkuCapacityScaleType["None"] = "None";
19
- })(exports.KnownSkuCapacityScaleType || (exports.KnownSkuCapacityScaleType = {}));
20
- (function (KnownResourceSkuRestrictionsType) {
21
- KnownResourceSkuRestrictionsType["Location"] = "location";
22
- KnownResourceSkuRestrictionsType["Zone"] = "zone";
23
- })(exports.KnownResourceSkuRestrictionsType || (exports.KnownResourceSkuRestrictionsType = {}));
24
- (function (KnownResourceSkuRestrictionsReasonCode) {
25
- KnownResourceSkuRestrictionsReasonCode["QuotaId"] = "QuotaId";
26
- KnownResourceSkuRestrictionsReasonCode["NotAvailableForSubscription"] = "NotAvailableForSubscription";
27
- })(exports.KnownResourceSkuRestrictionsReasonCode || (exports.KnownResourceSkuRestrictionsReasonCode = {}));
28
-
29
- /*
30
- * Copyright (c) Microsoft Corporation.
31
- * Licensed under the MIT License.
32
- *
33
- * Code generated by Microsoft (R) AutoRest Code Generator.
34
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
35
- */
36
- const OperationEntityListResult = {
37
- type: {
38
- name: "Composite",
39
- className: "OperationEntityListResult",
40
- modelProperties: {
41
- value: {
42
- serializedName: "value",
43
- readOnly: true,
44
- type: {
45
- name: "Sequence",
46
- element: {
47
- type: {
48
- name: "Composite",
49
- className: "OperationEntity"
50
- }
51
- }
52
- }
53
- }
54
- }
55
- }
56
- };
57
- const OperationEntity = {
58
- type: {
59
- name: "Composite",
60
- className: "OperationEntity",
61
- modelProperties: {
62
- name: {
63
- serializedName: "name",
64
- readOnly: true,
65
- type: {
66
- name: "String"
67
- }
68
- },
69
- display: {
70
- serializedName: "display",
71
- type: {
72
- name: "Composite",
73
- className: "OperationDisplayInfo"
74
- }
75
- }
76
- }
77
- }
78
- };
79
- const OperationDisplayInfo = {
80
- type: {
81
- name: "Composite",
82
- className: "OperationDisplayInfo",
83
- modelProperties: {
84
- description: {
85
- serializedName: "description",
86
- readOnly: true,
87
- type: {
88
- name: "String"
89
- }
90
- },
91
- operation: {
92
- serializedName: "operation",
93
- readOnly: true,
94
- type: {
95
- name: "String"
96
- }
97
- },
98
- provider: {
99
- serializedName: "provider",
100
- readOnly: true,
101
- type: {
102
- name: "String"
103
- }
104
- },
105
- resource: {
106
- serializedName: "resource",
107
- readOnly: true,
108
- type: {
109
- name: "String"
110
- }
111
- }
112
- }
113
- }
114
- };
115
- const SkuListResult = {
116
- type: {
117
- name: "Composite",
118
- className: "SkuListResult",
119
- modelProperties: {
120
- value: {
121
- serializedName: "value",
122
- readOnly: true,
123
- type: {
124
- name: "Sequence",
125
- element: {
126
- type: {
127
- name: "Composite",
128
- className: "CatalogSku"
129
- }
130
- }
131
- }
132
- }
133
- }
134
- }
135
- };
136
- const CatalogSku = {
137
- type: {
138
- name: "Composite",
139
- className: "CatalogSku",
140
- modelProperties: {
141
- resourceType: {
142
- serializedName: "resourceType",
143
- readOnly: true,
144
- type: {
145
- name: "String"
146
- }
147
- },
148
- name: {
149
- serializedName: "name",
150
- readOnly: true,
151
- type: {
152
- name: "String"
153
- }
154
- },
155
- tier: {
156
- serializedName: "tier",
157
- readOnly: true,
158
- type: {
159
- name: "String"
160
- }
161
- },
162
- locations: {
163
- serializedName: "locations",
164
- readOnly: true,
165
- type: {
166
- name: "Sequence",
167
- element: {
168
- type: {
169
- name: "String"
170
- }
171
- }
172
- }
173
- },
174
- capacity: {
175
- serializedName: "capacity",
176
- type: {
177
- name: "Composite",
178
- className: "SkuCapacity"
179
- }
180
- },
181
- capabilities: {
182
- serializedName: "capabilities",
183
- readOnly: true,
184
- type: {
185
- name: "Sequence",
186
- element: {
187
- type: {
188
- name: "Composite",
189
- className: "SkuCapability"
190
- }
191
- }
192
- }
193
- },
194
- costs: {
195
- serializedName: "costs",
196
- readOnly: true,
197
- type: {
198
- name: "Sequence",
199
- element: {
200
- type: {
201
- name: "Composite",
202
- className: "SkuCost"
203
- }
204
- }
205
- }
206
- },
207
- restrictions: {
208
- serializedName: "restrictions",
209
- readOnly: true,
210
- type: {
211
- name: "Sequence",
212
- element: {
213
- type: {
214
- name: "Composite",
215
- className: "SkuRestrictions"
216
- }
217
- }
218
- }
219
- }
220
- }
221
- }
222
- };
223
- const SkuCapacity = {
224
- type: {
225
- name: "Composite",
226
- className: "SkuCapacity",
227
- modelProperties: {
228
- minimum: {
229
- serializedName: "minimum",
230
- readOnly: true,
231
- type: {
232
- name: "Number"
233
- }
234
- },
235
- maximum: {
236
- serializedName: "maximum",
237
- readOnly: true,
238
- type: {
239
- name: "Number"
240
- }
241
- },
242
- default: {
243
- serializedName: "default",
244
- readOnly: true,
245
- type: {
246
- name: "Number"
247
- }
248
- },
249
- scaleType: {
250
- serializedName: "scaleType",
251
- readOnly: true,
252
- type: {
253
- name: "String"
254
- }
255
- }
256
- }
257
- }
258
- };
259
- const SkuCapability = {
260
- type: {
261
- name: "Composite",
262
- className: "SkuCapability",
263
- modelProperties: {
264
- name: {
265
- serializedName: "name",
266
- readOnly: true,
267
- type: {
268
- name: "String"
269
- }
270
- },
271
- value: {
272
- serializedName: "value",
273
- readOnly: true,
274
- type: {
275
- name: "String"
276
- }
277
- }
278
- }
279
- }
280
- };
281
- const SkuCost = {
282
- type: {
283
- name: "Composite",
284
- className: "SkuCost",
285
- modelProperties: {
286
- meterID: {
287
- serializedName: "meterID",
288
- readOnly: true,
289
- type: {
290
- name: "String"
291
- }
292
- },
293
- quantity: {
294
- serializedName: "quantity",
295
- readOnly: true,
296
- type: {
297
- name: "Number"
298
- }
299
- },
300
- extendedUnit: {
301
- serializedName: "extendedUnit",
302
- readOnly: true,
303
- type: {
304
- name: "String"
305
- }
306
- }
307
- }
308
- }
309
- };
310
- const SkuRestrictions = {
311
- type: {
312
- name: "Composite",
313
- className: "SkuRestrictions",
314
- modelProperties: {
315
- type: {
316
- serializedName: "type",
317
- readOnly: true,
318
- type: {
319
- name: "String"
320
- }
321
- },
322
- values: {
323
- serializedName: "values",
324
- readOnly: true,
325
- type: {
326
- name: "Sequence",
327
- element: {
328
- type: {
329
- name: "String"
330
- }
331
- }
332
- }
333
- },
334
- reasonCode: {
335
- serializedName: "reasonCode",
336
- readOnly: true,
337
- type: {
338
- name: "String"
339
- }
340
- }
341
- }
342
- }
343
- };
344
- const CommitmentAssociationProperties = {
345
- type: {
346
- name: "Composite",
347
- className: "CommitmentAssociationProperties",
348
- modelProperties: {
349
- associatedResourceId: {
350
- serializedName: "associatedResourceId",
351
- readOnly: true,
352
- type: {
353
- name: "String"
354
- }
355
- },
356
- commitmentPlanId: {
357
- serializedName: "commitmentPlanId",
358
- readOnly: true,
359
- type: {
360
- name: "String"
361
- }
362
- },
363
- creationDate: {
364
- serializedName: "creationDate",
365
- readOnly: true,
366
- type: {
367
- name: "DateTime"
368
- }
369
- }
370
- }
371
- }
372
- };
373
- const Resource = {
374
- type: {
375
- name: "Composite",
376
- className: "Resource",
377
- modelProperties: {
378
- id: {
379
- serializedName: "id",
380
- readOnly: true,
381
- type: {
382
- name: "String"
383
- }
384
- },
385
- name: {
386
- serializedName: "name",
387
- readOnly: true,
388
- type: {
389
- name: "String"
390
- }
391
- },
392
- location: {
393
- serializedName: "location",
394
- required: true,
395
- type: {
396
- name: "String"
397
- }
398
- },
399
- type: {
400
- serializedName: "type",
401
- readOnly: true,
402
- type: {
403
- name: "String"
404
- }
405
- },
406
- tags: {
407
- serializedName: "tags",
408
- type: {
409
- name: "Dictionary",
410
- value: { type: { name: "String" } }
411
- }
412
- }
413
- }
414
- }
415
- };
416
- const CommitmentAssociationListResult = {
417
- type: {
418
- name: "Composite",
419
- className: "CommitmentAssociationListResult",
420
- modelProperties: {
421
- nextLink: {
422
- serializedName: "nextLink",
423
- type: {
424
- name: "String"
425
- }
426
- },
427
- value: {
428
- serializedName: "value",
429
- type: {
430
- name: "Sequence",
431
- element: {
432
- type: {
433
- name: "Composite",
434
- className: "CommitmentAssociation"
435
- }
436
- }
437
- }
438
- }
439
- }
440
- }
441
- };
442
- const MoveCommitmentAssociationRequest = {
443
- type: {
444
- name: "Composite",
445
- className: "MoveCommitmentAssociationRequest",
446
- modelProperties: {
447
- destinationPlanId: {
448
- serializedName: "destinationPlanId",
449
- type: {
450
- name: "String"
451
- }
452
- }
453
- }
454
- }
455
- };
456
- const CommitmentPlanProperties = {
457
- type: {
458
- name: "Composite",
459
- className: "CommitmentPlanProperties",
460
- modelProperties: {
461
- chargeForOverage: {
462
- serializedName: "chargeForOverage",
463
- readOnly: true,
464
- type: {
465
- name: "Boolean"
466
- }
467
- },
468
- chargeForPlan: {
469
- serializedName: "chargeForPlan",
470
- readOnly: true,
471
- type: {
472
- name: "Boolean"
473
- }
474
- },
475
- creationDate: {
476
- serializedName: "creationDate",
477
- readOnly: true,
478
- type: {
479
- name: "DateTime"
480
- }
481
- },
482
- includedQuantities: {
483
- serializedName: "includedQuantities",
484
- readOnly: true,
485
- type: {
486
- name: "Dictionary",
487
- value: { type: { name: "Composite", className: "PlanQuantity" } }
488
- }
489
- },
490
- maxAssociationLimit: {
491
- serializedName: "maxAssociationLimit",
492
- readOnly: true,
493
- type: {
494
- name: "Number"
495
- }
496
- },
497
- maxCapacityLimit: {
498
- serializedName: "maxCapacityLimit",
499
- readOnly: true,
500
- type: {
501
- name: "Number"
502
- }
503
- },
504
- minCapacityLimit: {
505
- serializedName: "minCapacityLimit",
506
- readOnly: true,
507
- type: {
508
- name: "Number"
509
- }
510
- },
511
- planMeter: {
512
- serializedName: "planMeter",
513
- readOnly: true,
514
- type: {
515
- name: "String"
516
- }
517
- },
518
- refillFrequencyInDays: {
519
- serializedName: "refillFrequencyInDays",
520
- readOnly: true,
521
- type: {
522
- name: "Number"
523
- }
524
- },
525
- suspendPlanOnOverage: {
526
- serializedName: "suspendPlanOnOverage",
527
- readOnly: true,
528
- type: {
529
- name: "Boolean"
530
- }
531
- }
532
- }
533
- }
534
- };
535
- const PlanQuantity = {
536
- type: {
537
- name: "Composite",
538
- className: "PlanQuantity",
539
- modelProperties: {
540
- allowance: {
541
- serializedName: "allowance",
542
- readOnly: true,
543
- type: {
544
- name: "Number"
545
- }
546
- },
547
- amount: {
548
- serializedName: "amount",
549
- readOnly: true,
550
- type: {
551
- name: "Number"
552
- }
553
- },
554
- includedQuantityMeter: {
555
- serializedName: "includedQuantityMeter",
556
- readOnly: true,
557
- type: {
558
- name: "String"
559
- }
560
- },
561
- overageMeter: {
562
- serializedName: "overageMeter",
563
- readOnly: true,
564
- type: {
565
- name: "String"
566
- }
567
- }
568
- }
569
- }
570
- };
571
- const ResourceSku = {
572
- type: {
573
- name: "Composite",
574
- className: "ResourceSku",
575
- modelProperties: {
576
- capacity: {
577
- serializedName: "capacity",
578
- type: {
579
- name: "Number"
580
- }
581
- },
582
- name: {
583
- serializedName: "name",
584
- type: {
585
- name: "String"
586
- }
587
- },
588
- tier: {
589
- serializedName: "tier",
590
- type: {
591
- name: "String"
592
- }
593
- }
594
- }
595
- }
596
- };
597
- const CommitmentPlanPatchPayload = {
598
- type: {
599
- name: "Composite",
600
- className: "CommitmentPlanPatchPayload",
601
- modelProperties: {
602
- tags: {
603
- serializedName: "tags",
604
- type: {
605
- name: "Dictionary",
606
- value: { type: { name: "String" } }
607
- }
608
- },
609
- sku: {
610
- serializedName: "sku",
611
- type: {
612
- name: "Composite",
613
- className: "ResourceSku"
614
- }
615
- }
616
- }
617
- }
618
- };
619
- const CommitmentPlanListResult = {
620
- type: {
621
- name: "Composite",
622
- className: "CommitmentPlanListResult",
623
- modelProperties: {
624
- nextLink: {
625
- serializedName: "nextLink",
626
- type: {
627
- name: "String"
628
- }
629
- },
630
- value: {
631
- serializedName: "value",
632
- type: {
633
- name: "Sequence",
634
- element: {
635
- type: {
636
- name: "Composite",
637
- className: "CommitmentPlan"
638
- }
639
- }
640
- }
641
- }
642
- }
643
- }
644
- };
645
- const PlanUsageHistoryListResult = {
646
- type: {
647
- name: "Composite",
648
- className: "PlanUsageHistoryListResult",
649
- modelProperties: {
650
- nextLink: {
651
- serializedName: "nextLink",
652
- type: {
653
- name: "String"
654
- }
655
- },
656
- value: {
657
- serializedName: "value",
658
- type: {
659
- name: "Sequence",
660
- element: {
661
- type: {
662
- name: "Composite",
663
- className: "PlanUsageHistory"
664
- }
665
- }
666
- }
667
- }
668
- }
669
- }
670
- };
671
- const PlanUsageHistory = {
672
- type: {
673
- name: "Composite",
674
- className: "PlanUsageHistory",
675
- modelProperties: {
676
- planDeletionOverage: {
677
- serializedName: "planDeletionOverage",
678
- type: {
679
- name: "Dictionary",
680
- value: { type: { name: "Number" } }
681
- }
682
- },
683
- planMigrationOverage: {
684
- serializedName: "planMigrationOverage",
685
- type: {
686
- name: "Dictionary",
687
- value: { type: { name: "Number" } }
688
- }
689
- },
690
- planQuantitiesAfterUsage: {
691
- serializedName: "planQuantitiesAfterUsage",
692
- type: {
693
- name: "Dictionary",
694
- value: { type: { name: "Number" } }
695
- }
696
- },
697
- planQuantitiesBeforeUsage: {
698
- serializedName: "planQuantitiesBeforeUsage",
699
- type: {
700
- name: "Dictionary",
701
- value: { type: { name: "Number" } }
702
- }
703
- },
704
- planUsageOverage: {
705
- serializedName: "planUsageOverage",
706
- type: {
707
- name: "Dictionary",
708
- value: { type: { name: "Number" } }
709
- }
710
- },
711
- usage: {
712
- serializedName: "usage",
713
- type: {
714
- name: "Dictionary",
715
- value: { type: { name: "Number" } }
716
- }
717
- },
718
- usageDate: {
719
- serializedName: "usageDate",
720
- type: {
721
- name: "DateTime"
722
- }
723
- }
724
- }
725
- }
726
- };
727
- const CommitmentAssociation = {
728
- type: {
729
- name: "Composite",
730
- className: "CommitmentAssociation",
731
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { etag: {
732
- serializedName: "etag",
733
- type: {
734
- name: "String"
735
- }
736
- }, properties: {
737
- serializedName: "properties",
738
- type: {
739
- name: "Composite",
740
- className: "CommitmentAssociationProperties"
741
- }
742
- } })
743
- }
744
- };
745
- const CommitmentPlan = {
746
- type: {
747
- name: "Composite",
748
- className: "CommitmentPlan",
749
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { etag: {
750
- serializedName: "etag",
751
- type: {
752
- name: "String"
753
- }
754
- }, properties: {
755
- serializedName: "properties",
756
- type: {
757
- name: "Composite",
758
- className: "CommitmentPlanProperties"
759
- }
760
- }, sku: {
761
- serializedName: "sku",
762
- type: {
763
- name: "Composite",
764
- className: "ResourceSku"
765
- }
766
- } })
767
- }
768
- };
769
-
770
- var Mappers = /*#__PURE__*/Object.freeze({
771
- __proto__: null,
772
- OperationEntityListResult: OperationEntityListResult,
773
- OperationEntity: OperationEntity,
774
- OperationDisplayInfo: OperationDisplayInfo,
775
- SkuListResult: SkuListResult,
776
- CatalogSku: CatalogSku,
777
- SkuCapacity: SkuCapacity,
778
- SkuCapability: SkuCapability,
779
- SkuCost: SkuCost,
780
- SkuRestrictions: SkuRestrictions,
781
- CommitmentAssociationProperties: CommitmentAssociationProperties,
782
- Resource: Resource,
783
- CommitmentAssociationListResult: CommitmentAssociationListResult,
784
- MoveCommitmentAssociationRequest: MoveCommitmentAssociationRequest,
785
- CommitmentPlanProperties: CommitmentPlanProperties,
786
- PlanQuantity: PlanQuantity,
787
- ResourceSku: ResourceSku,
788
- CommitmentPlanPatchPayload: CommitmentPlanPatchPayload,
789
- CommitmentPlanListResult: CommitmentPlanListResult,
790
- PlanUsageHistoryListResult: PlanUsageHistoryListResult,
791
- PlanUsageHistory: PlanUsageHistory,
792
- CommitmentAssociation: CommitmentAssociation,
793
- CommitmentPlan: CommitmentPlan
794
- });
795
-
796
- /*
797
- * Copyright (c) Microsoft Corporation.
798
- * Licensed under the MIT License.
799
- *
800
- * Code generated by Microsoft (R) AutoRest Code Generator.
801
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
802
- */
803
- const accept = {
804
- parameterPath: "accept",
805
- mapper: {
806
- defaultValue: "application/json",
807
- isConstant: true,
808
- serializedName: "Accept",
809
- type: {
810
- name: "String"
811
- }
812
- }
813
- };
814
- const $host = {
815
- parameterPath: "$host",
816
- mapper: {
817
- serializedName: "$host",
818
- required: true,
819
- type: {
820
- name: "String"
821
- }
822
- },
823
- skipEncoding: true
824
- };
825
- const apiVersion = {
826
- parameterPath: "apiVersion",
827
- mapper: {
828
- defaultValue: "2016-05-01-preview",
829
- isConstant: true,
830
- serializedName: "api-version",
831
- type: {
832
- name: "String"
833
- }
834
- }
835
- };
836
- const subscriptionId = {
837
- parameterPath: "subscriptionId",
838
- mapper: {
839
- serializedName: "subscriptionId",
840
- required: true,
841
- type: {
842
- name: "String"
843
- }
844
- }
845
- };
846
- const resourceGroupName = {
847
- parameterPath: "resourceGroupName",
848
- mapper: {
849
- serializedName: "resourceGroupName",
850
- required: true,
851
- type: {
852
- name: "String"
853
- }
854
- }
855
- };
856
- const commitmentPlanName = {
857
- parameterPath: "commitmentPlanName",
858
- mapper: {
859
- serializedName: "commitmentPlanName",
860
- required: true,
861
- type: {
862
- name: "String"
863
- }
864
- }
865
- };
866
- const commitmentAssociationName = {
867
- parameterPath: "commitmentAssociationName",
868
- mapper: {
869
- serializedName: "commitmentAssociationName",
870
- required: true,
871
- type: {
872
- name: "String"
873
- }
874
- }
875
- };
876
- const skipToken = {
877
- parameterPath: ["options", "skipToken"],
878
- mapper: {
879
- serializedName: "$skipToken",
880
- type: {
881
- name: "String"
882
- }
883
- }
884
- };
885
- const contentType = {
886
- parameterPath: ["options", "contentType"],
887
- mapper: {
888
- defaultValue: "application/json",
889
- isConstant: true,
890
- serializedName: "Content-Type",
891
- type: {
892
- name: "String"
893
- }
894
- }
895
- };
896
- const movePayload = {
897
- parameterPath: "movePayload",
898
- mapper: MoveCommitmentAssociationRequest
899
- };
900
- const nextLink = {
901
- parameterPath: "nextLink",
902
- mapper: {
903
- serializedName: "nextLink",
904
- required: true,
905
- type: {
906
- name: "String"
907
- }
908
- },
909
- skipEncoding: true
910
- };
911
- const createOrUpdatePayload = {
912
- parameterPath: "createOrUpdatePayload",
913
- mapper: CommitmentPlan
914
- };
915
- const patchPayload = {
916
- parameterPath: "patchPayload",
917
- mapper: CommitmentPlanPatchPayload
918
- };
919
-
920
- /*
921
- * Copyright (c) Microsoft Corporation.
922
- * Licensed under the MIT License.
923
- *
924
- * Code generated by Microsoft (R) AutoRest Code Generator.
925
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
926
- */
927
- /// <reference lib="esnext.asynciterable" />
928
- /** Class containing Operations operations. */
929
- class OperationsImpl {
930
- /**
931
- * Initialize a new instance of the class Operations class.
932
- * @param client Reference to the service client
933
- */
934
- constructor(client) {
935
- this.client = client;
936
- }
937
- /**
938
- * Lists all of the available Azure Machine Learning Studio Commitment Plan RP REST API operations.
939
- * @param options The options parameters.
940
- */
941
- list(options) {
942
- const iter = this.listPagingAll(options);
943
- return {
944
- next() {
945
- return iter.next();
946
- },
947
- [Symbol.asyncIterator]() {
948
- return this;
949
- },
950
- byPage: () => {
951
- return this.listPagingPage(options);
952
- }
953
- };
954
- }
955
- listPagingPage(options) {
956
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
957
- let result = yield tslib.__await(this._list(options));
958
- yield yield tslib.__await(result.value || []);
959
- });
960
- }
961
- listPagingAll(options) {
962
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
963
- var e_1, _a;
964
- try {
965
- for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
966
- const page = _c.value;
967
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
968
- }
969
- }
970
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
971
- finally {
972
- try {
973
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
974
- }
975
- finally { if (e_1) throw e_1.error; }
976
- }
977
- });
978
- }
979
- /**
980
- * Lists all of the available Azure Machine Learning Studio Commitment Plan RP REST API operations.
981
- * @param options The options parameters.
982
- */
983
- _list(options) {
984
- return this.client.sendOperationRequest({ options }, listOperationSpec);
985
- }
986
- }
987
- // Operation Specifications
988
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
989
- const listOperationSpec = {
990
- path: "/providers/Microsoft.MachineLearning/operations",
991
- httpMethod: "GET",
992
- responses: {
993
- 200: {
994
- bodyMapper: OperationEntityListResult
995
- }
996
- },
997
- queryParameters: [apiVersion],
998
- urlParameters: [$host],
999
- headerParameters: [accept],
1000
- serializer
1001
- };
1002
-
1003
- /*
1004
- * Copyright (c) Microsoft Corporation.
1005
- * Licensed under the MIT License.
1006
- *
1007
- * Code generated by Microsoft (R) AutoRest Code Generator.
1008
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1009
- */
1010
- /// <reference lib="esnext.asynciterable" />
1011
- /** Class containing Skus operations. */
1012
- class SkusImpl {
1013
- /**
1014
- * Initialize a new instance of the class Skus class.
1015
- * @param client Reference to the service client
1016
- */
1017
- constructor(client) {
1018
- this.client = client;
1019
- }
1020
- /**
1021
- * Lists the available commitment plan SKUs.
1022
- * @param options The options parameters.
1023
- */
1024
- list(options) {
1025
- const iter = this.listPagingAll(options);
1026
- return {
1027
- next() {
1028
- return iter.next();
1029
- },
1030
- [Symbol.asyncIterator]() {
1031
- return this;
1032
- },
1033
- byPage: () => {
1034
- return this.listPagingPage(options);
1035
- }
1036
- };
1037
- }
1038
- listPagingPage(options) {
1039
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1040
- let result = yield tslib.__await(this._list(options));
1041
- yield yield tslib.__await(result.value || []);
1042
- });
1043
- }
1044
- listPagingAll(options) {
1045
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1046
- var e_1, _a;
1047
- try {
1048
- for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1049
- const page = _c.value;
1050
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1051
- }
1052
- }
1053
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1054
- finally {
1055
- try {
1056
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1057
- }
1058
- finally { if (e_1) throw e_1.error; }
1059
- }
1060
- });
1061
- }
1062
- /**
1063
- * Lists the available commitment plan SKUs.
1064
- * @param options The options parameters.
1065
- */
1066
- _list(options) {
1067
- return this.client.sendOperationRequest({ options }, listOperationSpec$1);
1068
- }
1069
- }
1070
- // Operation Specifications
1071
- const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
1072
- const listOperationSpec$1 = {
1073
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/skus",
1074
- httpMethod: "GET",
1075
- responses: {
1076
- 200: {
1077
- bodyMapper: SkuListResult
1078
- }
1079
- },
1080
- queryParameters: [apiVersion],
1081
- urlParameters: [$host, subscriptionId],
1082
- headerParameters: [accept],
1083
- serializer: serializer$1
1084
- };
1085
-
1086
- /*
1087
- * Copyright (c) Microsoft Corporation.
1088
- * Licensed under the MIT License.
1089
- *
1090
- * Code generated by Microsoft (R) AutoRest Code Generator.
1091
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1092
- */
1093
- /// <reference lib="esnext.asynciterable" />
1094
- /** Class containing CommitmentAssociations operations. */
1095
- class CommitmentAssociationsImpl {
1096
- /**
1097
- * Initialize a new instance of the class CommitmentAssociations class.
1098
- * @param client Reference to the service client
1099
- */
1100
- constructor(client) {
1101
- this.client = client;
1102
- }
1103
- /**
1104
- * Get all commitment associations for a parent commitment plan.
1105
- * @param resourceGroupName The resource group name.
1106
- * @param commitmentPlanName The Azure ML commitment plan name.
1107
- * @param options The options parameters.
1108
- */
1109
- list(resourceGroupName, commitmentPlanName, options) {
1110
- const iter = this.listPagingAll(resourceGroupName, commitmentPlanName, options);
1111
- return {
1112
- next() {
1113
- return iter.next();
1114
- },
1115
- [Symbol.asyncIterator]() {
1116
- return this;
1117
- },
1118
- byPage: () => {
1119
- return this.listPagingPage(resourceGroupName, commitmentPlanName, options);
1120
- }
1121
- };
1122
- }
1123
- listPagingPage(resourceGroupName, commitmentPlanName, options) {
1124
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1125
- let result = yield tslib.__await(this._list(resourceGroupName, commitmentPlanName, options));
1126
- yield yield tslib.__await(result.value || []);
1127
- let continuationToken = result.nextLink;
1128
- while (continuationToken) {
1129
- result = yield tslib.__await(this._listNext(resourceGroupName, commitmentPlanName, continuationToken, options));
1130
- continuationToken = result.nextLink;
1131
- yield yield tslib.__await(result.value || []);
1132
- }
1133
- });
1134
- }
1135
- listPagingAll(resourceGroupName, commitmentPlanName, options) {
1136
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1137
- var e_1, _a;
1138
- try {
1139
- for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroupName, commitmentPlanName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1140
- const page = _c.value;
1141
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1142
- }
1143
- }
1144
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1145
- finally {
1146
- try {
1147
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1148
- }
1149
- finally { if (e_1) throw e_1.error; }
1150
- }
1151
- });
1152
- }
1153
- /**
1154
- * Get a commitment association.
1155
- * @param resourceGroupName The resource group name.
1156
- * @param commitmentPlanName The Azure ML commitment plan name.
1157
- * @param commitmentAssociationName The commitment association name.
1158
- * @param options The options parameters.
1159
- */
1160
- get(resourceGroupName, commitmentPlanName, commitmentAssociationName, options) {
1161
- return this.client.sendOperationRequest({
1162
- resourceGroupName,
1163
- commitmentPlanName,
1164
- commitmentAssociationName,
1165
- options
1166
- }, getOperationSpec);
1167
- }
1168
- /**
1169
- * Get all commitment associations for a parent commitment plan.
1170
- * @param resourceGroupName The resource group name.
1171
- * @param commitmentPlanName The Azure ML commitment plan name.
1172
- * @param options The options parameters.
1173
- */
1174
- _list(resourceGroupName, commitmentPlanName, options) {
1175
- return this.client.sendOperationRequest({ resourceGroupName, commitmentPlanName, options }, listOperationSpec$2);
1176
- }
1177
- /**
1178
- * Re-parent a commitment association from one commitment plan to another.
1179
- * @param resourceGroupName The resource group name.
1180
- * @param commitmentPlanName The Azure ML commitment plan name.
1181
- * @param commitmentAssociationName The commitment association name.
1182
- * @param movePayload The move request payload.
1183
- * @param options The options parameters.
1184
- */
1185
- move(resourceGroupName, commitmentPlanName, commitmentAssociationName, movePayload, options) {
1186
- return this.client.sendOperationRequest({
1187
- resourceGroupName,
1188
- commitmentPlanName,
1189
- commitmentAssociationName,
1190
- movePayload,
1191
- options
1192
- }, moveOperationSpec);
1193
- }
1194
- /**
1195
- * ListNext
1196
- * @param resourceGroupName The resource group name.
1197
- * @param commitmentPlanName The Azure ML commitment plan name.
1198
- * @param nextLink The nextLink from the previous successful call to the List method.
1199
- * @param options The options parameters.
1200
- */
1201
- _listNext(resourceGroupName, commitmentPlanName, nextLink, options) {
1202
- return this.client.sendOperationRequest({ resourceGroupName, commitmentPlanName, nextLink, options }, listNextOperationSpec);
1203
- }
1204
- }
1205
- // Operation Specifications
1206
- const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
1207
- const getOperationSpec = {
1208
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}/commitmentAssociations/{commitmentAssociationName}",
1209
- httpMethod: "GET",
1210
- responses: {
1211
- 200: {
1212
- bodyMapper: CommitmentAssociation
1213
- }
1214
- },
1215
- queryParameters: [apiVersion],
1216
- urlParameters: [
1217
- $host,
1218
- subscriptionId,
1219
- resourceGroupName,
1220
- commitmentPlanName,
1221
- commitmentAssociationName
1222
- ],
1223
- headerParameters: [accept],
1224
- serializer: serializer$2
1225
- };
1226
- const listOperationSpec$2 = {
1227
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}/commitmentAssociations",
1228
- httpMethod: "GET",
1229
- responses: {
1230
- 200: {
1231
- bodyMapper: CommitmentAssociationListResult
1232
- }
1233
- },
1234
- queryParameters: [apiVersion, skipToken],
1235
- urlParameters: [
1236
- $host,
1237
- subscriptionId,
1238
- resourceGroupName,
1239
- commitmentPlanName
1240
- ],
1241
- headerParameters: [accept],
1242
- serializer: serializer$2
1243
- };
1244
- const moveOperationSpec = {
1245
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}/commitmentAssociations/{commitmentAssociationName}/move",
1246
- httpMethod: "POST",
1247
- responses: {
1248
- 200: {
1249
- bodyMapper: CommitmentAssociation
1250
- }
1251
- },
1252
- requestBody: movePayload,
1253
- queryParameters: [apiVersion],
1254
- urlParameters: [
1255
- $host,
1256
- subscriptionId,
1257
- resourceGroupName,
1258
- commitmentPlanName,
1259
- commitmentAssociationName
1260
- ],
1261
- headerParameters: [accept, contentType],
1262
- mediaType: "json",
1263
- serializer: serializer$2
1264
- };
1265
- const listNextOperationSpec = {
1266
- path: "{nextLink}",
1267
- httpMethod: "GET",
1268
- responses: {
1269
- 200: {
1270
- bodyMapper: CommitmentAssociationListResult
1271
- }
1272
- },
1273
- queryParameters: [apiVersion, skipToken],
1274
- urlParameters: [
1275
- $host,
1276
- subscriptionId,
1277
- resourceGroupName,
1278
- commitmentPlanName,
1279
- nextLink
1280
- ],
1281
- headerParameters: [accept],
1282
- serializer: serializer$2
1283
- };
1284
-
1285
- /*
1286
- * Copyright (c) Microsoft Corporation.
1287
- * Licensed under the MIT License.
1288
- *
1289
- * Code generated by Microsoft (R) AutoRest Code Generator.
1290
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1291
- */
1292
- /// <reference lib="esnext.asynciterable" />
1293
- /** Class containing CommitmentPlans operations. */
1294
- class CommitmentPlansImpl {
1295
- /**
1296
- * Initialize a new instance of the class CommitmentPlans class.
1297
- * @param client Reference to the service client
1298
- */
1299
- constructor(client) {
1300
- this.client = client;
1301
- }
1302
- /**
1303
- * Retrieve all Azure ML commitment plans in a subscription.
1304
- * @param options The options parameters.
1305
- */
1306
- list(options) {
1307
- const iter = this.listPagingAll(options);
1308
- return {
1309
- next() {
1310
- return iter.next();
1311
- },
1312
- [Symbol.asyncIterator]() {
1313
- return this;
1314
- },
1315
- byPage: () => {
1316
- return this.listPagingPage(options);
1317
- }
1318
- };
1319
- }
1320
- listPagingPage(options) {
1321
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1322
- let result = yield tslib.__await(this._list(options));
1323
- yield yield tslib.__await(result.value || []);
1324
- let continuationToken = result.nextLink;
1325
- while (continuationToken) {
1326
- result = yield tslib.__await(this._listNext(continuationToken, options));
1327
- continuationToken = result.nextLink;
1328
- yield yield tslib.__await(result.value || []);
1329
- }
1330
- });
1331
- }
1332
- listPagingAll(options) {
1333
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1334
- var e_1, _a;
1335
- try {
1336
- for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1337
- const page = _c.value;
1338
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1339
- }
1340
- }
1341
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1342
- finally {
1343
- try {
1344
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1345
- }
1346
- finally { if (e_1) throw e_1.error; }
1347
- }
1348
- });
1349
- }
1350
- /**
1351
- * Retrieve all Azure ML commitment plans in a resource group.
1352
- * @param resourceGroupName The resource group name.
1353
- * @param options The options parameters.
1354
- */
1355
- listInResourceGroup(resourceGroupName, options) {
1356
- const iter = this.listInResourceGroupPagingAll(resourceGroupName, options);
1357
- return {
1358
- next() {
1359
- return iter.next();
1360
- },
1361
- [Symbol.asyncIterator]() {
1362
- return this;
1363
- },
1364
- byPage: () => {
1365
- return this.listInResourceGroupPagingPage(resourceGroupName, options);
1366
- }
1367
- };
1368
- }
1369
- listInResourceGroupPagingPage(resourceGroupName, options) {
1370
- return tslib.__asyncGenerator(this, arguments, function* listInResourceGroupPagingPage_1() {
1371
- let result = yield tslib.__await(this._listInResourceGroup(resourceGroupName, options));
1372
- yield yield tslib.__await(result.value || []);
1373
- let continuationToken = result.nextLink;
1374
- while (continuationToken) {
1375
- result = yield tslib.__await(this._listInResourceGroupNext(resourceGroupName, continuationToken, options));
1376
- continuationToken = result.nextLink;
1377
- yield yield tslib.__await(result.value || []);
1378
- }
1379
- });
1380
- }
1381
- listInResourceGroupPagingAll(resourceGroupName, options) {
1382
- return tslib.__asyncGenerator(this, arguments, function* listInResourceGroupPagingAll_1() {
1383
- var e_2, _a;
1384
- try {
1385
- for (var _b = tslib.__asyncValues(this.listInResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1386
- const page = _c.value;
1387
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1388
- }
1389
- }
1390
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
1391
- finally {
1392
- try {
1393
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1394
- }
1395
- finally { if (e_2) throw e_2.error; }
1396
- }
1397
- });
1398
- }
1399
- /**
1400
- * Retrieve an Azure ML commitment plan by its subscription, resource group and name.
1401
- * @param resourceGroupName The resource group name.
1402
- * @param commitmentPlanName The Azure ML commitment plan name.
1403
- * @param options The options parameters.
1404
- */
1405
- get(resourceGroupName, commitmentPlanName, options) {
1406
- return this.client.sendOperationRequest({ resourceGroupName, commitmentPlanName, options }, getOperationSpec$1);
1407
- }
1408
- /**
1409
- * Create a new Azure ML commitment plan resource or updates an existing one.
1410
- * @param resourceGroupName The resource group name.
1411
- * @param commitmentPlanName The Azure ML commitment plan name.
1412
- * @param createOrUpdatePayload The payload to create or update the Azure ML commitment plan.
1413
- * @param options The options parameters.
1414
- */
1415
- createOrUpdate(resourceGroupName, commitmentPlanName, createOrUpdatePayload, options) {
1416
- return this.client.sendOperationRequest({ resourceGroupName, commitmentPlanName, createOrUpdatePayload, options }, createOrUpdateOperationSpec);
1417
- }
1418
- /**
1419
- * Remove an existing Azure ML commitment plan.
1420
- * @param resourceGroupName The resource group name.
1421
- * @param commitmentPlanName The Azure ML commitment plan name.
1422
- * @param options The options parameters.
1423
- */
1424
- remove(resourceGroupName, commitmentPlanName, options) {
1425
- return this.client.sendOperationRequest({ resourceGroupName, commitmentPlanName, options }, removeOperationSpec);
1426
- }
1427
- /**
1428
- * Patch an existing Azure ML commitment plan resource.
1429
- * @param resourceGroupName The resource group name.
1430
- * @param commitmentPlanName The Azure ML commitment plan name.
1431
- * @param patchPayload The payload to use to patch the Azure ML commitment plan. Only tags and SKU may
1432
- * be modified on an existing commitment plan.
1433
- * @param options The options parameters.
1434
- */
1435
- patch(resourceGroupName, commitmentPlanName, patchPayload, options) {
1436
- return this.client.sendOperationRequest({ resourceGroupName, commitmentPlanName, patchPayload, options }, patchOperationSpec);
1437
- }
1438
- /**
1439
- * Retrieve all Azure ML commitment plans in a subscription.
1440
- * @param options The options parameters.
1441
- */
1442
- _list(options) {
1443
- return this.client.sendOperationRequest({ options }, listOperationSpec$3);
1444
- }
1445
- /**
1446
- * Retrieve all Azure ML commitment plans in a resource group.
1447
- * @param resourceGroupName The resource group name.
1448
- * @param options The options parameters.
1449
- */
1450
- _listInResourceGroup(resourceGroupName, options) {
1451
- return this.client.sendOperationRequest({ resourceGroupName, options }, listInResourceGroupOperationSpec);
1452
- }
1453
- /**
1454
- * ListNext
1455
- * @param nextLink The nextLink from the previous successful call to the List method.
1456
- * @param options The options parameters.
1457
- */
1458
- _listNext(nextLink, options) {
1459
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
1460
- }
1461
- /**
1462
- * ListInResourceGroupNext
1463
- * @param resourceGroupName The resource group name.
1464
- * @param nextLink The nextLink from the previous successful call to the ListInResourceGroup method.
1465
- * @param options The options parameters.
1466
- */
1467
- _listInResourceGroupNext(resourceGroupName, nextLink, options) {
1468
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listInResourceGroupNextOperationSpec);
1469
- }
1470
- }
1471
- // Operation Specifications
1472
- const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
1473
- const getOperationSpec$1 = {
1474
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}",
1475
- httpMethod: "GET",
1476
- responses: {
1477
- 200: {
1478
- bodyMapper: CommitmentPlan
1479
- }
1480
- },
1481
- queryParameters: [apiVersion],
1482
- urlParameters: [
1483
- $host,
1484
- subscriptionId,
1485
- resourceGroupName,
1486
- commitmentPlanName
1487
- ],
1488
- headerParameters: [accept],
1489
- serializer: serializer$3
1490
- };
1491
- const createOrUpdateOperationSpec = {
1492
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}",
1493
- httpMethod: "PUT",
1494
- responses: {
1495
- 200: {
1496
- bodyMapper: CommitmentPlan
1497
- },
1498
- 201: {
1499
- bodyMapper: CommitmentPlan
1500
- }
1501
- },
1502
- requestBody: createOrUpdatePayload,
1503
- queryParameters: [apiVersion],
1504
- urlParameters: [
1505
- $host,
1506
- subscriptionId,
1507
- resourceGroupName,
1508
- commitmentPlanName
1509
- ],
1510
- headerParameters: [accept, contentType],
1511
- mediaType: "json",
1512
- serializer: serializer$3
1513
- };
1514
- const removeOperationSpec = {
1515
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}",
1516
- httpMethod: "DELETE",
1517
- responses: { 200: {} },
1518
- queryParameters: [apiVersion],
1519
- urlParameters: [
1520
- $host,
1521
- subscriptionId,
1522
- resourceGroupName,
1523
- commitmentPlanName
1524
- ],
1525
- serializer: serializer$3
1526
- };
1527
- const patchOperationSpec = {
1528
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}",
1529
- httpMethod: "PATCH",
1530
- responses: {
1531
- 200: {
1532
- bodyMapper: CommitmentPlan
1533
- }
1534
- },
1535
- requestBody: patchPayload,
1536
- queryParameters: [apiVersion],
1537
- urlParameters: [
1538
- $host,
1539
- subscriptionId,
1540
- resourceGroupName,
1541
- commitmentPlanName
1542
- ],
1543
- headerParameters: [accept, contentType],
1544
- mediaType: "json",
1545
- serializer: serializer$3
1546
- };
1547
- const listOperationSpec$3 = {
1548
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/commitmentPlans",
1549
- httpMethod: "GET",
1550
- responses: {
1551
- 200: {
1552
- bodyMapper: CommitmentPlanListResult
1553
- }
1554
- },
1555
- queryParameters: [apiVersion, skipToken],
1556
- urlParameters: [$host, subscriptionId],
1557
- headerParameters: [accept],
1558
- serializer: serializer$3
1559
- };
1560
- const listInResourceGroupOperationSpec = {
1561
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans",
1562
- httpMethod: "GET",
1563
- responses: {
1564
- 200: {
1565
- bodyMapper: CommitmentPlanListResult
1566
- }
1567
- },
1568
- queryParameters: [apiVersion, skipToken],
1569
- urlParameters: [
1570
- $host,
1571
- subscriptionId,
1572
- resourceGroupName
1573
- ],
1574
- headerParameters: [accept],
1575
- serializer: serializer$3
1576
- };
1577
- const listNextOperationSpec$1 = {
1578
- path: "{nextLink}",
1579
- httpMethod: "GET",
1580
- responses: {
1581
- 200: {
1582
- bodyMapper: CommitmentPlanListResult
1583
- }
1584
- },
1585
- queryParameters: [apiVersion, skipToken],
1586
- urlParameters: [
1587
- $host,
1588
- subscriptionId,
1589
- nextLink
1590
- ],
1591
- headerParameters: [accept],
1592
- serializer: serializer$3
1593
- };
1594
- const listInResourceGroupNextOperationSpec = {
1595
- path: "{nextLink}",
1596
- httpMethod: "GET",
1597
- responses: {
1598
- 200: {
1599
- bodyMapper: CommitmentPlanListResult
1600
- }
1601
- },
1602
- queryParameters: [apiVersion, skipToken],
1603
- urlParameters: [
1604
- $host,
1605
- subscriptionId,
1606
- resourceGroupName,
1607
- nextLink
1608
- ],
1609
- headerParameters: [accept],
1610
- serializer: serializer$3
1611
- };
1612
-
1613
- /*
1614
- * Copyright (c) Microsoft Corporation.
1615
- * Licensed under the MIT License.
1616
- *
1617
- * Code generated by Microsoft (R) AutoRest Code Generator.
1618
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1619
- */
1620
- /// <reference lib="esnext.asynciterable" />
1621
- /** Class containing UsageHistory operations. */
1622
- class UsageHistoryImpl {
1623
- /**
1624
- * Initialize a new instance of the class UsageHistory class.
1625
- * @param client Reference to the service client
1626
- */
1627
- constructor(client) {
1628
- this.client = client;
1629
- }
1630
- /**
1631
- * Retrieve the usage history for an Azure ML commitment plan.
1632
- * @param resourceGroupName The resource group name.
1633
- * @param commitmentPlanName The Azure ML commitment plan name.
1634
- * @param options The options parameters.
1635
- */
1636
- list(resourceGroupName, commitmentPlanName, options) {
1637
- const iter = this.listPagingAll(resourceGroupName, commitmentPlanName, options);
1638
- return {
1639
- next() {
1640
- return iter.next();
1641
- },
1642
- [Symbol.asyncIterator]() {
1643
- return this;
1644
- },
1645
- byPage: () => {
1646
- return this.listPagingPage(resourceGroupName, commitmentPlanName, options);
1647
- }
1648
- };
1649
- }
1650
- listPagingPage(resourceGroupName, commitmentPlanName, options) {
1651
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1652
- let result = yield tslib.__await(this._list(resourceGroupName, commitmentPlanName, options));
1653
- yield yield tslib.__await(result.value || []);
1654
- let continuationToken = result.nextLink;
1655
- while (continuationToken) {
1656
- result = yield tslib.__await(this._listNext(resourceGroupName, commitmentPlanName, continuationToken, options));
1657
- continuationToken = result.nextLink;
1658
- yield yield tslib.__await(result.value || []);
1659
- }
1660
- });
1661
- }
1662
- listPagingAll(resourceGroupName, commitmentPlanName, options) {
1663
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1664
- var e_1, _a;
1665
- try {
1666
- for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroupName, commitmentPlanName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1667
- const page = _c.value;
1668
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1669
- }
1670
- }
1671
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1672
- finally {
1673
- try {
1674
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1675
- }
1676
- finally { if (e_1) throw e_1.error; }
1677
- }
1678
- });
1679
- }
1680
- /**
1681
- * Retrieve the usage history for an Azure ML commitment plan.
1682
- * @param resourceGroupName The resource group name.
1683
- * @param commitmentPlanName The Azure ML commitment plan name.
1684
- * @param options The options parameters.
1685
- */
1686
- _list(resourceGroupName, commitmentPlanName, options) {
1687
- return this.client.sendOperationRequest({ resourceGroupName, commitmentPlanName, options }, listOperationSpec$4);
1688
- }
1689
- /**
1690
- * ListNext
1691
- * @param resourceGroupName The resource group name.
1692
- * @param commitmentPlanName The Azure ML commitment plan name.
1693
- * @param nextLink The nextLink from the previous successful call to the List method.
1694
- * @param options The options parameters.
1695
- */
1696
- _listNext(resourceGroupName, commitmentPlanName, nextLink, options) {
1697
- return this.client.sendOperationRequest({ resourceGroupName, commitmentPlanName, nextLink, options }, listNextOperationSpec$2);
1698
- }
1699
- }
1700
- // Operation Specifications
1701
- const serializer$4 = coreClient.createSerializer(Mappers, /* isXml */ false);
1702
- const listOperationSpec$4 = {
1703
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}/usageHistory",
1704
- httpMethod: "GET",
1705
- responses: {
1706
- 200: {
1707
- bodyMapper: PlanUsageHistoryListResult
1708
- }
1709
- },
1710
- queryParameters: [apiVersion, skipToken],
1711
- urlParameters: [
1712
- $host,
1713
- subscriptionId,
1714
- resourceGroupName,
1715
- commitmentPlanName
1716
- ],
1717
- headerParameters: [accept],
1718
- serializer: serializer$4
1719
- };
1720
- const listNextOperationSpec$2 = {
1721
- path: "{nextLink}",
1722
- httpMethod: "GET",
1723
- responses: {
1724
- 200: {
1725
- bodyMapper: PlanUsageHistoryListResult
1726
- }
1727
- },
1728
- queryParameters: [apiVersion, skipToken],
1729
- urlParameters: [
1730
- $host,
1731
- subscriptionId,
1732
- resourceGroupName,
1733
- commitmentPlanName,
1734
- nextLink
1735
- ],
1736
- headerParameters: [accept],
1737
- serializer: serializer$4
1738
- };
1739
-
1740
- /*
1741
- * Copyright (c) Microsoft Corporation.
1742
- * Licensed under the MIT License.
1743
- *
1744
- * Code generated by Microsoft (R) AutoRest Code Generator.
1745
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1746
- */
1747
- class AzureMLCommitmentPlansManagementClient extends coreClient.ServiceClient {
1748
- /**
1749
- * Initializes a new instance of the AzureMLCommitmentPlansManagementClient class.
1750
- * @param credentials Subscription credentials which uniquely identify client subscription.
1751
- * @param subscriptionId Azure Subscription ID.
1752
- * @param options The parameter options
1753
- */
1754
- constructor(credentials, subscriptionId, options) {
1755
- if (credentials === undefined) {
1756
- throw new Error("'credentials' cannot be null");
1757
- }
1758
- if (subscriptionId === undefined) {
1759
- throw new Error("'subscriptionId' cannot be null");
1760
- }
1761
- // Initializing default values for options
1762
- if (!options) {
1763
- options = {};
1764
- }
1765
- const defaults = {
1766
- requestContentType: "application/json; charset=utf-8",
1767
- credential: credentials
1768
- };
1769
- const packageDetails = `azsdk-js-arm-commitmentplans/2.0.0-beta.1`;
1770
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1771
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1772
- : `${packageDetails}`;
1773
- if (!options.credentialScopes) {
1774
- options.credentialScopes = ["https://management.azure.com/.default"];
1775
- }
1776
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
1777
- userAgentPrefix
1778
- }, baseUri: options.endpoint || "https://management.azure.com" });
1779
- super(optionsWithDefaults);
1780
- // Parameter assignments
1781
- this.subscriptionId = subscriptionId;
1782
- // Assigning values to Constant parameters
1783
- this.$host = options.$host || "https://management.azure.com";
1784
- this.apiVersion = options.apiVersion || "2016-05-01-preview";
1785
- this.operations = new OperationsImpl(this);
1786
- this.skus = new SkusImpl(this);
1787
- this.commitmentAssociations = new CommitmentAssociationsImpl(this);
1788
- this.commitmentPlans = new CommitmentPlansImpl(this);
1789
- this.usageHistory = new UsageHistoryImpl(this);
1790
- }
1791
- }
1792
-
1793
- exports.AzureMLCommitmentPlansManagementClient = AzureMLCommitmentPlansManagementClient;
1794
- //# sourceMappingURL=index.js.map