@azure/arm-education 1.0.0-beta.3 → 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 (546) hide show
  1. package/LICENSE +3 -3
  2. package/README.md +30 -26
  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 +34 -0
  91. package/dist/browser/educationManagementClient.js +50 -0
  92. package/dist/browser/educationManagementClient.js.map +1 -0
  93. package/dist/browser/index.d.ts +18 -0
  94. package/dist/browser/index.js +8 -0
  95. package/dist/browser/index.js.map +1 -0
  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 +3 -0
  100. package/dist/browser/models/index.js +4 -0
  101. package/dist/browser/models/index.js.map +1 -0
  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/package.json +3 -0
  106. package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +22 -0
  107. package/dist/browser/static-helpers/cloudSettingHelpers.js +38 -0
  108. package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
  109. package/dist/browser/static-helpers/pagingHelpers.d.ts +74 -0
  110. package/dist/browser/static-helpers/pagingHelpers.js +143 -0
  111. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
  112. package/dist/browser/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
  113. package/dist/browser/static-helpers/serialization/check-prop-undefined.js +17 -0
  114. package/dist/browser/static-helpers/serialization/check-prop-undefined.js.map +1 -0
  115. package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
  116. package/dist/browser/static-helpers/urlTemplate.js +200 -0
  117. package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
  118. package/dist/commonjs/api/educationManagementContext.d.ts +20 -0
  119. package/dist/commonjs/api/educationManagementContext.js +47 -0
  120. package/dist/commonjs/api/educationManagementContext.js.map +7 -0
  121. package/dist/commonjs/api/grants/index.d.ts +3 -0
  122. package/dist/commonjs/api/grants/index.js +32 -0
  123. package/dist/commonjs/api/grants/index.js.map +7 -0
  124. package/dist/commonjs/api/grants/operations.d.ts +18 -0
  125. package/dist/commonjs/api/grants/operations.js +156 -0
  126. package/dist/commonjs/api/grants/operations.js.map +7 -0
  127. package/dist/commonjs/api/grants/options.d.ts +17 -0
  128. package/dist/commonjs/api/grants/options.js +16 -0
  129. package/dist/commonjs/api/grants/options.js.map +7 -0
  130. package/dist/commonjs/api/index.d.ts +5 -0
  131. package/dist/commonjs/api/index.js +31 -0
  132. package/dist/commonjs/api/index.js.map +7 -0
  133. package/dist/commonjs/api/joinRequests/index.d.ts +3 -0
  134. package/dist/commonjs/api/joinRequests/index.js +34 -0
  135. package/dist/commonjs/api/joinRequests/index.js.map +7 -0
  136. package/dist/commonjs/api/joinRequests/operations.d.ts +22 -0
  137. package/dist/commonjs/api/joinRequests/operations.js +205 -0
  138. package/dist/commonjs/api/joinRequests/operations.js.map +7 -0
  139. package/dist/commonjs/api/joinRequests/options.d.ts +16 -0
  140. package/dist/commonjs/api/joinRequests/options.js +16 -0
  141. package/dist/commonjs/api/joinRequests/options.js.map +7 -0
  142. package/dist/commonjs/api/labs/index.d.ts +3 -0
  143. package/dist/commonjs/api/labs/index.js +38 -0
  144. package/dist/commonjs/api/labs/index.js.map +7 -0
  145. package/dist/commonjs/api/labs/operations.d.ts +30 -0
  146. package/dist/commonjs/api/labs/operations.js +300 -0
  147. package/dist/commonjs/api/labs/operations.js.map +7 -0
  148. package/dist/commonjs/api/labs/options.d.ts +30 -0
  149. package/dist/commonjs/api/labs/options.js +16 -0
  150. package/dist/commonjs/api/labs/options.js.map +7 -0
  151. package/dist/commonjs/api/operations/index.d.ts +3 -0
  152. package/dist/commonjs/api/operations/index.js +28 -0
  153. package/dist/commonjs/api/operations/index.js.map +7 -0
  154. package/dist/commonjs/api/operations/operations.d.ts +9 -0
  155. package/dist/commonjs/api/operations/operations.js +62 -0
  156. package/dist/commonjs/api/operations/operations.js.map +7 -0
  157. package/dist/commonjs/api/operations/options.d.ts +5 -0
  158. package/dist/commonjs/api/operations/options.js +16 -0
  159. package/dist/commonjs/api/operations/options.js.map +7 -0
  160. package/dist/commonjs/api/operations.d.ts +9 -0
  161. package/dist/commonjs/api/operations.js +63 -0
  162. package/dist/commonjs/api/operations.js.map +7 -0
  163. package/dist/commonjs/api/options.d.ts +5 -0
  164. package/dist/commonjs/api/options.js +16 -0
  165. package/dist/commonjs/api/options.js.map +7 -0
  166. package/dist/commonjs/api/studentLabs/index.d.ts +3 -0
  167. package/dist/commonjs/api/studentLabs/index.js +30 -0
  168. package/dist/commonjs/api/studentLabs/index.js.map +7 -0
  169. package/dist/commonjs/api/studentLabs/operations.d.ts +14 -0
  170. package/dist/commonjs/api/studentLabs/operations.js +107 -0
  171. package/dist/commonjs/api/studentLabs/operations.js.map +7 -0
  172. package/dist/commonjs/api/studentLabs/options.d.ts +8 -0
  173. package/dist/commonjs/api/studentLabs/options.js +16 -0
  174. package/dist/commonjs/api/studentLabs/options.js.map +7 -0
  175. package/dist/commonjs/api/students/index.d.ts +3 -0
  176. package/dist/commonjs/api/students/index.js +34 -0
  177. package/dist/commonjs/api/students/index.js.map +7 -0
  178. package/dist/commonjs/api/students/operations.d.ts +22 -0
  179. package/dist/commonjs/api/students/operations.js +211 -0
  180. package/dist/commonjs/api/students/operations.js.map +7 -0
  181. package/dist/commonjs/api/students/options.d.ts +16 -0
  182. package/dist/commonjs/api/students/options.js +16 -0
  183. package/dist/commonjs/api/students/options.js.map +7 -0
  184. package/dist/commonjs/classic/grants/index.d.ts +15 -0
  185. package/dist/commonjs/classic/grants/index.js +40 -0
  186. package/dist/commonjs/classic/grants/index.js.map +7 -0
  187. package/dist/commonjs/classic/index.d.ts +7 -0
  188. package/dist/commonjs/classic/index.js +16 -0
  189. package/dist/commonjs/classic/index.js.map +7 -0
  190. package/dist/commonjs/classic/joinRequests/index.d.ts +17 -0
  191. package/dist/commonjs/classic/joinRequests/index.js +62 -0
  192. package/dist/commonjs/classic/joinRequests/index.js.map +7 -0
  193. package/dist/commonjs/classic/labs/index.d.ts +21 -0
  194. package/dist/commonjs/classic/labs/index.js +57 -0
  195. package/dist/commonjs/classic/labs/index.js.map +7 -0
  196. package/dist/commonjs/classic/operations/index.d.ts +10 -0
  197. package/dist/commonjs/classic/operations/index.js +38 -0
  198. package/dist/commonjs/classic/operations/index.js.map +7 -0
  199. package/dist/commonjs/classic/studentLabs/index.d.ts +13 -0
  200. package/dist/commonjs/classic/studentLabs/index.js +39 -0
  201. package/dist/commonjs/classic/studentLabs/index.js.map +7 -0
  202. package/dist/commonjs/classic/students/index.d.ts +17 -0
  203. package/dist/commonjs/classic/students/index.js +63 -0
  204. package/dist/commonjs/classic/students/index.js.map +7 -0
  205. package/dist/commonjs/educationManagementClient.d.ts +34 -0
  206. package/dist/commonjs/educationManagementClient.js +72 -0
  207. package/dist/commonjs/educationManagementClient.js.map +7 -0
  208. package/dist/commonjs/index.d.ts +18 -0
  209. package/dist/commonjs/index.js +57 -0
  210. package/dist/commonjs/index.js.map +7 -0
  211. package/dist/commonjs/logger.d.ts +2 -0
  212. package/dist/commonjs/logger.js +29 -0
  213. package/dist/commonjs/logger.js.map +7 -0
  214. package/dist/commonjs/models/index.d.ts +3 -0
  215. package/dist/commonjs/models/index.js +46 -0
  216. package/dist/commonjs/models/index.js.map +7 -0
  217. package/dist/commonjs/models/models.d.ts +597 -0
  218. package/dist/commonjs/models/models.js +610 -0
  219. package/dist/commonjs/models/models.js.map +7 -0
  220. package/dist/commonjs/package.json +3 -0
  221. package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
  222. package/dist/commonjs/static-helpers/cloudSettingHelpers.js +52 -0
  223. package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +7 -0
  224. package/dist/commonjs/static-helpers/pagingHelpers.d.ts +74 -0
  225. package/dist/commonjs/static-helpers/pagingHelpers.js +143 -0
  226. package/dist/commonjs/static-helpers/pagingHelpers.js.map +7 -0
  227. package/dist/commonjs/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
  228. package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js +35 -0
  229. package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js.map +7 -0
  230. package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
  231. package/dist/commonjs/static-helpers/urlTemplate.js +197 -0
  232. package/dist/commonjs/static-helpers/urlTemplate.js.map +7 -0
  233. package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
  234. package/dist/esm/api/educationManagementContext.d.ts +20 -0
  235. package/dist/esm/api/educationManagementContext.js +26 -0
  236. package/dist/esm/api/educationManagementContext.js.map +1 -0
  237. package/dist/esm/api/grants/index.d.ts +3 -0
  238. package/dist/esm/api/grants/index.js +4 -0
  239. package/dist/esm/api/grants/index.js.map +1 -0
  240. package/dist/esm/api/grants/operations.d.ts +18 -0
  241. package/dist/esm/api/grants/operations.js +95 -0
  242. package/dist/esm/api/grants/operations.js.map +1 -0
  243. package/dist/esm/api/grants/options.d.ts +17 -0
  244. package/dist/esm/api/grants/options.js +4 -0
  245. package/dist/esm/api/grants/options.js.map +1 -0
  246. package/dist/esm/api/index.d.ts +5 -0
  247. package/dist/esm/api/index.js +5 -0
  248. package/dist/esm/api/index.js.map +1 -0
  249. package/dist/esm/api/joinRequests/index.d.ts +3 -0
  250. package/dist/esm/api/joinRequests/index.js +4 -0
  251. package/dist/esm/api/joinRequests/index.js.map +1 -0
  252. package/dist/esm/api/joinRequests/operations.d.ts +22 -0
  253. package/dist/esm/api/joinRequests/operations.js +120 -0
  254. package/dist/esm/api/joinRequests/operations.js.map +1 -0
  255. package/dist/esm/api/joinRequests/options.d.ts +16 -0
  256. package/dist/esm/api/joinRequests/options.js +4 -0
  257. package/dist/esm/api/joinRequests/options.js.map +1 -0
  258. package/dist/esm/api/labs/index.d.ts +3 -0
  259. package/dist/esm/api/labs/index.js +4 -0
  260. package/dist/esm/api/labs/index.js.map +1 -0
  261. package/dist/esm/api/labs/operations.d.ts +30 -0
  262. package/dist/esm/api/labs/operations.js +186 -0
  263. package/dist/esm/api/labs/operations.js.map +1 -0
  264. package/dist/esm/api/labs/options.d.ts +30 -0
  265. package/dist/esm/api/labs/options.js +4 -0
  266. package/dist/esm/api/labs/options.js.map +1 -0
  267. package/dist/esm/api/operations/index.d.ts +3 -0
  268. package/dist/esm/api/operations/index.js +4 -0
  269. package/dist/esm/api/operations/index.js.map +1 -0
  270. package/dist/esm/api/operations/operations.d.ts +9 -0
  271. package/dist/esm/api/operations/operations.js +31 -0
  272. package/dist/esm/api/operations/operations.js.map +1 -0
  273. package/dist/esm/api/operations/options.d.ts +5 -0
  274. package/dist/esm/api/operations/options.js +4 -0
  275. package/dist/esm/api/operations/options.js.map +1 -0
  276. package/dist/esm/api/operations.d.ts +9 -0
  277. package/dist/esm/api/operations.js +32 -0
  278. package/dist/esm/api/operations.js.map +1 -0
  279. package/dist/esm/api/options.d.ts +5 -0
  280. package/dist/esm/api/options.js +4 -0
  281. package/dist/esm/api/options.js.map +1 -0
  282. package/dist/esm/api/studentLabs/index.d.ts +3 -0
  283. package/dist/esm/api/studentLabs/index.js +4 -0
  284. package/dist/esm/api/studentLabs/index.js.map +1 -0
  285. package/dist/esm/api/studentLabs/operations.d.ts +14 -0
  286. package/dist/esm/api/studentLabs/operations.js +61 -0
  287. package/dist/esm/api/studentLabs/operations.js.map +1 -0
  288. package/dist/esm/api/studentLabs/options.d.ts +8 -0
  289. package/dist/esm/api/studentLabs/options.js +4 -0
  290. package/dist/esm/api/studentLabs/options.js.map +1 -0
  291. package/dist/esm/api/students/index.d.ts +3 -0
  292. package/dist/esm/api/students/index.js +4 -0
  293. package/dist/esm/api/students/index.js.map +1 -0
  294. package/dist/esm/api/students/operations.d.ts +22 -0
  295. package/dist/esm/api/students/operations.js +125 -0
  296. package/dist/esm/api/students/operations.js.map +1 -0
  297. package/dist/esm/api/students/options.d.ts +16 -0
  298. package/dist/esm/api/students/options.js +4 -0
  299. package/dist/esm/api/students/options.js.map +1 -0
  300. package/dist/esm/classic/grants/index.d.ts +15 -0
  301. package/dist/esm/classic/grants/index.js +16 -0
  302. package/dist/esm/classic/grants/index.js.map +1 -0
  303. package/dist/esm/classic/index.d.ts +7 -0
  304. package/dist/esm/classic/index.js +4 -0
  305. package/dist/esm/classic/index.js.map +1 -0
  306. package/dist/esm/classic/joinRequests/index.d.ts +17 -0
  307. package/dist/esm/classic/joinRequests/index.js +17 -0
  308. package/dist/esm/classic/joinRequests/index.js.map +1 -0
  309. package/dist/esm/classic/labs/index.d.ts +21 -0
  310. package/dist/esm/classic/labs/index.js +19 -0
  311. package/dist/esm/classic/labs/index.js.map +1 -0
  312. package/dist/esm/classic/operations/index.d.ts +10 -0
  313. package/dist/esm/classic/operations/index.js +14 -0
  314. package/dist/esm/classic/operations/index.js.map +1 -0
  315. package/dist/esm/classic/studentLabs/index.d.ts +13 -0
  316. package/dist/esm/classic/studentLabs/index.js +15 -0
  317. package/dist/esm/classic/studentLabs/index.js.map +1 -0
  318. package/dist/esm/classic/students/index.d.ts +17 -0
  319. package/dist/esm/classic/students/index.js +17 -0
  320. package/dist/esm/classic/students/index.js.map +1 -0
  321. package/dist/esm/educationManagementClient.d.ts +34 -0
  322. package/dist/esm/educationManagementClient.js +50 -0
  323. package/dist/esm/educationManagementClient.js.map +1 -0
  324. package/dist/esm/index.d.ts +18 -0
  325. package/dist/esm/index.js +8 -0
  326. package/dist/esm/index.js.map +1 -0
  327. package/dist/esm/logger.d.ts +2 -0
  328. package/dist/esm/logger.js +5 -0
  329. package/dist/esm/logger.js.map +1 -0
  330. package/dist/esm/models/index.d.ts +3 -0
  331. package/dist/esm/models/index.js +4 -0
  332. package/dist/esm/models/index.js.map +1 -0
  333. package/dist/esm/models/models.d.ts +597 -0
  334. package/dist/esm/models/models.js +569 -0
  335. package/dist/esm/models/models.js.map +1 -0
  336. package/dist/esm/package.json +3 -0
  337. package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +22 -0
  338. package/dist/esm/static-helpers/cloudSettingHelpers.js +38 -0
  339. package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
  340. package/dist/esm/static-helpers/pagingHelpers.d.ts +74 -0
  341. package/dist/esm/static-helpers/pagingHelpers.js +143 -0
  342. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
  343. package/dist/esm/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
  344. package/dist/esm/static-helpers/serialization/check-prop-undefined.js +17 -0
  345. package/dist/esm/static-helpers/serialization/check-prop-undefined.js.map +1 -0
  346. package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
  347. package/dist/esm/static-helpers/urlTemplate.js +200 -0
  348. package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
  349. package/package.json +205 -88
  350. package/CHANGELOG.md +0 -30
  351. package/dist/index.js +0 -2623
  352. package/dist/index.js.map +0 -1
  353. package/dist/index.min.js +0 -1
  354. package/dist/index.min.js.map +0 -1
  355. package/dist-esm/samples-dev/grantsGetSample.d.ts +0 -2
  356. package/dist-esm/samples-dev/grantsGetSample.d.ts.map +0 -1
  357. package/dist-esm/samples-dev/grantsGetSample.js +0 -58
  358. package/dist-esm/samples-dev/grantsGetSample.js.map +0 -1
  359. package/dist-esm/samples-dev/grantsListAllSample.d.ts +0 -2
  360. package/dist-esm/samples-dev/grantsListAllSample.d.ts.map +0 -1
  361. package/dist-esm/samples-dev/grantsListAllSample.js +0 -82
  362. package/dist-esm/samples-dev/grantsListAllSample.js.map +0 -1
  363. package/dist-esm/samples-dev/grantsListSample.d.ts +0 -2
  364. package/dist-esm/samples-dev/grantsListSample.d.ts.map +0 -1
  365. package/dist-esm/samples-dev/grantsListSample.js +0 -86
  366. package/dist-esm/samples-dev/grantsListSample.js.map +0 -1
  367. package/dist-esm/samples-dev/joinRequestsApproveSample.d.ts +0 -2
  368. package/dist-esm/samples-dev/joinRequestsApproveSample.d.ts.map +0 -1
  369. package/dist-esm/samples-dev/joinRequestsApproveSample.js +0 -39
  370. package/dist-esm/samples-dev/joinRequestsApproveSample.js.map +0 -1
  371. package/dist-esm/samples-dev/joinRequestsDenySample.d.ts +0 -2
  372. package/dist-esm/samples-dev/joinRequestsDenySample.d.ts.map +0 -1
  373. package/dist-esm/samples-dev/joinRequestsDenySample.js +0 -39
  374. package/dist-esm/samples-dev/joinRequestsDenySample.js.map +0 -1
  375. package/dist-esm/samples-dev/joinRequestsGetSample.d.ts +0 -2
  376. package/dist-esm/samples-dev/joinRequestsGetSample.d.ts.map +0 -1
  377. package/dist-esm/samples-dev/joinRequestsGetSample.js +0 -39
  378. package/dist-esm/samples-dev/joinRequestsGetSample.js.map +0 -1
  379. package/dist-esm/samples-dev/joinRequestsListSample.d.ts +0 -2
  380. package/dist-esm/samples-dev/joinRequestsListSample.d.ts.map +0 -1
  381. package/dist-esm/samples-dev/joinRequestsListSample.js +0 -54
  382. package/dist-esm/samples-dev/joinRequestsListSample.js.map +0 -1
  383. package/dist-esm/samples-dev/labsCreateOrUpdateSample.d.ts +0 -2
  384. package/dist-esm/samples-dev/labsCreateOrUpdateSample.d.ts.map +0 -1
  385. package/dist-esm/samples-dev/labsCreateOrUpdateSample.js +0 -44
  386. package/dist-esm/samples-dev/labsCreateOrUpdateSample.js.map +0 -1
  387. package/dist-esm/samples-dev/labsDeleteSample.d.ts +0 -2
  388. package/dist-esm/samples-dev/labsDeleteSample.d.ts.map +0 -1
  389. package/dist-esm/samples-dev/labsDeleteSample.js +0 -38
  390. package/dist-esm/samples-dev/labsDeleteSample.js.map +0 -1
  391. package/dist-esm/samples-dev/labsGenerateInviteCodeSample.d.ts +0 -2
  392. package/dist-esm/samples-dev/labsGenerateInviteCodeSample.d.ts.map +0 -1
  393. package/dist-esm/samples-dev/labsGenerateInviteCodeSample.js +0 -39
  394. package/dist-esm/samples-dev/labsGenerateInviteCodeSample.js.map +0 -1
  395. package/dist-esm/samples-dev/labsGetSample.d.ts +0 -2
  396. package/dist-esm/samples-dev/labsGetSample.d.ts.map +0 -1
  397. package/dist-esm/samples-dev/labsGetSample.js +0 -60
  398. package/dist-esm/samples-dev/labsGetSample.js.map +0 -1
  399. package/dist-esm/samples-dev/labsListAllSample.d.ts +0 -2
  400. package/dist-esm/samples-dev/labsListAllSample.d.ts.map +0 -1
  401. package/dist-esm/samples-dev/labsListAllSample.js +0 -86
  402. package/dist-esm/samples-dev/labsListAllSample.js.map +0 -1
  403. package/dist-esm/samples-dev/labsListSample.d.ts +0 -2
  404. package/dist-esm/samples-dev/labsListSample.d.ts.map +0 -1
  405. package/dist-esm/samples-dev/labsListSample.js +0 -88
  406. package/dist-esm/samples-dev/labsListSample.js.map +0 -1
  407. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  408. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  409. package/dist-esm/samples-dev/operationsListSample.js +0 -35
  410. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  411. package/dist-esm/samples-dev/redeemInvitationCodeSample.d.ts +0 -2
  412. package/dist-esm/samples-dev/redeemInvitationCodeSample.d.ts.map +0 -1
  413. package/dist-esm/samples-dev/redeemInvitationCodeSample.js +0 -40
  414. package/dist-esm/samples-dev/redeemInvitationCodeSample.js.map +0 -1
  415. package/dist-esm/samples-dev/studentLabsGetSample.d.ts +0 -2
  416. package/dist-esm/samples-dev/studentLabsGetSample.d.ts.map +0 -1
  417. package/dist-esm/samples-dev/studentLabsGetSample.js +0 -36
  418. package/dist-esm/samples-dev/studentLabsGetSample.js.map +0 -1
  419. package/dist-esm/samples-dev/studentLabsListAllSample.d.ts +0 -2
  420. package/dist-esm/samples-dev/studentLabsListAllSample.d.ts.map +0 -1
  421. package/dist-esm/samples-dev/studentLabsListAllSample.js +0 -49
  422. package/dist-esm/samples-dev/studentLabsListAllSample.js.map +0 -1
  423. package/dist-esm/samples-dev/studentsCreateOrUpdateSample.d.ts +0 -2
  424. package/dist-esm/samples-dev/studentsCreateOrUpdateSample.d.ts.map +0 -1
  425. package/dist-esm/samples-dev/studentsCreateOrUpdateSample.js +0 -47
  426. package/dist-esm/samples-dev/studentsCreateOrUpdateSample.js.map +0 -1
  427. package/dist-esm/samples-dev/studentsDeleteSample.d.ts +0 -2
  428. package/dist-esm/samples-dev/studentsDeleteSample.d.ts.map +0 -1
  429. package/dist-esm/samples-dev/studentsDeleteSample.js +0 -39
  430. package/dist-esm/samples-dev/studentsDeleteSample.js.map +0 -1
  431. package/dist-esm/samples-dev/studentsGetSample.d.ts +0 -2
  432. package/dist-esm/samples-dev/studentsGetSample.d.ts.map +0 -1
  433. package/dist-esm/samples-dev/studentsGetSample.js +0 -39
  434. package/dist-esm/samples-dev/studentsGetSample.js.map +0 -1
  435. package/dist-esm/samples-dev/studentsListSample.d.ts +0 -2
  436. package/dist-esm/samples-dev/studentsListSample.d.ts.map +0 -1
  437. package/dist-esm/samples-dev/studentsListSample.js +0 -52
  438. package/dist-esm/samples-dev/studentsListSample.js.map +0 -1
  439. package/dist-esm/src/educationManagementClient.d.ts +0 -29
  440. package/dist-esm/src/educationManagementClient.d.ts.map +0 -1
  441. package/dist-esm/src/educationManagementClient.js +0 -127
  442. package/dist-esm/src/educationManagementClient.js.map +0 -1
  443. package/dist-esm/src/index.d.ts +0 -6
  444. package/dist-esm/src/index.d.ts.map +0 -1
  445. package/dist-esm/src/index.js +0 -13
  446. package/dist-esm/src/index.js.map +0 -1
  447. package/dist-esm/src/models/index.d.ts +0 -685
  448. package/dist-esm/src/models/index.d.ts.map +0 -1
  449. package/dist-esm/src/models/index.js +0 -92
  450. package/dist-esm/src/models/index.js.map +0 -1
  451. package/dist-esm/src/models/mappers.d.ts +0 -22
  452. package/dist-esm/src/models/mappers.d.ts.map +0 -1
  453. package/dist-esm/src/models/mappers.js +0 -702
  454. package/dist-esm/src/models/mappers.js.map +0 -1
  455. package/dist-esm/src/models/parameters.d.ts +0 -22
  456. package/dist-esm/src/models/parameters.d.ts.map +0 -1
  457. package/dist-esm/src/models/parameters.js +0 -185
  458. package/dist-esm/src/models/parameters.js.map +0 -1
  459. package/dist-esm/src/operations/grants.d.ts +0 -63
  460. package/dist-esm/src/operations/grants.d.ts.map +0 -1
  461. package/dist-esm/src/operations/grants.js +0 -280
  462. package/dist-esm/src/operations/grants.js.map +0 -1
  463. package/dist-esm/src/operations/index.d.ts +0 -7
  464. package/dist-esm/src/operations/index.d.ts.map +0 -1
  465. package/dist-esm/src/operations/index.js +0 -14
  466. package/dist-esm/src/operations/index.js.map +0 -1
  467. package/dist-esm/src/operations/joinRequests.d.ts +0 -68
  468. package/dist-esm/src/operations/joinRequests.d.ts.map +0 -1
  469. package/dist-esm/src/operations/joinRequests.js +0 -270
  470. package/dist-esm/src/operations/joinRequests.js.map +0 -1
  471. package/dist-esm/src/operations/labs.d.ts +0 -103
  472. package/dist-esm/src/operations/labs.d.ts.map +0 -1
  473. package/dist-esm/src/operations/labs.js +0 -432
  474. package/dist-esm/src/operations/labs.js.map +0 -1
  475. package/dist-esm/src/operations/operations.d.ts +0 -18
  476. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  477. package/dist-esm/src/operations/operations.js +0 -46
  478. package/dist-esm/src/operations/operations.js.map +0 -1
  479. package/dist-esm/src/operations/studentLabs.d.ts +0 -38
  480. package/dist-esm/src/operations/studentLabs.d.ts.map +0 -1
  481. package/dist-esm/src/operations/studentLabs.js +0 -155
  482. package/dist-esm/src/operations/studentLabs.js.map +0 -1
  483. package/dist-esm/src/operations/students.d.ts +0 -70
  484. package/dist-esm/src/operations/students.d.ts.map +0 -1
  485. package/dist-esm/src/operations/students.js +0 -281
  486. package/dist-esm/src/operations/students.js.map +0 -1
  487. package/dist-esm/src/operationsInterfaces/grants.d.ts +0 -25
  488. package/dist-esm/src/operationsInterfaces/grants.d.ts.map +0 -1
  489. package/dist-esm/src/operationsInterfaces/grants.js +0 -9
  490. package/dist-esm/src/operationsInterfaces/grants.js.map +0 -1
  491. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -7
  492. package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
  493. package/dist-esm/src/operationsInterfaces/index.js +0 -14
  494. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  495. package/dist-esm/src/operationsInterfaces/joinRequests.d.ts +0 -41
  496. package/dist-esm/src/operationsInterfaces/joinRequests.d.ts.map +0 -1
  497. package/dist-esm/src/operationsInterfaces/joinRequests.js +0 -9
  498. package/dist-esm/src/operationsInterfaces/joinRequests.js.map +0 -1
  499. package/dist-esm/src/operationsInterfaces/labs.d.ts +0 -58
  500. package/dist-esm/src/operationsInterfaces/labs.d.ts.map +0 -1
  501. package/dist-esm/src/operationsInterfaces/labs.js +0 -9
  502. package/dist-esm/src/operationsInterfaces/labs.js.map +0 -1
  503. package/dist-esm/src/operationsInterfaces/operations.d.ts +0 -10
  504. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +0 -1
  505. package/dist-esm/src/operationsInterfaces/operations.js +0 -9
  506. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  507. package/dist-esm/src/operationsInterfaces/studentLabs.d.ts +0 -17
  508. package/dist-esm/src/operationsInterfaces/studentLabs.d.ts.map +0 -1
  509. package/dist-esm/src/operationsInterfaces/studentLabs.js +0 -9
  510. package/dist-esm/src/operationsInterfaces/studentLabs.js.map +0 -1
  511. package/dist-esm/src/operationsInterfaces/students.d.ts +0 -43
  512. package/dist-esm/src/operationsInterfaces/students.d.ts.map +0 -1
  513. package/dist-esm/src/operationsInterfaces/students.js +0 -9
  514. package/dist-esm/src/operationsInterfaces/students.js.map +0 -1
  515. package/dist-esm/src/pagingHelper.d.ts +0 -13
  516. package/dist-esm/src/pagingHelper.d.ts.map +0 -1
  517. package/dist-esm/src/pagingHelper.js +0 -32
  518. package/dist-esm/src/pagingHelper.js.map +0 -1
  519. package/dist-esm/test/sampleTest.d.ts +0 -2
  520. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  521. package/dist-esm/test/sampleTest.js +0 -38
  522. package/dist-esm/test/sampleTest.js.map +0 -1
  523. package/review/arm-education.api.md +0 -529
  524. package/rollup.config.js +0 -122
  525. package/src/educationManagementClient.ts +0 -196
  526. package/src/index.ts +0 -13
  527. package/src/models/index.ts +0 -786
  528. package/src/models/mappers.ts +0 -775
  529. package/src/models/parameters.ts +0 -215
  530. package/src/operations/grants.ts +0 -354
  531. package/src/operations/index.ts +0 -14
  532. package/src/operations/joinRequests.ts +0 -371
  533. package/src/operations/labs.ts +0 -591
  534. package/src/operations/operations.ts +0 -59
  535. package/src/operations/studentLabs.ts +0 -182
  536. package/src/operations/students.ts +0 -384
  537. package/src/operationsInterfaces/grants.ts +0 -50
  538. package/src/operationsInterfaces/index.ts +0 -14
  539. package/src/operationsInterfaces/joinRequests.ts +0 -80
  540. package/src/operationsInterfaces/labs.ts +0 -110
  541. package/src/operationsInterfaces/operations.ts +0 -21
  542. package/src/operationsInterfaces/studentLabs.ts +0 -36
  543. package/src/operationsInterfaces/students.ts +0 -84
  544. package/src/pagingHelper.ts +0 -39
  545. package/tsconfig.json +0 -33
  546. package/types/arm-education.d.ts +0 -995
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
- The MIT License (MIT)
1
+ Copyright (c) Microsoft Corporation.
2
2
 
