@azure/arm-reservations 8.0.1-alpha.20230321.1 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -8
- package/dist/index.js +133 -91
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/src/azureReservationAPI.js +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +7 -3
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +14 -0
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/operations/calculateExchange.d.ts +2 -2
- package/dist-esm/src/operations/calculateExchange.d.ts.map +1 -1
- package/dist-esm/src/operations/calculateExchange.js +11 -7
- package/dist-esm/src/operations/calculateExchange.js.map +1 -1
- package/dist-esm/src/operations/exchange.d.ts +2 -2
- package/dist-esm/src/operations/exchange.d.ts.map +1 -1
- package/dist-esm/src/operations/exchange.js +11 -7
- package/dist-esm/src/operations/exchange.js.map +1 -1
- package/dist-esm/src/operations/quota.d.ts +3 -3
- package/dist-esm/src/operations/quota.d.ts.map +1 -1
- package/dist-esm/src/operations/quota.js +34 -26
- package/dist-esm/src/operations/quota.js.map +1 -1
- package/dist-esm/src/operations/reservation.d.ts +5 -5
- package/dist-esm/src/operations/reservation.d.ts.map +1 -1
- package/dist-esm/src/operations/reservation.js +37 -21
- package/dist-esm/src/operations/reservation.js.map +1 -1
- package/dist-esm/src/operations/reservationOrder.d.ts +2 -2
- package/dist-esm/src/operations/reservationOrder.d.ts.map +1 -1
- package/dist-esm/src/operations/reservationOrder.js +11 -7
- package/dist-esm/src/operations/reservationOrder.js.map +1 -1
- package/dist-esm/src/operations/return.d.ts +2 -2
- package/dist-esm/src/operations/return.d.ts.map +1 -1
- package/dist-esm/src/operations/return.js +15 -15
- package/dist-esm/src/operations/return.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/calculateExchange.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/calculateExchange.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/exchange.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/exchange.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/quota.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/quota.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/reservation.d.ts +5 -5
- package/dist-esm/src/operationsInterfaces/reservation.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/reservationOrder.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/reservationOrder.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/return.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/return.d.ts.map +1 -1
- package/dist-esm/test/reservations_examples.spec.js +1 -1
- package/package.json +6 -6
- package/review/arm-reservations.api.md +15 -13
- package/src/azureReservationAPI.ts +1 -1
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +7 -3
- package/src/models/mappers.ts +14 -0
- package/src/operations/calculateExchange.ts +20 -13
- package/src/operations/exchange.ts +19 -12
- package/src/operations/quota.ts +33 -23
- package/src/operations/reservation.ts +61 -45
- package/src/operations/reservationOrder.ts +20 -13
- package/src/operations/return.ts +23 -20
- package/src/operationsInterfaces/calculateExchange.ts +3 -3
- package/src/operationsInterfaces/exchange.ts +2 -2
- package/src/operationsInterfaces/quota.ts +4 -4
- package/src/operationsInterfaces/reservation.ts +9 -9
- package/src/operationsInterfaces/reservationOrder.ts +3 -3
- package/src/operationsInterfaces/return.ts +2 -2
- package/types/arm-reservations.d.ts +19 -15
package/src/operations/return.ts
CHANGED
|
@@ -11,8 +11,12 @@ import * as coreClient from "@azure/core-client";
|
|
|
11
11
|
import * as Mappers from "../models/mappers";
|
|
12
12
|
import * as Parameters from "../models/parameters";
|
|
13
13
|
import { AzureReservationAPI } from "../azureReservationAPI";
|
|
14
|
-
import {
|
|
15
|
-
|
|
14
|
+
import {
|
|
15
|
+
SimplePollerLike,
|
|
16
|
+
OperationState,
|
|
17
|
+
createHttpPoller
|
|
18
|
+
} from "@azure/core-lro";
|
|
19
|
+
import { createLroSpec } from "../lroImpl";
|
|
16
20
|
import {
|
|
17
21
|
RefundRequest,
|
|
18
22
|
ReturnPostOptionalParams,
|
|
@@ -42,7 +46,7 @@ export class ReturnImpl implements Return {
|
|
|
42
46
|
body: RefundRequest,
|
|
43
47
|
options?: ReturnPostOptionalParams
|
|
44
48
|
): Promise<
|
|
45
|
-
|
|
49
|
+
SimplePollerLike<OperationState<ReturnPostResponse>, ReturnPostResponse>
|
|
46
50
|
> {
|
|
47
51
|
const directSendOperation = async (
|
|
48
52
|
args: coreClient.OperationArguments,
|
|
@@ -50,7 +54,7 @@ export class ReturnImpl implements Return {
|
|
|
50
54
|
): Promise<ReturnPostResponse> => {
|
|
51
55
|
return this.client.sendOperationRequest(args, spec);
|
|
52
56
|
};
|
|
53
|
-
const
|
|
57
|
+
const sendOperationFn = async (
|
|
54
58
|
args: coreClient.OperationArguments,
|
|
55
59
|
spec: coreClient.OperationSpec
|
|
56
60
|
) => {
|
|
@@ -83,15 +87,18 @@ export class ReturnImpl implements Return {
|
|
|
83
87
|
};
|
|
84
88
|
};
|
|
85
89
|
|
|
86
|
-
const lro =
|
|
87
|
-
|
|
88
|
-
{ reservationOrderId, body, options },
|
|
89
|
-
postOperationSpec
|
|
90
|
-
);
|
|
91
|
-
const poller =
|
|
92
|
-
|
|
90
|
+
const lro = createLroSpec({
|
|
91
|
+
sendOperationFn,
|
|
92
|
+
args: { reservationOrderId, body, options },
|
|
93
|
+
spec: postOperationSpec
|
|
94
|
+
});
|
|
95
|
+
const poller = await createHttpPoller<
|
|
96
|
+
ReturnPostResponse,
|
|
97
|
+
OperationState<ReturnPostResponse>
|
|
98
|
+
>(lro, {
|
|
99
|
+
restoreFrom: options?.resumeFrom,
|
|
93
100
|
intervalInMs: options?.updateIntervalInMs,
|
|
94
|
-
|
|
101
|
+
resourceLocationConfig: "location"
|
|
95
102
|
});
|
|
96
103
|
await poller.poll();
|
|
97
104
|
return poller;
|
|
@@ -121,20 +128,16 @@ const postOperationSpec: coreClient.OperationSpec = {
|
|
|
121
128
|
httpMethod: "POST",
|
|
122
129
|
responses: {
|
|
123
130
|
200: {
|
|
124
|
-
bodyMapper: Mappers.
|
|
125
|
-
headersMapper: Mappers.ReturnPostHeaders
|
|
131
|
+
bodyMapper: Mappers.ReservationOrderResponse
|
|
126
132
|
},
|
|
127
133
|
201: {
|
|
128
|
-
bodyMapper: Mappers.
|
|
129
|
-
headersMapper: Mappers.ReturnPostHeaders
|
|
134
|
+
bodyMapper: Mappers.ReservationOrderResponse
|
|
130
135
|
},
|
|
131
136
|
202: {
|
|
132
|
-
bodyMapper: Mappers.
|
|
133
|
-
headersMapper: Mappers.ReturnPostHeaders
|
|
137
|
+
bodyMapper: Mappers.ReservationOrderResponse
|
|
134
138
|
},
|
|
135
139
|
204: {
|
|
136
|
-
bodyMapper: Mappers.
|
|
137
|
-
headersMapper: Mappers.ReturnPostHeaders
|
|
140
|
+
bodyMapper: Mappers.ReservationOrderResponse
|
|
138
141
|
},
|
|
139
142
|
default: {
|
|
140
143
|
bodyMapper: Mappers.ErrorModel
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import {
|
|
9
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
10
10
|
import {
|
|
11
11
|
CalculateExchangeRequest,
|
|
12
12
|
CalculateExchangePostOptionalParams,
|
|
@@ -25,8 +25,8 @@ export interface CalculateExchange {
|
|
|
25
25
|
body: CalculateExchangeRequest,
|
|
26
26
|
options?: CalculateExchangePostOptionalParams
|
|
27
27
|
): Promise<
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
SimplePollerLike<
|
|
29
|
+
OperationState<CalculateExchangePostResponse>,
|
|
30
30
|
CalculateExchangePostResponse
|
|
31
31
|
>
|
|
32
32
|
>;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import {
|
|
9
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
10
10
|
import {
|
|
11
11
|
ExchangeRequest,
|
|
12
12
|
ExchangePostOptionalParams,
|
|
@@ -25,7 +25,7 @@ export interface Exchange {
|
|
|
25
25
|
body: ExchangeRequest,
|
|
26
26
|
options?: ExchangePostOptionalParams
|
|
27
27
|
): Promise<
|
|
28
|
-
|
|
28
|
+
SimplePollerLike<OperationState<ExchangePostResponse>, ExchangePostResponse>
|
|
29
29
|
>;
|
|
30
30
|
/**
|
|
31
31
|
* Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import {
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
11
|
import {
|
|
12
12
|
CurrentQuotaLimitBase,
|
|
13
13
|
QuotaListOptionalParams,
|
|
@@ -77,8 +77,8 @@ export interface Quota {
|
|
|
77
77
|
createQuotaRequest: CurrentQuotaLimitBase,
|
|
78
78
|
options?: QuotaCreateOrUpdateOptionalParams
|
|
79
79
|
): Promise<
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
SimplePollerLike<
|
|
81
|
+
OperationState<QuotaCreateOrUpdateResponse>,
|
|
82
82
|
QuotaCreateOrUpdateResponse
|
|
83
83
|
>
|
|
84
84
|
>;
|
|
@@ -129,7 +129,7 @@ export interface Quota {
|
|
|
129
129
|
createQuotaRequest: CurrentQuotaLimitBase,
|
|
130
130
|
options?: QuotaUpdateOptionalParams
|
|
131
131
|
): Promise<
|
|
132
|
-
|
|
132
|
+
SimplePollerLike<OperationState<QuotaUpdateResponse>, QuotaUpdateResponse>
|
|
133
133
|
>;
|
|
134
134
|
/**
|
|
135
135
|
* Update the quota (service limits) of this resource to the requested value.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import {
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
11
|
import {
|
|
12
12
|
ReservationResponse,
|
|
13
13
|
ReservationListOptionalParams,
|
|
@@ -76,8 +76,8 @@ export interface Reservation {
|
|
|
76
76
|
body: AvailableScopeRequest,
|
|
77
77
|
options?: ReservationAvailableScopesOptionalParams
|
|
78
78
|
): Promise<
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
SimplePollerLike<
|
|
80
|
+
OperationState<ReservationAvailableScopesResponse>,
|
|
81
81
|
ReservationAvailableScopesResponse
|
|
82
82
|
>
|
|
83
83
|
>;
|
|
@@ -106,8 +106,8 @@ export interface Reservation {
|
|
|
106
106
|
body: SplitRequest,
|
|
107
107
|
options?: ReservationSplitOptionalParams
|
|
108
108
|
): Promise<
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
SimplePollerLike<
|
|
110
|
+
OperationState<ReservationSplitResponse>,
|
|
111
111
|
ReservationSplitResponse
|
|
112
112
|
>
|
|
113
113
|
>;
|
|
@@ -134,8 +134,8 @@ export interface Reservation {
|
|
|
134
134
|
body: MergeRequest,
|
|
135
135
|
options?: ReservationMergeOptionalParams
|
|
136
136
|
): Promise<
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
SimplePollerLike<
|
|
138
|
+
OperationState<ReservationMergeResponse>,
|
|
139
139
|
ReservationMergeResponse
|
|
140
140
|
>
|
|
141
141
|
>;
|
|
@@ -175,8 +175,8 @@ export interface Reservation {
|
|
|
175
175
|
parameters: Patch,
|
|
176
176
|
options?: ReservationUpdateOptionalParams
|
|
177
177
|
): Promise<
|
|
178
|
-
|
|
179
|
-
|
|
178
|
+
SimplePollerLike<
|
|
179
|
+
OperationState<ReservationUpdateResponse>,
|
|
180
180
|
ReservationUpdateResponse
|
|
181
181
|
>
|
|
182
182
|
>;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import {
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
11
|
import {
|
|
12
12
|
ReservationOrderResponse,
|
|
13
13
|
ReservationOrderListOptionalParams,
|
|
@@ -53,8 +53,8 @@ export interface ReservationOrder {
|
|
|
53
53
|
body: PurchaseRequest,
|
|
54
54
|
options?: ReservationOrderPurchaseOptionalParams
|
|
55
55
|
): Promise<
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
SimplePollerLike<
|
|
57
|
+
OperationState<ReservationOrderPurchaseResponse>,
|
|
58
58
|
ReservationOrderPurchaseResponse
|
|
59
59
|
>
|
|
60
60
|
>;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import {
|
|
9
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
10
10
|
import {
|
|
11
11
|
RefundRequest,
|
|
12
12
|
ReturnPostOptionalParams,
|
|
@@ -26,7 +26,7 @@ export interface Return {
|
|
|
26
26
|
body: RefundRequest,
|
|
27
27
|
options?: ReturnPostOptionalParams
|
|
28
28
|
): Promise<
|
|
29
|
-
|
|
29
|
+
SimplePollerLike<OperationState<ReturnPostResponse>, ReturnPostResponse>
|
|
30
30
|
>;
|
|
31
31
|
/**
|
|
32
32
|
* Return a reservation and get refund information.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as coreAuth from '@azure/core-auth';
|
|
2
2
|
import * as coreClient from '@azure/core-client';
|
|
3
|
+
import { OperationState } from '@azure/core-lro';
|
|
3
4
|
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
4
|
-
import {
|
|
5
|
-
import { PollOperationState } from '@azure/core-lro';
|
|
5
|
+
import { SimplePollerLike } from '@azure/core-lro';
|
|
6
6
|
|
|
7
7
|
/** Paginated list of applied reservations */
|
|
8
8
|
export declare interface AppliedReservationList {
|
|
@@ -156,7 +156,7 @@ export declare interface CalculateExchange {
|
|
|
156
156
|
* @param body Request containing purchases and refunds that need to be executed.
|
|
157
157
|
* @param options The options parameters.
|
|
158
158
|
*/
|
|
159
|
-
beginPost(body: CalculateExchangeRequest, options?: CalculateExchangePostOptionalParams): Promise<
|
|
159
|
+
beginPost(body: CalculateExchangeRequest, options?: CalculateExchangePostOptionalParams): Promise<SimplePollerLike<OperationState<CalculateExchangePostResponse>, CalculateExchangePostResponse>>;
|
|
160
160
|
/**
|
|
161
161
|
* Calculates price for exchanging `Reservations` if there are no policy errors.
|
|
162
162
|
*
|
|
@@ -388,6 +388,10 @@ export declare interface Catalog {
|
|
|
388
388
|
export declare interface CatalogMsrp {
|
|
389
389
|
/** Amount in pricing currency. Tax not included. */
|
|
390
390
|
p1Y?: Price;
|
|
391
|
+
/** Amount in pricing currency. Tax not included. */
|
|
392
|
+
p3Y?: Price;
|
|
393
|
+
/** Amount in pricing currency. Tax not included. */
|
|
394
|
+
p5Y?: Price;
|
|
391
395
|
}
|
|
392
396
|
|
|
393
397
|
/** The list of catalogs and pagination information. */
|
|
@@ -644,7 +648,7 @@ export declare interface Exchange {
|
|
|
644
648
|
* @param body Request containing the refunds and purchases that need to be executed.
|
|
645
649
|
* @param options The options parameters.
|
|
646
650
|
*/
|
|
647
|
-
beginPost(body: ExchangeRequest, options?: ExchangePostOptionalParams): Promise<
|
|
651
|
+
beginPost(body: ExchangeRequest, options?: ExchangePostOptionalParams): Promise<SimplePollerLike<OperationState<ExchangePostResponse>, ExchangePostResponse>>;
|
|
648
652
|
/**
|
|
649
653
|
* Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.
|
|
650
654
|
*
|
|
@@ -1408,7 +1412,7 @@ export declare type OperationStatus = string;
|
|
|
1408
1412
|
export declare interface Patch {
|
|
1409
1413
|
/** Type of the Applied Scope. */
|
|
1410
1414
|
appliedScopeType?: AppliedScopeType;
|
|
1411
|
-
/** List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared. */
|
|
1415
|
+
/** List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared. This property will be deprecated and replaced by appliedScopeProperties instead for Single AppliedScopeType. */
|
|
1412
1416
|
appliedScopes?: string[];
|
|
1413
1417
|
/** Properties specific to applied scope type. Not required if not applicable. Required and need to provide tenantId and managementGroupId if AppliedScopeType is ManagementGroup */
|
|
1414
1418
|
appliedScopeProperties?: AppliedScopeProperties;
|
|
@@ -1509,7 +1513,7 @@ export declare interface PurchaseRequest {
|
|
|
1509
1513
|
displayName?: string;
|
|
1510
1514
|
/** Type of the Applied Scope. */
|
|
1511
1515
|
appliedScopeType?: AppliedScopeType;
|
|
1512
|
-
/** List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared. */
|
|
1516
|
+
/** List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared. This property will be deprecated and replaced by appliedScopeProperties instead for Single AppliedScopeType. */
|
|
1513
1517
|
appliedScopes?: string[];
|
|
1514
1518
|
/** Properties specific to applied scope type. Not required if not applicable. Required and need to provide tenantId and managementGroupId if AppliedScopeType is ManagementGroup */
|
|
1515
1519
|
appliedScopeProperties?: AppliedScopeProperties;
|
|
@@ -1565,7 +1569,7 @@ export declare interface Quota {
|
|
|
1565
1569
|
* @param createQuotaRequest Quota requests payload.
|
|
1566
1570
|
* @param options The options parameters.
|
|
1567
1571
|
*/
|
|
1568
|
-
beginCreateOrUpdate(subscriptionId: string, providerId: string, location: string, resourceName: string, createQuotaRequest: CurrentQuotaLimitBase, options?: QuotaCreateOrUpdateOptionalParams): Promise<
|
|
1572
|
+
beginCreateOrUpdate(subscriptionId: string, providerId: string, location: string, resourceName: string, createQuotaRequest: CurrentQuotaLimitBase, options?: QuotaCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<QuotaCreateOrUpdateResponse>, QuotaCreateOrUpdateResponse>>;
|
|
1569
1573
|
/**
|
|
1570
1574
|
* Create or update the quota (service limits) of a resource to the requested value.
|
|
1571
1575
|
* Steps:
|
|
@@ -1598,7 +1602,7 @@ export declare interface Quota {
|
|
|
1598
1602
|
* @param createQuotaRequest Payload for the quota request.
|
|
1599
1603
|
* @param options The options parameters.
|
|
1600
1604
|
*/
|
|
1601
|
-
beginUpdate(subscriptionId: string, providerId: string, location: string, resourceName: string, createQuotaRequest: CurrentQuotaLimitBase, options?: QuotaUpdateOptionalParams): Promise<
|
|
1605
|
+
beginUpdate(subscriptionId: string, providerId: string, location: string, resourceName: string, createQuotaRequest: CurrentQuotaLimitBase, options?: QuotaUpdateOptionalParams): Promise<SimplePollerLike<OperationState<QuotaUpdateResponse>, QuotaUpdateResponse>>;
|
|
1602
1606
|
/**
|
|
1603
1607
|
* Update the quota (service limits) of this resource to the requested value.
|
|
1604
1608
|
* • To get the quota information for specific resource, send a GET request.
|
|
@@ -2080,7 +2084,7 @@ export declare interface Reservation {
|
|
|
2080
2084
|
* @param body Scopes to be checked for eligibility.
|
|
2081
2085
|
* @param options The options parameters.
|
|
2082
2086
|
*/
|
|
2083
|
-
beginAvailableScopes(reservationOrderId: string, reservationId: string, body: AvailableScopeRequest, options?: ReservationAvailableScopesOptionalParams): Promise<
|
|
2087
|
+
beginAvailableScopes(reservationOrderId: string, reservationId: string, body: AvailableScopeRequest, options?: ReservationAvailableScopesOptionalParams): Promise<SimplePollerLike<OperationState<ReservationAvailableScopesResponse>, ReservationAvailableScopesResponse>>;
|
|
2084
2088
|
/**
|
|
2085
2089
|
* Check whether the scopes from request is valid for `Reservation`.
|
|
2086
2090
|
*
|
|
@@ -2096,7 +2100,7 @@ export declare interface Reservation {
|
|
|
2096
2100
|
* @param body Information needed to Split a reservation item
|
|
2097
2101
|
* @param options The options parameters.
|
|
2098
2102
|
*/
|
|
2099
|
-
beginSplit(reservationOrderId: string, body: SplitRequest, options?: ReservationSplitOptionalParams): Promise<
|
|
2103
|
+
beginSplit(reservationOrderId: string, body: SplitRequest, options?: ReservationSplitOptionalParams): Promise<SimplePollerLike<OperationState<ReservationSplitResponse>, ReservationSplitResponse>>;
|
|
2100
2104
|
/**
|
|
2101
2105
|
* Split a `Reservation` into two `Reservation`s with specified quantity distribution.
|
|
2102
2106
|
* @param reservationOrderId Order Id of the reservation
|
|
@@ -2111,7 +2115,7 @@ export declare interface Reservation {
|
|
|
2111
2115
|
* @param body Information needed for commercial request for a reservation
|
|
2112
2116
|
* @param options The options parameters.
|
|
2113
2117
|
*/
|
|
2114
|
-
beginMerge(reservationOrderId: string, body: MergeRequest, options?: ReservationMergeOptionalParams): Promise<
|
|
2118
|
+
beginMerge(reservationOrderId: string, body: MergeRequest, options?: ReservationMergeOptionalParams): Promise<SimplePollerLike<OperationState<ReservationMergeResponse>, ReservationMergeResponse>>;
|
|
2115
2119
|
/**
|
|
2116
2120
|
* Merge the specified `Reservation`s into a new `Reservation`. The two `Reservation`s being merged
|
|
2117
2121
|
* must have same properties.
|
|
@@ -2134,7 +2138,7 @@ export declare interface Reservation {
|
|
|
2134
2138
|
* @param parameters Information needed to patch a reservation item
|
|
2135
2139
|
* @param options The options parameters.
|
|
2136
2140
|
*/
|
|
2137
|
-
beginUpdate(reservationOrderId: string, reservationId: string, parameters: Patch, options?: ReservationUpdateOptionalParams): Promise<
|
|
2141
|
+
beginUpdate(reservationOrderId: string, reservationId: string, parameters: Patch, options?: ReservationUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ReservationUpdateResponse>, ReservationUpdateResponse>>;
|
|
2138
2142
|
/**
|
|
2139
2143
|
* Updates the applied scopes of the `Reservation`.
|
|
2140
2144
|
* @param reservationOrderId Order Id of the reservation
|
|
@@ -2301,7 +2305,7 @@ export declare interface ReservationOrder {
|
|
|
2301
2305
|
* @param body Information needed for calculate or purchase reservation
|
|
2302
2306
|
* @param options The options parameters.
|
|
2303
2307
|
*/
|
|
2304
|
-
beginPurchase(reservationOrderId: string, body: PurchaseRequest, options?: ReservationOrderPurchaseOptionalParams): Promise<
|
|
2308
|
+
beginPurchase(reservationOrderId: string, body: PurchaseRequest, options?: ReservationOrderPurchaseOptionalParams): Promise<SimplePollerLike<OperationState<ReservationOrderPurchaseResponse>, ReservationOrderPurchaseResponse>>;
|
|
2305
2309
|
/**
|
|
2306
2310
|
* Purchase `ReservationOrder` and create resource under the specified URI.
|
|
2307
2311
|
* @param reservationOrderId Order Id of the reservation
|
|
@@ -2889,7 +2893,7 @@ export declare interface Return {
|
|
|
2889
2893
|
* @param body Information needed for returning reservation.
|
|
2890
2894
|
* @param options The options parameters.
|
|
2891
2895
|
*/
|
|
2892
|
-
beginPost(reservationOrderId: string, body: RefundRequest, options?: ReturnPostOptionalParams): Promise<
|
|
2896
|
+
beginPost(reservationOrderId: string, body: RefundRequest, options?: ReturnPostOptionalParams): Promise<SimplePollerLike<OperationState<ReturnPostResponse>, ReturnPostResponse>>;
|
|
2893
2897
|
/**
|
|
2894
2898
|
* Return a reservation and get refund information.
|
|
2895
2899
|
* @param reservationOrderId Order Id of the reservation
|
|
@@ -2913,7 +2917,7 @@ export declare interface ReturnPostOptionalParams extends coreClient.OperationOp
|
|
|
2913
2917
|
}
|
|
2914
2918
|
|
|
2915
2919
|
/** Contains response data for the post operation. */
|
|
2916
|
-
export declare type ReturnPostResponse =
|
|
2920
|
+
export declare type ReturnPostResponse = ReservationOrderResponse;
|
|
2917
2921
|
|
|
2918
2922
|
/** Request body for savings plan purchase */
|
|
2919
2923
|
export declare interface SavingsPlanPurchaseRequest {
|