@azure/arm-reservations 9.0.1-alpha.20250218.1 → 9.0.1-alpha.20250220.1
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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"calculateRefundPostSample.d.ts","sourceRoot":"","sources":["../../samples-dev/calculateRefundPostSample.ts"],"names":[],"mappings":""}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from "tslib";
|
|
2
|
-
import { AzureReservationAPI } from "@azure/arm-reservations";
|
|
3
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
4
|
-
import * as dotenv from "dotenv";
|
|
5
|
-
dotenv.config();
|
|
6
|
-
/**
|
|
7
|
-
* This sample demonstrates how to Calculate price for returning `Reservations` if there are no policy errors.
|
|
8
|
-
|
|
9
|
-
*
|
|
10
|
-
* @summary Calculate price for returning `Reservations` if there are no policy errors.
|
|
11
|
-
|
|
12
|
-
* x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/examples/CalculateRefund.json
|
|
13
|
-
*/
|
|
14
|
-
function calculateRefund() {
|
|
15
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
-
const reservationOrderId = "276e7ae4-84d0-4da6-ab4b-d6b94f3557da";
|
|
17
|
-
const body = {
|
|
18
|
-
id: "/providers/microsoft.capacity/reservationOrders/50000000-aaaa-bbbb-cccc-100000000004",
|
|
19
|
-
properties: {
|
|
20
|
-
reservationToReturn: {
|
|
21
|
-
quantity: 1,
|
|
22
|
-
reservationId: "/providers/microsoft.capacity/reservationOrders/50000000-aaaa-bbbb-cccc-100000000004/reservations/40000000-aaaa-bbbb-cccc-100000000000",
|
|
23
|
-
},
|
|
24
|
-
scope: "Reservation",
|
|
25
|
-
},
|
|
26
|
-
};
|
|
27
|
-
const credential = new DefaultAzureCredential();
|
|
28
|
-
const client = new AzureReservationAPI(credential);
|
|
29
|
-
const result = yield client.calculateRefund.post(reservationOrderId, body);
|
|
30
|
-
console.log(result);
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
function main() {
|
|
34
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
-
yield calculateRefund();
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
main().catch(console.error);
|
|
39
|
-
//# sourceMappingURL=calculateRefundPostSample.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"calculateRefundPostSample.js","sourceRoot":"","sources":["../../samples-dev/calculateRefundPostSample.ts"],"names":[],"mappings":";AAQA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;;;GAOG;AACH,SAAe,eAAe;;QAC5B,MAAM,kBAAkB,GAAG,sCAAsC,CAAC;QAClE,MAAM,IAAI,GAA2B;YACnC,EAAE,EAAE,sFAAsF;YAC1F,UAAU,EAAE;gBACV,mBAAmB,EAAE;oBACnB,QAAQ,EAAE,CAAC;oBACX,aAAa,EACX,wIAAwI;iBAC3I;gBACD,KAAK,EAAE,aAAa;aACrB;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC;QAC3E,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,MAAM,eAAe,EAAE,CAAC;IAC1B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"exchangePostSample.d.ts","sourceRoot":"","sources":["../../samples-dev/exchangePostSample.ts"],"names":[],"mappings":""}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from "tslib";
|
|
2
|
-
import { AzureReservationAPI } from "@azure/arm-reservations";
|
|
3
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
4
|
-
import * as dotenv from "dotenv";
|
|
5
|
-
dotenv.config();
|
|
6
|
-
/**
|
|
7
|
-
* This sample demonstrates how to Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.
|
|
8
|
-
|
|
9
|
-
*
|
|
10
|
-
* @summary Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.
|
|
11
|
-
|
|
12
|
-
* x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/examples/Exchange.json
|
|
13
|
-
*/
|
|
14
|
-
function exchange() {
|
|
15
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
-
const body = {
|
|
17
|
-
properties: { sessionId: "66e2ac8f-439e-4345-8235-6fef07608081" },
|
|
18
|
-
};
|
|
19
|
-
const credential = new DefaultAzureCredential();
|
|
20
|
-
const client = new AzureReservationAPI(credential);
|
|
21
|
-
const result = yield client.exchange.beginPostAndWait(body);
|
|
22
|
-
console.log(result);
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
function main() {
|
|
26
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
-
yield exchange();
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
main().catch(console.error);
|
|
31
|
-
//# sourceMappingURL=exchangePostSample.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"exchangePostSample.js","sourceRoot":"","sources":["../../samples-dev/exchangePostSample.ts"],"names":[],"mappings":";AAQA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;;;GAOG;AACH,SAAe,QAAQ;;QACrB,MAAM,IAAI,GAAoB;YAC5B,UAAU,EAAE,EAAE,SAAS,EAAE,sCAAsC,EAAE;SAClE,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC5D,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,MAAM,QAAQ,EAAE,CAAC;IACnB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getAppliedReservationListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/getAppliedReservationListSample.ts"],"names":[],"mappings":""}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
9
|
-
import { AzureReservationAPI } from "@azure/arm-reservations";
|
|
10
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
11
|
-
import * as dotenv from "dotenv";
|
|
12
|
-
dotenv.config();
|
|
13
|
-
/**
|
|
14
|
-
* This sample demonstrates how to Get applicable `Reservation`s that are applied to this subscription or a resource group under this subscription.
|
|
15
|
-
*
|
|
16
|
-
* @summary Get applicable `Reservation`s that are applied to this subscription or a resource group under this subscription.
|
|
17
|
-
* x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/examples/GetAppliedReservations.json
|
|
18
|
-
*/
|
|
19
|
-
function appliedReservationList() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "23bc208b-083f-4901-ae85-4f98c0c3b4b6";
|
|
22
|
-
const credential = new DefaultAzureCredential();
|
|
23
|
-
const client = new AzureReservationAPI(credential);
|
|
24
|
-
const result = yield client.getAppliedReservationList(subscriptionId);
|
|
25
|
-
console.log(result);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
function main() {
|
|
29
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
-
yield appliedReservationList();
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
main().catch(console.error);
|
|
34
|
-
//# sourceMappingURL=getAppliedReservationListSample.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getAppliedReservationListSample.js","sourceRoot":"","sources":["../../samples-dev/getAppliedReservationListSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,sBAAsB;;QACnC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,yBAAyB,CAAC,cAAc,CAAC,CAAC;QACtE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,MAAM,sBAAsB,EAAE,CAAC;IACjC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getCatalogSample.d.ts","sourceRoot":"","sources":["../../samples-dev/getCatalogSample.ts"],"names":[],"mappings":""}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { __asyncValues, __awaiter } from "tslib";
|
|
2
|
-
import { AzureReservationAPI } from "@azure/arm-reservations";
|
|
3
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
4
|
-
import * as dotenv from "dotenv";
|
|
5
|
-
dotenv.config();
|
|
6
|
-
/**
|
|
7
|
-
* This sample demonstrates how to Get the regions and skus that are available for RI purchase for the specified Azure subscription.
|
|
8
|
-
*
|
|
9
|
-
* @summary Get the regions and skus that are available for RI purchase for the specified Azure subscription.
|
|
10
|
-
* x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/examples/GetCatalog.json
|
|
11
|
-
*/
|
|
12
|
-
function catalog() {
|
|
13
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
14
|
-
var _a, e_1, _b, _c;
|
|
15
|
-
const subscriptionId = "23bc208b-083f-4901-ae85-4f98c0c3b4b6";
|
|
16
|
-
const reservedResourceType = "VirtualMachines";
|
|
17
|
-
const location = "eastus";
|
|
18
|
-
const options = { reservedResourceType, location };
|
|
19
|
-
const credential = new DefaultAzureCredential();
|
|
20
|
-
const client = new AzureReservationAPI(credential);
|
|
21
|
-
const resArray = new Array();
|
|
22
|
-
try {
|
|
23
|
-
for (var _d = true, _e = __asyncValues(client.listCatalog(subscriptionId, options)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
|
24
|
-
_c = _f.value;
|
|
25
|
-
_d = false;
|
|
26
|
-
const item = _c;
|
|
27
|
-
resArray.push(item);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
31
|
-
finally {
|
|
32
|
-
try {
|
|
33
|
-
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
34
|
-
}
|
|
35
|
-
finally { if (e_1) throw e_1.error; }
|
|
36
|
-
}
|
|
37
|
-
console.log(resArray);
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
function main() {
|
|
41
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
-
yield catalog();
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
main().catch(console.error);
|
|
46
|
-
//# sourceMappingURL=getCatalogSample.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getCatalogSample.js","sourceRoot":"","sources":["../../samples-dev/getCatalogSample.ts"],"names":[],"mappings":";AAQA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,OAAO;;;QACpB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,oBAAoB,GAAG,iBAAiB,CAAC;QAC/C,MAAM,QAAQ,GAAG,QAAQ,CAAC;QAC1B,MAAM,OAAO,GAA6B,EAAE,oBAAoB,EAAE,QAAQ,EAAE,CAAC;QAC7E,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAyB,eAAA,KAAA,cAAA,MAAM,CAAC,WAAW,CAAC,cAAc,EAAE,OAAO,CAAC,CAAA,IAAA,sDAAE,CAAC;gBAA9C,cAA2C;gBAA3C,WAA2C;gBAAzD,MAAM,IAAI,KAAA,CAAA;gBACnB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,MAAM,OAAO,EAAE,CAAC;IAClB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"operationListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/operationListSample.ts"],"names":[],"mappings":""}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { __asyncValues, __awaiter } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
9
|
-
import { AzureReservationAPI } from "@azure/arm-reservations";
|
|
10
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
11
|
-
import * as dotenv from "dotenv";
|
|
12
|
-
dotenv.config();
|
|
13
|
-
/**
|
|
14
|
-
* This sample demonstrates how to List all the operations.
|
|
15
|
-
*
|
|
16
|
-
* @summary List all the operations.
|
|
17
|
-
* x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/examples/GetOperations.json
|
|
18
|
-
*/
|
|
19
|
-
function getOperations() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
var _a, e_1, _b, _c;
|
|
22
|
-
const credential = new DefaultAzureCredential();
|
|
23
|
-
const client = new AzureReservationAPI(credential);
|
|
24
|
-
const resArray = new Array();
|
|
25
|
-
try {
|
|
26
|
-
for (var _d = true, _e = __asyncValues(client.operation.list()), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
|
27
|
-
_c = _f.value;
|
|
28
|
-
_d = false;
|
|
29
|
-
const item = _c;
|
|
30
|
-
resArray.push(item);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
34
|
-
finally {
|
|
35
|
-
try {
|
|
36
|
-
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
37
|
-
}
|
|
38
|
-
finally { if (e_1) throw e_1.error; }
|
|
39
|
-
}
|
|
40
|
-
console.log(resArray);
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
function main() {
|
|
44
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
-
yield getOperations();
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
main().catch(console.error);
|
|
49
|
-
//# sourceMappingURL=operationListSample.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"operationListSample.js","sourceRoot":"","sources":["../../samples-dev/operationListSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,aAAa;;;QAC1B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAyB,eAAA,KAAA,cAAA,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,CAAA,IAAA,sDAAE,CAAC;gBAA1B,cAAuB;gBAAvB,WAAuB;gBAArC,MAAM,IAAI,KAAA,CAAA;gBACnB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,MAAM,aAAa,EAAE,CAAC;IACxB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quotaCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/quotaCreateOrUpdateSample.ts"],"names":[],"mappings":""}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from "tslib";
|
|
2
|
-
import { AzureReservationAPI } from "@azure/arm-reservations";
|
|
3
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
4
|
-
import * as dotenv from "dotenv";
|
|
5
|
-
dotenv.config();
|
|
6
|
-
/**
|
|
7
|
-
* This sample demonstrates how to Create or update the quota (service limits) of a resource to the requested value.
|
|
8
|
-
Steps:
|
|
9
|
-
1. Make the Get request to get the quota information for specific resource.
|
|
10
|
-
2. To increase the quota, update the limit field in the response from Get request to new value.
|
|
11
|
-
3. Submit the JSON to the quota request API to update the quota.
|
|
12
|
-
The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.
|
|
13
|
-
*
|
|
14
|
-
* @summary Create or update the quota (service limits) of a resource to the requested value.
|
|
15
|
-
Steps:
|
|
16
|
-
1. Make the Get request to get the quota information for specific resource.
|
|
17
|
-
2. To increase the quota, update the limit field in the response from Get request to new value.
|
|
18
|
-
3. Submit the JSON to the quota request API to update the quota.
|
|
19
|
-
The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.
|
|
20
|
-
* x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putComputeOneSkuQuotaRequest.json
|
|
21
|
-
*/
|
|
22
|
-
function quotasRequestPutForCompute() {
|
|
23
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
const subscriptionId = "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3";
|
|
25
|
-
const providerId = "Microsoft.Compute";
|
|
26
|
-
const location = "eastus";
|
|
27
|
-
const resourceName = "standardFSv2Family";
|
|
28
|
-
const createQuotaRequest = {
|
|
29
|
-
properties: {
|
|
30
|
-
name: { value: "standardFSv2Family" },
|
|
31
|
-
limit: 200,
|
|
32
|
-
unit: "Count",
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
const credential = new DefaultAzureCredential();
|
|
36
|
-
const client = new AzureReservationAPI(credential);
|
|
37
|
-
const result = yield client.quota.beginCreateOrUpdateAndWait(subscriptionId, providerId, location, resourceName, createQuotaRequest);
|
|
38
|
-
console.log(result);
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* This sample demonstrates how to Create or update the quota (service limits) of a resource to the requested value.
|
|
43
|
-
Steps:
|
|
44
|
-
1. Make the Get request to get the quota information for specific resource.
|
|
45
|
-
2. To increase the quota, update the limit field in the response from Get request to new value.
|
|
46
|
-
3. Submit the JSON to the quota request API to update the quota.
|
|
47
|
-
The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.
|
|
48
|
-
*
|
|
49
|
-
* @summary Create or update the quota (service limits) of a resource to the requested value.
|
|
50
|
-
Steps:
|
|
51
|
-
1. Make the Get request to get the quota information for specific resource.
|
|
52
|
-
2. To increase the quota, update the limit field in the response from Get request to new value.
|
|
53
|
-
3. Submit the JSON to the quota request API to update the quota.
|
|
54
|
-
The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.
|
|
55
|
-
* x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestDedicated.json
|
|
56
|
-
*/
|
|
57
|
-
function quotasRequestPutForMachineLearningServicesDedicatedResource() {
|
|
58
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
-
const subscriptionId = "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3";
|
|
60
|
-
const providerId = "Microsoft.MachineLearningServices";
|
|
61
|
-
const location = "eastus";
|
|
62
|
-
const resourceName = "StandardDv2Family";
|
|
63
|
-
const createQuotaRequest = {
|
|
64
|
-
properties: {
|
|
65
|
-
name: { value: "StandardDv2Family" },
|
|
66
|
-
limit: 200,
|
|
67
|
-
resourceType: "dedicated",
|
|
68
|
-
unit: "Count",
|
|
69
|
-
},
|
|
70
|
-
};
|
|
71
|
-
const credential = new DefaultAzureCredential();
|
|
72
|
-
const client = new AzureReservationAPI(credential);
|
|
73
|
-
const result = yield client.quota.beginCreateOrUpdateAndWait(subscriptionId, providerId, location, resourceName, createQuotaRequest);
|
|
74
|
-
console.log(result);
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* This sample demonstrates how to Create or update the quota (service limits) of a resource to the requested value.
|
|
79
|
-
Steps:
|
|
80
|
-
1. Make the Get request to get the quota information for specific resource.
|
|
81
|
-
2. To increase the quota, update the limit field in the response from Get request to new value.
|
|
82
|
-
3. Submit the JSON to the quota request API to update the quota.
|
|
83
|
-
The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.
|
|
84
|
-
*
|
|
85
|
-
* @summary Create or update the quota (service limits) of a resource to the requested value.
|
|
86
|
-
Steps:
|
|
87
|
-
1. Make the Get request to get the quota information for specific resource.
|
|
88
|
-
2. To increase the quota, update the limit field in the response from Get request to new value.
|
|
89
|
-
3. Submit the JSON to the quota request API to update the quota.
|
|
90
|
-
The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.
|
|
91
|
-
* x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestLowPriority.json
|
|
92
|
-
*/
|
|
93
|
-
function quotasRequestPutForMachineLearningServicesLowPriorityResource() {
|
|
94
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
-
const subscriptionId = "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3";
|
|
96
|
-
const providerId = "Microsoft.MachineLearningServices";
|
|
97
|
-
const location = "eastus";
|
|
98
|
-
const resourceName = "TotalLowPriorityCores";
|
|
99
|
-
const createQuotaRequest = {
|
|
100
|
-
properties: {
|
|
101
|
-
name: { value: "TotalLowPriorityCores" },
|
|
102
|
-
limit: 200,
|
|
103
|
-
resourceType: "lowPriority",
|
|
104
|
-
unit: "Count",
|
|
105
|
-
},
|
|
106
|
-
};
|
|
107
|
-
const credential = new DefaultAzureCredential();
|
|
108
|
-
const client = new AzureReservationAPI(credential);
|
|
109
|
-
const result = yield client.quota.beginCreateOrUpdateAndWait(subscriptionId, providerId, location, resourceName, createQuotaRequest);
|
|
110
|
-
console.log(result);
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
function main() {
|
|
114
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
115
|
-
yield quotasRequestPutForCompute();
|
|
116
|
-
yield quotasRequestPutForMachineLearningServicesDedicatedResource();
|
|
117
|
-
yield quotasRequestPutForMachineLearningServicesLowPriorityResource();
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
main().catch(console.error);
|
|
121
|
-
//# sourceMappingURL=quotaCreateOrUpdateSample.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quotaCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/quotaCreateOrUpdateSample.ts"],"names":[],"mappings":";AAQA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;;;;;;;;;;;GAeG;AACH,SAAe,0BAA0B;;QACvC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,mBAAmB,CAAC;QACvC,MAAM,QAAQ,GAAG,QAAQ,CAAC;QAC1B,MAAM,YAAY,GAAG,oBAAoB,CAAC;QAC1C,MAAM,kBAAkB,GAA0B;YAChD,UAAU,EAAE;gBACV,IAAI,EAAE,EAAE,KAAK,EAAE,oBAAoB,EAAE;gBACrC,KAAK,EAAE,GAAG;gBACV,IAAI,EAAE,OAAO;aACd;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAC1D,cAAc,EACd,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,kBAAkB,CACnB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED;;;;;;;;;;;;;;;GAeG;AACH,SAAe,2DAA2D;;QACxE,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,mCAAmC,CAAC;QACvD,MAAM,QAAQ,GAAG,QAAQ,CAAC;QAC1B,MAAM,YAAY,GAAG,mBAAmB,CAAC;QACzC,MAAM,kBAAkB,GAA0B;YAChD,UAAU,EAAE;gBACV,IAAI,EAAE,EAAE,KAAK,EAAE,mBAAmB,EAAE;gBACpC,KAAK,EAAE,GAAG;gBACV,YAAY,EAAE,WAAW;gBACzB,IAAI,EAAE,OAAO;aACd;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAC1D,cAAc,EACd,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,kBAAkB,CACnB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED;;;;;;;;;;;;;;;GAeG;AACH,SAAe,6DAA6D;;QAC1E,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,mCAAmC,CAAC;QACvD,MAAM,QAAQ,GAAG,QAAQ,CAAC;QAC1B,MAAM,YAAY,GAAG,uBAAuB,CAAC;QAC7C,MAAM,kBAAkB,GAA0B;YAChD,UAAU,EAAE;gBACV,IAAI,EAAE,EAAE,KAAK,EAAE,uBAAuB,EAAE;gBACxC,KAAK,EAAE,GAAG;gBACV,YAAY,EAAE,aAAa;gBAC3B,IAAI,EAAE,OAAO;aACd;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAC1D,cAAc,EACd,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,kBAAkB,CACnB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,MAAM,0BAA0B,EAAE,CAAC;QACnC,MAAM,2DAA2D,EAAE,CAAC;QACpE,MAAM,6DAA6D,EAAE,CAAC;IACxE,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quotaGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/quotaGetSample.ts"],"names":[],"mappings":""}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
9
|
-
import { AzureReservationAPI } from "@azure/arm-reservations";
|
|
10
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
11
|
-
import * as dotenv from "dotenv";
|
|
12
|
-
dotenv.config();
|
|
13
|
-
/**
|
|
14
|
-
* This sample demonstrates how to Get the current quota (service limit) and usage of a resource. You can use the response from the GET operation to submit quota update request.
|
|
15
|
-
*
|
|
16
|
-
* @summary Get the current quota (service limit) and usage of a resource. You can use the response from the GET operation to submit quota update request.
|
|
17
|
-
* x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeOneSkuUsages.json
|
|
18
|
-
*/
|
|
19
|
-
function quotasRequestForCompute() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
22
|
-
const providerId = "Microsoft.Compute";
|
|
23
|
-
const location = "eastus";
|
|
24
|
-
const resourceName = "standardNDSFamily";
|
|
25
|
-
const credential = new DefaultAzureCredential();
|
|
26
|
-
const client = new AzureReservationAPI(credential);
|
|
27
|
-
const result = yield client.quota.get(subscriptionId, providerId, location, resourceName);
|
|
28
|
-
console.log(result);
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
function main() {
|
|
32
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
-
yield quotasRequestForCompute();
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
main().catch(console.error);
|
|
37
|
-
//# sourceMappingURL=quotaGetSample.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quotaGetSample.js","sourceRoot":"","sources":["../../samples-dev/quotaGetSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,uBAAuB;;QACpC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,mBAAmB,CAAC;QACvC,MAAM,QAAQ,GAAG,QAAQ,CAAC;QAC1B,MAAM,YAAY,GAAG,mBAAmB,CAAC;QACzC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,cAAc,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;QAC1F,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,MAAM,uBAAuB,EAAE,CAAC;IAClC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quotaListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/quotaListSample.ts"],"names":[],"mappings":""}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { __asyncValues, __awaiter } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
9
|
-
import { AzureReservationAPI } from "@azure/arm-reservations";
|
|
10
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
11
|
-
import * as dotenv from "dotenv";
|
|
12
|
-
dotenv.config();
|
|
13
|
-
/**
|
|
14
|
-
* This sample demonstrates how to Gets a list of current quotas (service limits) and usage for all resources. The response from the list quota operation can be leveraged to request quota updates.
|
|
15
|
-
*
|
|
16
|
-
* @summary Gets a list of current quotas (service limits) and usage for all resources. The response from the list quota operation can be leveraged to request quota updates.
|
|
17
|
-
* x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeUsages.json
|
|
18
|
-
*/
|
|
19
|
-
function quotasListUsagesForCompute() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
var _a, e_1, _b, _c;
|
|
22
|
-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
23
|
-
const providerId = "Microsoft.Compute";
|
|
24
|
-
const location = "eastus";
|
|
25
|
-
const credential = new DefaultAzureCredential();
|
|
26
|
-
const client = new AzureReservationAPI(credential);
|
|
27
|
-
const resArray = new Array();
|
|
28
|
-
try {
|
|
29
|
-
for (var _d = true, _e = __asyncValues(client.quota.list(subscriptionId, providerId, location)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
|
30
|
-
_c = _f.value;
|
|
31
|
-
_d = false;
|
|
32
|
-
const item = _c;
|
|
33
|
-
resArray.push(item);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
37
|
-
finally {
|
|
38
|
-
try {
|
|
39
|
-
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
40
|
-
}
|
|
41
|
-
finally { if (e_1) throw e_1.error; }
|
|
42
|
-
}
|
|
43
|
-
console.log(resArray);
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* This sample demonstrates how to Gets a list of current quotas (service limits) and usage for all resources. The response from the list quota operation can be leveraged to request quota updates.
|
|
48
|
-
*
|
|
49
|
-
* @summary Gets a list of current quotas (service limits) and usage for all resources. The response from the list quota operation can be leveraged to request quota updates.
|
|
50
|
-
* x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getMachineLearningServicesUsages.json
|
|
51
|
-
*/
|
|
52
|
-
function quotasListUsagesMachineLearningServices() {
|
|
53
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
-
var _a, e_2, _b, _c;
|
|
55
|
-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
56
|
-
const providerId = "Microsoft.MachineLearningServices";
|
|
57
|
-
const location = "eastus";
|
|
58
|
-
const credential = new DefaultAzureCredential();
|
|
59
|
-
const client = new AzureReservationAPI(credential);
|
|
60
|
-
const resArray = new Array();
|
|
61
|
-
try {
|
|
62
|
-
for (var _d = true, _e = __asyncValues(client.quota.list(subscriptionId, providerId, location)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
|
63
|
-
_c = _f.value;
|
|
64
|
-
_d = false;
|
|
65
|
-
const item = _c;
|
|
66
|
-
resArray.push(item);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
70
|
-
finally {
|
|
71
|
-
try {
|
|
72
|
-
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
73
|
-
}
|
|
74
|
-
finally { if (e_2) throw e_2.error; }
|
|
75
|
-
}
|
|
76
|
-
console.log(resArray);
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
function main() {
|
|
80
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
-
yield quotasListUsagesForCompute();
|
|
82
|
-
yield quotasListUsagesMachineLearningServices();
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
main().catch(console.error);
|
|
86
|
-
//# sourceMappingURL=quotaListSample.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quotaListSample.js","sourceRoot":"","sources":["../../samples-dev/quotaListSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,0BAA0B;;;QACvC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,mBAAmB,CAAC;QACvC,MAAM,QAAQ,GAAG,QAAQ,CAAC;QAC1B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAyB,eAAA,KAAA,cAAA,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAA,IAAA,sDAAE,CAAC;gBAA1D,cAAuD;gBAAvD,WAAuD;gBAArE,MAAM,IAAI,KAAA,CAAA;gBACnB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;CAAA;AAED;;;;;GAKG;AACH,SAAe,uCAAuC;;;QACpD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,mCAAmC,CAAC;QACvD,MAAM,QAAQ,GAAG,QAAQ,CAAC;QAC1B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAyB,eAAA,KAAA,cAAA,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAA,IAAA,sDAAE,CAAC;gBAA1D,cAAuD;gBAAvD,WAAuD;gBAArE,MAAM,IAAI,KAAA,CAAA;gBACnB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,MAAM,0BAA0B,EAAE,CAAC;QACnC,MAAM,uCAAuC,EAAE,CAAC;IAClD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quotaRequestStatusGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/quotaRequestStatusGetSample.ts"],"names":[],"mappings":""}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
9
|
-
import { AzureReservationAPI } from "@azure/arm-reservations";
|
|
10
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
11
|
-
import * as dotenv from "dotenv";
|
|
12
|
-
dotenv.config();
|
|
13
|
-
/**
|
|
14
|
-
* This sample demonstrates how to For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.
|
|
15
|
-
*
|
|
16
|
-
* @summary For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.
|
|
17
|
-
* x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusFailed.json
|
|
18
|
-
*/
|
|
19
|
-
function quotaRequestFailed() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
22
|
-
const providerId = "Microsoft.Compute";
|
|
23
|
-
const location = "eastus";
|
|
24
|
-
const id = "2B5C8515-37D8-4B6A-879B-CD641A2CF605";
|
|
25
|
-
const credential = new DefaultAzureCredential();
|
|
26
|
-
const client = new AzureReservationAPI(credential);
|
|
27
|
-
const result = yield client.quotaRequestStatus.get(subscriptionId, providerId, location, id);
|
|
28
|
-
console.log(result);
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* This sample demonstrates how to For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.
|
|
33
|
-
*
|
|
34
|
-
* @summary For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.
|
|
35
|
-
* x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusInProgress.json
|
|
36
|
-
*/
|
|
37
|
-
function quotaRequestInProgress() {
|
|
38
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
40
|
-
const providerId = "Microsoft.Compute";
|
|
41
|
-
const location = "eastus";
|
|
42
|
-
const id = "2B5C8515-37D8-4B6A-879B-CD641A2CF605";
|
|
43
|
-
const credential = new DefaultAzureCredential();
|
|
44
|
-
const client = new AzureReservationAPI(credential);
|
|
45
|
-
const result = yield client.quotaRequestStatus.get(subscriptionId, providerId, location, id);
|
|
46
|
-
console.log(result);
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* This sample demonstrates how to For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.
|
|
51
|
-
*
|
|
52
|
-
* @summary For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.
|
|
53
|
-
* x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusById.json
|
|
54
|
-
*/
|
|
55
|
-
function quotaRequestStatus() {
|
|
56
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
58
|
-
const providerId = "Microsoft.Compute";
|
|
59
|
-
const location = "eastus";
|
|
60
|
-
const id = "2B5C8515-37D8-4B6A-879B-CD641A2CF605";
|
|
61
|
-
const credential = new DefaultAzureCredential();
|
|
62
|
-
const client = new AzureReservationAPI(credential);
|
|
63
|
-
const result = yield client.quotaRequestStatus.get(subscriptionId, providerId, location, id);
|
|
64
|
-
console.log(result);
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
function main() {
|
|
68
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
69
|
-
yield quotaRequestFailed();
|
|
70
|
-
yield quotaRequestInProgress();
|
|
71
|
-
yield quotaRequestStatus();
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
main().catch(console.error);
|
|
75
|
-
//# sourceMappingURL=quotaRequestStatusGetSample.js.map
|