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

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