@azure/arm-education 1.0.0-beta.3 → 1.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +3 -3
- package/README.md +30 -26
- 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 +34 -0
- package/dist/browser/educationManagementClient.js +50 -0
- package/dist/browser/educationManagementClient.js.map +1 -0
- package/dist/browser/index.d.ts +18 -0
- package/dist/browser/index.js +8 -0
- package/dist/browser/index.js.map +1 -0
- 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 +3 -0
- package/dist/browser/models/index.js +4 -0
- package/dist/browser/models/index.js.map +1 -0
- 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/package.json +3 -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 +34 -0
- package/dist/commonjs/educationManagementClient.js +72 -0
- package/dist/commonjs/educationManagementClient.js.map +7 -0
- package/dist/commonjs/index.d.ts +18 -0
- package/dist/commonjs/index.js +57 -0
- package/dist/commonjs/index.js.map +7 -0
- 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 +3 -0
- package/dist/commonjs/models/index.js +46 -0
- package/dist/commonjs/models/index.js.map +7 -0
- 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/package.json +3 -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/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
- 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 +34 -0
- package/dist/esm/educationManagementClient.js +50 -0
- package/dist/esm/educationManagementClient.js.map +1 -0
- package/dist/esm/index.d.ts +18 -0
- package/dist/esm/index.js +8 -0
- package/dist/esm/index.js.map +1 -0
- 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 +3 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/models/index.js.map +1 -0
- 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/package.json +3 -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 +205 -88
- package/CHANGELOG.md +0 -30
- package/dist/index.js +0 -2623
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/samples-dev/grantsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/grantsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/grantsGetSample.js +0 -58
- package/dist-esm/samples-dev/grantsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/grantsListAllSample.d.ts +0 -2
- package/dist-esm/samples-dev/grantsListAllSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/grantsListAllSample.js +0 -82
- package/dist-esm/samples-dev/grantsListAllSample.js.map +0 -1
- package/dist-esm/samples-dev/grantsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/grantsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/grantsListSample.js +0 -86
- package/dist-esm/samples-dev/grantsListSample.js.map +0 -1
- package/dist-esm/samples-dev/joinRequestsApproveSample.d.ts +0 -2
- package/dist-esm/samples-dev/joinRequestsApproveSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/joinRequestsApproveSample.js +0 -39
- package/dist-esm/samples-dev/joinRequestsApproveSample.js.map +0 -1
- package/dist-esm/samples-dev/joinRequestsDenySample.d.ts +0 -2
- package/dist-esm/samples-dev/joinRequestsDenySample.d.ts.map +0 -1
- package/dist-esm/samples-dev/joinRequestsDenySample.js +0 -39
- package/dist-esm/samples-dev/joinRequestsDenySample.js.map +0 -1
- package/dist-esm/samples-dev/joinRequestsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/joinRequestsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/joinRequestsGetSample.js +0 -39
- package/dist-esm/samples-dev/joinRequestsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/joinRequestsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/joinRequestsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/joinRequestsListSample.js +0 -54
- package/dist-esm/samples-dev/joinRequestsListSample.js.map +0 -1
- package/dist-esm/samples-dev/labsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/labsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/labsCreateOrUpdateSample.js +0 -44
- package/dist-esm/samples-dev/labsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/labsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/labsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/labsDeleteSample.js +0 -38
- package/dist-esm/samples-dev/labsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/labsGenerateInviteCodeSample.d.ts +0 -2
- package/dist-esm/samples-dev/labsGenerateInviteCodeSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/labsGenerateInviteCodeSample.js +0 -39
- package/dist-esm/samples-dev/labsGenerateInviteCodeSample.js.map +0 -1
- package/dist-esm/samples-dev/labsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/labsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/labsGetSample.js +0 -60
- package/dist-esm/samples-dev/labsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/labsListAllSample.d.ts +0 -2
- package/dist-esm/samples-dev/labsListAllSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/labsListAllSample.js +0 -86
- package/dist-esm/samples-dev/labsListAllSample.js.map +0 -1
- package/dist-esm/samples-dev/labsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/labsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/labsListSample.js +0 -88
- package/dist-esm/samples-dev/labsListSample.js.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.js +0 -35
- package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
- package/dist-esm/samples-dev/redeemInvitationCodeSample.d.ts +0 -2
- package/dist-esm/samples-dev/redeemInvitationCodeSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/redeemInvitationCodeSample.js +0 -40
- package/dist-esm/samples-dev/redeemInvitationCodeSample.js.map +0 -1
- package/dist-esm/samples-dev/studentLabsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/studentLabsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/studentLabsGetSample.js +0 -36
- package/dist-esm/samples-dev/studentLabsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/studentLabsListAllSample.d.ts +0 -2
- package/dist-esm/samples-dev/studentLabsListAllSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/studentLabsListAllSample.js +0 -49
- package/dist-esm/samples-dev/studentLabsListAllSample.js.map +0 -1
- package/dist-esm/samples-dev/studentsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/studentsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/studentsCreateOrUpdateSample.js +0 -47
- package/dist-esm/samples-dev/studentsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/studentsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/studentsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/studentsDeleteSample.js +0 -39
- package/dist-esm/samples-dev/studentsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/studentsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/studentsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/studentsGetSample.js +0 -39
- package/dist-esm/samples-dev/studentsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/studentsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/studentsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/studentsListSample.js +0 -52
- package/dist-esm/samples-dev/studentsListSample.js.map +0 -1
- package/dist-esm/src/educationManagementClient.d.ts +0 -29
- package/dist-esm/src/educationManagementClient.d.ts.map +0 -1
- package/dist-esm/src/educationManagementClient.js +0 -127
- package/dist-esm/src/educationManagementClient.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -6
- package/dist-esm/src/index.d.ts.map +0 -1
- package/dist-esm/src/index.js +0 -13
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/models/index.d.ts +0 -685
- package/dist-esm/src/models/index.d.ts.map +0 -1
- package/dist-esm/src/models/index.js +0 -92
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.d.ts +0 -22
- package/dist-esm/src/models/mappers.d.ts.map +0 -1
- package/dist-esm/src/models/mappers.js +0 -702
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.d.ts +0 -22
- package/dist-esm/src/models/parameters.d.ts.map +0 -1
- package/dist-esm/src/models/parameters.js +0 -185
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/grants.d.ts +0 -63
- package/dist-esm/src/operations/grants.d.ts.map +0 -1
- package/dist-esm/src/operations/grants.js +0 -280
- package/dist-esm/src/operations/grants.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -7
- package/dist-esm/src/operations/index.d.ts.map +0 -1
- package/dist-esm/src/operations/index.js +0 -14
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/joinRequests.d.ts +0 -68
- package/dist-esm/src/operations/joinRequests.d.ts.map +0 -1
- package/dist-esm/src/operations/joinRequests.js +0 -270
- package/dist-esm/src/operations/joinRequests.js.map +0 -1
- package/dist-esm/src/operations/labs.d.ts +0 -103
- package/dist-esm/src/operations/labs.d.ts.map +0 -1
- package/dist-esm/src/operations/labs.js +0 -432
- package/dist-esm/src/operations/labs.js.map +0 -1
- package/dist-esm/src/operations/operations.d.ts +0 -18
- package/dist-esm/src/operations/operations.d.ts.map +0 -1
- package/dist-esm/src/operations/operations.js +0 -46
- package/dist-esm/src/operations/operations.js.map +0 -1
- package/dist-esm/src/operations/studentLabs.d.ts +0 -38
- package/dist-esm/src/operations/studentLabs.d.ts.map +0 -1
- package/dist-esm/src/operations/studentLabs.js +0 -155
- package/dist-esm/src/operations/studentLabs.js.map +0 -1
- package/dist-esm/src/operations/students.d.ts +0 -70
- package/dist-esm/src/operations/students.d.ts.map +0 -1
- package/dist-esm/src/operations/students.js +0 -281
- package/dist-esm/src/operations/students.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/grants.d.ts +0 -25
- package/dist-esm/src/operationsInterfaces/grants.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/grants.js +0 -9
- package/dist-esm/src/operationsInterfaces/grants.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -7
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.js +0 -14
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/joinRequests.d.ts +0 -41
- package/dist-esm/src/operationsInterfaces/joinRequests.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/joinRequests.js +0 -9
- package/dist-esm/src/operationsInterfaces/joinRequests.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/labs.d.ts +0 -58
- package/dist-esm/src/operationsInterfaces/labs.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/labs.js +0 -9
- package/dist-esm/src/operationsInterfaces/labs.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.d.ts +0 -10
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js +0 -9
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/studentLabs.d.ts +0 -17
- package/dist-esm/src/operationsInterfaces/studentLabs.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/studentLabs.js +0 -9
- package/dist-esm/src/operationsInterfaces/studentLabs.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/students.d.ts +0 -43
- package/dist-esm/src/operationsInterfaces/students.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/students.js +0 -9
- package/dist-esm/src/operationsInterfaces/students.js.map +0 -1
- package/dist-esm/src/pagingHelper.d.ts +0 -13
- package/dist-esm/src/pagingHelper.d.ts.map +0 -1
- package/dist-esm/src/pagingHelper.js +0 -32
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/review/arm-education.api.md +0 -529
- package/rollup.config.js +0 -122
- package/src/educationManagementClient.ts +0 -196
- package/src/index.ts +0 -13
- package/src/models/index.ts +0 -786
- package/src/models/mappers.ts +0 -775
- package/src/models/parameters.ts +0 -215
- package/src/operations/grants.ts +0 -354
- package/src/operations/index.ts +0 -14
- package/src/operations/joinRequests.ts +0 -371
- package/src/operations/labs.ts +0 -591
- package/src/operations/operations.ts +0 -59
- package/src/operations/studentLabs.ts +0 -182
- package/src/operations/students.ts +0 -384
- package/src/operationsInterfaces/grants.ts +0 -50
- package/src/operationsInterfaces/index.ts +0 -14
- package/src/operationsInterfaces/joinRequests.ts +0 -80
- package/src/operationsInterfaces/labs.ts +0 -110
- package/src/operationsInterfaces/operations.ts +0 -21
- package/src/operationsInterfaces/studentLabs.ts +0 -36
- package/src/operationsInterfaces/students.ts +0 -84
- package/src/pagingHelper.ts +0 -39
- package/tsconfig.json +0 -33
- package/types/arm-education.d.ts +0 -995
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,oBAAoB,EAAE,MAAM,yDAAyD,CAAC;AAkB/F,MAAM,UAAU,u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AAC,MAAM,CAAC;QAClB,MAAM,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC7E,cAAc,EAAE,IAAI,CAAC,gBAAgB,CAAC;QACtC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC;QACtB,aAAa,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAC/F,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { areAllPropsUndefined } from \"../static-helpers/serialization/check-prop-undefined.js\";\n\n/**\n * This file contains only generated model types and their (de)serializers.\n * Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.\n */\n/* eslint-disable @typescript-eslint/naming-convention */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/** redeem request. */\nexport interface RedeemRequest {\n /** redeem code */\n redeemCode: string;\n /** first name of requester */\n firstName: string;\n /** last name of requester */\n lastName: string;\n}\n\nexport function redeemRequestSerializer(item: RedeemRequest): any {\n return {\n redeemCode: item[\"redeemCode\"],\n firstName: item[\"firstName\"],\n lastName: item[\"lastName\"],\n };\n}\n\n/** Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. */\nexport interface ErrorResponseBody {\n /** The details of the error. */\n error?: ErrorResponse;\n}\n\nexport function errorResponseBodyDeserializer(item: any): ErrorResponseBody {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorResponseDeserializer(item[\"error\"]),\n };\n}\n\n/** Describes the format of Error response. */\nexport interface ErrorResponse {\n /** Error code */\n code?: string;\n /** Error message indicating why the operation failed. */\n message?: string;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n };\n}\n\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport interface OperationListResult {\n /** The Operation items on this page */\n readonly value: Operation[];\n /** The link to the next page of items */\n readonly nextLink?: string;\n}\n\nexport function operationListResultDeserializer(item: any): OperationListResult {\n return {\n value: operationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function operationArrayDeserializer(result: Array<Operation>): any[] {\n return result.map((item) => {\n return operationDeserializer(item);\n });\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\" */\n readonly name?: string;\n /** Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations. */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n display?: OperationDisplay;\n /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\n readonly origin?: Origin;\n /** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\n readonly actionType?: ActionType;\n}\n\nexport function operationDeserializer(item: any): Operation {\n return {\n name: item[\"name\"],\n isDataAction: item[\"isDataAction\"],\n display: !item[\"display\"] ? item[\"display\"] : operationDisplayDeserializer(item[\"display\"]),\n origin: item[\"origin\"],\n actionType: item[\"actionType\"],\n };\n}\n\n/** Localized display information for an operation. */\nexport interface OperationDisplay {\n /** The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\". */\n readonly provider?: string;\n /** The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\". */\n readonly resource?: string;\n /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\". */\n readonly operation?: string;\n /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */\n readonly description?: string;\n}\n\nexport function operationDisplayDeserializer(item: any): OperationDisplay {\n return {\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n operation: item[\"operation\"],\n description: item[\"description\"],\n };\n}\n\n/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\nexport enum KnownOrigin {\n /** Indicates the operation is initiated by a user. */\n User = \"user\",\n /** Indicates the operation is initiated by a system. */\n System = \"system\",\n /** Indicates the operation is initiated by a user or system. */\n UserSystem = \"user,system\",\n}\n\n/**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" \\\n * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user**: Indicates the operation is initiated by a user. \\\n * **system**: Indicates the operation is initiated by a system. \\\n * **user,system**: Indicates the operation is initiated by a user or system.\n */\nexport type Origin = string;\n\n/** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\nexport enum KnownActionType {\n /** Actions are for internal-only APIs. */\n Internal = \"Internal\",\n}\n\n/**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**: Actions are for internal-only APIs.\n */\nexport type ActionType = string;\n\n/** Grant details. */\nexport interface GrantDetails extends ProxyResource {\n /** Offer Cap */\n readonly offerCap?: Amount;\n /** Grant Effective Date */\n readonly effectiveDate?: Date;\n /** Grant Offer Type */\n readonly offerType?: GrantType;\n /** Expiration Date */\n readonly expirationDate?: Date;\n /** Grant status */\n readonly status?: GrantStatus;\n /** allocated budget */\n readonly allocatedBudget?: Amount;\n}\n\nexport function grantDetailsDeserializer(item: any): GrantDetails {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n ...(!item[\"properties\"]\n ? item[\"properties\"]\n : _grantDetailsPropertiesDeserializer(item[\"properties\"])),\n };\n}\n\n/** Grant detail properties */\nexport interface GrantDetailProperties {\n /** Offer Cap */\n readonly offerCap?: Amount;\n /** Grant Effective Date */\n readonly effectiveDate?: Date;\n /** Grant Offer Type */\n readonly offerType?: GrantType;\n /** Expiration Date */\n readonly expirationDate?: Date;\n /** Grant status */\n readonly status?: GrantStatus;\n /** allocated budget */\n readonly allocatedBudget?: Amount;\n}\n\nexport function grantDetailPropertiesDeserializer(item: any): GrantDetailProperties {\n return {\n offerCap: !item[\"offerCap\"] ? item[\"offerCap\"] : amountDeserializer(item[\"offerCap\"]),\n effectiveDate: !item[\"effectiveDate\"] ? item[\"effectiveDate\"] : new Date(item[\"effectiveDate\"]),\n offerType: item[\"offerType\"],\n expirationDate: !item[\"expirationDate\"]\n ? item[\"expirationDate\"]\n : new Date(item[\"expirationDate\"]),\n status: item[\"status\"],\n allocatedBudget: !item[\"allocatedBudget\"]\n ? item[\"allocatedBudget\"]\n : amountDeserializer(item[\"allocatedBudget\"]),\n };\n}\n\n/** The amount. */\nexport interface Amount {\n /** The type of currency being used for the value. */\n currency?: string;\n /** Amount value. */\n value?: number;\n}\n\nexport function amountSerializer(item: Amount): any {\n return { currency: item[\"currency\"], value: item[\"value\"] };\n}\n\nexport function amountDeserializer(item: any): Amount {\n return {\n currency: item[\"currency\"],\n value: item[\"value\"],\n };\n}\n\n/** Grant Offer Type */\nexport enum KnownGrantType {\n /** Student */\n Student = \"Student\",\n /** Academic */\n Academic = \"Academic\",\n}\n\n/**\n * Grant Offer Type \\\n * {@link KnownGrantType} can be used interchangeably with GrantType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Student**: Student \\\n * **Academic**: Academic\n */\nexport type GrantType = string;\n\n/** Grant status */\nexport enum KnownGrantStatus {\n /** Active */\n Active = \"Active\",\n /** Inactive */\n Inactive = \"Inactive\",\n}\n\n/**\n * Grant status \\\n * {@link KnownGrantStatus} can be used interchangeably with GrantStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Active**: Active \\\n * **Inactive**: Inactive\n */\nexport type GrantStatus = string;\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\nexport function proxyResourceSerializer(_item: ProxyResource): any {\n return {};\n}\n\nexport function proxyResourceDeserializer(item: any): ProxyResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemData;\n}\n\nexport function resourceSerializer(_item: Resource): any {\n return {};\n}\n\nexport function resourceDeserializer(item: any): Resource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\nexport function systemDataDeserializer(item: any): SystemData {\n return {\n createdBy: item[\"createdBy\"],\n createdByType: item[\"createdByType\"],\n createdAt: !item[\"createdAt\"] ? item[\"createdAt\"] : new Date(item[\"createdAt\"]),\n lastModifiedBy: item[\"lastModifiedBy\"],\n lastModifiedByType: item[\"lastModifiedByType\"],\n lastModifiedAt: !item[\"lastModifiedAt\"]\n ? item[\"lastModifiedAt\"]\n : new Date(item[\"lastModifiedAt\"]),\n };\n}\n\n/** The kind of entity that created the resource. */\nexport enum KnownCreatedByType {\n /** The entity was created by a user. */\n User = \"User\",\n /** The entity was created by an application. */\n Application = \"Application\",\n /** The entity was created by a managed identity. */\n ManagedIdentity = \"ManagedIdentity\",\n /** The entity was created by a key. */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User**: The entity was created by a user. \\\n * **Application**: The entity was created by an application. \\\n * **ManagedIdentity**: The entity was created by a managed identity. \\\n * **Key**: The entity was created by a key.\n */\nexport type CreatedByType = string;\n\n/** List of Grants info. */\nexport interface _GrantListResponse {\n /** The GrantDetails items on this page. */\n readonly value?: GrantDetails[];\n /** The link to the next page of items. */\n nextLink?: string;\n}\n\nexport function _grantListResponseDeserializer(item: any): _GrantListResponse {\n return {\n value: !item[\"value\"] ? item[\"value\"] : grantDetailsArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function grantDetailsArrayDeserializer(result: Array<GrantDetails>): any[] {\n return result.map((item) => {\n return grantDetailsDeserializer(item);\n });\n}\n\n/** Lab details. */\nexport interface LabDetails extends ProxyResource {\n /** Lab Display Name */\n displayName?: string;\n /** Default monetary cap for each student in this lab */\n budgetPerStudent?: Amount;\n /** Detail description of this lab */\n description?: string;\n /** Default expiration date for each student in this lab */\n expirationDate?: Date;\n /** Lab creation date */\n readonly effectiveDate?: Date;\n /** The status of this lab */\n readonly status?: LabStatus;\n /** the total number of students that can be accepted to the lab. */\n readonly maxStudentCount?: number;\n /** invitation code for redeemable lab */\n readonly invitationCode?: string;\n /** Total budget */\n readonly totalBudget?: Amount;\n /** Total allocated budget */\n readonly totalAllocatedBudget?: Amount;\n}\n\nexport function labDetailsSerializer(item: LabDetails): any {\n return {\n properties: areAllPropsUndefined(item, [\n \"displayName\",\n \"budgetPerStudent\",\n \"description\",\n \"expirationDate\",\n ])\n ? undefined\n : _labDetailsPropertiesSerializer(item),\n };\n}\n\nexport function labDetailsDeserializer(item: any): LabDetails {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n ...(!item[\"properties\"]\n ? item[\"properties\"]\n : _labDetailsPropertiesDeserializer(item[\"properties\"])),\n };\n}\n\n/** Lab detail result properties. */\nexport interface LabProperties {\n /** Lab Display Name */\n displayName: string;\n /** Default monetary cap for each student in this lab */\n budgetPerStudent: Amount;\n /** Detail description of this lab */\n description: string;\n /** Default expiration date for each student in this lab */\n expirationDate: Date;\n /** Lab creation date */\n readonly effectiveDate?: Date;\n /** The status of this lab */\n readonly status?: LabStatus;\n /** the total number of students that can be accepted to the lab. */\n readonly maxStudentCount?: number;\n /** invitation code for redeemable lab */\n readonly invitationCode?: string;\n /** The type of currency being used for the value. */\n currency?: string;\n /** Amount value. */\n value?: number;\n /** The type of currency being used for the value. */\n currencyTotalAllocatedBudgetCurrency?: string;\n /** Amount value. */\n valueTotalAllocatedBudgetValue?: number;\n}\n\nexport function labPropertiesSerializer(item: LabProperties): any {\n return {\n displayName: item[\"displayName\"],\n budgetPerStudent: amountSerializer(item[\"budgetPerStudent\"]),\n description: item[\"description\"],\n expirationDate: item[\"expirationDate\"].toISOString(),\n };\n}\n\nexport function labPropertiesDeserializer(item: any): LabProperties {\n return {\n displayName: item[\"displayName\"],\n budgetPerStudent: amountDeserializer(item[\"budgetPerStudent\"]),\n description: item[\"description\"],\n expirationDate: new Date(item[\"expirationDate\"]),\n effectiveDate: !item[\"effectiveDate\"] ? item[\"effectiveDate\"] : new Date(item[\"effectiveDate\"]),\n status: item[\"status\"],\n maxStudentCount: item[\"maxStudentCount\"],\n invitationCode: item[\"invitationCode\"],\n ...(!item[\"totalBudget\"]\n ? item[\"totalBudget\"]\n : _labPropertiesTotalBudgetDeserializer(item[\"totalBudget\"])),\n ...(!item[\"totalAllocatedBudget\"]\n ? item[\"totalAllocatedBudget\"]\n : _labPropertiesTotalAllocatedBudgetDeserializer(item[\"totalAllocatedBudget\"])),\n };\n}\n\n/** The status of this lab */\nexport enum KnownLabStatus {\n /** Active */\n Active = \"Active\",\n /** Deleted */\n Deleted = \"Deleted\",\n /** Pending */\n Pending = \"Pending\",\n}\n\n/**\n * The status of this lab \\\n * {@link KnownLabStatus} can be used interchangeably with LabStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Active**: Active \\\n * **Deleted**: Deleted \\\n * **Pending**: Pending\n */\nexport type LabStatus = string;\n\n/** List of Labs info. */\nexport interface _LabListResult {\n /** The LabDetails items on this page. */\n readonly value?: LabDetails[];\n /** The link to the next page of items. */\n nextLink?: string;\n}\n\nexport function _labListResultDeserializer(item: any): _LabListResult {\n return {\n value: !item[\"value\"] ? item[\"value\"] : labDetailsArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function labDetailsArraySerializer(result: Array<LabDetails>): any[] {\n return result.map((item) => {\n return labDetailsSerializer(item);\n });\n}\n\nexport function labDetailsArrayDeserializer(result: Array<LabDetails>): any[] {\n return result.map((item) => {\n return labDetailsDeserializer(item);\n });\n}\n\n/** invite code generate request. */\nexport interface InviteCodeGenerateRequest {\n /** the total number of students that can be accepted to the lab. */\n maxStudentCount?: number;\n}\n\nexport function inviteCodeGenerateRequestSerializer(item: InviteCodeGenerateRequest): any {\n return { maxStudentCount: item[\"maxStudentCount\"] };\n}\n\n/** join requests. */\nexport interface JoinRequestDetails extends ProxyResource {\n /** First Name */\n firstName?: string;\n /** Last Name */\n lastName?: string;\n /** join request email */\n email?: string;\n /** Join request status */\n status?: JoinRequestStatus;\n}\n\nexport function joinRequestDetailsDeserializer(item: any): JoinRequestDetails {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n ...(!item[\"properties\"]\n ? item[\"properties\"]\n : _joinRequestDetailsPropertiesDeserializer(item[\"properties\"])),\n };\n}\n\n/** Join request properties. */\nexport interface JoinRequestProperties {\n /** First Name */\n firstName?: string;\n /** Last Name */\n lastName?: string;\n /** join request email */\n email?: string;\n /** Join request status */\n status?: JoinRequestStatus;\n}\n\nexport function joinRequestPropertiesDeserializer(item: any): JoinRequestProperties {\n return {\n firstName: item[\"firstName\"],\n lastName: item[\"lastName\"],\n email: item[\"email\"],\n status: item[\"status\"],\n };\n}\n\n/** Join request status */\nexport enum KnownJoinRequestStatus {\n /** Pending */\n Pending = \"Pending\",\n /** Denied */\n Denied = \"Denied\",\n}\n\n/**\n * Join request status \\\n * {@link KnownJoinRequestStatus} can be used interchangeably with JoinRequestStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Pending**: Pending \\\n * **Denied**: Denied\n */\nexport type JoinRequestStatus = string;\n\n/** list of join requests. */\nexport interface _JoinRequestList {\n /** The JoinRequestDetails items on this page. */\n readonly value?: JoinRequestDetails[];\n /** The link to the next page of items. */\n nextLink?: string;\n}\n\nexport function _joinRequestListDeserializer(item: any): _JoinRequestList {\n return {\n value: !item[\"value\"] ? item[\"value\"] : joinRequestDetailsArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function joinRequestDetailsArrayDeserializer(result: Array<JoinRequestDetails>): any[] {\n return result.map((item) => {\n return joinRequestDetailsDeserializer(item);\n });\n}\n\n/** Student details. */\nexport interface StudentDetails extends ProxyResource {\n /** First Name */\n firstName?: string;\n /** Last Name */\n lastName?: string;\n /** Student Email */\n email?: string;\n /** Student Role */\n role?: StudentRole;\n /** Student Budget */\n budget?: Amount;\n /** Subscription Id */\n readonly subscriptionId?: string;\n /** Date this student is set to expire from the lab. */\n expirationDate?: Date;\n /** Student Lab Status */\n readonly status?: StudentLabStatus;\n /** Date student was added to the lab */\n readonly effectiveDate?: Date;\n /** Subscription alias */\n subscriptionAlias?: string;\n /** subscription invite last sent date */\n subscriptionInviteLastSentDate?: Date;\n}\n\nexport function studentDetailsSerializer(item: StudentDetails): any {\n return {\n properties: areAllPropsUndefined(item, [\n \"firstName\",\n \"lastName\",\n \"email\",\n \"role\",\n \"budget\",\n \"expirationDate\",\n \"subscriptionAlias\",\n \"subscriptionInviteLastSentDate\",\n ])\n ? undefined\n : _studentDetailsPropertiesSerializer(item),\n };\n}\n\nexport function studentDetailsDeserializer(item: any): StudentDetails {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n ...(!item[\"properties\"]\n ? item[\"properties\"]\n : _studentDetailsPropertiesDeserializer(item[\"properties\"])),\n };\n}\n\n/** Student detail properties */\nexport interface StudentProperties {\n /** First Name */\n firstName: string;\n /** Last Name */\n lastName: string;\n /** Student Email */\n email: string;\n /** Student Role */\n role: StudentRole;\n /** Student Budget */\n budget: Amount;\n /** Subscription Id */\n readonly subscriptionId?: string;\n /** Date this student is set to expire from the lab. */\n expirationDate: Date;\n /** Student Lab Status */\n readonly status?: StudentLabStatus;\n /** Date student was added to the lab */\n readonly effectiveDate?: Date;\n /** Subscription alias */\n subscriptionAlias?: string;\n /** subscription invite last sent date */\n subscriptionInviteLastSentDate?: Date;\n}\n\nexport function studentPropertiesSerializer(item: StudentProperties): any {\n return {\n firstName: item[\"firstName\"],\n lastName: item[\"lastName\"],\n email: item[\"email\"],\n role: item[\"role\"],\n budget: amountSerializer(item[\"budget\"]),\n expirationDate: item[\"expirationDate\"].toISOString(),\n subscriptionAlias: item[\"subscriptionAlias\"],\n subscriptionInviteLastSentDate: !item[\"subscriptionInviteLastSentDate\"]\n ? item[\"subscriptionInviteLastSentDate\"]\n : item[\"subscriptionInviteLastSentDate\"].toISOString(),\n };\n}\n\nexport function studentPropertiesDeserializer(item: any): StudentProperties {\n return {\n firstName: item[\"firstName\"],\n lastName: item[\"lastName\"],\n email: item[\"email\"],\n role: item[\"role\"],\n budget: amountDeserializer(item[\"budget\"]),\n subscriptionId: item[\"subscriptionId\"],\n expirationDate: new Date(item[\"expirationDate\"]),\n status: item[\"status\"],\n effectiveDate: !item[\"effectiveDate\"] ? item[\"effectiveDate\"] : new Date(item[\"effectiveDate\"]),\n subscriptionAlias: item[\"subscriptionAlias\"],\n subscriptionInviteLastSentDate: !item[\"subscriptionInviteLastSentDate\"]\n ? item[\"subscriptionInviteLastSentDate\"]\n : new Date(item[\"subscriptionInviteLastSentDate\"]),\n };\n}\n\n/** Student Role */\nexport enum KnownStudentRole {\n /** Student */\n Student = \"Student\",\n /** Admin */\n Admin = \"Admin\",\n}\n\n/**\n * Student Role \\\n * {@link KnownStudentRole} can be used interchangeably with StudentRole,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Student**: Student \\\n * **Admin**: Admin\n */\nexport type StudentRole = string;\n\n/** Student Lab Status */\nexport enum KnownStudentLabStatus {\n /** Active */\n Active = \"Active\",\n /** Disabled */\n Disabled = \"Disabled\",\n /** Expired */\n Expired = \"Expired\",\n /** Pending */\n Pending = \"Pending\",\n /** Deleted */\n Deleted = \"Deleted\",\n}\n\n/**\n * Student Lab Status \\\n * {@link KnownStudentLabStatus} can be used interchangeably with StudentLabStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Active**: Active \\\n * **Disabled**: Disabled \\\n * **Expired**: Expired \\\n * **Pending**: Pending \\\n * **Deleted**: Deleted\n */\nexport type StudentLabStatus = string;\n\n/** List of Students info. */\nexport interface _StudentListResult {\n /** The StudentDetails items on this page. */\n readonly value?: StudentDetails[];\n /** The link to the next page of items. */\n nextLink?: string;\n}\n\nexport function _studentListResultDeserializer(item: any): _StudentListResult {\n return {\n value: !item[\"value\"] ? item[\"value\"] : studentDetailsArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function studentDetailsArraySerializer(result: Array<StudentDetails>): any[] {\n return result.map((item) => {\n return studentDetailsSerializer(item);\n });\n}\n\nexport function studentDetailsArrayDeserializer(result: Array<StudentDetails>): any[] {\n return result.map((item) => {\n return studentDetailsDeserializer(item);\n });\n}\n\n/** Student lab details. */\nexport interface StudentLabDetails extends ProxyResource {\n /** Student lab Display Name */\n readonly displayName?: string;\n /** Detail description of this lab */\n readonly description?: string;\n /** Date the lab will expire and by default will be the expiration date for each student in this lab */\n readonly expirationDate?: Date;\n /** Student Role */\n readonly role?: StudentRole;\n /** Student Budget */\n readonly budget?: Amount;\n /** Subscription Id */\n readonly subscriptionId?: string;\n /** Student Lab Status */\n readonly status?: StudentLabStatus;\n /** User Added Date */\n readonly effectiveDate?: Date;\n /** Lab Scope. /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default */\n readonly labScope?: string;\n}\n\nexport function studentLabDetailsDeserializer(item: any): StudentLabDetails {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n ...(!item[\"properties\"]\n ? item[\"properties\"]\n : _studentLabDetailsPropertiesDeserializer(item[\"properties\"])),\n };\n}\n\n/** Student lab detail properties */\nexport interface StudentLabProperties {\n /** Student lab Display Name */\n readonly displayName?: string;\n /** Detail description of this lab */\n readonly description?: string;\n /** Date the lab will expire and by default will be the expiration date for each student in this lab */\n readonly expirationDate?: Date;\n /** Student Role */\n readonly role?: StudentRole;\n /** Student Budget */\n readonly budget?: Amount;\n /** Subscription Id */\n readonly subscriptionId?: string;\n /** Student Lab Status */\n readonly status?: StudentLabStatus;\n /** User Added Date */\n readonly effectiveDate?: Date;\n /** Lab Scope. /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default */\n readonly labScope?: string;\n}\n\nexport function studentLabPropertiesDeserializer(item: any): StudentLabProperties {\n return {\n displayName: item[\"displayName\"],\n description: item[\"description\"],\n expirationDate: !item[\"expirationDate\"]\n ? item[\"expirationDate\"]\n : new Date(item[\"expirationDate\"]),\n role: item[\"role\"],\n budget: !item[\"budget\"] ? item[\"budget\"] : amountDeserializer(item[\"budget\"]),\n subscriptionId: item[\"subscriptionId\"],\n status: item[\"status\"],\n effectiveDate: !item[\"effectiveDate\"] ? item[\"effectiveDate\"] : new Date(item[\"effectiveDate\"]),\n labScope: item[\"labScope\"],\n };\n}\n\n/** List of Student Labs info. */\nexport interface _StudentLabListResult {\n /** The StudentLabDetails items on this page. */\n readonly value?: StudentLabDetails[];\n /** The link to the next page of items. */\n nextLink?: string;\n}\n\nexport function _studentLabListResultDeserializer(item: any): _StudentLabListResult {\n return {\n value: !item[\"value\"] ? item[\"value\"] : studentLabDetailsArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function studentLabDetailsArrayDeserializer(result: Array<StudentLabDetails>): any[] {\n return result.map((item) => {\n return studentLabDetailsDeserializer(item);\n });\n}\n\n/** The available API versions. */\nexport enum KnownVersions {\n /** The 2021-12-01-preview API version. */\n V20211201Preview = \"2021-12-01-preview\",\n}\n\nexport function _grantDetailsPropertiesDeserializer(item: any) {\n return {\n offerCap: !item[\"offerCap\"] ? item[\"offerCap\"] : amountDeserializer(item[\"offerCap\"]),\n effectiveDate: !item[\"effectiveDate\"] ? item[\"effectiveDate\"] : new Date(item[\"effectiveDate\"]),\n offerType: item[\"offerType\"],\n expirationDate: !item[\"expirationDate\"]\n ? item[\"expirationDate\"]\n : new Date(item[\"expirationDate\"]),\n status: item[\"status\"],\n allocatedBudget: !item[\"allocatedBudget\"]\n ? item[\"allocatedBudget\"]\n : amountDeserializer(item[\"allocatedBudget\"]),\n };\n}\n\nexport function _labPropertiesTotalBudgetSerializer(item: LabProperties): any {\n return { currency: item[\"currency\"], value: item[\"value\"] };\n}\n\nexport function _labPropertiesTotalBudgetDeserializer(item: any) {\n return {\n currency: item[\"currency\"],\n value: item[\"value\"],\n };\n}\n\nexport function _labPropertiesTotalAllocatedBudgetSerializer(item: LabProperties): any {\n return {\n currency: item[\"currencyTotalAllocatedBudgetCurrency\"],\n value: item[\"valueTotalAllocatedBudgetValue\"],\n };\n}\n\nexport function _labPropertiesTotalAllocatedBudgetDeserializer(item: any) {\n return {\n currencyTotalAllocatedBudgetCurrency: item[\"currency\"],\n valueTotalAllocatedBudgetValue: item[\"value\"],\n };\n}\n\nexport function _labDetailsPropertiesSerializer(item: LabDetails): any {\n return {\n displayName: item[\"displayName\"],\n budgetPerStudent: !item[\"budgetPerStudent\"]\n ? item[\"budgetPerStudent\"]\n : amountSerializer(item[\"budgetPerStudent\"]),\n description: item[\"description\"],\n expirationDate: !item[\"expirationDate\"]\n ? item[\"expirationDate\"]\n : item[\"expirationDate\"].toISOString(),\n };\n}\n\nexport function _labDetailsPropertiesDeserializer(item: any) {\n return {\n displayName: item[\"displayName\"],\n budgetPerStudent: !item[\"budgetPerStudent\"]\n ? item[\"budgetPerStudent\"]\n : amountDeserializer(item[\"budgetPerStudent\"]),\n description: item[\"description\"],\n expirationDate: !item[\"expirationDate\"]\n ? item[\"expirationDate\"]\n : new Date(item[\"expirationDate\"]),\n effectiveDate: !item[\"effectiveDate\"] ? item[\"effectiveDate\"] : new Date(item[\"effectiveDate\"]),\n status: item[\"status\"],\n maxStudentCount: item[\"maxStudentCount\"],\n invitationCode: item[\"invitationCode\"],\n totalBudget: !item[\"totalBudget\"]\n ? item[\"totalBudget\"]\n : amountDeserializer(item[\"totalBudget\"]),\n totalAllocatedBudget: !item[\"totalAllocatedBudget\"]\n ? item[\"totalAllocatedBudget\"]\n : amountDeserializer(item[\"totalAllocatedBudget\"]),\n };\n}\n\nexport function _joinRequestDetailsPropertiesDeserializer(item: any) {\n return {\n firstName: item[\"firstName\"],\n lastName: item[\"lastName\"],\n email: item[\"email\"],\n status: item[\"status\"],\n };\n}\n\nexport function _studentDetailsPropertiesSerializer(item: StudentDetails): any {\n return {\n firstName: item[\"firstName\"],\n lastName: item[\"lastName\"],\n email: item[\"email\"],\n role: item[\"role\"],\n budget: !item[\"budget\"] ? item[\"budget\"] : amountSerializer(item[\"budget\"]),\n expirationDate: !item[\"expirationDate\"]\n ? item[\"expirationDate\"]\n : item[\"expirationDate\"].toISOString(),\n subscriptionAlias: item[\"subscriptionAlias\"],\n subscriptionInviteLastSentDate: !item[\"subscriptionInviteLastSentDate\"]\n ? item[\"subscriptionInviteLastSentDate\"]\n : item[\"subscriptionInviteLastSentDate\"].toISOString(),\n };\n}\n\nexport function _studentDetailsPropertiesDeserializer(item: any) {\n return {\n firstName: item[\"firstName\"],\n lastName: item[\"lastName\"],\n email: item[\"email\"],\n role: item[\"role\"],\n budget: !item[\"budget\"] ? item[\"budget\"] : amountDeserializer(item[\"budget\"]),\n subscriptionId: item[\"subscriptionId\"],\n expirationDate: !item[\"expirationDate\"]\n ? item[\"expirationDate\"]\n : new Date(item[\"expirationDate\"]),\n status: item[\"status\"],\n effectiveDate: !item[\"effectiveDate\"] ? item[\"effectiveDate\"] : new Date(item[\"effectiveDate\"]),\n subscriptionAlias: item[\"subscriptionAlias\"],\n subscriptionInviteLastSentDate: !item[\"subscriptionInviteLastSentDate\"]\n ? item[\"subscriptionInviteLastSentDate\"]\n : new Date(item[\"subscriptionInviteLastSentDate\"]),\n };\n}\n\nexport function _studentLabDetailsPropertiesDeserializer(item: any) {\n return {\n displayName: item[\"displayName\"],\n description: item[\"description\"],\n expirationDate: !item[\"expirationDate\"]\n ? item[\"expirationDate\"]\n : new Date(item[\"expirationDate\"]),\n role: item[\"role\"],\n budget: !item[\"budget\"] ? item[\"budget\"] : amountDeserializer(item[\"budget\"]),\n subscriptionId: item[\"subscriptionId\"],\n status: item[\"status\"],\n effectiveDate: !item[\"effectiveDate\"] ? item[\"effectiveDate\"] : new Date(item[\"effectiveDate\"]),\n labScope: item[\"labScope\"],\n };\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An enum to describe Azure Cloud environments.
|
|
3
|
+
* @enum {string}
|
|
4
|
+
*/
|
|
5
|
+
export declare enum AzureClouds {
|
|
6
|
+
/** Azure public cloud, which is the default cloud for Azure SDKs. */
|
|
7
|
+
AZURE_PUBLIC_CLOUD = "AZURE_PUBLIC_CLOUD",
|
|
8
|
+
/** Azure China cloud */
|
|
9
|
+
AZURE_CHINA_CLOUD = "AZURE_CHINA_CLOUD",
|
|
10
|
+
/** Azure US government cloud */
|
|
11
|
+
AZURE_US_GOVERNMENT = "AZURE_US_GOVERNMENT"
|
|
12
|
+
}
|
|
13
|
+
/** The supported values for cloud setting as a string literal type */
|
|
14
|
+
export type AzureSupportedClouds = `${AzureClouds}`;
|
|
15
|
+
/**
|
|
16
|
+
* Gets the Azure Resource Manager endpoint URL for the specified cloud setting.
|
|
17
|
+
* @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.
|
|
18
|
+
* @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.
|
|
19
|
+
* @throws {Error} Throws an error if an unknown cloud setting is provided.
|
|
20
|
+
*/
|
|
21
|
+
export declare function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined;
|
|
22
|
+
//# sourceMappingURL=cloudSettingHelpers.d.ts.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
/**
|
|
4
|
+
* An enum to describe Azure Cloud environments.
|
|
5
|
+
* @enum {string}
|
|
6
|
+
*/
|
|
7
|
+
export var AzureClouds;
|
|
8
|
+
(function (AzureClouds) {
|
|
9
|
+
/** Azure public cloud, which is the default cloud for Azure SDKs. */
|
|
10
|
+
AzureClouds["AZURE_PUBLIC_CLOUD"] = "AZURE_PUBLIC_CLOUD";
|
|
11
|
+
/** Azure China cloud */
|
|
12
|
+
AzureClouds["AZURE_CHINA_CLOUD"] = "AZURE_CHINA_CLOUD";
|
|
13
|
+
/** Azure US government cloud */
|
|
14
|
+
AzureClouds["AZURE_US_GOVERNMENT"] = "AZURE_US_GOVERNMENT";
|
|
15
|
+
})(AzureClouds || (AzureClouds = {}));
|
|
16
|
+
/**
|
|
17
|
+
* Gets the Azure Resource Manager endpoint URL for the specified cloud setting.
|
|
18
|
+
* @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.
|
|
19
|
+
* @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.
|
|
20
|
+
* @throws {Error} Throws an error if an unknown cloud setting is provided.
|
|
21
|
+
*/
|
|
22
|
+
export function getArmEndpoint(cloudSetting) {
|
|
23
|
+
if (cloudSetting === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
const cloudEndpoints = {
|
|
27
|
+
AZURE_CHINA_CLOUD: "https://management.chinacloudapi.cn/",
|
|
28
|
+
AZURE_US_GOVERNMENT: "https://management.usgovcloudapi.net/",
|
|
29
|
+
AZURE_PUBLIC_CLOUD: "https://management.azure.com/",
|
|
30
|
+
};
|
|
31
|
+
if (cloudSetting in cloudEndpoints) {
|
|
32
|
+
return cloudEndpoints[cloudSetting];
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
throw new Error(`Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=cloudSettingHelpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloudSettingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/cloudSettingHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;GAGG;AACH,MAAM,CAAN,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,qEAAqE;IACrE,wDAAyC,CAAA;IACzC,wBAAwB;IACxB,sDAAuC,CAAA;IACvC,gCAAgC;IAChC,0DAA2C,CAAA;AAC7C,CAAC,EAPW,WAAW,KAAX,WAAW,QAOtB;AAKD;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,YAAmC;IAChE,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;QAC/B,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,cAAc,GAA6C;QAC/D,iBAAiB,EAAE,sCAAsC;QACzD,mBAAmB,EAAE,uCAAuC;QAC5D,kBAAkB,EAAE,+BAA+B;KACpD,CAAC;IACF,IAAI,YAAY,IAAI,cAAc,EAAE,CAAC;QACnC,OAAO,cAAc,CAAC,YAAY,CAAC,CAAC;IACtC,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,KAAK,CACb,0BAA0B,YAAY,6DAA6D,CACpG,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * An enum to describe Azure Cloud environments.\n * @enum {string}\n */\nexport enum AzureClouds {\n /** Azure public cloud, which is the default cloud for Azure SDKs. */\n AZURE_PUBLIC_CLOUD = \"AZURE_PUBLIC_CLOUD\",\n /** Azure China cloud */\n AZURE_CHINA_CLOUD = \"AZURE_CHINA_CLOUD\",\n /** Azure US government cloud */\n AZURE_US_GOVERNMENT = \"AZURE_US_GOVERNMENT\",\n}\n\n/** The supported values for cloud setting as a string literal type */\nexport type AzureSupportedClouds = `${AzureClouds}`;\n\n/**\n * Gets the Azure Resource Manager endpoint URL for the specified cloud setting.\n * @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.\n * @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.\n * @throws {Error} Throws an error if an unknown cloud setting is provided.\n */\nexport function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined {\n if (cloudSetting === undefined) {\n return undefined;\n }\n const cloudEndpoints: Record<keyof typeof AzureClouds, string> = {\n AZURE_CHINA_CLOUD: \"https://management.chinacloudapi.cn/\",\n AZURE_US_GOVERNMENT: \"https://management.usgovcloudapi.net/\",\n AZURE_PUBLIC_CLOUD: \"https://management.azure.com/\",\n };\n if (cloudSetting in cloudEndpoints) {\n return cloudEndpoints[cloudSetting];\n } else {\n throw new Error(\n `Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`,\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { Client, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
2
|
+
/**
|
|
3
|
+
* Options for the byPage method
|
|
4
|
+
*/
|
|
5
|
+
export interface PageSettings {
|
|
6
|
+
/**
|
|
7
|
+
* A reference to a specific page to start iterating from.
|
|
8
|
+
*/
|
|
9
|
+
continuationToken?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* An interface that describes a page of results.
|
|
13
|
+
*/
|
|
14
|
+
export type ContinuablePage<TElement, TPage = TElement[]> = TPage & {
|
|
15
|
+
/**
|
|
16
|
+
* The token that keeps track of where to continue the iterator
|
|
17
|
+
*/
|
|
18
|
+
continuationToken?: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* An interface that allows async iterable iteration both to completion and by page.
|
|
22
|
+
*/
|
|
23
|
+
export interface PagedAsyncIterableIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings> {
|
|
24
|
+
/**
|
|
25
|
+
* The next method, part of the iteration protocol
|
|
26
|
+
*/
|
|
27
|
+
next(): Promise<IteratorResult<TElement>>;
|
|
28
|
+
/**
|
|
29
|
+
* The connection to the async iterator, part of the iteration protocol
|
|
30
|
+
*/
|
|
31
|
+
[Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
|
|
32
|
+
/**
|
|
33
|
+
* Return an AsyncIterableIterator that works a page at a time
|
|
34
|
+
*/
|
|
35
|
+
byPage: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* An interface that describes how to communicate with the service.
|
|
39
|
+
*/
|
|
40
|
+
export interface PagedResult<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings> {
|
|
41
|
+
/**
|
|
42
|
+
* Link to the first page of results.
|
|
43
|
+
*/
|
|
44
|
+
firstPageLink?: string;
|
|
45
|
+
/**
|
|
46
|
+
* A method that returns a page of results.
|
|
47
|
+
*/
|
|
48
|
+
getPage: (pageLink?: string) => Promise<{
|
|
49
|
+
page: TPage;
|
|
50
|
+
nextPageLink?: string;
|
|
51
|
+
} | undefined>;
|
|
52
|
+
/**
|
|
53
|
+
* a function to implement the `byPage` method on the paged async iterator.
|
|
54
|
+
*/
|
|
55
|
+
byPage?: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;
|
|
56
|
+
/**
|
|
57
|
+
* A function to extract elements from a page.
|
|
58
|
+
*/
|
|
59
|
+
toElements?: (page: TPage) => TElement[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Options for the paging helper
|
|
63
|
+
*/
|
|
64
|
+
export interface BuildPagedAsyncIteratorOptions {
|
|
65
|
+
itemName?: string;
|
|
66
|
+
nextLinkName?: string;
|
|
67
|
+
nextLinkMethod?: "GET" | "POST";
|
|
68
|
+
apiVersion?: string;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
|
|
72
|
+
*/
|
|
73
|
+
export declare function buildPagedAsyncIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings, TResponse extends PathUncheckedResponse = PathUncheckedResponse>(client: Client, getInitialResponse: () => PromiseLike<TResponse>, processResponseBody: (result: TResponse) => PromiseLike<unknown>, expectedStatuses: string[], options?: BuildPagedAsyncIteratorOptions): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
|
|
74
|
+
//# sourceMappingURL=pagingHelpers.d.ts.map
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { createRestError } from "@azure-rest/core-client";
|
|
4
|
+
import { RestError } from "@azure/core-rest-pipeline";
|
|
5
|
+
/**
|
|
6
|
+
* Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
|
|
7
|
+
*/
|
|
8
|
+
export function buildPagedAsyncIterator(client, getInitialResponse, processResponseBody, expectedStatuses, options = {}) {
|
|
9
|
+
const itemName = options.itemName ?? "value";
|
|
10
|
+
const nextLinkName = options.nextLinkName ?? "nextLink";
|
|
11
|
+
const nextLinkMethod = options.nextLinkMethod ?? "GET";
|
|
12
|
+
const apiVersion = options.apiVersion;
|
|
13
|
+
const pagedResult = {
|
|
14
|
+
getPage: async (pageLink) => {
|
|
15
|
+
let result;
|
|
16
|
+
if (pageLink === undefined) {
|
|
17
|
+
result = await getInitialResponse();
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
const resolvedPageLink = apiVersion ? addApiVersionToUrl(pageLink, apiVersion) : pageLink;
|
|
21
|
+
result =
|
|
22
|
+
nextLinkMethod === "POST"
|
|
23
|
+
? await client.pathUnchecked(resolvedPageLink).post()
|
|
24
|
+
: await client.pathUnchecked(resolvedPageLink).get();
|
|
25
|
+
}
|
|
26
|
+
checkPagingRequest(result, expectedStatuses);
|
|
27
|
+
const results = await processResponseBody(result);
|
|
28
|
+
const nextLink = getNextLink(results, nextLinkName);
|
|
29
|
+
const values = getElements(results, itemName);
|
|
30
|
+
return {
|
|
31
|
+
page: values,
|
|
32
|
+
nextPageLink: nextLink,
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
byPage: (settings) => {
|
|
36
|
+
const { continuationToken } = settings ?? {};
|
|
37
|
+
return getPageAsyncIterator(pagedResult, {
|
|
38
|
+
pageLink: continuationToken,
|
|
39
|
+
});
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
return getPagedAsyncIterator(pagedResult);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* returns an async iterator that iterates over results. It also has a `byPage`
|
|
46
|
+
* method that returns pages of items at once.
|
|
47
|
+
*
|
|
48
|
+
* @param pagedResult - an object that specifies how to get pages.
|
|
49
|
+
* @returns a paged async iterator that iterates over results.
|
|
50
|
+
*/
|
|
51
|
+
function getPagedAsyncIterator(pagedResult) {
|
|
52
|
+
const iter = getItemAsyncIterator(pagedResult);
|
|
53
|
+
return {
|
|
54
|
+
next() {
|
|
55
|
+
return iter.next();
|
|
56
|
+
},
|
|
57
|
+
[Symbol.asyncIterator]() {
|
|
58
|
+
return this;
|
|
59
|
+
},
|
|
60
|
+
byPage: pagedResult?.byPage ??
|
|
61
|
+
((settings) => {
|
|
62
|
+
const { continuationToken } = settings ?? {};
|
|
63
|
+
return getPageAsyncIterator(pagedResult, {
|
|
64
|
+
pageLink: continuationToken,
|
|
65
|
+
});
|
|
66
|
+
}),
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
async function* getItemAsyncIterator(pagedResult) {
|
|
70
|
+
const pages = getPageAsyncIterator(pagedResult);
|
|
71
|
+
for await (const page of pages) {
|
|
72
|
+
yield* page;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
async function* getPageAsyncIterator(pagedResult, options = {}) {
|
|
76
|
+
const { pageLink } = options;
|
|
77
|
+
let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink);
|
|
78
|
+
if (!response) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
let result = response.page;
|
|
82
|
+
result.continuationToken = response.nextPageLink;
|
|
83
|
+
yield result;
|
|
84
|
+
while (response.nextPageLink) {
|
|
85
|
+
response = await pagedResult.getPage(response.nextPageLink);
|
|
86
|
+
if (!response) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
result = response.page;
|
|
90
|
+
result.continuationToken = response.nextPageLink;
|
|
91
|
+
yield result;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Gets for the value of nextLink in the body
|
|
96
|
+
*/
|
|
97
|
+
function getNextLink(body, nextLinkName) {
|
|
98
|
+
if (!nextLinkName) {
|
|
99
|
+
return undefined;
|
|
100
|
+
}
|
|
101
|
+
const nextLink = body[nextLinkName];
|
|
102
|
+
if (typeof nextLink !== "string" && typeof nextLink !== "undefined" && nextLink !== null) {
|
|
103
|
+
throw new RestError(`Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`);
|
|
104
|
+
}
|
|
105
|
+
if (nextLink === null) {
|
|
106
|
+
return undefined;
|
|
107
|
+
}
|
|
108
|
+
return nextLink;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Gets the elements of the current request in the body.
|
|
112
|
+
*/
|
|
113
|
+
function getElements(body, itemName) {
|
|
114
|
+
const value = body[itemName];
|
|
115
|
+
if (!Array.isArray(value)) {
|
|
116
|
+
throw new RestError(`Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`);
|
|
117
|
+
}
|
|
118
|
+
return value ?? [];
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Checks if a request failed
|
|
122
|
+
*/
|
|
123
|
+
function checkPagingRequest(response, expectedStatuses) {
|
|
124
|
+
if (!expectedStatuses.includes(response.status)) {
|
|
125
|
+
throw createRestError(`Pagination failed with unexpected statusCode ${response.status}`, response);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Adds the api-version query parameter on a URL if it's not present.
|
|
130
|
+
* @param url - the URL to modify
|
|
131
|
+
* @param apiVersion - the API version to set
|
|
132
|
+
* @returns - the URL with the api-version query parameter set
|
|
133
|
+
*/
|
|
134
|
+
function addApiVersionToUrl(url, apiVersion) {
|
|
135
|
+
// The base URL is only used for parsing and won't appear in the returned URL
|
|
136
|
+
const urlObj = new URL(url, "https://microsoft.com");
|
|
137
|
+
if (!urlObj.searchParams.get("api-version")) {
|
|
138
|
+
// Append one if there is no apiVersion
|
|
139
|
+
return `${url}${urlObj.search ? "&" : "?"}api-version=${apiVersion}`;
|
|
140
|
+
}
|
|
141
|
+
return url;
|
|
142
|
+
}
|
|
143
|
+
//# sourceMappingURL=pagingHelpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/pagingHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAU,eAAe,EAAyB,MAAM,yBAAyB,CAAC;AACzF,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAiFtD;;GAEG;AACH,MAAM,UAAU,uBAAuB,CAMrC,MAAc,EACd,kBAAgD,EAChD,mBAAgE,EAChE,gBAA0B,EAC1B,UAA0C,EAAE;IAE5C,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC;IAC7C,MAAM,YAAY,GAAG,OAAO,CAAC,YAAY,IAAI,UAAU,CAAC;IACxD,MAAM,cAAc,GAAG,OAAO,CAAC,cAAc,IAAI,KAAK,CAAC;IACvD,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;IACtC,MAAM,WAAW,GAAgD;QAC/D,OAAO,EAAE,KAAK,EAAE,QAAiB,EAAE,EAAE;YACnC,IAAI,MAAM,CAAC;YACX,IAAI,QAAQ,K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IAAI,GAAG,CAAC,GAAG,EAAE,uBAAuB,CAAC,CAAC;IACrD,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC;QAC5C,uCAAuC;QACvC,OAAO,GAAG,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,eAAe,UAAU,EAAE,CAAC;IACvE,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { Client, createRestError, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { RestError } from \"@azure/core-rest-pipeline\";\n\n/**\n * Options for the byPage method\n */\nexport interface PageSettings {\n /**\n * A reference to a specific page to start iterating from.\n */\n continuationToken?: string;\n}\n\n/**\n * An interface that describes a page of results.\n */\nexport type ContinuablePage<TElement, TPage = TElement[]> = TPage & {\n /**\n * The token that keeps track of where to continue the iterator\n */\n continuationToken?: string;\n};\n\n/**\n * An interface that allows async iterable iteration both to completion and by page.\n */\nexport interface PagedAsyncIterableIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n> {\n /**\n * The next method, part of the iteration protocol\n */\n next(): Promise<IteratorResult<TElement>>;\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;\n}\n\n/**\n * An interface that describes how to communicate with the service.\n */\nexport interface PagedResult<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n> {\n /**\n * Link to the first page of results.\n */\n firstPageLink?: string;\n /**\n * A method that returns a page of results.\n */\n getPage: (pageLink?: string) => Promise<{ page: TPage; nextPageLink?: string } | undefined>;\n /**\n * a function to implement the `byPage` method on the paged async iterator.\n */\n byPage?: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;\n\n /**\n * A function to extract elements from a page.\n */\n toElements?: (page: TPage) => TElement[];\n}\n\n/**\n * Options for the paging helper\n */\nexport interface BuildPagedAsyncIteratorOptions {\n itemName?: string;\n nextLinkName?: string;\n nextLinkMethod?: \"GET\" | \"POST\";\n apiVersion?: string;\n}\n\n/**\n * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator\n */\nexport function buildPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n>(\n client: Client,\n getInitialResponse: () => PromiseLike<TResponse>,\n processResponseBody: (result: TResponse) => PromiseLike<unknown>,\n expectedStatuses: string[],\n options: BuildPagedAsyncIteratorOptions = {},\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const itemName = options.itemName ?? \"value\";\n const nextLinkName = options.nextLinkName ?? \"nextLink\";\n const nextLinkMethod = options.nextLinkMethod ?? \"GET\";\n const apiVersion = options.apiVersion;\n const pagedResult: PagedResult<TElement, TPage, TPageSettings> = {\n getPage: async (pageLink?: string) => {\n let result;\n if (pageLink === undefined) {\n result = await getInitialResponse();\n } else {\n const resolvedPageLink = apiVersion ? addApiVersionToUrl(pageLink, apiVersion) : pageLink;\n result =\n nextLinkMethod === \"POST\"\n ? await client.pathUnchecked(resolvedPageLink).post()\n : await client.pathUnchecked(resolvedPageLink).get();\n }\n checkPagingRequest(result, expectedStatuses);\n const results = await processResponseBody(result as TResponse);\n const nextLink = getNextLink(results, nextLinkName);\n const values = getElements<TElement>(results, itemName) as TPage;\n return {\n page: values,\n nextPageLink: nextLink,\n };\n },\n byPage: (settings?: TPageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken,\n });\n },\n };\n return getPagedAsyncIterator(pagedResult);\n}\n\n/**\n * returns an async iterator that iterates over results. It also has a `byPage`\n * method that returns pages of items at once.\n *\n * @param pagedResult - an object that specifies how to get pages.\n * @returns a paged async iterator that iterates over results.\n */\n\nfunction getPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const iter = getItemAsyncIterator<TElement, TPage, TPageSettings>(pagedResult);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage:\n pagedResult?.byPage ??\n ((settings?: TPageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken,\n });\n }),\n };\n}\n\nasync function* getItemAsyncIterator<TElement, TPage, TPageSettings extends PageSettings>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n): AsyncIterableIterator<TElement> {\n const pages = getPageAsyncIterator(pagedResult);\n for await (const page of pages) {\n yield* page as unknown as TElement[];\n }\n}\n\nasync function* getPageAsyncIterator<TElement, TPage, TPageSettings extends PageSettings>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n options: {\n pageLink?: string;\n } = {},\n): AsyncIterableIterator<ContinuablePage<TElement, TPage>> {\n const { pageLink } = options;\n let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink);\n if (!response) {\n return;\n }\n let result = response.page as ContinuablePage<TElement, TPage>;\n result.continuationToken = response.nextPageLink;\n yield result;\n while (response.nextPageLink) {\n response = await pagedResult.getPage(response.nextPageLink);\n if (!response) {\n return;\n }\n result = response.page as ContinuablePage<TElement, TPage>;\n result.continuationToken = response.nextPageLink;\n yield result;\n }\n}\n\n/**\n * Gets for the value of nextLink in the body\n */\nfunction getNextLink(body: unknown, nextLinkName?: string): string | undefined {\n if (!nextLinkName) {\n return undefined;\n }\n\n const nextLink = (body as Record<string, unknown>)[nextLinkName];\n\n if (typeof nextLink !== \"string\" && typeof nextLink !== \"undefined\" && nextLink !== null) {\n throw new RestError(\n `Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`,\n );\n }\n\n if (nextLink === null) {\n return undefined;\n }\n\n return nextLink;\n}\n\n/**\n * Gets the elements of the current request in the body.\n */\nfunction getElements<T = unknown>(body: unknown, itemName: string): T[] {\n const value = (body as Record<string, unknown>)[itemName] as T[];\n if (!Array.isArray(value)) {\n throw new RestError(\n `Couldn't paginate response\\n Body doesn't contain an array property with name: ${itemName}`,\n );\n }\n\n return value ?? [];\n}\n\n/**\n * Checks if a request failed\n */\nfunction checkPagingRequest(response: PathUncheckedResponse, expectedStatuses: string[]): void {\n if (!expectedStatuses.includes(response.status)) {\n throw createRestError(\n `Pagination failed with unexpected statusCode ${response.status}`,\n response,\n );\n }\n}\n\n/**\n * Adds the api-version query parameter on a URL if it's not present.\n * @param url - the URL to modify\n * @param apiVersion - the API version to set\n * @returns - the URL with the api-version query parameter set\n */\nfunction addApiVersionToUrl(url: string, apiVersion: string): string {\n // The base URL is only used for parsing and won't appear in the returned URL\n const urlObj = new URL(url, \"https://microsoft.com\");\n if (!urlObj.searchParams.get(\"api-version\")) {\n // Append one if there is no apiVersion\n return `${url}${urlObj.search ? \"&\" : \"?\"}api-version=${apiVersion}`;\n }\n return url;\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns true if all specified properties of the item are undefined.
|
|
3
|
+
* @param item The object to check.
|
|
4
|
+
* @param properties The list of property names to check on the item.
|
|
5
|
+
* @returns True if all specified properties are undefined, otherwise false.
|
|
6
|
+
*/
|
|
7
|
+
export declare function areAllPropsUndefined(item: Record<string, any>, properties: string[]): boolean;
|
|
8
|
+
//# sourceMappingURL=check-prop-undefined.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
/**
|
|
4
|
+
* Returns true if all specified properties of the item are undefined.
|
|
5
|
+
* @param item The object to check.
|
|
6
|
+
* @param properties The list of property names to check on the item.
|
|
7
|
+
* @returns True if all specified properties are undefined, otherwise false.
|
|
8
|
+
*/
|
|
9
|
+
export function areAllPropsUndefined(item, properties) {
|
|
10
|
+
for (const property of properties) {
|
|
11
|
+
if (item[property] !== undefined) {
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return true;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=check-prop-undefined.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-prop-undefined.js","sourceRoot":"","sources":["../../../../src/static-helpers/serialization/check-prop-undefined.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;;;GAKG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAyB,EAAE,UAAoB;IAClF,KAAK,MAAM,QAAQ,IAAI,UAAU,EAAE,CAAC;QAClC,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,SAAS,EAAE,CAAC;YACjC,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Returns true if all specified properties of the item are undefined.\n * @param item The object to check.\n * @param properties The list of property names to check on the item.\n * @returns True if all specified properties are undefined, otherwise false.\n */\nexport function areAllPropsUndefined(item: Record<string, any>, properties: string[]): boolean {\n for (const property of properties) {\n if (item[property] !== undefined) {\n return false;\n }\n }\n return true;\n}\n"]}
|