@azure/arm-vmwarecloudsimple 3.0.2-alpha.20230201.1 → 3.1.1-alpha.20230203.3
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 +28 -1
- package/LICENSE +1 -1
- package/dist/index.js +311 -168
- 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/samples-dev/customizationPoliciesGetSample.js +9 -2
- package/dist-esm/samples-dev/customizationPoliciesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/customizationPoliciesListSample.js +9 -2
- package/dist-esm/samples-dev/customizationPoliciesListSample.js.map +1 -1
- package/dist-esm/samples-dev/dedicatedCloudNodesCreateOrUpdateSample.js +10 -3
- package/dist-esm/samples-dev/dedicatedCloudNodesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/dedicatedCloudNodesDeleteSample.js +10 -3
- package/dist-esm/samples-dev/dedicatedCloudNodesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/dedicatedCloudNodesGetSample.js +10 -3
- package/dist-esm/samples-dev/dedicatedCloudNodesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/dedicatedCloudNodesListByResourceGroupSample.js +10 -3
- package/dist-esm/samples-dev/dedicatedCloudNodesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/dedicatedCloudNodesListBySubscriptionSample.js +9 -2
- package/dist-esm/samples-dev/dedicatedCloudNodesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/dedicatedCloudNodesUpdateSample.js +10 -3
- package/dist-esm/samples-dev/dedicatedCloudNodesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/dedicatedCloudServicesCreateOrUpdateSample.js +10 -3
- package/dist-esm/samples-dev/dedicatedCloudServicesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/dedicatedCloudServicesDeleteSample.js +10 -3
- package/dist-esm/samples-dev/dedicatedCloudServicesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/dedicatedCloudServicesGetSample.js +10 -3
- package/dist-esm/samples-dev/dedicatedCloudServicesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/dedicatedCloudServicesListByResourceGroupSample.js +10 -3
- package/dist-esm/samples-dev/dedicatedCloudServicesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/dedicatedCloudServicesListBySubscriptionSample.js +9 -2
- package/dist-esm/samples-dev/dedicatedCloudServicesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/dedicatedCloudServicesUpdateSample.js +10 -3
- package/dist-esm/samples-dev/dedicatedCloudServicesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsGetSample.js +11 -4
- package/dist-esm/samples-dev/operationsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +10 -2
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateCloudsGetSample.js +9 -2
- package/dist-esm/samples-dev/privateCloudsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateCloudsListSample.js +9 -2
- package/dist-esm/samples-dev/privateCloudsListSample.js.map +1 -1
- package/dist-esm/samples-dev/resourcePoolsGetSample.js +9 -2
- package/dist-esm/samples-dev/resourcePoolsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/resourcePoolsListSample.js +9 -2
- package/dist-esm/samples-dev/resourcePoolsListSample.js.map +1 -1
- package/dist-esm/samples-dev/skusAvailabilityListSample.js +9 -2
- package/dist-esm/samples-dev/skusAvailabilityListSample.js.map +1 -1
- package/dist-esm/samples-dev/usagesListSample.js +9 -2
- package/dist-esm/samples-dev/usagesListSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachineTemplatesGetSample.js +9 -2
- package/dist-esm/samples-dev/virtualMachineTemplatesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachineTemplatesListSample.js +9 -2
- package/dist-esm/samples-dev/virtualMachineTemplatesListSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesCreateOrUpdateSample.js +10 -3
- package/dist-esm/samples-dev/virtualMachinesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesDeleteSample.js +10 -3
- package/dist-esm/samples-dev/virtualMachinesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesGetSample.js +10 -3
- package/dist-esm/samples-dev/virtualMachinesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesListByResourceGroupSample.js +10 -3
- package/dist-esm/samples-dev/virtualMachinesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesListBySubscriptionSample.js +9 -2
- package/dist-esm/samples-dev/virtualMachinesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesStartSample.js +10 -3
- package/dist-esm/samples-dev/virtualMachinesStartSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesStopSample.js +13 -6
- package/dist-esm/samples-dev/virtualMachinesStopSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesUpdateSample.js +10 -3
- package/dist-esm/samples-dev/virtualMachinesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworksGetSample.js +9 -2
- package/dist-esm/samples-dev/virtualNetworksGetSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworksListSample.js +9 -2
- package/dist-esm/samples-dev/virtualNetworksListSample.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +0 -42
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/operations/customizationPolicies.d.ts.map +1 -1
- package/dist-esm/src/operations/customizationPolicies.js +19 -8
- package/dist-esm/src/operations/customizationPolicies.js.map +1 -1
- package/dist-esm/src/operations/dedicatedCloudNodes.d.ts.map +1 -1
- package/dist-esm/src/operations/dedicatedCloudNodes.js +37 -26
- package/dist-esm/src/operations/dedicatedCloudNodes.js.map +1 -1
- package/dist-esm/src/operations/dedicatedCloudServices.d.ts.map +1 -1
- package/dist-esm/src/operations/dedicatedCloudServices.js +37 -26
- package/dist-esm/src/operations/dedicatedCloudServices.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +19 -8
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/privateClouds.d.ts.map +1 -1
- package/dist-esm/src/operations/privateClouds.js +19 -8
- package/dist-esm/src/operations/privateClouds.js.map +1 -1
- package/dist-esm/src/operations/resourcePools.d.ts.map +1 -1
- package/dist-esm/src/operations/resourcePools.js +19 -8
- package/dist-esm/src/operations/resourcePools.js.map +1 -1
- package/dist-esm/src/operations/skusAvailability.d.ts.map +1 -1
- package/dist-esm/src/operations/skusAvailability.js +19 -8
- package/dist-esm/src/operations/skusAvailability.js.map +1 -1
- package/dist-esm/src/operations/usages.d.ts.map +1 -1
- package/dist-esm/src/operations/usages.js +19 -8
- package/dist-esm/src/operations/usages.js.map +1 -1
- package/dist-esm/src/operations/virtualMachineTemplates.d.ts +0 -1
- package/dist-esm/src/operations/virtualMachineTemplates.d.ts.map +1 -1
- package/dist-esm/src/operations/virtualMachineTemplates.js +22 -12
- package/dist-esm/src/operations/virtualMachineTemplates.js.map +1 -1
- package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -1
- package/dist-esm/src/operations/virtualMachines.js +37 -26
- package/dist-esm/src/operations/virtualMachines.js.map +1 -1
- package/dist-esm/src/operations/virtualNetworks.d.ts +0 -1
- package/dist-esm/src/operations/virtualNetworks.d.ts.map +1 -1
- package/dist-esm/src/operations/virtualNetworks.js +22 -12
- package/dist-esm/src/operations/virtualNetworks.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/src/vMwareCloudSimple.d.ts.map +1 -1
- package/dist-esm/src/vMwareCloudSimple.js +20 -18
- package/dist-esm/src/vMwareCloudSimple.js.map +1 -1
- package/package.json +6 -4
- package/review/arm-vmwarecloudsimple.api.md +3 -21
- package/src/index.ts +1 -0
- package/src/models/index.ts +9 -60
- package/src/operations/customizationPolicies.ts +21 -9
- package/src/operations/dedicatedCloudNodes.ts +45 -28
- package/src/operations/dedicatedCloudServices.ts +45 -28
- package/src/operations/operations.ts +21 -9
- package/src/operations/privateClouds.ts +21 -9
- package/src/operations/resourcePools.ts +21 -9
- package/src/operations/skusAvailability.ts +21 -9
- package/src/operations/usages.ts +21 -9
- package/src/operations/virtualMachineTemplates.ts +28 -13
- package/src/operations/virtualMachines.ts +45 -28
- package/src/operations/virtualNetworks.ts +28 -13
- package/src/pagingHelper.ts +39 -0
- package/src/vMwareCloudSimple.ts +26 -20
- package/types/arm-vmwarecloudsimple.d.ts +9 -42
package/src/models/index.ts
CHANGED
|
@@ -1159,28 +1159,14 @@ export type DedicatedCloudNodesUpdateResponse = DedicatedCloudNode;
|
|
|
1159
1159
|
|
|
1160
1160
|
/** Optional parameters. */
|
|
1161
1161
|
export interface DedicatedCloudNodesListBySubscriptionNextOptionalParams
|
|
1162
|
-
extends coreClient.OperationOptions {
|
|
1163
|
-
/** The filter to apply on the list operation */
|
|
1164
|
-
filter?: string;
|
|
1165
|
-
/** The maximum number of record sets to return */
|
|
1166
|
-
top?: number;
|
|
1167
|
-
/** to be used by nextLink implementation */
|
|
1168
|
-
skipToken?: string;
|
|
1169
|
-
}
|
|
1162
|
+
extends coreClient.OperationOptions {}
|
|
1170
1163
|
|
|
1171
1164
|
/** Contains response data for the listBySubscriptionNext operation. */
|
|
1172
1165
|
export type DedicatedCloudNodesListBySubscriptionNextResponse = DedicatedCloudNodeListResponse;
|
|
1173
1166
|
|
|
1174
1167
|
/** Optional parameters. */
|
|
1175
1168
|
export interface DedicatedCloudNodesListByResourceGroupNextOptionalParams
|
|
1176
|
-
extends coreClient.OperationOptions {
|
|
1177
|
-
/** The filter to apply on the list operation */
|
|
1178
|
-
filter?: string;
|
|
1179
|
-
/** The maximum number of record sets to return */
|
|
1180
|
-
top?: number;
|
|
1181
|
-
/** to be used by nextLink implementation */
|
|
1182
|
-
skipToken?: string;
|
|
1183
|
-
}
|
|
1169
|
+
extends coreClient.OperationOptions {}
|
|
1184
1170
|
|
|
1185
1171
|
/** Contains response data for the listByResourceGroupNext operation. */
|
|
1186
1172
|
export type DedicatedCloudNodesListByResourceGroupNextResponse = DedicatedCloudNodeListResponse;
|
|
@@ -1245,28 +1231,14 @@ export type DedicatedCloudServicesUpdateResponse = DedicatedCloudService;
|
|
|
1245
1231
|
|
|
1246
1232
|
/** Optional parameters. */
|
|
1247
1233
|
export interface DedicatedCloudServicesListBySubscriptionNextOptionalParams
|
|
1248
|
-
extends coreClient.OperationOptions {
|
|
1249
|
-
/** The filter to apply on the list operation */
|
|
1250
|
-
filter?: string;
|
|
1251
|
-
/** The maximum number of record sets to return */
|
|
1252
|
-
top?: number;
|
|
1253
|
-
/** to be used by nextLink implementation */
|
|
1254
|
-
skipToken?: string;
|
|
1255
|
-
}
|
|
1234
|
+
extends coreClient.OperationOptions {}
|
|
1256
1235
|
|
|
1257
1236
|
/** Contains response data for the listBySubscriptionNext operation. */
|
|
1258
1237
|
export type DedicatedCloudServicesListBySubscriptionNextResponse = DedicatedCloudServiceListResponse;
|
|
1259
1238
|
|
|
1260
1239
|
/** Optional parameters. */
|
|
1261
1240
|
export interface DedicatedCloudServicesListByResourceGroupNextOptionalParams
|
|
1262
|
-
extends coreClient.OperationOptions {
|
|
1263
|
-
/** The filter to apply on the list operation */
|
|
1264
|
-
filter?: string;
|
|
1265
|
-
/** The maximum number of record sets to return */
|
|
1266
|
-
top?: number;
|
|
1267
|
-
/** to be used by nextLink implementation */
|
|
1268
|
-
skipToken?: string;
|
|
1269
|
-
}
|
|
1241
|
+
extends coreClient.OperationOptions {}
|
|
1270
1242
|
|
|
1271
1243
|
/** Contains response data for the listByResourceGroupNext operation. */
|
|
1272
1244
|
export type DedicatedCloudServicesListByResourceGroupNextResponse = DedicatedCloudServiceListResponse;
|
|
@@ -1283,10 +1255,7 @@ export type SkusAvailabilityListResponse = SkuAvailabilityListResponse;
|
|
|
1283
1255
|
|
|
1284
1256
|
/** Optional parameters. */
|
|
1285
1257
|
export interface SkusAvailabilityListNextOptionalParams
|
|
1286
|
-
extends coreClient.OperationOptions {
|
|
1287
|
-
/** sku id, if no sku is passed availability for all skus will be returned */
|
|
1288
|
-
skuId?: string;
|
|
1289
|
-
}
|
|
1258
|
+
extends coreClient.OperationOptions {}
|
|
1290
1259
|
|
|
1291
1260
|
/** Contains response data for the listNext operation. */
|
|
1292
1261
|
export type SkusAvailabilityListNextResponse = SkuAvailabilityListResponse;
|
|
@@ -1331,10 +1300,7 @@ export type CustomizationPoliciesGetResponse = CustomizationPolicy;
|
|
|
1331
1300
|
|
|
1332
1301
|
/** Optional parameters. */
|
|
1333
1302
|
export interface CustomizationPoliciesListNextOptionalParams
|
|
1334
|
-
extends coreClient.OperationOptions {
|
|
1335
|
-
/** The filter to apply on the list operation. only type is allowed here as a filter e.g. $filter=type eq 'xxxx' */
|
|
1336
|
-
filter?: string;
|
|
1337
|
-
}
|
|
1303
|
+
extends coreClient.OperationOptions {}
|
|
1338
1304
|
|
|
1339
1305
|
/** Contains response data for the listNext operation. */
|
|
1340
1306
|
export type CustomizationPoliciesListNextResponse = CustomizationPoliciesListResponse;
|
|
@@ -1413,10 +1379,7 @@ export type UsagesListResponse = UsageListResponse;
|
|
|
1413
1379
|
|
|
1414
1380
|
/** Optional parameters. */
|
|
1415
1381
|
export interface UsagesListNextOptionalParams
|
|
1416
|
-
extends coreClient.OperationOptions {
|
|
1417
|
-
/** The filter to apply on the list operation. only name.value is allowed here as a filter e.g. $filter=name.value eq 'xxxx' */
|
|
1418
|
-
filter?: string;
|
|
1419
|
-
}
|
|
1382
|
+
extends coreClient.OperationOptions {}
|
|
1420
1383
|
|
|
1421
1384
|
/** Contains response data for the listNext operation. */
|
|
1422
1385
|
export type UsagesListNextResponse = UsageListResponse;
|
|
@@ -1517,28 +1480,14 @@ export interface VirtualMachinesStopOptionalParams
|
|
|
1517
1480
|
|
|
1518
1481
|
/** Optional parameters. */
|
|
1519
1482
|
export interface VirtualMachinesListBySubscriptionNextOptionalParams
|
|
1520
|
-
extends coreClient.OperationOptions {
|
|
1521
|
-
/** The filter to apply on the list operation */
|
|
1522
|
-
filter?: string;
|
|
1523
|
-
/** The maximum number of record sets to return */
|
|
1524
|
-
top?: number;
|
|
1525
|
-
/** to be used by nextLink implementation */
|
|
1526
|
-
skipToken?: string;
|
|
1527
|
-
}
|
|
1483
|
+
extends coreClient.OperationOptions {}
|
|
1528
1484
|
|
|
1529
1485
|
/** Contains response data for the listBySubscriptionNext operation. */
|
|
1530
1486
|
export type VirtualMachinesListBySubscriptionNextResponse = VirtualMachineListResponse;
|
|
1531
1487
|
|
|
1532
1488
|
/** Optional parameters. */
|
|
1533
1489
|
export interface VirtualMachinesListByResourceGroupNextOptionalParams
|
|
1534
|
-
extends coreClient.OperationOptions {
|
|
1535
|
-
/** The filter to apply on the list operation */
|
|
1536
|
-
filter?: string;
|
|
1537
|
-
/** The maximum number of record sets to return */
|
|
1538
|
-
top?: number;
|
|
1539
|
-
/** to be used by nextLink implementation */
|
|
1540
|
-
skipToken?: string;
|
|
1541
|
-
}
|
|
1490
|
+
extends coreClient.OperationOptions {}
|
|
1542
1491
|
|
|
1543
1492
|
/** Contains response data for the listByResourceGroupNext operation. */
|
|
1544
1493
|
export type VirtualMachinesListByResourceGroupNextResponse = VirtualMachineListResponse;
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { CustomizationPolicies } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -54,8 +55,11 @@ export class CustomizationPoliciesImpl implements CustomizationPolicies {
|
|
|
54
55
|
[Symbol.asyncIterator]() {
|
|
55
56
|
return this;
|
|
56
57
|
},
|
|
57
|
-
byPage: () => {
|
|
58
|
-
|
|
58
|
+
byPage: (settings?: PageSettings) => {
|
|
59
|
+
if (settings?.maxPageSize) {
|
|
60
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
61
|
+
}
|
|
62
|
+
return this.listPagingPage(regionId, pcName, options, settings);
|
|
59
63
|
}
|
|
60
64
|
};
|
|
61
65
|
}
|
|
@@ -63,11 +67,18 @@ export class CustomizationPoliciesImpl implements CustomizationPolicies {
|
|
|
63
67
|
private async *listPagingPage(
|
|
64
68
|
regionId: string,
|
|
65
69
|
pcName: string,
|
|
66
|
-
options?: CustomizationPoliciesListOptionalParams
|
|
70
|
+
options?: CustomizationPoliciesListOptionalParams,
|
|
71
|
+
settings?: PageSettings
|
|
67
72
|
): AsyncIterableIterator<CustomizationPolicy[]> {
|
|
68
|
-
let result
|
|
69
|
-
|
|
70
|
-
|
|
73
|
+
let result: CustomizationPoliciesListOperationResponse;
|
|
74
|
+
let continuationToken = settings?.continuationToken;
|
|
75
|
+
if (!continuationToken) {
|
|
76
|
+
result = await this._list(regionId, pcName, options);
|
|
77
|
+
let page = result.value || [];
|
|
78
|
+
continuationToken = result.nextLink;
|
|
79
|
+
setContinuationToken(page, continuationToken);
|
|
80
|
+
yield page;
|
|
81
|
+
}
|
|
71
82
|
while (continuationToken) {
|
|
72
83
|
result = await this._listNext(
|
|
73
84
|
regionId,
|
|
@@ -76,7 +87,9 @@ export class CustomizationPoliciesImpl implements CustomizationPolicies {
|
|
|
76
87
|
options
|
|
77
88
|
);
|
|
78
89
|
continuationToken = result.nextLink;
|
|
79
|
-
|
|
90
|
+
let page = result.value || [];
|
|
91
|
+
setContinuationToken(page, continuationToken);
|
|
92
|
+
yield page;
|
|
80
93
|
}
|
|
81
94
|
}
|
|
82
95
|
|
|
@@ -204,7 +217,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
204
217
|
bodyMapper: Mappers.CsrpError
|
|
205
218
|
}
|
|
206
219
|
},
|
|
207
|
-
queryParameters: [Parameters.apiVersion, Parameters.filter],
|
|
208
220
|
urlParameters: [
|
|
209
221
|
Parameters.$host,
|
|
210
222
|
Parameters.subscriptionId,
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { DedicatedCloudNodes } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -18,9 +19,9 @@ import {
|
|
|
18
19
|
DedicatedCloudNode,
|
|
19
20
|
DedicatedCloudNodesListBySubscriptionNextOptionalParams,
|
|
20
21
|
DedicatedCloudNodesListBySubscriptionOptionalParams,
|
|
22
|
+
DedicatedCloudNodesListBySubscriptionResponse,
|
|
21
23
|
DedicatedCloudNodesListByResourceGroupNextOptionalParams,
|
|
22
24
|
DedicatedCloudNodesListByResourceGroupOptionalParams,
|
|
23
|
-
DedicatedCloudNodesListBySubscriptionResponse,
|
|
24
25
|
DedicatedCloudNodesListByResourceGroupResponse,
|
|
25
26
|
DedicatedCloudNodesGetOptionalParams,
|
|
26
27
|
DedicatedCloudNodesGetResponse,
|
|
@@ -62,22 +63,34 @@ export class DedicatedCloudNodesImpl implements DedicatedCloudNodes {
|
|
|
62
63
|
[Symbol.asyncIterator]() {
|
|
63
64
|
return this;
|
|
64
65
|
},
|
|
65
|
-
byPage: () => {
|
|
66
|
-
|
|
66
|
+
byPage: (settings?: PageSettings) => {
|
|
67
|
+
if (settings?.maxPageSize) {
|
|
68
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
69
|
+
}
|
|
70
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
67
71
|
}
|
|
68
72
|
};
|
|
69
73
|
}
|
|
70
74
|
|
|
71
75
|
private async *listBySubscriptionPagingPage(
|
|
72
|
-
options?: DedicatedCloudNodesListBySubscriptionOptionalParams
|
|
76
|
+
options?: DedicatedCloudNodesListBySubscriptionOptionalParams,
|
|
77
|
+
settings?: PageSettings
|
|
73
78
|
): AsyncIterableIterator<DedicatedCloudNode[]> {
|
|
74
|
-
let result
|
|
75
|
-
|
|
76
|
-
|
|
79
|
+
let result: DedicatedCloudNodesListBySubscriptionResponse;
|
|
80
|
+
let continuationToken = settings?.continuationToken;
|
|
81
|
+
if (!continuationToken) {
|
|
82
|
+
result = await this._listBySubscription(options);
|
|
83
|
+
let page = result.value || [];
|
|
84
|
+
continuationToken = result.nextLink;
|
|
85
|
+
setContinuationToken(page, continuationToken);
|
|
86
|
+
yield page;
|
|
87
|
+
}
|
|
77
88
|
while (continuationToken) {
|
|
78
89
|
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
79
90
|
continuationToken = result.nextLink;
|
|
80
|
-
|
|
91
|
+
let page = result.value || [];
|
|
92
|
+
setContinuationToken(page, continuationToken);
|
|
93
|
+
yield page;
|
|
81
94
|
}
|
|
82
95
|
}
|
|
83
96
|
|
|
@@ -106,19 +119,33 @@ export class DedicatedCloudNodesImpl implements DedicatedCloudNodes {
|
|
|
106
119
|
[Symbol.asyncIterator]() {
|
|
107
120
|
return this;
|
|
108
121
|
},
|
|
109
|
-
byPage: () => {
|
|
110
|
-
|
|
122
|
+
byPage: (settings?: PageSettings) => {
|
|
123
|
+
if (settings?.maxPageSize) {
|
|
124
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
125
|
+
}
|
|
126
|
+
return this.listByResourceGroupPagingPage(
|
|
127
|
+
resourceGroupName,
|
|
128
|
+
options,
|
|
129
|
+
settings
|
|
130
|
+
);
|
|
111
131
|
}
|
|
112
132
|
};
|
|
113
133
|
}
|
|
114
134
|
|
|
115
135
|
private async *listByResourceGroupPagingPage(
|
|
116
136
|
resourceGroupName: string,
|
|
117
|
-
options?: DedicatedCloudNodesListByResourceGroupOptionalParams
|
|
137
|
+
options?: DedicatedCloudNodesListByResourceGroupOptionalParams,
|
|
138
|
+
settings?: PageSettings
|
|
118
139
|
): AsyncIterableIterator<DedicatedCloudNode[]> {
|
|
119
|
-
let result
|
|
120
|
-
|
|
121
|
-
|
|
140
|
+
let result: DedicatedCloudNodesListByResourceGroupResponse;
|
|
141
|
+
let continuationToken = settings?.continuationToken;
|
|
142
|
+
if (!continuationToken) {
|
|
143
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
144
|
+
let page = result.value || [];
|
|
145
|
+
continuationToken = result.nextLink;
|
|
146
|
+
setContinuationToken(page, continuationToken);
|
|
147
|
+
yield page;
|
|
148
|
+
}
|
|
122
149
|
while (continuationToken) {
|
|
123
150
|
result = await this._listByResourceGroupNext(
|
|
124
151
|
resourceGroupName,
|
|
@@ -126,7 +153,9 @@ export class DedicatedCloudNodesImpl implements DedicatedCloudNodes {
|
|
|
126
153
|
options
|
|
127
154
|
);
|
|
128
155
|
continuationToken = result.nextLink;
|
|
129
|
-
|
|
156
|
+
let page = result.value || [];
|
|
157
|
+
setContinuationToken(page, continuationToken);
|
|
158
|
+
yield page;
|
|
130
159
|
}
|
|
131
160
|
}
|
|
132
161
|
|
|
@@ -533,12 +562,6 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
|
533
562
|
bodyMapper: Mappers.CsrpError
|
|
534
563
|
}
|
|
535
564
|
},
|
|
536
|
-
queryParameters: [
|
|
537
|
-
Parameters.apiVersion,
|
|
538
|
-
Parameters.filter,
|
|
539
|
-
Parameters.top,
|
|
540
|
-
Parameters.skipToken
|
|
541
|
-
],
|
|
542
565
|
urlParameters: [
|
|
543
566
|
Parameters.$host,
|
|
544
567
|
Parameters.subscriptionId,
|
|
@@ -558,12 +581,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
|
558
581
|
bodyMapper: Mappers.CsrpError
|
|
559
582
|
}
|
|
560
583
|
},
|
|
561
|
-
queryParameters: [
|
|
562
|
-
Parameters.apiVersion,
|
|
563
|
-
Parameters.filter,
|
|
564
|
-
Parameters.top,
|
|
565
|
-
Parameters.skipToken
|
|
566
|
-
],
|
|
567
584
|
urlParameters: [
|
|
568
585
|
Parameters.$host,
|
|
569
586
|
Parameters.subscriptionId,
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { DedicatedCloudServices } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -18,9 +19,9 @@ import {
|
|
|
18
19
|
DedicatedCloudService,
|
|
19
20
|
DedicatedCloudServicesListBySubscriptionNextOptionalParams,
|
|
20
21
|
DedicatedCloudServicesListBySubscriptionOptionalParams,
|
|
22
|
+
DedicatedCloudServicesListBySubscriptionResponse,
|
|
21
23
|
DedicatedCloudServicesListByResourceGroupNextOptionalParams,
|
|
22
24
|
DedicatedCloudServicesListByResourceGroupOptionalParams,
|
|
23
|
-
DedicatedCloudServicesListBySubscriptionResponse,
|
|
24
25
|
DedicatedCloudServicesListByResourceGroupResponse,
|
|
25
26
|
DedicatedCloudServicesGetOptionalParams,
|
|
26
27
|
DedicatedCloudServicesGetResponse,
|
|
@@ -62,22 +63,34 @@ export class DedicatedCloudServicesImpl implements DedicatedCloudServices {
|
|
|
62
63
|
[Symbol.asyncIterator]() {
|
|
63
64
|
return this;
|
|
64
65
|
},
|
|
65
|
-
byPage: () => {
|
|
66
|
-
|
|
66
|
+
byPage: (settings?: PageSettings) => {
|
|
67
|
+
if (settings?.maxPageSize) {
|
|
68
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
69
|
+
}
|
|
70
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
67
71
|
}
|
|
68
72
|
};
|
|
69
73
|
}
|
|
70
74
|
|
|
71
75
|
private async *listBySubscriptionPagingPage(
|
|
72
|
-
options?: DedicatedCloudServicesListBySubscriptionOptionalParams
|
|
76
|
+
options?: DedicatedCloudServicesListBySubscriptionOptionalParams,
|
|
77
|
+
settings?: PageSettings
|
|
73
78
|
): AsyncIterableIterator<DedicatedCloudService[]> {
|
|
74
|
-
let result
|
|
75
|
-
|
|
76
|
-
|
|
79
|
+
let result: DedicatedCloudServicesListBySubscriptionResponse;
|
|
80
|
+
let continuationToken = settings?.continuationToken;
|
|
81
|
+
if (!continuationToken) {
|
|
82
|
+
result = await this._listBySubscription(options);
|
|
83
|
+
let page = result.value || [];
|
|
84
|
+
continuationToken = result.nextLink;
|
|
85
|
+
setContinuationToken(page, continuationToken);
|
|
86
|
+
yield page;
|
|
87
|
+
}
|
|
77
88
|
while (continuationToken) {
|
|
78
89
|
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
79
90
|
continuationToken = result.nextLink;
|
|
80
|
-
|
|
91
|
+
let page = result.value || [];
|
|
92
|
+
setContinuationToken(page, continuationToken);
|
|
93
|
+
yield page;
|
|
81
94
|
}
|
|
82
95
|
}
|
|
83
96
|
|
|
@@ -106,19 +119,33 @@ export class DedicatedCloudServicesImpl implements DedicatedCloudServices {
|
|
|
106
119
|
[Symbol.asyncIterator]() {
|
|
107
120
|
return this;
|
|
108
121
|
},
|
|
109
|
-
byPage: () => {
|
|
110
|
-
|
|
122
|
+
byPage: (settings?: PageSettings) => {
|
|
123
|
+
if (settings?.maxPageSize) {
|
|
124
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
125
|
+
}
|
|
126
|
+
return this.listByResourceGroupPagingPage(
|
|
127
|
+
resourceGroupName,
|
|
128
|
+
options,
|
|
129
|
+
settings
|
|
130
|
+
);
|
|
111
131
|
}
|
|
112
132
|
};
|
|
113
133
|
}
|
|
114
134
|
|
|
115
135
|
private async *listByResourceGroupPagingPage(
|
|
116
136
|
resourceGroupName: string,
|
|
117
|
-
options?: DedicatedCloudServicesListByResourceGroupOptionalParams
|
|
137
|
+
options?: DedicatedCloudServicesListByResourceGroupOptionalParams,
|
|
138
|
+
settings?: PageSettings
|
|
118
139
|
): AsyncIterableIterator<DedicatedCloudService[]> {
|
|
119
|
-
let result
|
|
120
|
-
|
|
121
|
-
|
|
140
|
+
let result: DedicatedCloudServicesListByResourceGroupResponse;
|
|
141
|
+
let continuationToken = settings?.continuationToken;
|
|
142
|
+
if (!continuationToken) {
|
|
143
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
144
|
+
let page = result.value || [];
|
|
145
|
+
continuationToken = result.nextLink;
|
|
146
|
+
setContinuationToken(page, continuationToken);
|
|
147
|
+
yield page;
|
|
148
|
+
}
|
|
122
149
|
while (continuationToken) {
|
|
123
150
|
result = await this._listByResourceGroupNext(
|
|
124
151
|
resourceGroupName,
|
|
@@ -126,7 +153,9 @@ export class DedicatedCloudServicesImpl implements DedicatedCloudServices {
|
|
|
126
153
|
options
|
|
127
154
|
);
|
|
128
155
|
continuationToken = result.nextLink;
|
|
129
|
-
|
|
156
|
+
let page = result.value || [];
|
|
157
|
+
setContinuationToken(page, continuationToken);
|
|
158
|
+
yield page;
|
|
130
159
|
}
|
|
131
160
|
}
|
|
132
161
|
|
|
@@ -505,12 +534,6 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
|
505
534
|
bodyMapper: Mappers.CsrpError
|
|
506
535
|
}
|
|
507
536
|
},
|
|
508
|
-
queryParameters: [
|
|
509
|
-
Parameters.apiVersion,
|
|
510
|
-
Parameters.filter,
|
|
511
|
-
Parameters.top,
|
|
512
|
-
Parameters.skipToken
|
|
513
|
-
],
|
|
514
537
|
urlParameters: [
|
|
515
538
|
Parameters.$host,
|
|
516
539
|
Parameters.subscriptionId,
|
|
@@ -530,12 +553,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
|
530
553
|
bodyMapper: Mappers.CsrpError
|
|
531
554
|
}
|
|
532
555
|
},
|
|
533
|
-
queryParameters: [
|
|
534
|
-
Parameters.apiVersion,
|
|
535
|
-
Parameters.filter,
|
|
536
|
-
Parameters.top,
|
|
537
|
-
Parameters.skipToken
|
|
538
|
-
],
|
|
539
556
|
urlParameters: [
|
|
540
557
|
Parameters.$host,
|
|
541
558
|
Parameters.subscriptionId,
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { Operations } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -50,22 +51,34 @@ export class OperationsImpl implements Operations {
|
|
|
50
51
|
[Symbol.asyncIterator]() {
|
|
51
52
|
return this;
|
|
52
53
|
},
|
|
53
|
-
byPage: () => {
|
|
54
|
-
|
|
54
|
+
byPage: (settings?: PageSettings) => {
|
|
55
|
+
if (settings?.maxPageSize) {
|
|
56
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
57
|
+
}
|
|
58
|
+
return this.listPagingPage(options, settings);
|
|
55
59
|
}
|
|
56
60
|
};
|
|
57
61
|
}
|
|
58
62
|
|
|
59
63
|
private async *listPagingPage(
|
|
60
|
-
options?: OperationsListOptionalParams
|
|
64
|
+
options?: OperationsListOptionalParams,
|
|
65
|
+
settings?: PageSettings
|
|
61
66
|
): AsyncIterableIterator<AvailableOperation[]> {
|
|
62
|
-
let result
|
|
63
|
-
|
|
64
|
-
|
|
67
|
+
let result: OperationsListResponse;
|
|
68
|
+
let continuationToken = settings?.continuationToken;
|
|
69
|
+
if (!continuationToken) {
|
|
70
|
+
result = await this._list(options);
|
|
71
|
+
let page = result.value || [];
|
|
72
|
+
continuationToken = result.nextLink;
|
|
73
|
+
setContinuationToken(page, continuationToken);
|
|
74
|
+
yield page;
|
|
75
|
+
}
|
|
65
76
|
while (continuationToken) {
|
|
66
77
|
result = await this._listNext(continuationToken, options);
|
|
67
78
|
continuationToken = result.nextLink;
|
|
68
|
-
|
|
79
|
+
let page = result.value || [];
|
|
80
|
+
setContinuationToken(page, continuationToken);
|
|
81
|
+
yield page;
|
|
69
82
|
}
|
|
70
83
|
}
|
|
71
84
|
|
|
@@ -178,7 +191,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
178
191
|
bodyMapper: Mappers.CsrpError
|
|
179
192
|
}
|
|
180
193
|
},
|
|
181
|
-
queryParameters: [Parameters.apiVersion],
|
|
182
194
|
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
183
195
|
headerParameters: [Parameters.accept],
|
|
184
196
|
serializer
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { PrivateClouds } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -52,23 +53,35 @@ export class PrivateCloudsImpl implements PrivateClouds {
|
|
|
52
53
|
[Symbol.asyncIterator]() {
|
|
53
54
|
return this;
|
|
54
55
|
},
|
|
55
|
-
byPage: () => {
|
|
56
|
-
|
|
56
|
+
byPage: (settings?: PageSettings) => {
|
|
57
|
+
if (settings?.maxPageSize) {
|
|
58
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
59
|
+
}
|
|
60
|
+
return this.listPagingPage(regionId, options, settings);
|
|
57
61
|
}
|
|
58
62
|
};
|
|
59
63
|
}
|
|
60
64
|
|
|
61
65
|
private async *listPagingPage(
|
|
62
66
|
regionId: string,
|
|
63
|
-
options?: PrivateCloudsListOptionalParams
|
|
67
|
+
options?: PrivateCloudsListOptionalParams,
|
|
68
|
+
settings?: PageSettings
|
|
64
69
|
): AsyncIterableIterator<PrivateCloud[]> {
|
|
65
|
-
let result
|
|
66
|
-
|
|
67
|
-
|
|
70
|
+
let result: PrivateCloudsListResponse;
|
|
71
|
+
let continuationToken = settings?.continuationToken;
|
|
72
|
+
if (!continuationToken) {
|
|
73
|
+
result = await this._list(regionId, options);
|
|
74
|
+
let page = result.value || [];
|
|
75
|
+
continuationToken = result.nextLink;
|
|
76
|
+
setContinuationToken(page, continuationToken);
|
|
77
|
+
yield page;
|
|
78
|
+
}
|
|
68
79
|
while (continuationToken) {
|
|
69
80
|
result = await this._listNext(regionId, continuationToken, options);
|
|
70
81
|
continuationToken = result.nextLink;
|
|
71
|
-
|
|
82
|
+
let page = result.value || [];
|
|
83
|
+
setContinuationToken(page, continuationToken);
|
|
84
|
+
yield page;
|
|
72
85
|
}
|
|
73
86
|
}
|
|
74
87
|
|
|
@@ -187,7 +200,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
187
200
|
bodyMapper: Mappers.CsrpError
|
|
188
201
|
}
|
|
189
202
|
},
|
|
190
|
-
queryParameters: [Parameters.apiVersion],
|
|
191
203
|
urlParameters: [
|
|
192
204
|
Parameters.$host,
|
|
193
205
|
Parameters.subscriptionId,
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { ResourcePools } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -54,8 +55,11 @@ export class ResourcePoolsImpl implements ResourcePools {
|
|
|
54
55
|
[Symbol.asyncIterator]() {
|
|
55
56
|
return this;
|
|
56
57
|
},
|
|
57
|
-
byPage: () => {
|
|
58
|
-
|
|
58
|
+
byPage: (settings?: PageSettings) => {
|
|
59
|
+
if (settings?.maxPageSize) {
|
|
60
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
61
|
+
}
|
|
62
|
+
return this.listPagingPage(regionId, pcName, options, settings);
|
|
59
63
|
}
|
|
60
64
|
};
|
|
61
65
|
}
|
|
@@ -63,11 +67,18 @@ export class ResourcePoolsImpl implements ResourcePools {
|
|
|
63
67
|
private async *listPagingPage(
|
|
64
68
|
regionId: string,
|
|
65
69
|
pcName: string,
|
|
66
|
-
options?: ResourcePoolsListOptionalParams
|
|
70
|
+
options?: ResourcePoolsListOptionalParams,
|
|
71
|
+
settings?: PageSettings
|
|
67
72
|
): AsyncIterableIterator<ResourcePool[]> {
|
|
68
|
-
let result
|
|
69
|
-
|
|
70
|
-
|
|
73
|
+
let result: ResourcePoolsListOperationResponse;
|
|
74
|
+
let continuationToken = settings?.continuationToken;
|
|
75
|
+
if (!continuationToken) {
|
|
76
|
+
result = await this._list(regionId, pcName, options);
|
|
77
|
+
let page = result.value || [];
|
|
78
|
+
continuationToken = result.nextLink;
|
|
79
|
+
setContinuationToken(page, continuationToken);
|
|
80
|
+
yield page;
|
|
81
|
+
}
|
|
71
82
|
while (continuationToken) {
|
|
72
83
|
result = await this._listNext(
|
|
73
84
|
regionId,
|
|
@@ -76,7 +87,9 @@ export class ResourcePoolsImpl implements ResourcePools {
|
|
|
76
87
|
options
|
|
77
88
|
);
|
|
78
89
|
continuationToken = result.nextLink;
|
|
79
|
-
|
|
90
|
+
let page = result.value || [];
|
|
91
|
+
setContinuationToken(page, continuationToken);
|
|
92
|
+
yield page;
|
|
80
93
|
}
|
|
81
94
|
}
|
|
82
95
|
|
|
@@ -204,7 +217,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
204
217
|
bodyMapper: Mappers.CsrpError
|
|
205
218
|
}
|
|
206
219
|
},
|
|
207
|
-
queryParameters: [Parameters.apiVersion],
|
|
208
220
|
urlParameters: [
|
|
209
221
|
Parameters.$host,
|
|
210
222
|
Parameters.subscriptionId,
|