@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
@@ -5,14 +5,14 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
- import { setContinuationToken } from "../pagingHelper";
8
+ import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
- import * as Mappers from "../models/mappers";
12
- import * as Parameters from "../models/parameters";
10
+ import * as Mappers from "../models/mappers.js";
11
+ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing Grants operations. */
15
14
  export class GrantsImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class Grants class.
18
18
  * @param client Reference to the service client
@@ -34,50 +34,35 @@ export class GrantsImpl {
34
34
  return this;
35
35
  },
36
36
  byPage: (settings) => {
37
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
37
+ if (settings?.maxPageSize) {
38
38
  throw new Error("maxPageSize is not supported by this operation.");
39
39
  }
40
40
  return this.listAllPagingPage(options, settings);
41
41
  }
42
42
  };
43
43
  }
44
- listAllPagingPage(options, settings) {
45
- return __asyncGenerator(this, arguments, function* listAllPagingPage_1() {
46
- let result;
47
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
48
- if (!continuationToken) {
49
- result = yield __await(this._listAll(options));
50
- let page = result.value || [];
51
- continuationToken = result.nextLink;
52
- setContinuationToken(page, continuationToken);
53
- yield yield __await(page);
54
- }
55
- while (continuationToken) {
56
- result = yield __await(this._listAllNext(continuationToken, options));
57
- continuationToken = result.nextLink;
58
- let page = result.value || [];
59
- setContinuationToken(page, continuationToken);
60
- yield yield __await(page);
61
- }
62
- });
44
+ async *listAllPagingPage(options, settings) {
45
+ let result;
46
+ let continuationToken = settings?.continuationToken;
47
+ if (!continuationToken) {
48
+ result = await this._listAll(options);
49
+ let page = result.value || [];
50
+ continuationToken = result.nextLink;
51
+ setContinuationToken(page, continuationToken);
52
+ yield page;
53
+ }
54
+ while (continuationToken) {
55
+ result = await this._listAllNext(continuationToken, options);
56
+ continuationToken = result.nextLink;
57
+ let page = result.value || [];
58
+ setContinuationToken(page, continuationToken);
59
+ yield page;
60
+ }
63
61
  }
64
- listAllPagingAll(options) {
65
- return __asyncGenerator(this, arguments, function* listAllPagingAll_1() {
66
- var e_1, _a;
67
- try {
68
- for (var _b = __asyncValues(this.listAllPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
69
- const page = _c.value;
70
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
71
- }
72
- }
73
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
74
- finally {
75
- try {
76
- if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
77
- }
78
- finally { if (e_1) throw e_1.error; }
79
- }
80
- });
62
+ async *listAllPagingAll(options) {
63
+ for await (const page of this.listAllPagingPage(options)) {
64
+ yield* page;
65
+ }
81
66
  }
82
67
  /**
83
68
  * Get details for a specific grant linked to the provided billing account and billing profile.
@@ -95,50 +80,35 @@ export class GrantsImpl {
95
80
  return this;
96
81
  },
97
82
  byPage: (settings) => {
98
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
83
+ if (settings?.maxPageSize) {
99
84
  throw new Error("maxPageSize is not supported by this operation.");
100
85
  }
101
86
  return this.listPagingPage(billingAccountName, billingProfileName, options, settings);
102
87
  }
103
88
  };
104
89
  }
105
- listPagingPage(billingAccountName, billingProfileName, options, settings) {
106
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
107
- let result;
108
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
109
- if (!continuationToken) {
110
- result = yield __await(this._list(billingAccountName, billingProfileName, options));
111
- let page = result.value || [];
112
- continuationToken = result.nextLink;
113
- setContinuationToken(page, continuationToken);
114
- yield yield __await(page);
115
- }
116
- while (continuationToken) {
117
- result = yield __await(this._listNext(billingAccountName, billingProfileName, continuationToken, options));
118
- continuationToken = result.nextLink;
119
- let page = result.value || [];
120
- setContinuationToken(page, continuationToken);
121
- yield yield __await(page);
122
- }
123
- });
90
+ async *listPagingPage(billingAccountName, billingProfileName, options, settings) {
91
+ let result;
92
+ let continuationToken = settings?.continuationToken;
93
+ if (!continuationToken) {
94
+ result = await this._list(billingAccountName, billingProfileName, options);
95
+ let page = result.value || [];
96
+ continuationToken = result.nextLink;
97
+ setContinuationToken(page, continuationToken);
98
+ yield page;
99
+ }
100
+ while (continuationToken) {
101
+ result = await this._listNext(billingAccountName, billingProfileName, continuationToken, options);
102
+ continuationToken = result.nextLink;
103
+ let page = result.value || [];
104
+ setContinuationToken(page, continuationToken);
105
+ yield page;
106
+ }
124
107
  }
125
- listPagingAll(billingAccountName, billingProfileName, options) {
126
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
127
- var e_2, _a;
128
- try {
129
- for (var _b = __asyncValues(this.listPagingPage(billingAccountName, billingProfileName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
130
- const page = _c.value;
131
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
132
- }
133
- }
134
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
135
- finally {
136
- try {
137
- if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
138
- }
139
- finally { if (e_2) throw e_2.error; }
140
- }
141
- });
108
+ async *listPagingAll(billingAccountName, billingProfileName, options) {
109
+ for await (const page of this.listPagingPage(billingAccountName, billingProfileName, options)) {
110
+ yield* page;
111
+ }
142
112
  }
143
113
  /**
144
114
  * Get a list of grants that Microsoft has provided.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grants.js","sourceRoot":"","sources":["../../../src/operations/grants.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAgBtD,4CAA4C;AAC5C,0CAA0C;AAC1C,MAAM,OAAO,UAAU;IACJ,MAAM,CAA4B;IAEnD;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC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,iBAAiB;SACtC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Grants } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { EducationManagementClient } from \"../educationManagementClient.js\";\nimport {\n GrantDetails,\n GrantsListAllNextOptionalParams,\n GrantsListAllOptionalParams,\n GrantsListAllResponse,\n GrantsListNextOptionalParams,\n GrantsListOptionalParams,\n GrantsListResponse,\n GrantsGetOptionalParams,\n GrantsGetResponse,\n GrantsListAllNextResponse,\n GrantsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Grants operations. */\nexport class GrantsImpl implements Grants {\n private readonly client: EducationManagementClient;\n\n /**\n * Initialize a new instance of the class Grants class.\n * @param client Reference to the service client\n */\n constructor(client: EducationManagementClient) {\n this.client = client;\n }\n\n /**\n * Get a list of grants that Microsoft has provided.\n * @param options The options parameters.\n */\n public listAll(\n options?: GrantsListAllOptionalParams\n ): PagedAsyncIterableIterator<GrantDetails> {\n const iter = this.listAllPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listAllPagingPage(options, settings);\n }\n };\n }\n\n private async *listAllPagingPage(\n options?: GrantsListAllOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<GrantDetails[]> {\n let result: GrantsListAllResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listAll(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listAllNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listAllPagingAll(\n options?: GrantsListAllOptionalParams\n ): AsyncIterableIterator<GrantDetails> {\n for await (const page of this.listAllPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Get details for a specific grant linked to the provided billing account and billing profile.\n * @param billingAccountName Billing account name.\n * @param billingProfileName Billing profile name.\n * @param options The options parameters.\n */\n public list(\n billingAccountName: string,\n billingProfileName: string,\n options?: GrantsListOptionalParams\n ): PagedAsyncIterableIterator<GrantDetails> {\n const iter = this.listPagingAll(\n billingAccountName,\n billingProfileName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n billingAccountName,\n billingProfileName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n billingAccountName: string,\n billingProfileName: string,\n options?: GrantsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<GrantDetails[]> {\n let result: GrantsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n billingAccountName,\n billingProfileName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n billingAccountName,\n billingProfileName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n billingAccountName: string,\n billingProfileName: string,\n options?: GrantsListOptionalParams\n ): AsyncIterableIterator<GrantDetails> {\n for await (const page of this.listPagingPage(\n billingAccountName,\n billingProfileName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a list of grants that Microsoft has provided.\n * @param options The options parameters.\n */\n private _listAll(\n options?: GrantsListAllOptionalParams\n ): Promise<GrantsListAllResponse> {\n return this.client.sendOperationRequest({ options }, listAllOperationSpec);\n }\n\n /**\n * Get details for a specific grant linked to the provided billing account and billing profile.\n * @param billingAccountName Billing account name.\n * @param billingProfileName Billing profile name.\n * @param options The options parameters.\n */\n private _list(\n billingAccountName: string,\n billingProfileName: string,\n options?: GrantsListOptionalParams\n ): Promise<GrantsListResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, billingProfileName, options },\n listOperationSpec\n );\n }\n\n /**\n * Get details for a specific grant linked to the provided billing account and billing profile.\n * @param billingAccountName Billing account name.\n * @param billingProfileName Billing profile name.\n * @param options The options parameters.\n */\n get(\n billingAccountName: string,\n billingProfileName: string,\n options?: GrantsGetOptionalParams\n ): Promise<GrantsGetResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, billingProfileName, options },\n getOperationSpec\n );\n }\n\n /**\n * ListAllNext\n * @param nextLink The nextLink from the previous successful call to the ListAll method.\n * @param options The options parameters.\n */\n private _listAllNext(\n nextLink: string,\n options?: GrantsListAllNextOptionalParams\n ): Promise<GrantsListAllNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listAllNextOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param billingAccountName Billing account name.\n * @param billingProfileName Billing profile name.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n billingAccountName: string,\n billingProfileName: string,\n nextLink: string,\n options?: GrantsListNextOptionalParams\n ): Promise<GrantsListNextResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, billingProfileName, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listAllOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Education/grants\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GrantListResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.includeAllocatedBudget],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.Education/grants\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GrantListResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.includeAllocatedBudget],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.Education/grants/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GrantDetails\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.includeAllocatedBudget],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listAllNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GrantListResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GrantListResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -0,0 +1,7 @@
1
+ export * from "./operations.js";
2
+ export * from "./grants.js";
3
+ export * from "./labs.js";
4
+ export * from "./joinRequests.js";
5
+ export * from "./students.js";
6
+ export * from "./studentLabs.js";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC"}
@@ -5,10 +5,10 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- export * from "./operations";
9
- export * from "./grants";
10
- export * from "./labs";
11
- export * from "./joinRequests";
12
- export * from "./students";
13
- export * from "./studentLabs";
8
+ export * from "./operations.js";
9
+ export * from "./grants.js";
10
+ export * from "./labs.js";
11
+ export * from "./joinRequests.js";
12
+ export * from "./students.js";
13
+ export * from "./studentLabs.js";
14
14
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./operations.js\";\nexport * from \"./grants.js\";\nexport * from \"./labs.js\";\nexport * from \"./joinRequests.js\";\nexport * from \"./students.js\";\nexport * from \"./studentLabs.js\";\n"]}
@@ -1,7 +1,7 @@
1
1
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { JoinRequests } from "../operationsInterfaces";
3
- import { EducationManagementClient } from "../educationManagementClient";
4
- import { JoinRequestDetails, JoinRequestsListOptionalParams, JoinRequestsGetOptionalParams, JoinRequestsGetResponse, JoinRequestsApproveOptionalParams, JoinRequestsDenyOptionalParams } from "../models";
2
+ import { JoinRequests } from "../operationsInterfaces/index.js";
3
+ import { EducationManagementClient } from "../educationManagementClient.js";
4
+ import { JoinRequestDetails, JoinRequestsListOptionalParams, JoinRequestsGetOptionalParams, JoinRequestsGetResponse, JoinRequestsApproveOptionalParams, JoinRequestsDenyOptionalParams } from "../models/index.js";
5
5
  /** Class containing JoinRequests operations. */
