@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
|
@@ -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,OA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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"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { EducationManagementContext as Client } from "../index.js";
|
|
2
|
+
import { LabDetails, _LabListResult, InviteCodeGenerateRequest } from "../../models/models.js";
|
|
3
|
+
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
4
|
+
import { LabsGenerateInviteCodeOptionalParams, LabsListAllOptionalParams, LabsListOptionalParams, LabsDeleteOptionalParams, LabsCreateOrUpdateOptionalParams, LabsGetOptionalParams } from "./options.js";
|
|
5
|
+
import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
6
|
+
export declare function _generateInviteCodeSend(context: Client, billingAccountName: string, billingProfileName: string, invoiceSectionName: string, parameters: InviteCodeGenerateRequest, options?: LabsGenerateInviteCodeOptionalParams): StreamableMethod;
|
|
7
|
+
export declare function _generateInviteCodeDeserialize(result: PathUncheckedResponse): Promise<LabDetails>;
|
|
8
|
+
/** Generate invite code for a lab */
|
|
9
|
+
export declare function generateInviteCode(context: Client, billingAccountName: string, billingProfileName: string, invoiceSectionName: string, parameters: InviteCodeGenerateRequest, options?: LabsGenerateInviteCodeOptionalParams): Promise<LabDetails>;
|
|
10
|
+
export declare function _listAllSend(context: Client, billingAccountName: string, billingProfileName: string, options?: LabsListAllOptionalParams): StreamableMethod;
|
|
11
|
+
export declare function _listAllDeserialize(result: PathUncheckedResponse): Promise<_LabListResult>;
|
|
12
|
+
/** Get a list of labs associated with the provided billing account name and billing profile name. */
|
|
13
|
+
export declare function listAll(context: Client, billingAccountName: string, billingProfileName: string, options?: LabsListAllOptionalParams): PagedAsyncIterableIterator<LabDetails>;
|
|
14
|
+
export declare function _listSend(context: Client, billingAccountName: string, billingProfileName: string, invoiceSectionName: string, options?: LabsListOptionalParams): StreamableMethod;
|
|
15
|
+
export declare function _listDeserialize(result: PathUncheckedResponse): Promise<_LabListResult>;
|
|
16
|
+
/** Get the details for a specific lab associated with the provided billing account name, billing profile name, and invoice section name. */
|
|
17
|
+
export declare function list(context: Client, billingAccountName: string, billingProfileName: string, invoiceSectionName: string, options?: LabsListOptionalParams): PagedAsyncIterableIterator<LabDetails>;
|
|
18
|
+
export declare function _$deleteSend(context: Client, billingAccountName: string, billingProfileName: string, invoiceSectionName: string, options?: LabsDeleteOptionalParams): StreamableMethod;
|
|
19
|
+
export declare function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void>;
|
|
20
|
+
/** Delete a specific lab associated with the provided billing account name, billing profile name, and invoice section name. Note all students must be removed from the lab in order to delete the lab. */
|
|
21
|
+
export declare function $delete(context: Client, billingAccountName: string, billingProfileName: string, invoiceSectionName: string, options?: LabsDeleteOptionalParams): Promise<void>;
|
|
22
|
+
export declare function _createOrUpdateSend(context: Client, billingAccountName: string, billingProfileName: string, invoiceSectionName: string, parameters: LabDetails, options?: LabsCreateOrUpdateOptionalParams): StreamableMethod;
|
|
23
|
+
export declare function _createOrUpdateDeserialize(result: PathUncheckedResponse): Promise<LabDetails>;
|
|
24
|
+
/** Create a new lab or update a previously created lab. */
|
|
25
|
+
export declare function createOrUpdate(context: Client, billingAccountName: string, billingProfileName: string, invoiceSectionName: string, parameters: LabDetails, options?: LabsCreateOrUpdateOptionalParams): Promise<LabDetails>;
|
|
26
|
+
export declare function _getSend(context: Client, billingAccountName: string, billingProfileName: string, invoiceSectionName: string, options?: LabsGetOptionalParams): StreamableMethod;
|
|
27
|
+
export declare function _getDeserialize(result: PathUncheckedResponse): Promise<LabDetails>;
|
|
28
|
+
/** Get the details for a specific lab associated with the provided billing account name, billing profile name, and invoice section name. */
|
|
29
|
+
export declare function get(context: Client, billingAccountName: string, billingProfileName: string, invoiceSectionName: string, options?: LabsGetOptionalParams): Promise<LabDetails>;
|
|
30
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { errorResponseBodyDeserializer, labDetailsSerializer, labDetailsDeserializer, _labListResultDeserializer, inviteCodeGenerateRequestSerializer, } 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 _generateInviteCodeSend(context, billingAccountName, billingProfileName, invoiceSectionName, parameters, options = { requestOptions: {} }) {
|
|
8
|
+
const path = expandUrlTemplate("/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/generateInviteCode{?api%2Dversion,onlyUpdateStudentCountParameter}", {
|
|
9
|
+
billingAccountName: billingAccountName,
|
|
10
|
+
billingProfileName: billingProfileName,
|
|
11
|
+
invoiceSectionName: invoiceSectionName,
|
|
12
|
+
"api%2Dversion": context.apiVersion ?? "2021-12-01-preview",
|
|
13
|
+
onlyUpdateStudentCountParameter: options?.onlyUpdateStudentCountParameter,
|
|
14
|
+
}, {
|
|
15
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
16
|
+
});
|
|
17
|
+
return context.path(path).post({
|
|
18
|
+
...operationOptionsToRequestParameters(options),
|
|
19
|
+
contentType: "application/json",
|
|
20
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
21
|
+
body: inviteCodeGenerateRequestSerializer(parameters),
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
export async function _generateInviteCodeDeserialize(result) {
|
|
25
|
+
const expectedStatuses = ["200"];
|
|
26
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
27
|
+
const error = createRestError(result);
|
|
28
|
+
error.details = errorResponseBodyDeserializer(result.body);
|
|
29
|
+
throw error;
|
|
30
|
+
}
|
|
31
|
+
return labDetailsDeserializer(result.body);
|
|
32
|
+
}
|
|
33
|
+
/** Generate invite code for a lab */
|
|
34
|
+
export async function generateInviteCode(context, billingAccountName, billingProfileName, invoiceSectionName, parameters, options = { requestOptions: {} }) {
|
|
35
|
+
const result = await _generateInviteCodeSend(context, billingAccountName, billingProfileName, invoiceSectionName, parameters, options);
|
|
36
|
+
return _generateInviteCodeDeserialize(result);
|
|
37
|
+
}
|
|
38
|
+
export function _listAllSend(context, billingAccountName, billingProfileName, options = { requestOptions: {} }) {
|
|
39
|
+
const path = expandUrlTemplate("/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.Education/labs{?api%2Dversion,includeBudget,includeDeleted}", {
|
|
40
|
+
billingAccountName: billingAccountName,
|
|
41
|
+
billingProfileName: billingProfileName,
|
|
42
|
+
"api%2Dversion": context.apiVersion ?? "2021-12-01-preview",
|
|
43
|
+
includeBudget: options?.includeBudget,
|
|
44
|
+
includeDeleted: options?.includeDeleted,
|
|
45
|
+
}, {
|
|
46
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
47
|
+
});
|
|
48
|
+
return context.path(path).get({
|
|
49
|
+
...operationOptionsToRequestParameters(options),
|
|
50
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
export async function _listAllDeserialize(result) {
|
|
54
|
+
const expectedStatuses = ["200"];
|
|
55
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
56
|
+
const error = createRestError(result);
|
|
57
|
+
error.details = errorResponseBodyDeserializer(result.body);
|
|
58
|
+
throw error;
|
|
59
|
+
}
|
|
60
|
+
return _labListResultDeserializer(result.body);
|
|
61
|
+
}
|
|
62
|
+
/** Get a list of labs associated with the provided billing account name and billing profile name. */
|
|
63
|
+
export function listAll(context, billingAccountName, billingProfileName, options = { requestOptions: {} }) {
|
|
64
|
+
return buildPagedAsyncIterator(context, () => _listAllSend(context, billingAccountName, billingProfileName, options), _listAllDeserialize, ["200"], {
|
|
65
|
+
itemName: "value",
|
|
66
|
+
nextLinkName: "nextLink",
|
|
67
|
+
apiVersion: context.apiVersion ?? "2021-12-01-preview",
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
export function _listSend(context, billingAccountName, billingProfileName, invoiceSectionName, options = { requestOptions: {} }) {
|
|
71
|
+
const path = expandUrlTemplate("/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs{?api%2Dversion,includeBudget}", {
|
|
72
|
+
billingAccountName: billingAccountName,
|
|
73
|
+
billingProfileName: billingProfileName,
|
|
74
|
+
invoiceSectionName: invoiceSectionName,
|
|
75
|
+
"api%2Dversion": context.apiVersion ?? "2021-12-01-preview",
|
|
76
|
+
includeBudget: options?.includeBudget,
|
|
77
|
+
}, {
|
|
78
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
79
|
+
});
|
|
80
|
+
return context.path(path).get({
|
|
81
|
+
...operationOptionsToRequestParameters(options),
|
|
82
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
export async function _listDeserialize(result) {
|
|
86
|
+
const expectedStatuses = ["200"];
|
|
87
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
88
|
+
const error = createRestError(result);
|
|
89
|
+
error.details = errorResponseBodyDeserializer(result.body);
|
|
90
|
+
throw error;
|
|
91
|
+
}
|
|
92
|
+
return _labListResultDeserializer(result.body);
|
|
93
|
+
}
|
|
94
|
+
/** Get the details for a specific lab associated with the provided billing account name, billing profile name, and invoice section name. */
|
|
95
|
+
export function list(context, billingAccountName, billingProfileName, invoiceSectionName, options = { requestOptions: {} }) {
|
|
96
|
+
return buildPagedAsyncIterator(context, () => _listSend(context, billingAccountName, billingProfileName, invoiceSectionName, options), _listDeserialize, ["200"], {
|
|
97
|
+
itemName: "value",
|
|
98
|
+
nextLinkName: "nextLink",
|
|
99
|
+
apiVersion: context.apiVersion ?? "2021-12-01-preview",
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
export function _$deleteSend(context, billingAccountName, billingProfileName, invoiceSectionName, options = { requestOptions: {} }) {
|
|
103
|
+
const path = expandUrlTemplate("/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default{?api%2Dversion}", {
|
|
104
|
+
billingAccountName: billingAccountName,
|
|
105
|
+
billingProfileName: billingProfileName,
|
|
106
|
+
invoiceSectionName: invoiceSectionName,
|
|
107
|
+
"api%2Dversion": context.apiVersion ?? "2021-12-01-preview",
|
|
108
|
+
}, {
|
|
109
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
110
|
+
});
|
|
111
|
+
return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });
|
|
112
|
+
}
|
|
113
|
+
export async function _$deleteDeserialize(result) {
|
|
114
|
+
const expectedStatuses = ["200", "204"];
|
|
115
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
116
|
+
const error = createRestError(result);
|
|
117
|
+
error.details = errorResponseBodyDeserializer(result.body);
|
|
118
|
+
throw error;
|
|
119
|
+
}
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
/** Delete a specific lab associated with the provided billing account name, billing profile name, and invoice section name. Note all students must be removed from the lab in order to delete the lab. */
|
|
123
|
+
export async function $delete(context, billingAccountName, billingProfileName, invoiceSectionName, options = { requestOptions: {} }) {
|
|
124
|
+
const result = await _$deleteSend(context, billingAccountName, billingProfileName, invoiceSectionName, options);
|
|
125
|
+
return _$deleteDeserialize(result);
|
|
126
|
+
}
|
|
127
|
+
export function _createOrUpdateSend(context, billingAccountName, billingProfileName, invoiceSectionName, parameters, options = { requestOptions: {} }) {
|
|
128
|
+
const path = expandUrlTemplate("/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default{?api%2Dversion}", {
|
|
129
|
+
billingAccountName: billingAccountName,
|
|
130
|
+
billingProfileName: billingProfileName,
|
|
131
|
+
invoiceSectionName: invoiceSectionName,
|
|
132
|
+
"api%2Dversion": context.apiVersion ?? "2021-12-01-preview",
|
|
133
|
+
}, {
|
|
134
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
135
|
+
});
|
|
136
|
+
return context.path(path).put({
|
|
137
|
+
...operationOptionsToRequestParameters(options),
|
|
138
|
+
contentType: "application/json",
|
|
139
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
140
|
+
body: labDetailsSerializer(parameters),
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
export async function _createOrUpdateDeserialize(result) {
|
|
144
|
+
const expectedStatuses = ["200", "201"];
|
|
145
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
146
|
+
const error = createRestError(result);
|
|
147
|
+
error.details = errorResponseBodyDeserializer(result.body);
|
|
148
|
+
throw error;
|
|
149
|
+
}
|
|
150
|
+
return labDetailsDeserializer(result.body);
|
|
151
|
+
}
|
|
152
|
+
/** Create a new lab or update a previously created lab. */
|
|
153
|
+
export async function createOrUpdate(context, billingAccountName, billingProfileName, invoiceSectionName, parameters, options = { requestOptions: {} }) {
|
|
154
|
+
const result = await _createOrUpdateSend(context, billingAccountName, billingProfileName, invoiceSectionName, parameters, options);
|
|
155
|
+
return _createOrUpdateDeserialize(result);
|
|
156
|
+
}
|
|
157
|
+
export function _getSend(context, billingAccountName, billingProfileName, invoiceSectionName, options = { requestOptions: {} }) {
|
|
158
|
+
const path = expandUrlTemplate("/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default{?api%2Dversion,includeBudget}", {
|
|
159
|
+
billingAccountName: billingAccountName,
|
|
160
|
+
billingProfileName: billingProfileName,
|
|
161
|
+
invoiceSectionName: invoiceSectionName,
|
|
162
|
+
"api%2Dversion": context.apiVersion ?? "2021-12-01-preview",
|
|
163
|
+
includeBudget: options?.includeBudget,
|
|
164
|
+
}, {
|
|
165
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
166
|
+
});
|
|
167
|
+
return context.path(path).get({
|
|
168
|
+
...operationOptionsToRequestParameters(options),
|
|
169
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
export async function _getDeserialize(result) {
|
|
173
|
+
const expectedStatuses = ["200"];
|
|
174
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
175
|
+
const error = createRestError(result);
|
|
176
|
+
error.details = errorResponseBodyDeserializer(result.body);
|
|
177
|
+
throw error;
|
|
178
|
+
}
|
|
179
|
+
return labDetailsDeserializer(result.body);
|
|
180
|
+
}
|
|
181
|
+
/** Get the details for a specific lab associated with the provided billing account name, billing profile name, and invoice section name. */
|
|
182
|
+
export async function get(context, billingAccountName, billingProfileName, invoiceSectionName, options = { requestOptions: {} }) {
|
|
183
|
+
const result = await _getSend(context, billingAccountName, billingProfileName, invoiceSectionName, options);
|
|
184
|
+
return _getDeserialize(result);
|
|
185
|
+
}
|
|
186
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/labs/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,6BAA6B,EAE7B,oBAAoB,EACpB,sBAAsB,EAEtB,0BAA0B,EAE1B,mCAAmC,GACpC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AASxE,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,uBAAuB,CACrC,OAAe,EACf,kBAA0B,EAC1B,kBAA0B,EAC1B,kBAA0B,EAC1B,UAAqC,EACrC,UAAgD,EAAE,cAAc,EAAE,EAAE,EAAE;IAEtE,MAAM,IAAI,GAAG,iBAAiB,CAC5B,2PAA2P,EAC3P;QACE,kBAAkB,EAAE,kBAAkB;QACtC,kBAAkB,EAAE,kBAAkB;QACtC,kBAAkB,EAAE,kBAAkB;QACtC,eAAe,EAAE,OAAO,CAAC,UAAU,IAAI,oBAAoB;QAC3D,+BAA+B,EAAE,OAAO,EAAE,+BAA+B;KAC1E,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;QAC7B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,WAAW,EAAE,kBAAkB;QAC/B,OAAO,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO,EAAE;QAC3E,IAAI,EAAE,mCAAmC,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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,sBAAsB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC7C,CAAC;AAED,4IAA4I;AAC5I,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,kBAA0B,EAC1B,kBAA0B,EAC1B,kBAA0B,EAC1B,UAAiC,EAAE,cAAc,EAAE,EAAE,EAAE;IAEvD,MAAM,MAAM,GAAG,MAAM,QAAQ,CAC3B,OAAO,EACP,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,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 LabDetails,\n labDetailsSerializer,\n labDetailsDeserializer,\n _LabListResult,\n _labListResultDeserializer,\n InviteCodeGenerateRequest,\n inviteCodeGenerateRequestSerializer,\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 LabsGenerateInviteCodeOptionalParams,\n LabsListAllOptionalParams,\n LabsListOptionalParams,\n LabsDeleteOptionalParams,\n LabsCreateOrUpdateOptionalParams,\n LabsGetOptionalParams,\n} from \"./options.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _generateInviteCodeSend(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n parameters: InviteCodeGenerateRequest,\n options: LabsGenerateInviteCodeOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/generateInviteCode{?api%2Dversion,onlyUpdateStudentCountParameter}\",\n {\n billingAccountName: billingAccountName,\n billingProfileName: billingProfileName,\n invoiceSectionName: invoiceSectionName,\n \"api%2Dversion\": context.apiVersion ?? \"2021-12-01-preview\",\n onlyUpdateStudentCountParameter: options?.onlyUpdateStudentCountParameter,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: inviteCodeGenerateRequestSerializer(parameters),\n });\n}\n\nexport async function _generateInviteCodeDeserialize(\n result: PathUncheckedResponse,\n): Promise<LabDetails> {\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 labDetailsDeserializer(result.body);\n}\n\n/** Generate invite code for a lab */\nexport async function generateInviteCode(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n parameters: InviteCodeGenerateRequest,\n options: LabsGenerateInviteCodeOptionalParams = { requestOptions: {} },\n): Promise<LabDetails> {\n const result = await _generateInviteCodeSend(\n context,\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n parameters,\n options,\n );\n return _generateInviteCodeDeserialize(result);\n}\n\nexport function _listAllSend(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n options: LabsListAllOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.Education/labs{?api%2Dversion,includeBudget,includeDeleted}\",\n {\n billingAccountName: billingAccountName,\n billingProfileName: billingProfileName,\n \"api%2Dversion\": context.apiVersion ?? \"2021-12-01-preview\",\n includeBudget: options?.includeBudget,\n includeDeleted: options?.includeDeleted,\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(result: PathUncheckedResponse): Promise<_LabListResult> {\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 _labListResultDeserializer(result.body);\n}\n\n/** Get a list of labs associated with the provided billing account name and billing profile name. */\nexport function listAll(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n options: LabsListAllOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<LabDetails> {\n return buildPagedAsyncIterator(\n context,\n () => _listAllSend(context, billingAccountName, billingProfileName, 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 invoiceSectionName: string,\n options: LabsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs{?api%2Dversion,includeBudget}\",\n {\n billingAccountName: billingAccountName,\n billingProfileName: billingProfileName,\n invoiceSectionName: invoiceSectionName,\n \"api%2Dversion\": context.apiVersion ?? \"2021-12-01-preview\",\n includeBudget: options?.includeBudget,\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<_LabListResult> {\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 _labListResultDeserializer(result.body);\n}\n\n/** Get the details for a specific lab associated with the provided billing account name, billing profile name, and invoice section name. */\nexport function list(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n options: LabsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<LabDetails> {\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 _$deleteSend(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n options: LabsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default{?api%2Dversion}\",\n {\n billingAccountName: billingAccountName,\n billingProfileName: billingProfileName,\n invoiceSectionName: invoiceSectionName,\n \"api%2Dversion\": context.apiVersion ?? \"2021-12-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"200\", \"204\"];\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/** Delete a specific lab associated with the provided billing account name, billing profile name, and invoice section name. Note all students must be removed from the lab in order to delete the lab. */\nexport async function $delete(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n options: LabsDeleteOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _$deleteSend(\n context,\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n options,\n );\n return _$deleteDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n parameters: LabDetails,\n options: LabsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default{?api%2Dversion}\",\n {\n billingAccountName: billingAccountName,\n billingProfileName: billingProfileName,\n invoiceSectionName: invoiceSectionName,\n \"api%2Dversion\": context.apiVersion ?? \"2021-12-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: labDetailsSerializer(parameters),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<LabDetails> {\n const expectedStatuses = [\"200\", \"201\"];\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 labDetailsDeserializer(result.body);\n}\n\n/** Create a new lab or update a previously created lab. */\nexport async function createOrUpdate(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n parameters: LabDetails,\n options: LabsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): Promise<LabDetails> {\n const result = await _createOrUpdateSend(\n context,\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n parameters,\n options,\n );\n return _createOrUpdateDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n options: LabsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default{?api%2Dversion,includeBudget}\",\n {\n billingAccountName: billingAccountName,\n billingProfileName: billingProfileName,\n invoiceSectionName: invoiceSectionName,\n \"api%2Dversion\": context.apiVersion ?? \"2021-12-01-preview\",\n includeBudget: options?.includeBudget,\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<LabDetails> {\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 labDetailsDeserializer(result.body);\n}\n\n/** Get the details for a specific lab associated with the provided billing account name, billing profile name, and invoice section name. */\nexport async function get(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n options: LabsGetOptionalParams = { requestOptions: {} },\n): Promise<LabDetails> {\n const result = await _getSend(\n context,\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n options,\n );\n return _getDeserialize(result);\n}\n"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { OperationOptions } from "@azure-rest/core-client";
|
|
2
|
+
/** Optional parameters. */
|
|
3
|
+
export interface LabsGenerateInviteCodeOptionalParams extends OperationOptions {
|
|
4
|
+
/** set this flag to true if you want to update student count without generating a new invite code */
|
|
5
|
+
onlyUpdateStudentCountParameter?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/** Optional parameters. */
|
|
8
|
+
export interface LabsListAllOptionalParams extends OperationOptions {
|
|
9
|
+
/** May be used to include budget information. */
|
|
10
|
+
includeBudget?: boolean;
|
|
11
|
+
/** May be used to show deleted items. */
|
|
12
|
+
includeDeleted?: boolean;
|
|
13
|
+
}
|
|
14
|
+
/** Optional parameters. */
|
|
15
|
+
export interface LabsListOptionalParams extends OperationOptions {
|
|
16
|
+
/** May be used to include budget information. */
|
|
17
|
+
includeBudget?: boolean;
|
|
18
|
+
}
|
|
19
|
+
/** Optional parameters. */
|
|
20
|
+
export interface LabsDeleteOptionalParams extends OperationOptions {
|
|
21
|
+
}
|
|
22
|
+
/** Optional parameters. */
|
|
23
|
+
export interface LabsCreateOrUpdateOptionalParams extends OperationOptions {
|
|
24
|
+
}
|
|
25
|
+
/** Optional parameters. */
|
|
26
|
+
export interface LabsGetOptionalParams extends OperationOptions {
|
|
27
|
+
/** May be used to include budget information. */
|
|
28
|
+
includeBudget?: boolean;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/labs/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 LabsGenerateInviteCodeOptionalParams extends OperationOptions {\n /** set this flag to true if you want to update student count without generating a new invite code */\n onlyUpdateStudentCountParameter?: boolean;\n}\n\n/** Optional parameters. */\nexport interface LabsListAllOptionalParams extends OperationOptions {\n /** May be used to include budget information. */\n includeBudget?: boolean;\n /** May be used to show deleted items. */\n includeDeleted?: boolean;\n}\n\n/** Optional parameters. */\nexport interface LabsListOptionalParams extends OperationOptions {\n /** May be used to include budget information. */\n includeBudget?: boolean;\n}\n\n/** Optional parameters. */\nexport interface LabsDeleteOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface LabsCreateOrUpdateOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface LabsGetOptionalParams extends OperationOptions {\n /** May be used to include budget information. */\n includeBudget?: boolean;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/operations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { list } from \"./operations.js\";\nexport type { OperationsListOptionalParams } from \"./options.js\";\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EducationManagementContext as Client } from "../index.js";
|
|
2
|
+
import { OperationListResult } from "../../models/models.js";
|
|
3
|
+
import { OperationsListOptionalParams } from "./options.js";
|
|
4
|
+
import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
5
|
+
export declare function _listSend(context: Client, options?: OperationsListOptionalParams): StreamableMethod;
|
|
6
|
+
export declare function _listDeserialize(result: PathUncheckedResponse): Promise<OperationListResult>;
|
|
7
|
+
/** Lists all of the available Microsoft.Education API operations. */
|
|
8
|
+
export declare function list(context: Client, options?: OperationsListOptionalParams): Promise<OperationListResult>;
|
|
9
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { errorResponseBodyDeserializer, operationListResultDeserializer, } from "../../models/models.js";
|
|
4
|
+
import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
|
|
5
|
+
import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
|
|
6
|
+
export function _listSend(context, options = { requestOptions: {} }) {
|
|
7
|
+
const path = expandUrlTemplate("/providers/Microsoft.Education/operations{?api%2Dversion}", {
|
|
8
|
+
"api%2Dversion": context.apiVersion ?? "2021-12-01-preview",
|
|
9
|
+
}, {
|
|
10
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
11
|
+
});
|
|
12
|
+
return context.path(path).get({
|
|
13
|
+
...operationOptionsToRequestParameters(options),
|
|
14
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
export async function _listDeserialize(result) {
|
|
18
|
+
const expectedStatuses = ["200"];
|
|
19
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
20
|
+
const error = createRestError(result);
|
|
21
|
+
error.details = errorResponseBodyDeserializer(result.body);
|
|
22
|
+
throw error;
|
|
23
|
+
}
|
|
24
|
+
return operationListResultDeserializer(result.body);
|
|
25
|
+
}
|
|
26
|
+
/** Lists all of the available Microsoft.Education API operations. */
|
|
27
|
+
export async function list(context, options = { requestOptions: {} }) {
|
|
28
|
+
const result = await _listSend(context, options);
|
|
29
|
+
return _listDeserialize(result);
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/operations/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,6BAA6B,EAE7B,+BAA+B,GAChC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAExE,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,SAAS,CACvB,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,MAAM,IAAI,GAAG,iBAAiB,CAC5B,2DAA2D,EAC3D;QACE,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,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,gBAAgB,CACpC,MAA6B;IAE7B,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,+BAA+B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACtD,CAAC;AAED,qEAAqE;AACrE,MAAM,CAAC,KAAK,UAAU,IAAI,CACxB,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACjD,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAClC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { EducationManagementContext as Client } from \"../index.js\";\nimport {\n errorResponseBodyDeserializer,\n OperationListResult,\n operationListResultDeserializer,\n} from \"../../models/models.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport { OperationsListOptionalParams } from \"./options.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _listSend(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.Education/operations{?api%2Dversion}\",\n {\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 _listDeserialize(\n result: PathUncheckedResponse,\n): Promise<OperationListResult> {\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 operationListResultDeserializer(result.body);\n}\n\n/** Lists all of the available Microsoft.Education API operations. */\nexport async function list(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): Promise<OperationListResult> {\n const result = await _listSend(context, options);\n return _listDeserialize(result);\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/operations/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 OperationsListOptionalParams extends OperationOptions {}\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EducationManagementContext as Client } from "./index.js";
|
|
2
|
+
import { RedeemRequest } from "../models/models.js";
|
|
3
|
+
import { RedeemInvitationCodeOptionalParams } from "./options.js";
|
|
4
|
+
import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
5
|
+
export declare function _redeemInvitationCodeSend(context: Client, parameters: RedeemRequest, options?: RedeemInvitationCodeOptionalParams): StreamableMethod;
|
|
6
|
+
export declare function _redeemInvitationCodeDeserialize(result: PathUncheckedResponse): Promise<void>;
|
|
7
|
+
/** Redeem invite code to join a redeemable lab */
|
|
8
|
+
export declare function redeemInvitationCode(context: Client, parameters: RedeemRequest, options?: RedeemInvitationCodeOptionalParams): Promise<void>;
|
|
9
|
+
//# sourceMappingURL=operations.d.ts.map
|