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

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 (642) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +11 -16
  3. package/dist/browser/api/educationManagementContext.d.ts +20 -0
  4. package/dist/browser/api/educationManagementContext.js +26 -0
  5. package/dist/browser/api/educationManagementContext.js.map +1 -0
  6. package/dist/browser/api/grants/index.d.ts +3 -0
  7. package/dist/browser/api/grants/index.js +4 -0
  8. package/dist/browser/api/grants/index.js.map +1 -0
  9. package/dist/browser/api/grants/operations.d.ts +18 -0
  10. package/dist/browser/api/grants/operations.js +95 -0
  11. package/dist/browser/api/grants/operations.js.map +1 -0
  12. package/dist/browser/api/grants/options.d.ts +17 -0
  13. package/dist/browser/api/grants/options.js +4 -0
  14. package/dist/browser/api/grants/options.js.map +1 -0
  15. package/dist/browser/api/index.d.ts +5 -0
  16. package/dist/browser/api/index.js +5 -0
  17. package/dist/browser/api/index.js.map +1 -0
  18. package/dist/browser/api/joinRequests/index.d.ts +3 -0
  19. package/dist/browser/api/joinRequests/index.js +4 -0
  20. package/dist/browser/api/joinRequests/index.js.map +1 -0
  21. package/dist/browser/api/joinRequests/operations.d.ts +22 -0
  22. package/dist/browser/api/joinRequests/operations.js +120 -0
  23. package/dist/browser/api/joinRequests/operations.js.map +1 -0
  24. package/dist/browser/api/joinRequests/options.d.ts +16 -0
  25. package/dist/browser/api/joinRequests/options.js +4 -0
  26. package/dist/browser/api/joinRequests/options.js.map +1 -0
  27. package/dist/browser/api/labs/index.d.ts +3 -0
  28. package/dist/browser/api/labs/index.js +4 -0
  29. package/dist/browser/api/labs/index.js.map +1 -0
  30. package/dist/browser/api/labs/operations.d.ts +30 -0
  31. package/dist/browser/api/labs/operations.js +186 -0
  32. package/dist/browser/api/labs/operations.js.map +1 -0
  33. package/dist/browser/api/labs/options.d.ts +30 -0
  34. package/dist/browser/api/labs/options.js +4 -0
  35. package/dist/browser/api/labs/options.js.map +1 -0
  36. package/dist/browser/api/operations/index.d.ts +3 -0
  37. package/dist/browser/api/operations/index.js +4 -0
  38. package/dist/browser/api/operations/index.js.map +1 -0
  39. package/dist/browser/api/operations/operations.d.ts +9 -0
  40. package/dist/browser/api/operations/operations.js +31 -0
  41. package/dist/browser/api/operations/operations.js.map +1 -0
  42. package/dist/browser/api/operations/options.d.ts +5 -0
  43. package/dist/browser/api/operations/options.js +4 -0
  44. package/dist/browser/api/operations/options.js.map +1 -0
  45. package/dist/browser/api/operations.d.ts +9 -0
  46. package/dist/browser/api/operations.js +32 -0
  47. package/dist/browser/api/operations.js.map +1 -0
  48. package/dist/browser/api/options.d.ts +5 -0
  49. package/dist/browser/api/options.js +4 -0
  50. package/dist/browser/api/options.js.map +1 -0
  51. package/dist/browser/api/studentLabs/index.d.ts +3 -0
  52. package/dist/browser/api/studentLabs/index.js +4 -0
  53. package/dist/browser/api/studentLabs/index.js.map +1 -0
  54. package/dist/browser/api/studentLabs/operations.d.ts +14 -0
  55. package/dist/browser/api/studentLabs/operations.js +61 -0
  56. package/dist/browser/api/studentLabs/operations.js.map +1 -0
  57. package/dist/browser/api/studentLabs/options.d.ts +8 -0
  58. package/dist/browser/api/studentLabs/options.js +4 -0
  59. package/dist/browser/api/studentLabs/options.js.map +1 -0
  60. package/dist/browser/api/students/index.d.ts +3 -0
  61. package/dist/browser/api/students/index.js +4 -0
  62. package/dist/browser/api/students/index.js.map +1 -0
  63. package/dist/browser/api/students/operations.d.ts +22 -0
  64. package/dist/browser/api/students/operations.js +125 -0
  65. package/dist/browser/api/students/operations.js.map +1 -0
  66. package/dist/browser/api/students/options.d.ts +16 -0
  67. package/dist/browser/api/students/options.js +4 -0
  68. package/dist/browser/api/students/options.js.map +1 -0
  69. package/dist/browser/classic/grants/index.d.ts +15 -0
  70. package/dist/browser/classic/grants/index.js +16 -0
  71. package/dist/browser/classic/grants/index.js.map +1 -0
  72. package/dist/browser/classic/index.d.ts +7 -0
  73. package/dist/browser/classic/index.js +4 -0
  74. package/dist/browser/classic/index.js.map +1 -0
  75. package/dist/browser/classic/joinRequests/index.d.ts +17 -0
  76. package/dist/browser/classic/joinRequests/index.js +17 -0
  77. package/dist/browser/classic/joinRequests/index.js.map +1 -0
  78. package/dist/browser/classic/labs/index.d.ts +21 -0
  79. package/dist/browser/classic/labs/index.js +19 -0
  80. package/dist/browser/classic/labs/index.js.map +1 -0
  81. package/dist/browser/classic/operations/index.d.ts +10 -0
  82. package/dist/browser/classic/operations/index.js +14 -0
  83. package/dist/browser/classic/operations/index.js.map +1 -0
  84. package/dist/browser/classic/studentLabs/index.d.ts +13 -0
  85. package/dist/browser/classic/studentLabs/index.js +15 -0
  86. package/dist/browser/classic/studentLabs/index.js.map +1 -0
  87. package/dist/browser/classic/students/index.d.ts +17 -0
  88. package/dist/browser/classic/students/index.js +17 -0
  89. package/dist/browser/classic/students/index.js.map +1 -0
  90. package/dist/browser/educationManagementClient.d.ts +31 -26
  91. package/dist/browser/educationManagementClient.js +44 -131
  92. package/dist/browser/educationManagementClient.js.map +1 -1
  93. package/dist/browser/index.d.ts +16 -3
  94. package/dist/browser/index.js +6 -11
  95. package/dist/browser/index.js.map +1 -1
  96. package/dist/browser/logger.d.ts +2 -0
  97. package/dist/browser/logger.js +5 -0
  98. package/dist/browser/logger.js.map +1 -0
  99. package/dist/browser/models/index.d.ts +2 -684
  100. package/dist/browser/models/index.js +3 -91
  101. package/dist/browser/models/index.js.map +1 -1
  102. package/dist/browser/models/models.d.ts +597 -0
  103. package/dist/browser/models/models.js +569 -0
  104. package/dist/browser/models/models.js.map +1 -0
  105. package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +22 -0
  106. package/dist/browser/static-helpers/cloudSettingHelpers.js +38 -0
  107. package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
  108. package/dist/browser/static-helpers/pagingHelpers.d.ts +74 -0
  109. package/dist/browser/static-helpers/pagingHelpers.js +143 -0
  110. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
  111. package/dist/browser/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
  112. package/dist/browser/static-helpers/serialization/check-prop-undefined.js +17 -0
  113. package/dist/browser/static-helpers/serialization/check-prop-undefined.js.map +1 -0
  114. package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
  115. package/dist/browser/static-helpers/urlTemplate.js +200 -0
  116. package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
  117. package/dist/commonjs/api/educationManagementContext.d.ts +20 -0
  118. package/dist/commonjs/api/educationManagementContext.js +47 -0
  119. package/dist/commonjs/api/educationManagementContext.js.map +7 -0
  120. package/dist/commonjs/api/grants/index.d.ts +3 -0
  121. package/dist/commonjs/api/grants/index.js +32 -0
  122. package/dist/commonjs/api/grants/index.js.map +7 -0
  123. package/dist/commonjs/api/grants/operations.d.ts +18 -0
  124. package/dist/commonjs/api/grants/operations.js +156 -0
  125. package/dist/commonjs/api/grants/operations.js.map +7 -0
  126. package/dist/commonjs/api/grants/options.d.ts +17 -0
  127. package/dist/commonjs/api/grants/options.js +16 -0
  128. package/dist/commonjs/api/grants/options.js.map +7 -0
  129. package/dist/commonjs/api/index.d.ts +5 -0
  130. package/dist/commonjs/api/index.js +31 -0
  131. package/dist/commonjs/api/index.js.map +7 -0
  132. package/dist/commonjs/api/joinRequests/index.d.ts +3 -0
  133. package/dist/commonjs/api/joinRequests/index.js +34 -0
  134. package/dist/commonjs/api/joinRequests/index.js.map +7 -0
  135. package/dist/commonjs/api/joinRequests/operations.d.ts +22 -0
  136. package/dist/commonjs/api/joinRequests/operations.js +205 -0
  137. package/dist/commonjs/api/joinRequests/operations.js.map +7 -0
  138. package/dist/commonjs/api/joinRequests/options.d.ts +16 -0
  139. package/dist/commonjs/api/joinRequests/options.js +16 -0
  140. package/dist/commonjs/api/joinRequests/options.js.map +7 -0
  141. package/dist/commonjs/api/labs/index.d.ts +3 -0
  142. package/dist/commonjs/api/labs/index.js +38 -0
  143. package/dist/commonjs/api/labs/index.js.map +7 -0
  144. package/dist/commonjs/api/labs/operations.d.ts +30 -0
  145. package/dist/commonjs/api/labs/operations.js +300 -0
  146. package/dist/commonjs/api/labs/operations.js.map +7 -0
  147. package/dist/commonjs/api/labs/options.d.ts +30 -0
  148. package/dist/commonjs/api/labs/options.js +16 -0
  149. package/dist/commonjs/api/labs/options.js.map +7 -0
  150. package/dist/commonjs/api/operations/index.d.ts +3 -0
  151. package/dist/commonjs/api/operations/index.js +28 -0
  152. package/dist/commonjs/api/operations/index.js.map +7 -0
  153. package/dist/commonjs/api/operations/operations.d.ts +9 -0
  154. package/dist/commonjs/api/operations/operations.js +62 -0
  155. package/dist/commonjs/api/operations/operations.js.map +7 -0
  156. package/dist/commonjs/api/operations/options.d.ts +5 -0
  157. package/dist/commonjs/api/operations/options.js +16 -0
  158. package/dist/commonjs/api/operations/options.js.map +7 -0
  159. package/dist/commonjs/api/operations.d.ts +9 -0
  160. package/dist/commonjs/api/operations.js +63 -0
  161. package/dist/commonjs/api/operations.js.map +7 -0
  162. package/dist/commonjs/api/options.d.ts +5 -0
  163. package/dist/commonjs/api/options.js +16 -0
  164. package/dist/commonjs/api/options.js.map +7 -0
  165. package/dist/commonjs/api/studentLabs/index.d.ts +3 -0
  166. package/dist/commonjs/api/studentLabs/index.js +30 -0
  167. package/dist/commonjs/api/studentLabs/index.js.map +7 -0
  168. package/dist/commonjs/api/studentLabs/operations.d.ts +14 -0
  169. package/dist/commonjs/api/studentLabs/operations.js +107 -0
  170. package/dist/commonjs/api/studentLabs/operations.js.map +7 -0
  171. package/dist/commonjs/api/studentLabs/options.d.ts +8 -0
  172. package/dist/commonjs/api/studentLabs/options.js +16 -0
  173. package/dist/commonjs/api/studentLabs/options.js.map +7 -0
  174. package/dist/commonjs/api/students/index.d.ts +3 -0
  175. package/dist/commonjs/api/students/index.js +34 -0
  176. package/dist/commonjs/api/students/index.js.map +7 -0
  177. package/dist/commonjs/api/students/operations.d.ts +22 -0
  178. package/dist/commonjs/api/students/operations.js +211 -0
  179. package/dist/commonjs/api/students/operations.js.map +7 -0
  180. package/dist/commonjs/api/students/options.d.ts +16 -0
  181. package/dist/commonjs/api/students/options.js +16 -0
  182. package/dist/commonjs/api/students/options.js.map +7 -0
  183. package/dist/commonjs/classic/grants/index.d.ts +15 -0
  184. package/dist/commonjs/classic/grants/index.js +40 -0
  185. package/dist/commonjs/classic/grants/index.js.map +7 -0
  186. package/dist/commonjs/classic/index.d.ts +7 -0
  187. package/dist/commonjs/classic/index.js +16 -0
  188. package/dist/commonjs/classic/index.js.map +7 -0
  189. package/dist/commonjs/classic/joinRequests/index.d.ts +17 -0
  190. package/dist/commonjs/classic/joinRequests/index.js +62 -0
  191. package/dist/commonjs/classic/joinRequests/index.js.map +7 -0
  192. package/dist/commonjs/classic/labs/index.d.ts +21 -0
  193. package/dist/commonjs/classic/labs/index.js +57 -0
  194. package/dist/commonjs/classic/labs/index.js.map +7 -0
  195. package/dist/commonjs/classic/operations/index.d.ts +10 -0
  196. package/dist/commonjs/classic/operations/index.js +38 -0
  197. package/dist/commonjs/classic/operations/index.js.map +7 -0
  198. package/dist/commonjs/classic/studentLabs/index.d.ts +13 -0
  199. package/dist/commonjs/classic/studentLabs/index.js +39 -0
  200. package/dist/commonjs/classic/studentLabs/index.js.map +7 -0
  201. package/dist/commonjs/classic/students/index.d.ts +17 -0
  202. package/dist/commonjs/classic/students/index.js +63 -0
  203. package/dist/commonjs/classic/students/index.js.map +7 -0
  204. package/dist/commonjs/educationManagementClient.d.ts +31 -26
  205. package/dist/commonjs/educationManagementClient.js +71 -141
  206. package/dist/commonjs/educationManagementClient.js.map +7 -1
  207. package/dist/commonjs/index.d.ts +16 -3
  208. package/dist/commonjs/index.js +57 -19
  209. package/dist/commonjs/index.js.map +7 -1
  210. package/dist/commonjs/logger.d.ts +2 -0
  211. package/dist/commonjs/logger.js +29 -0
  212. package/dist/commonjs/logger.js.map +7 -0
  213. package/dist/commonjs/models/index.d.ts +2 -684
  214. package/dist/commonjs/models/index.js +46 -95
  215. package/dist/commonjs/models/index.js.map +7 -1
  216. package/dist/commonjs/models/models.d.ts +597 -0
  217. package/dist/commonjs/models/models.js +610 -0
  218. package/dist/commonjs/models/models.js.map +7 -0
  219. package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
  220. package/dist/commonjs/static-helpers/cloudSettingHelpers.js +52 -0
  221. package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +7 -0
  222. package/dist/commonjs/static-helpers/pagingHelpers.d.ts +74 -0
  223. package/dist/commonjs/static-helpers/pagingHelpers.js +143 -0
  224. package/dist/commonjs/static-helpers/pagingHelpers.js.map +7 -0
  225. package/dist/commonjs/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
  226. package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js +35 -0
  227. package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js.map +7 -0
  228. package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
  229. package/dist/commonjs/static-helpers/urlTemplate.js +197 -0
  230. package/dist/commonjs/static-helpers/urlTemplate.js.map +7 -0
  231. package/dist/commonjs/tsdoc-metadata.json +1 -1
  232. package/dist/esm/api/educationManagementContext.d.ts +20 -0
  233. package/dist/esm/api/educationManagementContext.js +26 -0
  234. package/dist/esm/api/educationManagementContext.js.map +1 -0
  235. package/dist/esm/api/grants/index.d.ts +3 -0
  236. package/dist/esm/api/grants/index.js +4 -0
  237. package/dist/esm/api/grants/index.js.map +1 -0
  238. package/dist/esm/api/grants/operations.d.ts +18 -0
  239. package/dist/esm/api/grants/operations.js +95 -0
  240. package/dist/esm/api/grants/operations.js.map +1 -0
  241. package/dist/esm/api/grants/options.d.ts +17 -0
  242. package/dist/esm/api/grants/options.js +4 -0
  243. package/dist/esm/api/grants/options.js.map +1 -0
  244. package/dist/esm/api/index.d.ts +5 -0
  245. package/dist/esm/api/index.js +5 -0
  246. package/dist/esm/api/index.js.map +1 -0
  247. package/dist/esm/api/joinRequests/index.d.ts +3 -0
  248. package/dist/esm/api/joinRequests/index.js +4 -0
  249. package/dist/esm/api/joinRequests/index.js.map +1 -0
  250. package/dist/esm/api/joinRequests/operations.d.ts +22 -0
  251. package/dist/esm/api/joinRequests/operations.js +120 -0
  252. package/dist/esm/api/joinRequests/operations.js.map +1 -0
  253. package/dist/esm/api/joinRequests/options.d.ts +16 -0
  254. package/dist/esm/api/joinRequests/options.js +4 -0
  255. package/dist/esm/api/joinRequests/options.js.map +1 -0
  256. package/dist/esm/api/labs/index.d.ts +3 -0
  257. package/dist/esm/api/labs/index.js +4 -0
  258. package/dist/esm/api/labs/index.js.map +1 -0
  259. package/dist/esm/api/labs/operations.d.ts +30 -0
  260. package/dist/esm/api/labs/operations.js +186 -0
  261. package/dist/esm/api/labs/operations.js.map +1 -0
  262. package/dist/esm/api/labs/options.d.ts +30 -0
  263. package/dist/esm/api/labs/options.js +4 -0
  264. package/dist/esm/api/labs/options.js.map +1 -0
  265. package/dist/esm/api/operations/index.d.ts +3 -0
  266. package/dist/esm/api/operations/index.js +4 -0
  267. package/dist/esm/api/operations/index.js.map +1 -0
  268. package/dist/esm/api/operations/operations.d.ts +9 -0
  269. package/dist/esm/api/operations/operations.js +31 -0
  270. package/dist/esm/api/operations/operations.js.map +1 -0
  271. package/dist/esm/api/operations/options.d.ts +5 -0
  272. package/dist/esm/api/operations/options.js +4 -0
  273. package/dist/esm/api/operations/options.js.map +1 -0
  274. package/dist/esm/api/operations.d.ts +9 -0
  275. package/dist/esm/api/operations.js +32 -0
  276. package/dist/esm/api/operations.js.map +1 -0
  277. package/dist/esm/api/options.d.ts +5 -0
  278. package/dist/esm/api/options.js +4 -0
  279. package/dist/esm/api/options.js.map +1 -0
  280. package/dist/esm/api/studentLabs/index.d.ts +3 -0
  281. package/dist/esm/api/studentLabs/index.js +4 -0
  282. package/dist/esm/api/studentLabs/index.js.map +1 -0
  283. package/dist/esm/api/studentLabs/operations.d.ts +14 -0
  284. package/dist/esm/api/studentLabs/operations.js +61 -0
  285. package/dist/esm/api/studentLabs/operations.js.map +1 -0
  286. package/dist/esm/api/studentLabs/options.d.ts +8 -0
  287. package/dist/esm/api/studentLabs/options.js +4 -0
  288. package/dist/esm/api/studentLabs/options.js.map +1 -0
  289. package/dist/esm/api/students/index.d.ts +3 -0
  290. package/dist/esm/api/students/index.js +4 -0
  291. package/dist/esm/api/students/index.js.map +1 -0
  292. package/dist/esm/api/students/operations.d.ts +22 -0
  293. package/dist/esm/api/students/operations.js +125 -0
  294. package/dist/esm/api/students/operations.js.map +1 -0
  295. package/dist/esm/api/students/options.d.ts +16 -0
  296. package/dist/esm/api/students/options.js +4 -0
  297. package/dist/esm/api/students/options.js.map +1 -0
  298. package/dist/esm/classic/grants/index.d.ts +15 -0
  299. package/dist/esm/classic/grants/index.js +16 -0
  300. package/dist/esm/classic/grants/index.js.map +1 -0
  301. package/dist/esm/classic/index.d.ts +7 -0
  302. package/dist/esm/classic/index.js +4 -0
  303. package/dist/esm/classic/index.js.map +1 -0
  304. package/dist/esm/classic/joinRequests/index.d.ts +17 -0
  305. package/dist/esm/classic/joinRequests/index.js +17 -0
  306. package/dist/esm/classic/joinRequests/index.js.map +1 -0
  307. package/dist/esm/classic/labs/index.d.ts +21 -0
  308. package/dist/esm/classic/labs/index.js +19 -0
  309. package/dist/esm/classic/labs/index.js.map +1 -0
  310. package/dist/esm/classic/operations/index.d.ts +10 -0
  311. package/dist/esm/classic/operations/index.js +14 -0
  312. package/dist/esm/classic/operations/index.js.map +1 -0
  313. package/dist/esm/classic/studentLabs/index.d.ts +13 -0
  314. package/dist/esm/classic/studentLabs/index.js +15 -0
  315. package/dist/esm/classic/studentLabs/index.js.map +1 -0
  316. package/dist/esm/classic/students/index.d.ts +17 -0
  317. package/dist/esm/classic/students/index.js +17 -0
  318. package/dist/esm/classic/students/index.js.map +1 -0
  319. package/dist/esm/educationManagementClient.d.ts +31 -26
  320. package/dist/esm/educationManagementClient.js +44 -131
  321. package/dist/esm/educationManagementClient.js.map +1 -1
  322. package/dist/esm/index.d.ts +16 -3
  323. package/dist/esm/index.js +6 -11
  324. package/dist/esm/index.js.map +1 -1
  325. package/dist/esm/logger.d.ts +2 -0
  326. package/dist/esm/logger.js +5 -0
  327. package/dist/esm/logger.js.map +1 -0
  328. package/dist/esm/models/index.d.ts +2 -684
  329. package/dist/esm/models/index.js +3 -91
  330. package/dist/esm/models/index.js.map +1 -1
  331. package/dist/esm/models/models.d.ts +597 -0
  332. package/dist/esm/models/models.js +569 -0
  333. package/dist/esm/models/models.js.map +1 -0
  334. package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +22 -0
  335. package/dist/esm/static-helpers/cloudSettingHelpers.js +38 -0
  336. package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
  337. package/dist/esm/static-helpers/pagingHelpers.d.ts +74 -0
  338. package/dist/esm/static-helpers/pagingHelpers.js +143 -0
  339. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
  340. package/dist/esm/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
  341. package/dist/esm/static-helpers/serialization/check-prop-undefined.js +17 -0
  342. package/dist/esm/static-helpers/serialization/check-prop-undefined.js.map +1 -0
  343. package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
  344. package/dist/esm/static-helpers/urlTemplate.js +200 -0
  345. package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
  346. package/package.json +200 -92
  347. package/CHANGELOG.md +0 -40
  348. package/dist/browser/educationManagementClient.d.ts.map +0 -1
  349. package/dist/browser/index.d.ts.map +0 -1
  350. package/dist/browser/models/index.d.ts.map +0 -1
  351. package/dist/browser/models/mappers.d.ts +0 -22
  352. package/dist/browser/models/mappers.d.ts.map +0 -1
  353. package/dist/browser/models/mappers.js +0 -754
  354. package/dist/browser/models/mappers.js.map +0 -1
  355. package/dist/browser/models/parameters.d.ts +0 -22
  356. package/dist/browser/models/parameters.d.ts.map +0 -1
  357. package/dist/browser/models/parameters.js +0 -185
  358. package/dist/browser/models/parameters.js.map +0 -1
  359. package/dist/browser/operations/grants.d.ts +0 -63
  360. package/dist/browser/operations/grants.d.ts.map +0 -1
  361. package/dist/browser/operations/grants.js +0 -250
  362. package/dist/browser/operations/grants.js.map +0 -1
  363. package/dist/browser/operations/index.d.ts +0 -7
  364. package/dist/browser/operations/index.d.ts.map +0 -1
  365. package/dist/browser/operations/index.js +0 -14
  366. package/dist/browser/operations/index.js.map +0 -1
  367. package/dist/browser/operations/joinRequests.d.ts +0 -68
  368. package/dist/browser/operations/joinRequests.d.ts.map +0 -1
  369. package/dist/browser/operations/joinRequests.js +0 -255
  370. package/dist/browser/operations/joinRequests.js.map +0 -1
  371. package/dist/browser/operations/labs.d.ts +0 -103
  372. package/dist/browser/operations/labs.d.ts.map +0 -1
  373. package/dist/browser/operations/labs.js +0 -402
  374. package/dist/browser/operations/labs.js.map +0 -1
  375. package/dist/browser/operations/operations.d.ts +0 -18
  376. package/dist/browser/operations/operations.d.ts.map +0 -1
  377. package/dist/browser/operations/operations.js +0 -47
  378. package/dist/browser/operations/operations.js.map +0 -1
  379. package/dist/browser/operations/studentLabs.d.ts +0 -38
  380. package/dist/browser/operations/studentLabs.d.ts.map +0 -1
  381. package/dist/browser/operations/studentLabs.js +0 -140
  382. package/dist/browser/operations/studentLabs.js.map +0 -1
  383. package/dist/browser/operations/students.d.ts +0 -70
  384. package/dist/browser/operations/students.d.ts.map +0 -1
  385. package/dist/browser/operations/students.js +0 -266
  386. package/dist/browser/operations/students.js.map +0 -1
  387. package/dist/browser/operationsInterfaces/grants.d.ts +0 -25
  388. package/dist/browser/operationsInterfaces/grants.d.ts.map +0 -1
  389. package/dist/browser/operationsInterfaces/grants.js +0 -9
  390. package/dist/browser/operationsInterfaces/grants.js.map +0 -1
  391. package/dist/browser/operationsInterfaces/index.d.ts +0 -7
  392. package/dist/browser/operationsInterfaces/index.d.ts.map +0 -1
  393. package/dist/browser/operationsInterfaces/index.js +0 -14
  394. package/dist/browser/operationsInterfaces/index.js.map +0 -1
  395. package/dist/browser/operationsInterfaces/joinRequests.d.ts +0 -41
  396. package/dist/browser/operationsInterfaces/joinRequests.d.ts.map +0 -1
  397. package/dist/browser/operationsInterfaces/joinRequests.js +0 -9
  398. package/dist/browser/operationsInterfaces/joinRequests.js.map +0 -1
  399. package/dist/browser/operationsInterfaces/labs.d.ts +0 -58
  400. package/dist/browser/operationsInterfaces/labs.d.ts.map +0 -1
  401. package/dist/browser/operationsInterfaces/labs.js +0 -9
  402. package/dist/browser/operationsInterfaces/labs.js.map +0 -1
  403. package/dist/browser/operationsInterfaces/operations.d.ts +0 -10
  404. package/dist/browser/operationsInterfaces/operations.d.ts.map +0 -1
  405. package/dist/browser/operationsInterfaces/operations.js +0 -9
  406. package/dist/browser/operationsInterfaces/operations.js.map +0 -1
  407. package/dist/browser/operationsInterfaces/studentLabs.d.ts +0 -17
  408. package/dist/browser/operationsInterfaces/studentLabs.d.ts.map +0 -1
  409. package/dist/browser/operationsInterfaces/studentLabs.js +0 -9
  410. package/dist/browser/operationsInterfaces/studentLabs.js.map +0 -1
  411. package/dist/browser/operationsInterfaces/students.d.ts +0 -43
  412. package/dist/browser/operationsInterfaces/students.d.ts.map +0 -1
  413. package/dist/browser/operationsInterfaces/students.js +0 -9
  414. package/dist/browser/operationsInterfaces/students.js.map +0 -1
  415. package/dist/browser/pagingHelper.d.ts +0 -13
  416. package/dist/browser/pagingHelper.d.ts.map +0 -1
  417. package/dist/browser/pagingHelper.js +0 -30
  418. package/dist/browser/pagingHelper.js.map +0 -1
  419. package/dist/commonjs/educationManagementClient.d.ts.map +0 -1
  420. package/dist/commonjs/index.d.ts.map +0 -1
  421. package/dist/commonjs/models/index.d.ts.map +0 -1
  422. package/dist/commonjs/models/mappers.d.ts +0 -22
  423. package/dist/commonjs/models/mappers.d.ts.map +0 -1
  424. package/dist/commonjs/models/mappers.js +0 -757
  425. package/dist/commonjs/models/mappers.js.map +0 -1
  426. package/dist/commonjs/models/parameters.d.ts +0 -22
  427. package/dist/commonjs/models/parameters.d.ts.map +0 -1
  428. package/dist/commonjs/models/parameters.js +0 -188
  429. package/dist/commonjs/models/parameters.js.map +0 -1
  430. package/dist/commonjs/operations/grants.d.ts +0 -63
  431. package/dist/commonjs/operations/grants.d.ts.map +0 -1
  432. package/dist/commonjs/operations/grants.js +0 -255
  433. package/dist/commonjs/operations/grants.js.map +0 -1
  434. package/dist/commonjs/operations/index.d.ts +0 -7
  435. package/dist/commonjs/operations/index.d.ts.map +0 -1
  436. package/dist/commonjs/operations/index.js +0 -17
  437. package/dist/commonjs/operations/index.js.map +0 -1
  438. package/dist/commonjs/operations/joinRequests.d.ts +0 -68
  439. package/dist/commonjs/operations/joinRequests.d.ts.map +0 -1
  440. package/dist/commonjs/operations/joinRequests.js +0 -260
  441. package/dist/commonjs/operations/joinRequests.js.map +0 -1
  442. package/dist/commonjs/operations/labs.d.ts +0 -103
  443. package/dist/commonjs/operations/labs.d.ts.map +0 -1
  444. package/dist/commonjs/operations/labs.js +0 -407
  445. package/dist/commonjs/operations/labs.js.map +0 -1
  446. package/dist/commonjs/operations/operations.d.ts +0 -18
  447. package/dist/commonjs/operations/operations.d.ts.map +0 -1
  448. package/dist/commonjs/operations/operations.js +0 -52
  449. package/dist/commonjs/operations/operations.js.map +0 -1
  450. package/dist/commonjs/operations/studentLabs.d.ts +0 -38
  451. package/dist/commonjs/operations/studentLabs.d.ts.map +0 -1
  452. package/dist/commonjs/operations/studentLabs.js +0 -145
  453. package/dist/commonjs/operations/studentLabs.js.map +0 -1
  454. package/dist/commonjs/operations/students.d.ts +0 -70
  455. package/dist/commonjs/operations/students.d.ts.map +0 -1
  456. package/dist/commonjs/operations/students.js +0 -271
  457. package/dist/commonjs/operations/students.js.map +0 -1
  458. package/dist/commonjs/operationsInterfaces/grants.d.ts +0 -25
  459. package/dist/commonjs/operationsInterfaces/grants.d.ts.map +0 -1
  460. package/dist/commonjs/operationsInterfaces/grants.js +0 -10
  461. package/dist/commonjs/operationsInterfaces/grants.js.map +0 -1
  462. package/dist/commonjs/operationsInterfaces/index.d.ts +0 -7
  463. package/dist/commonjs/operationsInterfaces/index.d.ts.map +0 -1
  464. package/dist/commonjs/operationsInterfaces/index.js +0 -17
  465. package/dist/commonjs/operationsInterfaces/index.js.map +0 -1
  466. package/dist/commonjs/operationsInterfaces/joinRequests.d.ts +0 -41
  467. package/dist/commonjs/operationsInterfaces/joinRequests.d.ts.map +0 -1
  468. package/dist/commonjs/operationsInterfaces/joinRequests.js +0 -10
  469. package/dist/commonjs/operationsInterfaces/joinRequests.js.map +0 -1
  470. package/dist/commonjs/operationsInterfaces/labs.d.ts +0 -58
  471. package/dist/commonjs/operationsInterfaces/labs.d.ts.map +0 -1
  472. package/dist/commonjs/operationsInterfaces/labs.js +0 -10
  473. package/dist/commonjs/operationsInterfaces/labs.js.map +0 -1
  474. package/dist/commonjs/operationsInterfaces/operations.d.ts +0 -10
  475. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +0 -1
  476. package/dist/commonjs/operationsInterfaces/operations.js +0 -10
  477. package/dist/commonjs/operationsInterfaces/operations.js.map +0 -1
  478. package/dist/commonjs/operationsInterfaces/studentLabs.d.ts +0 -17
  479. package/dist/commonjs/operationsInterfaces/studentLabs.d.ts.map +0 -1
  480. package/dist/commonjs/operationsInterfaces/studentLabs.js +0 -10
  481. package/dist/commonjs/operationsInterfaces/studentLabs.js.map +0 -1
  482. package/dist/commonjs/operationsInterfaces/students.d.ts +0 -43
  483. package/dist/commonjs/operationsInterfaces/students.d.ts.map +0 -1
  484. package/dist/commonjs/operationsInterfaces/students.js +0 -10
  485. package/dist/commonjs/operationsInterfaces/students.js.map +0 -1
  486. package/dist/commonjs/pagingHelper.d.ts +0 -13
  487. package/dist/commonjs/pagingHelper.d.ts.map +0 -1
  488. package/dist/commonjs/pagingHelper.js +0 -34
  489. package/dist/commonjs/pagingHelper.js.map +0 -1
  490. package/dist/esm/educationManagementClient.d.ts.map +0 -1
  491. package/dist/esm/index.d.ts.map +0 -1
  492. package/dist/esm/models/index.d.ts.map +0 -1
  493. package/dist/esm/models/mappers.d.ts +0 -22
  494. package/dist/esm/models/mappers.d.ts.map +0 -1
  495. package/dist/esm/models/mappers.js +0 -754
  496. package/dist/esm/models/mappers.js.map +0 -1
  497. package/dist/esm/models/parameters.d.ts +0 -22
  498. package/dist/esm/models/parameters.d.ts.map +0 -1
  499. package/dist/esm/models/parameters.js +0 -185
  500. package/dist/esm/models/parameters.js.map +0 -1
  501. package/dist/esm/operations/grants.d.ts +0 -63
  502. package/dist/esm/operations/grants.d.ts.map +0 -1
  503. package/dist/esm/operations/grants.js +0 -250
  504. package/dist/esm/operations/grants.js.map +0 -1
  505. package/dist/esm/operations/index.d.ts +0 -7
  506. package/dist/esm/operations/index.d.ts.map +0 -1
  507. package/dist/esm/operations/index.js +0 -14
  508. package/dist/esm/operations/index.js.map +0 -1
  509. package/dist/esm/operations/joinRequests.d.ts +0 -68
  510. package/dist/esm/operations/joinRequests.d.ts.map +0 -1
  511. package/dist/esm/operations/joinRequests.js +0 -255
  512. package/dist/esm/operations/joinRequests.js.map +0 -1
  513. package/dist/esm/operations/labs.d.ts +0 -103
  514. package/dist/esm/operations/labs.d.ts.map +0 -1
  515. package/dist/esm/operations/labs.js +0 -402
  516. package/dist/esm/operations/labs.js.map +0 -1
  517. package/dist/esm/operations/operations.d.ts +0 -18
  518. package/dist/esm/operations/operations.d.ts.map +0 -1
  519. package/dist/esm/operations/operations.js +0 -47
  520. package/dist/esm/operations/operations.js.map +0 -1
  521. package/dist/esm/operations/studentLabs.d.ts +0 -38
  522. package/dist/esm/operations/studentLabs.d.ts.map +0 -1
  523. package/dist/esm/operations/studentLabs.js +0 -140
  524. package/dist/esm/operations/studentLabs.js.map +0 -1
  525. package/dist/esm/operations/students.d.ts +0 -70
  526. package/dist/esm/operations/students.d.ts.map +0 -1
  527. package/dist/esm/operations/students.js +0 -266
  528. package/dist/esm/operations/students.js.map +0 -1
  529. package/dist/esm/operationsInterfaces/grants.d.ts +0 -25
  530. package/dist/esm/operationsInterfaces/grants.d.ts.map +0 -1
  531. package/dist/esm/operationsInterfaces/grants.js +0 -9
  532. package/dist/esm/operationsInterfaces/grants.js.map +0 -1
  533. package/dist/esm/operationsInterfaces/index.d.ts +0 -7
  534. package/dist/esm/operationsInterfaces/index.d.ts.map +0 -1
  535. package/dist/esm/operationsInterfaces/index.js +0 -14
  536. package/dist/esm/operationsInterfaces/index.js.map +0 -1
  537. package/dist/esm/operationsInterfaces/joinRequests.d.ts +0 -41
  538. package/dist/esm/operationsInterfaces/joinRequests.d.ts.map +0 -1
  539. package/dist/esm/operationsInterfaces/joinRequests.js +0 -9
  540. package/dist/esm/operationsInterfaces/joinRequests.js.map +0 -1
  541. package/dist/esm/operationsInterfaces/labs.d.ts +0 -58
  542. package/dist/esm/operationsInterfaces/labs.d.ts.map +0 -1
  543. package/dist/esm/operationsInterfaces/labs.js +0 -9
  544. package/dist/esm/operationsInterfaces/labs.js.map +0 -1
  545. package/dist/esm/operationsInterfaces/operations.d.ts +0 -10
  546. package/dist/esm/operationsInterfaces/operations.d.ts.map +0 -1
  547. package/dist/esm/operationsInterfaces/operations.js +0 -9
  548. package/dist/esm/operationsInterfaces/operations.js.map +0 -1
  549. package/dist/esm/operationsInterfaces/studentLabs.d.ts +0 -17
  550. package/dist/esm/operationsInterfaces/studentLabs.d.ts.map +0 -1
  551. package/dist/esm/operationsInterfaces/studentLabs.js +0 -9
  552. package/dist/esm/operationsInterfaces/studentLabs.js.map +0 -1
  553. package/dist/esm/operationsInterfaces/students.d.ts +0 -43
  554. package/dist/esm/operationsInterfaces/students.d.ts.map +0 -1
  555. package/dist/esm/operationsInterfaces/students.js +0 -9
  556. package/dist/esm/operationsInterfaces/students.js.map +0 -1
  557. package/dist/esm/pagingHelper.d.ts +0 -13
  558. package/dist/esm/pagingHelper.d.ts.map +0 -1
  559. package/dist/esm/pagingHelper.js +0 -30
  560. package/dist/esm/pagingHelper.js.map +0 -1
  561. package/dist/react-native/educationManagementClient.d.ts +0 -29
  562. package/dist/react-native/educationManagementClient.d.ts.map +0 -1
  563. package/dist/react-native/educationManagementClient.js +0 -137
  564. package/dist/react-native/educationManagementClient.js.map +0 -1
  565. package/dist/react-native/index.d.ts +0 -5
  566. package/dist/react-native/index.d.ts.map +0 -1
  567. package/dist/react-native/index.js +0 -13
  568. package/dist/react-native/index.js.map +0 -1
  569. package/dist/react-native/models/index.d.ts +0 -685
  570. package/dist/react-native/models/index.d.ts.map +0 -1
  571. package/dist/react-native/models/index.js +0 -92
  572. package/dist/react-native/models/index.js.map +0 -1
  573. package/dist/react-native/models/mappers.d.ts +0 -22
  574. package/dist/react-native/models/mappers.d.ts.map +0 -1
  575. package/dist/react-native/models/mappers.js +0 -754
  576. package/dist/react-native/models/mappers.js.map +0 -1
  577. package/dist/react-native/models/parameters.d.ts +0 -22
  578. package/dist/react-native/models/parameters.d.ts.map +0 -1
  579. package/dist/react-native/models/parameters.js +0 -185
  580. package/dist/react-native/models/parameters.js.map +0 -1
  581. package/dist/react-native/operations/grants.d.ts +0 -63
  582. package/dist/react-native/operations/grants.d.ts.map +0 -1
  583. package/dist/react-native/operations/grants.js +0 -250
  584. package/dist/react-native/operations/grants.js.map +0 -1
  585. package/dist/react-native/operations/index.d.ts +0 -7
  586. package/dist/react-native/operations/index.d.ts.map +0 -1
  587. package/dist/react-native/operations/index.js +0 -14
  588. package/dist/react-native/operations/index.js.map +0 -1
  589. package/dist/react-native/operations/joinRequests.d.ts +0 -68
  590. package/dist/react-native/operations/joinRequests.d.ts.map +0 -1
  591. package/dist/react-native/operations/joinRequests.js +0 -255
  592. package/dist/react-native/operations/joinRequests.js.map +0 -1
  593. package/dist/react-native/operations/labs.d.ts +0 -103
  594. package/dist/react-native/operations/labs.d.ts.map +0 -1
  595. package/dist/react-native/operations/labs.js +0 -402
  596. package/dist/react-native/operations/labs.js.map +0 -1
  597. package/dist/react-native/operations/operations.d.ts +0 -18
  598. package/dist/react-native/operations/operations.d.ts.map +0 -1
  599. package/dist/react-native/operations/operations.js +0 -47
  600. package/dist/react-native/operations/operations.js.map +0 -1
  601. package/dist/react-native/operations/studentLabs.d.ts +0 -38
  602. package/dist/react-native/operations/studentLabs.d.ts.map +0 -1
  603. package/dist/react-native/operations/studentLabs.js +0 -140
  604. package/dist/react-native/operations/studentLabs.js.map +0 -1
  605. package/dist/react-native/operations/students.d.ts +0 -70
  606. package/dist/react-native/operations/students.d.ts.map +0 -1
  607. package/dist/react-native/operations/students.js +0 -266
  608. package/dist/react-native/operations/students.js.map +0 -1
  609. package/dist/react-native/operationsInterfaces/grants.d.ts +0 -25
  610. package/dist/react-native/operationsInterfaces/grants.d.ts.map +0 -1
  611. package/dist/react-native/operationsInterfaces/grants.js +0 -9
  612. package/dist/react-native/operationsInterfaces/grants.js.map +0 -1
  613. package/dist/react-native/operationsInterfaces/index.d.ts +0 -7
  614. package/dist/react-native/operationsInterfaces/index.d.ts.map +0 -1
  615. package/dist/react-native/operationsInterfaces/index.js +0 -14
  616. package/dist/react-native/operationsInterfaces/index.js.map +0 -1
  617. package/dist/react-native/operationsInterfaces/joinRequests.d.ts +0 -41
  618. package/dist/react-native/operationsInterfaces/joinRequests.d.ts.map +0 -1
  619. package/dist/react-native/operationsInterfaces/joinRequests.js +0 -9
  620. package/dist/react-native/operationsInterfaces/joinRequests.js.map +0 -1
  621. package/dist/react-native/operationsInterfaces/labs.d.ts +0 -58
  622. package/dist/react-native/operationsInterfaces/labs.d.ts.map +0 -1
  623. package/dist/react-native/operationsInterfaces/labs.js +0 -9
  624. package/dist/react-native/operationsInterfaces/labs.js.map +0 -1
  625. package/dist/react-native/operationsInterfaces/operations.d.ts +0 -10
  626. package/dist/react-native/operationsInterfaces/operations.d.ts.map +0 -1
  627. package/dist/react-native/operationsInterfaces/operations.js +0 -9
  628. package/dist/react-native/operationsInterfaces/operations.js.map +0 -1
  629. package/dist/react-native/operationsInterfaces/studentLabs.d.ts +0 -17
  630. package/dist/react-native/operationsInterfaces/studentLabs.d.ts.map +0 -1
  631. package/dist/react-native/operationsInterfaces/studentLabs.js +0 -9
  632. package/dist/react-native/operationsInterfaces/studentLabs.js.map +0 -1
  633. package/dist/react-native/operationsInterfaces/students.d.ts +0 -43
  634. package/dist/react-native/operationsInterfaces/students.d.ts.map +0 -1
  635. package/dist/react-native/operationsInterfaces/students.js +0 -9
  636. package/dist/react-native/operationsInterfaces/students.js.map +0 -1
  637. package/dist/react-native/package.json +0 -3
  638. package/dist/react-native/pagingHelper.d.ts +0 -13
  639. package/dist/react-native/pagingHelper.d.ts.map +0 -1
  640. package/dist/react-native/pagingHelper.js +0 -30
  641. package/dist/react-native/pagingHelper.js.map +0 -1
  642. package/review/arm-education-node.api.md +0 -529
