ReservationOrder interface
Interface representing a ReservationOrder.
Methods
begin |
Purchase |
begin |
Purchase |
calculate(Purchase |
Calculate price for placing a |
change |
Change directory (tenant) of |
get(string, Reservation |
Get the details of the |
list(Reservation |
List of all the |
Method Details
beginPurchase(string, PurchaseRequest, ReservationOrderPurchaseOptionalParams)
Purchase ReservationOrder
and create resource under the specified URI.
function beginPurchase(reservationOrderId: string, body: PurchaseRequest, options?: ReservationOrderPurchaseOptionalParams): Promise<SimplePollerLike<OperationState<ReservationOrderResponse>, ReservationOrderResponse>>
Parameters
- reservationOrderId
-
string
Order Id of the reservation
- body
- PurchaseRequest
Information needed for calculate or purchase reservation
The options parameters.
Returns
Promise<@azure/core-lro.SimplePollerLike<OperationState<ReservationOrderResponse>, ReservationOrderResponse>>
beginPurchaseAndWait(string, PurchaseRequest, ReservationOrderPurchaseOptionalParams)
Purchase ReservationOrder
and create resource under the specified URI.
function beginPurchaseAndWait(reservationOrderId: string, body: PurchaseRequest, options?: ReservationOrderPurchaseOptionalParams): Promise<ReservationOrderResponse>
Parameters
- reservationOrderId
-
string
Order Id of the reservation
- body
- PurchaseRequest
Information needed for calculate or purchase reservation
The options parameters.
Returns
Promise<ReservationOrderResponse>
calculate(PurchaseRequest, ReservationOrderCalculateOptionalParams)
Calculate price for placing a ReservationOrder
.
function calculate(body: PurchaseRequest, options?: ReservationOrderCalculateOptionalParams): Promise<CalculatePriceResponse>
Parameters
- body
- PurchaseRequest
Information needed for calculate or purchase reservation
The options parameters.
Returns
Promise<CalculatePriceResponse>
changeDirectory(string, ChangeDirectoryRequest, ReservationOrderChangeDirectoryOptionalParams)
Change directory (tenant) of ReservationOrder
and all Reservation
under it to specified tenant
id
function changeDirectory(reservationOrderId: string, body: ChangeDirectoryRequest, options?: ReservationOrderChangeDirectoryOptionalParams): Promise<ChangeDirectoryResponse>
Parameters
- reservationOrderId
-
string
Order Id of the reservation
Information needed to change directory of reservation order
The options parameters.
Returns
Promise<ChangeDirectoryResponse>
get(string, ReservationOrderGetOptionalParams)
Get the details of the ReservationOrder
.
function get(reservationOrderId: string, options?: ReservationOrderGetOptionalParams): Promise<ReservationOrderResponse>
Parameters
- reservationOrderId
-
string
Order Id of the reservation
The options parameters.
Returns
Promise<ReservationOrderResponse>
list(ReservationOrderListOptionalParams)
List of all the ReservationOrder
s that the user has access to in the current tenant.
function list(options?: ReservationOrderListOptionalParams): PagedAsyncIterableIterator<ReservationOrderResponse, ReservationOrderResponse[], PageSettings>
Parameters
The options parameters.