Interface ReservationOrders
public interface ReservationOrders
Resource collection API of ReservationOrders.
-
Method Summary
Modifier and TypeMethodDescriptioncalculate
(PurchaseRequest body) Calculate price for a `ReservationOrder`.com.azure.core.http.rest.Response
<CalculatePriceResponse> calculateWithResponse
(PurchaseRequest body, com.azure.core.util.Context context) Calculate price for a `ReservationOrder`.changeDirectory
(String reservationOrderId, ChangeDirectoryRequest body) Change directory of `ReservationOrder`.com.azure.core.http.rest.Response
<ChangeDirectoryResponse> changeDirectoryWithResponse
(String reservationOrderId, ChangeDirectoryRequest body, com.azure.core.util.Context context) Change directory of `ReservationOrder`.Get a specific `ReservationOrder`.com.azure.core.http.rest.Response
<ReservationOrderResponse> getWithResponse
(String reservationOrderId, String expand, com.azure.core.util.Context context) Get a specific `ReservationOrder`.com.azure.core.http.rest.PagedIterable
<ReservationOrderResponse> list()
Get all `ReservationOrder`s.com.azure.core.http.rest.PagedIterable
<ReservationOrderResponse> list
(com.azure.core.util.Context context) Get all `ReservationOrder`s.purchase
(String reservationOrderId, PurchaseRequest body) Purchase `ReservationOrder` Purchase `ReservationOrder` and create resource under the specified URI.purchase
(String reservationOrderId, PurchaseRequest body, com.azure.core.util.Context context) Purchase `ReservationOrder` Purchase `ReservationOrder` and create resource under the specified URI.
-
Method Details
-
calculateWithResponse
com.azure.core.http.rest.Response<CalculatePriceResponse> calculateWithResponse(PurchaseRequest body, com.azure.core.util.Context context) Calculate price for a `ReservationOrder`. Calculate price for placing a `ReservationOrder`.- Parameters:
body
- Information needed for calculate or purchase reservation.context
- The context to associate with this operation.- Returns:
- the response of calculate price for reservation along with
Response
. - 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.
-
calculate
Calculate price for a `ReservationOrder`. Calculate price for placing a `ReservationOrder`.- Parameters:
body
- Information needed for calculate or purchase reservation.- Returns:
- the response of calculate price for reservation.
- 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.
-
list
com.azure.core.http.rest.PagedIterable<ReservationOrderResponse> list()Get all `ReservationOrder`s. List of all the `ReservationOrder`s that the user has access to in the current tenant.- Returns:
- list of `ReservationOrder`s as paginated response with
PagedIterable
. - Throws:
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.
-
list
com.azure.core.http.rest.PagedIterable<ReservationOrderResponse> list(com.azure.core.util.Context context) Get all `ReservationOrder`s. List of all the `ReservationOrder`s that the user has access to in the current tenant.- Parameters:
context
- The context to associate with this operation.- Returns:
- list of `ReservationOrder`s as paginated response with
PagedIterable
. - 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.
-
purchase
Purchase `ReservationOrder` Purchase `ReservationOrder` and create resource under the specified URI.- Parameters:
reservationOrderId
- Order Id of the reservation.body
- Information needed for calculate or purchase reservation.- Returns:
- details of a reservation order being returned.
- 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.
-
purchase
ReservationOrderResponse purchase(String reservationOrderId, PurchaseRequest body, com.azure.core.util.Context context) Purchase `ReservationOrder` Purchase `ReservationOrder` and create resource under the specified URI.- Parameters:
reservationOrderId
- Order Id of the reservation.body
- Information needed for calculate or purchase reservation.context
- The context to associate with this operation.- Returns:
- details of a reservation order being returned.
- 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.
-
getWithResponse
com.azure.core.http.rest.Response<ReservationOrderResponse> getWithResponse(String reservationOrderId, String expand, com.azure.core.util.Context context) Get a specific `ReservationOrder`. Get the details of the `ReservationOrder`.- Parameters:
reservationOrderId
- Order Id of the reservation.expand
- May be used to expand the planInformation.context
- The context to associate with this operation.- Returns:
- the details of the `ReservationOrder` along with
Response
. - 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.
-
get
Get a specific `ReservationOrder`. Get the details of the `ReservationOrder`.- Parameters:
reservationOrderId
- Order Id of the reservation.- Returns:
- the details of the `ReservationOrder`.
- 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.
-
changeDirectoryWithResponse
com.azure.core.http.rest.Response<ChangeDirectoryResponse> changeDirectoryWithResponse(String reservationOrderId, ChangeDirectoryRequest body, com.azure.core.util.Context context) Change directory of `ReservationOrder`. Change directory (tenant) of `ReservationOrder` and all `Reservation` under it to specified tenant id.- Parameters:
reservationOrderId
- Order Id of the reservation.body
- Information needed to change directory of reservation order.context
- The context to associate with this operation.- Returns:
- change directory response along with
Response
. - 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.
-
changeDirectory
Change directory of `ReservationOrder`. Change directory (tenant) of `ReservationOrder` and all `Reservation` under it to specified tenant id.- Parameters:
reservationOrderId
- Order Id of the reservation.body
- Information needed to change directory of reservation order.- Returns:
- change directory response.
- 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.
-