Reservation interface

Interface representing a Reservation.

Methods

archive(string, string, ReservationArchiveOptionalParams)

Archiving a Reservation moves it to Archived state.

beginAvailableScopes(string, string, AvailableScopeRequest, ReservationAvailableScopesOptionalParams)

Check whether the scopes from request is valid for Reservation.

beginAvailableScopesAndWait(string, string, AvailableScopeRequest, ReservationAvailableScopesOptionalParams)

Check whether the scopes from request is valid for Reservation.

beginMerge(string, MergeRequest, ReservationMergeOptionalParams)

Merge the specified Reservations into a new Reservation. The two Reservations being merged must have same properties.

beginMergeAndWait(string, MergeRequest, ReservationMergeOptionalParams)

Merge the specified Reservations into a new Reservation. The two Reservations being merged must have same properties.

beginSplit(string, SplitRequest, ReservationSplitOptionalParams)

Split a Reservation into two Reservations with specified quantity distribution.

beginSplitAndWait(string, SplitRequest, ReservationSplitOptionalParams)

Split a Reservation into two Reservations with specified quantity distribution.

beginUpdate(string, string, Patch, ReservationUpdateOptionalParams)

Updates the applied scopes of the Reservation.

beginUpdateAndWait(string, string, Patch, ReservationUpdateOptionalParams)

Updates the applied scopes of the Reservation.

get(string, string, ReservationGetOptionalParams)

Get specific Reservation details.

list(string, ReservationListOptionalParams)

List Reservations within a single ReservationOrder.

listAll(ReservationListAllOptionalParams)

List the reservations and the roll up counts of reservations group by provisioning states that the user has access to in the current tenant.

listRevisions(string, string, ReservationListRevisionsOptionalParams)

List of all the revisions for the Reservation.

unarchive(string, string, ReservationUnarchiveOptionalParams)

Restores a Reservation to the state it was before archiving.

Method Details

archive(string, string, ReservationArchiveOptionalParams)

Archiving a Reservation moves it to Archived state.

function archive(reservationOrderId: string, reservationId: string, options?: ReservationArchiveOptionalParams): Promise<void>

Parameters

reservationOrderId

string

Order Id of the reservation

reservationId

string

Id of the reservation item

options
ReservationArchiveOptionalParams

The options parameters.

Returns

Promise<void>

beginAvailableScopes(string, string, AvailableScopeRequest, ReservationAvailableScopesOptionalParams)

Check whether the scopes from request is valid for Reservation.

function beginAvailableScopes(reservationOrderId: string, reservationId: string, body: AvailableScopeRequest, options?: ReservationAvailableScopesOptionalParams): Promise<SimplePollerLike<OperationState<AvailableScopeProperties>, AvailableScopeProperties>>

Parameters

reservationOrderId

string

Order Id of the reservation

reservationId

string

Id of the reservation item

body
AvailableScopeRequest

Scopes to be checked for eligibility.

options
ReservationAvailableScopesOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<AvailableScopeProperties>, AvailableScopeProperties>>

beginAvailableScopesAndWait(string, string, AvailableScopeRequest, ReservationAvailableScopesOptionalParams)

Check whether the scopes from request is valid for Reservation.

function beginAvailableScopesAndWait(reservationOrderId: string, reservationId: string, body: AvailableScopeRequest, options?: ReservationAvailableScopesOptionalParams): Promise<AvailableScopeProperties>

Parameters

reservationOrderId

string

Order Id of the reservation

reservationId

string

Id of the reservation item

body
AvailableScopeRequest

Scopes to be checked for eligibility.

options
ReservationAvailableScopesOptionalParams

The options parameters.

Returns

beginMerge(string, MergeRequest, ReservationMergeOptionalParams)

Merge the specified Reservations into a new Reservation. The two Reservations being merged must have same properties.

function beginMerge(reservationOrderId: string, body: MergeRequest, options?: ReservationMergeOptionalParams): Promise<SimplePollerLike<OperationState<ReservationMergeResponse>, ReservationMergeResponse>>

Parameters

reservationOrderId

string

Order Id of the reservation

body
MergeRequest

Information needed for commercial request for a reservation

options
ReservationMergeOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<ReservationMergeResponse>, ReservationMergeResponse>>

beginMergeAndWait(string, MergeRequest, ReservationMergeOptionalParams)

Merge the specified Reservations into a new Reservation. The two Reservations being merged must have same properties.