package/LICENSE CHANGED
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
21
+ SOFTWARE.
package/README.md CHANGED
@@ -4,10 +4,12 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f
4
4
 
5
5
  Education client provides access to education resources for Azure subscriptions.
6
6
 
7
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/education/arm-education) |
8
- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-education) |
9
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-education?view=azure-node-preview) |
10
- [Samples](https://github.com/Azure-Samples/azure-samples-js-management)
7
+ Key links:
8
+
9
+ - [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/education/arm-education)
10
+ - [Package (NPM)](https://www.npmjs.com/package/@azure/arm-education)
11
+ - [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-education?view=azure-node-preview)
12
+ - [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/education/arm-education/samples)
11
13
 
12
14
  ## Getting started
13
15
 
@@ -35,7 +37,7 @@ npm install @azure/arm-education
35
37
  To create a client object to access the Azure EducationManagement API, you will need the `endpoint` of your Azure EducationManagement resource and a `credential`. The Azure EducationManagement client can use Azure Active Directory credentials to authenticate.
36
38
  You can find the endpoint for your Azure EducationManagement resource in the [Azure Portal][azure_portal].
37
39
 
38
- You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
40
+ You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
39
41
 
40
42
  To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
41
43
 
@@ -44,7 +46,6 @@ npm install @azure/identity
44
46
  ```
45
47
 
46
48
  You will also need to **register a new AAD application and grant access to Azure EducationManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
47
- Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
48
49
 
49
50
  For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
50
51
 
@@ -54,8 +55,7 @@ Using Node.js and Node-like environments, you can use the `DefaultAzureCredentia
54
55
  import { EducationManagementClient } from "@azure/arm-education";
55
56
  import { DefaultAzureCredential } from "@azure/identity";
56
57
 
57
- const subscriptionId = "00000000-0000-0000-0000-000000000000";
58
- const client = new EducationManagementClient(new DefaultAzureCredential(), subscriptionId);
58
+ const client = new EducationManagementClient(new DefaultAzureCredential());
59
59
  ```
60
60
 
61
61
  For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
@@ -64,16 +64,15 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur
64
64
  import { InteractiveBrowserCredential } from "@azure/identity";
65
65
  import { EducationManagementClient } from "@azure/arm-education";
66
66
 
67
- const subscriptionId = "00000000-0000-0000-0000-000000000000";
68
67
  const credential = new InteractiveBrowserCredential({
69
68
  tenantId: "<YOUR_TENANT_ID>",
70
69
  clientId: "<YOUR_CLIENT_ID>",
71
70
  });
72
- const client = new EducationManagementClient(credential, subscriptionId);
71
+ const client = new EducationManagementClient(credential);
73
72
  ```
74
73
 
75
- ### JavaScript Bundle
76
74
 
75
+ ### JavaScript Bundle
77
76
  To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
78
77
 
79
78
  ## Key concepts
@@ -98,7 +97,7 @@ For more detailed instructions on how to enable logs, you can look at the [@azur
98
97
 
99
98
  ## Next steps
100
99
 
101
- Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library.
100
+ Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/education/arm-education/samples) directory for detailed examples on how to use this library.
102
101
 
103
102
  ## Contributing
104
103
 
@@ -108,10 +107,6 @@ If you'd like to contribute to this library, please read the [contributing guide
108
107
 
109
108
  - [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
110
109
 
111
-
112
-
113
- [azure_cli]: https://learn.microsoft.com/cli/azure
114
- [azure_sub]: https://azure.microsoft.com/free/
115
110
  [azure_sub]: https://azure.microsoft.com/free/
116
111
  [azure_portal]: https://portal.azure.com
117
112
  [azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
@@ -0,0 +1,20 @@
1
+ import { AzureSupportedClouds } from "../static-helpers/cloudSettingHelpers.js";
2
+ import { Client, ClientOptions } from "@azure-rest/core-client";
3
+ import { TokenCredential } from "@azure/core-auth";
4
+ /** Education client provides access to education resources for Azure subscriptions. */
5
+ export interface EducationManagementContext extends Client {
6
+ /** The API version to use for this operation. */
7
+ /** Known values of {@link KnownVersions} that the service accepts. */
8
+ apiVersion?: string;
9
+ }
10
+ /** Optional parameters for the client. */
11
+ export interface EducationManagementClientOptionalParams extends ClientOptions {
12
+ /** The API version to use for this operation. */
13
+ /** Known values of {@link KnownVersions} that the service accepts. */
14
+ apiVersion?: string;
15
+ /** Specifies the Azure cloud environment for the client. */
16
+ cloudSetting?: AzureSupportedClouds;
17
+ }
18
+ /** Education client provides access to education resources for Azure subscriptions. */
19
+ export declare function createEducationManagement(credential: TokenCredential, options?: EducationManagementClientOptionalParams): EducationManagementContext;
20
+ //# sourceMappingURL=educationManagementContext.d.ts.map
@@ -0,0 +1,26 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { logger } from "../logger.js";
4
+ import { getArmEndpoint } from "../static-helpers/cloudSettingHelpers.js";
5
+ import { getClient } from "@azure-rest/core-client";
6
+ /** Education client provides access to education resources for Azure subscriptions. */
7
+ export function createEducationManagement(credential, options = {}) {
8
+ const endpointUrl = options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? "https://management.azure.com";
9
+ const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
10
+ const userAgentInfo = `azsdk-js-arm-education/1.0.0-beta.5`;
11
+ const userAgentPrefix = prefixFromOptions
12
+ ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
13
+ : `azsdk-js-api ${userAgentInfo}`;
14
+ const { apiVersion: _, ...updatedOptions } = {
15
+ ...options,
16
+ userAgentOptions: { userAgentPrefix },
17
+ loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },
18
+ credentials: {
19
+ scopes: options.credentials?.scopes ?? ["https://management.azure.com/.default"],
20
+ },
21
+ };
22
+ const clientContext = getClient(endpointUrl, credential, updatedOptions);
23
+ const apiVersion = options.apiVersion;
24
+ return { ...clientContext, apiVersion };
25
+ }
26
+ //# sourceMappingURL=educationManagementContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"educationManagementContext.js","sourceRoot":"","sources":["../../../src/api/educationManagementContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAwB,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAChG,OAAO,EAAyB,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAmB3E,uFAAuF;AACvF,MAAM,UAAU,yBAAyB,CACvC,UAA2B,EAC3B,UAAmD,EAAE;IAErD,MAAM,WAAW,GACf,OAAO,CAAC,QAAQ,IAAI,cAAc,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,8BAA8B,CAAC;IAC7F,MAAM,iBAAiB,GAAG,OAAO,EAAE,gBAAgB,EAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,qCAAqC,CAAC;IAC5D,MAAM,eAAe,GAAG,iBAAiB;QACvC,CAAC,CAAC,GAAG,iBAAiB,iBAAiB,aAAa,EAAE;QACtD,CAAC,CAAC,gBAAgB,aAAa,EAAE,CAAC;IACpC,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,GAAG;QAC3C,GAAG,OAAO;QACV,gBAAgB,EAAE,EAAE,eAAe,EAAE;QACrC,cAAc,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,cAAc,EAAE,MAAM,IAAI,MAAM,CAAC,IAAI,EAAE;QACzE,WAAW,EAAE;YACX,MAAM,EAAE,OAAO,CAAC,WAAW,EAAE,MAAM,IAAI,CAAC,uCAAuC,CAAC;SACjF;KACF,CAAC;IACF,MAAM,aAAa,GAAG,SAAS,CAAC,WAAW,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;IACtC,OAAO,EAAE,GAAG,aAAa,EAAE,UAAU,EAAgC,CAAC;AACxE,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownVersions } from \"../models/models.js\";\nimport { AzureSupportedClouds, getArmEndpoint } from \"../static-helpers/cloudSettingHelpers.js\";\nimport { Client, ClientOptions, getClient } from \"@azure-rest/core-client\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\n/** Education client provides access to education resources for Azure subscriptions. */\nexport interface EducationManagementContext extends Client {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n}\n\n/** Optional parameters for the client. */\nexport interface EducationManagementClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n /** Specifies the Azure cloud environment for the client. */\n cloudSetting?: AzureSupportedClouds;\n}\n\n/** Education client provides access to education resources for Azure subscriptions. */\nexport function createEducationManagement(\n credential: TokenCredential,\n options: EducationManagementClientOptionalParams = {},\n): EducationManagementContext {\n const endpointUrl =\n options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? \"https://management.azure.com\";\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-education/1.0.0-beta.5`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [\"https://management.azure.com/.default\"],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n const apiVersion = options.apiVersion;\n return { ...clientContext, apiVersion } as EducationManagementContext;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ export { listAll, list, get } from "./operations.js";
2
+ export type { GrantsListAllOptionalParams, GrantsListOptionalParams, GrantsGetOptionalParams, } from "./options.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export { listAll, list, get } from "./operations.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/grants/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { listAll, list, get } from \"./operations.js\";\nexport type {\n GrantsListAllOptionalParams,\n GrantsListOptionalParams,\n GrantsGetOptionalParams,\n} from \"./options.js\";\n"]}
@@ -0,0 +1,18 @@
1
+ import { EducationManagementContext as Client } from "../index.js";
2
+ import { GrantDetails, _GrantListResponse } from "../../models/models.js";
3
+ import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
4
+ import { GrantsListAllOptionalParams, GrantsListOptionalParams, GrantsGetOptionalParams } from "./options.js";
5
+ import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
6
+ export declare function _listAllSend(context: Client, options?: GrantsListAllOptionalParams): StreamableMethod;
7
+ export declare function _listAllDeserialize(result: PathUncheckedResponse): Promise<_GrantListResponse>;
8
+ /** Get a list of grants that Microsoft has provided. */
9
+ export declare function listAll(context: Client, options?: GrantsListAllOptionalParams): PagedAsyncIterableIterator<GrantDetails>;
10
+ export declare function _listSend(context: Client, billingAccountName: string, billingProfileName: string, options?: GrantsListOptionalParams): StreamableMethod;
11
+ export declare function _listDeserialize(result: PathUncheckedResponse): Promise<_GrantListResponse>;
12
+ /** Get details for a specific grant linked to the provided billing account and billing profile. */
13
+ export declare function list(context: Client, billingAccountName: string, billingProfileName: string, options?: GrantsListOptionalParams): PagedAsyncIterableIterator<GrantDetails>;
14
+ export declare function _getSend(context: Client, billingAccountName: string, billingProfileName: string, options?: GrantsGetOptionalParams): StreamableMethod;
15
+ export declare function _getDeserialize(result: PathUncheckedResponse): Promise<GrantDetails>;
16
+ /** Get details for a specific grant linked to the provided billing account and billing profile. */
17
+ export declare function get(context: Client, billingAccountName: string, billingProfileName: string, options?: GrantsGetOptionalParams): Promise<GrantDetails>;
18
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1,95 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { errorResponseBodyDeserializer, grantDetailsDeserializer, _grantListResponseDeserializer, } from "../../models/models.js";
4
+ import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
5
+ import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
6
+ import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
7
+ export function _listAllSend(context, options = { requestOptions: {} }) {
8
+ const path = expandUrlTemplate("/providers/Microsoft.Education/grants{?api%2Dversion,includeAllocatedBudget}", {
9
+ "api%2Dversion": context.apiVersion ?? "2021-12-01-preview",
10
+ includeAllocatedBudget: options?.includeAllocatedBudget,
11
+ }, {
12
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
13
+ });
14
+ return context.path(path).get({
15
+ ...operationOptionsToRequestParameters(options),
16
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
17
+ });
18
+ }
19
+ export async function _listAllDeserialize(result) {
20
+ const expectedStatuses = ["200"];
21
+ if (!expectedStatuses.includes(result.status)) {
22
+ const error = createRestError(result);
23
+ error.details = errorResponseBodyDeserializer(result.body);
24
+ throw error;
25
+ }
26
+ return _grantListResponseDeserializer(result.body);
27
+ }
28
+ /** Get a list of grants that Microsoft has provided. */
29
+ export function listAll(context, options = { requestOptions: {} }) {
30
+ return buildPagedAsyncIterator(context, () => _listAllSend(context, options), _listAllDeserialize, ["200"], {
31
+ itemName: "value",
32
+ nextLinkName: "nextLink",
33
+ apiVersion: context.apiVersion ?? "2021-12-01-preview",
34
+ });
35
+ }
36
+ export function _listSend(context, billingAccountName, billingProfileName, options = { requestOptions: {} }) {
37
+ const path = expandUrlTemplate("/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.Education/grants{?api%2Dversion,includeAllocatedBudget}", {
38
+ billingAccountName: billingAccountName,
39
+ billingProfileName: billingProfileName,
40
+ "api%2Dversion": context.apiVersion ?? "2021-12-01-preview",
41
+ includeAllocatedBudget: options?.includeAllocatedBudget,
42
+ }, {
43
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
44
+ });
45
+ return context.path(path).get({
46
+ ...operationOptionsToRequestParameters(options),
47
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
48
+ });
49
+ }
50
+ export async function _listDeserialize(result) {
51
+ const expectedStatuses = ["200"];
52
+ if (!expectedStatuses.includes(result.status)) {
53
+ const error = createRestError(result);
54
+ error.details = errorResponseBodyDeserializer(result.body);
55
+ throw error;
56
+ }
57
+ return _grantListResponseDeserializer(result.body);
58
+ }
59
+ /** Get details for a specific grant linked to the provided billing account and billing profile. */
60
+ export function list(context, billingAccountName, billingProfileName, options = { requestOptions: {} }) {
61
+ return buildPagedAsyncIterator(context, () => _listSend(context, billingAccountName, billingProfileName, options), _listDeserialize, ["200"], {
62
+ itemName: "value",
63
+ nextLinkName: "nextLink",
64
+ apiVersion: context.apiVersion ?? "2021-12-01-preview",
65
+ });
66
+ }
67
+ export function _getSend(context, billingAccountName, billingProfileName, options = { requestOptions: {} }) {
68
+ const path = expandUrlTemplate("/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.Education/grants/default{?api%2Dversion,includeAllocatedBudget}", {
69
+ billingAccountName: billingAccountName,
70
+ billingProfileName: billingProfileName,
71
+ "api%2Dversion": context.apiVersion ?? "2021-12-01-preview",
72
+ includeAllocatedBudget: options?.includeAllocatedBudget,
73
+ }, {
74
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
75
+ });
76
+ return context.path(path).get({
77
+ ...operationOptionsToRequestParameters(options),
78
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
79
+ });
80
+ }
81
+ export async function _getDeserialize(result) {
82
+ const expectedStatuses = ["200"];
83
+ if (!expectedStatuses.includes(result.status)) {
84
+ const error = createRestError(result);
85
+ error.details = errorResponseBodyDeserializer(result.body);
86
+ throw error;
87
+ }
88
+ return grantDetailsDeserializer(result.body);
89
+ }
90
+ /** Get details for a specific grant linked to the provided billing account and billing profile. */
91
+ export async function get(context, billingAccountName, billingProfileName, options = { requestOptions: {} }) {
92
+ const result = await _getSend(context, billingAccountName, billingProfileName, options);
93
+ return _getDeserialize(result);
94
+ }
95
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/grants/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,6BAA6B,EAE7B,wBAAwB,EAExB,8BAA8B,GAC/B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAMxE,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,YAAY,CAC1B,OAAe,EACf,UAAuC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE7D,MAAM,IAAI,GAAG,iBAAiB,CAC5B,8EAA8E,EAC9E;QACE,eAAe,EAAE,OAAO,CAAC,UAAU,IAAI,oBAAoB;QAC3D,sBAAsB,EAAE,OAAO,EAAE,sBAAsB;KACxD,EACD;QACE,aAAa,EAAE,OAAO,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,CAAC,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACxF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { EducationManagementContext as Client } from \"../index.js\";\nimport {\n errorResponseBodyDeserializer,\n GrantDetails,\n grantDetailsDeserializer,\n _GrantListResponse,\n _grantListResponseDeserializer,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n GrantsListAllOptionalParams,\n GrantsListOptionalParams,\n GrantsGetOptionalParams,\n} from \"./options.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _listAllSend(\n context: Client,\n options: GrantsListAllOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.Education/grants{?api%2Dversion,includeAllocatedBudget}\",\n {\n \"api%2Dversion\": context.apiVersion ?? \"2021-12-01-preview\",\n includeAllocatedBudget: options?.includeAllocatedBudget,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listAllDeserialize(\n result: PathUncheckedResponse,\n): Promise<_GrantListResponse> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseBodyDeserializer(result.body);\n\n throw error;\n }\n\n return _grantListResponseDeserializer(result.body);\n}\n\n/** Get a list of grants that Microsoft has provided. */\nexport function listAll(\n context: Client,\n options: GrantsListAllOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<GrantDetails> {\n return buildPagedAsyncIterator(\n context,\n () => _listAllSend(context, options),\n _listAllDeserialize,\n [\"200\"],\n {\n itemName: \"value\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion ?? \"2021-12-01-preview\",\n },\n );\n}\n\nexport function _listSend(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n options: GrantsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.Education/grants{?api%2Dversion,includeAllocatedBudget}\",\n {\n billingAccountName: billingAccountName,\n billingProfileName: billingProfileName,\n \"api%2Dversion\": context.apiVersion ?? \"2021-12-01-preview\",\n includeAllocatedBudget: options?.includeAllocatedBudget,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listDeserialize(result: PathUncheckedResponse): Promise<_GrantListResponse> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseBodyDeserializer(result.body);\n\n throw error;\n }\n\n return _grantListResponseDeserializer(result.body);\n}\n\n/** Get details for a specific grant linked to the provided billing account and billing profile. */\nexport function list(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n options: GrantsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<GrantDetails> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, billingAccountName, billingProfileName, options),\n _listDeserialize,\n [\"200\"],\n {\n itemName: \"value\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion ?? \"2021-12-01-preview\",\n },\n );\n}\n\nexport function _getSend(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n options: GrantsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.Education/grants/default{?api%2Dversion,includeAllocatedBudget}\",\n {\n billingAccountName: billingAccountName,\n billingProfileName: billingProfileName,\n \"api%2Dversion\": context.apiVersion ?? \"2021-12-01-preview\",\n includeAllocatedBudget: options?.includeAllocatedBudget,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<GrantDetails> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseBodyDeserializer(result.body);\n\n throw error;\n }\n\n return grantDetailsDeserializer(result.body);\n}\n\n/** Get details for a specific grant linked to the provided billing account and billing profile. */\nexport async function get(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n options: GrantsGetOptionalParams = { requestOptions: {} },\n): Promise<GrantDetails> {\n const result = await _getSend(context, billingAccountName, billingProfileName, options);\n return _getDeserialize(result);\n}\n"]}
@@ -0,0 +1,17 @@
1
+ import { OperationOptions } from "@azure-rest/core-client";
2
+ /** Optional parameters. */
3
+ export interface GrantsListAllOptionalParams extends OperationOptions {
4
+ /** May be used to include information about budget that has been allocated. */
5
+ includeAllocatedBudget?: boolean;
6
+ }
7
+ /** Optional parameters. */
8
+ export interface GrantsListOptionalParams extends OperationOptions {
9
+ /** May be used to include information about budget that has been allocated. */
10
+ includeAllocatedBudget?: boolean;
11
+ }
12
+ /** Optional parameters. */
13
+ export interface GrantsGetOptionalParams extends OperationOptions {
14
+ /** May be used to include information about budget that has been allocated. */
15
+ includeAllocatedBudget?: boolean;
16
+ }
17
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/grants/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface GrantsListAllOptionalParams extends OperationOptions {\n /** May be used to include information about budget that has been allocated. */\n includeAllocatedBudget?: boolean;\n}\n\n/** Optional parameters. */\nexport interface GrantsListOptionalParams extends OperationOptions {\n /** May be used to include information about budget that has been allocated. */\n includeAllocatedBudget?: boolean;\n}\n\n/** Optional parameters. */\nexport interface GrantsGetOptionalParams extends OperationOptions {\n /** May be used to include information about budget that has been allocated. */\n includeAllocatedBudget?: boolean;\n}\n"]}
@@ -0,0 +1,5 @@
1
+ export type { EducationManagementContext, EducationManagementClientOptionalParams, } from "./educationManagementContext.js";
2
+ export { createEducationManagement } from "./educationManagementContext.js";
3
+ export { redeemInvitationCode } from "./operations.js";
4
+ export type { RedeemInvitationCodeOptionalParams } from "./options.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,5 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export { createEducationManagement } from "./educationManagementContext.js";
4
+ export { redeemInvitationCode } from "./operations.js";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport type {\n EducationManagementContext,\n EducationManagementClientOptionalParams,\n} from \"./educationManagementContext.js\";\nexport { createEducationManagement } from \"./educationManagementContext.js\";\nexport { redeemInvitationCode } from \"./operations.js\";\nexport type { RedeemInvitationCodeOptionalParams } from \"./options.js\";\n"]}
@@ -0,0 +1,3 @@
1
+ export { deny, approve, list, get } from "./operations.js";
2
+ export type { JoinRequestsDenyOptionalParams, JoinRequestsApproveOptionalParams, JoinRequestsListOptionalParams, JoinRequestsGetOptionalParams, } from "./options.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export { deny, approve, list, get } from "./operations.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/joinRequests/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { deny, approve, list, get } from \"./operations.js\";\nexport type {\n JoinRequestsDenyOptionalParams,\n JoinRequestsApproveOptionalParams,\n JoinRequestsListOptionalParams,\n JoinRequestsGetOptionalParams,\n} from \"./options.js\";\n"]}
@@ -0,0 +1,22 @@
1
+ import { EducationManagementContext as Client } from "../index.js";
2
+ import { JoinRequestDetails, _JoinRequestList } from "../../models/models.js";
3
+ import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
4
+ import { JoinRequestsDenyOptionalParams, JoinRequestsApproveOptionalParams, JoinRequestsListOptionalParams, JoinRequestsGetOptionalParams } from "./options.js";
5
+ import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
6
+ export declare function _denySend(context: Client, billingAccountName: string, billingProfileName: string, invoiceSectionName: string, joinRequestName: string, options?: JoinRequestsDenyOptionalParams): StreamableMethod;
7
+ export declare function _denyDeserialize(result: PathUncheckedResponse): Promise<void>;
8
+ /** Deny student joining the redeemable lab */
9
+ export declare function deny(context: Client, billingAccountName: string, billingProfileName: string, invoiceSectionName: string, joinRequestName: string, options?: JoinRequestsDenyOptionalParams): Promise<void>;
10
+ export declare function _approveSend(context: Client, billingAccountName: string, billingProfileName: string, invoiceSectionName: string, joinRequestName: string, options?: JoinRequestsApproveOptionalParams): StreamableMethod;
11
+ export declare function _approveDeserialize(result: PathUncheckedResponse): Promise<void>;
12
+ /** Approve student joining the redeemable lab */
13
+ export declare function approve(context: Client, billingAccountName: string, billingProfileName: string, invoiceSectionName: string, joinRequestName: string, options?: JoinRequestsApproveOptionalParams): Promise<void>;
14
+ export declare function _listSend(context: Client, billingAccountName: string, billingProfileName: string, invoiceSectionName: string, options?: JoinRequestsListOptionalParams): StreamableMethod;
15
+ export declare function _listDeserialize(result: PathUncheckedResponse): Promise<_JoinRequestList>;
16
+ /** get student join requests */
17
+ export declare function list(context: Client, billingAccountName: string, billingProfileName: string, invoiceSectionName: string, options?: JoinRequestsListOptionalParams): PagedAsyncIterableIterator<JoinRequestDetails>;
18
+ export declare function _getSend(context: Client, billingAccountName: string, billingProfileName: string, invoiceSectionName: string, joinRequestName: string, options?: JoinRequestsGetOptionalParams): StreamableMethod;
19
+ export declare function _getDeserialize(result: PathUncheckedResponse): Promise<JoinRequestDetails>;
20
+ /** get student join requests */
21
+ export declare function get(context: Client, billingAccountName: string, billingProfileName: string, invoiceSectionName: string, joinRequestName: string, options?: JoinRequestsGetOptionalParams): Promise<JoinRequestDetails>;
22
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1,120 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { errorResponseBodyDeserializer, joinRequestDetailsDeserializer, _joinRequestListDeserializer, } from "../../models/models.js";
4
+ import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
5
+ import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
6
+ import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
7
+ export function _denySend(context, billingAccountName, billingProfileName, invoiceSectionName, joinRequestName, options = { requestOptions: {} }) {
8
+ const path = expandUrlTemplate("/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/joinRequests/{joinRequestName}/deny{?api%2Dversion}", {
9
+ billingAccountName: billingAccountName,
10
+ billingProfileName: billingProfileName,
11
+ invoiceSectionName: invoiceSectionName,
12
+ joinRequestName: joinRequestName,
13
+ "api%2Dversion": context.apiVersion ?? "2021-12-01-preview",
14
+ }, {
15
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
16
+ });
17
+ return context.path(path).post({ ...operationOptionsToRequestParameters(options) });
18
+ }
19
+ export async function _denyDeserialize(result) {
20
+ const expectedStatuses = ["200"];
21
+ if (!expectedStatuses.includes(result.status)) {
22
+ const error = createRestError(result);
23
+ error.details = errorResponseBodyDeserializer(result.body);
24
+ throw error;
25
+ }
26
+ return;
27
+ }
28
+ /** Deny student joining the redeemable lab */
29
+ export async function deny(context, billingAccountName, billingProfileName, invoiceSectionName, joinRequestName, options = { requestOptions: {} }) {
30
+ const result = await _denySend(context, billingAccountName, billingProfileName, invoiceSectionName, joinRequestName, options);
31
+ return _denyDeserialize(result);
32
+ }
33
+ export function _approveSend(context, billingAccountName, billingProfileName, invoiceSectionName, joinRequestName, options = { requestOptions: {} }) {
34
+ const path = expandUrlTemplate("/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/joinRequests/{joinRequestName}/approve{?api%2Dversion}", {
35
+ billingAccountName: billingAccountName,
36
+ billingProfileName: billingProfileName,
37
+ invoiceSectionName: invoiceSectionName,
38
+ joinRequestName: joinRequestName,
39
+ "api%2Dversion": context.apiVersion ?? "2021-12-01-preview",
40
+ }, {
41
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
42
+ });
43
+ return context.path(path).post({ ...operationOptionsToRequestParameters(options) });
44
+ }
45
+ export async function _approveDeserialize(result) {
46
+ const expectedStatuses = ["200"];
47
+ if (!expectedStatuses.includes(result.status)) {
48
+ const error = createRestError(result);
49
+ error.details = errorResponseBodyDeserializer(result.body);
50
+ throw error;
51
+ }
52
+ return;
53
+ }
54
+ /** Approve student joining the redeemable lab */
55
+ export async function approve(context, billingAccountName, billingProfileName, invoiceSectionName, joinRequestName, options = { requestOptions: {} }) {
56
+ const result = await _approveSend(context, billingAccountName, billingProfileName, invoiceSectionName, joinRequestName, options);
57
+ return _approveDeserialize(result);
58
+ }
59
+ export function _listSend(context, billingAccountName, billingProfileName, invoiceSectionName, options = { requestOptions: {} }) {
60
+ const path = expandUrlTemplate("/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/joinRequests{?api%2Dversion,includeDenied}", {
61
+ billingAccountName: billingAccountName,
62
+ billingProfileName: billingProfileName,
63
+ invoiceSectionName: invoiceSectionName,
64
+ "api%2Dversion": context.apiVersion ?? "2021-12-01-preview",
65
+ includeDenied: options?.includeDenied,
66
+ }, {
67
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
68
+ });
69
+ return context.path(path).get({
70
+ ...operationOptionsToRequestParameters(options),
71
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
72
+ });
73
+ }
74
+ export async function _listDeserialize(result) {
75
+ const expectedStatuses = ["200"];
76
+ if (!expectedStatuses.includes(result.status)) {
77
+ const error = createRestError(result);
78
+ error.details = errorResponseBodyDeserializer(result.body);
79
+ throw error;
80
+ }
81
+ return _joinRequestListDeserializer(result.body);
82
+ }
83
+ /** get student join requests */
84
+ export function list(context, billingAccountName, billingProfileName, invoiceSectionName, options = { requestOptions: {} }) {
85
+ return buildPagedAsyncIterator(context, () => _listSend(context, billingAccountName, billingProfileName, invoiceSectionName, options), _listDeserialize, ["200"], {
86
+ itemName: "value",
87
+ nextLinkName: "nextLink",
88
+ apiVersion: context.apiVersion ?? "2021-12-01-preview",
89
+ });
90
+ }
91
+ export function _getSend(context, billingAccountName, billingProfileName, invoiceSectionName, joinRequestName, options = { requestOptions: {} }) {
92
+ const path = expandUrlTemplate("/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/joinRequests/{joinRequestName}{?api%2Dversion}", {
93
+ billingAccountName: billingAccountName,
94
+ billingProfileName: billingProfileName,
95
+ invoiceSectionName: invoiceSectionName,
96
+ joinRequestName: joinRequestName,
97
+ "api%2Dversion": context.apiVersion ?? "2021-12-01-preview",
98
+ }, {
99
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
100
+ });
101
+ return context.path(path).get({
102
+ ...operationOptionsToRequestParameters(options),
103
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
104
+ });
105
+ }
106
+ export async function _getDeserialize(result) {
107
+ const expectedStatuses = ["200"];
108
+ if (!expectedStatuses.includes(result.status)) {
109
+ const error = createRestError(result);
110
+ error.details = errorResponseBodyDeserializer(result.body);
111
+ throw error;
112
+ }
113
+ return joinRequestDetailsDeserializer(result.body);
114
+ }
115
+ /** get student join requests */
116
+ export async function get(context, billingAccountName, billingProfileName, invoiceSectionName, joinRequestName, options = { requestOptions: {} }) {
117
+ const result = await _getSend(context, billingAccountName, billingProfileName, invoiceSectionName, joinRequestName, options);
118
+ return _getDeserialize(result);
119
+ }
120
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/joinRequests/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,6BAA6B,EAE7B,8BAA8B,EAE9B,4BAA4B,GAC7B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CA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AgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,6BAA6B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAE3D,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,8BAA8B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACrD,CAAC;AAED,gCAAgC;AAChC,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,kBAA0B,EAC1B,kBAA0B,EAC1B,kBAA0B,EAC1B,eAAuB,EACvB,UAAyC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE/D,MAAM,MAAM,GAAG,MAAM,QAAQ,CAC3B,OAAO,EACP,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,OAAO,CACR,CAAC;IACF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { EducationManagementContext as Client } from \"../index.js\";\nimport {\n errorResponseBodyDeserializer,\n JoinRequestDetails,\n joinRequestDetailsDeserializer,\n _JoinRequestList,\n _joinRequestListDeserializer,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n JoinRequestsDenyOptionalParams,\n JoinRequestsApproveOptionalParams,\n JoinRequestsListOptionalParams,\n JoinRequestsGetOptionalParams,\n} from \"./options.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _denySend(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n joinRequestName: string,\n options: JoinRequestsDenyOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/joinRequests/{joinRequestName}/deny{?api%2Dversion}\",\n {\n billingAccountName: billingAccountName,\n billingProfileName: billingProfileName,\n invoiceSectionName: invoiceSectionName,\n joinRequestName: joinRequestName,\n \"api%2Dversion\": context.apiVersion ?? \"2021-12-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _denyDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseBodyDeserializer(result.body);\n\n throw error;\n }\n\n return;\n}\n\n/** Deny student joining the redeemable lab */\nexport async function deny(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n joinRequestName: string,\n options: JoinRequestsDenyOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _denySend(\n context,\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n joinRequestName,\n options,\n );\n return _denyDeserialize(result);\n}\n\nexport function _approveSend(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n joinRequestName: string,\n options: JoinRequestsApproveOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/joinRequests/{joinRequestName}/approve{?api%2Dversion}\",\n {\n billingAccountName: billingAccountName,\n billingProfileName: billingProfileName,\n invoiceSectionName: invoiceSectionName,\n joinRequestName: joinRequestName,\n \"api%2Dversion\": context.apiVersion ?? \"2021-12-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _approveDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseBodyDeserializer(result.body);\n\n throw error;\n }\n\n return;\n}\n\n/** Approve student joining the redeemable lab */\nexport async function approve(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n joinRequestName: string,\n options: JoinRequestsApproveOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _approveSend(\n context,\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n joinRequestName,\n options,\n );\n return _approveDeserialize(result);\n}\n\nexport function _listSend(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n options: JoinRequestsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/joinRequests{?api%2Dversion,includeDenied}\",\n {\n billingAccountName: billingAccountName,\n billingProfileName: billingProfileName,\n invoiceSectionName: invoiceSectionName,\n \"api%2Dversion\": context.apiVersion ?? \"2021-12-01-preview\",\n includeDenied: options?.includeDenied,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listDeserialize(result: PathUncheckedResponse): Promise<_JoinRequestList> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseBodyDeserializer(result.body);\n\n throw error;\n }\n\n return _joinRequestListDeserializer(result.body);\n}\n\n/** get student join requests */\nexport function list(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n options: JoinRequestsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<JoinRequestDetails> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, billingAccountName, billingProfileName, invoiceSectionName, options),\n _listDeserialize,\n [\"200\"],\n {\n itemName: \"value\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion ?? \"2021-12-01-preview\",\n },\n );\n}\n\nexport function _getSend(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n joinRequestName: string,\n options: JoinRequestsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/joinRequests/{joinRequestName}{?api%2Dversion}\",\n {\n billingAccountName: billingAccountName,\n billingProfileName: billingProfileName,\n invoiceSectionName: invoiceSectionName,\n joinRequestName: joinRequestName,\n \"api%2Dversion\": context.apiVersion ?? \"2021-12-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<JoinRequestDetails> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseBodyDeserializer(result.body);\n\n throw error;\n }\n\n return joinRequestDetailsDeserializer(result.body);\n}\n\n/** get student join requests */\nexport async function get(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n joinRequestName: string,\n options: JoinRequestsGetOptionalParams = { requestOptions: {} },\n): Promise<JoinRequestDetails> {\n const result = await _getSend(\n context,\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n joinRequestName,\n options,\n );\n return _getDeserialize(result);\n}\n"]}
@@ -0,0 +1,16 @@
1
+ import { OperationOptions } from "@azure-rest/core-client";
2
+ /** Optional parameters. */
3
+ export interface JoinRequestsDenyOptionalParams extends OperationOptions {
4
+ }
5
+ /** Optional parameters. */
6
+ export interface JoinRequestsApproveOptionalParams extends OperationOptions {
7
+ }
8
+ /** Optional parameters. */
9
+ export interface JoinRequestsListOptionalParams extends OperationOptions {
10
+ /** Include denied */
11
+ includeDenied?: boolean;
12
+ }
13
+ /** Optional parameters. */
14
+ export interface JoinRequestsGetOptionalParams extends OperationOptions {
15
+ }
16
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/joinRequests/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface JoinRequestsDenyOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface JoinRequestsApproveOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface JoinRequestsListOptionalParams extends OperationOptions {\n /** Include denied */\n includeDenied?: boolean;\n}\n\n/** Optional parameters. */\nexport interface JoinRequestsGetOptionalParams extends OperationOptions {}\n"]}
@@ -0,0 +1,3 @@
1
+ export { generateInviteCode, listAll, list, $delete, createOrUpdate, get } from "./operations.js";
2
+ export type { LabsGenerateInviteCodeOptionalParams, LabsListAllOptionalParams, LabsListOptionalParams, LabsDeleteOptionalParams, LabsCreateOrUpdateOptionalParams, LabsGetOptionalParams, } from "./options.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export { generateInviteCode, listAll, list, $delete, createOrUpdate, get } from "./operations.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/labs/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { generateInviteCode, listAll, list, $delete, createOrUpdate, get } from \"./operations.js\";\nexport type {\n LabsGenerateInviteCodeOptionalParams,\n LabsListAllOptionalParams,\n LabsListOptionalParams,\n LabsDeleteOptionalParams,\n LabsCreateOrUpdateOptionalParams,\n LabsGetOptionalParams,\n} from \"./options.js\";\n"]}