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

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