@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.
- package/LICENSE +1 -1
- package/README.md +11 -16
- package/dist/browser/api/educationManagementContext.d.ts +20 -0
- package/dist/browser/api/educationManagementContext.js +26 -0
- package/dist/browser/api/educationManagementContext.js.map +1 -0
- package/dist/browser/api/grants/index.d.ts +3 -0
- package/dist/browser/api/grants/index.js +4 -0
- package/dist/browser/api/grants/index.js.map +1 -0
- package/dist/browser/api/grants/operations.d.ts +18 -0
- package/dist/browser/api/grants/operations.js +95 -0
- package/dist/browser/api/grants/operations.js.map +1 -0
- package/dist/browser/api/grants/options.d.ts +17 -0
- package/dist/browser/api/grants/options.js +4 -0
- package/dist/browser/api/grants/options.js.map +1 -0
- package/dist/browser/api/index.d.ts +5 -0
- package/dist/browser/api/index.js +5 -0
- package/dist/browser/api/index.js.map +1 -0
- package/dist/browser/api/joinRequests/index.d.ts +3 -0
- package/dist/browser/api/joinRequests/index.js +4 -0
- package/dist/browser/api/joinRequests/index.js.map +1 -0
- package/dist/browser/api/joinRequests/operations.d.ts +22 -0
- package/dist/browser/api/joinRequests/operations.js +120 -0
- package/dist/browser/api/joinRequests/operations.js.map +1 -0
- package/dist/browser/api/joinRequests/options.d.ts +16 -0
- package/dist/browser/api/joinRequests/options.js +4 -0
- package/dist/browser/api/joinRequests/options.js.map +1 -0
- package/dist/browser/api/labs/index.d.ts +3 -0
- package/dist/browser/api/labs/index.js +4 -0
- package/dist/browser/api/labs/index.js.map +1 -0
- package/dist/browser/api/labs/operations.d.ts +30 -0
- package/dist/browser/api/labs/operations.js +186 -0
- package/dist/browser/api/labs/operations.js.map +1 -0
- package/dist/browser/api/labs/options.d.ts +30 -0
- package/dist/browser/api/labs/options.js +4 -0
- package/dist/browser/api/labs/options.js.map +1 -0
- package/dist/browser/api/operations/index.d.ts +3 -0
- package/dist/browser/api/operations/index.js +4 -0
- package/dist/browser/api/operations/index.js.map +1 -0
- package/dist/browser/api/operations/operations.d.ts +9 -0
- package/dist/browser/api/operations/operations.js +31 -0
- package/dist/browser/api/operations/operations.js.map +1 -0
- package/dist/browser/api/operations/options.d.ts +5 -0
- package/dist/browser/api/operations/options.js +4 -0
- package/dist/browser/api/operations/options.js.map +1 -0
- package/dist/browser/api/operations.d.ts +9 -0
- package/dist/browser/api/operations.js +32 -0
- package/dist/browser/api/operations.js.map +1 -0
- package/dist/browser/api/options.d.ts +5 -0
- package/dist/browser/api/options.js +4 -0
- package/dist/browser/api/options.js.map +1 -0
- package/dist/browser/api/studentLabs/index.d.ts +3 -0
- package/dist/browser/api/studentLabs/index.js +4 -0
- package/dist/browser/api/studentLabs/index.js.map +1 -0
- package/dist/browser/api/studentLabs/operations.d.ts +14 -0
- package/dist/browser/api/studentLabs/operations.js +61 -0
- package/dist/browser/api/studentLabs/operations.js.map +1 -0
- package/dist/browser/api/studentLabs/options.d.ts +8 -0
- package/dist/browser/api/studentLabs/options.js +4 -0
- package/dist/browser/api/studentLabs/options.js.map +1 -0
- package/dist/browser/api/students/index.d.ts +3 -0
- package/dist/browser/api/students/index.js +4 -0
- package/dist/browser/api/students/index.js.map +1 -0
- package/dist/browser/api/students/operations.d.ts +22 -0
- package/dist/browser/api/students/operations.js +125 -0
- package/dist/browser/api/students/operations.js.map +1 -0
- package/dist/browser/api/students/options.d.ts +16 -0
- package/dist/browser/api/students/options.js +4 -0
- package/dist/browser/api/students/options.js.map +1 -0
- package/dist/browser/classic/grants/index.d.ts +15 -0
- package/dist/browser/classic/grants/index.js +16 -0
- package/dist/browser/classic/grants/index.js.map +1 -0
- package/dist/browser/classic/index.d.ts +7 -0
- package/dist/browser/classic/index.js +4 -0
- package/dist/browser/classic/index.js.map +1 -0
- package/dist/browser/classic/joinRequests/index.d.ts +17 -0
- package/dist/browser/classic/joinRequests/index.js +17 -0
- package/dist/browser/classic/joinRequests/index.js.map +1 -0
- package/dist/browser/classic/labs/index.d.ts +21 -0
- package/dist/browser/classic/labs/index.js +19 -0
- package/dist/browser/classic/labs/index.js.map +1 -0
- package/dist/browser/classic/operations/index.d.ts +10 -0
- package/dist/browser/classic/operations/index.js +14 -0
- package/dist/browser/classic/operations/index.js.map +1 -0
- package/dist/browser/classic/studentLabs/index.d.ts +13 -0
- package/dist/browser/classic/studentLabs/index.js +15 -0
- package/dist/browser/classic/studentLabs/index.js.map +1 -0
- package/dist/browser/classic/students/index.d.ts +17 -0
- package/dist/browser/classic/students/index.js +17 -0
- package/dist/browser/classic/students/index.js.map +1 -0
- package/dist/browser/educationManagementClient.d.ts +31 -26
- package/dist/browser/educationManagementClient.js +44 -131
- package/dist/browser/educationManagementClient.js.map +1 -1
- package/dist/browser/index.d.ts +16 -3
- package/dist/browser/index.js +6 -11
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/logger.d.ts +2 -0
- package/dist/browser/logger.js +5 -0
- package/dist/browser/logger.js.map +1 -0
- package/dist/browser/models/index.d.ts +2 -684
- package/dist/browser/models/index.js +3 -91
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +597 -0
- package/dist/browser/models/models.js +569 -0
- package/dist/browser/models/models.js.map +1 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js +38 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/browser/static-helpers/pagingHelpers.js +143 -0
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
- package/dist/browser/static-helpers/serialization/check-prop-undefined.js +17 -0
- package/dist/browser/static-helpers/serialization/check-prop-undefined.js.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/browser/static-helpers/urlTemplate.js +200 -0
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/api/educationManagementContext.d.ts +20 -0
- package/dist/commonjs/api/educationManagementContext.js +47 -0
- package/dist/commonjs/api/educationManagementContext.js.map +7 -0
- package/dist/commonjs/api/grants/index.d.ts +3 -0
- package/dist/commonjs/api/grants/index.js +32 -0
- package/dist/commonjs/api/grants/index.js.map +7 -0
- package/dist/commonjs/api/grants/operations.d.ts +18 -0
- package/dist/commonjs/api/grants/operations.js +156 -0
- package/dist/commonjs/api/grants/operations.js.map +7 -0
- package/dist/commonjs/api/grants/options.d.ts +17 -0
- package/dist/commonjs/api/grants/options.js +16 -0
- package/dist/commonjs/api/grants/options.js.map +7 -0
- package/dist/commonjs/api/index.d.ts +5 -0
- package/dist/commonjs/api/index.js +31 -0
- package/dist/commonjs/api/index.js.map +7 -0
- package/dist/commonjs/api/joinRequests/index.d.ts +3 -0
- package/dist/commonjs/api/joinRequests/index.js +34 -0
- package/dist/commonjs/api/joinRequests/index.js.map +7 -0
- package/dist/commonjs/api/joinRequests/operations.d.ts +22 -0
- package/dist/commonjs/api/joinRequests/operations.js +205 -0
- package/dist/commonjs/api/joinRequests/operations.js.map +7 -0
- package/dist/commonjs/api/joinRequests/options.d.ts +16 -0
- package/dist/commonjs/api/joinRequests/options.js +16 -0
- package/dist/commonjs/api/joinRequests/options.js.map +7 -0
- package/dist/commonjs/api/labs/index.d.ts +3 -0
- package/dist/commonjs/api/labs/index.js +38 -0
- package/dist/commonjs/api/labs/index.js.map +7 -0
- package/dist/commonjs/api/labs/operations.d.ts +30 -0
- package/dist/commonjs/api/labs/operations.js +300 -0
- package/dist/commonjs/api/labs/operations.js.map +7 -0
- package/dist/commonjs/api/labs/options.d.ts +30 -0
- package/dist/commonjs/api/labs/options.js +16 -0
- package/dist/commonjs/api/labs/options.js.map +7 -0
- package/dist/commonjs/api/operations/index.d.ts +3 -0
- package/dist/commonjs/api/operations/index.js +28 -0
- package/dist/commonjs/api/operations/index.js.map +7 -0
- package/dist/commonjs/api/operations/operations.d.ts +9 -0
- package/dist/commonjs/api/operations/operations.js +62 -0
- package/dist/commonjs/api/operations/operations.js.map +7 -0
- package/dist/commonjs/api/operations/options.d.ts +5 -0
- package/dist/commonjs/api/operations/options.js +16 -0
- package/dist/commonjs/api/operations/options.js.map +7 -0
- package/dist/commonjs/api/operations.d.ts +9 -0
- package/dist/commonjs/api/operations.js +63 -0
- package/dist/commonjs/api/operations.js.map +7 -0
- package/dist/commonjs/api/options.d.ts +5 -0
- package/dist/commonjs/api/options.js +16 -0
- package/dist/commonjs/api/options.js.map +7 -0
- package/dist/commonjs/api/studentLabs/index.d.ts +3 -0
- package/dist/commonjs/api/studentLabs/index.js +30 -0
- package/dist/commonjs/api/studentLabs/index.js.map +7 -0
- package/dist/commonjs/api/studentLabs/operations.d.ts +14 -0
- package/dist/commonjs/api/studentLabs/operations.js +107 -0
- package/dist/commonjs/api/studentLabs/operations.js.map +7 -0
- package/dist/commonjs/api/studentLabs/options.d.ts +8 -0
- package/dist/commonjs/api/studentLabs/options.js +16 -0
- package/dist/commonjs/api/studentLabs/options.js.map +7 -0
- package/dist/commonjs/api/students/index.d.ts +3 -0
- package/dist/commonjs/api/students/index.js +34 -0
- package/dist/commonjs/api/students/index.js.map +7 -0
- package/dist/commonjs/api/students/operations.d.ts +22 -0
- package/dist/commonjs/api/students/operations.js +211 -0
- package/dist/commonjs/api/students/operations.js.map +7 -0
- package/dist/commonjs/api/students/options.d.ts +16 -0
- package/dist/commonjs/api/students/options.js +16 -0
- package/dist/commonjs/api/students/options.js.map +7 -0
- package/dist/commonjs/classic/grants/index.d.ts +15 -0
- package/dist/commonjs/classic/grants/index.js +40 -0
- package/dist/commonjs/classic/grants/index.js.map +7 -0
- package/dist/commonjs/classic/index.d.ts +7 -0
- package/dist/commonjs/classic/index.js +16 -0
- package/dist/commonjs/classic/index.js.map +7 -0
- package/dist/commonjs/classic/joinRequests/index.d.ts +17 -0
- package/dist/commonjs/classic/joinRequests/index.js +62 -0
- package/dist/commonjs/classic/joinRequests/index.js.map +7 -0
- package/dist/commonjs/classic/labs/index.d.ts +21 -0
- package/dist/commonjs/classic/labs/index.js +57 -0
- package/dist/commonjs/classic/labs/index.js.map +7 -0
- package/dist/commonjs/classic/operations/index.d.ts +10 -0
- package/dist/commonjs/classic/operations/index.js +38 -0
- package/dist/commonjs/classic/operations/index.js.map +7 -0
- package/dist/commonjs/classic/studentLabs/index.d.ts +13 -0
- package/dist/commonjs/classic/studentLabs/index.js +39 -0
- package/dist/commonjs/classic/studentLabs/index.js.map +7 -0
- package/dist/commonjs/classic/students/index.d.ts +17 -0
- package/dist/commonjs/classic/students/index.js +63 -0
- package/dist/commonjs/classic/students/index.js.map +7 -0
- package/dist/commonjs/educationManagementClient.d.ts +31 -26
- package/dist/commonjs/educationManagementClient.js +71 -141
- package/dist/commonjs/educationManagementClient.js.map +7 -1
- package/dist/commonjs/index.d.ts +16 -3
- package/dist/commonjs/index.js +57 -19
- package/dist/commonjs/index.js.map +7 -1
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.js +29 -0
- package/dist/commonjs/logger.js.map +7 -0
- package/dist/commonjs/models/index.d.ts +2 -684
- package/dist/commonjs/models/index.js +46 -95
- package/dist/commonjs/models/index.js.map +7 -1
- package/dist/commonjs/models/models.d.ts +597 -0
- package/dist/commonjs/models/models.js +610 -0
- package/dist/commonjs/models/models.js.map +7 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js +52 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js +143 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
- package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js +35 -0
- package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js.map +7 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/commonjs/static-helpers/urlTemplate.js +197 -0
- package/dist/commonjs/static-helpers/urlTemplate.js.map +7 -0
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/api/educationManagementContext.d.ts +20 -0
- package/dist/esm/api/educationManagementContext.js +26 -0
- package/dist/esm/api/educationManagementContext.js.map +1 -0
- package/dist/esm/api/grants/index.d.ts +3 -0
- package/dist/esm/api/grants/index.js +4 -0
- package/dist/esm/api/grants/index.js.map +1 -0
- package/dist/esm/api/grants/operations.d.ts +18 -0
- package/dist/esm/api/grants/operations.js +95 -0
- package/dist/esm/api/grants/operations.js.map +1 -0
- package/dist/esm/api/grants/options.d.ts +17 -0
- package/dist/esm/api/grants/options.js +4 -0
- package/dist/esm/api/grants/options.js.map +1 -0
- package/dist/esm/api/index.d.ts +5 -0
- package/dist/esm/api/index.js +5 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/api/joinRequests/index.d.ts +3 -0
- package/dist/esm/api/joinRequests/index.js +4 -0
- package/dist/esm/api/joinRequests/index.js.map +1 -0
- package/dist/esm/api/joinRequests/operations.d.ts +22 -0
- package/dist/esm/api/joinRequests/operations.js +120 -0
- package/dist/esm/api/joinRequests/operations.js.map +1 -0
- package/dist/esm/api/joinRequests/options.d.ts +16 -0
- package/dist/esm/api/joinRequests/options.js +4 -0
- package/dist/esm/api/joinRequests/options.js.map +1 -0
- package/dist/esm/api/labs/index.d.ts +3 -0
- package/dist/esm/api/labs/index.js +4 -0
- package/dist/esm/api/labs/index.js.map +1 -0
- package/dist/esm/api/labs/operations.d.ts +30 -0
- package/dist/esm/api/labs/operations.js +186 -0
- package/dist/esm/api/labs/operations.js.map +1 -0
- package/dist/esm/api/labs/options.d.ts +30 -0
- package/dist/esm/api/labs/options.js +4 -0
- package/dist/esm/api/labs/options.js.map +1 -0
- package/dist/esm/api/operations/index.d.ts +3 -0
- package/dist/esm/api/operations/index.js +4 -0
- package/dist/esm/api/operations/index.js.map +1 -0
- package/dist/esm/api/operations/operations.d.ts +9 -0
- package/dist/esm/api/operations/operations.js +31 -0
- package/dist/esm/api/operations/operations.js.map +1 -0
- package/dist/esm/api/operations/options.d.ts +5 -0
- package/dist/esm/api/operations/options.js +4 -0
- package/dist/esm/api/operations/options.js.map +1 -0
- package/dist/esm/api/operations.d.ts +9 -0
- package/dist/esm/api/operations.js +32 -0
- package/dist/esm/api/operations.js.map +1 -0
- package/dist/esm/api/options.d.ts +5 -0
- package/dist/esm/api/options.js +4 -0
- package/dist/esm/api/options.js.map +1 -0
- package/dist/esm/api/studentLabs/index.d.ts +3 -0
- package/dist/esm/api/studentLabs/index.js +4 -0
- package/dist/esm/api/studentLabs/index.js.map +1 -0
- package/dist/esm/api/studentLabs/operations.d.ts +14 -0
- package/dist/esm/api/studentLabs/operations.js +61 -0
- package/dist/esm/api/studentLabs/operations.js.map +1 -0
- package/dist/esm/api/studentLabs/options.d.ts +8 -0
- package/dist/esm/api/studentLabs/options.js +4 -0
- package/dist/esm/api/studentLabs/options.js.map +1 -0
- package/dist/esm/api/students/index.d.ts +3 -0
- package/dist/esm/api/students/index.js +4 -0
- package/dist/esm/api/students/index.js.map +1 -0
- package/dist/esm/api/students/operations.d.ts +22 -0
- package/dist/esm/api/students/operations.js +125 -0
- package/dist/esm/api/students/operations.js.map +1 -0
- package/dist/esm/api/students/options.d.ts +16 -0
- package/dist/esm/api/students/options.js +4 -0
- package/dist/esm/api/students/options.js.map +1 -0
- package/dist/esm/classic/grants/index.d.ts +15 -0
- package/dist/esm/classic/grants/index.js +16 -0
- package/dist/esm/classic/grants/index.js.map +1 -0
- package/dist/esm/classic/index.d.ts +7 -0
- package/dist/esm/classic/index.js +4 -0
- package/dist/esm/classic/index.js.map +1 -0
- package/dist/esm/classic/joinRequests/index.d.ts +17 -0
- package/dist/esm/classic/joinRequests/index.js +17 -0
- package/dist/esm/classic/joinRequests/index.js.map +1 -0
- package/dist/esm/classic/labs/index.d.ts +21 -0
- package/dist/esm/classic/labs/index.js +19 -0
- package/dist/esm/classic/labs/index.js.map +1 -0
- package/dist/esm/classic/operations/index.d.ts +10 -0
- package/dist/esm/classic/operations/index.js +14 -0
- package/dist/esm/classic/operations/index.js.map +1 -0
- package/dist/esm/classic/studentLabs/index.d.ts +13 -0
- package/dist/esm/classic/studentLabs/index.js +15 -0
- package/dist/esm/classic/studentLabs/index.js.map +1 -0
- package/dist/esm/classic/students/index.d.ts +17 -0
- package/dist/esm/classic/students/index.js +17 -0
- package/dist/esm/classic/students/index.js.map +1 -0
- package/dist/esm/educationManagementClient.d.ts +31 -26
- package/dist/esm/educationManagementClient.js +44 -131
- package/dist/esm/educationManagementClient.js.map +1 -1
- package/dist/esm/index.d.ts +16 -3
- package/dist/esm/index.js +6 -11
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/logger.d.ts +2 -0
- package/dist/esm/logger.js +5 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/models/index.d.ts +2 -684
- package/dist/esm/models/index.js +3 -91
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +597 -0
- package/dist/esm/models/models.js +569 -0
- package/dist/esm/models/models.js.map +1 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js +38 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/esm/static-helpers/pagingHelpers.js +143 -0
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
- package/dist/esm/static-helpers/serialization/check-prop-undefined.js +17 -0
- package/dist/esm/static-helpers/serialization/check-prop-undefined.js.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/esm/static-helpers/urlTemplate.js +200 -0
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
- package/package.json +200 -92
- package/CHANGELOG.md +0 -40
- package/dist/browser/educationManagementClient.d.ts.map +0 -1
- package/dist/browser/index.d.ts.map +0 -1
- package/dist/browser/models/index.d.ts.map +0 -1
- package/dist/browser/models/mappers.d.ts +0 -22
- package/dist/browser/models/mappers.d.ts.map +0 -1
- package/dist/browser/models/mappers.js +0 -754
- package/dist/browser/models/mappers.js.map +0 -1
- package/dist/browser/models/parameters.d.ts +0 -22
- package/dist/browser/models/parameters.d.ts.map +0 -1
- package/dist/browser/models/parameters.js +0 -185
- package/dist/browser/models/parameters.js.map +0 -1
- package/dist/browser/operations/grants.d.ts +0 -63
- package/dist/browser/operations/grants.d.ts.map +0 -1
- package/dist/browser/operations/grants.js +0 -250
- package/dist/browser/operations/grants.js.map +0 -1
- package/dist/browser/operations/index.d.ts +0 -7
- package/dist/browser/operations/index.d.ts.map +0 -1
- package/dist/browser/operations/index.js +0 -14
- package/dist/browser/operations/index.js.map +0 -1
- package/dist/browser/operations/joinRequests.d.ts +0 -68
- package/dist/browser/operations/joinRequests.d.ts.map +0 -1
- package/dist/browser/operations/joinRequests.js +0 -255
- package/dist/browser/operations/joinRequests.js.map +0 -1
- package/dist/browser/operations/labs.d.ts +0 -103
- package/dist/browser/operations/labs.d.ts.map +0 -1
- package/dist/browser/operations/labs.js +0 -402
- package/dist/browser/operations/labs.js.map +0 -1
- package/dist/browser/operations/operations.d.ts +0 -18
- package/dist/browser/operations/operations.d.ts.map +0 -1
- package/dist/browser/operations/operations.js +0 -47
- package/dist/browser/operations/operations.js.map +0 -1
- package/dist/browser/operations/studentLabs.d.ts +0 -38
- package/dist/browser/operations/studentLabs.d.ts.map +0 -1
- package/dist/browser/operations/studentLabs.js +0 -140
- package/dist/browser/operations/studentLabs.js.map +0 -1
- package/dist/browser/operations/students.d.ts +0 -70
- package/dist/browser/operations/students.d.ts.map +0 -1
- package/dist/browser/operations/students.js +0 -266
- package/dist/browser/operations/students.js.map +0 -1
- package/dist/browser/operationsInterfaces/grants.d.ts +0 -25
- package/dist/browser/operationsInterfaces/grants.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/grants.js +0 -9
- package/dist/browser/operationsInterfaces/grants.js.map +0 -1
- package/dist/browser/operationsInterfaces/index.d.ts +0 -7
- package/dist/browser/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/index.js +0 -14
- package/dist/browser/operationsInterfaces/index.js.map +0 -1
- package/dist/browser/operationsInterfaces/joinRequests.d.ts +0 -41
- package/dist/browser/operationsInterfaces/joinRequests.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/joinRequests.js +0 -9
- package/dist/browser/operationsInterfaces/joinRequests.js.map +0 -1
- package/dist/browser/operationsInterfaces/labs.d.ts +0 -58
- package/dist/browser/operationsInterfaces/labs.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/labs.js +0 -9
- package/dist/browser/operationsInterfaces/labs.js.map +0 -1
- package/dist/browser/operationsInterfaces/operations.d.ts +0 -10
- package/dist/browser/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/operations.js +0 -9
- package/dist/browser/operationsInterfaces/operations.js.map +0 -1
- package/dist/browser/operationsInterfaces/studentLabs.d.ts +0 -17
- package/dist/browser/operationsInterfaces/studentLabs.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/studentLabs.js +0 -9
- package/dist/browser/operationsInterfaces/studentLabs.js.map +0 -1
- package/dist/browser/operationsInterfaces/students.d.ts +0 -43
- package/dist/browser/operationsInterfaces/students.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/students.js +0 -9
- package/dist/browser/operationsInterfaces/students.js.map +0 -1
- package/dist/browser/pagingHelper.d.ts +0 -13
- package/dist/browser/pagingHelper.d.ts.map +0 -1
- package/dist/browser/pagingHelper.js +0 -30
- package/dist/browser/pagingHelper.js.map +0 -1
- package/dist/commonjs/educationManagementClient.d.ts.map +0 -1
- package/dist/commonjs/index.d.ts.map +0 -1
- package/dist/commonjs/models/index.d.ts.map +0 -1
- package/dist/commonjs/models/mappers.d.ts +0 -22
- package/dist/commonjs/models/mappers.d.ts.map +0 -1
- package/dist/commonjs/models/mappers.js +0 -757
- package/dist/commonjs/models/mappers.js.map +0 -1
- package/dist/commonjs/models/parameters.d.ts +0 -22
- package/dist/commonjs/models/parameters.d.ts.map +0 -1
- package/dist/commonjs/models/parameters.js +0 -188
- package/dist/commonjs/models/parameters.js.map +0 -1
- package/dist/commonjs/operations/grants.d.ts +0 -63
- package/dist/commonjs/operations/grants.d.ts.map +0 -1
- package/dist/commonjs/operations/grants.js +0 -255
- package/dist/commonjs/operations/grants.js.map +0 -1
- package/dist/commonjs/operations/index.d.ts +0 -7
- package/dist/commonjs/operations/index.d.ts.map +0 -1
- package/dist/commonjs/operations/index.js +0 -17
- package/dist/commonjs/operations/index.js.map +0 -1
- package/dist/commonjs/operations/joinRequests.d.ts +0 -68
- package/dist/commonjs/operations/joinRequests.d.ts.map +0 -1
- package/dist/commonjs/operations/joinRequests.js +0 -260
- package/dist/commonjs/operations/joinRequests.js.map +0 -1
- package/dist/commonjs/operations/labs.d.ts +0 -103
- package/dist/commonjs/operations/labs.d.ts.map +0 -1
- package/dist/commonjs/operations/labs.js +0 -407
- package/dist/commonjs/operations/labs.js.map +0 -1
- package/dist/commonjs/operations/operations.d.ts +0 -18
- package/dist/commonjs/operations/operations.d.ts.map +0 -1
- package/dist/commonjs/operations/operations.js +0 -52
- package/dist/commonjs/operations/operations.js.map +0 -1
- package/dist/commonjs/operations/studentLabs.d.ts +0 -38
- package/dist/commonjs/operations/studentLabs.d.ts.map +0 -1
- package/dist/commonjs/operations/studentLabs.js +0 -145
- package/dist/commonjs/operations/studentLabs.js.map +0 -1
- package/dist/commonjs/operations/students.d.ts +0 -70
- package/dist/commonjs/operations/students.d.ts.map +0 -1
- package/dist/commonjs/operations/students.js +0 -271
- package/dist/commonjs/operations/students.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/grants.d.ts +0 -25
- package/dist/commonjs/operationsInterfaces/grants.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/grants.js +0 -10
- package/dist/commonjs/operationsInterfaces/grants.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/index.d.ts +0 -7
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/index.js +0 -17
- package/dist/commonjs/operationsInterfaces/index.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/joinRequests.d.ts +0 -41
- package/dist/commonjs/operationsInterfaces/joinRequests.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/joinRequests.js +0 -10
- package/dist/commonjs/operationsInterfaces/joinRequests.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/labs.d.ts +0 -58
- package/dist/commonjs/operationsInterfaces/labs.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/labs.js +0 -10
- package/dist/commonjs/operationsInterfaces/labs.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/operations.d.ts +0 -10
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/operations.js +0 -10
- package/dist/commonjs/operationsInterfaces/operations.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/studentLabs.d.ts +0 -17
- package/dist/commonjs/operationsInterfaces/studentLabs.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/studentLabs.js +0 -10
- package/dist/commonjs/operationsInterfaces/studentLabs.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/students.d.ts +0 -43
- package/dist/commonjs/operationsInterfaces/students.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/students.js +0 -10
- package/dist/commonjs/operationsInterfaces/students.js.map +0 -1
- package/dist/commonjs/pagingHelper.d.ts +0 -13
- package/dist/commonjs/pagingHelper.d.ts.map +0 -1
- package/dist/commonjs/pagingHelper.js +0 -34
- package/dist/commonjs/pagingHelper.js.map +0 -1
- package/dist/esm/educationManagementClient.d.ts.map +0 -1
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/models/index.d.ts.map +0 -1
- package/dist/esm/models/mappers.d.ts +0 -22
- package/dist/esm/models/mappers.d.ts.map +0 -1
- package/dist/esm/models/mappers.js +0 -754
- package/dist/esm/models/mappers.js.map +0 -1
- package/dist/esm/models/parameters.d.ts +0 -22
- package/dist/esm/models/parameters.d.ts.map +0 -1
- package/dist/esm/models/parameters.js +0 -185
- package/dist/esm/models/parameters.js.map +0 -1
- package/dist/esm/operations/grants.d.ts +0 -63
- package/dist/esm/operations/grants.d.ts.map +0 -1
- package/dist/esm/operations/grants.js +0 -250
- package/dist/esm/operations/grants.js.map +0 -1
- package/dist/esm/operations/index.d.ts +0 -7
- package/dist/esm/operations/index.d.ts.map +0 -1
- package/dist/esm/operations/index.js +0 -14
- package/dist/esm/operations/index.js.map +0 -1
- package/dist/esm/operations/joinRequests.d.ts +0 -68
- package/dist/esm/operations/joinRequests.d.ts.map +0 -1
- package/dist/esm/operations/joinRequests.js +0 -255
- package/dist/esm/operations/joinRequests.js.map +0 -1
- package/dist/esm/operations/labs.d.ts +0 -103
- package/dist/esm/operations/labs.d.ts.map +0 -1
- package/dist/esm/operations/labs.js +0 -402
- package/dist/esm/operations/labs.js.map +0 -1
- package/dist/esm/operations/operations.d.ts +0 -18
- package/dist/esm/operations/operations.d.ts.map +0 -1
- package/dist/esm/operations/operations.js +0 -47
- package/dist/esm/operations/operations.js.map +0 -1
- package/dist/esm/operations/studentLabs.d.ts +0 -38
- package/dist/esm/operations/studentLabs.d.ts.map +0 -1
- package/dist/esm/operations/studentLabs.js +0 -140
- package/dist/esm/operations/studentLabs.js.map +0 -1
- package/dist/esm/operations/students.d.ts +0 -70
- package/dist/esm/operations/students.d.ts.map +0 -1
- package/dist/esm/operations/students.js +0 -266
- package/dist/esm/operations/students.js.map +0 -1
- package/dist/esm/operationsInterfaces/grants.d.ts +0 -25
- package/dist/esm/operationsInterfaces/grants.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/grants.js +0 -9
- package/dist/esm/operationsInterfaces/grants.js.map +0 -1
- package/dist/esm/operationsInterfaces/index.d.ts +0 -7
- package/dist/esm/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/index.js +0 -14
- package/dist/esm/operationsInterfaces/index.js.map +0 -1
- package/dist/esm/operationsInterfaces/joinRequests.d.ts +0 -41
- package/dist/esm/operationsInterfaces/joinRequests.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/joinRequests.js +0 -9
- package/dist/esm/operationsInterfaces/joinRequests.js.map +0 -1
- package/dist/esm/operationsInterfaces/labs.d.ts +0 -58
- package/dist/esm/operationsInterfaces/labs.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/labs.js +0 -9
- package/dist/esm/operationsInterfaces/labs.js.map +0 -1
- package/dist/esm/operationsInterfaces/operations.d.ts +0 -10
- package/dist/esm/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/operations.js +0 -9
- package/dist/esm/operationsInterfaces/operations.js.map +0 -1
- package/dist/esm/operationsInterfaces/studentLabs.d.ts +0 -17
- package/dist/esm/operationsInterfaces/studentLabs.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/studentLabs.js +0 -9
- package/dist/esm/operationsInterfaces/studentLabs.js.map +0 -1
- package/dist/esm/operationsInterfaces/students.d.ts +0 -43
- package/dist/esm/operationsInterfaces/students.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/students.js +0 -9
- package/dist/esm/operationsInterfaces/students.js.map +0 -1
- package/dist/esm/pagingHelper.d.ts +0 -13
- package/dist/esm/pagingHelper.d.ts.map +0 -1
- package/dist/esm/pagingHelper.js +0 -30
- package/dist/esm/pagingHelper.js.map +0 -1
- package/dist/react-native/educationManagementClient.d.ts +0 -29
- package/dist/react-native/educationManagementClient.d.ts.map +0 -1
- package/dist/react-native/educationManagementClient.js +0 -137
- package/dist/react-native/educationManagementClient.js.map +0 -1
- package/dist/react-native/index.d.ts +0 -5
- package/dist/react-native/index.d.ts.map +0 -1
- package/dist/react-native/index.js +0 -13
- package/dist/react-native/index.js.map +0 -1
- package/dist/react-native/models/index.d.ts +0 -685
- package/dist/react-native/models/index.d.ts.map +0 -1
- package/dist/react-native/models/index.js +0 -92
- package/dist/react-native/models/index.js.map +0 -1
- package/dist/react-native/models/mappers.d.ts +0 -22
- package/dist/react-native/models/mappers.d.ts.map +0 -1
- package/dist/react-native/models/mappers.js +0 -754
- package/dist/react-native/models/mappers.js.map +0 -1
- package/dist/react-native/models/parameters.d.ts +0 -22
- package/dist/react-native/models/parameters.d.ts.map +0 -1
- package/dist/react-native/models/parameters.js +0 -185
- package/dist/react-native/models/parameters.js.map +0 -1
- package/dist/react-native/operations/grants.d.ts +0 -63
- package/dist/react-native/operations/grants.d.ts.map +0 -1
- package/dist/react-native/operations/grants.js +0 -250
- package/dist/react-native/operations/grants.js.map +0 -1
- package/dist/react-native/operations/index.d.ts +0 -7
- package/dist/react-native/operations/index.d.ts.map +0 -1
- package/dist/react-native/operations/index.js +0 -14
- package/dist/react-native/operations/index.js.map +0 -1
- package/dist/react-native/operations/joinRequests.d.ts +0 -68
- package/dist/react-native/operations/joinRequests.d.ts.map +0 -1
- package/dist/react-native/operations/joinRequests.js +0 -255
- package/dist/react-native/operations/joinRequests.js.map +0 -1
- package/dist/react-native/operations/labs.d.ts +0 -103
- package/dist/react-native/operations/labs.d.ts.map +0 -1
- package/dist/react-native/operations/labs.js +0 -402
- package/dist/react-native/operations/labs.js.map +0 -1
- package/dist/react-native/operations/operations.d.ts +0 -18
- package/dist/react-native/operations/operations.d.ts.map +0 -1
- package/dist/react-native/operations/operations.js +0 -47
- package/dist/react-native/operations/operations.js.map +0 -1
- package/dist/react-native/operations/studentLabs.d.ts +0 -38
- package/dist/react-native/operations/studentLabs.d.ts.map +0 -1
- package/dist/react-native/operations/studentLabs.js +0 -140
- package/dist/react-native/operations/studentLabs.js.map +0 -1
- package/dist/react-native/operations/students.d.ts +0 -70
- package/dist/react-native/operations/students.d.ts.map +0 -1
- package/dist/react-native/operations/students.js +0 -266
- package/dist/react-native/operations/students.js.map +0 -1
- package/dist/react-native/operationsInterfaces/grants.d.ts +0 -25
- package/dist/react-native/operationsInterfaces/grants.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/grants.js +0 -9
- package/dist/react-native/operationsInterfaces/grants.js.map +0 -1
- package/dist/react-native/operationsInterfaces/index.d.ts +0 -7
- package/dist/react-native/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/index.js +0 -14
- package/dist/react-native/operationsInterfaces/index.js.map +0 -1
- package/dist/react-native/operationsInterfaces/joinRequests.d.ts +0 -41
- package/dist/react-native/operationsInterfaces/joinRequests.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/joinRequests.js +0 -9
- package/dist/react-native/operationsInterfaces/joinRequests.js.map +0 -1
- package/dist/react-native/operationsInterfaces/labs.d.ts +0 -58
- package/dist/react-native/operationsInterfaces/labs.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/labs.js +0 -9
- package/dist/react-native/operationsInterfaces/labs.js.map +0 -1
- package/dist/react-native/operationsInterfaces/operations.d.ts +0 -10
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/operations.js +0 -9
- package/dist/react-native/operationsInterfaces/operations.js.map +0 -1
- package/dist/react-native/operationsInterfaces/studentLabs.d.ts +0 -17
- package/dist/react-native/operationsInterfaces/studentLabs.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/studentLabs.js +0 -9
- package/dist/react-native/operationsInterfaces/studentLabs.js.map +0 -1
- package/dist/react-native/operationsInterfaces/students.d.ts +0 -43
- package/dist/react-native/operationsInterfaces/students.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/students.js +0 -9
- package/dist/react-native/operationsInterfaces/students.js.map +0 -1
- package/dist/react-native/package.json +0 -3
- package/dist/react-native/pagingHelper.d.ts +0 -13
- package/dist/react-native/pagingHelper.d.ts.map +0 -1
- package/dist/react-native/pagingHelper.js +0 -30
- package/dist/react-native/pagingHelper.js.map +0 -1
- 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
|
-
|
|
8
|
-
|
|
9
|
-
[
|
|
10
|
-
[
|
|
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/
|
|
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
|
|
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
|
|
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
|
|
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 @@
|
|
|
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,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,mBAAmB,CACvC,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,C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Aa,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,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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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,MAA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AAa,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 @@
|
|
|
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 @@
|
|
|
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"]}
|