@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
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
Copyright (c) Microsoft Corporation.
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
MIT License
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -12,7 +12,7 @@ furnished to do so, subject to the following conditions:
|
|
|
12
12
|
The above copyright notice and this permission notice shall be included in all
|
|
13
13
|
copies or substantial portions of the Software.
|
|
14
14
|
|
|
15
|
-
THE SOFTWARE IS PROVIDED
|
|
15
|
+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
16
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
17
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
package/README.md
CHANGED
|
@@ -4,10 +4,12 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f
|
|
|
4
4
|
|
|
5
5
|
Education client provides access to education resources for Azure subscriptions.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[
|
|
10
|
-
[
|
|
7
|
+
Key links:
|
|
8
|
+
|
|
9
|
+
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/education/arm-education)
|
|
10
|
+
- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-education)
|
|
11
|
+
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-education?view=azure-node-preview)
|
|
12
|
+
- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/education/arm-education/samples)
|
|
11
13
|
|
|
12
14
|
## Getting started
|
|
13
15
|
|
|
@@ -35,7 +37,7 @@ npm install @azure/arm-education
|
|
|
35
37
|
To create a client object to access the Azure EducationManagement API, you will need the `endpoint` of your Azure EducationManagement resource and a `credential`. The Azure EducationManagement client can use Azure Active Directory credentials to authenticate.
|
|
36
38
|
You can find the endpoint for your Azure EducationManagement resource in the [Azure Portal][azure_portal].
|
|
37
39
|
|
|
38
|
-
You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/
|
|
40
|
+
You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
|
|
39
41
|
|
|
40
42
|
To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
|
|
41
43
|
|
|
@@ -44,24 +46,29 @@ npm install @azure/identity
|
|
|
44
46
|
```
|
|
45
47
|
|
|
46
48
|
You will also need to **register a new AAD application and grant access to Azure EducationManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
|
|
47
|
-
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
|
|
48
49
|
|
|
49
|
-
For more information about how to create an Azure AD Application check out [this guide](https://
|
|
50
|
+
For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
|
|
51
|
+
|
|
52
|
+
Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
|
|
53
|
+
|
|
54
|
+
```ts snippet:ReadmeSampleCreateClient_Node
|
|
55
|
+
import { EducationManagementClient } from "@azure/arm-education";
|
|
56
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
57
|
+
|
|
58
|
+
const client = new EducationManagementClient(new DefaultAzureCredential());
|
|
59
|
+
```
|
|
50
60
|
|
|
51
|
-
|
|
52
|
-
const { EducationManagementClient } = require("@azure/arm-education");
|
|
53
|
-
const { DefaultAzureCredential } = require("@azure/identity");
|
|
54
|
-
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
|
|
61
|
+
For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
|
|
55
62
|
|
|
56
|
-
|
|
57
|
-
|
|
63
|
+
```ts snippet:ReadmeSampleCreateClient_Browser
|
|
64
|
+
import { InteractiveBrowserCredential } from "@azure/identity";
|
|
65
|
+
import { EducationManagementClient } from "@azure/arm-education";
|
|
58
66
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
// const client = new EducationManagementClient(credential, subscriptionId);
|
|
67
|
+
const credential = new InteractiveBrowserCredential({
|
|
68
|
+
tenantId: "<YOUR_TENANT_ID>",
|
|
69
|
+
clientId: "<YOUR_CLIENT_ID>",
|
|
70
|
+
});
|
|
71
|
+
const client = new EducationManagementClient(credential);
|
|
65
72
|
```
|
|
66
73
|
|
|
67
74
|
|
|
@@ -80,8 +87,9 @@ To use this client library in the browser, first you need to use a bundler. For
|
|
|
80
87
|
|
|
81
88
|
Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
|
|
82
89
|
|
|
83
|
-
```
|
|
84
|
-
|
|
90
|
+
```ts snippet:SetLogLevel
|
|
91
|
+
import { setLogLevel } from "@azure/logger";
|
|
92
|
+
|
|
85
93
|
setLogLevel("info");
|
|
86
94
|
```
|
|
87
95
|
|
|
@@ -89,7 +97,7 @@ For more detailed instructions on how to enable logs, you can look at the [@azur
|
|
|
89
97
|
|
|
90
98
|
## Next steps
|
|
91
99
|
|
|
92
|
-
Please take a look at the [samples](https://github.com/Azure
|
|
100
|
+
Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/education/arm-education/samples) directory for detailed examples on how to use this library.
|
|
93
101
|
|
|
94
102
|
## Contributing
|
|
95
103
|
|
|
@@ -99,10 +107,6 @@ If you'd like to contribute to this library, please read the [contributing guide
|
|
|
99
107
|
|
|
100
108
|
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
|
|
101
109
|
|
|
102
|
-

|
|
103
|
-
|
|
104
|
-
[azure_cli]: https://docs.microsoft.com/cli/azure
|
|
105
|
-
[azure_sub]: https://azure.microsoft.com/free/
|
|
106
110
|
[azure_sub]: https://azure.microsoft.com/free/
|
|
107
111
|
[azure_portal]: https://portal.azure.com
|
|
108
112
|
[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AzureSupportedClouds } from "../static-helpers/cloudSettingHelpers.js";
|
|
2
|
+
import { Client, ClientOptions } from "@azure-rest/core-client";
|
|
3
|
+
import { TokenCredential } from "@azure/core-auth";
|
|
4
|
+
/** Education client provides access to education resources for Azure subscriptions. */
|
|
5
|
+
export interface EducationManagementContext extends Client {
|
|
6
|
+
/** The API version to use for this operation. */
|
|
7
|
+
/** Known values of {@link KnownVersions} that the service accepts. */
|
|
8
|
+
apiVersion?: string;
|
|
9
|
+
}
|
|
10
|
+
/** Optional parameters for the client. */
|
|
11
|
+
export interface EducationManagementClientOptionalParams extends ClientOptions {
|
|
12
|
+
/** The API version to use for this operation. */
|
|
13
|
+
/** Known values of {@link KnownVersions} that the service accepts. */
|
|
14
|
+
apiVersion?: string;
|
|
15
|
+
/** Specifies the Azure cloud environment for the client. */
|
|
16
|
+
cloudSetting?: AzureSupportedClouds;
|
|
17
|
+
}
|
|
18
|
+
/** Education client provides access to education resources for Azure subscriptions. */
|
|
19
|
+
export declare function createEducationManagement(credential: TokenCredential, options?: EducationManagementClientOptionalParams): EducationManagementContext;
|
|
20
|
+
//# sourceMappingURL=educationManagementContext.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { logger } from "../logger.js";
|
|
4
|
+
import { getArmEndpoint } from "../static-helpers/cloudSettingHelpers.js";
|
|
5
|
+
import { getClient } from "@azure-rest/core-client";
|
|
6
|
+
/** Education client provides access to education resources for Azure subscriptions. */
|
|
7
|
+
export function createEducationManagement(credential, options = {}) {
|
|
8
|
+
const endpointUrl = options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? "https://management.azure.com";
|
|
9
|
+
const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
|
|
10
|
+
const userAgentInfo = `azsdk-js-arm-education/1.0.0-beta.5`;
|
|
11
|
+
const userAgentPrefix = prefixFromOptions
|
|
12
|
+
? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
|
|
13
|
+
: `azsdk-js-api ${userAgentInfo}`;
|
|
14
|
+
const { apiVersion: _, ...updatedOptions } = {
|
|
15
|
+
...options,
|
|
16
|
+
userAgentOptions: { userAgentPrefix },
|
|
17
|
+
loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },
|
|
18
|
+
credentials: {
|
|
19
|
+
scopes: options.credentials?.scopes ?? ["https://management.azure.com/.default"],
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
const clientContext = getClient(endpointUrl, credential, updatedOptions);
|
|
23
|
+
const apiVersion = options.apiVersion;
|
|
24
|
+
return { ...clientContext, apiVersion };
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=educationManagementContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"educationManagementContext.js","sourceRoot":"","sources":["../../../src/api/educationManagementContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAwB,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAChG,OAAO,EAAyB,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAmB3E,uFAAuF;AACvF,MAAM,UAAU,yBAAyB,CACvC,UAA2B,EAC3B,UAAmD,EAAE;IAErD,MAAM,WAAW,GACf,OAAO,CAAC,QAAQ,IAAI,cAAc,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,8BAA8B,CAAC;IAC7F,MAAM,iBAAiB,GAAG,OAAO,EAAE,gBAAgB,EAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,qCAAqC,CAAC;IAC5D,MAAM,eAAe,GAAG,iBAAiB;QACvC,CAAC,CAAC,GAAG,iBAAiB,iBAAiB,aAAa,EAAE;QACtD,CAAC,CAAC,gBAAgB,aAAa,EAAE,CAAC;IACpC,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,GAAG;QAC3C,GAAG,OAAO;QACV,gBAAgB,EAAE,EAAE,eAAe,EAAE;QACrC,cAAc,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,cAAc,EAAE,MAAM,IAAI,MAAM,CAAC,IAAI,EAAE;QACzE,WAAW,EAAE;YACX,MAAM,EAAE,OAAO,CAAC,WAAW,EAAE,MAAM,IAAI,CAAC,uCAAuC,CAAC;SACjF;KACF,CAAC;IACF,MAAM,aAAa,GAAG,SAAS,CAAC,WAAW,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;IACtC,OAAO,EAAE,GAAG,aAAa,EAAE,UAAU,EAAgC,CAAC;AACxE,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownVersions } from \"../models/models.js\";\nimport { AzureSupportedClouds, getArmEndpoint } from \"../static-helpers/cloudSettingHelpers.js\";\nimport { Client, ClientOptions, getClient } from \"@azure-rest/core-client\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\n/** Education client provides access to education resources for Azure subscriptions. */\nexport interface EducationManagementContext extends Client {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n}\n\n/** Optional parameters for the client. */\nexport interface EducationManagementClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n /** Specifies the Azure cloud environment for the client. */\n cloudSetting?: AzureSupportedClouds;\n}\n\n/** Education client provides access to education resources for Azure subscriptions. */\nexport function createEducationManagement(\n credential: TokenCredential,\n options: EducationManagementClientOptionalParams = {},\n): EducationManagementContext {\n const endpointUrl =\n options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? \"https://management.azure.com\";\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-education/1.0.0-beta.5`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [\"https://management.azure.com/.default\"],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n const apiVersion = options.apiVersion;\n return { ...clientContext, apiVersion } as EducationManagementContext;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/grants/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { listAll, list, get } from \"./operations.js\";\nexport type {\n GrantsListAllOptionalParams,\n GrantsListOptionalParams,\n GrantsGetOptionalParams,\n} from \"./options.js\";\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EducationManagementContext as Client } from "../index.js";
|
|
2
|
+
import { GrantDetails, _GrantListResponse } from "../../models/models.js";
|
|
3
|
+
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
4
|
+
import { GrantsListAllOptionalParams, GrantsListOptionalParams, GrantsGetOptionalParams } from "./options.js";
|
|
5
|
+
import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
6
|
+
export declare function _listAllSend(context: Client, options?: GrantsListAllOptionalParams): StreamableMethod;
|
|
7
|
+
export declare function _listAllDeserialize(result: PathUncheckedResponse): Promise<_GrantListResponse>;
|
|
8
|
+
/** Get a list of grants that Microsoft has provided. */
|
|
9
|
+
export declare function listAll(context: Client, options?: GrantsListAllOptionalParams): PagedAsyncIterableIterator<GrantDetails>;
|
|
10
|
+
export declare function _listSend(context: Client, billingAccountName: string, billingProfileName: string, options?: GrantsListOptionalParams): StreamableMethod;
|
|
11
|
+
export declare function _listDeserialize(result: PathUncheckedResponse): Promise<_GrantListResponse>;
|
|
12
|
+
/** Get details for a specific grant linked to the provided billing account and billing profile. */
|
|
13
|
+
export declare function list(context: Client, billingAccountName: string, billingProfileName: string, options?: GrantsListOptionalParams): PagedAsyncIterableIterator<GrantDetails>;
|
|
14
|
+
export declare function _getSend(context: Client, billingAccountName: string, billingProfileName: string, options?: GrantsGetOptionalParams): StreamableMethod;
|
|
15
|
+
export declare function _getDeserialize(result: PathUncheckedResponse): Promise<GrantDetails>;
|
|
16
|
+
/** Get details for a specific grant linked to the provided billing account and billing profile. */
|
|
17
|
+
export declare function get(context: Client, billingAccountName: string, billingProfileName: string, options?: GrantsGetOptionalParams): Promise<GrantDetails>;
|
|
18
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { errorResponseBodyDeserializer, grantDetailsDeserializer, _grantListResponseDeserializer, } from "../../models/models.js";
|
|
4
|
+
import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
|
|
6
|
+
import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
|
|
7
|
+
export function _listAllSend(context, options = { requestOptions: {} }) {
|
|
8
|
+
const path = expandUrlTemplate("/providers/Microsoft.Education/grants{?api%2Dversion,includeAllocatedBudget}", {
|
|
9
|
+
"api%2Dversion": context.apiVersion ?? "2021-12-01-preview",
|
|
10
|
+
includeAllocatedBudget: options?.includeAllocatedBudget,
|
|
11
|
+
}, {
|
|
12
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
13
|
+
});
|
|
14
|
+
return context.path(path).get({
|
|
15
|
+
...operationOptionsToRequestParameters(options),
|
|
16
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
export async function _listAllDeserialize(result) {
|
|
20
|
+
const expectedStatuses = ["200"];
|
|
21
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
22
|
+
const error = createRestError(result);
|
|
23
|
+
error.details = errorResponseBodyDeserializer(result.body);
|
|
24
|
+
throw error;
|
|
25
|
+
}
|
|
26
|
+
return _grantListResponseDeserializer(result.body);
|
|
27
|
+
}
|
|
28
|
+
/** Get a list of grants that Microsoft has provided. */
|
|
29
|
+
export function listAll(context, options = { requestOptions: {} }) {
|
|
30
|
+
return buildPagedAsyncIterator(context, () => _listAllSend(context, options), _listAllDeserialize, ["200"], {
|
|
31
|
+
itemName: "value",
|
|
32
|
+
nextLinkName: "nextLink",
|
|
33
|
+
apiVersion: context.apiVersion ?? "2021-12-01-preview",
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
export function _listSend(context, billingAccountName, billingProfileName, options = { requestOptions: {} }) {
|
|
37
|
+
const path = expandUrlTemplate("/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.Education/grants{?api%2Dversion,includeAllocatedBudget}", {
|
|
38
|
+
billingAccountName: billingAccountName,
|
|
39
|
+
billingProfileName: billingProfileName,
|
|
40
|
+
"api%2Dversion": context.apiVersion ?? "2021-12-01-preview",
|
|
41
|
+
includeAllocatedBudget: options?.includeAllocatedBudget,
|
|
42
|
+
}, {
|
|
43
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
44
|
+
});
|
|
45
|
+
return context.path(path).get({
|
|
46
|
+
...operationOptionsToRequestParameters(options),
|
|
47
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
export async function _listDeserialize(result) {
|
|
51
|
+
const expectedStatuses = ["200"];
|
|
52
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
53
|
+
const error = createRestError(result);
|
|
54
|
+
error.details = errorResponseBodyDeserializer(result.body);
|
|
55
|
+
throw error;
|
|
56
|
+
}
|
|
57
|
+
return _grantListResponseDeserializer(result.body);
|
|
58
|
+
}
|
|
59
|
+
/** Get details for a specific grant linked to the provided billing account and billing profile. */
|
|
60
|
+
export function list(context, billingAccountName, billingProfileName, options = { requestOptions: {} }) {
|
|
61
|
+
return buildPagedAsyncIterator(context, () => _listSend(context, billingAccountName, billingProfileName, options), _listDeserialize, ["200"], {
|
|
62
|
+
itemName: "value",
|
|
63
|
+
nextLinkName: "nextLink",
|
|
64
|
+
apiVersion: context.apiVersion ?? "2021-12-01-preview",
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
export function _getSend(context, billingAccountName, billingProfileName, options = { requestOptions: {} }) {
|
|
68
|
+
const path = expandUrlTemplate("/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.Education/grants/default{?api%2Dversion,includeAllocatedBudget}", {
|
|
69
|
+
billingAccountName: billingAccountName,
|
|
70
|
+
billingProfileName: billingProfileName,
|
|
71
|
+
"api%2Dversion": context.apiVersion ?? "2021-12-01-preview",
|
|
72
|
+
includeAllocatedBudget: options?.includeAllocatedBudget,
|
|
73
|
+
}, {
|
|
74
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
75
|
+
});
|
|
76
|
+
return context.path(path).get({
|
|
77
|
+
...operationOptionsToRequestParameters(options),
|
|
78
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
export async function _getDeserialize(result) {
|
|
82
|
+
const expectedStatuses = ["200"];
|
|
83
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
84
|
+
const error = createRestError(result);
|
|
85
|
+
error.details = errorResponseBodyDeserializer(result.body);
|
|
86
|
+
throw error;
|
|
87
|
+
}
|
|
88
|
+
return grantDetailsDeserializer(result.body);
|
|
89
|
+
}
|
|
90
|
+
/** Get details for a specific grant linked to the provided billing account and billing profile. */
|
|
91
|
+
export async function get(context, billingAccountName, billingProfileName, options = { requestOptions: {} }) {
|
|
92
|
+
const result = await _getSend(context, billingAccountName, billingProfileName, options);
|
|
93
|
+
return _getDeserialize(result);
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/grants/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,6BAA6B,EAE7B,wBAAwB,EAExB,8BAA8B,GAC/B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAMxE,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,YAAY,CAC1B,OAAe,EACf,UAAuC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE7D,MAAM,IAAI,GAAG,iBAAiB,CAC5B,8EAA8E,EAC9E;QACE,eAAe,EAAE,OAAO,CAAC,UAAU,IAAI,oBAAoB;QAC3D,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C,EAAE,cAAc,EAAE,EAAE,EAAE;IAEzD,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACxF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { EducationManagementContext as Client } from \"../index.js\";\nimport {\n errorResponseBodyDeserializer,\n GrantDetails,\n grantDetailsDeserializer,\n _GrantListResponse,\n _grantListResponseDeserializer,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n GrantsListAllOptionalParams,\n GrantsListOptionalParams,\n GrantsGetOptionalParams,\n} from \"./options.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _listAllSend(\n context: Client,\n options: GrantsListAllOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.Education/grants{?api%2Dversion,includeAllocatedBudget}\",\n {\n \"api%2Dversion\": context.apiVersion ?? \"2021-12-01-preview\",\n includeAllocatedBudget: options?.includeAllocatedBudget,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listAllDeserialize(\n result: PathUncheckedResponse,\n): Promise<_GrantListResponse> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseBodyDeserializer(result.body);\n\n throw error;\n }\n\n return _grantListResponseDeserializer(result.body);\n}\n\n/** Get a list of grants that Microsoft has provided. */\nexport function listAll(\n context: Client,\n options: GrantsListAllOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<GrantDetails> {\n return buildPagedAsyncIterator(\n context,\n () => _listAllSend(context, options),\n _listAllDeserialize,\n [\"200\"],\n {\n itemName: \"value\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion ?? \"2021-12-01-preview\",\n },\n );\n}\n\nexport function _listSend(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n options: GrantsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.Education/grants{?api%2Dversion,includeAllocatedBudget}\",\n {\n billingAccountName: billingAccountName,\n billingProfileName: billingProfileName,\n \"api%2Dversion\": context.apiVersion ?? \"2021-12-01-preview\",\n includeAllocatedBudget: options?.includeAllocatedBudget,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listDeserialize(result: PathUncheckedResponse): Promise<_GrantListResponse> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseBodyDeserializer(result.body);\n\n throw error;\n }\n\n return _grantListResponseDeserializer(result.body);\n}\n\n/** Get details for a specific grant linked to the provided billing account and billing profile. */\nexport function list(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n options: GrantsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<GrantDetails> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, billingAccountName, billingProfileName, options),\n _listDeserialize,\n [\"200\"],\n {\n itemName: \"value\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion ?? \"2021-12-01-preview\",\n },\n );\n}\n\nexport function _getSend(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n options: GrantsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.Education/grants/default{?api%2Dversion,includeAllocatedBudget}\",\n {\n billingAccountName: billingAccountName,\n billingProfileName: billingProfileName,\n \"api%2Dversion\": context.apiVersion ?? \"2021-12-01-preview\",\n includeAllocatedBudget: options?.includeAllocatedBudget,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<GrantDetails> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseBodyDeserializer(result.body);\n\n throw error;\n }\n\n return grantDetailsDeserializer(result.body);\n}\n\n/** Get details for a specific grant linked to the provided billing account and billing profile. */\nexport async function get(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n options: GrantsGetOptionalParams = { requestOptions: {} },\n): Promise<GrantDetails> {\n const result = await _getSend(context, billingAccountName, billingProfileName, options);\n return _getDeserialize(result);\n}\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OperationOptions } from "@azure-rest/core-client";
|
|
2
|
+
/** Optional parameters. */
|
|
3
|
+
export interface GrantsListAllOptionalParams extends OperationOptions {
|
|
4
|
+
/** May be used to include information about budget that has been allocated. */
|
|
5
|
+
includeAllocatedBudget?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/** Optional parameters. */
|
|
8
|
+
export interface GrantsListOptionalParams extends OperationOptions {
|
|
9
|
+
/** May be used to include information about budget that has been allocated. */
|
|
10
|
+
includeAllocatedBudget?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/** Optional parameters. */
|
|
13
|
+
export interface GrantsGetOptionalParams extends OperationOptions {
|
|
14
|
+
/** May be used to include information about budget that has been allocated. */
|
|
15
|
+
includeAllocatedBudget?: boolean;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/grants/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface GrantsListAllOptionalParams extends OperationOptions {\n /** May be used to include information about budget that has been allocated. */\n includeAllocatedBudget?: boolean;\n}\n\n/** Optional parameters. */\nexport interface GrantsListOptionalParams extends OperationOptions {\n /** May be used to include information about budget that has been allocated. */\n includeAllocatedBudget?: boolean;\n}\n\n/** Optional parameters. */\nexport interface GrantsGetOptionalParams extends OperationOptions {\n /** May be used to include information about budget that has been allocated. */\n includeAllocatedBudget?: boolean;\n}\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { EducationManagementContext, EducationManagementClientOptionalParams, } from "./educationManagementContext.js";
|
|
2
|
+
export { createEducationManagement } from "./educationManagementContext.js";
|
|
3
|
+
export { redeemInvitationCode } from "./operations.js";
|
|
4
|
+
export type { RedeemInvitationCodeOptionalParams } from "./options.js";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport type {\n EducationManagementContext,\n EducationManagementClientOptionalParams,\n} from \"./educationManagementContext.js\";\nexport { createEducationManagement } from \"./educationManagementContext.js\";\nexport { redeemInvitationCode } from \"./operations.js\";\nexport type { RedeemInvitationCodeOptionalParams } from \"./options.js\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/joinRequests/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { deny, approve, list, get } from \"./operations.js\";\nexport type {\n JoinRequestsDenyOptionalParams,\n JoinRequestsApproveOptionalParams,\n JoinRequestsListOptionalParams,\n JoinRequestsGetOptionalParams,\n} from \"./options.js\";\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EducationManagementContext as Client } from "../index.js";
|
|
2
|
+
import { JoinRequestDetails, _JoinRequestList } from "../../models/models.js";
|
|
3
|
+
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
4
|
+
import { JoinRequestsDenyOptionalParams, JoinRequestsApproveOptionalParams, JoinRequestsListOptionalParams, JoinRequestsGetOptionalParams } from "./options.js";
|
|
5
|
+
import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
6
|
+
export declare function _denySend(context: Client, billingAccountName: string, billingProfileName: string, invoiceSectionName: string, joinRequestName: string, options?: JoinRequestsDenyOptionalParams): StreamableMethod;
|
|
7
|
+
export declare function _denyDeserialize(result: PathUncheckedResponse): Promise<void>;
|
|
8
|
+
/** Deny student joining the redeemable lab */
|
|
9
|
+
export declare function deny(context: Client, billingAccountName: string, billingProfileName: string, invoiceSectionName: string, joinRequestName: string, options?: JoinRequestsDenyOptionalParams): Promise<void>;
|
|
10
|
+
export declare function _approveSend(context: Client, billingAccountName: string, billingProfileName: string, invoiceSectionName: string, joinRequestName: string, options?: JoinRequestsApproveOptionalParams): StreamableMethod;
|
|
11
|
+
export declare function _approveDeserialize(result: PathUncheckedResponse): Promise<void>;
|
|
12
|
+
/** Approve student joining the redeemable lab */
|
|
13
|
+
export declare function approve(context: Client, billingAccountName: string, billingProfileName: string, invoiceSectionName: string, joinRequestName: string, options?: JoinRequestsApproveOptionalParams): Promise<void>;
|
|
14
|
+
export declare function _listSend(context: Client, billingAccountName: string, billingProfileName: string, invoiceSectionName: string, options?: JoinRequestsListOptionalParams): StreamableMethod;
|
|
15
|
+
export declare function _listDeserialize(result: PathUncheckedResponse): Promise<_JoinRequestList>;
|
|
16
|
+
/** get student join requests */
|
|
17
|
+
export declare function list(context: Client, billingAccountName: string, billingProfileName: string, invoiceSectionName: string, options?: JoinRequestsListOptionalParams): PagedAsyncIterableIterator<JoinRequestDetails>;
|
|
18
|
+
export declare function _getSend(context: Client, billingAccountName: string, billingProfileName: string, invoiceSectionName: string, joinRequestName: string, options?: JoinRequestsGetOptionalParams): StreamableMethod;
|
|
19
|
+
export declare function _getDeserialize(result: PathUncheckedResponse): Promise<JoinRequestDetails>;
|
|
20
|
+
/** get student join requests */
|
|
21
|
+
export declare function get(context: Client, billingAccountName: string, billingProfileName: string, invoiceSectionName: string, joinRequestName: string, options?: JoinRequestsGetOptionalParams): Promise<JoinRequestDetails>;
|
|
22
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { errorResponseBodyDeserializer, joinRequestDetailsDeserializer, _joinRequestListDeserializer, } from "../../models/models.js";
|
|
4
|
+
import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
|
|
6
|
+
import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
|
|
7
|
+
export function _denySend(context, billingAccountName, billingProfileName, invoiceSectionName, joinRequestName, options = { requestOptions: {} }) {
|
|
8
|
+
const path = expandUrlTemplate("/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/joinRequests/{joinRequestName}/deny{?api%2Dversion}", {
|
|
9
|
+
billingAccountName: billingAccountName,
|
|
10
|
+
billingProfileName: billingProfileName,
|
|
11
|
+
invoiceSectionName: invoiceSectionName,
|
|
12
|
+
joinRequestName: joinRequestName,
|
|
13
|
+
"api%2Dversion": context.apiVersion ?? "2021-12-01-preview",
|
|
14
|
+
}, {
|
|
15
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
16
|
+
});
|
|
17
|
+
return context.path(path).post({ ...operationOptionsToRequestParameters(options) });
|
|
18
|
+
}
|
|
19
|
+
export async function _denyDeserialize(result) {
|
|
20
|
+
const expectedStatuses = ["200"];
|
|
21
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
22
|
+
const error = createRestError(result);
|
|
23
|
+
error.details = errorResponseBodyDeserializer(result.body);
|
|
24
|
+
throw error;
|
|
25
|
+
}
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
/** Deny student joining the redeemable lab */
|
|
29
|
+
export async function deny(context, billingAccountName, billingProfileName, invoiceSectionName, joinRequestName, options = { requestOptions: {} }) {
|
|
30
|
+
const result = await _denySend(context, billingAccountName, billingProfileName, invoiceSectionName, joinRequestName, options);
|
|
31
|
+
return _denyDeserialize(result);
|
|
32
|
+
}
|
|
33
|
+
export function _approveSend(context, billingAccountName, billingProfileName, invoiceSectionName, joinRequestName, options = { requestOptions: {} }) {
|
|
34
|
+
const path = expandUrlTemplate("/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/joinRequests/{joinRequestName}/approve{?api%2Dversion}", {
|
|
35
|
+
billingAccountName: billingAccountName,
|
|
36
|
+
billingProfileName: billingProfileName,
|
|
37
|
+
invoiceSectionName: invoiceSectionName,
|
|
38
|
+
joinRequestName: joinRequestName,
|
|
39
|
+
"api%2Dversion": context.apiVersion ?? "2021-12-01-preview",
|
|
40
|
+
}, {
|
|
41
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
42
|
+
});
|
|
43
|
+
return context.path(path).post({ ...operationOptionsToRequestParameters(options) });
|
|
44
|
+
}
|
|
45
|
+
export async function _approveDeserialize(result) {
|
|
46
|
+
const expectedStatuses = ["200"];
|
|
47
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
48
|
+
const error = createRestError(result);
|
|
49
|
+
error.details = errorResponseBodyDeserializer(result.body);
|
|
50
|
+
throw error;
|
|
51
|
+
}
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
/** Approve student joining the redeemable lab */
|
|
55
|
+
export async function approve(context, billingAccountName, billingProfileName, invoiceSectionName, joinRequestName, options = { requestOptions: {} }) {
|
|
56
|
+
const result = await _approveSend(context, billingAccountName, billingProfileName, invoiceSectionName, joinRequestName, options);
|
|
57
|
+
return _approveDeserialize(result);
|
|
58
|
+
}
|
|
59
|
+
export function _listSend(context, billingAccountName, billingProfileName, invoiceSectionName, options = { requestOptions: {} }) {
|
|
60
|
+
const path = expandUrlTemplate("/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/joinRequests{?api%2Dversion,includeDenied}", {
|
|
61
|
+
billingAccountName: billingAccountName,
|
|
62
|
+
billingProfileName: billingProfileName,
|
|
63
|
+
invoiceSectionName: invoiceSectionName,
|
|
64
|
+
"api%2Dversion": context.apiVersion ?? "2021-12-01-preview",
|
|
65
|
+
includeDenied: options?.includeDenied,
|
|
66
|
+
}, {
|
|
67
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
68
|
+
});
|
|
69
|
+
return context.path(path).get({
|
|
70
|
+
...operationOptionsToRequestParameters(options),
|
|
71
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
export async function _listDeserialize(result) {
|
|
75
|
+
const expectedStatuses = ["200"];
|
|
76
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
77
|
+
const error = createRestError(result);
|
|
78
|
+
error.details = errorResponseBodyDeserializer(result.body);
|
|
79
|
+
throw error;
|
|
80
|
+
}
|
|
81
|
+
return _joinRequestListDeserializer(result.body);
|
|
82
|
+
}
|
|
83
|
+
/** get student join requests */
|
|
84
|
+
export function list(context, billingAccountName, billingProfileName, invoiceSectionName, options = { requestOptions: {} }) {
|
|
85
|
+
return buildPagedAsyncIterator(context, () => _listSend(context, billingAccountName, billingProfileName, invoiceSectionName, options), _listDeserialize, ["200"], {
|
|
86
|
+
itemName: "value",
|
|
87
|
+
nextLinkName: "nextLink",
|
|
88
|
+
apiVersion: context.apiVersion ?? "2021-12-01-preview",
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
export function _getSend(context, billingAccountName, billingProfileName, invoiceSectionName, joinRequestName, options = { requestOptions: {} }) {
|
|
92
|
+
const path = expandUrlTemplate("/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/joinRequests/{joinRequestName}{?api%2Dversion}", {
|
|
93
|
+
billingAccountName: billingAccountName,
|
|
94
|
+
billingProfileName: billingProfileName,
|
|
95
|
+
invoiceSectionName: invoiceSectionName,
|
|
96
|
+
joinRequestName: joinRequestName,
|
|
97
|
+
"api%2Dversion": context.apiVersion ?? "2021-12-01-preview",
|
|
98
|
+
}, {
|
|
99
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
100
|
+
});
|
|
101
|
+
return context.path(path).get({
|
|
102
|
+
...operationOptionsToRequestParameters(options),
|
|
103
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
export async function _getDeserialize(result) {
|
|
107
|
+
const expectedStatuses = ["200"];
|
|
108
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
109
|
+
const error = createRestError(result);
|
|
110
|
+
error.details = errorResponseBodyDeserializer(result.body);
|
|
111
|
+
throw error;
|
|
112
|
+
}
|
|
113
|
+
return joinRequestDetailsDeserializer(result.body);
|
|
114
|
+
}
|
|
115
|
+
/** get student join requests */
|
|
116
|
+
export async function get(context, billingAccountName, billingProfileName, invoiceSectionName, joinRequestName, options = { requestOptions: {} }) {
|
|
117
|
+
const result = await _getSend(context, billingAccountName, billingProfileName, invoiceSectionName, joinRequestName, options);
|
|
118
|
+
return _getDeserialize(result);
|
|
119
|
+
}
|
|
120
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/joinRequests/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,6BAA6B,EAE7B,8BAA8B,EAE9B,4BAA4B,GAC7B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAOxE,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,SAAS,CACvB,OAAe,EACf,kBAA0B,EAC1B,kBAA0B,EAC1B,kBAA0B,EAC1B,eAAuB,EACvB,UAA0C,EAAE,cAAc,EAAE,EAAE,EAAE;IAEhE,MAAM,IAAI,GAAG,iBAAiB,CAC5B,4OAA4O,EAC5O;QACE,kBAAkB,EAAE,kBAAkB;QACtC,kBAAkB,EAAE,kBAAkB;QACtC,kBAAkB,EAAE,kBAAkB;QACtC,eAAe,EAAE,eAAe;QAChC,eAAe,EAAE,OAAO,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0B,EAC1B,eAAuB,EACvB,UAAyC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE/D,MAAM,MAAM,GAAG,MAAM,QAAQ,CAC3B,OAAO,EACP,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,OAAO,CACR,CAAC;IACF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { EducationManagementContext as Client } from \"../index.js\";\nimport {\n errorResponseBodyDeserializer,\n JoinRequestDetails,\n joinRequestDetailsDeserializer,\n _JoinRequestList,\n _joinRequestListDeserializer,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n JoinRequestsDenyOptionalParams,\n JoinRequestsApproveOptionalParams,\n JoinRequestsListOptionalParams,\n JoinRequestsGetOptionalParams,\n} from \"./options.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _denySend(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n joinRequestName: string,\n options: JoinRequestsDenyOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/joinRequests/{joinRequestName}/deny{?api%2Dversion}\",\n {\n billingAccountName: billingAccountName,\n billingProfileName: billingProfileName,\n invoiceSectionName: invoiceSectionName,\n joinRequestName: joinRequestName,\n \"api%2Dversion\": context.apiVersion ?? \"2021-12-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _denyDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseBodyDeserializer(result.body);\n\n throw error;\n }\n\n return;\n}\n\n/** Deny student joining the redeemable lab */\nexport async function deny(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n joinRequestName: string,\n options: JoinRequestsDenyOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _denySend(\n context,\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n joinRequestName,\n options,\n );\n return _denyDeserialize(result);\n}\n\nexport function _approveSend(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n joinRequestName: string,\n options: JoinRequestsApproveOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/joinRequests/{joinRequestName}/approve{?api%2Dversion}\",\n {\n billingAccountName: billingAccountName,\n billingProfileName: billingProfileName,\n invoiceSectionName: invoiceSectionName,\n joinRequestName: joinRequestName,\n \"api%2Dversion\": context.apiVersion ?? \"2021-12-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _approveDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseBodyDeserializer(result.body);\n\n throw error;\n }\n\n return;\n}\n\n/** Approve student joining the redeemable lab */\nexport async function approve(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n joinRequestName: string,\n options: JoinRequestsApproveOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _approveSend(\n context,\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n joinRequestName,\n options,\n );\n return _approveDeserialize(result);\n}\n\nexport function _listSend(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n options: JoinRequestsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/joinRequests{?api%2Dversion,includeDenied}\",\n {\n billingAccountName: billingAccountName,\n billingProfileName: billingProfileName,\n invoiceSectionName: invoiceSectionName,\n \"api%2Dversion\": context.apiVersion ?? \"2021-12-01-preview\",\n includeDenied: options?.includeDenied,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listDeserialize(result: PathUncheckedResponse): Promise<_JoinRequestList> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseBodyDeserializer(result.body);\n\n throw error;\n }\n\n return _joinRequestListDeserializer(result.body);\n}\n\n/** get student join requests */\nexport function list(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n options: JoinRequestsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<JoinRequestDetails> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, billingAccountName, billingProfileName, invoiceSectionName, options),\n _listDeserialize,\n [\"200\"],\n {\n itemName: \"value\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion ?? \"2021-12-01-preview\",\n },\n );\n}\n\nexport function _getSend(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n joinRequestName: string,\n options: JoinRequestsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/joinRequests/{joinRequestName}{?api%2Dversion}\",\n {\n billingAccountName: billingAccountName,\n billingProfileName: billingProfileName,\n invoiceSectionName: invoiceSectionName,\n joinRequestName: joinRequestName,\n \"api%2Dversion\": context.apiVersion ?? \"2021-12-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<JoinRequestDetails> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseBodyDeserializer(result.body);\n\n throw error;\n }\n\n return joinRequestDetailsDeserializer(result.body);\n}\n\n/** get student join requests */\nexport async function get(\n context: Client,\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n joinRequestName: string,\n options: JoinRequestsGetOptionalParams = { requestOptions: {} },\n): Promise<JoinRequestDetails> {\n const result = await _getSend(\n context,\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n joinRequestName,\n options,\n );\n return _getDeserialize(result);\n}\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OperationOptions } from "@azure-rest/core-client";
|
|
2
|
+
/** Optional parameters. */
|
|
3
|
+
export interface JoinRequestsDenyOptionalParams extends OperationOptions {
|
|
4
|
+
}
|
|
5
|
+
/** Optional parameters. */
|
|
6
|
+
export interface JoinRequestsApproveOptionalParams extends OperationOptions {
|
|
7
|
+
}
|
|
8
|
+
/** Optional parameters. */
|
|
9
|
+
export interface JoinRequestsListOptionalParams extends OperationOptions {
|
|
10
|
+
/** Include denied */
|
|
11
|
+
includeDenied?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/** Optional parameters. */
|
|
14
|
+
export interface JoinRequestsGetOptionalParams extends OperationOptions {
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/joinRequests/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface JoinRequestsDenyOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface JoinRequestsApproveOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface JoinRequestsListOptionalParams extends OperationOptions {\n /** Include denied */\n includeDenied?: boolean;\n}\n\n/** Optional parameters. */\nexport interface JoinRequestsGetOptionalParams extends OperationOptions {}\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { generateInviteCode, listAll, list, $delete, createOrUpdate, get } from "./operations.js";
|
|
2
|
+
export type { LabsGenerateInviteCodeOptionalParams, LabsListAllOptionalParams, LabsListOptionalParams, LabsDeleteOptionalParams, LabsCreateOrUpdateOptionalParams, LabsGetOptionalParams, } from "./options.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|