Interface ReservationOrdersClient


public interface ReservationOrdersClient
An instance of this class provides access to all the operations defined in ReservationOrdersClient.
  • Method Details

    • calculateWithResponse

      com.azure.core.http.rest.Response<CalculatePriceResponseInner> 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<ReservationOrderResponseInner> 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<ReservationOrderResponseInner> 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.
    • beginPurchase

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ReservationOrderResponseInner>,ReservationOrderResponseInner> beginPurchase(String reservationOrderId, PurchaseRequest body)
      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:
      the SyncPoller for polling of 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.
    • beginPurchase

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ReservationOrderResponseInner>,ReservationOrderResponseInner> beginPurchase(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:
      the SyncPoller for polling of 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

      ReservationOrderResponseInner purchase(String reservationOrderId, PurchaseRequest body)
      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

      ReservationOrderResponseInner 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<ReservationOrderResponseInner> 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

      ReservationOrderResponseInner get(String reservationOrderId)
      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<ChangeDirectoryResponseInner> 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

      ChangeDirectoryResponseInner changeDirectory(String reservationOrderId, ChangeDirectoryRequest body)
      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.