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