function beginMergeAndWait(reservationOrderId: string, body: MergeRequest, options?: ReservationMergeOptionalParams): Promise<ReservationMergeResponse>

Parameters

reservationOrderId

string

Order Id of the reservation

body
MergeRequest

Information needed for commercial request for a reservation

options
ReservationMergeOptionalParams

The options parameters.

Returns

beginSplit(string, SplitRequest, ReservationSplitOptionalParams)

Split a Reservation into two Reservations with specified quantity distribution.

function beginSplit(reservationOrderId: string, body: SplitRequest, options?: ReservationSplitOptionalParams): Promise<SimplePollerLike<OperationState<ReservationSplitResponse>, ReservationSplitResponse>>

Parameters

reservationOrderId

string

Order Id of the reservation

body
SplitRequest

Information needed to Split a reservation item

options
ReservationSplitOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<ReservationSplitResponse>, ReservationSplitResponse>>

beginSplitAndWait(string, SplitRequest, ReservationSplitOptionalParams)

Split a Reservation into two Reservations with specified quantity distribution.

function beginSplitAndWait(reservationOrderId: string, body: SplitRequest, options?: ReservationSplitOptionalParams): Promise<ReservationSplitResponse>

Parameters

reservationOrderId

string

Order Id of the reservation

body
SplitRequest

Information needed to Split a reservation item

options
ReservationSplitOptionalParams

The options parameters.

Returns

beginUpdate(string, string, Patch, ReservationUpdateOptionalParams)

Updates the applied scopes of the Reservation.

function beginUpdate(reservationOrderId: string, reservationId: string, parameters: Patch, options?: ReservationUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ReservationResponse>, ReservationResponse>>

Parameters

reservationOrderId

string

Order Id of the reservation

reservationId

string

Id of the reservation item

parameters
Patch

Information needed to patch a reservation item

options
ReservationUpdateOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<ReservationResponse>, ReservationResponse>>

beginUpdateAndWait(string, string, Patch, ReservationUpdateOptionalParams)

Updates the applied scopes of the Reservation.

function beginUpdateAndWait(reservationOrderId: string, reservationId: string, parameters: Patch, options?: ReservationUpdateOptionalParams): Promise<ReservationResponse>

Parameters

reservationOrderId

string

Order Id of the reservation

reservationId

string

Id of the reservation item

parameters
Patch

Information needed to patch a reservation item

options
ReservationUpdateOptionalParams

The options parameters.

Returns

get(string, string, ReservationGetOptionalParams)

Get specific Reservation details.

function get(reservationOrderId: string, reservationId: string, options?: ReservationGetOptionalParams): Promise<ReservationResponse>

Parameters

reservationOrderId

string

Order Id of the reservation

reservationId

string

Id of the reservation item

options
ReservationGetOptionalParams

The options parameters.

Returns

list(string, ReservationListOptionalParams)

List Reservations within a single ReservationOrder.

function list(reservationOrderId: string, options?: ReservationListOptionalParams): PagedAsyncIterableIterator<ReservationResponse, ReservationResponse[], PageSettings>

Parameters

reservationOrderId

string

Order Id of the reservation

options
ReservationListOptionalParams

The options parameters.

Returns

listAll(ReservationListAllOptionalParams)

List the reservations and the roll up counts of reservations group by provisioning states that the user has access to in the current tenant.

function listAll(options?: ReservationListAllOptionalParams): PagedAsyncIterableIterator<ReservationResponse, ReservationResponse[], PageSettings>

Parameters

options
ReservationListAllOptionalParams

The options parameters.

Returns

listRevisions(string, string, ReservationListRevisionsOptionalParams)

List of all the revisions for the Reservation.

function listRevisions(reservationOrderId: string, reservationId: string, options?: ReservationListRevisionsOptionalParams): PagedAsyncIterableIterator<ReservationResponse, ReservationResponse[], PageSettings>

Parameters

reservationOrderId

string

Order Id of the reservation

reservationId

string

Id of the reservation item

options
ReservationListRevisionsOptionalParams

The options parameters.

Returns

unarchive(string, string, ReservationUnarchiveOptionalParams)

Restores a Reservation to the state it was before archiving.

function unarchive(reservationOrderId: string, reservationId: string, options?: ReservationUnarchiveOptionalParams): Promise<void>

Parameters

reservationOrderId

string

Order Id of the reservation

reservationId

string

Id of the reservation item

options
ReservationUnarchiveOptionalParams

The options parameters.

Returns

Promise<void>