@azure/arm-reservations 9.0.1-alpha.20250218.1 → 9.0.1-alpha.20250219.2
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/README.md +23 -16
- package/{dist-esm/src → dist/browser}/azureReservationAPI.d.ts +2 -2
- package/dist/browser/azureReservationAPI.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/azureReservationAPI.js +4 -4
- package/dist/browser/azureReservationAPI.js.map +1 -0
- package/dist/browser/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/lroImpl.js.map +1 -0
- package/dist/browser/models/index.js.map +1 -0
- 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/calculateExchange.d.ts +3 -3
- package/dist/browser/operations/calculateExchange.d.ts.map +1 -0
- package/dist/browser/operations/calculateExchange.js +104 -0
- package/dist/browser/operations/calculateExchange.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/calculateRefund.d.ts +3 -3
- package/dist/browser/operations/calculateRefund.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/calculateRefund.js +2 -2
- package/dist/browser/operations/calculateRefund.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/exchange.d.ts +3 -3
- package/dist/browser/operations/exchange.d.ts.map +1 -0
- package/dist/browser/operations/exchange.js +104 -0
- package/dist/browser/operations/exchange.js.map +1 -0
- package/dist/browser/operations/index.d.ts +10 -0
- package/dist/browser/operations/index.d.ts.map +1 -0
- package/dist/browser/operations/index.js +17 -0
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operation.d.ts +3 -3
- package/dist/browser/operations/operation.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operation.js +3 -3
- package/dist/browser/operations/operation.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/quota.d.ts +3 -3
- package/dist/browser/operations/quota.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/quota.js +93 -101
- package/dist/browser/operations/quota.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/quotaRequestStatus.d.ts +3 -3
- package/dist/browser/operations/quotaRequestStatus.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/quotaRequestStatus.js +3 -3
- package/dist/browser/operations/quotaRequestStatus.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/reservation.d.ts +3 -3
- package/dist/browser/operations/reservation.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/reservation.js +152 -168
- package/dist/browser/operations/reservation.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/reservationOrder.d.ts +3 -3
- package/dist/browser/operations/reservationOrder.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/reservationOrder.js +42 -46
- package/dist/browser/operations/reservationOrder.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/return.d.ts +3 -3
- package/dist/browser/operations/return.d.ts.map +1 -0
- package/dist/browser/operations/return.js +104 -0
- package/dist/browser/operations/return.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/calculateExchange.d.ts +1 -1
- package/dist/browser/operationsInterfaces/calculateExchange.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/calculateExchange.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/calculateRefund.d.ts +1 -1
- package/dist/browser/operationsInterfaces/calculateRefund.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/calculateRefund.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/exchange.d.ts +1 -1
- package/dist/browser/operationsInterfaces/exchange.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/exchange.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +10 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/index.js +17 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operation.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operation.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/operation.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/quota.d.ts +1 -1
- package/dist/browser/operationsInterfaces/quota.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/quota.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/quotaRequestStatus.d.ts +1 -1
- package/dist/browser/operationsInterfaces/quotaRequestStatus.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/quotaRequestStatus.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/reservation.d.ts +1 -1
- package/dist/browser/operationsInterfaces/reservation.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/reservation.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/reservationOrder.d.ts +1 -1
- package/dist/browser/operationsInterfaces/reservationOrder.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/reservationOrder.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/return.d.ts +1 -1
- package/dist/browser/operationsInterfaces/return.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/return.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/azureReservationAPI.d.ts +52 -0
- package/dist/commonjs/azureReservationAPI.d.ts.map +1 -0
- package/dist/commonjs/azureReservationAPI.js +232 -0
- package/dist/commonjs/azureReservationAPI.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/dist/commonjs/lroImpl.d.ts +11 -0
- package/dist/commonjs/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/lroImpl.js +17 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/{types/arm-reservations.d.ts → dist/commonjs/models/index.d.ts} +2489 -3123
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +489 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +118 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +3901 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +42 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +339 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/calculateExchange.d.ts +28 -0
- package/dist/commonjs/operations/calculateExchange.d.ts.map +1 -0
- package/dist/commonjs/operations/calculateExchange.js +109 -0
- package/dist/commonjs/operations/calculateExchange.js.map +1 -0
- package/dist/commonjs/operations/calculateRefund.d.ts +21 -0
- package/dist/commonjs/operations/calculateRefund.d.ts.map +1 -0
- package/dist/commonjs/operations/calculateRefund.js +56 -0
- package/dist/commonjs/operations/calculateRefund.js.map +1 -0
- package/dist/commonjs/operations/exchange.d.ts +28 -0
- package/dist/commonjs/operations/exchange.d.ts.map +1 -0
- package/dist/commonjs/operations/exchange.js +109 -0
- package/dist/commonjs/operations/exchange.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +10 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +20 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/operation.d.ts +32 -0
- package/dist/commonjs/operations/operation.d.ts.map +1 -0
- package/dist/commonjs/operations/operation.js +137 -0
- package/dist/commonjs/operations/operation.js.map +1 -0
- package/dist/commonjs/operations/quota.d.ts +121 -0
- package/dist/commonjs/operations/quota.d.ts.map +1 -0
- package/dist/commonjs/operations/quota.js +421 -0
- package/dist/commonjs/operations/quota.js.map +1 -0
- package/dist/commonjs/operations/quotaRequestStatus.d.ts +54 -0
- package/dist/commonjs/operations/quotaRequestStatus.d.ts.map +1 -0
- package/dist/commonjs/operations/quotaRequestStatus.js +199 -0
- package/dist/commonjs/operations/quotaRequestStatus.js.map +1 -0
- package/dist/commonjs/operations/reservation.d.ts +166 -0
- package/dist/commonjs/operations/reservation.d.ts.map +1 -0
- package/dist/commonjs/operations/reservation.js +856 -0
- package/dist/commonjs/operations/reservation.js.map +1 -0
- package/dist/commonjs/operations/reservationOrder.d.ts +67 -0
- package/dist/commonjs/operations/reservationOrder.d.ts.map +1 -0
- package/dist/commonjs/operations/reservationOrder.js +296 -0
- package/dist/commonjs/operations/reservationOrder.js.map +1 -0
- package/dist/commonjs/operations/return.d.ts +28 -0
- package/dist/commonjs/operations/return.d.ts.map +1 -0
- package/dist/commonjs/operations/return.js +109 -0
- package/dist/commonjs/operations/return.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/calculateExchange.d.ts +20 -0
- package/dist/commonjs/operationsInterfaces/calculateExchange.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/calculateExchange.js +10 -0
- package/dist/commonjs/operationsInterfaces/calculateExchange.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/calculateRefund.d.ts +13 -0
- package/dist/commonjs/operationsInterfaces/calculateRefund.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/calculateRefund.js +10 -0
- package/dist/commonjs/operationsInterfaces/calculateRefund.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/exchange.d.ts +20 -0
- package/dist/commonjs/operationsInterfaces/exchange.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/exchange.js +10 -0
- package/dist/commonjs/operationsInterfaces/exchange.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +10 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +20 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/operation.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/operation.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/operation.js +10 -0
- package/dist/commonjs/operationsInterfaces/operation.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/quota.d.ts +93 -0
- package/dist/commonjs/operationsInterfaces/quota.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/quota.js +10 -0
- package/dist/commonjs/operationsInterfaces/quota.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/quotaRequestStatus.d.ts +26 -0
- package/dist/commonjs/operationsInterfaces/quotaRequestStatus.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/quotaRequestStatus.js +10 -0
- package/dist/commonjs/operationsInterfaces/quotaRequestStatus.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/reservation.d.ts +112 -0
- package/dist/commonjs/operationsInterfaces/reservation.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/reservation.js +10 -0
- package/dist/commonjs/operationsInterfaces/reservation.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/reservationOrder.d.ts +46 -0
- package/dist/commonjs/operationsInterfaces/reservationOrder.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/reservationOrder.js +10 -0
- package/dist/commonjs/operationsInterfaces/reservationOrder.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/return.d.ts +20 -0
- package/dist/commonjs/operationsInterfaces/return.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/return.js +10 -0
- package/dist/commonjs/operationsInterfaces/return.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 +36 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/{types → dist/commonjs}/tsdoc-metadata.json +1 -1
- package/dist/esm/azureReservationAPI.d.ts +52 -0
- package/dist/esm/azureReservationAPI.d.ts.map +1 -0
- package/dist/esm/azureReservationAPI.js +228 -0
- package/dist/esm/azureReservationAPI.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 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lroImpl.d.ts +11 -0
- package/dist/esm/lroImpl.d.ts.map +1 -0
- package/dist/esm/lroImpl.js +14 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/models/index.d.ts +2489 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +486 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +118 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +3896 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +42 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +336 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/calculateExchange.d.ts +28 -0
- package/dist/esm/operations/calculateExchange.d.ts.map +1 -0
- package/dist/esm/operations/calculateExchange.js +104 -0
- package/dist/esm/operations/calculateExchange.js.map +1 -0
- package/dist/esm/operations/calculateRefund.d.ts +21 -0
- package/dist/esm/operations/calculateRefund.d.ts.map +1 -0
- package/dist/esm/operations/calculateRefund.js +51 -0
- package/dist/esm/operations/calculateRefund.js.map +1 -0
- package/dist/esm/operations/exchange.d.ts +28 -0
- package/dist/esm/operations/exchange.d.ts.map +1 -0
- package/dist/esm/operations/exchange.js +104 -0
- package/dist/esm/operations/exchange.js.map +1 -0
- package/dist/esm/operations/index.d.ts +10 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +17 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/operation.d.ts +32 -0
- package/dist/esm/operations/operation.d.ts.map +1 -0
- package/dist/esm/operations/operation.js +133 -0
- package/dist/esm/operations/operation.js.map +1 -0
- package/dist/esm/operations/quota.d.ts +121 -0
- package/dist/esm/operations/quota.d.ts.map +1 -0
- package/dist/esm/operations/quota.js +417 -0
- package/dist/esm/operations/quota.js.map +1 -0
- package/dist/esm/operations/quotaRequestStatus.d.ts +54 -0
- package/dist/esm/operations/quotaRequestStatus.d.ts.map +1 -0
- package/dist/esm/operations/quotaRequestStatus.js +195 -0
- package/dist/esm/operations/quotaRequestStatus.js.map +1 -0
- package/dist/esm/operations/reservation.d.ts +166 -0
- package/dist/esm/operations/reservation.d.ts.map +1 -0
- package/dist/esm/operations/reservation.js +852 -0
- package/dist/esm/operations/reservation.js.map +1 -0
- package/dist/esm/operations/reservationOrder.d.ts +67 -0
- package/dist/esm/operations/reservationOrder.d.ts.map +1 -0
- package/dist/esm/operations/reservationOrder.js +292 -0
- package/dist/esm/operations/reservationOrder.js.map +1 -0
- package/dist/esm/operations/return.d.ts +28 -0
- package/dist/esm/operations/return.d.ts.map +1 -0
- package/dist/esm/operations/return.js +104 -0
- package/dist/esm/operations/return.js.map +1 -0
- package/dist/esm/operationsInterfaces/calculateExchange.d.ts +20 -0
- package/dist/esm/operationsInterfaces/calculateExchange.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/calculateExchange.js +9 -0
- package/dist/esm/operationsInterfaces/calculateExchange.js.map +1 -0
- package/dist/esm/operationsInterfaces/calculateRefund.d.ts +13 -0
- package/dist/esm/operationsInterfaces/calculateRefund.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/calculateRefund.js +9 -0
- package/dist/esm/operationsInterfaces/calculateRefund.js.map +1 -0
- package/dist/esm/operationsInterfaces/exchange.d.ts +20 -0
- package/dist/esm/operationsInterfaces/exchange.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/exchange.js +9 -0
- package/dist/esm/operationsInterfaces/exchange.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +10 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +17 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/operation.d.ts +11 -0
- package/dist/esm/operationsInterfaces/operation.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/operation.js +9 -0
- package/dist/esm/operationsInterfaces/operation.js.map +1 -0
- package/dist/esm/operationsInterfaces/quota.d.ts +93 -0
- package/dist/esm/operationsInterfaces/quota.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/quota.js +9 -0
- package/dist/esm/operationsInterfaces/quota.js.map +1 -0
- package/dist/esm/operationsInterfaces/quotaRequestStatus.d.ts +26 -0
- package/dist/esm/operationsInterfaces/quotaRequestStatus.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/quotaRequestStatus.js +9 -0
- package/dist/esm/operationsInterfaces/quotaRequestStatus.js.map +1 -0
- package/dist/esm/operationsInterfaces/reservation.d.ts +112 -0
- package/dist/esm/operationsInterfaces/reservation.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/reservation.js +9 -0
- package/dist/esm/operationsInterfaces/reservation.js.map +1 -0
- package/dist/esm/operationsInterfaces/reservationOrder.d.ts +46 -0
- package/dist/esm/operationsInterfaces/reservationOrder.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/reservationOrder.js +9 -0
- package/dist/esm/operationsInterfaces/reservationOrder.js.map +1 -0
- package/dist/esm/operationsInterfaces/return.d.ts +20 -0
- package/dist/esm/operationsInterfaces/return.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/return.js +9 -0
- package/dist/esm/operationsInterfaces/return.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 +32 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/react-native/azureReservationAPI.d.ts +52 -0
- package/dist/react-native/azureReservationAPI.d.ts.map +1 -0
- package/dist/react-native/azureReservationAPI.js +228 -0
- package/dist/react-native/azureReservationAPI.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/lroImpl.d.ts +11 -0
- package/dist/react-native/lroImpl.d.ts.map +1 -0
- package/dist/react-native/lroImpl.js +14 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/models/index.d.ts +2489 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +486 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +118 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +3896 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +42 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +336 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/calculateExchange.d.ts +28 -0
- package/dist/react-native/operations/calculateExchange.d.ts.map +1 -0
- package/dist/react-native/operations/calculateExchange.js +104 -0
- package/dist/react-native/operations/calculateExchange.js.map +1 -0
- package/dist/react-native/operations/calculateRefund.d.ts +21 -0
- package/dist/react-native/operations/calculateRefund.d.ts.map +1 -0
- package/dist/react-native/operations/calculateRefund.js +51 -0
- package/dist/react-native/operations/calculateRefund.js.map +1 -0
- package/dist/react-native/operations/exchange.d.ts +28 -0
- package/dist/react-native/operations/exchange.d.ts.map +1 -0
- package/dist/react-native/operations/exchange.js +104 -0
- package/dist/react-native/operations/exchange.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +10 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +17 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/operation.d.ts +32 -0
- package/dist/react-native/operations/operation.d.ts.map +1 -0
- package/dist/react-native/operations/operation.js +133 -0
- package/dist/react-native/operations/operation.js.map +1 -0
- package/dist/react-native/operations/quota.d.ts +121 -0
- package/dist/react-native/operations/quota.d.ts.map +1 -0
- package/dist/react-native/operations/quota.js +417 -0
- package/dist/react-native/operations/quota.js.map +1 -0
- package/dist/react-native/operations/quotaRequestStatus.d.ts +54 -0
- package/dist/react-native/operations/quotaRequestStatus.d.ts.map +1 -0
- package/dist/react-native/operations/quotaRequestStatus.js +195 -0
- package/dist/react-native/operations/quotaRequestStatus.js.map +1 -0
- package/dist/react-native/operations/reservation.d.ts +166 -0
- package/dist/react-native/operations/reservation.d.ts.map +1 -0
- package/dist/react-native/operations/reservation.js +852 -0
- package/dist/react-native/operations/reservation.js.map +1 -0
- package/dist/react-native/operations/reservationOrder.d.ts +67 -0
- package/dist/react-native/operations/reservationOrder.d.ts.map +1 -0
- package/dist/react-native/operations/reservationOrder.js +292 -0
- package/dist/react-native/operations/reservationOrder.js.map +1 -0
- package/dist/react-native/operations/return.d.ts +28 -0
- package/dist/react-native/operations/return.d.ts.map +1 -0
- package/dist/react-native/operations/return.js +104 -0
- package/dist/react-native/operations/return.js.map +1 -0
- package/dist/react-native/operationsInterfaces/calculateExchange.d.ts +20 -0
- package/dist/react-native/operationsInterfaces/calculateExchange.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/calculateExchange.js +9 -0
- package/dist/react-native/operationsInterfaces/calculateExchange.js.map +1 -0
- package/dist/react-native/operationsInterfaces/calculateRefund.d.ts +13 -0
- package/dist/react-native/operationsInterfaces/calculateRefund.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/calculateRefund.js +9 -0
- package/dist/react-native/operationsInterfaces/calculateRefund.js.map +1 -0
- package/dist/react-native/operationsInterfaces/exchange.d.ts +20 -0
- package/dist/react-native/operationsInterfaces/exchange.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/exchange.js +9 -0
- package/dist/react-native/operationsInterfaces/exchange.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +10 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +17 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/operation.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/operation.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/operation.js +9 -0
- package/dist/react-native/operationsInterfaces/operation.js.map +1 -0
- package/dist/react-native/operationsInterfaces/quota.d.ts +93 -0
- package/dist/react-native/operationsInterfaces/quota.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/quota.js +9 -0
- package/dist/react-native/operationsInterfaces/quota.js.map +1 -0
- package/dist/react-native/operationsInterfaces/quotaRequestStatus.d.ts +26 -0
- package/dist/react-native/operationsInterfaces/quotaRequestStatus.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/quotaRequestStatus.js +9 -0
- package/dist/react-native/operationsInterfaces/quotaRequestStatus.js.map +1 -0
- package/dist/react-native/operationsInterfaces/reservation.d.ts +112 -0
- package/dist/react-native/operationsInterfaces/reservation.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/reservation.js +9 -0
- package/dist/react-native/operationsInterfaces/reservation.js.map +1 -0
- package/dist/react-native/operationsInterfaces/reservationOrder.d.ts +46 -0
- package/dist/react-native/operationsInterfaces/reservationOrder.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/reservationOrder.js +9 -0
- package/dist/react-native/operationsInterfaces/reservationOrder.js.map +1 -0
- package/dist/react-native/operationsInterfaces/return.d.ts +20 -0
- package/dist/react-native/operationsInterfaces/return.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/return.js +9 -0
- package/dist/react-native/operationsInterfaces/return.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 +32 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/package.json +67 -36
- package/dist/index.js +0 -7378
- 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/calculateExchangePostSample.d.ts +0 -2
- package/dist-esm/samples-dev/calculateExchangePostSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/calculateExchangePostSample.js +0 -67
- package/dist-esm/samples-dev/calculateExchangePostSample.js.map +0 -1
- package/dist-esm/samples-dev/calculateRefundPostSample.d.ts +0 -2
- package/dist-esm/samples-dev/calculateRefundPostSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/calculateRefundPostSample.js +0 -39
- package/dist-esm/samples-dev/calculateRefundPostSample.js.map +0 -1
- package/dist-esm/samples-dev/exchangePostSample.d.ts +0 -2
- package/dist-esm/samples-dev/exchangePostSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/exchangePostSample.js +0 -31
- package/dist-esm/samples-dev/exchangePostSample.js.map +0 -1
- package/dist-esm/samples-dev/getAppliedReservationListSample.d.ts +0 -2
- package/dist-esm/samples-dev/getAppliedReservationListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/getAppliedReservationListSample.js +0 -34
- package/dist-esm/samples-dev/getAppliedReservationListSample.js.map +0 -1
- package/dist-esm/samples-dev/getCatalogSample.d.ts +0 -2
- package/dist-esm/samples-dev/getCatalogSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/getCatalogSample.js +0 -46
- package/dist-esm/samples-dev/getCatalogSample.js.map +0 -1
- package/dist-esm/samples-dev/operationListSample.d.ts +0 -2
- package/dist-esm/samples-dev/operationListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationListSample.js +0 -49
- package/dist-esm/samples-dev/operationListSample.js.map +0 -1
- package/dist-esm/samples-dev/quotaCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/quotaCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/quotaCreateOrUpdateSample.js +0 -121
- package/dist-esm/samples-dev/quotaCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/quotaGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/quotaGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/quotaGetSample.js +0 -37
- package/dist-esm/samples-dev/quotaGetSample.js.map +0 -1
- package/dist-esm/samples-dev/quotaListSample.d.ts +0 -2
- package/dist-esm/samples-dev/quotaListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/quotaListSample.js +0 -86
- package/dist-esm/samples-dev/quotaListSample.js.map +0 -1
- package/dist-esm/samples-dev/quotaRequestStatusGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/quotaRequestStatusGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/quotaRequestStatusGetSample.js +0 -75
- package/dist-esm/samples-dev/quotaRequestStatusGetSample.js.map +0 -1
- package/dist-esm/samples-dev/quotaRequestStatusListSample.d.ts +0 -2
- package/dist-esm/samples-dev/quotaRequestStatusListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/quotaRequestStatusListSample.js +0 -52
- package/dist-esm/samples-dev/quotaRequestStatusListSample.js.map +0 -1
- package/dist-esm/samples-dev/quotaUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/quotaUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/quotaUpdateSample.js +0 -45
- package/dist-esm/samples-dev/quotaUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/reservationArchiveSample.d.ts +0 -2
- package/dist-esm/samples-dev/reservationArchiveSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/reservationArchiveSample.js +0 -35
- package/dist-esm/samples-dev/reservationArchiveSample.js.map +0 -1
- package/dist-esm/samples-dev/reservationAvailableScopesSample.d.ts +0 -2
- package/dist-esm/samples-dev/reservationAvailableScopesSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/reservationAvailableScopesSample.js +0 -35
- package/dist-esm/samples-dev/reservationAvailableScopesSample.js.map +0 -1
- package/dist-esm/samples-dev/reservationGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/reservationGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/reservationGetSample.js +0 -30
- package/dist-esm/samples-dev/reservationGetSample.js.map +0 -1
- package/dist-esm/samples-dev/reservationListAllSample.d.ts +0 -2
- package/dist-esm/samples-dev/reservationListAllSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/reservationListAllSample.js +0 -52
- package/dist-esm/samples-dev/reservationListAllSample.js.map +0 -1
- package/dist-esm/samples-dev/reservationListRevisionsSample.d.ts +0 -2
- package/dist-esm/samples-dev/reservationListRevisionsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/reservationListRevisionsSample.js +0 -51
- package/dist-esm/samples-dev/reservationListRevisionsSample.js.map +0 -1
- package/dist-esm/samples-dev/reservationListSample.d.ts +0 -2
- package/dist-esm/samples-dev/reservationListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/reservationListSample.js +0 -50
- package/dist-esm/samples-dev/reservationListSample.js.map +0 -1
- package/dist-esm/samples-dev/reservationMergeSample.d.ts +0 -2
- package/dist-esm/samples-dev/reservationMergeSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/reservationMergeSample.js +0 -33
- package/dist-esm/samples-dev/reservationMergeSample.js.map +0 -1
- package/dist-esm/samples-dev/reservationOrderCalculateSample.d.ts +0 -2
- package/dist-esm/samples-dev/reservationOrderCalculateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/reservationOrderCalculateSample.js +0 -39
- package/dist-esm/samples-dev/reservationOrderCalculateSample.js.map +0 -1
- package/dist-esm/samples-dev/reservationOrderChangeDirectorySample.d.ts +0 -2
- package/dist-esm/samples-dev/reservationOrderChangeDirectorySample.d.ts.map +0 -1
- package/dist-esm/samples-dev/reservationOrderChangeDirectorySample.js +0 -30
- package/dist-esm/samples-dev/reservationOrderChangeDirectorySample.js.map +0 -1
- package/dist-esm/samples-dev/reservationOrderGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/reservationOrderGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/reservationOrderGetSample.js +0 -45
- package/dist-esm/samples-dev/reservationOrderGetSample.js.map +0 -1
- package/dist-esm/samples-dev/reservationOrderListSample.d.ts +0 -2
- package/dist-esm/samples-dev/reservationOrderListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/reservationOrderListSample.js +0 -49
- package/dist-esm/samples-dev/reservationOrderListSample.js.map +0 -1
- package/dist-esm/samples-dev/reservationOrderPurchaseSample.d.ts +0 -2
- package/dist-esm/samples-dev/reservationOrderPurchaseSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/reservationOrderPurchaseSample.js +0 -41
- package/dist-esm/samples-dev/reservationOrderPurchaseSample.js.map +0 -1
- package/dist-esm/samples-dev/reservationSplitSample.d.ts +0 -2
- package/dist-esm/samples-dev/reservationSplitSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/reservationSplitSample.js +0 -31
- package/dist-esm/samples-dev/reservationSplitSample.js.map +0 -1
- package/dist-esm/samples-dev/reservationUnarchiveSample.d.ts +0 -2
- package/dist-esm/samples-dev/reservationUnarchiveSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/reservationUnarchiveSample.js +0 -37
- package/dist-esm/samples-dev/reservationUnarchiveSample.js.map +0 -1
- package/dist-esm/samples-dev/reservationUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/reservationUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/reservationUpdateSample.js +0 -32
- package/dist-esm/samples-dev/reservationUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/returnPostSample.d.ts +0 -2
- package/dist-esm/samples-dev/returnPostSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/returnPostSample.js +0 -38
- package/dist-esm/samples-dev/returnPostSample.js.map +0 -1
- package/dist-esm/src/azureReservationAPI.d.ts.map +0 -1
- package/dist-esm/src/azureReservationAPI.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -5
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/lroImpl.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/calculateExchange.d.ts.map +0 -1
- package/dist-esm/src/operations/calculateExchange.js +0 -109
- package/dist-esm/src/operations/calculateExchange.js.map +0 -1
- package/dist-esm/src/operations/calculateRefund.d.ts.map +0 -1
- package/dist-esm/src/operations/calculateRefund.js.map +0 -1
- package/dist-esm/src/operations/exchange.d.ts.map +0 -1
- package/dist-esm/src/operations/exchange.js +0 -109
- package/dist-esm/src/operations/exchange.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -10
- package/dist-esm/src/operations/index.d.ts.map +0 -1
- package/dist-esm/src/operations/index.js +0 -17
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/operation.d.ts.map +0 -1
- package/dist-esm/src/operations/operation.js.map +0 -1
- package/dist-esm/src/operations/quota.d.ts.map +0 -1
- package/dist-esm/src/operations/quota.js.map +0 -1
- package/dist-esm/src/operations/quotaRequestStatus.d.ts.map +0 -1
- package/dist-esm/src/operations/quotaRequestStatus.js.map +0 -1
- package/dist-esm/src/operations/reservation.d.ts.map +0 -1
- package/dist-esm/src/operations/reservation.js.map +0 -1
- package/dist-esm/src/operations/reservationOrder.d.ts.map +0 -1
- package/dist-esm/src/operations/reservationOrder.js.map +0 -1
- package/dist-esm/src/operations/return.d.ts.map +0 -1
- package/dist-esm/src/operations/return.js +0 -109
- package/dist-esm/src/operations/return.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/calculateExchange.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/calculateExchange.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/calculateRefund.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/calculateRefund.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/exchange.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/exchange.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -10
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.js +0 -17
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operation.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/quota.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/quota.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/quotaRequestStatus.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/quotaRequestStatus.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/reservation.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/reservation.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/reservationOrder.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/reservationOrder.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/return.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/return.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/test/reservations_examples.spec.d.ts +0 -4
- package/dist-esm/test/reservations_examples.spec.d.ts.map +0 -1
- package/dist-esm/test/reservations_examples.spec.js +0 -103
- package/dist-esm/test/reservations_examples.spec.js.map +0 -1
- package/src/azureReservationAPI.ts +0 -324
- package/src/lroImpl.ts +0 -38
- package/src/models/index.ts +0 -2735
- package/src/models/mappers.ts +0 -4025
- package/src/models/parameters.ts +0 -393
- package/src/operations/calculateExchange.ts +0 -152
- package/src/operations/calculateRefund.ts +0 -71
- package/src/operations/exchange.ts +0 -149
- package/src/operations/index.ts +0 -17
- package/src/operations/operation.ts +0 -149
- package/src/operations/quota.ts +0 -590
- package/src/operations/quotaRequestStatus.ts +0 -265
- package/src/operations/reservation.ts +0 -1136
- package/src/operations/reservationOrder.ts +0 -380
- package/src/operations/return.ts +0 -152
- package/src/operationsInterfaces/calculateExchange.ts +0 -43
- package/src/operationsInterfaces/calculateRefund.ts +0 -29
- package/src/operationsInterfaces/exchange.ts +0 -40
- package/src/operationsInterfaces/index.ts +0 -17
- package/src/operationsInterfaces/operation.ts +0 -22
- package/src/operationsInterfaces/quota.ts +0 -157
- package/src/operationsInterfaces/quotaRequestStatus.ts +0 -51
- package/src/operationsInterfaces/reservation.ts +0 -219
- package/src/operationsInterfaces/reservationOrder.ts +0 -93
- package/src/operationsInterfaces/return.ts +0 -42
- package/src/pagingHelper.ts +0 -39
- package/tsconfig.json +0 -33
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/lroImpl.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
- /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/mappers.js +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/calculateExchange.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/calculateRefund.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/exchange.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operation.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/quota.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/quotaRequestStatus.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/reservation.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/reservationOrder.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/return.js +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reservation.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/reservation.ts"],"names":[],"mappings":"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"}
|
|
@@ -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=reservation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reservation.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/reservation.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 { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport {\n ReservationResponse,\n ReservationListOptionalParams,\n ReservationListRevisionsOptionalParams,\n ReservationListAllOptionalParams,\n AvailableScopeRequest,\n ReservationAvailableScopesOptionalParams,\n ReservationAvailableScopesResponse,\n SplitRequest,\n ReservationSplitOptionalParams,\n ReservationSplitResponse,\n MergeRequest,\n ReservationMergeOptionalParams,\n ReservationMergeResponse,\n ReservationGetOptionalParams,\n ReservationGetResponse,\n Patch,\n ReservationUpdateOptionalParams,\n ReservationUpdateResponse,\n ReservationArchiveOptionalParams,\n ReservationUnarchiveOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Reservation. */\nexport interface Reservation {\n /**\n * List `Reservation`s within a single `ReservationOrder`.\n * @param reservationOrderId Order Id of the reservation\n * @param options The options parameters.\n */\n list(\n reservationOrderId: string,\n options?: ReservationListOptionalParams\n ): PagedAsyncIterableIterator<ReservationResponse>;\n /**\n * List of all the revisions for the `Reservation`.\n * @param reservationOrderId Order Id of the reservation\n * @param reservationId Id of the reservation item\n * @param options The options parameters.\n */\n listRevisions(\n reservationOrderId: string,\n reservationId: string,\n options?: ReservationListRevisionsOptionalParams\n ): PagedAsyncIterableIterator<ReservationResponse>;\n /**\n * List the reservations and the roll up counts of reservations group by provisioning states that the\n * user has access to in the current tenant.\n * @param options The options parameters.\n */\n listAll(\n options?: ReservationListAllOptionalParams\n ): PagedAsyncIterableIterator<ReservationResponse>;\n /**\n * Check whether the scopes from request is valid for `Reservation`.\n *\n * @param reservationOrderId Order Id of the reservation\n * @param reservationId Id of the reservation item\n * @param body Scopes to be checked for eligibility.\n * @param options The options parameters.\n */\n beginAvailableScopes(\n reservationOrderId: string,\n reservationId: string,\n body: AvailableScopeRequest,\n options?: ReservationAvailableScopesOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<ReservationAvailableScopesResponse>,\n ReservationAvailableScopesResponse\n >\n >;\n /**\n * Check whether the scopes from request is valid for `Reservation`.\n *\n * @param reservationOrderId Order Id of the reservation\n * @param reservationId Id of the reservation item\n * @param body Scopes to be checked for eligibility.\n * @param options The options parameters.\n */\n beginAvailableScopesAndWait(\n reservationOrderId: string,\n reservationId: string,\n body: AvailableScopeRequest,\n options?: ReservationAvailableScopesOptionalParams\n ): Promise<ReservationAvailableScopesResponse>;\n /**\n * Split a `Reservation` into two `Reservation`s with specified quantity distribution.\n * @param reservationOrderId Order Id of the reservation\n * @param body Information needed to Split a reservation item\n * @param options The options parameters.\n */\n beginSplit(\n reservationOrderId: string,\n body: SplitRequest,\n options?: ReservationSplitOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<ReservationSplitResponse>,\n ReservationSplitResponse\n >\n >;\n /**\n * Split a `Reservation` into two `Reservation`s with specified quantity distribution.\n * @param reservationOrderId Order Id of the reservation\n * @param body Information needed to Split a reservation item\n * @param options The options parameters.\n */\n beginSplitAndWait(\n reservationOrderId: string,\n body: SplitRequest,\n options?: ReservationSplitOptionalParams\n ): Promise<ReservationSplitResponse>;\n /**\n * Merge the specified `Reservation`s into a new `Reservation`. The two `Reservation`s being merged\n * must have same properties.\n * @param reservationOrderId Order Id of the reservation\n * @param body Information needed for commercial request for a reservation\n * @param options The options parameters.\n */\n beginMerge(\n reservationOrderId: string,\n body: MergeRequest,\n options?: ReservationMergeOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<ReservationMergeResponse>,\n ReservationMergeResponse\n >\n >;\n /**\n * Merge the specified `Reservation`s into a new `Reservation`. The two `Reservation`s being merged\n * must have same properties.\n * @param reservationOrderId Order Id of the reservation\n * @param body Information needed for commercial request for a reservation\n * @param options The options parameters.\n */\n beginMergeAndWait(\n reservationOrderId: string,\n body: MergeRequest,\n options?: ReservationMergeOptionalParams\n ): Promise<ReservationMergeResponse>;\n /**\n * Get specific `Reservation` details.\n * @param reservationOrderId Order Id of the reservation\n * @param reservationId Id of the reservation item\n * @param options The options parameters.\n */\n get(\n reservationOrderId: string,\n reservationId: string,\n options?: ReservationGetOptionalParams\n ): Promise<ReservationGetResponse>;\n /**\n * Updates the applied scopes of the `Reservation`.\n * @param reservationOrderId Order Id of the reservation\n * @param reservationId Id of the reservation item\n * @param parameters Information needed to patch a reservation item\n * @param options The options parameters.\n */\n beginUpdate(\n reservationOrderId: string,\n reservationId: string,\n parameters: Patch,\n options?: ReservationUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<ReservationUpdateResponse>,\n ReservationUpdateResponse\n >\n >;\n /**\n * Updates the applied scopes of the `Reservation`.\n * @param reservationOrderId Order Id of the reservation\n * @param reservationId Id of the reservation item\n * @param parameters Information needed to patch a reservation item\n * @param options The options parameters.\n */\n beginUpdateAndWait(\n reservationOrderId: string,\n reservationId: string,\n parameters: Patch,\n options?: ReservationUpdateOptionalParams\n ): Promise<ReservationUpdateResponse>;\n /**\n * Archiving a `Reservation` moves it to `Archived` state.\n * @param reservationOrderId Order Id of the reservation\n * @param reservationId Id of the reservation item\n * @param options The options parameters.\n */\n archive(\n reservationOrderId: string,\n reservationId: string,\n options?: ReservationArchiveOptionalParams\n ): Promise<void>;\n /**\n * Restores a `Reservation` to the state it was before archiving.\n *\n * @param reservationOrderId Order Id of the reservation\n * @param reservationId Id of the reservation item\n * @param options The options parameters.\n */\n unarchive(\n reservationOrderId: string,\n reservationId: string,\n options?: ReservationUnarchiveOptionalParams\n ): Promise<void>;\n}\n"]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
3
|
+
import { ReservationOrderResponse, ReservationOrderListOptionalParams, PurchaseRequest, ReservationOrderCalculateOptionalParams, ReservationOrderCalculateResponse, ReservationOrderPurchaseOptionalParams, ReservationOrderPurchaseResponse, ReservationOrderGetOptionalParams, ReservationOrderGetResponse, ChangeDirectoryRequest, ReservationOrderChangeDirectoryOptionalParams, ReservationOrderChangeDirectoryResponse } from "../models/index.js";
|
|
4
|
+
/** Interface representing a ReservationOrder. */
|
|
5
|
+
export interface ReservationOrder {
|
|
6
|
+
/**
|
|
7
|
+
* List of all the `ReservationOrder`s that the user has access to in the current tenant.
|
|
8
|
+
* @param options The options parameters.
|
|
9
|
+
*/
|
|
10
|
+
list(options?: ReservationOrderListOptionalParams): PagedAsyncIterableIterator<ReservationOrderResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Calculate price for placing a `ReservationOrder`.
|
|
13
|
+
* @param body Information needed for calculate or purchase reservation
|
|
14
|
+
* @param options The options parameters.
|
|
15
|
+
*/
|
|
16
|
+
calculate(body: PurchaseRequest, options?: ReservationOrderCalculateOptionalParams): Promise<ReservationOrderCalculateResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Purchase `ReservationOrder` and create resource under the specified URI.
|
|
19
|
+
* @param reservationOrderId Order Id of the reservation
|
|
20
|
+
* @param body Information needed for calculate or purchase reservation
|
|
21
|
+
* @param options The options parameters.
|
|
22
|
+
*/
|
|
23
|
+
beginPurchase(reservationOrderId: string, body: PurchaseRequest, options?: ReservationOrderPurchaseOptionalParams): Promise<SimplePollerLike<OperationState<ReservationOrderPurchaseResponse>, ReservationOrderPurchaseResponse>>;
|
|
24
|
+
/**
|
|
25
|
+
* Purchase `ReservationOrder` and create resource under the specified URI.
|
|
26
|
+
* @param reservationOrderId Order Id of the reservation
|
|
27
|
+
* @param body Information needed for calculate or purchase reservation
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
beginPurchaseAndWait(reservationOrderId: string, body: PurchaseRequest, options?: ReservationOrderPurchaseOptionalParams): Promise<ReservationOrderPurchaseResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* Get the details of the `ReservationOrder`.
|
|
33
|
+
* @param reservationOrderId Order Id of the reservation
|
|
34
|
+
* @param options The options parameters.
|
|
35
|
+
*/
|
|
36
|
+
get(reservationOrderId: string, options?: ReservationOrderGetOptionalParams): Promise<ReservationOrderGetResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* Change directory (tenant) of `ReservationOrder` and all `Reservation` under it to specified tenant
|
|
39
|
+
* id
|
|
40
|
+
* @param reservationOrderId Order Id of the reservation
|
|
41
|
+
* @param body Information needed to change directory of reservation order
|
|
42
|
+
* @param options The options parameters.
|
|
43
|
+
*/
|
|
44
|
+
changeDirectory(reservationOrderId: string, body: ChangeDirectoryRequest, options?: ReservationOrderChangeDirectoryOptionalParams): Promise<ReservationOrderChangeDirectoryResponse>;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=reservationOrder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reservationOrder.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/reservationOrder.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EACL,wBAAwB,EACxB,kCAAkC,EAClC,eAAe,EACf,uCAAuC,EACvC,iCAAiC,EACjC,sCAAsC,EACtC,gCAAgC,EAChC,iCAAiC,EACjC,2BAA2B,EAC3B,sBAAsB,EACtB,6CAA6C,EAC7C,uCAAuC,EACxC,MAAM,oBAAoB,CAAC;AAG5B,iDAAiD;AACjD,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,kCAAkC,GAC3C,0BAA0B,CAAC,wBAAwB,CAAC,CAAC;IACxD;;;;OAIG;IACH,SAAS,CACP,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,uCAAuC,GAChD,OAAO,CAAC,iCAAiC,CAAC,CAAC;IAC9C;;;;;OAKG;IACH,aAAa,CACX,kBAAkB,EAAE,MAAM,EAC1B,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,gCAAgC,CAAC,EAChD,gCAAgC,CACjC,CACF,CAAC;IACF;;;;;OAKG;IACH,oBAAoB,CAClB,kBAAkB,EAAE,MAAM,EAC1B,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,gCAAgC,CAAC,CAAC;IAC7C;;;;OAIG;IACH,GAAG,CACD,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,2BAA2B,CAAC,CAAC;IACxC;;;;;;OAMG;IACH,eAAe,CACb,kBAAkB,EAAE,MAAM,EAC1B,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,6CAA6C,GACtD,OAAO,CAAC,uCAAuC,CAAC,CAAC;CACrD"}
|
|
@@ -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=reservationOrder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reservationOrder.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/reservationOrder.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 { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport {\n ReservationOrderResponse,\n ReservationOrderListOptionalParams,\n PurchaseRequest,\n ReservationOrderCalculateOptionalParams,\n ReservationOrderCalculateResponse,\n ReservationOrderPurchaseOptionalParams,\n ReservationOrderPurchaseResponse,\n ReservationOrderGetOptionalParams,\n ReservationOrderGetResponse,\n ChangeDirectoryRequest,\n ReservationOrderChangeDirectoryOptionalParams,\n ReservationOrderChangeDirectoryResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a ReservationOrder. */\nexport interface ReservationOrder {\n /**\n * List of all the `ReservationOrder`s that the user has access to in the current tenant.\n * @param options The options parameters.\n */\n list(\n options?: ReservationOrderListOptionalParams\n ): PagedAsyncIterableIterator<ReservationOrderResponse>;\n /**\n * Calculate price for placing a `ReservationOrder`.\n * @param body Information needed for calculate or purchase reservation\n * @param options The options parameters.\n */\n calculate(\n body: PurchaseRequest,\n options?: ReservationOrderCalculateOptionalParams\n ): Promise<ReservationOrderCalculateResponse>;\n /**\n * Purchase `ReservationOrder` and create resource under the specified URI.\n * @param reservationOrderId Order Id of the reservation\n * @param body Information needed for calculate or purchase reservation\n * @param options The options parameters.\n */\n beginPurchase(\n reservationOrderId: string,\n body: PurchaseRequest,\n options?: ReservationOrderPurchaseOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<ReservationOrderPurchaseResponse>,\n ReservationOrderPurchaseResponse\n >\n >;\n /**\n * Purchase `ReservationOrder` and create resource under the specified URI.\n * @param reservationOrderId Order Id of the reservation\n * @param body Information needed for calculate or purchase reservation\n * @param options The options parameters.\n */\n beginPurchaseAndWait(\n reservationOrderId: string,\n body: PurchaseRequest,\n options?: ReservationOrderPurchaseOptionalParams\n ): Promise<ReservationOrderPurchaseResponse>;\n /**\n * Get the details of the `ReservationOrder`.\n * @param reservationOrderId Order Id of the reservation\n * @param options The options parameters.\n */\n get(\n reservationOrderId: string,\n options?: ReservationOrderGetOptionalParams\n ): Promise<ReservationOrderGetResponse>;\n /**\n * Change directory (tenant) of `ReservationOrder` and all `Reservation` under it to specified tenant\n * id\n * @param reservationOrderId Order Id of the reservation\n * @param body Information needed to change directory of reservation order\n * @param options The options parameters.\n */\n changeDirectory(\n reservationOrderId: string,\n body: ChangeDirectoryRequest,\n options?: ReservationOrderChangeDirectoryOptionalParams\n ): Promise<ReservationOrderChangeDirectoryResponse>;\n}\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
2
|
+
import { RefundRequest, ReturnPostOptionalParams, ReturnPostResponse } from "../models/index.js";
|
|
3
|
+
/** Interface representing a Return. */
|
|
4
|
+
export interface Return {
|
|
5
|
+
/**
|
|
6
|
+
* Return a reservation and get refund information.
|
|
7
|
+
* @param reservationOrderId Order Id of the reservation
|
|
8
|
+
* @param body Information needed for returning reservation.
|
|
9
|
+
* @param options The options parameters.
|
|
10
|
+
*/
|
|
11
|
+
beginPost(reservationOrderId: string, body: RefundRequest, options?: ReturnPostOptionalParams): Promise<SimplePollerLike<OperationState<ReturnPostResponse>, ReturnPostResponse>>;
|
|
12
|
+
/**
|
|
13
|
+
* Return a reservation and get refund information.
|
|
14
|
+
* @param reservationOrderId Order Id of the reservation
|
|
15
|
+
* @param body Information needed for returning reservation.
|
|
16
|
+
* @param options The options parameters.
|
|
17
|
+
*/
|
|
18
|
+
beginPostAndWait(reservationOrderId: string, body: RefundRequest, options?: ReturnPostOptionalParams): Promise<ReturnPostResponse>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=return.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"return.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/return.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EACL,aAAa,EACb,wBAAwB,EACxB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAE5B,uCAAuC;AACvC,MAAM,WAAW,MAAM;IACrB;;;;;OAKG;IACH,SAAS,CACP,kBAAkB,EAAE,MAAM,EAC1B,IAAI,EAAE,aAAa,EACnB,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CACR,gBAAgB,CAAC,cAAc,CAAC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC,CACzE,CAAC;IACF;;;;;OAKG;IACH,gBAAgB,CACd,kBAAkB,EAAE,MAAM,EAC1B,IAAI,EAAE,aAAa,EACnB,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,kBAAkB,CAAC,CAAC;CAChC"}
|
|
@@ -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=return.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"return.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/return.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 { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport {\n RefundRequest,\n ReturnPostOptionalParams,\n ReturnPostResponse\n} from \"../models/index.js\";\n\n/** Interface representing a Return. */\nexport interface Return {\n /**\n * Return a reservation and get refund information.\n * @param reservationOrderId Order Id of the reservation\n * @param body Information needed for returning reservation.\n * @param options The options parameters.\n */\n beginPost(\n reservationOrderId: string,\n body: RefundRequest,\n options?: ReturnPostOptionalParams\n ): Promise<\n SimplePollerLike<OperationState<ReturnPostResponse>, ReturnPostResponse>\n >;\n /**\n * Return a reservation and get refund information.\n * @param reservationOrderId Order Id of the reservation\n * @param body Information needed for returning reservation.\n * @param options The options parameters.\n */\n beginPostAndWait(\n reservationOrderId: string,\n body: RefundRequest,\n options?: ReturnPostOptionalParams\n ): Promise<ReturnPostResponse>;\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface PageInfo {
|
|
2
|
+
continuationToken?: string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
6
|
+
* returns a continuation token that can be used to begin paging from
|
|
7
|
+
* that point later.
|
|
8
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
9
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
10
|
+
*/
|
|
11
|
+
export declare function getContinuationToken(page: unknown): string | undefined;
|
|
12
|
+
export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
|
|
13
|
+
//# sourceMappingURL=pagingHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,MAAM,GAAG,SAAS,GACpC,IAAI,CAON"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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.getContinuationToken = getContinuationToken;
|
|
11
|
+
exports.setContinuationToken = setContinuationToken;
|
|
12
|
+
const pageMap = new WeakMap();
|
|
13
|
+
/**
|
|
14
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
15
|
+
* returns a continuation token that can be used to begin paging from
|
|
16
|
+
* that point later.
|
|
17
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
18
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
19
|
+
*/
|
|
20
|
+
function getContinuationToken(page) {
|
|
21
|
+
var _a;
|
|
22
|
+
if (typeof page !== "object" || page === null) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
26
|
+
}
|
|
27
|
+
function setContinuationToken(page, continuationToken) {
|
|
28
|
+
var _a;
|
|
29
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
33
|
+
pageInfo.continuationToken = continuationToken;
|
|
34
|
+
pageMap.set(page, pageInfo);
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=pagingHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,oDAKC;AAED,oDAUC;AA1BD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,SAAgB,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,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\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
|
2
|
+
import * as coreAuth from "@azure/core-auth";
|
|
3
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
4
|
+
import { Reservation, ReservationOrder, Operation, CalculateRefund, Return, CalculateExchange, Exchange, Quota, QuotaRequestStatus } from "./operationsInterfaces/index.js";
|
|
5
|
+
import { AzureReservationAPIOptionalParams, Catalog, GetCatalogOptionalParams, GetAppliedReservationListOptionalParams, GetAppliedReservationListResponse } from "./models/index.js";
|
|
6
|
+
export declare class AzureReservationAPI extends coreClient.ServiceClient {
|
|
7
|
+
$host: string;
|
|
8
|
+
/**
|
|
9
|
+
* Initializes a new instance of the AzureReservationAPI class.
|
|
10
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
11
|
+
* @param options The parameter options
|
|
12
|
+
*/
|
|
13
|
+
constructor(credentials: coreAuth.TokenCredential, options?: AzureReservationAPIOptionalParams);
|
|
14
|
+
/**
|
|
15
|
+
* Get the regions and skus that are available for RI purchase for the specified Azure subscription.
|
|
16
|
+
* @param subscriptionId Id of the subscription
|
|
17
|
+
* @param options The options parameters.
|
|
18
|
+
*/
|
|
19
|
+
listCatalog(subscriptionId: string, options?: GetCatalogOptionalParams): PagedAsyncIterableIterator<Catalog>;
|
|
20
|
+
private getCatalogPagingPage;
|
|
21
|
+
private getCatalogPagingAll;
|
|
22
|
+
/**
|
|
23
|
+
* Get the regions and skus that are available for RI purchase for the specified Azure subscription.
|
|
24
|
+
* @param subscriptionId Id of the subscription
|
|
25
|
+
* @param options The options parameters.
|
|
26
|
+
*/
|
|
27
|
+
private _getCatalog;
|
|
28
|
+
/**
|
|
29
|
+
* Get applicable `Reservation`s that are applied to this subscription or a resource group under this
|
|
30
|
+
* subscription.
|
|
31
|
+
* @param subscriptionId Id of the subscription
|
|
32
|
+
* @param options The options parameters.
|
|
33
|
+
*/
|
|
34
|
+
getAppliedReservationList(subscriptionId: string, options?: GetAppliedReservationListOptionalParams): Promise<GetAppliedReservationListResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* GetCatalogNext
|
|
37
|
+
* @param subscriptionId Id of the subscription
|
|
38
|
+
* @param nextLink The nextLink from the previous successful call to the GetCatalog method.
|
|
39
|
+
* @param options The options parameters.
|
|
40
|
+
*/
|
|
41
|
+
private _getCatalogNext;
|
|
42
|
+
reservation: Reservation;
|
|
43
|
+
reservationOrder: ReservationOrder;
|
|
44
|
+
operation: Operation;
|
|
45
|
+
calculateRefund: CalculateRefund;
|
|
46
|
+
return: Return;
|
|
47
|
+
calculateExchange: CalculateExchange;
|
|
48
|
+
exchange: Exchange;
|
|
49
|
+
quota: Quota;
|
|
50
|
+
quotaRequestStatus: QuotaRequestStatus;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=azureReservationAPI.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"azureReservationAPI.d.ts","sourceRoot":"","sources":["../../src/azureReservationAPI.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAa9E,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,MAAM,EACN,iBAAiB,EACjB,QAAQ,EACR,KAAK,EACL,kBAAkB,EACnB,MAAM,iCAAiC,CAAC;AAGzC,OAAO,EACL,iCAAiC,EACjC,OAAO,EAEP,wBAAwB,EAExB,uCAAuC,EACvC,iCAAiC,EAElC,MAAM,mBAAmB,CAAC;AAG3B,qBAAa,mBAAoB,SAAQ,UAAU,CAAC,aAAa;IAC/D,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,OAAO,CAAC,EAAE,iCAAiC;IA6E7C;;;;OAIG;IACI,WAAW,CAChB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,wBAAwB,GACjC,0BAA0B,CAAC,OAAO,CAAC;YAkBvB,oBAAoB;YA2BpB,mBAAmB;IAYlC;;;;OAIG;IACH,OAAO,CAAC,WAAW;IAUnB;;;;;OAKG;IACH,yBAAyB,CACvB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,uCAAuC,GAChD,OAAO,CAAC,iCAAiC,CAAC;IAO7C;;;;;OAKG;IACH,OAAO,CAAC,eAAe;IAWvB,WAAW,EAAE,WAAW,CAAC;IACzB,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,SAAS,EAAE,SAAS,CAAC;IACrB,eAAe,EAAE,eAAe,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,QAAQ,EAAE,QAAQ,CAAC;IACnB,KAAK,EAAE,KAAK,CAAC;IACb,kBAAkB,EAAE,kBAAkB,CAAC;CACxC"}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
11
|
+
import { setContinuationToken } from "./pagingHelper.js";
|
|
12
|
+
import { ReservationImpl, ReservationOrderImpl, OperationImpl, CalculateRefundImpl, ReturnImpl, CalculateExchangeImpl, ExchangeImpl, QuotaImpl, QuotaRequestStatusImpl } from "./operations/index.js";
|
|
13
|
+
import * as Parameters from "./models/parameters.js";
|
|
14
|
+
import * as Mappers from "./models/mappers.js";
|
|
15
|
+
/// <reference lib="esnext.asynciterable" />
|
|
16
|
+
export class AzureReservationAPI extends coreClient.ServiceClient {
|
|
17
|
+
/**
|
|
18
|
+
* Initializes a new instance of the AzureReservationAPI class.
|
|
19
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
20
|
+
* @param options The parameter options
|
|
21
|
+
*/
|
|
22
|
+
constructor(credentials, options) {
|
|
23
|
+
var _a, _b, _c;
|
|
24
|
+
if (credentials === undefined) {
|
|
25
|
+
throw new Error("'credentials' cannot be null");
|
|
26
|
+
}
|
|
27
|
+
// Initializing default values for options
|
|
28
|
+
if (!options) {
|
|
29
|
+
options = {};
|
|
30
|
+
}
|
|
31
|
+
const defaults = {
|
|
32
|
+
requestContentType: "application/json; charset=utf-8",
|
|
33
|
+
credential: credentials
|
|
34
|
+
};
|
|
35
|
+
const packageDetails = `azsdk-js-arm-reservations/9.0.1`;
|
|
36
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
37
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
38
|
+
: `${packageDetails}`;
|
|
39
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
40
|
+
userAgentPrefix
|
|
41
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
42
|
+
super(optionsWithDefaults);
|
|
43
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
44
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
45
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
46
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
47
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
48
|
+
}
|
|
49
|
+
if (!options ||
|
|
50
|
+
!options.pipeline ||
|
|
51
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
52
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
53
|
+
this.pipeline.removePolicy({
|
|
54
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
55
|
+
});
|
|
56
|
+
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
57
|
+
credential: credentials,
|
|
58
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
59
|
+
challengeCallbacks: {
|
|
60
|
+
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
61
|
+
}
|
|
62
|
+
}));
|
|
63
|
+
}
|
|
64
|
+
// Assigning values to Constant parameters
|
|
65
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
66
|
+
this.reservation = new ReservationImpl(this);
|
|
67
|
+
this.reservationOrder = new ReservationOrderImpl(this);
|
|
68
|
+
this.operation = new OperationImpl(this);
|
|
69
|
+
this.calculateRefund = new CalculateRefundImpl(this);
|
|
70
|
+
this.return = new ReturnImpl(this);
|
|
71
|
+
this.calculateExchange = new CalculateExchangeImpl(this);
|
|
72
|
+
this.exchange = new ExchangeImpl(this);
|
|
73
|
+
this.quota = new QuotaImpl(this);
|
|
74
|
+
this.quotaRequestStatus = new QuotaRequestStatusImpl(this);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Get the regions and skus that are available for RI purchase for the specified Azure subscription.
|
|
78
|
+
* @param subscriptionId Id of the subscription
|
|
79
|
+
* @param options The options parameters.
|
|
80
|
+
*/
|
|
81
|
+
listCatalog(subscriptionId, options) {
|
|
82
|
+
const iter = this.getCatalogPagingAll(subscriptionId, options);
|
|
83
|
+
return {
|
|
84
|
+
next() {
|
|
85
|
+
return iter.next();
|
|
86
|
+
},
|
|
87
|
+
[Symbol.asyncIterator]() {
|
|
88
|
+
return this;
|
|
89
|
+
},
|
|
90
|
+
byPage: (settings) => {
|
|
91
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
92
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
93
|
+
}
|
|
94
|
+
return this.getCatalogPagingPage(subscriptionId, options, settings);
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
getCatalogPagingPage(subscriptionId, options, settings) {
|
|
99
|
+
return __asyncGenerator(this, arguments, function* getCatalogPagingPage_1() {
|
|
100
|
+
let result;
|
|
101
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
102
|
+
if (!continuationToken) {
|
|
103
|
+
result = yield __await(this._getCatalog(subscriptionId, options));
|
|
104
|
+
let page = result.value || [];
|
|
105
|
+
continuationToken = result.nextLink;
|
|
106
|
+
setContinuationToken(page, continuationToken);
|
|
107
|
+
yield yield __await(page);
|
|
108
|
+
}
|
|
109
|
+
while (continuationToken) {
|
|
110
|
+
result = yield __await(this._getCatalogNext(subscriptionId, continuationToken, options));
|
|
111
|
+
continuationToken = result.nextLink;
|
|
112
|
+
let page = result.value || [];
|
|
113
|
+
setContinuationToken(page, continuationToken);
|
|
114
|
+
yield yield __await(page);
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
getCatalogPagingAll(subscriptionId, options) {
|
|
119
|
+
return __asyncGenerator(this, arguments, function* getCatalogPagingAll_1() {
|
|
120
|
+
var _a, e_1, _b, _c;
|
|
121
|
+
try {
|
|
122
|
+
for (var _d = true, _e = __asyncValues(this.getCatalogPagingPage(subscriptionId, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
123
|
+
_c = _f.value;
|
|
124
|
+
_d = false;
|
|
125
|
+
const page = _c;
|
|
126
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
130
|
+
finally {
|
|
131
|
+
try {
|
|
132
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
133
|
+
}
|
|
134
|
+
finally { if (e_1) throw e_1.error; }
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Get the regions and skus that are available for RI purchase for the specified Azure subscription.
|
|
140
|
+
* @param subscriptionId Id of the subscription
|
|
141
|
+
* @param options The options parameters.
|
|
142
|
+
*/
|
|
143
|
+
_getCatalog(subscriptionId, options) {
|
|
144
|
+
return this.sendOperationRequest({ subscriptionId, options }, getCatalogOperationSpec);
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Get applicable `Reservation`s that are applied to this subscription or a resource group under this
|
|
148
|
+
* subscription.
|
|
149
|
+
* @param subscriptionId Id of the subscription
|
|
150
|
+
* @param options The options parameters.
|
|
151
|
+
*/
|
|
152
|
+
getAppliedReservationList(subscriptionId, options) {
|
|
153
|
+
return this.sendOperationRequest({ subscriptionId, options }, getAppliedReservationListOperationSpec);
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* GetCatalogNext
|
|
157
|
+
* @param subscriptionId Id of the subscription
|
|
158
|
+
* @param nextLink The nextLink from the previous successful call to the GetCatalog method.
|
|
159
|
+
* @param options The options parameters.
|
|
160
|
+
*/
|
|
161
|
+
_getCatalogNext(subscriptionId, nextLink, options) {
|
|
162
|
+
return this.sendOperationRequest({ subscriptionId, nextLink, options }, getCatalogNextOperationSpec);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
// Operation Specifications
|
|
166
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
167
|
+
const getCatalogOperationSpec = {
|
|
168
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/catalogs",
|
|
169
|
+
httpMethod: "GET",
|
|
170
|
+
responses: {
|
|
171
|
+
200: {
|
|
172
|
+
bodyMapper: Mappers.CatalogsResult
|
|
173
|
+
},
|
|
174
|
+
default: {
|
|
175
|
+
bodyMapper: Mappers.ErrorModel
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
queryParameters: [
|
|
179
|
+
Parameters.apiVersion,
|
|
180
|
+
Parameters.filter,
|
|
181
|
+
Parameters.reservedResourceType,
|
|
182
|
+
Parameters.location,
|
|
183
|
+
Parameters.publisherId,
|
|
184
|
+
Parameters.offerId,
|
|
185
|
+
Parameters.planId,
|
|
186
|
+
Parameters.skip,
|
|
187
|
+
Parameters.take1
|
|
188
|
+
],
|
|
189
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
190
|
+
headerParameters: [Parameters.accept],
|
|
191
|
+
serializer
|
|
192
|
+
};
|
|
193
|
+
const getAppliedReservationListOperationSpec = {
|
|
194
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/appliedReservations",
|
|
195
|
+
httpMethod: "GET",
|
|
196
|
+
responses: {
|
|
197
|
+
200: {
|
|
198
|
+
bodyMapper: Mappers.AppliedReservations
|
|
199
|
+
},
|
|
200
|
+
default: {
|
|
201
|
+
bodyMapper: Mappers.ErrorModel
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
queryParameters: [Parameters.apiVersion],
|
|
205
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
206
|
+
headerParameters: [Parameters.accept],
|
|
207
|
+
serializer
|
|
208
|
+
};
|
|
209
|
+
const getCatalogNextOperationSpec = {
|
|
210
|
+
path: "{nextLink}",
|
|
211
|
+
httpMethod: "GET",
|
|
212
|
+
responses: {
|
|
213
|
+
200: {
|
|
214
|
+
bodyMapper: Mappers.CatalogsResult
|
|
215
|
+
},
|
|
216
|
+
default: {
|
|
217
|
+
bodyMapper: Mappers.ErrorModel
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
urlParameters: [
|
|
221
|
+
Parameters.$host,
|
|
222
|
+
Parameters.nextLink,
|
|
223
|
+
Parameters.subscriptionId
|
|
224
|
+
],
|
|
225
|
+
headerParameters: [Parameters.accept],
|
|
226
|
+
serializer
|
|
227
|
+
};
|
|
228
|
+
//# sourceMappingURL=azureReservationAPI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"azureReservationAPI.js","sourceRoot":"","sources":["../../src/azureReservationAPI.ts"],"names":[],"mappings":"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","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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"./pagingHelper.js\";\nimport {\n ReservationImpl,\n ReservationOrderImpl,\n OperationImpl,\n CalculateRefundImpl,\n ReturnImpl,\n CalculateExchangeImpl,\n ExchangeImpl,\n QuotaImpl,\n QuotaRequestStatusImpl\n} from \"./operations/index.js\";\nimport {\n Reservation,\n ReservationOrder,\n Operation,\n CalculateRefund,\n Return,\n CalculateExchange,\n Exchange,\n Quota,\n QuotaRequestStatus\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n AzureReservationAPIOptionalParams,\n Catalog,\n GetCatalogNextOptionalParams,\n GetCatalogOptionalParams,\n GetCatalogResponse,\n GetAppliedReservationListOptionalParams,\n GetAppliedReservationListResponse,\n GetCatalogNextResponse\n} from \"./models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport class AzureReservationAPI extends coreClient.ServiceClient {\n $host: string;\n\n /**\n * Initializes a new instance of the AzureReservationAPI class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: AzureReservationAPIOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: AzureReservationAPIOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-reservations/9.0.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.reservation = new ReservationImpl(this);\n this.reservationOrder = new ReservationOrderImpl(this);\n this.operation = new OperationImpl(this);\n this.calculateRefund = new CalculateRefundImpl(this);\n this.return = new ReturnImpl(this);\n this.calculateExchange = new CalculateExchangeImpl(this);\n this.exchange = new ExchangeImpl(this);\n this.quota = new QuotaImpl(this);\n this.quotaRequestStatus = new QuotaRequestStatusImpl(this);\n }\n\n /**\n * Get the regions and skus that are available for RI purchase for the specified Azure subscription.\n * @param subscriptionId Id of the subscription\n * @param options The options parameters.\n */\n public listCatalog(\n subscriptionId: string,\n options?: GetCatalogOptionalParams\n ): PagedAsyncIterableIterator<Catalog> {\n const iter = this.getCatalogPagingAll(subscriptionId, 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.getCatalogPagingPage(subscriptionId, options, settings);\n }\n };\n }\n\n private async *getCatalogPagingPage(\n subscriptionId: string,\n options?: GetCatalogOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Catalog[]> {\n let result: GetCatalogResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._getCatalog(subscriptionId, 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._getCatalogNext(\n subscriptionId,\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 *getCatalogPagingAll(\n subscriptionId: string,\n options?: GetCatalogOptionalParams\n ): AsyncIterableIterator<Catalog> {\n for await (const page of this.getCatalogPagingPage(\n subscriptionId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Get the regions and skus that are available for RI purchase for the specified Azure subscription.\n * @param subscriptionId Id of the subscription\n * @param options The options parameters.\n */\n private _getCatalog(\n subscriptionId: string,\n options?: GetCatalogOptionalParams\n ): Promise<GetCatalogResponse> {\n return this.sendOperationRequest(\n { subscriptionId, options },\n getCatalogOperationSpec\n );\n }\n\n /**\n * Get applicable `Reservation`s that are applied to this subscription or a resource group under this\n * subscription.\n * @param subscriptionId Id of the subscription\n * @param options The options parameters.\n */\n getAppliedReservationList(\n subscriptionId: string,\n options?: GetAppliedReservationListOptionalParams\n ): Promise<GetAppliedReservationListResponse> {\n return this.sendOperationRequest(\n { subscriptionId, options },\n getAppliedReservationListOperationSpec\n );\n }\n\n /**\n * GetCatalogNext\n * @param subscriptionId Id of the subscription\n * @param nextLink The nextLink from the previous successful call to the GetCatalog method.\n * @param options The options parameters.\n */\n private _getCatalogNext(\n subscriptionId: string,\n nextLink: string,\n options?: GetCatalogNextOptionalParams\n ): Promise<GetCatalogNextResponse> {\n return this.sendOperationRequest(\n { subscriptionId, nextLink, options },\n getCatalogNextOperationSpec\n );\n }\n\n reservation: Reservation;\n reservationOrder: ReservationOrder;\n operation: Operation;\n calculateRefund: CalculateRefund;\n return: Return;\n calculateExchange: CalculateExchange;\n exchange: Exchange;\n quota: Quota;\n quotaRequestStatus: QuotaRequestStatus;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getCatalogOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/catalogs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CatalogsResult\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.reservedResourceType,\n Parameters.location,\n Parameters.publisherId,\n Parameters.offerId,\n Parameters.planId,\n Parameters.skip,\n Parameters.take1\n ],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getAppliedReservationListOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/appliedReservations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AppliedReservations\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getCatalogNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CatalogsResult\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,cAAc,iCAAiC,CAAC"}
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
8
|
/// <reference lib="esnext.asynciterable" />
|
|
10
|
-
export { getContinuationToken } from "./pagingHelper";
|
|
11
|
-
export * from "./models";
|
|
12
|
-
export { AzureReservationAPI } from "./azureReservationAPI";
|
|
13
|
-
export * from "./operationsInterfaces";
|
|
9
|
+
export { getContinuationToken } from "./pagingHelper.js";
|
|
10
|
+
export * from "./models/index.js";
|
|
11
|
+
export { AzureReservationAPI } from "./azureReservationAPI.js";
|
|
12
|
+
export * from "./operationsInterfaces/index.js";
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,cAAc,iCAAiC,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\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { AzureReservationAPI } from \"./azureReservationAPI.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
2
|
+
export declare function createLroSpec<T>(inputs: {
|
|
3
|
+
sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
|
|
4
|
+
args: Record<string, unknown>;
|
|
5
|
+
spec: {
|
|
6
|
+
readonly requestBody?: unknown;
|
|
7
|
+
readonly path?: string;
|
|
8
|
+
readonly httpMethod: string;
|
|
9
|
+
} & Record<string, any>;
|
|
10
|
+
}): LongRunningOperation<T>;
|
|
11
|
+
//# sourceMappingURL=lroImpl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAmB1B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { __rest } from "tslib";
|
|
2
|
+
export function createLroSpec(inputs) {
|
|
3
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
4
|
+
return {
|
|
5
|
+
requestMethod: spec.httpMethod,
|
|
6
|
+
requestPath: spec.path,
|
|
7
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
8
|
+
sendPollRequest: (path, options) => {
|
|
9
|
+
const { requestBody } = spec, restSpec = __rest(spec, ["requestBody"]);
|
|
10
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=lroImpl.js.map
|