@azure/arm-education 1.0.0-beta.2 → 1.0.0-beta.4

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 (478) hide show
  1. package/CHANGELOG.md +25 -2
  2. package/LICENSE +4 -4
  3. package/README.md +27 -18
  4. package/{dist-esm/src → dist/browser}/educationManagementClient.d.ts +2 -2
  5. package/dist/browser/educationManagementClient.d.ts.map +1 -0
  6. package/{dist-esm/src → dist/browser}/educationManagementClient.js +52 -40
  7. package/dist/browser/educationManagementClient.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 +32 -46
  13. package/{dist-esm/src → dist/browser}/models/index.d.ts.map +1 -1
  14. package/dist/browser/models/index.js.map +1 -0
  15. package/{dist-esm/src → dist/browser}/models/mappers.js +99 -47
  16. package/dist/browser/models/mappers.js.map +1 -0
  17. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  18. package/dist/browser/models/parameters.js.map +1 -0
  19. package/{dist-esm/src → dist/browser}/operations/grants.d.ts +3 -3
  20. package/dist/browser/operations/grants.d.ts.map +1 -0
  21. package/{dist-esm/src → dist/browser}/operations/grants.js +56 -65
  22. package/dist/browser/operations/grants.js.map +1 -0
  23. package/dist/browser/operations/index.d.ts +7 -0
  24. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  25. package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +6 -6
  26. package/dist/browser/operations/index.js.map +1 -0
  27. package/{dist-esm/src → dist/browser}/operations/joinRequests.d.ts +3 -3
  28. package/dist/browser/operations/joinRequests.d.ts.map +1 -0
  29. package/{dist-esm/src → dist/browser}/operations/joinRequests.js +30 -34
  30. package/dist/browser/operations/joinRequests.js.map +1 -0
  31. package/{dist-esm/src → dist/browser}/operations/labs.d.ts +3 -3
  32. package/dist/browser/operations/labs.d.ts.map +1 -0
  33. package/{dist-esm/src → dist/browser}/operations/labs.js +56 -69
  34. package/dist/browser/operations/labs.js.map +1 -0
  35. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  36. package/dist/browser/operations/operations.d.ts.map +1 -0
  37. package/{dist-esm/src → dist/browser}/operations/operations.js +3 -2
  38. package/dist/browser/operations/operations.js.map +1 -0
  39. package/{dist-esm/src → dist/browser}/operations/studentLabs.d.ts +3 -3
  40. package/dist/browser/operations/studentLabs.d.ts.map +1 -0
  41. package/{dist-esm/src → dist/browser}/operations/studentLabs.js +30 -34
  42. package/dist/browser/operations/studentLabs.js.map +1 -0
  43. package/{dist-esm/src → dist/browser}/operations/students.d.ts +3 -3
  44. package/dist/browser/operations/students.d.ts.map +1 -0
  45. package/{dist-esm/src → dist/browser}/operations/students.js +30 -34
  46. package/dist/browser/operations/students.js.map +1 -0
  47. package/{dist-esm/src → dist/browser}/operationsInterfaces/grants.d.ts +1 -1
  48. package/dist/browser/operationsInterfaces/grants.d.ts.map +1 -0
  49. package/dist/browser/operationsInterfaces/grants.js.map +1 -0
  50. package/dist/browser/operationsInterfaces/index.d.ts +7 -0
  51. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
  52. package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +6 -6
  53. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  54. package/{dist-esm/src → dist/browser}/operationsInterfaces/joinRequests.d.ts +1 -1
  55. package/dist/browser/operationsInterfaces/joinRequests.d.ts.map +1 -0
  56. package/dist/browser/operationsInterfaces/joinRequests.js.map +1 -0
  57. package/{dist-esm/src → dist/browser}/operationsInterfaces/labs.d.ts +1 -1
  58. package/dist/browser/operationsInterfaces/labs.d.ts.map +1 -0
  59. package/dist/browser/operationsInterfaces/labs.js.map +1 -0
  60. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  61. package/dist/browser/operationsInterfaces/operations.d.ts.map +1 -0
  62. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  63. package/{dist-esm/src → dist/browser}/operationsInterfaces/studentLabs.d.ts +1 -1
  64. package/{dist-esm/src → dist/browser}/operationsInterfaces/studentLabs.d.ts.map +1 -1
  65. package/dist/browser/operationsInterfaces/studentLabs.js.map +1 -0
  66. package/{dist-esm/src → dist/browser}/operationsInterfaces/students.d.ts +1 -1
  67. package/dist/browser/operationsInterfaces/students.d.ts.map +1 -0
  68. package/dist/browser/operationsInterfaces/students.js.map +1 -0
  69. package/dist/browser/package.json +3 -0
  70. package/dist/browser/pagingHelper.d.ts +13 -0
  71. package/dist/browser/pagingHelper.d.ts.map +1 -0
  72. package/dist/browser/pagingHelper.js +30 -0
  73. package/dist/browser/pagingHelper.js.map +1 -0
  74. package/dist/commonjs/educationManagementClient.d.ts +29 -0
  75. package/dist/commonjs/educationManagementClient.d.ts.map +1 -0
  76. package/dist/commonjs/educationManagementClient.js +142 -0
  77. package/dist/commonjs/educationManagementClient.js.map +1 -0
  78. package/dist/commonjs/index.d.ts +5 -0
  79. package/dist/commonjs/index.d.ts.map +1 -0
  80. package/dist/commonjs/index.js +19 -0
  81. package/dist/commonjs/index.js.map +1 -0
  82. package/{types/arm-education.d.ts → dist/commonjs/models/index.d.ts} +685 -1000
  83. package/dist/commonjs/models/index.d.ts.map +1 -0
  84. package/dist/commonjs/models/index.js +95 -0
  85. package/dist/commonjs/models/index.js.map +1 -0
  86. package/dist/commonjs/models/mappers.d.ts +22 -0
  87. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  88. package/dist/commonjs/models/mappers.js +757 -0
  89. package/dist/commonjs/models/mappers.js.map +1 -0
  90. package/dist/commonjs/models/parameters.d.ts +22 -0
  91. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  92. package/dist/commonjs/models/parameters.js +188 -0
  93. package/dist/commonjs/models/parameters.js.map +1 -0
  94. package/dist/commonjs/operations/grants.d.ts +63 -0
  95. package/dist/commonjs/operations/grants.d.ts.map +1 -0
  96. package/dist/commonjs/operations/grants.js +255 -0
  97. package/dist/commonjs/operations/grants.js.map +1 -0
  98. package/dist/commonjs/operations/index.d.ts +7 -0
  99. package/dist/commonjs/operations/index.d.ts.map +1 -0
  100. package/dist/commonjs/operations/index.js +17 -0
  101. package/dist/commonjs/operations/index.js.map +1 -0
  102. package/dist/commonjs/operations/joinRequests.d.ts +68 -0
  103. package/dist/commonjs/operations/joinRequests.d.ts.map +1 -0
  104. package/dist/commonjs/operations/joinRequests.js +260 -0
  105. package/dist/commonjs/operations/joinRequests.js.map +1 -0
  106. package/dist/commonjs/operations/labs.d.ts +103 -0
  107. package/dist/commonjs/operations/labs.d.ts.map +1 -0
  108. package/dist/commonjs/operations/labs.js +407 -0
  109. package/dist/commonjs/operations/labs.js.map +1 -0
  110. package/dist/commonjs/operations/operations.d.ts +18 -0
  111. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  112. package/dist/commonjs/operations/operations.js +52 -0
  113. package/dist/commonjs/operations/operations.js.map +1 -0
  114. package/dist/commonjs/operations/studentLabs.d.ts +38 -0
  115. package/dist/commonjs/operations/studentLabs.d.ts.map +1 -0
  116. package/dist/commonjs/operations/studentLabs.js +145 -0
  117. package/dist/commonjs/operations/studentLabs.js.map +1 -0
  118. package/dist/commonjs/operations/students.d.ts +70 -0
  119. package/dist/commonjs/operations/students.d.ts.map +1 -0
  120. package/dist/commonjs/operations/students.js +271 -0
  121. package/dist/commonjs/operations/students.js.map +1 -0
  122. package/dist/commonjs/operationsInterfaces/grants.d.ts +25 -0
  123. package/dist/commonjs/operationsInterfaces/grants.d.ts.map +1 -0
  124. package/dist/commonjs/operationsInterfaces/grants.js +10 -0
  125. package/dist/commonjs/operationsInterfaces/grants.js.map +1 -0
  126. package/dist/commonjs/operationsInterfaces/index.d.ts +7 -0
  127. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  128. package/dist/commonjs/operationsInterfaces/index.js +17 -0
  129. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  130. package/dist/commonjs/operationsInterfaces/joinRequests.d.ts +41 -0
  131. package/dist/commonjs/operationsInterfaces/joinRequests.d.ts.map +1 -0
  132. package/dist/commonjs/operationsInterfaces/joinRequests.js +10 -0
  133. package/dist/commonjs/operationsInterfaces/joinRequests.js.map +1 -0
  134. package/dist/commonjs/operationsInterfaces/labs.d.ts +58 -0
  135. package/dist/commonjs/operationsInterfaces/labs.d.ts.map +1 -0
  136. package/dist/commonjs/operationsInterfaces/labs.js +10 -0
  137. package/dist/commonjs/operationsInterfaces/labs.js.map +1 -0
  138. package/dist/commonjs/operationsInterfaces/operations.d.ts +10 -0
  139. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  140. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  141. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  142. package/dist/commonjs/operationsInterfaces/studentLabs.d.ts +17 -0
  143. package/dist/commonjs/operationsInterfaces/studentLabs.d.ts.map +1 -0
  144. package/dist/commonjs/operationsInterfaces/studentLabs.js +10 -0
  145. package/dist/commonjs/operationsInterfaces/studentLabs.js.map +1 -0
  146. package/dist/commonjs/operationsInterfaces/students.d.ts +43 -0
  147. package/dist/commonjs/operationsInterfaces/students.d.ts.map +1 -0
  148. package/dist/commonjs/operationsInterfaces/students.js +10 -0
  149. package/dist/commonjs/operationsInterfaces/students.js.map +1 -0
  150. package/dist/commonjs/package.json +3 -0
  151. package/dist/commonjs/pagingHelper.d.ts +13 -0
  152. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  153. package/dist/commonjs/pagingHelper.js +34 -0
  154. package/dist/commonjs/pagingHelper.js.map +1 -0
  155. package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
  156. package/dist/esm/educationManagementClient.d.ts +29 -0
  157. package/dist/esm/educationManagementClient.d.ts.map +1 -0
  158. package/dist/esm/educationManagementClient.js +137 -0
  159. package/dist/esm/educationManagementClient.js.map +1 -0
  160. package/dist/esm/index.d.ts +5 -0
  161. package/dist/esm/index.d.ts.map +1 -0
  162. package/{src/index.ts → dist/esm/index.js} +5 -4
  163. package/dist/esm/index.js.map +1 -0
  164. package/dist/esm/models/index.d.ts +685 -0
  165. package/dist/esm/models/index.d.ts.map +1 -0
  166. package/dist/esm/models/index.js +92 -0
  167. package/dist/esm/models/index.js.map +1 -0
  168. package/dist/esm/models/mappers.d.ts +22 -0
  169. package/dist/esm/models/mappers.d.ts.map +1 -0
  170. package/dist/esm/models/mappers.js +754 -0
  171. package/dist/esm/models/mappers.js.map +1 -0
  172. package/dist/esm/models/parameters.d.ts +22 -0
  173. package/dist/esm/models/parameters.d.ts.map +1 -0
  174. package/dist/esm/models/parameters.js +185 -0
  175. package/dist/esm/models/parameters.js.map +1 -0
  176. package/dist/esm/operations/grants.d.ts +63 -0
  177. package/dist/esm/operations/grants.d.ts.map +1 -0
  178. package/dist/esm/operations/grants.js +250 -0
  179. package/dist/esm/operations/grants.js.map +1 -0
  180. package/dist/esm/operations/index.d.ts +7 -0
  181. package/dist/esm/operations/index.d.ts.map +1 -0
  182. package/dist/esm/operations/index.js +14 -0
  183. package/dist/esm/operations/index.js.map +1 -0
  184. package/dist/esm/operations/joinRequests.d.ts +68 -0
  185. package/dist/esm/operations/joinRequests.d.ts.map +1 -0
  186. package/dist/esm/operations/joinRequests.js +255 -0
  187. package/dist/esm/operations/joinRequests.js.map +1 -0
  188. package/dist/esm/operations/labs.d.ts +103 -0
  189. package/dist/esm/operations/labs.d.ts.map +1 -0
  190. package/dist/esm/operations/labs.js +402 -0
  191. package/dist/esm/operations/labs.js.map +1 -0
  192. package/dist/esm/operations/operations.d.ts +18 -0
  193. package/dist/esm/operations/operations.d.ts.map +1 -0
  194. package/dist/esm/operations/operations.js +47 -0
  195. package/dist/esm/operations/operations.js.map +1 -0
  196. package/dist/esm/operations/studentLabs.d.ts +38 -0
  197. package/dist/esm/operations/studentLabs.d.ts.map +1 -0
  198. package/dist/esm/operations/studentLabs.js +140 -0
  199. package/dist/esm/operations/studentLabs.js.map +1 -0
  200. package/dist/esm/operations/students.d.ts +70 -0
  201. package/dist/esm/operations/students.d.ts.map +1 -0
  202. package/dist/esm/operations/students.js +266 -0
  203. package/dist/esm/operations/students.js.map +1 -0
  204. package/dist/esm/operationsInterfaces/grants.d.ts +25 -0
  205. package/dist/esm/operationsInterfaces/grants.d.ts.map +1 -0
  206. package/dist/esm/operationsInterfaces/grants.js +9 -0
  207. package/dist/esm/operationsInterfaces/grants.js.map +1 -0
  208. package/dist/esm/operationsInterfaces/index.d.ts +7 -0
  209. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  210. package/dist/esm/operationsInterfaces/index.js +14 -0
  211. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  212. package/dist/esm/operationsInterfaces/joinRequests.d.ts +41 -0
  213. package/dist/esm/operationsInterfaces/joinRequests.d.ts.map +1 -0
  214. package/dist/esm/operationsInterfaces/joinRequests.js +9 -0
  215. package/dist/esm/operationsInterfaces/joinRequests.js.map +1 -0
  216. package/dist/esm/operationsInterfaces/labs.d.ts +58 -0
  217. package/dist/esm/operationsInterfaces/labs.d.ts.map +1 -0
  218. package/dist/esm/operationsInterfaces/labs.js +9 -0
  219. package/dist/esm/operationsInterfaces/labs.js.map +1 -0
  220. package/dist/esm/operationsInterfaces/operations.d.ts +10 -0
  221. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  222. package/dist/esm/operationsInterfaces/operations.js +9 -0
  223. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  224. package/dist/esm/operationsInterfaces/studentLabs.d.ts +17 -0
  225. package/dist/esm/operationsInterfaces/studentLabs.d.ts.map +1 -0
  226. package/dist/esm/operationsInterfaces/studentLabs.js +9 -0
  227. package/dist/esm/operationsInterfaces/studentLabs.js.map +1 -0
  228. package/dist/esm/operationsInterfaces/students.d.ts +43 -0
  229. package/dist/esm/operationsInterfaces/students.d.ts.map +1 -0
  230. package/dist/esm/operationsInterfaces/students.js +9 -0
  231. package/dist/esm/operationsInterfaces/students.js.map +1 -0
  232. package/dist/esm/package.json +3 -0
  233. package/dist/esm/pagingHelper.d.ts +13 -0
  234. package/dist/esm/pagingHelper.d.ts.map +1 -0
  235. package/dist/esm/pagingHelper.js +30 -0
  236. package/dist/esm/pagingHelper.js.map +1 -0
  237. package/dist/react-native/educationManagementClient.d.ts +29 -0
  238. package/dist/react-native/educationManagementClient.d.ts.map +1 -0
  239. package/dist/react-native/educationManagementClient.js +137 -0
  240. package/dist/react-native/educationManagementClient.js.map +1 -0
  241. package/dist/react-native/index.d.ts +5 -0
  242. package/dist/react-native/index.d.ts.map +1 -0
  243. package/dist/react-native/index.js +13 -0
  244. package/dist/react-native/index.js.map +1 -0
  245. package/dist/react-native/models/index.d.ts +685 -0
  246. package/dist/react-native/models/index.d.ts.map +1 -0
  247. package/dist/react-native/models/index.js +92 -0
  248. package/dist/react-native/models/index.js.map +1 -0
  249. package/dist/react-native/models/mappers.d.ts +22 -0
  250. package/dist/react-native/models/mappers.d.ts.map +1 -0
  251. package/dist/react-native/models/mappers.js +754 -0
  252. package/dist/react-native/models/mappers.js.map +1 -0
  253. package/dist/react-native/models/parameters.d.ts +22 -0
  254. package/dist/react-native/models/parameters.d.ts.map +1 -0
  255. package/dist/react-native/models/parameters.js +185 -0
  256. package/dist/react-native/models/parameters.js.map +1 -0
  257. package/dist/react-native/operations/grants.d.ts +63 -0
  258. package/dist/react-native/operations/grants.d.ts.map +1 -0
  259. package/dist/react-native/operations/grants.js +250 -0
  260. package/dist/react-native/operations/grants.js.map +1 -0
  261. package/dist/react-native/operations/index.d.ts +7 -0
  262. package/dist/react-native/operations/index.d.ts.map +1 -0
  263. package/dist/react-native/operations/index.js +14 -0
  264. package/dist/react-native/operations/index.js.map +1 -0
  265. package/dist/react-native/operations/joinRequests.d.ts +68 -0
  266. package/dist/react-native/operations/joinRequests.d.ts.map +1 -0
  267. package/dist/react-native/operations/joinRequests.js +255 -0
  268. package/dist/react-native/operations/joinRequests.js.map +1 -0
  269. package/dist/react-native/operations/labs.d.ts +103 -0
  270. package/dist/react-native/operations/labs.d.ts.map +1 -0
  271. package/dist/react-native/operations/labs.js +402 -0
  272. package/dist/react-native/operations/labs.js.map +1 -0
  273. package/dist/react-native/operations/operations.d.ts +18 -0
  274. package/dist/react-native/operations/operations.d.ts.map +1 -0
  275. package/dist/react-native/operations/operations.js +47 -0
  276. package/dist/react-native/operations/operations.js.map +1 -0
  277. package/dist/react-native/operations/studentLabs.d.ts +38 -0
  278. package/dist/react-native/operations/studentLabs.d.ts.map +1 -0
  279. package/dist/react-native/operations/studentLabs.js +140 -0
  280. package/dist/react-native/operations/studentLabs.js.map +1 -0
  281. package/dist/react-native/operations/students.d.ts +70 -0
  282. package/dist/react-native/operations/students.d.ts.map +1 -0
  283. package/dist/react-native/operations/students.js +266 -0
  284. package/dist/react-native/operations/students.js.map +1 -0
  285. package/dist/react-native/operationsInterfaces/grants.d.ts +25 -0
  286. package/dist/react-native/operationsInterfaces/grants.d.ts.map +1 -0
  287. package/dist/react-native/operationsInterfaces/grants.js +9 -0
  288. package/dist/react-native/operationsInterfaces/grants.js.map +1 -0
  289. package/dist/react-native/operationsInterfaces/index.d.ts +7 -0
  290. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  291. package/dist/react-native/operationsInterfaces/index.js +14 -0
  292. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  293. package/dist/react-native/operationsInterfaces/joinRequests.d.ts +41 -0
  294. package/dist/react-native/operationsInterfaces/joinRequests.d.ts.map +1 -0
  295. package/dist/react-native/operationsInterfaces/joinRequests.js +9 -0
  296. package/dist/react-native/operationsInterfaces/joinRequests.js.map +1 -0
  297. package/dist/react-native/operationsInterfaces/labs.d.ts +58 -0
  298. package/dist/react-native/operationsInterfaces/labs.d.ts.map +1 -0
  299. package/dist/react-native/operationsInterfaces/labs.js +9 -0
  300. package/dist/react-native/operationsInterfaces/labs.js.map +1 -0
  301. package/dist/react-native/operationsInterfaces/operations.d.ts +10 -0
  302. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  303. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  304. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  305. package/dist/react-native/operationsInterfaces/studentLabs.d.ts +17 -0
  306. package/dist/react-native/operationsInterfaces/studentLabs.d.ts.map +1 -0
  307. package/dist/react-native/operationsInterfaces/studentLabs.js +9 -0
  308. package/dist/react-native/operationsInterfaces/studentLabs.js.map +1 -0
  309. package/dist/react-native/operationsInterfaces/students.d.ts +43 -0
  310. package/dist/react-native/operationsInterfaces/students.d.ts.map +1 -0
  311. package/dist/react-native/operationsInterfaces/students.js +9 -0
  312. package/dist/react-native/operationsInterfaces/students.js.map +1 -0
  313. package/dist/react-native/package.json +3 -0
  314. package/dist/react-native/pagingHelper.d.ts +13 -0
  315. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  316. package/dist/react-native/pagingHelper.js +30 -0
  317. package/dist/react-native/pagingHelper.js.map +1 -0
  318. package/package.json +86 -75
  319. package/review/{arm-education.api.md → arm-education-node.api.md} +3 -7
  320. package/dist/index.js +0 -2522
  321. package/dist/index.js.map +0 -1
  322. package/dist/index.min.js +0 -1
  323. package/dist/index.min.js.map +0 -1
  324. package/dist-esm/samples-dev/grantsGetSample.d.ts +0 -2
  325. package/dist-esm/samples-dev/grantsGetSample.d.ts.map +0 -1
  326. package/dist-esm/samples-dev/grantsGetSample.js +0 -51
  327. package/dist-esm/samples-dev/grantsGetSample.js.map +0 -1
  328. package/dist-esm/samples-dev/grantsListAllSample.d.ts +0 -2
  329. package/dist-esm/samples-dev/grantsListAllSample.d.ts.map +0 -1
  330. package/dist-esm/samples-dev/grantsListAllSample.js +0 -75
  331. package/dist-esm/samples-dev/grantsListAllSample.js.map +0 -1
  332. package/dist-esm/samples-dev/grantsListSample.d.ts +0 -2
  333. package/dist-esm/samples-dev/grantsListSample.d.ts.map +0 -1
  334. package/dist-esm/samples-dev/grantsListSample.js +0 -79
  335. package/dist-esm/samples-dev/grantsListSample.js.map +0 -1
  336. package/dist-esm/samples-dev/joinRequestsApproveSample.d.ts +0 -2
  337. package/dist-esm/samples-dev/joinRequestsApproveSample.d.ts.map +0 -1
  338. package/dist-esm/samples-dev/joinRequestsApproveSample.js +0 -32
  339. package/dist-esm/samples-dev/joinRequestsApproveSample.js.map +0 -1
  340. package/dist-esm/samples-dev/joinRequestsDenySample.d.ts +0 -2
  341. package/dist-esm/samples-dev/joinRequestsDenySample.d.ts.map +0 -1
  342. package/dist-esm/samples-dev/joinRequestsDenySample.js +0 -32
  343. package/dist-esm/samples-dev/joinRequestsDenySample.js.map +0 -1
  344. package/dist-esm/samples-dev/joinRequestsGetSample.d.ts +0 -2
  345. package/dist-esm/samples-dev/joinRequestsGetSample.d.ts.map +0 -1
  346. package/dist-esm/samples-dev/joinRequestsGetSample.js +0 -32
  347. package/dist-esm/samples-dev/joinRequestsGetSample.js.map +0 -1
  348. package/dist-esm/samples-dev/joinRequestsListSample.d.ts +0 -2
  349. package/dist-esm/samples-dev/joinRequestsListSample.d.ts.map +0 -1
  350. package/dist-esm/samples-dev/joinRequestsListSample.js +0 -47
  351. package/dist-esm/samples-dev/joinRequestsListSample.js.map +0 -1
  352. package/dist-esm/samples-dev/labsCreateOrUpdateSample.d.ts +0 -2
  353. package/dist-esm/samples-dev/labsCreateOrUpdateSample.d.ts.map +0 -1
  354. package/dist-esm/samples-dev/labsCreateOrUpdateSample.js +0 -37
  355. package/dist-esm/samples-dev/labsCreateOrUpdateSample.js.map +0 -1
  356. package/dist-esm/samples-dev/labsDeleteSample.d.ts +0 -2
  357. package/dist-esm/samples-dev/labsDeleteSample.d.ts.map +0 -1
  358. package/dist-esm/samples-dev/labsDeleteSample.js +0 -31
  359. package/dist-esm/samples-dev/labsDeleteSample.js.map +0 -1
  360. package/dist-esm/samples-dev/labsGenerateInviteCodeSample.d.ts +0 -2
  361. package/dist-esm/samples-dev/labsGenerateInviteCodeSample.d.ts.map +0 -1
  362. package/dist-esm/samples-dev/labsGenerateInviteCodeSample.js +0 -32
  363. package/dist-esm/samples-dev/labsGenerateInviteCodeSample.js.map +0 -1
  364. package/dist-esm/samples-dev/labsGetSample.d.ts +0 -2
  365. package/dist-esm/samples-dev/labsGetSample.d.ts.map +0 -1
  366. package/dist-esm/samples-dev/labsGetSample.js +0 -53
  367. package/dist-esm/samples-dev/labsGetSample.js.map +0 -1
  368. package/dist-esm/samples-dev/labsListAllSample.d.ts +0 -2
  369. package/dist-esm/samples-dev/labsListAllSample.d.ts.map +0 -1
  370. package/dist-esm/samples-dev/labsListAllSample.js +0 -79
  371. package/dist-esm/samples-dev/labsListAllSample.js.map +0 -1
  372. package/dist-esm/samples-dev/labsListSample.d.ts +0 -2
  373. package/dist-esm/samples-dev/labsListSample.d.ts.map +0 -1
  374. package/dist-esm/samples-dev/labsListSample.js +0 -81
  375. package/dist-esm/samples-dev/labsListSample.js.map +0 -1
  376. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  377. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  378. package/dist-esm/samples-dev/operationsListSample.js +0 -28
  379. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  380. package/dist-esm/samples-dev/redeemInvitationCodeSample.d.ts +0 -2
  381. package/dist-esm/samples-dev/redeemInvitationCodeSample.d.ts.map +0 -1
  382. package/dist-esm/samples-dev/redeemInvitationCodeSample.js +0 -33
  383. package/dist-esm/samples-dev/redeemInvitationCodeSample.js.map +0 -1
  384. package/dist-esm/samples-dev/studentLabsGetSample.d.ts +0 -2
  385. package/dist-esm/samples-dev/studentLabsGetSample.d.ts.map +0 -1
  386. package/dist-esm/samples-dev/studentLabsGetSample.js +0 -29
  387. package/dist-esm/samples-dev/studentLabsGetSample.js.map +0 -1
  388. package/dist-esm/samples-dev/studentLabsListAllSample.d.ts +0 -2
  389. package/dist-esm/samples-dev/studentLabsListAllSample.d.ts.map +0 -1
  390. package/dist-esm/samples-dev/studentLabsListAllSample.js +0 -42
  391. package/dist-esm/samples-dev/studentLabsListAllSample.js.map +0 -1
  392. package/dist-esm/samples-dev/studentsCreateOrUpdateSample.d.ts +0 -2
  393. package/dist-esm/samples-dev/studentsCreateOrUpdateSample.d.ts.map +0 -1
  394. package/dist-esm/samples-dev/studentsCreateOrUpdateSample.js +0 -40
  395. package/dist-esm/samples-dev/studentsCreateOrUpdateSample.js.map +0 -1
  396. package/dist-esm/samples-dev/studentsDeleteSample.d.ts +0 -2
  397. package/dist-esm/samples-dev/studentsDeleteSample.d.ts.map +0 -1
  398. package/dist-esm/samples-dev/studentsDeleteSample.js +0 -32
  399. package/dist-esm/samples-dev/studentsDeleteSample.js.map +0 -1
  400. package/dist-esm/samples-dev/studentsGetSample.d.ts +0 -2
  401. package/dist-esm/samples-dev/studentsGetSample.d.ts.map +0 -1
  402. package/dist-esm/samples-dev/studentsGetSample.js +0 -32
  403. package/dist-esm/samples-dev/studentsGetSample.js.map +0 -1
  404. package/dist-esm/samples-dev/studentsListSample.d.ts +0 -2
  405. package/dist-esm/samples-dev/studentsListSample.d.ts.map +0 -1
  406. package/dist-esm/samples-dev/studentsListSample.js +0 -45
  407. package/dist-esm/samples-dev/studentsListSample.js.map +0 -1
  408. package/dist-esm/src/educationManagementClient.d.ts.map +0 -1
  409. package/dist-esm/src/educationManagementClient.js.map +0 -1
  410. package/dist-esm/src/index.d.ts +0 -5
  411. package/dist-esm/src/index.d.ts.map +0 -1
  412. package/dist-esm/src/index.js.map +0 -1
  413. package/dist-esm/src/models/index.js.map +0 -1
  414. package/dist-esm/src/models/mappers.js.map +0 -1
  415. package/dist-esm/src/models/parameters.js.map +0 -1
  416. package/dist-esm/src/operations/grants.d.ts.map +0 -1
  417. package/dist-esm/src/operations/grants.js.map +0 -1
  418. package/dist-esm/src/operations/index.d.ts +0 -7
  419. package/dist-esm/src/operations/index.js.map +0 -1
  420. package/dist-esm/src/operations/joinRequests.d.ts.map +0 -1
  421. package/dist-esm/src/operations/joinRequests.js.map +0 -1
  422. package/dist-esm/src/operations/labs.d.ts.map +0 -1
  423. package/dist-esm/src/operations/labs.js.map +0 -1
  424. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  425. package/dist-esm/src/operations/operations.js.map +0 -1
  426. package/dist-esm/src/operations/studentLabs.d.ts.map +0 -1
  427. package/dist-esm/src/operations/studentLabs.js.map +0 -1
  428. package/dist-esm/src/operations/students.d.ts.map +0 -1
  429. package/dist-esm/src/operations/students.js.map +0 -1
  430. package/dist-esm/src/operationsInterfaces/grants.d.ts.map +0 -1
  431. package/dist-esm/src/operationsInterfaces/grants.js.map +0 -1
  432. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -7
  433. package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
  434. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  435. package/dist-esm/src/operationsInterfaces/joinRequests.d.ts.map +0 -1
  436. package/dist-esm/src/operationsInterfaces/joinRequests.js.map +0 -1
  437. package/dist-esm/src/operationsInterfaces/labs.d.ts.map +0 -1
  438. package/dist-esm/src/operationsInterfaces/labs.js.map +0 -1
  439. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +0 -1
  440. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  441. package/dist-esm/src/operationsInterfaces/studentLabs.js.map +0 -1
  442. package/dist-esm/src/operationsInterfaces/students.d.ts.map +0 -1
  443. package/dist-esm/src/operationsInterfaces/students.js.map +0 -1
  444. package/dist-esm/test/sampleTest.d.ts +0 -2
  445. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  446. package/dist-esm/test/sampleTest.js +0 -38
  447. package/dist-esm/test/sampleTest.js.map +0 -1
  448. package/rollup.config.js +0 -122
  449. package/src/educationManagementClient.ts +0 -190
  450. package/src/models/index.ts +0 -806
  451. package/src/models/mappers.ts +0 -775
  452. package/src/models/parameters.ts +0 -215
  453. package/src/operations/grants.ts +0 -330
  454. package/src/operations/index.ts +0 -14
  455. package/src/operations/joinRequests.ts +0 -358
  456. package/src/operations/labs.ts +0 -570
  457. package/src/operations/operations.ts +0 -59
  458. package/src/operations/studentLabs.ts +0 -170
  459. package/src/operations/students.ts +0 -371
  460. package/src/operationsInterfaces/grants.ts +0 -50
  461. package/src/operationsInterfaces/index.ts +0 -14
  462. package/src/operationsInterfaces/joinRequests.ts +0 -80
  463. package/src/operationsInterfaces/labs.ts +0 -110
  464. package/src/operationsInterfaces/operations.ts +0 -21
  465. package/src/operationsInterfaces/studentLabs.ts +0 -36
  466. package/src/operationsInterfaces/students.ts +0 -84
  467. package/tsconfig.json +0 -33
  468. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  469. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  470. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  471. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  472. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  473. /package/{dist-esm/src → dist/browser}/operationsInterfaces/grants.js +0 -0
  474. /package/{dist-esm/src → dist/browser}/operationsInterfaces/joinRequests.js +0 -0
  475. /package/{dist-esm/src → dist/browser}/operationsInterfaces/labs.js +0 -0
  476. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  477. /package/{dist-esm/src → dist/browser}/operationsInterfaces/studentLabs.js +0 -0
  478. /package/{dist-esm/src → dist/browser}/operationsInterfaces/students.js +0 -0