6
6
  export declare class JoinRequestsImpl implements JoinRequests {
7
7
  private readonly client;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"joinRequests.d.ts","sourceRoot":"","sources":["../../../src/operations/joinRequests.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,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IACH,OAAO,CAAC,SAAS;CAkBlB"}
@@ -5,14 +5,14 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
- import { setContinuationToken } from "../pagingHelper";
8
+ import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
- import * as Mappers from "../models/mappers";
12
- import * as Parameters from "../models/parameters";
10
+ import * as Mappers from "../models/mappers.js";
11
+ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing JoinRequests operations. */
15
14
  export class JoinRequestsImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class JoinRequests class.
18
18
  * @param client Reference to the service client
@@ -37,50 +37,35 @@ export class JoinRequestsImpl {
37
37
  return this;
38
38
  },
39
39
  byPage: (settings) => {
40
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
40
+ if (settings?.maxPageSize) {
41
41
  throw new Error("maxPageSize is not supported by this operation.");
42
42
  }
43
43
  return this.listPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options, settings);
44
44
  }
45
45
  };
46
46
  }
47
- listPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options, settings) {
48
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
49
- let result;
50
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
51
- if (!continuationToken) {
52
- result = yield __await(this._list(billingAccountName, billingProfileName, invoiceSectionName, options));
53
- let page = result.value || [];
54
- continuationToken = result.nextLink;
55
- setContinuationToken(page, continuationToken);
56
- yield yield __await(page);
57
- }
58
- while (continuationToken) {
59
- result = yield __await(this._listNext(billingAccountName, billingProfileName, invoiceSectionName, continuationToken, options));
60
- continuationToken = result.nextLink;
61
- let page = result.value || [];
62
- setContinuationToken(page, continuationToken);
63
- yield yield __await(page);
64
- }
65
- });
47
+ async *listPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options, settings) {
48
+ let result;
49
+ let continuationToken = settings?.continuationToken;
50
+ if (!continuationToken) {
51
+ result = await this._list(billingAccountName, billingProfileName, invoiceSectionName, options);
52
+ let page = result.value || [];
53
+ continuationToken = result.nextLink;
54
+ setContinuationToken(page, continuationToken);
55
+ yield page;
56
+ }
57
+ while (continuationToken) {
58
+ result = await this._listNext(billingAccountName, billingProfileName, invoiceSectionName, continuationToken, options);
59
+ continuationToken = result.nextLink;
60
+ let page = result.value || [];
61
+ setContinuationToken(page, continuationToken);
62
+ yield page;
63
+ }
66
64
  }