3
- Copyright (c) 2023 Microsoft
3
+ MIT License
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -12,7 +12,7 @@ furnished to do so, subject to the following conditions:
12
12
  The above copyright notice and this permission notice shall be included in all
13
13
  copies or substantial portions of the Software.
14
14
 
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
16
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
17
  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
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://docs.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,24 +46,29 @@ 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
- For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
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).
51
+
52
+ Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
53
+
54
+ ```ts snippet:ReadmeSampleCreateClient_Node
55
+ import { EducationManagementClient } from "@azure/arm-education";
56
+ import { DefaultAzureCredential } from "@azure/identity";
57
+
58
+ const client = new EducationManagementClient(new DefaultAzureCredential());
59
+ ```
50
60
 
51
- ```javascript
52
- const { EducationManagementClient } = require("@azure/arm-education");
53
- const { DefaultAzureCredential } = require("@azure/identity");
54
- // For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
61
+ For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
55
62
 
56
- const subscriptionId = "00000000-0000-0000-0000-000000000000";
57
- const client = new EducationManagementClient(new DefaultAzureCredential(), subscriptionId);
63
+ ```ts snippet:ReadmeSampleCreateClient_Browser
64
+ import { InteractiveBrowserCredential } from "@azure/identity";
65
+ import { EducationManagementClient } from "@azure/arm-education";
58
66
 