package/dist/index.js DELETED
@@ -1,2522 +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 _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 Origin} that the service accepts. */
38
- exports.KnownOrigin = void 0;
39
- (function (KnownOrigin) {
40
- /** User */
41
- KnownOrigin["User"] = "user";
42
- /** System */
43
- KnownOrigin["System"] = "system";
44
- /** UserSystem */
45
- KnownOrigin["UserSystem"] = "user,system";
46
- })(exports.KnownOrigin || (exports.KnownOrigin = {}));
47
- /** Known values of {@link ActionType} that the service accepts. */
48
- exports.KnownActionType = void 0;
49
- (function (KnownActionType) {
50
- /** Internal */
51
- KnownActionType["Internal"] = "Internal";
52
- })(exports.KnownActionType || (exports.KnownActionType = {}));
53
- /** Known values of {@link GrantType} that the service accepts. */
54
- exports.KnownGrantType = void 0;
55
- (function (KnownGrantType) {
56
- /** Student */
57
- KnownGrantType["Student"] = "Student";
58
- /** Academic */
59
- KnownGrantType["Academic"] = "Academic";
60
- })(exports.KnownGrantType || (exports.KnownGrantType = {}));
61
- /** Known values of {@link GrantStatus} that the service accepts. */
62
- exports.KnownGrantStatus = void 0;
63
- (function (KnownGrantStatus) {
64
- /** Active */
65
- KnownGrantStatus["Active"] = "Active";
66
- /** Inactive */
67
- KnownGrantStatus["Inactive"] = "Inactive";
68
- })(exports.KnownGrantStatus || (exports.KnownGrantStatus = {}));
69
- /** Known values of {@link CreatedByType} that the service accepts. */
70
- exports.KnownCreatedByType = void 0;
71
- (function (KnownCreatedByType) {
72
- /** User */
73
- KnownCreatedByType["User"] = "User";
74
- /** Application */
75
- KnownCreatedByType["Application"] = "Application";
76
- /** ManagedIdentity */
77
- KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
78
- /** Key */
79
- KnownCreatedByType["Key"] = "Key";
80
- })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
81
- /** Known values of {@link LabStatus} that the service accepts. */
82
- exports.KnownLabStatus = void 0;
83
- (function (KnownLabStatus) {
84
- /** Active */
85
- KnownLabStatus["Active"] = "Active";
86
- /** Deleted */
87
- KnownLabStatus["Deleted"] = "Deleted";
88
- /** Pending */
89
- KnownLabStatus["Pending"] = "Pending";
90
- })(exports.KnownLabStatus || (exports.KnownLabStatus = {}));
91
- /** Known values of {@link JoinRequestStatus} that the service accepts. */
92
- exports.KnownJoinRequestStatus = void 0;
93
- (function (KnownJoinRequestStatus) {
94
- /** Pending */
95
- KnownJoinRequestStatus["Pending"] = "Pending";
96
- /** Denied */
97
- KnownJoinRequestStatus["Denied"] = "Denied";
98
- })(exports.KnownJoinRequestStatus || (exports.KnownJoinRequestStatus = {}));
99
- /** Known values of {@link StudentRole} that the service accepts. */
100
- exports.KnownStudentRole = void 0;
101
- (function (KnownStudentRole) {
102
- /** Student */
103
- KnownStudentRole["Student"] = "Student";
104
- /** Admin */
105
- KnownStudentRole["Admin"] = "Admin";
106
- })(exports.KnownStudentRole || (exports.KnownStudentRole = {}));
107
- /** Known values of {@link StudentLabStatus} that the service accepts. */
108
- exports.KnownStudentLabStatus = void 0;
109
- (function (KnownStudentLabStatus) {
110
- /** Active */
111
- KnownStudentLabStatus["Active"] = "Active";
112
- /** Disabled */
113
- KnownStudentLabStatus["Disabled"] = "Disabled";
114
- /** Expired */
115
- KnownStudentLabStatus["Expired"] = "Expired";
116
- /** Pending */
117
- KnownStudentLabStatus["Pending"] = "Pending";
118
- /** Deleted */
119
- KnownStudentLabStatus["Deleted"] = "Deleted";
120
- })(exports.KnownStudentLabStatus || (exports.KnownStudentLabStatus = {}));
121
-
122
- /*
123
- * Copyright (c) Microsoft Corporation.
124
- * Licensed under the MIT License.
125
- *
126
- * Code generated by Microsoft (R) AutoRest Code Generator.
127
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
128
- */
129
- const OperationListResult = {
130
- type: {
131
- name: "Composite",
132
- className: "OperationListResult",
133
- modelProperties: {
134
- value: {
135
- serializedName: "value",
136
- readOnly: true,
137
- type: {
138
- name: "Sequence",
139
- element: {
140
- type: {
141
- name: "Composite",
142
- className: "Operation"
143
- }
144
- }
145
- }
146
- },
147
- nextLink: {
148
- serializedName: "nextLink",
149
- readOnly: true,
150
- type: {
151
- name: "String"
152
- }
153
- }
154
- }
155
- }
156
- };
157
- const Operation = {
158
- type: {
159
- name: "Composite",
160
- className: "Operation",
161
- modelProperties: {
162
- name: {
163
- serializedName: "name",
164
- readOnly: true,
165
- type: {
166
- name: "String"
167
- }
168
- },
169
- isDataAction: {
170
- serializedName: "isDataAction",
171
- readOnly: true,
172
- type: {
173
- name: "Boolean"
174
- }
175
- },
176
- display: {
177
- serializedName: "display",
178
- type: {
179
- name: "Composite",
180
- className: "OperationDisplay"
181
- }
182
- },
183
- origin: {
184
- serializedName: "origin",
185
- readOnly: true,
186
- type: {
187
- name: "String"
188
- }
189
- },
190
- actionType: {
191
- serializedName: "actionType",
192
- readOnly: true,
193
- type: {
194
- name: "String"
195
- }
196
- }
197
- }
198
- }
199
- };
200
- const OperationDisplay = {
201
- type: {
202
- name: "Composite",
203
- className: "OperationDisplay",
204
- modelProperties: {
205
- provider: {
206
- serializedName: "provider",
207
- readOnly: true,
208
- type: {
209
- name: "String"
210
- }
211
- },
212
- resource: {
213
- serializedName: "resource",
214
- readOnly: true,
215
- type: {
216
- name: "String"
217
- }
218
- },
219
- operation: {
220
- serializedName: "operation",
221
- readOnly: true,
222
- type: {
223
- name: "String"
224
- }
225
- },
226
- description: {
227
- serializedName: "description",
228
- readOnly: true,
229
- type: {
230
- name: "String"
231
- }
232
- }
233
- }
234
- }
235
- };
236
- const ErrorResponseBody = {
237
- type: {
238
- name: "Composite",
239
- className: "ErrorResponseBody",
240
- modelProperties: {
241
- error: {
242
- serializedName: "error",
243
- type: {
244
- name: "Composite",
245
- className: "ErrorResponse"
246
- }
247
- }
248
- }
249
- }
250
- };
251
- const ErrorResponse = {
252
- type: {
253
- name: "Composite",
254
- className: "ErrorResponse",
255
- modelProperties: {
256
- code: {
257
- serializedName: "code",
258
- type: {
259
- name: "String"
260
- }
261
- },
262
- message: {
263
- serializedName: "message",
264
- type: {
265
- name: "String"
266
- }
267
- }
268
- }
269
- }
270
- };
271
- const GrantListResponse = {
272
- type: {
273
- name: "Composite",
274
- className: "GrantListResponse",
275
- modelProperties: {
276
- value: {
277
- serializedName: "value",
278
- readOnly: true,
279
- type: {
280
- name: "Sequence",
281
- element: {
282
- type: {
283
- name: "Composite",
284
- className: "GrantDetails"
285
- }
286
- }
287
- }
288
- },
289
- nextLink: {
290
- serializedName: "nextLink",
291
- readOnly: true,
292
- type: {
293
- name: "String"
294
- }
295
- }
296
- }
297
- }
298
- };
299
- const Amount = {
300
- type: {
301
- name: "Composite",
302
- className: "Amount",
303
- modelProperties: {
304
- currency: {
305
- serializedName: "currency",
306
- type: {
307
- name: "String"
308
- }
309
- },
310
- value: {
311
- serializedName: "value",
312
- type: {
313
- name: "Number"
314
- }
315
- }
316
- }
317
- }
318
- };
319
- const Resource = {
320
- type: {
321
- name: "Composite",
322
- className: "Resource",
323
- modelProperties: {
324
- id: {
325
- serializedName: "id",
326
- readOnly: true,
327
- type: {
328
- name: "String"
329
- }
330
- },
331
- name: {
332
- serializedName: "name",
333
- readOnly: true,
334
- type: {
335
- name: "String"
336
- }
337
- },
338
- type: {
339
- serializedName: "type",
340
- readOnly: true,
341
- type: {
342
- name: "String"
343
- }
344
- },
345
- systemData: {
346
- serializedName: "systemData",
347
- type: {
348
- name: "Composite",
349
- className: "SystemData"
350
- }
351
- }
352
- }
353
- }
354
- };
355
- const SystemData = {
356
- type: {
357
- name: "Composite",
358
- className: "SystemData",
359
- modelProperties: {
360
- createdBy: {
361
- serializedName: "createdBy",
362
- type: {
363
- name: "String"
364
- }
365
- },
366
- createdByType: {
367
- serializedName: "createdByType",
368
- type: {
369
- name: "String"
370
- }
371
- },
372
- createdAt: {
373
- serializedName: "createdAt",
374
- type: {
375
- name: "DateTime"
376
- }
377
- },
378
- lastModifiedBy: {
379
- serializedName: "lastModifiedBy",
380
- type: {
381
- name: "String"
382
- }
383
- },
384
- lastModifiedByType: {
385
- serializedName: "lastModifiedByType",
386
- type: {
387
- name: "String"
388
- }
389
- },
390
- lastModifiedAt: {
391
- serializedName: "lastModifiedAt",
392
- type: {
393
- name: "DateTime"
394
- }
395
- }
396
- }
397
- }
398
- };
399
- const LabListResult = {
400
- type: {
401
- name: "Composite",
402
- className: "LabListResult",
403
- modelProperties: {
404
- value: {
405
- serializedName: "value",
406
- readOnly: true,
407
- type: {
408
- name: "Sequence",
409
- element: {
410
- type: {
411
- name: "Composite",
412
- className: "LabDetails"
413
- }
414
- }
415
- }
416
- },
417
- nextLink: {
418
- serializedName: "nextLink",
419
- readOnly: true,
420
- type: {
421
- name: "String"
422
- }
423
- }
424
- }
425
- }
426
- };
427
- const InviteCodeGenerateRequest = {
428
- type: {
429
- name: "Composite",
430
- className: "InviteCodeGenerateRequest",
431
- modelProperties: {
432
- maxStudentCount: {
433
- serializedName: "maxStudentCount",
434
- type: {
435
- name: "Number"
436
- }
437
- }
438
- }
439
- }
440
- };
441
- const JoinRequestList = {
442
- type: {
443
- name: "Composite",
444
- className: "JoinRequestList",
445
- modelProperties: {
446
- value: {
447
- serializedName: "value",
448
- readOnly: true,
449
- type: {
450
- name: "Sequence",
451
- element: {
452
- type: {
453
- name: "Composite",
454
- className: "JoinRequestDetails"
455
- }
456
- }
457
- }
458
- },
459
- nextLink: {
460
- serializedName: "nextLink",
461
- readOnly: true,
462
- type: {
463
- name: "String"
464
- }
465
- }
466
- }
467
- }
468
- };
469
- const RedeemRequest = {
470
- type: {
471
- name: "Composite",
472
- className: "RedeemRequest",
473
- modelProperties: {
474
- redeemCode: {
475
- serializedName: "redeemCode",
476
- required: true,
477
- type: {
478
- name: "String"
479
- }
480
- },
481
- firstName: {
482
- serializedName: "firstName",
483
- required: true,
484
- type: {
485
- name: "String"
486
- }
487
- },
488
- lastName: {
489
- serializedName: "lastName",
490
- required: true,
491
- type: {
492
- name: "String"
493
- }
494
- }
495
- }
496
- }
497
- };
498
- const StudentListResult = {
499
- type: {
500
- name: "Composite",
501
- className: "StudentListResult",
502
- modelProperties: {
503
- value: {
504
- serializedName: "value",
505
- readOnly: true,
506
- type: {
507
- name: "Sequence",
508
- element: {
509
- type: {
510
- name: "Composite",
511
- className: "StudentDetails"
512
- }
513
- }
514
- }
515
- },
516
- nextLink: {
517
- serializedName: "nextLink",
518
- readOnly: true,
519
- type: {
520
- name: "String"
521
- }
522
- }
523
- }
524
- }
525
- };
526
- const StudentLabListResult = {
527
- type: {
528
- name: "Composite",
529
- className: "StudentLabListResult",
530
- modelProperties: {
531
- value: {
532
- serializedName: "value",
533
- readOnly: true,
534
- type: {
535
- name: "Sequence",
536
- element: {
537
- type: {
538
- name: "Composite",
539
- className: "StudentLabDetails"
540
- }
541
- }
542
- }
543
- },
544
- nextLink: {
545
- serializedName: "nextLink",
546
- readOnly: true,
547
- type: {
548
- name: "String"
549
- }
550
- }
551
- }
552
- }
553
- };
554
- const GrantDetails = {
555
- type: {
556
- name: "Composite",
557
- className: "GrantDetails",
558
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { offerCap: {
559
- serializedName: "properties.offerCap",
560
- type: {
561
- name: "Composite",
562
- className: "Amount"
563
- }
564
- }, effectiveDate: {
565
- serializedName: "properties.effectiveDate",
566
- readOnly: true,
567
- type: {
568
- name: "DateTime"
569
- }
570
- }, offerType: {
571
- serializedName: "properties.offerType",
572
- readOnly: true,
573
- type: {
574
- name: "String"
575
- }
576
- }, expirationDate: {
577
- serializedName: "properties.expirationDate",
578
- readOnly: true,
579
- type: {
580
- name: "DateTime"
581
- }
582
- }, status: {
583
- serializedName: "properties.status",
584
- readOnly: true,
585
- type: {
586
- name: "String"
587
- }
588
- }, allocatedBudget: {
589
- serializedName: "properties.allocatedBudget",
590
- type: {
591
- name: "Composite",
592
- className: "Amount"
593
- }
594
- } })
595
- }
596
- };
597
- const LabDetails = {
598
- type: {
599
- name: "Composite",
600
- className: "LabDetails",
601
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { displayName: {
602
- serializedName: "properties.displayName",
603
- type: {
604
- name: "String"
605
- }
606
- }, budgetPerStudent: {
607
- serializedName: "properties.budgetPerStudent",
608
- type: {
609
- name: "Composite",
610
- className: "Amount"
611
- }
612
- }, description: {
613
- serializedName: "properties.description",
614
- type: {
615
- name: "String"
616
- }
617
- }, expirationDate: {
618
- serializedName: "properties.expirationDate",
619
- type: {
620
- name: "DateTime"
621
- }
622
- }, effectiveDate: {
623
- serializedName: "properties.effectiveDate",
624
- readOnly: true,
625
- type: {
626
- name: "DateTime"
627
- }
628
- }, status: {
629
- serializedName: "properties.status",
630
- readOnly: true,
631
- type: {
632
- name: "String"
633
- }
634
- }, maxStudentCount: {
635
- serializedName: "properties.maxStudentCount",
636
- readOnly: true,
637
- type: {
638
- name: "Number"
639
- }
640
- }, invitationCode: {
641
- serializedName: "properties.invitationCode",
642
- readOnly: true,
643
- type: {
644
- name: "String"
645
- }
646
- }, currencyPropertiesTotalAllocatedBudgetCurrency: {
647
- serializedName: "properties.totalAllocatedBudget.currency",
648
- type: {
649
- name: "String"
650
- }
651
- }, valuePropertiesTotalAllocatedBudgetValue: {
652
- serializedName: "properties.totalAllocatedBudget.value",
653
- type: {
654
- name: "Number"
655
- }
656
- }, currencyPropertiesTotalBudgetCurrency: {
657
- serializedName: "properties.totalBudget.currency",
658
- type: {
659
- name: "String"
660
- }
661
- }, valuePropertiesTotalBudgetValue: {
662
- serializedName: "properties.totalBudget.value",
663
- type: {
664
- name: "Number"
665
- }
666
- } })
667
- }
668
- };
669
- const JoinRequestDetails = {
670
- type: {
671
- name: "Composite",
672
- className: "JoinRequestDetails",
673
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { firstName: {
674
- serializedName: "properties.firstName",
675
- type: {
676
- name: "String"
677
- }
678
- }, lastName: {
679
- serializedName: "properties.lastName",
680
- type: {
681
- name: "String"
682
- }
683
- }, email: {
684
- serializedName: "properties.email",
685
- type: {
686
- name: "String"
687
- }
688
- }, status: {
689
- serializedName: "properties.status",
690
- type: {
691
- name: "String"
692
- }
693
- } })
694
- }
695
- };
696
- const StudentDetails = {
697
- type: {
698
- name: "Composite",
699
- className: "StudentDetails",
700
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { firstName: {
701
- serializedName: "properties.firstName",
702
- type: {
703
- name: "String"
704
- }
705
- }, lastName: {
706
- serializedName: "properties.lastName",
707
- type: {
708
- name: "String"
709
- }
710
- }, email: {
711
- serializedName: "properties.email",
712
- type: {
713
- name: "String"
714
- }
715
- }, role: {
716
- serializedName: "properties.role",
717
- type: {
718
- name: "String"
719
- }
720
- }, budget: {
721
- serializedName: "properties.budget",
722
- type: {
723
- name: "Composite",
724
- className: "Amount"
725
- }
726
- }, subscriptionId: {
727
- serializedName: "properties.subscriptionId",
728
- readOnly: true,
729
- type: {
730
- name: "String"
731
- }
732
- }, expirationDate: {
733
- serializedName: "properties.expirationDate",
734
- type: {
735
- name: "DateTime"
736
- }
737
- }, status: {
738
- serializedName: "properties.status",
739
- readOnly: true,
740
- type: {
741
- name: "String"
742
- }
743
- }, effectiveDate: {
744
- serializedName: "properties.effectiveDate",
745
- readOnly: true,
746
- type: {
747
- name: "DateTime"
748
- }
749
- }, subscriptionAlias: {
750
- serializedName: "properties.subscriptionAlias",
751
- type: {
752
- name: "String"
753
- }
754
- }, subscriptionInviteLastSentDate: {
755
- serializedName: "properties.subscriptionInviteLastSentDate",
756
- type: {
757
- name: "DateTime"
758
- }
759
- } })
760
- }
761
- };
762
- const StudentLabDetails = {
763
- type: {
764
- name: "Composite",
765
- className: "StudentLabDetails",
766
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { displayName: {
767
- serializedName: "properties.displayName",
768
- readOnly: true,
769
- type: {
770
- name: "String"
771
- }
772
- }, description: {
773
- serializedName: "properties.description",
774
- readOnly: true,
775
- type: {
776
- name: "String"
777
- }
778
- }, expirationDate: {
779
- serializedName: "properties.expirationDate",
780
- readOnly: true,
781
- type: {
782
- name: "DateTime"
783
- }
784
- }, role: {
785
- serializedName: "properties.role",
786
- readOnly: true,
787
- type: {
788
- name: "String"
789
- }
790
- }, budget: {
791
- serializedName: "properties.budget",
792
- type: {
793
- name: "Composite",
794
- className: "Amount"
795
- }
796
- }, subscriptionId: {
797
- serializedName: "properties.subscriptionId",
798
- readOnly: true,
799
- type: {
800
- name: "String"
801
- }
802
- }, status: {
803
- serializedName: "properties.status",
804
- readOnly: true,
805
- type: {
806
- name: "String"
807
- }
808
- }, effectiveDate: {
809
- serializedName: "properties.effectiveDate",
810
- readOnly: true,
811
- type: {
812
- name: "DateTime"
813
- }
814
- }, labScope: {
815
- serializedName: "properties.labScope",
816
- readOnly: true,
817
- type: {
818
- name: "String"
819
- }
820
- } })
821
- }
822
- };
823
-
824
- var Mappers = /*#__PURE__*/Object.freeze({
825
- __proto__: null,
826
- OperationListResult: OperationListResult,
827
- Operation: Operation,
828
- OperationDisplay: OperationDisplay,
829
- ErrorResponseBody: ErrorResponseBody,
830
- ErrorResponse: ErrorResponse,
831
- GrantListResponse: GrantListResponse,
832
- Amount: Amount,
833
- Resource: Resource,
834
- SystemData: SystemData,
835
- LabListResult: LabListResult,
836
- InviteCodeGenerateRequest: InviteCodeGenerateRequest,
837
- JoinRequestList: JoinRequestList,
838
- RedeemRequest: RedeemRequest,
839
- StudentListResult: StudentListResult,
840
- StudentLabListResult: StudentLabListResult,
841
- GrantDetails: GrantDetails,
842
- LabDetails: LabDetails,
843
- JoinRequestDetails: JoinRequestDetails,
844
- StudentDetails: StudentDetails,
845
- StudentLabDetails: StudentLabDetails
846
- });
847
-
848
- /*
849
- * Copyright (c) Microsoft Corporation.
850
- * Licensed under the MIT License.
851
- *
852
- * Code generated by Microsoft (R) AutoRest Code Generator.
853
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
854
- */
855
- const accept = {
856
- parameterPath: "accept",
857
- mapper: {
858
- defaultValue: "application/json",
859
- isConstant: true,
860
- serializedName: "Accept",
861
- type: {
862
- name: "String"
863
- }
864
- }
865
- };
866
- const $host = {
867
- parameterPath: "$host",
868
- mapper: {
869
- serializedName: "$host",
870
- required: true,
871
- type: {
872
- name: "String"
873
- }
874
- },
875
- skipEncoding: true
876
- };
877
- const apiVersion = {
878
- parameterPath: "apiVersion",
879
- mapper: {
880
- defaultValue: "2021-12-01-preview",
881
- isConstant: true,
882
- serializedName: "api-version",
883
- type: {
884
- name: "String"
885
- }
886
- }
887
- };
888
- const includeAllocatedBudget = {
889
- parameterPath: ["options", "includeAllocatedBudget"],
890
- mapper: {
891
- serializedName: "includeAllocatedBudget",
892
- type: {
893
- name: "Boolean"
894
- }
895
- }
896
- };
897
- const billingAccountName = {
898
- parameterPath: "billingAccountName",
899
- mapper: {
900
- serializedName: "billingAccountName",
901
- required: true,
902
- type: {
903
- name: "String"
904
- }
905
- }
906
- };
907
- const billingProfileName = {
908
- parameterPath: "billingProfileName",
909
- mapper: {
910
- serializedName: "billingProfileName",
911
- required: true,
912
- type: {
913
- name: "String"
914
- }
915
- }
916
- };
917
- const nextLink = {
918
- parameterPath: "nextLink",
919
- mapper: {
920
- serializedName: "nextLink",
921
- required: true,
922
- type: {
923
- name: "String"
924
- }
925
- },
926
- skipEncoding: true
927
- };
928
- const includeBudget = {
929
- parameterPath: ["options", "includeBudget"],
930
- mapper: {
931
- serializedName: "includeBudget",
932
- type: {
933
- name: "Boolean"
934
- }
935
- }
936
- };
937
- const includeDeleted = {
938
- parameterPath: ["options", "includeDeleted"],
939
- mapper: {
940
- serializedName: "includeDeleted",
941
- type: {
942
- name: "Boolean"
943
- }
944
- }
945
- };
946
- const invoiceSectionName = {
947
- parameterPath: "invoiceSectionName",
948
- mapper: {
949
- serializedName: "invoiceSectionName",
950
- required: true,
951
- type: {
952
- name: "String"
953
- }
954
- }
955
- };
956
- const contentType = {
957
- parameterPath: ["options", "contentType"],
958
- mapper: {
959
- defaultValue: "application/json",
960
- isConstant: true,
961
- serializedName: "Content-Type",
962
- type: {
963
- name: "String"
964
- }
965
- }
966
- };
967
- const parameters = {
968
- parameterPath: "parameters",
969
- mapper: LabDetails
970
- };
971
- const parameters1 = {
972
- parameterPath: "parameters",
973
- mapper: InviteCodeGenerateRequest
974
- };
975
- const onlyUpdateStudentCountParameter = {
976
- parameterPath: ["options", "onlyUpdateStudentCountParameter"],
977
- mapper: {
978
- serializedName: "onlyUpdateStudentCountParameter",
979
- type: {
980
- name: "Boolean"
981
- }
982
- }
983
- };
984
- const includeDenied = {
985
- parameterPath: ["options", "includeDenied"],
986
- mapper: {
987
- serializedName: "includeDenied",
988
- type: {
989
- name: "Boolean"
990
- }
991
- }
992
- };
993
- const joinRequestName = {
994
- parameterPath: "joinRequestName",
995
- mapper: {
996
- serializedName: "joinRequestName",
997
- required: true,
998
- type: {
999
- name: "String"
1000
- }
1001
- }
1002
- };
1003
- const parameters2 = {
1004
- parameterPath: "parameters",
1005
- mapper: RedeemRequest
1006
- };
1007
- const studentAlias = {
1008
- parameterPath: "studentAlias",
1009
- mapper: {
1010
- serializedName: "studentAlias",
1011
- required: true,
1012
- type: {
1013
- name: "String"
1014
- }
1015
- }
1016
- };
1017
- const parameters3 = {
1018
- parameterPath: "parameters",
1019
- mapper: StudentDetails
1020
- };
1021
- const studentLabName = {
1022
- parameterPath: "studentLabName",
1023
- mapper: {
1024
- serializedName: "studentLabName",
1025
- required: true,
1026
- type: {
1027
- name: "String"
1028
- }
1029
- }
1030
- };
1031
-
1032
- /*
1033
- * Copyright (c) Microsoft Corporation.
1034
- * Licensed under the MIT License.
1035
- *
1036
- * Code generated by Microsoft (R) AutoRest Code Generator.
1037
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1038
- */
1039
- /** Class containing Operations operations. */
1040
- class OperationsImpl {
1041
- /**
1042
- * Initialize a new instance of the class Operations class.
1043
- * @param client Reference to the service client
1044
- */
1045
- constructor(client) {
1046
- this.client = client;
1047
- }
1048
- /**
1049
- * Lists all of the available Microsoft.Education API operations.
1050
- * @param options The options parameters.
1051
- */
1052
- list(options) {
1053
- return this.client.sendOperationRequest({ options }, listOperationSpec$4);
1054
- }
1055
- }
1056
- // Operation Specifications
1057
- const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1058
- const listOperationSpec$4 = {
1059
- path: "/providers/Microsoft.Education/operations",
1060
- httpMethod: "GET",
1061
- responses: {
1062
- 200: {
1063
- bodyMapper: OperationListResult
1064
- },
1065
- default: {
1066
- bodyMapper: ErrorResponseBody
1067
- }
1068
- },
1069
- queryParameters: [apiVersion],
1070
- urlParameters: [$host],
1071
- headerParameters: [accept],
1072
- serializer: serializer$6
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 Grants operations. */
1084
- class GrantsImpl {
1085
- /**
1086
- * Initialize a new instance of the class Grants class.
1087
- * @param client Reference to the service client
1088
- */
1089
- constructor(client) {
1090
- this.client = client;
1091
- }
1092
- /**
1093
- * Get a list of grants that Microsoft has provided.
1094
- * @param options The options parameters.
1095
- */
1096
- listAll(options) {
1097
- const iter = this.listAllPagingAll(options);
1098
- return {
1099
- next() {
1100
- return iter.next();
1101
- },
1102
- [Symbol.asyncIterator]() {
1103
- return this;
1104
- },
1105
- byPage: () => {
1106
- return this.listAllPagingPage(options);
1107
- }
1108
- };
1109
- }
1110
- listAllPagingPage(options) {
1111
- return tslib.__asyncGenerator(this, arguments, function* listAllPagingPage_1() {
1112
- let result = yield tslib.__await(this._listAll(options));
1113
- yield yield tslib.__await(result.value || []);
1114
- let continuationToken = result.nextLink;
1115
- while (continuationToken) {
1116
- result = yield tslib.__await(this._listAllNext(continuationToken, options));
1117
- continuationToken = result.nextLink;
1118
- yield yield tslib.__await(result.value || []);
1119
- }
1120
- });
1121
- }
1122
- listAllPagingAll(options) {
1123
- return tslib.__asyncGenerator(this, arguments, function* listAllPagingAll_1() {
1124
- var e_1, _a;
1125
- try {
1126
- for (var _b = tslib.__asyncValues(this.listAllPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1127
- const page = _c.value;
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 (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1135
- }
1136
- finally { if (e_1) throw e_1.error; }
1137
- }
1138
- });
1139
- }
1140
- /**
1141
- * Get details for a specific grant linked to the provided billing account and billing profile.
1142
- * @param billingAccountName Billing account name.
1143
- * @param billingProfileName Billing profile name.
1144
- * @param options The options parameters.
1145
- */
1146
- list(billingAccountName, billingProfileName, options) {
1147
- const iter = this.listPagingAll(billingAccountName, billingProfileName, options);
1148
- return {
1149
- next() {
1150
- return iter.next();
1151
- },
1152
- [Symbol.asyncIterator]() {
1153
- return this;
1154
- },
1155
- byPage: () => {
1156
- return this.listPagingPage(billingAccountName, billingProfileName, options);
1157
- }
1158
- };
1159
- }
1160
- listPagingPage(billingAccountName, billingProfileName, options) {
1161
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1162
- let result = yield tslib.__await(this._list(billingAccountName, billingProfileName, options));
1163
- yield yield tslib.__await(result.value || []);
1164
- let continuationToken = result.nextLink;
1165
- while (continuationToken) {
1166
- result = yield tslib.__await(this._listNext(billingAccountName, billingProfileName, continuationToken, options));
1167
- continuationToken = result.nextLink;
1168
- yield yield tslib.__await(result.value || []);
1169
- }
1170
- });
1171
- }
1172
- listPagingAll(billingAccountName, billingProfileName, options) {
1173
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1174
- var e_2, _a;
1175
- try {
1176
- for (var _b = tslib.__asyncValues(this.listPagingPage(billingAccountName, billingProfileName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1177
- const page = _c.value;
1178
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1179
- }
1180
- }
1181
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
1182
- finally {
1183
- try {
1184
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1185
- }
1186
- finally { if (e_2) throw e_2.error; }
1187
- }
1188
- });
1189
- }
1190
- /**
1191
- * Get a list of grants that Microsoft has provided.
1192
- * @param options The options parameters.
1193
- */
1194
- _listAll(options) {
1195
- return this.client.sendOperationRequest({ options }, listAllOperationSpec$2);
1196
- }
1197
- /**
1198
- * Get details for a specific grant linked to the provided billing account and billing profile.
1199
- * @param billingAccountName Billing account name.
1200
- * @param billingProfileName Billing profile name.
1201
- * @param options The options parameters.
1202
- */
1203
- _list(billingAccountName, billingProfileName, options) {
1204
- return this.client.sendOperationRequest({ billingAccountName, billingProfileName, options }, listOperationSpec$3);
1205
- }
1206
- /**
1207
- * Get details for a specific grant linked to the provided billing account and billing profile.
1208
- * @param billingAccountName Billing account name.
1209
- * @param billingProfileName Billing profile name.
1210
- * @param options The options parameters.
1211
- */
1212
- get(billingAccountName, billingProfileName, options) {
1213
- return this.client.sendOperationRequest({ billingAccountName, billingProfileName, options }, getOperationSpec$4);
1214
- }
1215
- /**
1216
- * ListAllNext
1217
- * @param nextLink The nextLink from the previous successful call to the ListAll method.
1218
- * @param options The options parameters.
1219
- */
1220
- _listAllNext(nextLink, options) {
1221
- return this.client.sendOperationRequest({ nextLink, options }, listAllNextOperationSpec$2);
1222
- }
1223
- /**
1224
- * ListNext
1225
- * @param billingAccountName Billing account name.
1226
- * @param billingProfileName Billing profile name.
1227
- * @param nextLink The nextLink from the previous successful call to the List method.
1228
- * @param options The options parameters.
1229
- */
1230
- _listNext(billingAccountName, billingProfileName, nextLink, options) {
1231
- return this.client.sendOperationRequest({ billingAccountName, billingProfileName, nextLink, options }, listNextOperationSpec$3);
1232
- }
1233
- }
1234
- // Operation Specifications
1235
- const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1236
- const listAllOperationSpec$2 = {
1237
- path: "/providers/Microsoft.Education/grants",
1238
- httpMethod: "GET",
1239
- responses: {
1240
- 200: {
1241
- bodyMapper: GrantListResponse
1242
- },
1243
- default: {
1244
- bodyMapper: ErrorResponseBody
1245
- }
1246
- },
1247
- queryParameters: [apiVersion, includeAllocatedBudget],
1248
- urlParameters: [$host],
1249
- headerParameters: [accept],
1250
- serializer: serializer$5
1251
- };
1252
- const listOperationSpec$3 = {
1253
- path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.Education/grants",
1254
- httpMethod: "GET",
1255
- responses: {
1256
- 200: {
1257
- bodyMapper: GrantListResponse
1258
- },
1259
- default: {
1260
- bodyMapper: ErrorResponseBody
1261
- }
1262
- },
1263
- queryParameters: [apiVersion, includeAllocatedBudget],
1264
- urlParameters: [
1265
- $host,
1266
- billingAccountName,
1267
- billingProfileName
1268
- ],
1269
- headerParameters: [accept],
1270
- serializer: serializer$5
1271
- };
1272
- const getOperationSpec$4 = {
1273
- path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.Education/grants/default",
1274
- httpMethod: "GET",
1275
- responses: {
1276
- 200: {
1277
- bodyMapper: GrantDetails
1278
- },
1279
- default: {
1280
- bodyMapper: ErrorResponseBody
1281
- }
1282
- },
1283
- queryParameters: [apiVersion, includeAllocatedBudget],
1284
- urlParameters: [
1285
- $host,
1286
- billingAccountName,
1287
- billingProfileName
1288
- ],
1289
- headerParameters: [accept],
1290
- serializer: serializer$5
1291
- };
1292
- const listAllNextOperationSpec$2 = {
1293
- path: "{nextLink}",
1294
- httpMethod: "GET",
1295
- responses: {
1296
- 200: {
1297
- bodyMapper: GrantListResponse
1298
- },
1299
- default: {
1300
- bodyMapper: ErrorResponseBody
1301
- }
1302
- },
1303
- queryParameters: [apiVersion, includeAllocatedBudget],
1304
- urlParameters: [$host, nextLink],
1305
- headerParameters: [accept],
1306
- serializer: serializer$5
1307
- };
1308
- const listNextOperationSpec$3 = {
1309
- path: "{nextLink}",
1310
- httpMethod: "GET",
1311
- responses: {
1312
- 200: {
1313
- bodyMapper: GrantListResponse
1314
- },
1315
- default: {
1316
- bodyMapper: ErrorResponseBody
1317
- }
1318
- },
1319
- queryParameters: [apiVersion, includeAllocatedBudget],
1320
- urlParameters: [
1321
- $host,
1322
- billingAccountName,
1323
- billingProfileName,
1324
- nextLink
1325
- ],
1326
- headerParameters: [accept],
1327
- serializer: serializer$5
1328
- };
1329
-
1330
- /*
1331
- * Copyright (c) Microsoft Corporation.
1332
- * Licensed under the MIT License.
1333
- *
1334
- * Code generated by Microsoft (R) AutoRest Code Generator.
1335
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1336
- */
1337
- /// <reference lib="esnext.asynciterable" />
1338
- /** Class containing Labs operations. */
1339
- class LabsImpl {
1340
- /**
1341
- * Initialize a new instance of the class Labs class.
1342
- * @param client Reference to the service client
1343
- */
1344
- constructor(client) {
1345
- this.client = client;
1346
- }
1347
- /**
1348
- * Get a list of labs associated with the provided billing account name and billing profile name.
1349
- * @param billingAccountName Billing account name.
1350
- * @param billingProfileName Billing profile name.
1351
- * @param options The options parameters.
1352
- */
1353
- listAll(billingAccountName, billingProfileName, options) {
1354
- const iter = this.listAllPagingAll(billingAccountName, billingProfileName, options);
1355
- return {
1356
- next() {
1357
- return iter.next();
1358
- },
1359
- [Symbol.asyncIterator]() {
1360
- return this;
1361
- },
1362
- byPage: () => {
1363
- return this.listAllPagingPage(billingAccountName, billingProfileName, options);
1364
- }
1365
- };
1366
- }
1367
- listAllPagingPage(billingAccountName, billingProfileName, options) {
1368
- return tslib.__asyncGenerator(this, arguments, function* listAllPagingPage_1() {
1369
- let result = yield tslib.__await(this._listAll(billingAccountName, billingProfileName, options));
1370
- yield yield tslib.__await(result.value || []);
1371
- let continuationToken = result.nextLink;
1372
- while (continuationToken) {
1373
- result = yield tslib.__await(this._listAllNext(billingAccountName, billingProfileName, continuationToken, options));
1374
- continuationToken = result.nextLink;
1375
- yield yield tslib.__await(result.value || []);
1376
- }
1377
- });
1378
- }
1379
- listAllPagingAll(billingAccountName, billingProfileName, options) {
1380
- return tslib.__asyncGenerator(this, arguments, function* listAllPagingAll_1() {
1381
- var e_1, _a;
1382
- try {
1383
- for (var _b = tslib.__asyncValues(this.listAllPagingPage(billingAccountName, billingProfileName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1384
- const page = _c.value;
1385
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1386
- }
1387
- }
1388
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1389
- finally {
1390
- try {
1391
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1392
- }
1393
- finally { if (e_1) throw e_1.error; }
1394
- }
1395
- });
1396
- }
1397
- /**
1398
- * Get the details for a specific lab associated with the provided billing account name, billing
1399
- * profile name, and invoice section name.
1400
- * @param billingAccountName Billing account name.
1401
- * @param billingProfileName Billing profile name.
1402
- * @param invoiceSectionName Invoice section name.
1403
- * @param options The options parameters.
1404
- */
1405
- list(billingAccountName, billingProfileName, invoiceSectionName, options) {
1406
- const iter = this.listPagingAll(billingAccountName, billingProfileName, invoiceSectionName, options);
1407
- return {
1408
- next() {
1409
- return iter.next();
1410
- },
1411
- [Symbol.asyncIterator]() {
1412
- return this;
1413
- },
1414
- byPage: () => {
1415
- return this.listPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options);
1416
- }
1417
- };
1418
- }
1419
- listPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options) {
1420
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1421
- let result = yield tslib.__await(this._list(billingAccountName, billingProfileName, invoiceSectionName, options));
1422
- yield yield tslib.__await(result.value || []);
1423
- let continuationToken = result.nextLink;
1424
- while (continuationToken) {
1425
- result = yield tslib.__await(this._listNext(billingAccountName, billingProfileName, invoiceSectionName, continuationToken, options));
1426
- continuationToken = result.nextLink;
1427
- yield yield tslib.__await(result.value || []);
1428
- }
1429
- });
1430
- }
1431
- listPagingAll(billingAccountName, billingProfileName, invoiceSectionName, options) {
1432
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1433
- var e_2, _a;
1434
- try {
1435
- for (var _b = tslib.__asyncValues(this.listPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1436
- const page = _c.value;
1437
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1438
- }
1439
- }
1440
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
1441
- finally {
1442
- try {
1443
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1444
- }
1445
- finally { if (e_2) throw e_2.error; }
1446
- }
1447
- });
1448
- }
1449
- /**
1450
- * Get a list of labs associated with the provided billing account name and billing profile name.
1451
- * @param billingAccountName Billing account name.
1452
- * @param billingProfileName Billing profile name.
1453
- * @param options The options parameters.
1454
- */
1455
- _listAll(billingAccountName, billingProfileName, options) {
1456
- return this.client.sendOperationRequest({ billingAccountName, billingProfileName, options }, listAllOperationSpec$1);
1457
- }
1458
- /**
1459
- * Get the details for a specific lab associated with the provided billing account name, billing
1460
- * profile name, and invoice section name.
1461
- * @param billingAccountName Billing account name.
1462
- * @param billingProfileName Billing profile name.
1463
- * @param invoiceSectionName Invoice section name.
1464
- * @param options The options parameters.
1465
- */
1466
- _list(billingAccountName, billingProfileName, invoiceSectionName, options) {
1467
- return this.client.sendOperationRequest({ billingAccountName, billingProfileName, invoiceSectionName, options }, listOperationSpec$2);
1468
- }
1469
- /**
1470
- * Get the details for a specific lab associated with the provided billing account name, billing
1471
- * profile name, and invoice section name.
1472
- * @param billingAccountName Billing account name.
1473
- * @param billingProfileName Billing profile name.
1474
- * @param invoiceSectionName Invoice section name.
1475
- * @param options The options parameters.
1476
- */
1477
- get(billingAccountName, billingProfileName, invoiceSectionName, options) {
1478
- return this.client.sendOperationRequest({ billingAccountName, billingProfileName, invoiceSectionName, options }, getOperationSpec$3);
1479
- }
1480
- /**
1481
- * Delete a specific lab associated with the provided billing account name, billing profile name, and
1482
- * invoice section name. Note all students must be removed from the lab in order to delete the lab.
1483
- * @param billingAccountName Billing account name.
1484
- * @param billingProfileName Billing profile name.
1485
- * @param invoiceSectionName Invoice section name.
1486
- * @param options The options parameters.
1487
- */
1488
- delete(billingAccountName, billingProfileName, invoiceSectionName, options) {
1489
- return this.client.sendOperationRequest({ billingAccountName, billingProfileName, invoiceSectionName, options }, deleteOperationSpec$1);
1490
- }
1491
- /**
1492
- * Create a new lab or update a previously created lab.
1493
- * @param billingAccountName Billing account name.
1494
- * @param billingProfileName Billing profile name.
1495
- * @param invoiceSectionName Invoice section name.
1496
- * @param parameters Request parameters that are provided to create lab resource.
1497
- * @param options The options parameters.
1498
- */
1499
- createOrUpdate(billingAccountName, billingProfileName, invoiceSectionName, parameters, options) {
1500
- return this.client.sendOperationRequest({
1501
- billingAccountName,
1502
- billingProfileName,
1503
- invoiceSectionName,
1504
- parameters,
1505
- options
1506
- }, createOrUpdateOperationSpec$1);
1507
- }
1508
- /**
1509
- * Generate invite code for a lab
1510
- * @param billingAccountName Billing account name.
1511
- * @param billingProfileName Billing profile name.
1512
- * @param invoiceSectionName Invoice section name.
1513
- * @param parameters Request parameters that are provided to generate invite code.
1514
- * @param options The options parameters.
1515
- */
1516
- generateInviteCode(billingAccountName, billingProfileName, invoiceSectionName, parameters, options) {
1517
- return this.client.sendOperationRequest({
1518
- billingAccountName,
1519
- billingProfileName,
1520
- invoiceSectionName,
1521
- parameters,
1522
- options
1523
- }, generateInviteCodeOperationSpec);
1524
- }
1525
- /**
1526
- * ListAllNext
1527
- * @param billingAccountName Billing account name.
1528
- * @param billingProfileName Billing profile name.
1529
- * @param nextLink The nextLink from the previous successful call to the ListAll method.
1530
- * @param options The options parameters.
1531
- */
1532
- _listAllNext(billingAccountName, billingProfileName, nextLink, options) {
1533
- return this.client.sendOperationRequest({ billingAccountName, billingProfileName, nextLink, options }, listAllNextOperationSpec$1);
1534
- }
1535
- /**
1536
- * ListNext
1537
- * @param billingAccountName Billing account name.
1538
- * @param billingProfileName Billing profile name.
1539
- * @param invoiceSectionName Invoice section name.
1540
- * @param nextLink The nextLink from the previous successful call to the List method.
1541
- * @param options The options parameters.
1542
- */
1543
- _listNext(billingAccountName, billingProfileName, invoiceSectionName, nextLink, options) {
1544
- return this.client.sendOperationRequest({
1545
- billingAccountName,
1546
- billingProfileName,
1547
- invoiceSectionName,
1548
- nextLink,
1549
- options
1550
- }, listNextOperationSpec$2);
1551
- }
1552
- }
1553
- // Operation Specifications
1554
- const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1555
- const listAllOperationSpec$1 = {
1556
- path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.Education/labs",
1557
- httpMethod: "GET",
1558
- responses: {
1559
- 200: {
1560
- bodyMapper: LabListResult
1561
- },
1562
- default: {
1563
- bodyMapper: ErrorResponseBody
1564
- }
1565
- },
1566
- queryParameters: [
1567
- apiVersion,
1568
- includeBudget,
1569
- includeDeleted
1570
- ],
1571
- urlParameters: [
1572
- $host,
1573
- billingAccountName,
1574
- billingProfileName
1575
- ],
1576
- headerParameters: [accept],
1577
- serializer: serializer$4
1578
- };
1579
- const listOperationSpec$2 = {
1580
- path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs",
1581
- httpMethod: "GET",
1582
- responses: {
1583
- 200: {
1584
- bodyMapper: LabListResult
1585
- },
1586
- default: {
1587
- bodyMapper: ErrorResponseBody
1588
- }
1589
- },
1590
- queryParameters: [apiVersion, includeBudget],
1591
- urlParameters: [
1592
- $host,
1593
- billingAccountName,
1594
- billingProfileName,
1595
- invoiceSectionName
1596
- ],
1597
- headerParameters: [accept],
1598
- serializer: serializer$4
1599
- };
1600
- const getOperationSpec$3 = {
1601
- path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default",
1602
- httpMethod: "GET",
1603
- responses: {
1604
- 200: {
1605
- bodyMapper: LabDetails
1606
- },
1607
- default: {
1608
- bodyMapper: ErrorResponseBody
1609
- }
1610
- },
1611
- queryParameters: [apiVersion, includeBudget],
1612
- urlParameters: [
1613
- $host,
1614
- billingAccountName,
1615
- billingProfileName,
1616
- invoiceSectionName
1617
- ],
1618
- headerParameters: [accept],
1619
- serializer: serializer$4
1620
- };
1621
- const deleteOperationSpec$1 = {
1622
- path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default",
1623
- httpMethod: "DELETE",
1624
- responses: {
1625
- 200: {},
1626
- 204: {},
1627
- default: {
1628
- bodyMapper: ErrorResponseBody
1629
- }
1630
- },
1631
- queryParameters: [apiVersion],
1632
- urlParameters: [
1633
- $host,
1634
- billingAccountName,
1635
- billingProfileName,
1636
- invoiceSectionName
1637
- ],
1638
- headerParameters: [accept],
1639
- serializer: serializer$4
1640
- };
1641
- const createOrUpdateOperationSpec$1 = {
1642
- path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default",
1643
- httpMethod: "PUT",
1644
- responses: {
1645
- 200: {
1646
- bodyMapper: LabDetails
1647
- },
1648
- 201: {
1649
- bodyMapper: LabDetails
1650
- },
1651
- default: {
1652
- bodyMapper: ErrorResponseBody
1653
- }
1654
- },
1655
- requestBody: parameters,
1656
- queryParameters: [apiVersion],
1657
- urlParameters: [
1658
- $host,
1659
- billingAccountName,
1660
- billingProfileName,
1661
- invoiceSectionName
1662
- ],
1663
- headerParameters: [accept, contentType],
1664
- mediaType: "json",
1665
- serializer: serializer$4
1666
- };
1667
- const generateInviteCodeOperationSpec = {
1668
- path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/generateInviteCode",
1669
- httpMethod: "POST",
1670
- responses: {
1671
- 200: {
1672
- bodyMapper: LabDetails
1673
- },
1674
- default: {
1675
- bodyMapper: ErrorResponseBody
1676
- }
1677
- },
1678
- requestBody: parameters1,
1679
- queryParameters: [
1680
- apiVersion,
1681
- onlyUpdateStudentCountParameter
1682
- ],
1683
- urlParameters: [
1684
- $host,
1685
- billingAccountName,
1686
- billingProfileName,
1687
- invoiceSectionName
1688
- ],
1689
- headerParameters: [accept, contentType],
1690
- mediaType: "json",
1691
- serializer: serializer$4
1692
- };
1693
- const listAllNextOperationSpec$1 = {
1694
- path: "{nextLink}",
1695
- httpMethod: "GET",
1696
- responses: {
1697
- 200: {
1698
- bodyMapper: LabListResult
1699
- },
1700
- default: {
1701
- bodyMapper: ErrorResponseBody
1702
- }
1703
- },
1704
- queryParameters: [
1705
- apiVersion,
1706
- includeBudget,
1707
- includeDeleted
1708
- ],
1709
- urlParameters: [
1710
- $host,
1711
- billingAccountName,
1712
- billingProfileName,
1713
- nextLink
1714
- ],
1715
- headerParameters: [accept],
1716
- serializer: serializer$4
1717
- };
1718
- const listNextOperationSpec$2 = {
1719
- path: "{nextLink}",
1720
- httpMethod: "GET",
1721
- responses: {
1722
- 200: {
1723
- bodyMapper: LabListResult
1724
- },
1725
- default: {
1726
- bodyMapper: ErrorResponseBody
1727
- }
1728
- },
1729
- queryParameters: [apiVersion, includeBudget],
1730
- urlParameters: [
1731
- $host,
1732
- billingAccountName,
1733
- billingProfileName,
1734
- nextLink,
1735
- invoiceSectionName
1736
- ],
1737
- headerParameters: [accept],
1738
- serializer: serializer$4
1739
- };
1740
-
1741
- /*
1742
- * Copyright (c) Microsoft Corporation.
1743
- * Licensed under the MIT License.
1744
- *
1745
- * Code generated by Microsoft (R) AutoRest Code Generator.
1746
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1747
- */
1748
- /// <reference lib="esnext.asynciterable" />
1749
- /** Class containing JoinRequests operations. */
1750
- class JoinRequestsImpl {
1751
- /**
1752
- * Initialize a new instance of the class JoinRequests class.
1753
- * @param client Reference to the service client
1754
- */
1755
- constructor(client) {
1756
- this.client = client;
1757
- }
1758
- /**
1759
- * get student join requests
1760
- * @param billingAccountName Billing account name.
1761
- * @param billingProfileName Billing profile name.
1762
- * @param invoiceSectionName Invoice section name.
1763
- * @param options The options parameters.
1764
- */
1765
- list(billingAccountName, billingProfileName, invoiceSectionName, options) {
1766
- const iter = this.listPagingAll(billingAccountName, billingProfileName, invoiceSectionName, options);
1767
- return {
1768
- next() {
1769
- return iter.next();
1770
- },
1771
- [Symbol.asyncIterator]() {
1772
- return this;
1773
- },
1774
- byPage: () => {
1775
- return this.listPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options);
1776
- }
1777
- };
1778
- }
1779
- listPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options) {
1780
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1781
- let result = yield tslib.__await(this._list(billingAccountName, billingProfileName, invoiceSectionName, options));
1782
- yield yield tslib.__await(result.value || []);
1783
- let continuationToken = result.nextLink;
1784
- while (continuationToken) {
1785
- result = yield tslib.__await(this._listNext(billingAccountName, billingProfileName, invoiceSectionName, continuationToken, options));
1786
- continuationToken = result.nextLink;
1787
- yield yield tslib.__await(result.value || []);
1788
- }
1789
- });
1790
- }
1791
- listPagingAll(billingAccountName, billingProfileName, invoiceSectionName, options) {
1792
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1793
- var e_1, _a;
1794
- try {
1795
- for (var _b = tslib.__asyncValues(this.listPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1796
- const page = _c.value;
1797
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1798
- }
1799
- }
1800
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1801
- finally {
1802
- try {
1803
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1804
- }
1805
- finally { if (e_1) throw e_1.error; }
1806
- }
1807
- });
1808
- }
1809
- /**
1810
- * get student join requests
1811
- * @param billingAccountName Billing account name.
1812
- * @param billingProfileName Billing profile name.
1813
- * @param invoiceSectionName Invoice section name.
1814
- * @param options The options parameters.
1815
- */
1816
- _list(billingAccountName, billingProfileName, invoiceSectionName, options) {
1817
- return this.client.sendOperationRequest({ billingAccountName, billingProfileName, invoiceSectionName, options }, listOperationSpec$1);
1818
- }
1819
- /**
1820
- * get student join requests
1821
- * @param billingAccountName Billing account name.
1822
- * @param billingProfileName Billing profile name.
1823
- * @param invoiceSectionName Invoice section name.
1824
- * @param joinRequestName Join name
1825
- * @param options The options parameters.
1826
- */
1827
- get(billingAccountName, billingProfileName, invoiceSectionName, joinRequestName, options) {
1828
- return this.client.sendOperationRequest({
1829
- billingAccountName,
1830
- billingProfileName,
1831
- invoiceSectionName,
1832
- joinRequestName,
1833
- options
1834
- }, getOperationSpec$2);
1835
- }
1836
- /**
1837
- * Approve student joining the redeemable lab
1838
- * @param billingAccountName Billing account name.
1839
- * @param billingProfileName Billing profile name.
1840
- * @param invoiceSectionName Invoice section name.
1841
- * @param joinRequestName Join name
1842
- * @param options The options parameters.
1843
- */
1844
- approve(billingAccountName, billingProfileName, invoiceSectionName, joinRequestName, options) {
1845
- return this.client.sendOperationRequest({
1846
- billingAccountName,
1847
- billingProfileName,
1848
- invoiceSectionName,
1849
- joinRequestName,
1850
- options
1851
- }, approveOperationSpec);
1852
- }
1853
- /**
1854
- * Deny student joining the redeemable lab
1855
- * @param billingAccountName Billing account name.
1856
- * @param billingProfileName Billing profile name.
1857
- * @param invoiceSectionName Invoice section name.
1858
- * @param joinRequestName Join name
1859
- * @param options The options parameters.
1860
- */
1861
- deny(billingAccountName, billingProfileName, invoiceSectionName, joinRequestName, options) {
1862
- return this.client.sendOperationRequest({
1863
- billingAccountName,
1864
- billingProfileName,
1865
- invoiceSectionName,
1866
- joinRequestName,
1867
- options
1868
- }, denyOperationSpec);
1869
- }
1870
- /**
1871
- * ListNext
1872
- * @param billingAccountName Billing account name.
1873
- * @param billingProfileName Billing profile name.
1874
- * @param invoiceSectionName Invoice section name.
1875
- * @param nextLink The nextLink from the previous successful call to the List method.
1876
- * @param options The options parameters.
1877
- */
1878
- _listNext(billingAccountName, billingProfileName, invoiceSectionName, nextLink, options) {
1879
- return this.client.sendOperationRequest({
1880
- billingAccountName,
1881
- billingProfileName,
1882
- invoiceSectionName,
1883
- nextLink,
1884
- options
1885
- }, listNextOperationSpec$1);
1886
- }
1887
- }
1888
- // Operation Specifications
1889
- const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1890
- const listOperationSpec$1 = {
1891
- path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/joinRequests",
1892
- httpMethod: "GET",
1893
- responses: {
1894
- 200: {
1895
- bodyMapper: JoinRequestList
1896
- },
1897
- default: {
1898
- bodyMapper: ErrorResponseBody
1899
- }
1900
- },
1901
- queryParameters: [apiVersion, includeDenied],
1902
- urlParameters: [
1903
- $host,
1904
- billingAccountName,
1905
- billingProfileName,
1906
- invoiceSectionName
1907
- ],
1908
- headerParameters: [accept],
1909
- serializer: serializer$3
1910
- };
1911
- const getOperationSpec$2 = {
1912
- path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/joinRequests/{joinRequestName}",
1913
- httpMethod: "GET",
1914
- responses: {
1915
- 200: {
1916
- bodyMapper: JoinRequestDetails
1917
- },
1918
- default: {
1919
- bodyMapper: ErrorResponseBody
1920
- }
1921
- },
1922
- queryParameters: [apiVersion],
1923
- urlParameters: [
1924
- $host,
1925
- billingAccountName,
1926
- billingProfileName,
1927
- invoiceSectionName,
1928
- joinRequestName
1929
- ],
1930
- headerParameters: [accept],
1931
- serializer: serializer$3
1932
- };
1933
- const approveOperationSpec = {
1934
- path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/joinRequests/{joinRequestName}/approve",
1935
- httpMethod: "POST",
1936
- responses: {
1937
- 200: {},
1938
- default: {
1939
- bodyMapper: ErrorResponseBody
1940
- }
1941
- },
1942
- queryParameters: [apiVersion],
1943
- urlParameters: [
1944
- $host,
1945
- billingAccountName,
1946
- billingProfileName,
1947
- invoiceSectionName,
1948
- joinRequestName
1949
- ],
1950
- headerParameters: [accept],
1951
- serializer: serializer$3
1952
- };
1953
- const denyOperationSpec = {
1954
- path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/joinRequests/{joinRequestName}/deny",
1955
- httpMethod: "POST",
1956
- responses: {
1957
- 200: {},
1958
- default: {
1959
- bodyMapper: ErrorResponseBody
1960
- }
1961
- },
1962
- queryParameters: [apiVersion],
1963
- urlParameters: [
1964
- $host,
1965
- billingAccountName,
1966
- billingProfileName,
1967
- invoiceSectionName,
1968
- joinRequestName
1969
- ],
1970
- headerParameters: [accept],
1971
- serializer: serializer$3
1972
- };
1973
- const listNextOperationSpec$1 = {
1974
- path: "{nextLink}",
1975
- httpMethod: "GET",
1976
- responses: {
1977
- 200: {
1978
- bodyMapper: JoinRequestList
1979
- },
1980
- default: {
1981
- bodyMapper: ErrorResponseBody
1982
- }
1983
- },
1984
- queryParameters: [apiVersion, includeDenied],
1985
- urlParameters: [
1986
- $host,
1987
- billingAccountName,
1988
- billingProfileName,
1989
- nextLink,
1990
- invoiceSectionName
1991
- ],
1992
- headerParameters: [accept],
1993
- serializer: serializer$3
1994
- };
1995
-
1996
- /*
1997
- * Copyright (c) Microsoft Corporation.
1998
- * Licensed under the MIT License.
1999
- *
2000
- * Code generated by Microsoft (R) AutoRest Code Generator.
2001
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2002
- */
2003
- /// <reference lib="esnext.asynciterable" />
2004
- /** Class containing Students operations. */
2005
- class StudentsImpl {
2006
- /**
2007
- * Initialize a new instance of the class Students class.
2008
- * @param client Reference to the service client
2009
- */
2010
- constructor(client) {
2011
- this.client = client;
2012
- }
2013
- /**
2014
- * Get a list of details about students that are associated with the specified lab.
2015
- * @param billingAccountName Billing account name.
2016
- * @param billingProfileName Billing profile name.
2017
- * @param invoiceSectionName Invoice section name.
2018
- * @param options The options parameters.
2019
- */
2020
- list(billingAccountName, billingProfileName, invoiceSectionName, options) {
2021
- const iter = this.listPagingAll(billingAccountName, billingProfileName, invoiceSectionName, options);
2022
- return {
2023
- next() {
2024
- return iter.next();
2025
- },
2026
- [Symbol.asyncIterator]() {
2027
- return this;
2028
- },
2029
- byPage: () => {
2030
- return this.listPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options);
2031
- }
2032
- };
2033
- }
2034
- listPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options) {
2035
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2036
- let result = yield tslib.__await(this._list(billingAccountName, billingProfileName, invoiceSectionName, options));
2037
- yield yield tslib.__await(result.value || []);
2038
- let continuationToken = result.nextLink;
2039
- while (continuationToken) {
2040
- result = yield tslib.__await(this._listNext(billingAccountName, billingProfileName, invoiceSectionName, continuationToken, options));
2041
- continuationToken = result.nextLink;
2042
- yield yield tslib.__await(result.value || []);
2043
- }
2044
- });
2045
- }
2046
- listPagingAll(billingAccountName, billingProfileName, invoiceSectionName, options) {
2047
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2048
- var e_1, _a;
2049
- try {
2050
- for (var _b = tslib.__asyncValues(this.listPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2051
- const page = _c.value;
2052
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2053
- }
2054
- }
2055
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2056
- finally {
2057
- try {
2058
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2059
- }
2060
- finally { if (e_1) throw e_1.error; }
2061
- }
2062
- });
2063
- }
2064
- /**
2065
- * Get a list of details about students that are associated with the specified lab.
2066
- * @param billingAccountName Billing account name.
2067
- * @param billingProfileName Billing profile name.
2068
- * @param invoiceSectionName Invoice section name.
2069
- * @param options The options parameters.
2070
- */
2071
- _list(billingAccountName, billingProfileName, invoiceSectionName, options) {
2072
- return this.client.sendOperationRequest({ billingAccountName, billingProfileName, invoiceSectionName, options }, listOperationSpec);
2073
- }
2074
- /**
2075
- * Get the details for a specific student in the specified lab by student alias
2076
- * @param billingAccountName Billing account name.
2077
- * @param billingProfileName Billing profile name.
2078
- * @param invoiceSectionName Invoice section name.
2079
- * @param studentAlias Student alias.
2080
- * @param options The options parameters.
2081
- */
2082
- get(billingAccountName, billingProfileName, invoiceSectionName, studentAlias, options) {
2083
- return this.client.sendOperationRequest({
2084
- billingAccountName,
2085
- billingProfileName,
2086
- invoiceSectionName,
2087
- studentAlias,
2088
- options
2089
- }, getOperationSpec$1);
2090
- }
2091
- /**
2092
- * Delete the specified student based on the student alias.
2093
- * @param billingAccountName Billing account name.
2094
- * @param billingProfileName Billing profile name.
2095
- * @param invoiceSectionName Invoice section name.
2096
- * @param studentAlias Student alias.
2097
- * @param options The options parameters.
2098
- */
2099
- delete(billingAccountName, billingProfileName, invoiceSectionName, studentAlias, options) {
2100
- return this.client.sendOperationRequest({
2101
- billingAccountName,
2102
- billingProfileName,
2103
- invoiceSectionName,
2104
- studentAlias,
2105
- options
2106
- }, deleteOperationSpec);
2107
- }
2108
- /**
2109
- * Create and add a new student to the specified lab or update the details of an existing student in a
2110
- * lab. Note the student must have a valid tenant to accept the lab after they have been added to lab.
2111
- * @param billingAccountName Billing account name.
2112
- * @param billingProfileName Billing profile name.
2113
- * @param invoiceSectionName Invoice section name.
2114
- * @param studentAlias Student alias.
2115
- * @param parameters Request parameters that are provided to update student properties.
2116
- * @param options The options parameters.
2117
- */
2118
- createOrUpdate(billingAccountName, billingProfileName, invoiceSectionName, studentAlias, parameters, options) {
2119
- return this.client.sendOperationRequest({
2120
- billingAccountName,
2121
- billingProfileName,
2122
- invoiceSectionName,
2123
- studentAlias,
2124
- parameters,
2125
- options
2126
- }, createOrUpdateOperationSpec);
2127
- }
2128
- /**
2129
- * ListNext
2130
- * @param billingAccountName Billing account name.
2131
- * @param billingProfileName Billing profile name.
2132
- * @param invoiceSectionName Invoice section name.
2133
- * @param nextLink The nextLink from the previous successful call to the List method.
2134
- * @param options The options parameters.
2135
- */
2136
- _listNext(billingAccountName, billingProfileName, invoiceSectionName, nextLink, options) {
2137
- return this.client.sendOperationRequest({
2138
- billingAccountName,
2139
- billingProfileName,
2140
- invoiceSectionName,
2141
- nextLink,
2142
- options
2143
- }, listNextOperationSpec);
2144
- }
2145
- }
2146
- // Operation Specifications
2147
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2148
- const listOperationSpec = {
2149
- path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/students",
2150
- httpMethod: "GET",
2151
- responses: {
2152
- 200: {
2153
- bodyMapper: StudentListResult
2154
- },
2155
- default: {
2156
- bodyMapper: ErrorResponseBody
2157
- }
2158
- },
2159
- queryParameters: [apiVersion, includeDeleted],
2160
- urlParameters: [
2161
- $host,
2162
- billingAccountName,
2163
- billingProfileName,
2164
- invoiceSectionName
2165
- ],
2166
- headerParameters: [accept],
2167
- serializer: serializer$2
2168
- };
2169
- const getOperationSpec$1 = {
2170
- path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/students/{studentAlias}",
2171
- httpMethod: "GET",
2172
- responses: {
2173
- 200: {
2174
- bodyMapper: StudentDetails
2175
- },
2176
- default: {
2177
- bodyMapper: ErrorResponseBody
2178
- }
2179
- },
2180
- queryParameters: [apiVersion],
2181
- urlParameters: [
2182
- $host,
2183
- billingAccountName,
2184
- billingProfileName,
2185
- invoiceSectionName,
2186
- studentAlias
2187
- ],
2188
- headerParameters: [accept],
2189
- serializer: serializer$2
2190
- };
2191
- const deleteOperationSpec = {
2192
- path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/students/{studentAlias}",
2193
- httpMethod: "DELETE",
2194
- responses: {
2195
- 200: {},
2196
- 204: {},
2197
- default: {
2198
- bodyMapper: ErrorResponseBody
2199
- }
2200
- },
2201
- queryParameters: [apiVersion],
2202
- urlParameters: [
2203
- $host,
2204
- billingAccountName,
2205
- billingProfileName,
2206
- invoiceSectionName,
2207
- studentAlias
2208
- ],
2209
- headerParameters: [accept],
2210
- serializer: serializer$2
2211
- };
2212
- const createOrUpdateOperationSpec = {
2213
- path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/students/{studentAlias}",
2214
- httpMethod: "PUT",
2215
- responses: {
2216
- 200: {
2217
- bodyMapper: StudentDetails
2218
- },
2219
- 201: {
2220
- bodyMapper: StudentDetails
2221
- },
2222
- default: {
2223
- bodyMapper: ErrorResponseBody
2224
- }
2225
- },
2226
- requestBody: parameters3,
2227
- queryParameters: [apiVersion],
2228
- urlParameters: [
2229
- $host,
2230
- billingAccountName,
2231
- billingProfileName,
2232
- invoiceSectionName,
2233
- studentAlias
2234
- ],
2235
- headerParameters: [accept, contentType],
2236
- mediaType: "json",
2237
- serializer: serializer$2
2238
- };
2239
- const listNextOperationSpec = {
2240
- path: "{nextLink}",
2241
- httpMethod: "GET",
2242
- responses: {
2243
- 200: {
2244
- bodyMapper: StudentListResult
2245
- },
2246
- default: {
2247
- bodyMapper: ErrorResponseBody
2248
- }
2249
- },
2250
- queryParameters: [apiVersion, includeDeleted],
2251
- urlParameters: [
2252
- $host,
2253
- billingAccountName,
2254
- billingProfileName,
2255
- nextLink,
2256
- invoiceSectionName
2257
- ],
2258
- headerParameters: [accept],
2259
- serializer: serializer$2
2260
- };
2261
-
2262
- /*
2263
- * Copyright (c) Microsoft Corporation.
2264
- * Licensed under the MIT License.
2265
- *
2266
- * Code generated by Microsoft (R) AutoRest Code Generator.
2267
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2268
- */
2269
- /// <reference lib="esnext.asynciterable" />
2270
- /** Class containing StudentLabs operations. */
2271
- class StudentLabsImpl {
2272
- /**
2273
- * Initialize a new instance of the class StudentLabs class.
2274
- * @param client Reference to the service client
2275
- */
2276
- constructor(client) {
2277
- this.client = client;
2278
- }
2279
- /**
2280
- * Get a list of all labs associated with the caller of the API.
2281
- * @param options The options parameters.
2282
- */
2283
- listAll(options) {
2284
- const iter = this.listAllPagingAll(options);
2285
- return {
2286
- next() {
2287
- return iter.next();
2288
- },
2289
- [Symbol.asyncIterator]() {
2290
- return this;
2291
- },
2292
- byPage: () => {
2293
- return this.listAllPagingPage(options);
2294
- }
2295
- };
2296
- }
2297
- listAllPagingPage(options) {
2298
- return tslib.__asyncGenerator(this, arguments, function* listAllPagingPage_1() {
2299
- let result = yield tslib.__await(this._listAll(options));
2300
- yield yield tslib.__await(result.value || []);
2301
- let continuationToken = result.nextLink;
2302
- while (continuationToken) {
2303
- result = yield tslib.__await(this._listAllNext(continuationToken, options));
2304
- continuationToken = result.nextLink;
2305
- yield yield tslib.__await(result.value || []);
2306
- }
2307
- });
2308
- }
2309
- listAllPagingAll(options) {
2310
- return tslib.__asyncGenerator(this, arguments, function* listAllPagingAll_1() {
2311
- var e_1, _a;
2312
- try {
2313
- for (var _b = tslib.__asyncValues(this.listAllPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2314
- const page = _c.value;
2315
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2316
- }
2317
- }
2318
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2319
- finally {
2320
- try {
2321
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2322
- }
2323
- finally { if (e_1) throw e_1.error; }
2324
- }
2325
- });
2326
- }
2327
- /**
2328
- * Get a list of all labs associated with the caller of the API.
2329
- * @param options The options parameters.
2330
- */
2331
- _listAll(options) {
2332
- return this.client.sendOperationRequest({ options }, listAllOperationSpec);
2333
- }
2334
- /**
2335
- * Get the details for a specified lab associated with the student lab.
2336
- * @param studentLabName Student lab name.
2337
- * @param options The options parameters.
2338
- */
2339
- get(studentLabName, options) {
2340
- return this.client.sendOperationRequest({ studentLabName, options }, getOperationSpec);
2341
- }
2342
- /**
2343
- * ListAllNext
2344
- * @param nextLink The nextLink from the previous successful call to the ListAll method.
2345
- * @param options The options parameters.
2346
- */
2347
- _listAllNext(nextLink, options) {
2348
- return this.client.sendOperationRequest({ nextLink, options }, listAllNextOperationSpec);
2349
- }
2350
- }
2351
- // Operation Specifications
2352
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2353
- const listAllOperationSpec = {
2354
- path: "/providers/Microsoft.Education/studentLabs",
2355
- httpMethod: "GET",
2356
- responses: {
2357
- 200: {
2358
- bodyMapper: StudentLabListResult
2359
- },
2360
- default: {
2361
- bodyMapper: ErrorResponseBody
2362
- }
2363
- },
2364
- queryParameters: [apiVersion],
2365
- urlParameters: [$host],
2366
- headerParameters: [accept],
2367
- serializer: serializer$1
2368
- };
2369
- const getOperationSpec = {
2370
- path: "/providers/Microsoft.Education/studentLabs/{studentLabName}",
2371
- httpMethod: "GET",
2372
- responses: {
2373
- 200: {
2374
- bodyMapper: StudentLabDetails
2375
- },
2376
- default: {
2377
- bodyMapper: ErrorResponseBody
2378
- }
2379
- },
2380
- queryParameters: [apiVersion],
2381
- urlParameters: [$host, studentLabName],
2382
- headerParameters: [accept],
2383
- serializer: serializer$1
2384
- };
2385
- const listAllNextOperationSpec = {
2386
- path: "{nextLink}",
2387
- httpMethod: "GET",
2388
- responses: {
2389
- 200: {
2390
- bodyMapper: StudentLabListResult
2391
- },
2392
- default: {
2393
- bodyMapper: ErrorResponseBody
2394
- }
2395
- },
2396
- queryParameters: [apiVersion],
2397
- urlParameters: [$host, nextLink],
2398
- headerParameters: [accept],
2399
- serializer: serializer$1
2400
- };
2401
-
2402
- /*
2403
- * Copyright (c) Microsoft Corporation.
2404
- * Licensed under the MIT License.
2405
- *
2406
- * Code generated by Microsoft (R) AutoRest Code Generator.
2407
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2408
- */
2409
- class EducationManagementClient extends coreClient__namespace.ServiceClient {
2410
- /**
2411
- * Initializes a new instance of the EducationManagementClient class.
2412
- * @param credentials Subscription credentials which uniquely identify client subscription.
2413
- * @param options The parameter options
2414
- */
2415
- constructor(credentials, options) {
2416
- var _a, _b;
2417
- if (credentials === undefined) {
2418
- throw new Error("'credentials' cannot be null");
2419
- }
2420
- // Initializing default values for options
2421
- if (!options) {
2422
- options = {};
2423
- }
2424
- const defaults = {
2425
- requestContentType: "application/json; charset=utf-8",
2426
- credential: credentials
2427
- };
2428
- const packageDetails = `azsdk-js-arm-education/1.0.0-beta.2`;
2429
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
2430
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
2431
- : `${packageDetails}`;
2432
- if (!options.credentialScopes) {
2433
- options.credentialScopes = ["https://management.azure.com/.default"];
2434
- }
2435
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
2436
- userAgentPrefix
2437
- }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
2438
- super(optionsWithDefaults);
2439
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
2440
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
2441
- const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
2442
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
2443
- if (!bearerTokenAuthenticationPolicyFound) {
2444
- this.pipeline.removePolicy({
2445
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
2446
- });
2447
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
2448
- scopes: `${optionsWithDefaults.baseUri}/.default`,
2449
- challengeCallbacks: {
2450
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
2451
- }
2452
- }));
2453
- }
2454
- }
2455
- // Assigning values to Constant parameters
2456
- this.$host = options.$host || "https://management.azure.com";
2457
- this.apiVersion = options.apiVersion || "2021-12-01-preview";
2458
- this.operations = new OperationsImpl(this);
2459
- this.grants = new GrantsImpl(this);
2460
- this.labs = new LabsImpl(this);
2461
- this.joinRequests = new JoinRequestsImpl(this);
2462
- this.students = new StudentsImpl(this);
2463
- this.studentLabs = new StudentLabsImpl(this);
2464
- this.addCustomApiVersionPolicy(options.apiVersion);
2465
- }
2466
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
2467
- addCustomApiVersionPolicy(apiVersion) {
2468
- if (!apiVersion) {
2469
- return;
2470
- }
2471
- const apiVersionPolicy = {
2472
- name: "CustomApiVersionPolicy",
2473
- sendRequest(request, next) {
2474
- return tslib.__awaiter(this, void 0, void 0, function* () {
2475
- const param = request.url.split("?");
2476
- if (param.length > 1) {
2477
- const newParams = param[1].split("&").map((item) => {
2478
- if (item.indexOf("api-version") > -1) {
2479
- return "api-version=" + apiVersion;
2480
- }
2481
- else {
2482
- return item;
2483
- }
2484
- });
2485
- request.url = param[0] + "?" + newParams.join("&");
2486
- }
2487
- return next(request);
2488
- });
2489
- }
2490
- };
2491
- this.pipeline.addPolicy(apiVersionPolicy);
2492
- }
2493
- /**
2494
- * Redeem invite code to join a redeemable lab
2495
- * @param parameters Request parameters to provide redeem code.
2496
- * @param options The options parameters.
2497
- */
2498
- redeemInvitationCode(parameters, options) {
2499
- return this.sendOperationRequest({ parameters, options }, redeemInvitationCodeOperationSpec);
2500
- }
2501
- }
2502
- // Operation Specifications
2503
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2504
- const redeemInvitationCodeOperationSpec = {
2505
- path: "/providers/Microsoft.Education/redeemInvitationCode",
2506
- httpMethod: "POST",
2507
- responses: {
2508
- 200: {},
2509
- default: {
2510
- bodyMapper: ErrorResponseBody
2511
- }
2512
- },
2513
- requestBody: parameters2,
2514
- queryParameters: [apiVersion],
2515
- urlParameters: [$host],
2516
- headerParameters: [accept, contentType],
2517
- mediaType: "json",
2518
- serializer
2519
- };
2520
-
2521
- exports.EducationManagementClient = EducationManagementClient;
2522
- //# sourceMappingURL=index.js.map