67
- listPagingAll(billingAccountName, billingProfileName, invoiceSectionName, options) {
68
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
69
- var e_1, _a;
70
- try {
71
- for (var _b = __asyncValues(this.listPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
72
- const page = _c.value;
73
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
74
- }
75
- }
76
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
77
- finally {
78
- try {
79
- if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
80
- }
81
- finally { if (e_1) throw e_1.error; }
82
- }
83
- });
65
+ async *listPagingAll(billingAccountName, billingProfileName, invoiceSectionName, options) {
66
+ for await (const page of this.listPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options)) {
67
+ yield* page;
68
+ }
84
69
  }
85
70
  /**
86
71
  * get student join requests
@@ -0,0 +1 @@
1
+ {"version":3,"file":"joinRequests.js","sourceRoot":"","sources":["../../../src/operations/joinRequests.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KA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T,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { JoinRequests } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { EducationManagementClient } from \"../educationManagementClient.js\";\nimport {\n JoinRequestDetails,\n JoinRequestsListNextOptionalParams,\n JoinRequestsListOptionalParams,\n JoinRequestsListResponse,\n JoinRequestsGetOptionalParams,\n JoinRequestsGetResponse,\n JoinRequestsApproveOptionalParams,\n JoinRequestsDenyOptionalParams,\n JoinRequestsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing JoinRequests operations. */\nexport class JoinRequestsImpl implements JoinRequests {\n private readonly client: EducationManagementClient;\n\n /**\n * Initialize a new instance of the class JoinRequests class.\n * @param client Reference to the service client\n */\n constructor(client: EducationManagementClient) {\n this.client = client;\n }\n\n /**\n * get student join requests\n * @param billingAccountName Billing account name.\n * @param billingProfileName Billing profile name.\n * @param invoiceSectionName Invoice section name.\n * @param options The options parameters.\n */\n public list(\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n options?: JoinRequestsListOptionalParams\n ): PagedAsyncIterableIterator<JoinRequestDetails> {\n const iter = this.listPagingAll(\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n options?: JoinRequestsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<JoinRequestDetails[]> {\n let result: JoinRequestsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n options?: JoinRequestsListOptionalParams\n ): AsyncIterableIterator<JoinRequestDetails> {\n for await (const page of this.listPagingPage(\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * get student join requests\n * @param billingAccountName Billing account name.\n * @param billingProfileName Billing profile name.\n * @param invoiceSectionName Invoice section name.\n * @param options The options parameters.\n */\n private _list(\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n options?: JoinRequestsListOptionalParams\n ): Promise<JoinRequestsListResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, billingProfileName, invoiceSectionName, options },\n listOperationSpec\n );\n }\n\n /**\n * get student join requests\n * @param billingAccountName Billing account name.\n * @param billingProfileName Billing profile name.\n * @param invoiceSectionName Invoice section name.\n * @param joinRequestName Join name\n * @param options The options parameters.\n */\n get(\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n joinRequestName: string,\n options?: JoinRequestsGetOptionalParams\n ): Promise<JoinRequestsGetResponse> {\n return this.client.sendOperationRequest(\n {\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n joinRequestName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Approve student joining the redeemable lab\n * @param billingAccountName Billing account name.\n * @param billingProfileName Billing profile name.\n * @param invoiceSectionName Invoice section name.\n * @param joinRequestName Join name\n * @param options The options parameters.\n */\n approve(\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n joinRequestName: string,\n options?: JoinRequestsApproveOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n joinRequestName,\n options\n },\n approveOperationSpec\n );\n }\n\n /**\n * Deny student joining the redeemable lab\n * @param billingAccountName Billing account name.\n * @param billingProfileName Billing profile name.\n * @param invoiceSectionName Invoice section name.\n * @param joinRequestName Join name\n * @param options The options parameters.\n */\n deny(\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n joinRequestName: string,\n options?: JoinRequestsDenyOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n joinRequestName,\n options\n },\n denyOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param billingAccountName Billing account name.\n * @param billingProfileName Billing profile name.\n * @param invoiceSectionName Invoice section name.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n nextLink: string,\n options?: JoinRequestsListNextOptionalParams\n ): Promise<JoinRequestsListNextResponse> {\n return this.client.sendOperationRequest(\n {\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n nextLink,\n options\n },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/joinRequests\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JoinRequestList\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.includeDenied],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.invoiceSectionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/joinRequests/{joinRequestName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JoinRequestDetails\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.invoiceSectionName,\n Parameters.joinRequestName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst approveOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/joinRequests/{joinRequestName}/approve\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponseBody\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.invoiceSectionName,\n Parameters.joinRequestName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst denyOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/joinRequests/{joinRequestName}/deny\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponseBody\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.invoiceSectionName,\n Parameters.joinRequestName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JoinRequestList\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.nextLink,\n Parameters.invoiceSectionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -1,7 +1,7 @@
1
1
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { Labs } from "../operationsInterfaces";
3
- import { EducationManagementClient } from "../educationManagementClient";
4
- import { LabDetails, LabsListAllOptionalParams, LabsListOptionalParams, LabsGetOptionalParams, LabsGetResponse, LabsDeleteOptionalParams, LabsCreateOrUpdateOptionalParams, LabsCreateOrUpdateResponse, InviteCodeGenerateRequest, LabsGenerateInviteCodeOptionalParams, LabsGenerateInviteCodeResponse } from "../models";
2
+ import { Labs } from "../operationsInterfaces/index.js";
3
+ import { EducationManagementClient } from "../educationManagementClient.js";
4
+ import { LabDetails, LabsListAllOptionalParams, LabsListOptionalParams, LabsGetOptionalParams, LabsGetResponse, LabsDeleteOptionalParams, LabsCreateOrUpdateOptionalParams, LabsCreateOrUpdateResponse, InviteCodeGenerateRequest, LabsGenerateInviteCodeOptionalParams, LabsGenerateInviteCodeResponse } from "../models/index.js";
5
5
  /** Class containing Labs operations. */
6
6
  export declare class LabsImpl implements Labs {
7
7
  private readonly client;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"labs.d.ts","sourceRoot":"","sources":["../../../src/operations/labs.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAIxD,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EACL,UAAU,EAEV,yBAAyB,EAGzB,sBAAsB,EAEtB,qBAAqB,EACrB,eAAe,EACf,wBAAwB,EACxB,gCAAgC,EAChC,0BAA0B,EAC1B,yBAAyB,EACzB,oCAAoC,EACpC,8BAA8B,EAG/B,MAAM,oBAAoB,CAAC;AAG5B,wCAAwC;AACxC,qBAAa,QAAS,YAAW,IAAI;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA4B;IAEnD;;;OAGG;gBACS,MAAM,EAAE,yBAAyB;IAI7C;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;IAa1C;;;;;;OAMG;IACH,OAAO,CAAC,YAAY;IAYpB;;;;;;;OAOG;IACH,OAAO,CAAC,SAAS;CAkBlB"}
@@ -5,14 +5,14 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
- import { setContinuationToken } from "../pagingHelper";
8
+ import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
- import * as Mappers from "../models/mappers";
12
- import * as Parameters from "../models/parameters";
10
+ import * as Mappers from "../models/mappers.js";
11
+ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing Labs operations. */
15
14
  export class LabsImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class Labs class.
18
18
  * @param client Reference to the service client
@@ -36,50 +36,35 @@ export class LabsImpl {
36
36
  return this;
37
37
  },
38
38
  byPage: (settings) => {
39
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
39
+ if (settings?.maxPageSize) {
40
40
  throw new Error("maxPageSize is not supported by this operation.");
41
41
  }
42
42
  return this.listAllPagingPage(billingAccountName, billingProfileName, options, settings);
43
43
  }
44
44
  };
45
45
  }
46
- listAllPagingPage(billingAccountName, billingProfileName, options, settings) {
47
- return __asyncGenerator(this, arguments, function* listAllPagingPage_1() {
48
- let result;
49
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
50
- if (!continuationToken) {
51
- result = yield __await(this._listAll(billingAccountName, billingProfileName, options));
52
- let page = result.value || [];
53
- continuationToken = result.nextLink;
54
- setContinuationToken(page, continuationToken);
55
- yield yield __await(page);
56
- }
57
- while (continuationToken) {
58
- result = yield __await(this._listAllNext(billingAccountName, billingProfileName, continuationToken, options));
59
- continuationToken = result.nextLink;
60
- let page = result.value || [];
61
- setContinuationToken(page, continuationToken);
62
- yield yield __await(page);
63
- }
64
- });
46
+ async *listAllPagingPage(billingAccountName, billingProfileName, options, settings) {
47
+ let result;
48
+ let continuationToken = settings?.continuationToken;
49
+ if (!continuationToken) {
50
+ result = await this._listAll(billingAccountName, billingProfileName, options);
51
+ let page = result.value || [];
52
+ continuationToken = result.nextLink;
53
+ setContinuationToken(page, continuationToken);
54
+ yield page;
55
+ }
56
+ while (continuationToken) {
57
+ result = await this._listAllNext(billingAccountName, billingProfileName, continuationToken, options);
58
+ continuationToken = result.nextLink;
59
+ let page = result.value || [];
60
+ setContinuationToken(page, continuationToken);
61
+ yield page;
62
+ }
65
63
  }
66
- listAllPagingAll(billingAccountName, billingProfileName, options) {
67
- return __asyncGenerator(this, arguments, function* listAllPagingAll_1() {
68
- var e_1, _a;
69
- try {
70
- for (var _b = __asyncValues(this.listAllPagingPage(billingAccountName, billingProfileName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
71
- const page = _c.value;
72
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
73
- }
74
- }
75
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
76
- finally {
77
- try {
78
- if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
79
- }
80
- finally { if (e_1) throw e_1.error; }
81
- }
82
- });
64
+ async *listAllPagingAll(billingAccountName, billingProfileName, options) {
65
+ for await (const page of this.listAllPagingPage(billingAccountName, billingProfileName, options)) {
66
+ yield* page;
67
+ }
83
68
  }
84
69
  /**
85
70
  * Get the details for a specific lab associated with the provided billing account name, billing
@@ -99,50 +84,35 @@ export class LabsImpl {
99
84
  return this;
100
85
  },
101
86
  byPage: (settings) => {
102
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
87
+ if (settings?.maxPageSize) {
103
88
  throw new Error("maxPageSize is not supported by this operation.");
104
89
  }
105
90
  return this.listPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options, settings);
106
91
  }
107
92
  };
108
93
  }
109
- listPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options, settings) {
110
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
111
- let result;
112
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
113
- if (!continuationToken) {
114
- result = yield __await(this._list(billingAccountName, billingProfileName, invoiceSectionName, options));
115
- let page = result.value || [];
116
- continuationToken = result.nextLink;
117
- setContinuationToken(page, continuationToken);
118
- yield yield __await(page);
119
- }
120
- while (continuationToken) {
121
- result = yield __await(this._listNext(billingAccountName, billingProfileName, invoiceSectionName, continuationToken, options));
122
- continuationToken = result.nextLink;
123
- let page = result.value || [];
124
- setContinuationToken(page, continuationToken);
125
- yield yield __await(page);
126
- }
127
- });
94
+ async *listPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options, settings) {
95
+ let result;
96
+ let continuationToken = settings?.continuationToken;
97
+ if (!continuationToken) {
98
+ result = await this._list(billingAccountName, billingProfileName, invoiceSectionName, options);
99
+ let page = result.value || [];
100
+ continuationToken = result.nextLink;
101
+ setContinuationToken(page, continuationToken);
102
+ yield page;
103
+ }
104
+ while (continuationToken) {
105
+ result = await this._listNext(billingAccountName, billingProfileName, invoiceSectionName, continuationToken, options);
106
+ continuationToken = result.nextLink;
107
+ let page = result.value || [];
108
+ setContinuationToken(page, continuationToken);
109
+ yield page;
110
+ }
128
111
  }
129
- listPagingAll(billingAccountName, billingProfileName, invoiceSectionName, options) {
130
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
131
- var e_2, _a;
132
- try {
133
- for (var _b = __asyncValues(this.listPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
134
- const page = _c.value;
135
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
136
- }
137
- }
138
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
139
- finally {
140
- try {
141
- if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
142
- }
143
- finally { if (e_2) throw e_2.error; }
144
- }
145
- });
112
+ async *listPagingAll(billingAccountName, billingProfileName, invoiceSectionName, options) {
113
+ for await (const page of this.listPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options)) {
114
+ yield* page;
115
+ }
146
116
  }
147
117
  /**
148
118
  * Get a list of labs associated with the provided billing account name and billing profile name.