@azure/arm-education 1.0.0-beta.2 → 1.0.0-beta.4
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/CHANGELOG.md +25 -2
- package/LICENSE +4 -4
- package/README.md +27 -18
- package/{dist-esm/src → dist/browser}/educationManagementClient.d.ts +2 -2
- package/dist/browser/educationManagementClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/educationManagementClient.js +52 -40
- package/dist/browser/educationManagementClient.js.map +1 -0
- package/dist/browser/index.d.ts +5 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/index.js +4 -3
- package/dist/browser/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/index.d.ts +32 -46
- package/{dist-esm/src → dist/browser}/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/mappers.js +99 -47
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
- package/dist/browser/models/parameters.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/grants.d.ts +3 -3
- package/dist/browser/operations/grants.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/grants.js +56 -65
- package/dist/browser/operations/grants.js.map +1 -0
- package/dist/browser/operations/index.d.ts +7 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +6 -6
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/joinRequests.d.ts +3 -3
- package/dist/browser/operations/joinRequests.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/joinRequests.js +30 -34
- package/dist/browser/operations/joinRequests.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/labs.d.ts +3 -3
- package/dist/browser/operations/labs.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/labs.js +56 -69
- package/dist/browser/operations/labs.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
- package/dist/browser/operations/operations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.js +3 -2
- package/dist/browser/operations/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/studentLabs.d.ts +3 -3
- package/dist/browser/operations/studentLabs.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/studentLabs.js +30 -34
- package/dist/browser/operations/studentLabs.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/students.d.ts +3 -3
- package/dist/browser/operations/students.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/students.js +30 -34
- package/dist/browser/operations/students.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/grants.d.ts +1 -1
- package/dist/browser/operationsInterfaces/grants.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/grants.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +7 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
- package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +6 -6
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/joinRequests.d.ts +1 -1
- package/dist/browser/operationsInterfaces/joinRequests.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/joinRequests.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/labs.d.ts +1 -1
- package/dist/browser/operationsInterfaces/labs.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/labs.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
- package/dist/browser/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/studentLabs.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/studentLabs.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/studentLabs.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/students.d.ts +1 -1
- package/dist/browser/operationsInterfaces/students.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/students.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.d.ts +13 -0
- package/dist/browser/pagingHelper.d.ts.map +1 -0
- package/dist/browser/pagingHelper.js +30 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/educationManagementClient.d.ts +29 -0
- package/dist/commonjs/educationManagementClient.d.ts.map +1 -0
- package/dist/commonjs/educationManagementClient.js +142 -0
- package/dist/commonjs/educationManagementClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/{types/arm-education.d.ts → dist/commonjs/models/index.d.ts} +685 -1000
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +95 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +22 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +757 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +22 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +188 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/grants.d.ts +63 -0
- package/dist/commonjs/operations/grants.d.ts.map +1 -0
- package/dist/commonjs/operations/grants.js +255 -0
- package/dist/commonjs/operations/grants.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +7 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +17 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/joinRequests.d.ts +68 -0
- package/dist/commonjs/operations/joinRequests.d.ts.map +1 -0
- package/dist/commonjs/operations/joinRequests.js +260 -0
- package/dist/commonjs/operations/joinRequests.js.map +1 -0
- package/dist/commonjs/operations/labs.d.ts +103 -0
- package/dist/commonjs/operations/labs.d.ts.map +1 -0
- package/dist/commonjs/operations/labs.js +407 -0
- package/dist/commonjs/operations/labs.js.map +1 -0
- package/dist/commonjs/operations/operations.d.ts +18 -0
- package/dist/commonjs/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/operations/operations.js +52 -0
- package/dist/commonjs/operations/operations.js.map +1 -0
- package/dist/commonjs/operations/studentLabs.d.ts +38 -0
- package/dist/commonjs/operations/studentLabs.d.ts.map +1 -0
- package/dist/commonjs/operations/studentLabs.js +145 -0
- package/dist/commonjs/operations/studentLabs.js.map +1 -0
- package/dist/commonjs/operations/students.d.ts +70 -0
- package/dist/commonjs/operations/students.d.ts.map +1 -0
- package/dist/commonjs/operations/students.js +271 -0
- package/dist/commonjs/operations/students.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/grants.d.ts +25 -0
- package/dist/commonjs/operationsInterfaces/grants.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/grants.js +10 -0
- package/dist/commonjs/operationsInterfaces/grants.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +7 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +17 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/joinRequests.d.ts +41 -0
- package/dist/commonjs/operationsInterfaces/joinRequests.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/joinRequests.js +10 -0
- package/dist/commonjs/operationsInterfaces/joinRequests.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/labs.d.ts +58 -0
- package/dist/commonjs/operationsInterfaces/labs.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/labs.js +10 -0
- package/dist/commonjs/operationsInterfaces/labs.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts +10 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.js +10 -0
- package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/studentLabs.d.ts +17 -0
- package/dist/commonjs/operationsInterfaces/studentLabs.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/studentLabs.js +10 -0
- package/dist/commonjs/operationsInterfaces/studentLabs.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/students.d.ts +43 -0
- package/dist/commonjs/operationsInterfaces/students.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/students.js +10 -0
- package/dist/commonjs/operationsInterfaces/students.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +34 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
- package/dist/esm/educationManagementClient.d.ts +29 -0
- package/dist/esm/educationManagementClient.d.ts.map +1 -0
- package/dist/esm/educationManagementClient.js +137 -0
- package/dist/esm/educationManagementClient.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +5 -4
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/models/index.d.ts +685 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +92 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +22 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +754 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +22 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +185 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/grants.d.ts +63 -0
- package/dist/esm/operations/grants.d.ts.map +1 -0
- package/dist/esm/operations/grants.js +250 -0
- package/dist/esm/operations/grants.js.map +1 -0
- package/dist/esm/operations/index.d.ts +7 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +14 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/joinRequests.d.ts +68 -0
- package/dist/esm/operations/joinRequests.d.ts.map +1 -0
- package/dist/esm/operations/joinRequests.js +255 -0
- package/dist/esm/operations/joinRequests.js.map +1 -0
- package/dist/esm/operations/labs.d.ts +103 -0
- package/dist/esm/operations/labs.d.ts.map +1 -0
- package/dist/esm/operations/labs.js +402 -0
- package/dist/esm/operations/labs.js.map +1 -0
- package/dist/esm/operations/operations.d.ts +18 -0
- package/dist/esm/operations/operations.d.ts.map +1 -0
- package/dist/esm/operations/operations.js +47 -0
- package/dist/esm/operations/operations.js.map +1 -0
- package/dist/esm/operations/studentLabs.d.ts +38 -0
- package/dist/esm/operations/studentLabs.d.ts.map +1 -0
- package/dist/esm/operations/studentLabs.js +140 -0
- package/dist/esm/operations/studentLabs.js.map +1 -0
- package/dist/esm/operations/students.d.ts +70 -0
- package/dist/esm/operations/students.d.ts.map +1 -0
- package/dist/esm/operations/students.js +266 -0
- package/dist/esm/operations/students.js.map +1 -0
- package/dist/esm/operationsInterfaces/grants.d.ts +25 -0
- package/dist/esm/operationsInterfaces/grants.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/grants.js +9 -0
- package/dist/esm/operationsInterfaces/grants.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +7 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +14 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/joinRequests.d.ts +41 -0
- package/dist/esm/operationsInterfaces/joinRequests.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/joinRequests.js +9 -0
- package/dist/esm/operationsInterfaces/joinRequests.js.map +1 -0
- package/dist/esm/operationsInterfaces/labs.d.ts +58 -0
- package/dist/esm/operationsInterfaces/labs.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/labs.js +9 -0
- package/dist/esm/operationsInterfaces/labs.js.map +1 -0
- package/dist/esm/operationsInterfaces/operations.d.ts +10 -0
- package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/operations.js +9 -0
- package/dist/esm/operationsInterfaces/operations.js.map +1 -0
- package/dist/esm/operationsInterfaces/studentLabs.d.ts +17 -0
- package/dist/esm/operationsInterfaces/studentLabs.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/studentLabs.js +9 -0
- package/dist/esm/operationsInterfaces/studentLabs.js.map +1 -0
- package/dist/esm/operationsInterfaces/students.d.ts +43 -0
- package/dist/esm/operationsInterfaces/students.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/students.js +9 -0
- package/dist/esm/operationsInterfaces/students.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +30 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/react-native/educationManagementClient.d.ts +29 -0
- package/dist/react-native/educationManagementClient.d.ts.map +1 -0
- package/dist/react-native/educationManagementClient.js +137 -0
- package/dist/react-native/educationManagementClient.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/models/index.d.ts +685 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +92 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +22 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +754 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +22 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +185 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/grants.d.ts +63 -0
- package/dist/react-native/operations/grants.d.ts.map +1 -0
- package/dist/react-native/operations/grants.js +250 -0
- package/dist/react-native/operations/grants.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +7 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +14 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/joinRequests.d.ts +68 -0
- package/dist/react-native/operations/joinRequests.d.ts.map +1 -0
- package/dist/react-native/operations/joinRequests.js +255 -0
- package/dist/react-native/operations/joinRequests.js.map +1 -0
- package/dist/react-native/operations/labs.d.ts +103 -0
- package/dist/react-native/operations/labs.d.ts.map +1 -0
- package/dist/react-native/operations/labs.js +402 -0
- package/dist/react-native/operations/labs.js.map +1 -0
- package/dist/react-native/operations/operations.d.ts +18 -0
- package/dist/react-native/operations/operations.d.ts.map +1 -0
- package/dist/react-native/operations/operations.js +47 -0
- package/dist/react-native/operations/operations.js.map +1 -0
- package/dist/react-native/operations/studentLabs.d.ts +38 -0
- package/dist/react-native/operations/studentLabs.d.ts.map +1 -0
- package/dist/react-native/operations/studentLabs.js +140 -0
- package/dist/react-native/operations/studentLabs.js.map +1 -0
- package/dist/react-native/operations/students.d.ts +70 -0
- package/dist/react-native/operations/students.d.ts.map +1 -0
- package/dist/react-native/operations/students.js +266 -0
- package/dist/react-native/operations/students.js.map +1 -0
- package/dist/react-native/operationsInterfaces/grants.d.ts +25 -0
- package/dist/react-native/operationsInterfaces/grants.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/grants.js +9 -0
- package/dist/react-native/operationsInterfaces/grants.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +7 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +14 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/joinRequests.d.ts +41 -0
- package/dist/react-native/operationsInterfaces/joinRequests.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/joinRequests.js +9 -0
- package/dist/react-native/operationsInterfaces/joinRequests.js.map +1 -0
- package/dist/react-native/operationsInterfaces/labs.d.ts +58 -0
- package/dist/react-native/operationsInterfaces/labs.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/labs.js +9 -0
- package/dist/react-native/operationsInterfaces/labs.js.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts +10 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.js +9 -0
- package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/studentLabs.d.ts +17 -0
- package/dist/react-native/operationsInterfaces/studentLabs.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/studentLabs.js +9 -0
- package/dist/react-native/operationsInterfaces/studentLabs.js.map +1 -0
- package/dist/react-native/operationsInterfaces/students.d.ts +43 -0
- package/dist/react-native/operationsInterfaces/students.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/students.js +9 -0
- package/dist/react-native/operationsInterfaces/students.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +30 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/package.json +86 -75
- package/review/{arm-education.api.md → arm-education-node.api.md} +3 -7
- package/dist/index.js +0 -2522
- 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 -51
- 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 -75
- 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 -79
- 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 -32
- 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 -32
- 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 -32
- 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 -47
- 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 -37
- 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 -31
- 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 -32
- 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 -53
- 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 -79
- 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 -81
- 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 -28
- 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 -33
- 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 -29
- 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 -42
- 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 -40
- 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 -32
- 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 -32
- 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 -45
- package/dist-esm/samples-dev/studentsListSample.js.map +0 -1
- package/dist-esm/src/educationManagementClient.d.ts.map +0 -1
- package/dist-esm/src/educationManagementClient.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -5
- package/dist-esm/src/index.d.ts.map +0 -1
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/grants.d.ts.map +0 -1
- 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.js.map +0 -1
- package/dist-esm/src/operations/joinRequests.d.ts.map +0 -1
- package/dist-esm/src/operations/joinRequests.js.map +0 -1
- package/dist-esm/src/operations/labs.d.ts.map +0 -1
- package/dist-esm/src/operations/labs.js.map +0 -1
- package/dist-esm/src/operations/operations.d.ts.map +0 -1
- package/dist-esm/src/operations/operations.js.map +0 -1
- package/dist-esm/src/operations/studentLabs.d.ts.map +0 -1
- package/dist-esm/src/operations/studentLabs.js.map +0 -1
- package/dist-esm/src/operations/students.d.ts.map +0 -1
- package/dist-esm/src/operations/students.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/grants.d.ts.map +0 -1
- 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.map +0 -1
- package/dist-esm/src/operationsInterfaces/joinRequests.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/joinRequests.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/labs.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/labs.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/studentLabs.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/students.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/students.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/rollup.config.js +0 -122
- package/src/educationManagementClient.ts +0 -190
- package/src/models/index.ts +0 -806
- package/src/models/mappers.ts +0 -775
- package/src/models/parameters.ts +0 -215
- package/src/operations/grants.ts +0 -330
- package/src/operations/index.ts +0 -14
- package/src/operations/joinRequests.ts +0 -358
- package/src/operations/labs.ts +0 -570
- package/src/operations/operations.ts +0 -59
- package/src/operations/studentLabs.ts +0 -170
- package/src/operations/students.ts +0 -371
- 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/tsconfig.json +0 -33
- /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/grants.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/joinRequests.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/labs.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/studentLabs.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/students.js +0 -0
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.StudentLabsImpl = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
const pagingHelper_js_1 = require("../pagingHelper.js");
|
|
13
|
+
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
14
|
+
const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
15
|
+
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
16
|
+
/// <reference lib="esnext.asynciterable" />
|
|
17
|
+
/** Class containing StudentLabs operations. */
|
|
18
|
+
class StudentLabsImpl {
|
|
19
|
+
client;
|
|
20
|
+
/**
|
|
21
|
+
* Initialize a new instance of the class StudentLabs class.
|
|
22
|
+
* @param client Reference to the service client
|
|
23
|
+
*/
|
|
24
|
+
constructor(client) {
|
|
25
|
+
this.client = client;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Get a list of all labs associated with the caller of the API.
|
|
29
|
+
* @param options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
listAll(options) {
|
|
32
|
+
const iter = this.listAllPagingAll(options);
|
|
33
|
+
return {
|
|
34
|
+
next() {
|
|
35
|
+
return iter.next();
|
|
36
|
+
},
|
|
37
|
+
[Symbol.asyncIterator]() {
|
|
38
|
+
return this;
|
|
39
|
+
},
|
|
40
|
+
byPage: (settings) => {
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
42
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
|
+
}
|
|
44
|
+
return this.listAllPagingPage(options, settings);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
async *listAllPagingPage(options, settings) {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings?.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = await this._listAll(options);
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
continuationToken = result.nextLink;
|
|
55
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
56
|
+
yield page;
|
|
57
|
+
}
|
|
58
|
+
while (continuationToken) {
|
|
59
|
+
result = await this._listAllNext(continuationToken, options);
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
async *listAllPagingAll(options) {
|
|
67
|
+
for await (const page of this.listAllPagingPage(options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Get a list of all labs associated with the caller of the API.
|
|
73
|
+
* @param options The options parameters.
|
|
74
|
+
*/
|
|
75
|
+
_listAll(options) {
|
|
76
|
+
return this.client.sendOperationRequest({ options }, listAllOperationSpec);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Get the details for a specified lab associated with the student lab.
|
|
80
|
+
* @param studentLabName Student lab name.
|
|
81
|
+
* @param options The options parameters.
|
|
82
|
+
*/
|
|
83
|
+
get(studentLabName, options) {
|
|
84
|
+
return this.client.sendOperationRequest({ studentLabName, options }, getOperationSpec);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* ListAllNext
|
|
88
|
+
* @param nextLink The nextLink from the previous successful call to the ListAll method.
|
|
89
|
+
* @param options The options parameters.
|
|
90
|
+
*/
|
|
91
|
+
_listAllNext(nextLink, options) {
|
|
92
|
+
return this.client.sendOperationRequest({ nextLink, options }, listAllNextOperationSpec);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
exports.StudentLabsImpl = StudentLabsImpl;
|
|
96
|
+
// Operation Specifications
|
|
97
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
98
|
+
const listAllOperationSpec = {
|
|
99
|
+
path: "/providers/Microsoft.Education/studentLabs",
|
|
100
|
+
httpMethod: "GET",
|
|
101
|
+
responses: {
|
|
102
|
+
200: {
|
|
103
|
+
bodyMapper: Mappers.StudentLabListResult
|
|
104
|
+
},
|
|
105
|
+
default: {
|
|
106
|
+
bodyMapper: Mappers.ErrorResponseBody
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
queryParameters: [Parameters.apiVersion],
|
|
110
|
+
urlParameters: [Parameters.$host],
|
|
111
|
+
headerParameters: [Parameters.accept],
|
|
112
|
+
serializer
|
|
113
|
+
};
|
|
114
|
+
const getOperationSpec = {
|
|
115
|
+
path: "/providers/Microsoft.Education/studentLabs/{studentLabName}",
|
|
116
|
+
httpMethod: "GET",
|
|
117
|
+
responses: {
|
|
118
|
+
200: {
|
|
119
|
+
bodyMapper: Mappers.StudentLabDetails
|
|
120
|
+
},
|
|
121
|
+
default: {
|
|
122
|
+
bodyMapper: Mappers.ErrorResponseBody
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
queryParameters: [Parameters.apiVersion],
|
|
126
|
+
urlParameters: [Parameters.$host, Parameters.studentLabName],
|
|
127
|
+
headerParameters: [Parameters.accept],
|
|
128
|
+
serializer
|
|
129
|
+
};
|
|
130
|
+
const listAllNextOperationSpec = {
|
|
131
|
+
path: "{nextLink}",
|
|
132
|
+
httpMethod: "GET",
|
|
133
|
+
responses: {
|
|
134
|
+
200: {
|
|
135
|
+
bodyMapper: Mappers.StudentLabListResult
|
|
136
|
+
},
|
|
137
|
+
default: {
|
|
138
|
+
bodyMapper: Mappers.ErrorResponseBody
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
142
|
+
headerParameters: [Parameters.accept],
|
|
143
|
+
serializer
|
|
144
|
+
};
|
|
145
|
+
//# sourceMappingURL=studentLabs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"studentLabs.js","sourceRoot":"","sources":["../../../src/operations/studentLabs.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wD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oB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,6DAA6D;IACnE,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,wBAAwB,GAA6B;IACzD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { StudentLabs } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { EducationManagementClient } from \"../educationManagementClient.js\";\nimport {\n StudentLabDetails,\n StudentLabsListAllNextOptionalParams,\n StudentLabsListAllOptionalParams,\n StudentLabsListAllResponse,\n StudentLabsGetOptionalParams,\n StudentLabsGetResponse,\n StudentLabsListAllNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing StudentLabs operations. */\nexport class StudentLabsImpl implements StudentLabs {\n private readonly client: EducationManagementClient;\n\n /**\n * Initialize a new instance of the class StudentLabs class.\n * @param client Reference to the service client\n */\n constructor(client: EducationManagementClient) {\n this.client = client;\n }\n\n /**\n * Get a list of all labs associated with the caller of the API.\n * @param options The options parameters.\n */\n public listAll(\n options?: StudentLabsListAllOptionalParams\n ): PagedAsyncIterableIterator<StudentLabDetails> {\n const iter = this.listAllPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listAllPagingPage(options, settings);\n }\n };\n }\n\n private async *listAllPagingPage(\n options?: StudentLabsListAllOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<StudentLabDetails[]> {\n let result: StudentLabsListAllResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listAll(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listAllNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listAllPagingAll(\n options?: StudentLabsListAllOptionalParams\n ): AsyncIterableIterator<StudentLabDetails> {\n for await (const page of this.listAllPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Get a list of all labs associated with the caller of the API.\n * @param options The options parameters.\n */\n private _listAll(\n options?: StudentLabsListAllOptionalParams\n ): Promise<StudentLabsListAllResponse> {\n return this.client.sendOperationRequest({ options }, listAllOperationSpec);\n }\n\n /**\n * Get the details for a specified lab associated with the student lab.\n * @param studentLabName Student lab name.\n * @param options The options parameters.\n */\n get(\n studentLabName: string,\n options?: StudentLabsGetOptionalParams\n ): Promise<StudentLabsGetResponse> {\n return this.client.sendOperationRequest(\n { studentLabName, options },\n getOperationSpec\n );\n }\n\n /**\n * ListAllNext\n * @param nextLink The nextLink from the previous successful call to the ListAll method.\n * @param options The options parameters.\n */\n private _listAllNext(\n nextLink: string,\n options?: StudentLabsListAllNextOptionalParams\n ): Promise<StudentLabsListAllNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listAllNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listAllOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Education/studentLabs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StudentLabListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Education/studentLabs/{studentLabName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StudentLabDetails\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.studentLabName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listAllNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StudentLabListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Students } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { EducationManagementClient } from "../educationManagementClient.js";
|
|
4
|
+
import { StudentDetails, StudentsListOptionalParams, StudentsGetOptionalParams, StudentsGetResponse, StudentsDeleteOptionalParams, StudentsCreateOrUpdateOptionalParams, StudentsCreateOrUpdateResponse } from "../models/index.js";
|
|
5
|
+
/** Class containing Students operations. */
|
|
6
|
+
export declare class StudentsImpl implements Students {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class Students class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: EducationManagementClient);
|
|
13
|
+
/**
|
|
14
|
+
* Get a list of details about students that are associated with the specified lab.
|
|
15
|
+
* @param billingAccountName Billing account name.
|
|
16
|
+
* @param billingProfileName Billing profile name.
|
|
17
|
+
* @param invoiceSectionName Invoice section name.
|
|
18
|
+
* @param options The options parameters.
|
|
19
|
+
*/
|
|
20
|
+
list(billingAccountName: string, billingProfileName: string, invoiceSectionName: string, options?: StudentsListOptionalParams): PagedAsyncIterableIterator<StudentDetails>;
|
|
21
|
+
private listPagingPage;
|
|
22
|
+
private listPagingAll;
|
|
23
|
+
/**
|
|
24
|
+
* Get a list of details about students that are associated with the specified lab.
|
|
25
|
+
* @param billingAccountName Billing account name.
|
|
26
|
+
* @param billingProfileName Billing profile name.
|
|
27
|
+
* @param invoiceSectionName Invoice section name.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
private _list;
|
|
31
|
+
/**
|
|
32
|
+
* Get the details for a specific student in the specified lab by student alias
|
|
33
|
+
* @param billingAccountName Billing account name.
|
|
34
|
+
* @param billingProfileName Billing profile name.
|
|
35
|
+
* @param invoiceSectionName Invoice section name.
|
|
36
|
+
* @param studentAlias Student alias.
|
|
37
|
+
* @param options The options parameters.
|
|
38
|
+
*/
|
|
39
|
+
get(billingAccountName: string, billingProfileName: string, invoiceSectionName: string, studentAlias: string, options?: StudentsGetOptionalParams): Promise<StudentsGetResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Delete the specified student based on the student alias.
|
|
42
|
+
* @param billingAccountName Billing account name.
|
|
43
|
+
* @param billingProfileName Billing profile name.
|
|
44
|
+
* @param invoiceSectionName Invoice section name.
|
|
45
|
+
* @param studentAlias Student alias.
|
|
46
|
+
* @param options The options parameters.
|
|
47
|
+
*/
|
|
48
|
+
delete(billingAccountName: string, billingProfileName: string, invoiceSectionName: string, studentAlias: string, options?: StudentsDeleteOptionalParams): Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* Create and add a new student to the specified lab or update the details of an existing student in a
|
|
51
|
+
* lab. Note the student must have a valid tenant to accept the lab after they have been added to lab.
|
|
52
|
+
* @param billingAccountName Billing account name.
|
|
53
|
+
* @param billingProfileName Billing profile name.
|
|
54
|
+
* @param invoiceSectionName Invoice section name.
|
|
55
|
+
* @param studentAlias Student alias.
|
|
56
|
+
* @param parameters Request parameters that are provided to update student properties.
|
|
57
|
+
* @param options The options parameters.
|
|
58
|
+
*/
|
|
59
|
+
createOrUpdate(billingAccountName: string, billingProfileName: string, invoiceSectionName: string, studentAlias: string, parameters: StudentDetails, options?: StudentsCreateOrUpdateOptionalParams): Promise<StudentsCreateOrUpdateResponse>;
|
|
60
|
+
/**
|
|
61
|
+
* ListNext
|
|
62
|
+
* @param billingAccountName Billing account name.
|
|
63
|
+
* @param billingProfileName Billing profile name.
|
|
64
|
+
* @param invoiceSectionName Invoice section name.
|
|
65
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
66
|
+
* @param options The options parameters.
|
|
67
|
+
*/
|
|
68
|
+
private _listNext;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=students.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"students.d.ts","sourceRoot":"","sources":["../../../src/operations/students.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAI5D,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EACL,cAAc,EAEd,0BAA0B,EAE1B,yBAAyB,EACzB,mBAAmB,EACnB,4BAA4B,EAC5B,oCAAoC,EACpC,8BAA8B,EAE/B,MAAM,oBAAoB,CAAC;AAG5B,4CAA4C;AAC5C,qBAAa,YAAa,YAAW,QAAQ;IAC3C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA4B;IAEnD;;;OAGG;gBACS,MAAM,EAAE,yBAAyB;IAI7C;;;;;;OAMG;IACI,IAAI,CACT,kBAAkB,EAAE,MAAM,EAC1B,kBAAkB,EAAE,MAAM,EAC1B,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,0BAA0B,GACnC,0BAA0B,CAAC,cAAc,CAAC;YA6B9B,cAAc;YAoCd,aAAa;IAgB5B;;;;;;OAMG;IACH,OAAO,CAAC,KAAK;IAYb;;;;;;;OAOG;IACH,GAAG,CACD,kBAAkB,EAAE,MAAM,EAC1B,kBAAkB,EAAE,MAAM,EAC1B,kBAAkB,EAAE,MAAM,EAC1B,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC;IAa/B;;;;;;;OAOG;IACH,MAAM,CACJ,kBAAkB,EAAE,MAAM,EAC1B,kBAAkB,EAAE,MAAM,EAC1B,kBAAkB,EAAE,MAAM,EAC1B,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,IAAI,CAAC;IAahB;;;;;;;;;OASG;IACH,cAAc,CACZ,kBAAkB,EAAE,MAAM,EAC1B,kBAAkB,EAAE,MAAM,EAC1B,kBAAkB,EAAE,MAAM,EAC1B,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,cAAc,EAC1B,OAAO,CAAC,EAAE,oCAAoC,GAC7C,OAAO,CAAC,8BAA8B,CAAC;IAc1C;;;;;;;OAOG;IACH,OAAO,CAAC,SAAS;CAkBlB"}
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.StudentsImpl = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
const pagingHelper_js_1 = require("../pagingHelper.js");
|
|
13
|
+
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
14
|
+
const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
15
|
+
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
16
|
+
/// <reference lib="esnext.asynciterable" />
|
|
17
|
+
/** Class containing Students operations. */
|
|
18
|
+
class StudentsImpl {
|
|
19
|
+
client;
|
|
20
|
+
/**
|
|
21
|
+
* Initialize a new instance of the class Students class.
|
|
22
|
+
* @param client Reference to the service client
|
|
23
|
+
*/
|
|
24
|
+
constructor(client) {
|
|
25
|
+
this.client = client;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Get a list of details about students that are associated with the specified lab.
|
|
29
|
+
* @param billingAccountName Billing account name.
|
|
30
|
+
* @param billingProfileName Billing profile name.
|
|
31
|
+
* @param invoiceSectionName Invoice section name.
|
|
32
|
+
* @param options The options parameters.
|
|
33
|
+
*/
|
|
34
|
+
list(billingAccountName, billingProfileName, invoiceSectionName, options) {
|
|
35
|
+
const iter = this.listPagingAll(billingAccountName, billingProfileName, invoiceSectionName, options);
|
|
36
|
+
return {
|
|
37
|
+
next() {
|
|
38
|
+
return iter.next();
|
|
39
|
+
},
|
|
40
|
+
[Symbol.asyncIterator]() {
|
|
41
|
+
return this;
|
|
42
|
+
},
|
|
43
|
+
byPage: (settings) => {
|
|
44
|
+
if (settings?.maxPageSize) {
|
|
45
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
46
|
+
}
|
|
47
|
+
return this.listPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options, settings);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
async *listPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options, settings) {
|
|
52
|
+
let result;
|
|
53
|
+
let continuationToken = settings?.continuationToken;
|
|
54
|
+
if (!continuationToken) {
|
|
55
|
+
result = await this._list(billingAccountName, billingProfileName, invoiceSectionName, options);
|
|
56
|
+
let page = result.value || [];
|
|
57
|
+
continuationToken = result.nextLink;
|
|
58
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
59
|
+
yield page;
|
|
60
|
+
}
|
|
61
|
+
while (continuationToken) {
|
|
62
|
+
result = await this._listNext(billingAccountName, billingProfileName, invoiceSectionName, continuationToken, options);
|
|
63
|
+
continuationToken = result.nextLink;
|
|
64
|
+
let page = result.value || [];
|
|
65
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
66
|
+
yield page;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
async *listPagingAll(billingAccountName, billingProfileName, invoiceSectionName, options) {
|
|
70
|
+
for await (const page of this.listPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options)) {
|
|
71
|
+
yield* page;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Get a list of details about students that are associated with the specified lab.
|
|
76
|
+
* @param billingAccountName Billing account name.
|
|
77
|
+
* @param billingProfileName Billing profile name.
|
|
78
|
+
* @param invoiceSectionName Invoice section name.
|
|
79
|
+
* @param options The options parameters.
|
|
80
|
+
*/
|
|
81
|
+
_list(billingAccountName, billingProfileName, invoiceSectionName, options) {
|
|
82
|
+
return this.client.sendOperationRequest({ billingAccountName, billingProfileName, invoiceSectionName, options }, listOperationSpec);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Get the details for a specific student in the specified lab by student alias
|
|
86
|
+
* @param billingAccountName Billing account name.
|
|
87
|
+
* @param billingProfileName Billing profile name.
|
|
88
|
+
* @param invoiceSectionName Invoice section name.
|
|
89
|
+
* @param studentAlias Student alias.
|
|
90
|
+
* @param options The options parameters.
|
|
91
|
+
*/
|
|
92
|
+
get(billingAccountName, billingProfileName, invoiceSectionName, studentAlias, options) {
|
|
93
|
+
return this.client.sendOperationRequest({
|
|
94
|
+
billingAccountName,
|
|
95
|
+
billingProfileName,
|
|
96
|
+
invoiceSectionName,
|
|
97
|
+
studentAlias,
|
|
98
|
+
options
|
|
99
|
+
}, getOperationSpec);
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Delete the specified student based on the student alias.
|
|
103
|
+
* @param billingAccountName Billing account name.
|
|
104
|
+
* @param billingProfileName Billing profile name.
|
|
105
|
+
* @param invoiceSectionName Invoice section name.
|
|
106
|
+
* @param studentAlias Student alias.
|
|
107
|
+
* @param options The options parameters.
|
|
108
|
+
*/
|
|
109
|
+
delete(billingAccountName, billingProfileName, invoiceSectionName, studentAlias, options) {
|
|
110
|
+
return this.client.sendOperationRequest({
|
|
111
|
+
billingAccountName,
|
|
112
|
+
billingProfileName,
|
|
113
|
+
invoiceSectionName,
|
|
114
|
+
studentAlias,
|
|
115
|
+
options
|
|
116
|
+
}, deleteOperationSpec);
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Create and add a new student to the specified lab or update the details of an existing student in a
|
|
120
|
+
* lab. Note the student must have a valid tenant to accept the lab after they have been added to lab.
|
|
121
|
+
* @param billingAccountName Billing account name.
|
|
122
|
+
* @param billingProfileName Billing profile name.
|
|
123
|
+
* @param invoiceSectionName Invoice section name.
|
|
124
|
+
* @param studentAlias Student alias.
|
|
125
|
+
* @param parameters Request parameters that are provided to update student properties.
|
|
126
|
+
* @param options The options parameters.
|
|
127
|
+
*/
|
|
128
|
+
createOrUpdate(billingAccountName, billingProfileName, invoiceSectionName, studentAlias, parameters, options) {
|
|
129
|
+
return this.client.sendOperationRequest({
|
|
130
|
+
billingAccountName,
|
|
131
|
+
billingProfileName,
|
|
132
|
+
invoiceSectionName,
|
|
133
|
+
studentAlias,
|
|
134
|
+
parameters,
|
|
135
|
+
options
|
|
136
|
+
}, createOrUpdateOperationSpec);
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* ListNext
|
|
140
|
+
* @param billingAccountName Billing account name.
|
|
141
|
+
* @param billingProfileName Billing profile name.
|
|
142
|
+
* @param invoiceSectionName Invoice section name.
|
|
143
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
144
|
+
* @param options The options parameters.
|
|
145
|
+
*/
|
|
146
|
+
_listNext(billingAccountName, billingProfileName, invoiceSectionName, nextLink, options) {
|
|
147
|
+
return this.client.sendOperationRequest({
|
|
148
|
+
billingAccountName,
|
|
149
|
+
billingProfileName,
|
|
150
|
+
invoiceSectionName,
|
|
151
|
+
nextLink,
|
|
152
|
+
options
|
|
153
|
+
}, listNextOperationSpec);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
exports.StudentsImpl = StudentsImpl;
|
|
157
|
+
// Operation Specifications
|
|
158
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
159
|
+
const listOperationSpec = {
|
|
160
|
+
path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/students",
|
|
161
|
+
httpMethod: "GET",
|
|
162
|
+
responses: {
|
|
163
|
+
200: {
|
|
164
|
+
bodyMapper: Mappers.StudentListResult
|
|
165
|
+
},
|
|
166
|
+
default: {
|
|
167
|
+
bodyMapper: Mappers.ErrorResponseBody
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
queryParameters: [Parameters.apiVersion, Parameters.includeDeleted],
|
|
171
|
+
urlParameters: [
|
|
172
|
+
Parameters.$host,
|
|
173
|
+
Parameters.billingAccountName,
|
|
174
|
+
Parameters.billingProfileName,
|
|
175
|
+
Parameters.invoiceSectionName
|
|
176
|
+
],
|
|
177
|
+
headerParameters: [Parameters.accept],
|
|
178
|
+
serializer
|
|
179
|
+
};
|
|
180
|
+
const getOperationSpec = {
|
|
181
|
+
path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/students/{studentAlias}",
|
|
182
|
+
httpMethod: "GET",
|
|
183
|
+
responses: {
|
|
184
|
+
200: {
|
|
185
|
+
bodyMapper: Mappers.StudentDetails
|
|
186
|
+
},
|
|
187
|
+
default: {
|
|
188
|
+
bodyMapper: Mappers.ErrorResponseBody
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
queryParameters: [Parameters.apiVersion],
|
|
192
|
+
urlParameters: [
|
|
193
|
+
Parameters.$host,
|
|
194
|
+
Parameters.billingAccountName,
|
|
195
|
+
Parameters.billingProfileName,
|
|
196
|
+
Parameters.invoiceSectionName,
|
|
197
|
+
Parameters.studentAlias
|
|
198
|
+
],
|
|
199
|
+
headerParameters: [Parameters.accept],
|
|
200
|
+
serializer
|
|
201
|
+
};
|
|
202
|
+
const deleteOperationSpec = {
|
|
203
|
+
path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/students/{studentAlias}",
|
|
204
|
+
httpMethod: "DELETE",
|
|
205
|
+
responses: {
|
|
206
|
+
200: {},
|
|
207
|
+
204: {},
|
|
208
|
+
default: {
|
|
209
|
+
bodyMapper: Mappers.ErrorResponseBody
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
queryParameters: [Parameters.apiVersion],
|
|
213
|
+
urlParameters: [
|
|
214
|
+
Parameters.$host,
|
|
215
|
+
Parameters.billingAccountName,
|
|
216
|
+
Parameters.billingProfileName,
|
|
217
|
+
Parameters.invoiceSectionName,
|
|
218
|
+
Parameters.studentAlias
|
|
219
|
+
],
|
|
220
|
+
headerParameters: [Parameters.accept],
|
|
221
|
+
serializer
|
|
222
|
+
};
|
|
223
|
+
const createOrUpdateOperationSpec = {
|
|
224
|
+
path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/students/{studentAlias}",
|
|
225
|
+
httpMethod: "PUT",
|
|
226
|
+
responses: {
|
|
227
|
+
200: {
|
|
228
|
+
bodyMapper: Mappers.StudentDetails
|
|
229
|
+
},
|
|
230
|
+
201: {
|
|
231
|
+
bodyMapper: Mappers.StudentDetails
|
|
232
|
+
},
|
|
233
|
+
default: {
|
|
234
|
+
bodyMapper: Mappers.ErrorResponseBody
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
requestBody: Parameters.parameters3,
|
|
238
|
+
queryParameters: [Parameters.apiVersion],
|
|
239
|
+
urlParameters: [
|
|
240
|
+
Parameters.$host,
|
|
241
|
+
Parameters.billingAccountName,
|
|
242
|
+
Parameters.billingProfileName,
|
|
243
|
+
Parameters.invoiceSectionName,
|
|
244
|
+
Parameters.studentAlias
|
|
245
|
+
],
|
|
246
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
247
|
+
mediaType: "json",
|
|
248
|
+
serializer
|
|
249
|
+
};
|
|
250
|
+
const listNextOperationSpec = {
|
|
251
|
+
path: "{nextLink}",
|
|
252
|
+
httpMethod: "GET",
|
|
253
|
+
responses: {
|
|
254
|
+
200: {
|
|
255
|
+
bodyMapper: Mappers.StudentListResult
|
|
256
|
+
},
|
|
257
|
+
default: {
|
|
258
|
+
bodyMapper: Mappers.ErrorResponseBody
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
urlParameters: [
|
|
262
|
+
Parameters.$host,
|
|
263
|
+
Parameters.billingAccountName,
|
|
264
|
+
Parameters.billingProfileName,
|
|
265
|
+
Parameters.nextLink,
|
|
266
|
+
Parameters.invoiceSectionName
|
|
267
|
+
],
|
|
268
|
+
headerParameters: [Parameters.accept],
|
|
269
|
+
serializer
|
|
270
|
+
};
|
|
271
|
+
//# sourceMappingURL=students.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"students.js","sourceRoot":"","sources":["../../../src/operations/students.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAa,YAAY;IACN,MAAM,CAA4B;IAEnD;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CACT,kBAA0B,EAC1B,kBAA0B,EAC1B,kBAA0B,EAC1B,OAAoC;QAEpC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,C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AAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Students } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { EducationManagementClient } from \"../educationManagementClient.js\";\nimport {\n StudentDetails,\n StudentsListNextOptionalParams,\n StudentsListOptionalParams,\n StudentsListResponse,\n StudentsGetOptionalParams,\n StudentsGetResponse,\n StudentsDeleteOptionalParams,\n StudentsCreateOrUpdateOptionalParams,\n StudentsCreateOrUpdateResponse,\n StudentsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Students operations. */\nexport class StudentsImpl implements Students {\n private readonly client: EducationManagementClient;\n\n /**\n * Initialize a new instance of the class Students class.\n * @param client Reference to the service client\n */\n constructor(client: EducationManagementClient) {\n this.client = client;\n }\n\n /**\n * Get a list of details about students that are associated with the specified lab.\n * @param billingAccountName Billing account name.\n * @param billingProfileName Billing profile name.\n * @param invoiceSectionName Invoice section name.\n * @param options The options parameters.\n */\n public list(\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n options?: StudentsListOptionalParams\n ): PagedAsyncIterableIterator<StudentDetails> {\n const iter = this.listPagingAll(\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n options?: StudentsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<StudentDetails[]> {\n let result: StudentsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n options?: StudentsListOptionalParams\n ): AsyncIterableIterator<StudentDetails> {\n for await (const page of this.listPagingPage(\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a list of details about students that are associated with the specified lab.\n * @param billingAccountName Billing account name.\n * @param billingProfileName Billing profile name.\n * @param invoiceSectionName Invoice section name.\n * @param options The options parameters.\n */\n private _list(\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n options?: StudentsListOptionalParams\n ): Promise<StudentsListResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, billingProfileName, invoiceSectionName, options },\n listOperationSpec\n );\n }\n\n /**\n * Get the details for a specific student in the specified lab by student alias\n * @param billingAccountName Billing account name.\n * @param billingProfileName Billing profile name.\n * @param invoiceSectionName Invoice section name.\n * @param studentAlias Student alias.\n * @param options The options parameters.\n */\n get(\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n studentAlias: string,\n options?: StudentsGetOptionalParams\n ): Promise<StudentsGetResponse> {\n return this.client.sendOperationRequest(\n {\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n studentAlias,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Delete the specified student based on the student alias.\n * @param billingAccountName Billing account name.\n * @param billingProfileName Billing profile name.\n * @param invoiceSectionName Invoice section name.\n * @param studentAlias Student alias.\n * @param options The options parameters.\n */\n delete(\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n studentAlias: string,\n options?: StudentsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n studentAlias,\n options\n },\n deleteOperationSpec\n );\n }\n\n /**\n * Create and add a new student to the specified lab or update the details of an existing student in a\n * lab. Note the student must have a valid tenant to accept the lab after they have been added to lab.\n * @param billingAccountName Billing account name.\n * @param billingProfileName Billing profile name.\n * @param invoiceSectionName Invoice section name.\n * @param studentAlias Student alias.\n * @param parameters Request parameters that are provided to update student properties.\n * @param options The options parameters.\n */\n createOrUpdate(\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n studentAlias: string,\n parameters: StudentDetails,\n options?: StudentsCreateOrUpdateOptionalParams\n ): Promise<StudentsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n studentAlias,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param billingAccountName Billing account name.\n * @param billingProfileName Billing profile name.\n * @param invoiceSectionName Invoice section name.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n nextLink: string,\n options?: StudentsListNextOptionalParams\n ): Promise<StudentsListNextResponse> {\n return this.client.sendOperationRequest(\n {\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n nextLink,\n options\n },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/students\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StudentListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.includeDeleted],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.invoiceSectionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/students/{studentAlias}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StudentDetails\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.invoiceSectionName,\n Parameters.studentAlias\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/students/{studentAlias}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponseBody\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.invoiceSectionName,\n Parameters.studentAlias\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default/students/{studentAlias}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.StudentDetails\n },\n 201: {\n bodyMapper: Mappers.StudentDetails\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody\n }\n },\n requestBody: Parameters.parameters3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.invoiceSectionName,\n Parameters.studentAlias\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StudentListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponseBody\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.nextLink,\n Parameters.invoiceSectionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { GrantDetails, GrantsListAllOptionalParams, GrantsListOptionalParams, GrantsGetOptionalParams, GrantsGetResponse } from "../models/index.js";
|
|
3
|
+
/** Interface representing a Grants. */
|
|
4
|
+
export interface Grants {
|
|
5
|
+
/**
|
|
6
|
+
* Get a list of grants that Microsoft has provided.
|
|
7
|
+
* @param options The options parameters.
|
|
8
|
+
*/
|
|
9
|
+
listAll(options?: GrantsListAllOptionalParams): PagedAsyncIterableIterator<GrantDetails>;
|
|
10
|
+
/**
|
|
11
|
+
* Get details for a specific grant linked to the provided billing account and billing profile.
|
|
12
|
+
* @param billingAccountName Billing account name.
|
|
13
|
+
* @param billingProfileName Billing profile name.
|
|
14
|
+
* @param options The options parameters.
|
|
15
|
+
*/
|
|
16
|
+
list(billingAccountName: string, billingProfileName: string, options?: GrantsListOptionalParams): PagedAsyncIterableIterator<GrantDetails>;
|
|
17
|
+
/**
|
|
18
|
+
* Get details for a specific grant linked to the provided billing account and billing profile.
|
|
19
|
+
* @param billingAccountName Billing account name.
|
|
20
|
+
* @param billingProfileName Billing profile name.
|
|
21
|
+
* @param options The options parameters.
|
|
22
|
+
*/
|
|
23
|
+
get(billingAccountName: string, billingProfileName: string, options?: GrantsGetOptionalParams): Promise<GrantsGetResponse>;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=grants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grants.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/grants.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,YAAY,EACZ,2BAA2B,EAC3B,wBAAwB,EACxB,uBAAuB,EACvB,iBAAiB,EAClB,MAAM,oBAAoB,CAAC;AAG5B,uCAAuC;AACvC,MAAM,WAAW,MAAM;IACrB;;;OAGG;IACH,OAAO,CACL,OAAO,CAAC,EAAE,2BAA2B,GACpC,0BAA0B,CAAC,YAAY,CAAC,CAAC;IAC5C;;;;;OAKG;IACH,IAAI,CACF,kBAAkB,EAAE,MAAM,EAC1B,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,wBAAwB,GACjC,0BAA0B,CAAC,YAAY,CAAC,CAAC;IAC5C;;;;;OAKG;IACH,GAAG,CACD,kBAAkB,EAAE,MAAM,EAC1B,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,uBAAuB,GAChC,OAAO,CAAC,iBAAiB,CAAC,CAAC;CAC/B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
//# sourceMappingURL=grants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grants.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/grants.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport {\n GrantDetails,\n GrantsListAllOptionalParams,\n GrantsListOptionalParams,\n GrantsGetOptionalParams,\n GrantsGetResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Grants. */\nexport interface Grants {\n /**\n * Get a list of grants that Microsoft has provided.\n * @param options The options parameters.\n */\n listAll(\n options?: GrantsListAllOptionalParams\n ): PagedAsyncIterableIterator<GrantDetails>;\n /**\n * Get details for a specific grant linked to the provided billing account and billing profile.\n * @param billingAccountName Billing account name.\n * @param billingProfileName Billing profile name.\n * @param options The options parameters.\n */\n list(\n billingAccountName: string,\n billingProfileName: string,\n options?: GrantsListOptionalParams\n ): PagedAsyncIterableIterator<GrantDetails>;\n /**\n * Get details for a specific grant linked to the provided billing account and billing profile.\n * @param billingAccountName Billing account name.\n * @param billingProfileName Billing profile name.\n * @param options The options parameters.\n */\n get(\n billingAccountName: string,\n billingProfileName: string,\n options?: GrantsGetOptionalParams\n ): Promise<GrantsGetResponse>;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
const tslib_1 = require("tslib");
|
|
11
|
+
tslib_1.__exportStar(require("./operations.js"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./grants.js"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./labs.js"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./joinRequests.js"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./students.js"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./studentLabs.js"), exports);
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,0DAAgC;AAChC,sDAA4B;AAC5B,oDAA0B;AAC1B,4DAAkC;AAClC,wDAA8B;AAC9B,2DAAiC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./operations.js\";\nexport * from \"./grants.js\";\nexport * from \"./labs.js\";\nexport * from \"./joinRequests.js\";\nexport * from \"./students.js\";\nexport * from \"./studentLabs.js\";\n"]}
|