59
- // For client-side applications running in the browser, use this code instead:
60
- // const credential = new InteractiveBrowserCredential({
61
- // tenantId: "<YOUR_TENANT_ID>",
62
- // clientId: "<YOUR_CLIENT_ID>"
63
- // });
64
- // const client = new EducationManagementClient(credential, subscriptionId);
67
+ const credential = new InteractiveBrowserCredential({
68
+ tenantId: "<YOUR_TENANT_ID>",
69
+ clientId: "<YOUR_CLIENT_ID>",
70
+ });
71
+ const client = new EducationManagementClient(credential);
65
72
  ```
66
73
 
67
74
 
@@ -80,8 +87,9 @@ To use this client library in the browser, first you need to use a bundler. For
80
87
 
81
88
  Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
82
89
 
83
- ```javascript
84
- const { setLogLevel } = require("@azure/logger");
90
+ ```ts snippet:SetLogLevel
91
+ import { setLogLevel } from "@azure/logger";
92
+
85
93
  setLogLevel("info");
86
94
  ```
87
95
 
@@ -89,7 +97,7 @@ For more detailed instructions on how to enable logs, you can look at the [@azur
89
97
 
90
98
  ## Next steps
91
99
 
92
- 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.
93
101
 
94
102
  ## Contributing
95
103
 
@@ -99,10 +107,6 @@ If you'd like to contribute to this library, please read the [contributing guide
99
107
 
100
108
  - [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
101
109
 
102
- ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Feducation%2Farm-education%2FREADME.png)
103
-
104
- [azure_cli]: https://docs.microsoft.com/cli/azure
105
- [azure_sub]: https://azure.microsoft.com/free/
106
110
  [azure_sub]: https://azure.microsoft.com/free/
107
111
  [azure_portal]: https://portal.azure.com
108
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,M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C,KAAK,CAAC,OAAO,GAAG,6BAA6B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAE3D,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,wBAAwB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC/C,CAAC;AAED,mGAAmG;AACnG,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,kBAA0B,EAC1B,kBAA0B,EAC1B,UAAmC,EAAE,cAAc,EAAE,EAAE,EAAE;IAEzD,MAAM,MAAM,GAAG,MAAM,QAAQ,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,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAOxE,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,SAAS,CACvB,OAAe,EACf,kBAA0B,EAC1B,kBAA0B,EAC1B,kBAA0B,EAC1B,eAAuB,EACvB,UAA0C,EAAE,cAAc,EAAE,EAAE,EAAE;IAEhE,MAAM,IAAI,GAAG,iBAAiB,CAC5B,4OAA4O,EAC5O;QACE,kBAAkB,EAAE,kBAAkB;QACtC,kBAAkB,EAAE,kBAAkB;QACtC,kBAAkB,EAAE,kBAAkB;QACtC,eAAe,EAAE,eAAe;QAChC,eAAe,EAAE,OAAO,CAAC,UAAU,IAAI,oBAAoB;KAC5D,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,GAAG,mCAAmC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AACtF,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,MAA6B;IAClE,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,K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,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC;QAC5B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO,EAAE;KAC5E,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,MAA6B;IACjE,MAAM,gBAAgB,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