@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,104 @@
|
|
|
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 * as coreClient from "@azure/core-client";
|
|
9
|
+
import * as Mappers from "../models/mappers.js";
|
|
10
|
+
import * as Parameters from "../models/parameters.js";
|
|
11
|
+
import { createHttpPoller } from "@azure/core-lro";
|
|
12
|
+
import { createLroSpec } from "../lroImpl.js";
|
|
13
|
+
/** Class containing Return operations. */
|
|
14
|
+
export class ReturnImpl {
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class Return class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Return a reservation and get refund information.
|
|
24
|
+
* @param reservationOrderId Order Id of the reservation
|
|
25
|
+
* @param body Information needed for returning reservation.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
async beginPost(reservationOrderId, body, options) {
|
|
29
|
+
const directSendOperation = async (args, spec) => {
|
|
30
|
+
return this.client.sendOperationRequest(args, spec);
|
|
31
|
+
};
|
|
32
|
+
const sendOperationFn = async (args, spec) => {
|
|
33
|
+
var _a;
|
|
34
|
+
let currentRawResponse = undefined;
|
|
35
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
36
|
+
const callback = (rawResponse, flatResponse) => {
|
|
37
|
+
currentRawResponse = rawResponse;
|
|
38
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
39
|
+
};
|
|
40
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
41
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
42
|
+
return {
|
|
43
|
+
flatResponse,
|
|
44
|
+
rawResponse: {
|
|
45
|
+
statusCode: currentRawResponse.status,
|
|
46
|
+
body: currentRawResponse.parsedBody,
|
|
47
|
+
headers: currentRawResponse.headers.toJSON()
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
const lro = createLroSpec({
|
|
52
|
+
sendOperationFn,
|
|
53
|
+
args: { reservationOrderId, body, options },
|
|
54
|
+
spec: postOperationSpec
|
|
55
|
+
});
|
|
56
|
+
const poller = await createHttpPoller(lro, {
|
|
57
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
58
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
59
|
+
resourceLocationConfig: "location"
|
|
60
|
+
});
|
|
61
|
+
await poller.poll();
|
|
62
|
+
return poller;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Return a reservation and get refund information.
|
|
66
|
+
* @param reservationOrderId Order Id of the reservation
|
|
67
|
+
* @param body Information needed for returning reservation.
|
|
68
|
+
* @param options The options parameters.
|
|
69
|
+
*/
|
|
70
|
+
async beginPostAndWait(reservationOrderId, body, options) {
|
|
71
|
+
const poller = await this.beginPost(reservationOrderId, body, options);
|
|
72
|
+
return poller.pollUntilDone();
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
// Operation Specifications
|
|
76
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
77
|
+
const postOperationSpec = {
|
|
78
|
+
path: "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/return",
|
|
79
|
+
httpMethod: "POST",
|
|
80
|
+
responses: {
|
|
81
|
+
200: {
|
|
82
|
+
bodyMapper: Mappers.ReservationOrderResponse
|
|
83
|
+
},
|
|
84
|
+
201: {
|
|
85
|
+
bodyMapper: Mappers.ReservationOrderResponse
|
|
86
|
+
},
|
|
87
|
+
202: {
|
|
88
|
+
bodyMapper: Mappers.ReservationOrderResponse
|
|
89
|
+
},
|
|
90
|
+
204: {
|
|
91
|
+
bodyMapper: Mappers.ReservationOrderResponse
|
|
92
|
+
},
|
|
93
|
+
default: {
|
|
94
|
+
bodyMapper: Mappers.ErrorModel
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
requestBody: Parameters.body6,
|
|
98
|
+
queryParameters: [Parameters.apiVersion],
|
|
99
|
+
urlParameters: [Parameters.$host, Parameters.reservationOrderId],
|
|
100
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
101
|
+
mediaType: "json",
|
|
102
|
+
serializer
|
|
103
|
+
};
|
|
104
|
+
//# sourceMappingURL=return.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"return.js","sourceRoot":"","sources":["../../../src/operations/return.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 { Return } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureReservationAPI } from \"../azureReservationAPI.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n RefundRequest,\n ReturnPostOptionalParams,\n ReturnPostResponse\n} from \"../models/index.js\";\n\n/** Class containing Return operations. */\nexport class ReturnImpl implements Return {\n private readonly client: AzureReservationAPI;\n\n /**\n * Initialize a new instance of the class Return class.\n * @param client Reference to the service client\n */\n constructor(client: AzureReservationAPI) {\n this.client = client;\n }\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 async beginPost(\n reservationOrderId: string,\n body: RefundRequest,\n options?: ReturnPostOptionalParams\n ): Promise<\n SimplePollerLike<OperationState<ReturnPostResponse>, ReturnPostResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ReturnPostResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { reservationOrderId, body, options },\n spec: postOperationSpec\n });\n const poller = await createHttpPoller<\n ReturnPostResponse,\n OperationState<ReturnPostResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\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 async beginPostAndWait(\n reservationOrderId: string,\n body: RefundRequest,\n options?: ReturnPostOptionalParams\n ): Promise<ReturnPostResponse> {\n const poller = await this.beginPost(reservationOrderId, body, options);\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst postOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/return\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationOrderResponse\n },\n 201: {\n bodyMapper: Mappers.ReservationOrderResponse\n },\n 202: {\n bodyMapper: Mappers.ReservationOrderResponse\n },\n 204: {\n bodyMapper: Mappers.ReservationOrderResponse\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.body6,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.reservationOrderId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
2
|
+
import { CalculateExchangeRequest, CalculateExchangePostOptionalParams, CalculateExchangePostResponse } from "../models/index.js";
|
|
3
|
+
/** Interface representing a CalculateExchange. */
|
|
4
|
+
export interface CalculateExchange {
|
|
5
|
+
/**
|
|
6
|
+
* Calculates price for exchanging `Reservations` if there are no policy errors.
|
|
7
|
+
*
|
|
8
|
+
* @param body Request containing purchases and refunds that need to be executed.
|
|
9
|
+
* @param options The options parameters.
|
|
10
|
+
*/
|
|
11
|
+
beginPost(body: CalculateExchangeRequest, options?: CalculateExchangePostOptionalParams): Promise<SimplePollerLike<OperationState<CalculateExchangePostResponse>, CalculateExchangePostResponse>>;
|
|
12
|
+
/**
|
|
13
|
+
* Calculates price for exchanging `Reservations` if there are no policy errors.
|
|
14
|
+
*
|
|
15
|
+
* @param body Request containing purchases and refunds that need to be executed.
|
|
16
|
+
* @param options The options parameters.
|
|
17
|
+
*/
|
|
18
|
+
beginPostAndWait(body: CalculateExchangeRequest, options?: CalculateExchangePostOptionalParams): Promise<CalculateExchangePostResponse>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=calculateExchange.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calculateExchange.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/calculateExchange.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EACL,wBAAwB,EACxB,mCAAmC,EACnC,6BAA6B,EAC9B,MAAM,oBAAoB,CAAC;AAE5B,kDAAkD;AAClD,MAAM,WAAW,iBAAiB;IAChC;;;;;OAKG;IACH,SAAS,CACP,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,mCAAmC,GAC5C,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,6BAA6B,CAAC,EAC7C,6BAA6B,CAC9B,CACF,CAAC;IACF;;;;;OAKG;IACH,gBAAgB,CACd,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,mCAAmC,GAC5C,OAAO,CAAC,6BAA6B,CAAC,CAAC;CAC3C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=calculateExchange.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calculateExchange.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/calculateExchange.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 CalculateExchangeRequest,\n CalculateExchangePostOptionalParams,\n CalculateExchangePostResponse\n} from \"../models/index.js\";\n\n/** Interface representing a CalculateExchange. */\nexport interface CalculateExchange {\n /**\n * Calculates price for exchanging `Reservations` if there are no policy errors.\n *\n * @param body Request containing purchases and refunds that need to be executed.\n * @param options The options parameters.\n */\n beginPost(\n body: CalculateExchangeRequest,\n options?: CalculateExchangePostOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<CalculateExchangePostResponse>,\n CalculateExchangePostResponse\n >\n >;\n /**\n * Calculates price for exchanging `Reservations` if there are no policy errors.\n *\n * @param body Request containing purchases and refunds that need to be executed.\n * @param options The options parameters.\n */\n beginPostAndWait(\n body: CalculateExchangeRequest,\n options?: CalculateExchangePostOptionalParams\n ): Promise<CalculateExchangePostResponse>;\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CalculateRefundRequest, CalculateRefundPostOptionalParams, CalculateRefundPostResponse } from "../models/index.js";
|
|
2
|
+
/** Interface representing a CalculateRefund. */
|
|
3
|
+
export interface CalculateRefund {
|
|
4
|
+
/**
|
|
5
|
+
* Calculate price for returning `Reservations` if there are no policy errors.
|
|
6
|
+
*
|
|
7
|
+
* @param reservationOrderId Order Id of the reservation
|
|
8
|
+
* @param body Information needed for calculating refund of a reservation.
|
|
9
|
+
* @param options The options parameters.
|
|
10
|
+
*/
|
|
11
|
+
post(reservationOrderId: string, body: CalculateRefundRequest, options?: CalculateRefundPostOptionalParams): Promise<CalculateRefundPostResponse>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=calculateRefund.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calculateRefund.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/calculateRefund.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,sBAAsB,EACtB,iCAAiC,EACjC,2BAA2B,EAC5B,MAAM,oBAAoB,CAAC;AAE5B,gDAAgD;AAChD,MAAM,WAAW,eAAe;IAC9B;;;;;;OAMG;IACH,IAAI,CACF,kBAAkB,EAAE,MAAM,EAC1B,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,2BAA2B,CAAC,CAAC;CACzC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=calculateRefund.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calculateRefund.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/calculateRefund.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 {\n CalculateRefundRequest,\n CalculateRefundPostOptionalParams,\n CalculateRefundPostResponse\n} from \"../models/index.js\";\n\n/** Interface representing a CalculateRefund. */\nexport interface CalculateRefund {\n /**\n * Calculate price for returning `Reservations` if there are no policy errors.\n *\n * @param reservationOrderId Order Id of the reservation\n * @param body Information needed for calculating refund of a reservation.\n * @param options The options parameters.\n */\n post(\n reservationOrderId: string,\n body: CalculateRefundRequest,\n options?: CalculateRefundPostOptionalParams\n ): Promise<CalculateRefundPostResponse>;\n}\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
2
|
+
import { ExchangeRequest, ExchangePostOptionalParams, ExchangePostResponse } from "../models/index.js";
|
|
3
|
+
/** Interface representing a Exchange. */
|
|
4
|
+
export interface Exchange {
|
|
5
|
+
/**
|
|
6
|
+
* Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.
|
|
7
|
+
*
|
|
8
|
+
* @param body Request containing the refunds and purchases that need to be executed.
|
|
9
|
+
* @param options The options parameters.
|
|
10
|
+
*/
|
|
11
|
+
beginPost(body: ExchangeRequest, options?: ExchangePostOptionalParams): Promise<SimplePollerLike<OperationState<ExchangePostResponse>, ExchangePostResponse>>;
|
|
12
|
+
/**
|
|
13
|
+
* Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.
|
|
14
|
+
*
|
|
15
|
+
* @param body Request containing the refunds and purchases that need to be executed.
|
|
16
|
+
* @param options The options parameters.
|
|
17
|
+
*/
|
|
18
|
+
beginPostAndWait(body: ExchangeRequest, options?: ExchangePostOptionalParams): Promise<ExchangePostResponse>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=exchange.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exchange.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/exchange.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EACL,eAAe,EACf,0BAA0B,EAC1B,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAE5B,yCAAyC;AACzC,MAAM,WAAW,QAAQ;IACvB;;;;;OAKG;IACH,SAAS,CACP,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,0BAA0B,GACnC,OAAO,CACR,gBAAgB,CAAC,cAAc,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,CAC7E,CAAC;IACF;;;;;OAKG;IACH,gBAAgB,CACd,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,0BAA0B,GACnC,OAAO,CAAC,oBAAoB,CAAC,CAAC;CAClC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=exchange.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exchange.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/exchange.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 ExchangeRequest,\n ExchangePostOptionalParams,\n ExchangePostResponse\n} from \"../models/index.js\";\n\n/** Interface representing a Exchange. */\nexport interface Exchange {\n /**\n * Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.\n *\n * @param body Request containing the refunds and purchases that need to be executed.\n * @param options The options parameters.\n */\n beginPost(\n body: ExchangeRequest,\n options?: ExchangePostOptionalParams\n ): Promise<\n SimplePollerLike<OperationState<ExchangePostResponse>, ExchangePostResponse>\n >;\n /**\n * Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.\n *\n * @param body Request containing the refunds and purchases that need to be executed.\n * @param options The options parameters.\n */\n beginPostAndWait(\n body: ExchangeRequest,\n options?: ExchangePostOptionalParams\n ): Promise<ExchangePostResponse>;\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./reservation.js";
|
|
2
|
+
export * from "./reservationOrder.js";
|
|
3
|
+
export * from "./operation.js";
|
|
4
|
+
export * from "./calculateRefund.js";
|
|
5
|
+
export * from "./return.js";
|
|
6
|
+
export * from "./calculateExchange.js";
|
|
7
|
+
export * from "./exchange.js";
|
|
8
|
+
export * from "./quota.js";
|
|
9
|
+
export * from "./quotaRequestStatus.js";
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
export * from "./reservation.js";
|
|
9
|
+
export * from "./reservationOrder.js";
|
|
10
|
+
export * from "./operation.js";
|
|
11
|
+
export * from "./calculateRefund.js";
|
|
12
|
+
export * from "./return.js";
|
|
13
|
+
export * from "./calculateExchange.js";
|
|
14
|
+
export * from "./exchange.js";
|
|
15
|
+
export * from "./quota.js";
|
|
16
|
+
export * from "./quotaRequestStatus.js";
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,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 * from \"./reservation.js\";\nexport * from \"./reservationOrder.js\";\nexport * from \"./operation.js\";\nexport * from \"./calculateRefund.js\";\nexport * from \"./return.js\";\nexport * from \"./calculateExchange.js\";\nexport * from \"./exchange.js\";\nexport * from \"./quota.js\";\nexport * from \"./quotaRequestStatus.js\";\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { OperationResponse, OperationListOptionalParams } from "../models/index.js";
|
|
3
|
+
/** Interface representing a Operation. */
|
|
4
|
+
export interface Operation {
|
|
5
|
+
/**
|
|
6
|
+
* List all the operations.
|
|
7
|
+
* @param options The options parameters.
|
|
8
|
+
*/
|
|
9
|
+
list(options?: OperationListOptionalParams): PagedAsyncIterableIterator<OperationResponse>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=operation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operation.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAGpF,0CAA0C;AAC1C,MAAM,WAAW,SAAS;IACxB;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,2BAA2B,GACpC,0BAA0B,CAAC,iBAAiB,CAAC,CAAC;CAClD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operation.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 { OperationResponse, OperationListOptionalParams } from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Operation. */\nexport interface Operation {\n /**\n * List all the operations.\n * @param options The options parameters.\n */\n list(\n options?: OperationListOptionalParams\n ): PagedAsyncIterableIterator<OperationResponse>;\n}\n"]}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
3
|
+
import { CurrentQuotaLimitBase, QuotaListOptionalParams, QuotaGetOptionalParams, QuotaGetResponse, QuotaCreateOrUpdateOptionalParams, QuotaCreateOrUpdateResponse, QuotaUpdateOptionalParams, QuotaUpdateResponse } from "../models/index.js";
|
|
4
|
+
/** Interface representing a Quota. */
|
|
5
|
+
export interface Quota {
|
|
6
|
+
/**
|
|
7
|
+
* Gets a list of current quotas (service limits) and usage for all resources. The response from the
|
|
8
|
+
* list quota operation can be leveraged to request quota updates.
|
|
9
|
+
* @param subscriptionId Azure subscription ID.
|
|
10
|
+
* @param providerId Azure resource provider ID.
|
|
11
|
+
* @param location Azure region.
|
|
12
|
+
* @param options The options parameters.
|
|
13
|
+
*/
|
|
14
|
+
list(subscriptionId: string, providerId: string, location: string, options?: QuotaListOptionalParams): PagedAsyncIterableIterator<CurrentQuotaLimitBase>;
|
|
15
|
+
/**
|
|
16
|
+
* Get the current quota (service limit) and usage of a resource. You can use the response from the GET
|
|
17
|
+
* operation to submit quota update request.
|
|
18
|
+
* @param subscriptionId Azure subscription ID.
|
|
19
|
+
* @param providerId Azure resource provider ID.
|
|
20
|
+
* @param location Azure region.
|
|
21
|
+
* @param resourceName The resource name for a resource provider, such as SKU name for
|
|
22
|
+
* Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices
|
|
23
|
+
* @param options The options parameters.
|
|
24
|
+
*/
|
|
25
|
+
get(subscriptionId: string, providerId: string, location: string, resourceName: string, options?: QuotaGetOptionalParams): Promise<QuotaGetResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Create or update the quota (service limits) of a resource to the requested value.
|
|
28
|
+
* Steps:
|
|
29
|
+
* 1. Make the Get request to get the quota information for specific resource.
|
|
30
|
+
* 2. To increase the quota, update the limit field in the response from Get request to new value.
|
|
31
|
+
* 3. Submit the JSON to the quota request API to update the quota.
|
|
32
|
+
* The Create quota request may be constructed as follows. The PUT operation can be used to update
|
|
33
|
+
* the quota.
|
|
34
|
+
* @param subscriptionId Azure subscription ID.
|
|
35
|
+
* @param providerId Azure resource provider ID.
|
|
36
|
+
* @param location Azure region.
|
|
37
|
+
* @param resourceName The resource name for a resource provider, such as SKU name for
|
|
38
|
+
* Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices
|
|
39
|
+
* @param createQuotaRequest Quota requests payload.
|
|
40
|
+
* @param options The options parameters.
|
|
41
|
+
*/
|
|
42
|
+
beginCreateOrUpdate(subscriptionId: string, providerId: string, location: string, resourceName: string, createQuotaRequest: CurrentQuotaLimitBase, options?: QuotaCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<QuotaCreateOrUpdateResponse>, QuotaCreateOrUpdateResponse>>;
|
|
43
|
+
/**
|
|
44
|
+
* Create or update the quota (service limits) of a resource to the requested value.
|
|
45
|
+
* Steps:
|
|
46
|
+
* 1. Make the Get request to get the quota information for specific resource.
|
|
47
|
+
* 2. To increase the quota, update the limit field in the response from Get request to new value.
|
|
48
|
+
* 3. Submit the JSON to the quota request API to update the quota.
|
|
49
|
+
* The Create quota request may be constructed as follows. The PUT operation can be used to update
|
|
50
|
+
* the quota.
|
|
51
|
+
* @param subscriptionId Azure subscription ID.
|
|
52
|
+
* @param providerId Azure resource provider ID.
|
|
53
|
+
* @param location Azure region.
|
|
54
|
+
* @param resourceName The resource name for a resource provider, such as SKU name for
|
|
55
|
+
* Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices
|
|
56
|
+
* @param createQuotaRequest Quota requests payload.
|
|
57
|
+
* @param options The options parameters.
|
|
58
|
+
*/
|
|
59
|
+
beginCreateOrUpdateAndWait(subscriptionId: string, providerId: string, location: string, resourceName: string, createQuotaRequest: CurrentQuotaLimitBase, options?: QuotaCreateOrUpdateOptionalParams): Promise<QuotaCreateOrUpdateResponse>;
|
|
60
|
+
/**
|
|
61
|
+
* Update the quota (service limits) of this resource to the requested value.
|
|
62
|
+
* • To get the quota information for specific resource, send a GET request.
|
|
63
|
+
* • To increase the quota, update the limit field from the GET response to a new value.
|
|
64
|
+
* • To update the quota value, submit the JSON response to the quota request API to update the
|
|
65
|
+
* quota.
|
|
66
|
+
* • To update the quota. use the PATCH operation.
|
|
67
|
+
* @param subscriptionId Azure subscription ID.
|
|
68
|
+
* @param providerId Azure resource provider ID.
|
|
69
|
+
* @param location Azure region.
|
|
70
|
+
* @param resourceName The resource name for a resource provider, such as SKU name for
|
|
71
|
+
* Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices
|
|
72
|
+
* @param createQuotaRequest Payload for the quota request.
|
|
73
|
+
* @param options The options parameters.
|
|
74
|
+
*/
|
|
75
|
+
beginUpdate(subscriptionId: string, providerId: string, location: string, resourceName: string, createQuotaRequest: CurrentQuotaLimitBase, options?: QuotaUpdateOptionalParams): Promise<SimplePollerLike<OperationState<QuotaUpdateResponse>, QuotaUpdateResponse>>;
|
|
76
|
+
/**
|
|
77
|
+
* Update the quota (service limits) of this resource to the requested value.
|
|
78
|
+
* • To get the quota information for specific resource, send a GET request.
|
|
79
|
+
* • To increase the quota, update the limit field from the GET response to a new value.
|
|
80
|
+
* • To update the quota value, submit the JSON response to the quota request API to update the
|
|
81
|
+
* quota.
|
|
82
|
+
* • To update the quota. use the PATCH operation.
|
|
83
|
+
* @param subscriptionId Azure subscription ID.
|
|
84
|
+
* @param providerId Azure resource provider ID.
|
|
85
|
+
* @param location Azure region.
|
|
86
|
+
* @param resourceName The resource name for a resource provider, such as SKU name for
|
|
87
|
+
* Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices
|
|
88
|
+
* @param createQuotaRequest Payload for the quota request.
|
|
89
|
+
* @param options The options parameters.
|
|
90
|
+
*/
|
|
91
|
+
beginUpdateAndWait(subscriptionId: string, providerId: string, location: string, resourceName: string, createQuotaRequest: CurrentQuotaLimitBase, options?: QuotaUpdateOptionalParams): Promise<QuotaUpdateResponse>;
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=quota.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quota.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/quota.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EACvB,sBAAsB,EACtB,gBAAgB,EAChB,iCAAiC,EACjC,2BAA2B,EAC3B,yBAAyB,EACzB,mBAAmB,EACpB,MAAM,oBAAoB,CAAC;AAG5B,sCAAsC;AACtC,MAAM,WAAW,KAAK;IACpB;;;;;;;OAOG;IACH,IAAI,CACF,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,uBAAuB,GAChC,0BAA0B,CAAC,qBAAqB,CAAC,CAAC;IACrD;;;;;;;;;OASG;IACH,GAAG,CACD,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,sBAAsB,GAC/B,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC7B;;;;;;;;;;;;;;;OAeG;IACH,mBAAmB,CACjB,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,EACpB,kBAAkB,EAAE,qBAAqB,EACzC,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,2BAA2B,CAAC,EAC3C,2BAA2B,CAC5B,CACF,CAAC;IACF;;;;;;;;;;;;;;;OAeG;IACH,0BAA0B,CACxB,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,EACpB,kBAAkB,EAAE,qBAAqB,EACzC,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,2BAA2B,CAAC,CAAC;IACxC;;;;;;;;;;;;;;OAcG;IACH,WAAW,CACT,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,EACpB,kBAAkB,EAAE,qBAAqB,EACzC,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CACR,gBAAgB,CAAC,cAAc,CAAC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC,CAC3E,CAAC;IACF;;;;;;;;;;;;;;OAcG;IACH,kBAAkB,CAChB,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,EACpB,kBAAkB,EAAE,qBAAqB,EACzC,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC,CAAC;CACjC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=quota.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quota.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/quota.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 CurrentQuotaLimitBase,\n QuotaListOptionalParams,\n QuotaGetOptionalParams,\n QuotaGetResponse,\n QuotaCreateOrUpdateOptionalParams,\n QuotaCreateOrUpdateResponse,\n QuotaUpdateOptionalParams,\n QuotaUpdateResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Quota. */\nexport interface Quota {\n /**\n * Gets a list of current quotas (service limits) and usage for all resources. The response from the\n * list quota operation can be leveraged to request quota updates.\n * @param subscriptionId Azure subscription ID.\n * @param providerId Azure resource provider ID.\n * @param location Azure region.\n * @param options The options parameters.\n */\n list(\n subscriptionId: string,\n providerId: string,\n location: string,\n options?: QuotaListOptionalParams\n ): PagedAsyncIterableIterator<CurrentQuotaLimitBase>;\n /**\n * Get the current quota (service limit) and usage of a resource. You can use the response from the GET\n * operation to submit quota update request.\n * @param subscriptionId Azure subscription ID.\n * @param providerId Azure resource provider ID.\n * @param location Azure region.\n * @param resourceName The resource name for a resource provider, such as SKU name for\n * Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices\n * @param options The options parameters.\n */\n get(\n subscriptionId: string,\n providerId: string,\n location: string,\n resourceName: string,\n options?: QuotaGetOptionalParams\n ): Promise<QuotaGetResponse>;\n /**\n * Create or update the quota (service limits) of a resource to the requested value.\n * Steps:\n * 1. Make the Get request to get the quota information for specific resource.\n * 2. To increase the quota, update the limit field in the response from Get request to new value.\n * 3. Submit the JSON to the quota request API to update the quota.\n * The Create quota request may be constructed as follows. The PUT operation can be used to update\n * the quota.\n * @param subscriptionId Azure subscription ID.\n * @param providerId Azure resource provider ID.\n * @param location Azure region.\n * @param resourceName The resource name for a resource provider, such as SKU name for\n * Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices\n * @param createQuotaRequest Quota requests payload.\n * @param options The options parameters.\n */\n beginCreateOrUpdate(\n subscriptionId: string,\n providerId: string,\n location: string,\n resourceName: string,\n createQuotaRequest: CurrentQuotaLimitBase,\n options?: QuotaCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<QuotaCreateOrUpdateResponse>,\n QuotaCreateOrUpdateResponse\n >\n >;\n /**\n * Create or update the quota (service limits) of a resource to the requested value.\n * Steps:\n * 1. Make the Get request to get the quota information for specific resource.\n * 2. To increase the quota, update the limit field in the response from Get request to new value.\n * 3. Submit the JSON to the quota request API to update the quota.\n * The Create quota request may be constructed as follows. The PUT operation can be used to update\n * the quota.\n * @param subscriptionId Azure subscription ID.\n * @param providerId Azure resource provider ID.\n * @param location Azure region.\n * @param resourceName The resource name for a resource provider, such as SKU name for\n * Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices\n * @param createQuotaRequest Quota requests payload.\n * @param options The options parameters.\n */\n beginCreateOrUpdateAndWait(\n subscriptionId: string,\n providerId: string,\n location: string,\n resourceName: string,\n createQuotaRequest: CurrentQuotaLimitBase,\n options?: QuotaCreateOrUpdateOptionalParams\n ): Promise<QuotaCreateOrUpdateResponse>;\n /**\n * Update the quota (service limits) of this resource to the requested value.\n * • To get the quota information for specific resource, send a GET request.\n * • To increase the quota, update the limit field from the GET response to a new value.\n * • To update the quota value, submit the JSON response to the quota request API to update the\n * quota.\n * • To update the quota. use the PATCH operation.\n * @param subscriptionId Azure subscription ID.\n * @param providerId Azure resource provider ID.\n * @param location Azure region.\n * @param resourceName The resource name for a resource provider, such as SKU name for\n * Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices\n * @param createQuotaRequest Payload for the quota request.\n * @param options The options parameters.\n */\n beginUpdate(\n subscriptionId: string,\n providerId: string,\n location: string,\n resourceName: string,\n createQuotaRequest: CurrentQuotaLimitBase,\n options?: QuotaUpdateOptionalParams\n ): Promise<\n SimplePollerLike<OperationState<QuotaUpdateResponse>, QuotaUpdateResponse>\n >;\n /**\n * Update the quota (service limits) of this resource to the requested value.\n * • To get the quota information for specific resource, send a GET request.\n * • To increase the quota, update the limit field from the GET response to a new value.\n * • To update the quota value, submit the JSON response to the quota request API to update the\n * quota.\n * • To update the quota. use the PATCH operation.\n * @param subscriptionId Azure subscription ID.\n * @param providerId Azure resource provider ID.\n * @param location Azure region.\n * @param resourceName The resource name for a resource provider, such as SKU name for\n * Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices\n * @param createQuotaRequest Payload for the quota request.\n * @param options The options parameters.\n */\n beginUpdateAndWait(\n subscriptionId: string,\n providerId: string,\n location: string,\n resourceName: string,\n createQuotaRequest: CurrentQuotaLimitBase,\n options?: QuotaUpdateOptionalParams\n ): Promise<QuotaUpdateResponse>;\n}\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { QuotaRequestDetails, QuotaRequestStatusListOptionalParams, QuotaRequestStatusGetOptionalParams, QuotaRequestStatusGetResponse } from "../models/index.js";
|
|
3
|
+
/** Interface representing a QuotaRequestStatus. */
|
|
4
|
+
export interface QuotaRequestStatus {
|
|
5
|
+
/**
|
|
6
|
+
* For the specified Azure region (location), subscription, and resource provider, get the history of
|
|
7
|
+
* the quota requests for the past year. To select specific quota requests, use the oData filter.
|
|
8
|
+
* @param subscriptionId Azure subscription ID.
|
|
9
|
+
* @param providerId Azure resource provider ID.
|
|
10
|
+
* @param location Azure region.
|
|
11
|
+
* @param options The options parameters.
|
|
12
|
+
*/
|
|
13
|
+
list(subscriptionId: string, providerId: string, location: string, options?: QuotaRequestStatusListOptionalParams): PagedAsyncIterableIterator<QuotaRequestDetails>;
|
|
14
|
+
/**
|
|
15
|
+
* For the specified Azure region (location), get the details and status of the quota request by the
|
|
16
|
+
* quota request ID for the resources of the resource provider. The PUT request for the quota (service
|
|
17
|
+
* limit) returns a response with the requestId parameter.
|
|
18
|
+
* @param subscriptionId Azure subscription ID.
|
|
19
|
+
* @param providerId Azure resource provider ID.
|
|
20
|
+
* @param location Azure region.
|
|
21
|
+
* @param id Quota Request ID.
|
|
22
|
+
* @param options The options parameters.
|
|
23
|
+
*/
|
|
24
|
+
get(subscriptionId: string, providerId: string, location: string, id: string, options?: QuotaRequestStatusGetOptionalParams): Promise<QuotaRequestStatusGetResponse>;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=quotaRequestStatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quotaRequestStatus.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/quotaRequestStatus.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,mBAAmB,EACnB,oCAAoC,EACpC,mCAAmC,EACnC,6BAA6B,EAC9B,MAAM,oBAAoB,CAAC;AAG5B,mDAAmD;AACnD,MAAM,WAAW,kBAAkB;IACjC;;;;;;;OAOG;IACH,IAAI,CACF,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,oCAAoC,GAC7C,0BAA0B,CAAC,mBAAmB,CAAC,CAAC;IACnD;;;;;;;;;OASG;IACH,GAAG,CACD,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,mCAAmC,GAC5C,OAAO,CAAC,6BAA6B,CAAC,CAAC;CAC3C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=quotaRequestStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quotaRequestStatus.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/quotaRequestStatus.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport {\n QuotaRequestDetails,\n QuotaRequestStatusListOptionalParams,\n QuotaRequestStatusGetOptionalParams,\n QuotaRequestStatusGetResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a QuotaRequestStatus. */\nexport interface QuotaRequestStatus {\n /**\n * For the specified Azure region (location), subscription, and resource provider, get the history of\n * the quota requests for the past year. To select specific quota requests, use the oData filter.\n * @param subscriptionId Azure subscription ID.\n * @param providerId Azure resource provider ID.\n * @param location Azure region.\n * @param options The options parameters.\n */\n list(\n subscriptionId: string,\n providerId: string,\n location: string,\n options?: QuotaRequestStatusListOptionalParams\n ): PagedAsyncIterableIterator<QuotaRequestDetails>;\n /**\n * For the specified Azure region (location), get the details and status of the quota request by the\n * quota request ID for the resources of the resource provider. The PUT request for the quota (service\n * limit) returns a response with the requestId parameter.\n * @param subscriptionId Azure subscription ID.\n * @param providerId Azure resource provider ID.\n * @param location Azure region.\n * @param id Quota Request ID.\n * @param options The options parameters.\n */\n get(\n subscriptionId: string,\n providerId: string,\n location: string,\n id: string,\n options?: QuotaRequestStatusGetOptionalParams\n ): Promise<QuotaRequestStatusGetResponse>;\n}\n"]}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
3
|
+
import { ReservationResponse, ReservationListOptionalParams, ReservationListRevisionsOptionalParams, ReservationListAllOptionalParams, AvailableScopeRequest, ReservationAvailableScopesOptionalParams, ReservationAvailableScopesResponse, SplitRequest, ReservationSplitOptionalParams, ReservationSplitResponse, MergeRequest, ReservationMergeOptionalParams, ReservationMergeResponse, ReservationGetOptionalParams, ReservationGetResponse, Patch, ReservationUpdateOptionalParams, ReservationUpdateResponse, ReservationArchiveOptionalParams, ReservationUnarchiveOptionalParams } from "../models/index.js";
|
|
4
|
+
/** Interface representing a Reservation. */
|
|
5
|
+
export interface Reservation {
|
|
6
|
+
/**
|
|
7
|
+
* List `Reservation`s within a single `ReservationOrder`.
|
|
8
|
+
* @param reservationOrderId Order Id of the reservation
|
|
9
|
+
* @param options The options parameters.
|
|
10
|
+
*/
|
|
11
|
+
list(reservationOrderId: string, options?: ReservationListOptionalParams): PagedAsyncIterableIterator<ReservationResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* List of all the revisions for the `Reservation`.
|
|
14
|
+
* @param reservationOrderId Order Id of the reservation
|
|
15
|
+
* @param reservationId Id of the reservation item
|
|
16
|
+
* @param options The options parameters.
|
|
17
|
+
*/
|
|
18
|
+
listRevisions(reservationOrderId: string, reservationId: string, options?: ReservationListRevisionsOptionalParams): PagedAsyncIterableIterator<ReservationResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* List the reservations and the roll up counts of reservations group by provisioning states that the
|
|
21
|
+
* user has access to in the current tenant.
|
|
22
|
+
* @param options The options parameters.
|
|
23
|
+
*/
|
|
24
|
+
listAll(options?: ReservationListAllOptionalParams): PagedAsyncIterableIterator<ReservationResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Check whether the scopes from request is valid for `Reservation`.
|
|
27
|
+
*
|
|
28
|
+
* @param reservationOrderId Order Id of the reservation
|
|
29
|
+
* @param reservationId Id of the reservation item
|
|
30
|
+
* @param body Scopes to be checked for eligibility.
|
|
31
|
+
* @param options The options parameters.
|
|
32
|
+
*/
|
|
33
|
+
beginAvailableScopes(reservationOrderId: string, reservationId: string, body: AvailableScopeRequest, options?: ReservationAvailableScopesOptionalParams): Promise<SimplePollerLike<OperationState<ReservationAvailableScopesResponse>, ReservationAvailableScopesResponse>>;
|
|
34
|
+
/**
|
|
35
|
+
* Check whether the scopes from request is valid for `Reservation`.
|
|
36
|
+
*
|
|
37
|
+
* @param reservationOrderId Order Id of the reservation
|
|
38
|
+
* @param reservationId Id of the reservation item
|
|
39
|
+
* @param body Scopes to be checked for eligibility.
|
|
40
|
+
* @param options The options parameters.
|
|
41
|
+
*/
|
|
42
|
+
beginAvailableScopesAndWait(reservationOrderId: string, reservationId: string, body: AvailableScopeRequest, options?: ReservationAvailableScopesOptionalParams): Promise<ReservationAvailableScopesResponse>;
|
|
43
|
+
/**
|
|
44
|
+
* Split a `Reservation` into two `Reservation`s with specified quantity distribution.
|
|
45
|
+
* @param reservationOrderId Order Id of the reservation
|
|
46
|
+
* @param body Information needed to Split a reservation item
|
|
47
|
+
* @param options The options parameters.
|
|
48
|
+
*/
|
|
49
|
+
beginSplit(reservationOrderId: string, body: SplitRequest, options?: ReservationSplitOptionalParams): Promise<SimplePollerLike<OperationState<ReservationSplitResponse>, ReservationSplitResponse>>;
|
|
50
|
+
/**
|
|
51
|
+
* Split a `Reservation` into two `Reservation`s with specified quantity distribution.
|
|
52
|
+
* @param reservationOrderId Order Id of the reservation
|
|
53
|
+
* @param body Information needed to Split a reservation item
|
|
54
|
+
* @param options The options parameters.
|
|
55
|
+
*/
|
|
56
|
+
beginSplitAndWait(reservationOrderId: string, body: SplitRequest, options?: ReservationSplitOptionalParams): Promise<ReservationSplitResponse>;
|
|
57
|
+
/**
|
|
58
|
+
* Merge the specified `Reservation`s into a new `Reservation`. The two `Reservation`s being merged
|
|
59
|
+
* must have same properties.
|
|
60
|
+
* @param reservationOrderId Order Id of the reservation
|
|
61
|
+
* @param body Information needed for commercial request for a reservation
|
|
62
|
+
* @param options The options parameters.
|
|
63
|
+
*/
|
|
64
|
+
beginMerge(reservationOrderId: string, body: MergeRequest, options?: ReservationMergeOptionalParams): Promise<SimplePollerLike<OperationState<ReservationMergeResponse>, ReservationMergeResponse>>;
|
|
65
|
+
/**
|
|
66
|
+
* Merge the specified `Reservation`s into a new `Reservation`. The two `Reservation`s being merged
|
|
67
|
+
* must have same properties.
|
|
68
|
+
* @param reservationOrderId Order Id of the reservation
|
|
69
|
+
* @param body Information needed for commercial request for a reservation
|
|
70
|
+
* @param options The options parameters.
|
|
71
|
+
*/
|
|
72
|
+
beginMergeAndWait(reservationOrderId: string, body: MergeRequest, options?: ReservationMergeOptionalParams): Promise<ReservationMergeResponse>;
|
|
73
|
+
/**
|
|
74
|
+
* Get specific `Reservation` details.
|
|
75
|
+
* @param reservationOrderId Order Id of the reservation
|
|
76
|
+
* @param reservationId Id of the reservation item
|
|
77
|
+
* @param options The options parameters.
|
|
78
|
+
*/
|
|
79
|
+
get(reservationOrderId: string, reservationId: string, options?: ReservationGetOptionalParams): Promise<ReservationGetResponse>;
|
|
80
|
+
/**
|
|
81
|
+
* Updates the applied scopes of the `Reservation`.
|
|
82
|
+
* @param reservationOrderId Order Id of the reservation
|
|
83
|
+
* @param reservationId Id of the reservation item
|
|
84
|
+
* @param parameters Information needed to patch a reservation item
|
|
85
|
+
* @param options The options parameters.
|
|
86
|
+
*/
|
|
87
|
+
beginUpdate(reservationOrderId: string, reservationId: string, parameters: Patch, options?: ReservationUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ReservationUpdateResponse>, ReservationUpdateResponse>>;
|
|
88
|
+
/**
|
|
89
|
+
* Updates the applied scopes of the `Reservation`.
|
|
90
|
+
* @param reservationOrderId Order Id of the reservation
|
|
91
|
+
* @param reservationId Id of the reservation item
|
|
92
|
+
* @param parameters Information needed to patch a reservation item
|
|
93
|
+
* @param options The options parameters.
|
|
94
|
+
*/
|
|
95
|
+
beginUpdateAndWait(reservationOrderId: string, reservationId: string, parameters: Patch, options?: ReservationUpdateOptionalParams): Promise<ReservationUpdateResponse>;
|
|
96
|
+
/**
|
|
97
|
+
* Archiving a `Reservation` moves it to `Archived` state.
|
|
98
|
+
* @param reservationOrderId Order Id of the reservation
|
|
99
|
+
* @param reservationId Id of the reservation item
|
|
100
|
+
* @param options The options parameters.
|
|
101
|
+
*/
|
|
102
|
+
archive(reservationOrderId: string, reservationId: string, options?: ReservationArchiveOptionalParams): Promise<void>;
|
|
103
|
+
/**
|
|
104
|
+
* Restores a `Reservation` to the state it was before archiving.
|
|
105
|
+
*
|
|
106
|
+
* @param reservationOrderId Order Id of the reservation
|
|
107
|
+
* @param reservationId Id of the reservation item
|
|
108
|
+
* @param options The options parameters.
|
|
109
|
+
*/
|
|
110
|
+
unarchive(reservationOrderId: string, reservationId: string, options?: ReservationUnarchiveOptionalParams): Promise<void>;
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=reservation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reservation.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/reservation.ts"],"names":[],"mappings":"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"}
|