Interface Exchanges
public interface Exchanges
Resource collection API of Exchanges.
-
Method Summary
Modifier and TypeMethodDescriptionpost
(ExchangeRequest body) Exchange Reservation(s) Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.post
(ExchangeRequest body, com.azure.core.util.Context context) Exchange Reservation(s) Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.
-
Method Details
-
post
Exchange Reservation(s) Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.- Parameters:
body
- Request containing the refunds and purchases that need to be executed.- Returns:
- exchange operation result.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
post
Exchange Reservation(s) Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.- Parameters:
body
- Request containing the refunds and purchases that need to be executed.context
- The context to associate with this operation.- Returns:
- exchange operation result.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-