@azure/arm-scvmm 1.0.0-beta.2 → 1.0.0-beta.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 +11 -1
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/index.js +305 -130
- 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/availabilitySetsCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/availabilitySetsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/availabilitySetsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/availabilitySetsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/availabilitySetsGetSample.js +11 -3
- package/dist-esm/samples-dev/availabilitySetsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/availabilitySetsListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/availabilitySetsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/availabilitySetsListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/availabilitySetsListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/availabilitySetsUpdateSample.js +11 -3
- package/dist-esm/samples-dev/availabilitySetsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/cloudsCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/cloudsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/cloudsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/cloudsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/cloudsGetSample.js +11 -3
- package/dist-esm/samples-dev/cloudsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/cloudsListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/cloudsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/cloudsListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/cloudsListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/cloudsUpdateSample.js +11 -3
- package/dist-esm/samples-dev/cloudsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/inventoryItemsCreateSample.js +11 -3
- package/dist-esm/samples-dev/inventoryItemsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/inventoryItemsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/inventoryItemsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/inventoryItemsGetSample.js +11 -3
- package/dist-esm/samples-dev/inventoryItemsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/inventoryItemsListByVmmServerSample.js +11 -3
- package/dist-esm/samples-dev/inventoryItemsListByVmmServerSample.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/virtualMachineTemplatesCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachineTemplatesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachineTemplatesDeleteSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachineTemplatesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachineTemplatesGetSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachineTemplatesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachineTemplatesListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachineTemplatesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachineTemplatesListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/virtualMachineTemplatesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachineTemplatesUpdateSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachineTemplatesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesCreateCheckpointSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachinesCreateCheckpointSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachinesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesDeleteCheckpointSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachinesDeleteCheckpointSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesDeleteSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachinesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesGetSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachinesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachinesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/virtualMachinesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesRestartSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachinesRestartSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesRestoreCheckpointSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachinesRestoreCheckpointSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesStartSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachinesStartSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesStopSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachinesStopSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesUpdateSample.js +11 -3
- package/dist-esm/samples-dev/virtualMachinesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworksCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/virtualNetworksCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworksDeleteSample.js +11 -3
- package/dist-esm/samples-dev/virtualNetworksDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworksGetSample.js +11 -3
- package/dist-esm/samples-dev/virtualNetworksGetSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworksListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/virtualNetworksListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworksListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/virtualNetworksListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworksUpdateSample.js +11 -3
- package/dist-esm/samples-dev/virtualNetworksUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/vmmServersCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/vmmServersCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/vmmServersDeleteSample.js +11 -3
- package/dist-esm/samples-dev/vmmServersDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/vmmServersGetSample.js +11 -3
- package/dist-esm/samples-dev/vmmServersGetSample.js.map +1 -1
- package/dist-esm/samples-dev/vmmServersListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/vmmServersListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/vmmServersListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/vmmServersListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/vmmServersUpdateSample.js +11 -3
- package/dist-esm/samples-dev/vmmServersUpdateSample.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/operations/availabilitySets.d.ts.map +1 -1
- package/dist-esm/src/operations/availabilitySets.js +37 -16
- package/dist-esm/src/operations/availabilitySets.js.map +1 -1
- package/dist-esm/src/operations/clouds.d.ts.map +1 -1
- package/dist-esm/src/operations/clouds.js +37 -16
- package/dist-esm/src/operations/clouds.js.map +1 -1
- package/dist-esm/src/operations/inventoryItems.d.ts.map +1 -1
- package/dist-esm/src/operations/inventoryItems.js +19 -8
- package/dist-esm/src/operations/inventoryItems.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/virtualMachineTemplates.d.ts.map +1 -1
- package/dist-esm/src/operations/virtualMachineTemplates.js +37 -16
- 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 -16
- package/dist-esm/src/operations/virtualMachines.js.map +1 -1
- package/dist-esm/src/operations/virtualNetworks.d.ts.map +1 -1
- package/dist-esm/src/operations/virtualNetworks.js +37 -16
- package/dist-esm/src/operations/virtualNetworks.js.map +1 -1
- package/dist-esm/src/operations/vmmServers.d.ts.map +1 -1
- package/dist-esm/src/operations/vmmServers.js +37 -16
- package/dist-esm/src/operations/vmmServers.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/scvmm.d.ts.map +1 -1
- package/dist-esm/src/scvmm.js +20 -18
- package/dist-esm/src/scvmm.js.map +1 -1
- package/package.json +8 -6
- package/review/arm-scvmm.api.md +3 -0
- package/src/index.ts +1 -0
- package/src/operations/availabilitySets.ts +46 -19
- package/src/operations/clouds.ts +46 -19
- package/src/operations/inventoryItems.ts +27 -14
- package/src/operations/operations.ts +21 -9
- package/src/operations/virtualMachineTemplates.ts +46 -19
- package/src/operations/virtualMachines.ts +46 -19
- package/src/operations/virtualNetworks.ts +46 -19
- package/src/operations/vmmServers.ts +46 -19
- package/src/pagingHelper.ts +39 -0
- package/src/scvmm.ts +26 -20
- package/types/arm-scvmm.d.ts +9 -0
- package/types/tsdoc-metadata.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28,6 +28,38 @@ function _interopNamespace(e) {
|
|
|
28
28
|
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
29
29
|
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
30
30
|
|
|
31
|
+
/*
|
|
32
|
+
* Copyright (c) Microsoft Corporation.
|
|
33
|
+
* Licensed under the MIT License.
|
|
34
|
+
*
|
|
35
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
36
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
37
|
+
*/
|
|
38
|
+
const pageMap = new WeakMap();
|
|
39
|
+
/**
|
|
40
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
41
|
+
* returns a continuation token that can be used to begin paging from
|
|
42
|
+
* that point later.
|
|
43
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
44
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
45
|
+
*/
|
|
46
|
+
function getContinuationToken(page) {
|
|
47
|
+
var _a;
|
|
48
|
+
if (typeof page !== "object" || page === null) {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
52
|
+
}
|
|
53
|
+
function setContinuationToken(page, continuationToken) {
|
|
54
|
+
var _a;
|
|
55
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
59
|
+
pageInfo.continuationToken = continuationToken;
|
|
60
|
+
pageMap.set(page, pageInfo);
|
|
61
|
+
}
|
|
62
|
+
|
|
31
63
|
/*
|
|
32
64
|
* Copyright (c) Microsoft Corporation.
|
|
33
65
|
* Licensed under the MIT License.
|
|
@@ -2700,20 +2732,31 @@ class VmmServersImpl {
|
|
|
2700
2732
|
[Symbol.asyncIterator]() {
|
|
2701
2733
|
return this;
|
|
2702
2734
|
},
|
|
2703
|
-
byPage: () => {
|
|
2704
|
-
|
|
2735
|
+
byPage: (settings) => {
|
|
2736
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2737
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2738
|
+
}
|
|
2739
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
2705
2740
|
}
|
|
2706
2741
|
};
|
|
2707
2742
|
}
|
|
2708
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
2743
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
2709
2744
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
2710
|
-
let result
|
|
2711
|
-
|
|
2712
|
-
|
|
2745
|
+
let result;
|
|
2746
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2747
|
+
if (!continuationToken) {
|
|
2748
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
2749
|
+
let page = result.value || [];
|
|
2750
|
+
continuationToken = result.nextLink;
|
|
2751
|
+
setContinuationToken(page, continuationToken);
|
|
2752
|
+
yield yield tslib.__await(page);
|
|
2753
|
+
}
|
|
2713
2754
|
while (continuationToken) {
|
|
2714
2755
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
2715
2756
|
continuationToken = result.nextLink;
|
|
2716
|
-
|
|
2757
|
+
let page = result.value || [];
|
|
2758
|
+
setContinuationToken(page, continuationToken);
|
|
2759
|
+
yield yield tslib.__await(page);
|
|
2717
2760
|
}
|
|
2718
2761
|
});
|
|
2719
2762
|
}
|
|
@@ -2748,20 +2791,31 @@ class VmmServersImpl {
|
|
|
2748
2791
|
[Symbol.asyncIterator]() {
|
|
2749
2792
|
return this;
|
|
2750
2793
|
},
|
|
2751
|
-
byPage: () => {
|
|
2752
|
-
|
|
2794
|
+
byPage: (settings) => {
|
|
2795
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2796
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2797
|
+
}
|
|
2798
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
2753
2799
|
}
|
|
2754
2800
|
};
|
|
2755
2801
|
}
|
|
2756
|
-
listBySubscriptionPagingPage(options) {
|
|
2802
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
2757
2803
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
2758
|
-
let result
|
|
2759
|
-
|
|
2760
|
-
|
|
2804
|
+
let result;
|
|
2805
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2806
|
+
if (!continuationToken) {
|
|
2807
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
2808
|
+
let page = result.value || [];
|
|
2809
|
+
continuationToken = result.nextLink;
|
|
2810
|
+
setContinuationToken(page, continuationToken);
|
|
2811
|
+
yield yield tslib.__await(page);
|
|
2812
|
+
}
|
|
2761
2813
|
while (continuationToken) {
|
|
2762
2814
|
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
2763
2815
|
continuationToken = result.nextLink;
|
|
2764
|
-
|
|
2816
|
+
let page = result.value || [];
|
|
2817
|
+
setContinuationToken(page, continuationToken);
|
|
2818
|
+
yield yield tslib.__await(page);
|
|
2765
2819
|
}
|
|
2766
2820
|
});
|
|
2767
2821
|
}
|
|
@@ -3141,7 +3195,6 @@ const listByResourceGroupNextOperationSpec$5 = {
|
|
|
3141
3195
|
bodyMapper: ErrorResponse
|
|
3142
3196
|
}
|
|
3143
3197
|
},
|
|
3144
|
-
queryParameters: [apiVersion],
|
|
3145
3198
|
urlParameters: [
|
|
3146
3199
|
$host,
|
|
3147
3200
|
subscriptionId,
|
|
@@ -3162,7 +3215,6 @@ const listBySubscriptionNextOperationSpec$5 = {
|
|
|
3162
3215
|
bodyMapper: ErrorResponse
|
|
3163
3216
|
}
|
|
3164
3217
|
},
|
|
3165
|
-
queryParameters: [apiVersion],
|
|
3166
3218
|
urlParameters: [
|
|
3167
3219
|
$host,
|
|
3168
3220
|
subscriptionId,
|
|
@@ -3202,20 +3254,31 @@ class OperationsImpl {
|
|
|
3202
3254
|
[Symbol.asyncIterator]() {
|
|
3203
3255
|
return this;
|
|
3204
3256
|
},
|
|
3205
|
-
byPage: () => {
|
|
3206
|
-
|
|
3257
|
+
byPage: (settings) => {
|
|
3258
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3259
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3260
|
+
}
|
|
3261
|
+
return this.listPagingPage(options, settings);
|
|
3207
3262
|
}
|
|
3208
3263
|
};
|
|
3209
3264
|
}
|
|
3210
|
-
listPagingPage(options) {
|
|
3265
|
+
listPagingPage(options, settings) {
|
|
3211
3266
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3212
|
-
let result
|
|
3213
|
-
|
|
3214
|
-
|
|
3267
|
+
let result;
|
|
3268
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3269
|
+
if (!continuationToken) {
|
|
3270
|
+
result = yield tslib.__await(this._list(options));
|
|
3271
|
+
let page = result.value || [];
|
|
3272
|
+
continuationToken = result.nextLink;
|
|
3273
|
+
setContinuationToken(page, continuationToken);
|
|
3274
|
+
yield yield tslib.__await(page);
|
|
3275
|
+
}
|
|
3215
3276
|
while (continuationToken) {
|
|
3216
3277
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
3217
3278
|
continuationToken = result.nextLink;
|
|
3218
|
-
|
|
3279
|
+
let page = result.value || [];
|
|
3280
|
+
setContinuationToken(page, continuationToken);
|
|
3281
|
+
yield yield tslib.__await(page);
|
|
3219
3282
|
}
|
|
3220
3283
|
});
|
|
3221
3284
|
}
|
|
@@ -3282,7 +3345,6 @@ const listNextOperationSpec = {
|
|
|
3282
3345
|
bodyMapper: ErrorResponse
|
|
3283
3346
|
}
|
|
3284
3347
|
},
|
|
3285
|
-
queryParameters: [apiVersion],
|
|
3286
3348
|
urlParameters: [$host, nextLink],
|
|
3287
3349
|
headerParameters: [accept],
|
|
3288
3350
|
serializer: serializer$6
|
|
@@ -3319,20 +3381,31 @@ class CloudsImpl {
|
|
|
3319
3381
|
[Symbol.asyncIterator]() {
|
|
3320
3382
|
return this;
|
|
3321
3383
|
},
|
|
3322
|
-
byPage: () => {
|
|
3323
|
-
|
|
3384
|
+
byPage: (settings) => {
|
|
3385
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3386
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3387
|
+
}
|
|
3388
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
3324
3389
|
}
|
|
3325
3390
|
};
|
|
3326
3391
|
}
|
|
3327
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
3392
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
3328
3393
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
3329
|
-
let result
|
|
3330
|
-
|
|
3331
|
-
|
|
3394
|
+
let result;
|
|
3395
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3396
|
+
if (!continuationToken) {
|
|
3397
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
3398
|
+
let page = result.value || [];
|
|
3399
|
+
continuationToken = result.nextLink;
|
|
3400
|
+
setContinuationToken(page, continuationToken);
|
|
3401
|
+
yield yield tslib.__await(page);
|
|
3402
|
+
}
|
|
3332
3403
|
while (continuationToken) {
|
|
3333
3404
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
3334
3405
|
continuationToken = result.nextLink;
|
|
3335
|
-
|
|
3406
|
+
let page = result.value || [];
|
|
3407
|
+
setContinuationToken(page, continuationToken);
|
|
3408
|
+
yield yield tslib.__await(page);
|
|
3336
3409
|
}
|
|
3337
3410
|
});
|
|
3338
3411
|
}
|
|
@@ -3367,20 +3440,31 @@ class CloudsImpl {
|
|
|
3367
3440
|
[Symbol.asyncIterator]() {
|
|
3368
3441
|
return this;
|
|
3369
3442
|
},
|
|
3370
|
-
byPage: () => {
|
|
3371
|
-
|
|
3443
|
+
byPage: (settings) => {
|
|
3444
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3445
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3446
|
+
}
|
|
3447
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
3372
3448
|
}
|
|
3373
3449
|
};
|
|
3374
3450
|
}
|
|
3375
|
-
listBySubscriptionPagingPage(options) {
|
|
3451
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
3376
3452
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
3377
|
-
let result
|
|
3378
|
-
|
|
3379
|
-
|
|
3453
|
+
let result;
|
|
3454
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3455
|
+
if (!continuationToken) {
|
|
3456
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
3457
|
+
let page = result.value || [];
|
|
3458
|
+
continuationToken = result.nextLink;
|
|
3459
|
+
setContinuationToken(page, continuationToken);
|
|
3460
|
+
yield yield tslib.__await(page);
|
|
3461
|
+
}
|
|
3380
3462
|
while (continuationToken) {
|
|
3381
3463
|
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
3382
3464
|
continuationToken = result.nextLink;
|
|
3383
|
-
|
|
3465
|
+
let page = result.value || [];
|
|
3466
|
+
setContinuationToken(page, continuationToken);
|
|
3467
|
+
yield yield tslib.__await(page);
|
|
3384
3468
|
}
|
|
3385
3469
|
});
|
|
3386
3470
|
}
|
|
@@ -3760,7 +3844,6 @@ const listByResourceGroupNextOperationSpec$4 = {
|
|
|
3760
3844
|
bodyMapper: ErrorResponse
|
|
3761
3845
|
}
|
|
3762
3846
|
},
|
|
3763
|
-
queryParameters: [apiVersion],
|
|
3764
3847
|
urlParameters: [
|
|
3765
3848
|
$host,
|
|
3766
3849
|
subscriptionId,
|
|
@@ -3781,7 +3864,6 @@ const listBySubscriptionNextOperationSpec$4 = {
|
|
|
3781
3864
|
bodyMapper: ErrorResponse
|
|
3782
3865
|
}
|
|
3783
3866
|
},
|
|
3784
|
-
queryParameters: [apiVersion],
|
|
3785
3867
|
urlParameters: [
|
|
3786
3868
|
$host,
|
|
3787
3869
|
subscriptionId,
|
|
@@ -3822,20 +3904,31 @@ class VirtualNetworksImpl {
|
|
|
3822
3904
|
[Symbol.asyncIterator]() {
|
|
3823
3905
|
return this;
|
|
3824
3906
|
},
|
|
3825
|
-
byPage: () => {
|
|
3826
|
-
|
|
3907
|
+
byPage: (settings) => {
|
|
3908
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3909
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3910
|
+
}
|
|
3911
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
3827
3912
|
}
|
|
3828
3913
|
};
|
|
3829
3914
|
}
|
|
3830
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
3915
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
3831
3916
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
3832
|
-
let result
|
|
3833
|
-
|
|
3834
|
-
|
|
3917
|
+
let result;
|
|
3918
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3919
|
+
if (!continuationToken) {
|
|
3920
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
3921
|
+
let page = result.value || [];
|
|
3922
|
+
continuationToken = result.nextLink;
|
|
3923
|
+
setContinuationToken(page, continuationToken);
|
|
3924
|
+
yield yield tslib.__await(page);
|
|
3925
|
+
}
|
|
3835
3926
|
while (continuationToken) {
|
|
3836
3927
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
3837
3928
|
continuationToken = result.nextLink;
|
|
3838
|
-
|
|
3929
|
+
let page = result.value || [];
|
|
3930
|
+
setContinuationToken(page, continuationToken);
|
|
3931
|
+
yield yield tslib.__await(page);
|
|
3839
3932
|
}
|
|
3840
3933
|
});
|
|
3841
3934
|
}
|
|
@@ -3870,20 +3963,31 @@ class VirtualNetworksImpl {
|
|
|
3870
3963
|
[Symbol.asyncIterator]() {
|
|
3871
3964
|
return this;
|
|
3872
3965
|
},
|
|
3873
|
-
byPage: () => {
|
|
3874
|
-
|
|
3966
|
+
byPage: (settings) => {
|
|
3967
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3968
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3969
|
+
}
|
|
3970
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
3875
3971
|
}
|
|
3876
3972
|
};
|
|
3877
3973
|
}
|
|
3878
|
-
listBySubscriptionPagingPage(options) {
|
|
3974
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
3879
3975
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
3880
|
-
let result
|
|
3881
|
-
|
|
3882
|
-
|
|
3976
|
+
let result;
|
|
3977
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3978
|
+
if (!continuationToken) {
|
|
3979
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
3980
|
+
let page = result.value || [];
|
|
3981
|
+
continuationToken = result.nextLink;
|
|
3982
|
+
setContinuationToken(page, continuationToken);
|
|
3983
|
+
yield yield tslib.__await(page);
|
|
3984
|
+
}
|
|
3883
3985
|
while (continuationToken) {
|
|
3884
3986
|
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
3885
3987
|
continuationToken = result.nextLink;
|
|
3886
|
-
|
|
3988
|
+
let page = result.value || [];
|
|
3989
|
+
setContinuationToken(page, continuationToken);
|
|
3990
|
+
yield yield tslib.__await(page);
|
|
3887
3991
|
}
|
|
3888
3992
|
});
|
|
3889
3993
|
}
|
|
@@ -4263,7 +4367,6 @@ const listByResourceGroupNextOperationSpec$3 = {
|
|
|
4263
4367
|
bodyMapper: ErrorResponse
|
|
4264
4368
|
}
|
|
4265
4369
|
},
|
|
4266
|
-
queryParameters: [apiVersion],
|
|
4267
4370
|
urlParameters: [
|
|
4268
4371
|
$host,
|
|
4269
4372
|
subscriptionId,
|
|
@@ -4284,7 +4387,6 @@ const listBySubscriptionNextOperationSpec$3 = {
|
|
|
4284
4387
|
bodyMapper: ErrorResponse
|
|
4285
4388
|
}
|
|
4286
4389
|
},
|
|
4287
|
-
queryParameters: [apiVersion],
|
|
4288
4390
|
urlParameters: [
|
|
4289
4391
|
$host,
|
|
4290
4392
|
subscriptionId,
|
|
@@ -4325,20 +4427,31 @@ class VirtualMachinesImpl {
|
|
|
4325
4427
|
[Symbol.asyncIterator]() {
|
|
4326
4428
|
return this;
|
|
4327
4429
|
},
|
|
4328
|
-
byPage: () => {
|
|
4329
|
-
|
|
4430
|
+
byPage: (settings) => {
|
|
4431
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4432
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4433
|
+
}
|
|
4434
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
4330
4435
|
}
|
|
4331
4436
|
};
|
|
4332
4437
|
}
|
|
4333
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
4438
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
4334
4439
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
4335
|
-
let result
|
|
4336
|
-
|
|
4337
|
-
|
|
4440
|
+
let result;
|
|
4441
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4442
|
+
if (!continuationToken) {
|
|
4443
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
4444
|
+
let page = result.value || [];
|
|
4445
|
+
continuationToken = result.nextLink;
|
|
4446
|
+
setContinuationToken(page, continuationToken);
|
|
4447
|
+
yield yield tslib.__await(page);
|
|
4448
|
+
}
|
|
4338
4449
|
while (continuationToken) {
|
|
4339
4450
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
4340
4451
|
continuationToken = result.nextLink;
|
|
4341
|
-
|
|
4452
|
+
let page = result.value || [];
|
|
4453
|
+
setContinuationToken(page, continuationToken);
|
|
4454
|
+
yield yield tslib.__await(page);
|
|
4342
4455
|
}
|
|
4343
4456
|
});
|
|
4344
4457
|
}
|
|
@@ -4373,20 +4486,31 @@ class VirtualMachinesImpl {
|
|
|
4373
4486
|
[Symbol.asyncIterator]() {
|
|
4374
4487
|
return this;
|
|
4375
4488
|
},
|
|
4376
|
-
byPage: () => {
|
|
4377
|
-
|
|
4489
|
+
byPage: (settings) => {
|
|
4490
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4491
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4492
|
+
}
|
|
4493
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
4378
4494
|
}
|
|
4379
4495
|
};
|
|
4380
4496
|
}
|
|
4381
|
-
listBySubscriptionPagingPage(options) {
|
|
4497
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
4382
4498
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
4383
|
-
let result
|
|
4384
|
-
|
|
4385
|
-
|
|
4499
|
+
let result;
|
|
4500
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4501
|
+
if (!continuationToken) {
|
|
4502
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
4503
|
+
let page = result.value || [];
|
|
4504
|
+
continuationToken = result.nextLink;
|
|
4505
|
+
setContinuationToken(page, continuationToken);
|
|
4506
|
+
yield yield tslib.__await(page);
|
|
4507
|
+
}
|
|
4386
4508
|
while (continuationToken) {
|
|
4387
4509
|
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
4388
4510
|
continuationToken = result.nextLink;
|
|
4389
|
-
|
|
4511
|
+
let page = result.value || [];
|
|
4512
|
+
setContinuationToken(page, continuationToken);
|
|
4513
|
+
yield yield tslib.__await(page);
|
|
4390
4514
|
}
|
|
4391
4515
|
});
|
|
4392
4516
|
}
|
|
@@ -5212,7 +5336,6 @@ const listByResourceGroupNextOperationSpec$2 = {
|
|
|
5212
5336
|
bodyMapper: ErrorResponse
|
|
5213
5337
|
}
|
|
5214
5338
|
},
|
|
5215
|
-
queryParameters: [apiVersion],
|
|
5216
5339
|
urlParameters: [
|
|
5217
5340
|
$host,
|
|
5218
5341
|
subscriptionId,
|
|
@@ -5233,7 +5356,6 @@ const listBySubscriptionNextOperationSpec$2 = {
|
|
|
5233
5356
|
bodyMapper: ErrorResponse
|
|
5234
5357
|
}
|
|
5235
5358
|
},
|
|
5236
|
-
queryParameters: [apiVersion],
|
|
5237
5359
|
urlParameters: [
|
|
5238
5360
|
$host,
|
|
5239
5361
|
subscriptionId,
|
|
@@ -5274,20 +5396,31 @@ class VirtualMachineTemplatesImpl {
|
|
|
5274
5396
|
[Symbol.asyncIterator]() {
|
|
5275
5397
|
return this;
|
|
5276
5398
|
},
|
|
5277
|
-
byPage: () => {
|
|
5278
|
-
|
|
5399
|
+
byPage: (settings) => {
|
|
5400
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5401
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5402
|
+
}
|
|
5403
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
5279
5404
|
}
|
|
5280
5405
|
};
|
|
5281
5406
|
}
|
|
5282
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
5407
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
5283
5408
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
5284
|
-
let result
|
|
5285
|
-
|
|
5286
|
-
|
|
5409
|
+
let result;
|
|
5410
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5411
|
+
if (!continuationToken) {
|
|
5412
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
5413
|
+
let page = result.value || [];
|
|
5414
|
+
continuationToken = result.nextLink;
|
|
5415
|
+
setContinuationToken(page, continuationToken);
|
|
5416
|
+
yield yield tslib.__await(page);
|
|
5417
|
+
}
|
|
5287
5418
|
while (continuationToken) {
|
|
5288
5419
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
5289
5420
|
continuationToken = result.nextLink;
|
|
5290
|
-
|
|
5421
|
+
let page = result.value || [];
|
|
5422
|
+
setContinuationToken(page, continuationToken);
|
|
5423
|
+
yield yield tslib.__await(page);
|
|
5291
5424
|
}
|
|
5292
5425
|
});
|
|
5293
5426
|
}
|
|
@@ -5322,20 +5455,31 @@ class VirtualMachineTemplatesImpl {
|
|
|
5322
5455
|
[Symbol.asyncIterator]() {
|
|
5323
5456
|
return this;
|
|
5324
5457
|
},
|
|
5325
|
-
byPage: () => {
|
|
5326
|
-
|
|
5458
|
+
byPage: (settings) => {
|
|
5459
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5460
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5461
|
+
}
|
|
5462
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
5327
5463
|
}
|
|
5328
5464
|
};
|
|
5329
5465
|
}
|
|
5330
|
-
listBySubscriptionPagingPage(options) {
|
|
5466
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
5331
5467
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
5332
|
-
let result
|
|
5333
|
-
|
|
5334
|
-
|
|
5468
|
+
let result;
|
|
5469
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5470
|
+
if (!continuationToken) {
|
|
5471
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
5472
|
+
let page = result.value || [];
|
|
5473
|
+
continuationToken = result.nextLink;
|
|
5474
|
+
setContinuationToken(page, continuationToken);
|
|
5475
|
+
yield yield tslib.__await(page);
|
|
5476
|
+
}
|
|
5335
5477
|
while (continuationToken) {
|
|
5336
5478
|
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
5337
5479
|
continuationToken = result.nextLink;
|
|
5338
|
-
|
|
5480
|
+
let page = result.value || [];
|
|
5481
|
+
setContinuationToken(page, continuationToken);
|
|
5482
|
+
yield yield tslib.__await(page);
|
|
5339
5483
|
}
|
|
5340
5484
|
});
|
|
5341
5485
|
}
|
|
@@ -5715,7 +5859,6 @@ const listByResourceGroupNextOperationSpec$1 = {
|
|
|
5715
5859
|
bodyMapper: ErrorResponse
|
|
5716
5860
|
}
|
|
5717
5861
|
},
|
|
5718
|
-
queryParameters: [apiVersion],
|
|
5719
5862
|
urlParameters: [
|
|
5720
5863
|
$host,
|
|
5721
5864
|
subscriptionId,
|
|
@@ -5736,7 +5879,6 @@ const listBySubscriptionNextOperationSpec$1 = {
|
|
|
5736
5879
|
bodyMapper: ErrorResponse
|
|
5737
5880
|
}
|
|
5738
5881
|
},
|
|
5739
|
-
queryParameters: [apiVersion],
|
|
5740
5882
|
urlParameters: [
|
|
5741
5883
|
$host,
|
|
5742
5884
|
subscriptionId,
|
|
@@ -5777,20 +5919,31 @@ class AvailabilitySetsImpl {
|
|
|
5777
5919
|
[Symbol.asyncIterator]() {
|
|
5778
5920
|
return this;
|
|
5779
5921
|
},
|
|
5780
|
-
byPage: () => {
|
|
5781
|
-
|
|
5922
|
+
byPage: (settings) => {
|
|
5923
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5924
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5925
|
+
}
|
|
5926
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
5782
5927
|
}
|
|
5783
5928
|
};
|
|
5784
5929
|
}
|
|
5785
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
5930
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
5786
5931
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
5787
|
-
let result
|
|
5788
|
-
|
|
5789
|
-
|
|
5932
|
+
let result;
|
|
5933
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5934
|
+
if (!continuationToken) {
|
|
5935
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
5936
|
+
let page = result.value || [];
|
|
5937
|
+
continuationToken = result.nextLink;
|
|
5938
|
+
setContinuationToken(page, continuationToken);
|
|
5939
|
+
yield yield tslib.__await(page);
|
|
5940
|
+
}
|
|
5790
5941
|
while (continuationToken) {
|
|
5791
5942
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
5792
5943
|
continuationToken = result.nextLink;
|
|
5793
|
-
|
|
5944
|
+
let page = result.value || [];
|
|
5945
|
+
setContinuationToken(page, continuationToken);
|
|
5946
|
+
yield yield tslib.__await(page);
|
|
5794
5947
|
}
|
|
5795
5948
|
});
|
|
5796
5949
|
}
|
|
@@ -5825,20 +5978,31 @@ class AvailabilitySetsImpl {
|
|
|
5825
5978
|
[Symbol.asyncIterator]() {
|
|
5826
5979
|
return this;
|
|
5827
5980
|
},
|
|
5828
|
-
byPage: () => {
|
|
5829
|
-
|
|
5981
|
+
byPage: (settings) => {
|
|
5982
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5983
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5984
|
+
}
|
|
5985
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
5830
5986
|
}
|
|
5831
5987
|
};
|
|
5832
5988
|
}
|
|
5833
|
-
listBySubscriptionPagingPage(options) {
|
|
5989
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
5834
5990
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
5835
|
-
let result
|
|
5836
|
-
|
|
5837
|
-
|
|
5991
|
+
let result;
|
|
5992
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5993
|
+
if (!continuationToken) {
|
|
5994
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
5995
|
+
let page = result.value || [];
|
|
5996
|
+
continuationToken = result.nextLink;
|
|
5997
|
+
setContinuationToken(page, continuationToken);
|
|
5998
|
+
yield yield tslib.__await(page);
|
|
5999
|
+
}
|
|
5838
6000
|
while (continuationToken) {
|
|
5839
6001
|
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
5840
6002
|
continuationToken = result.nextLink;
|
|
5841
|
-
|
|
6003
|
+
let page = result.value || [];
|
|
6004
|
+
setContinuationToken(page, continuationToken);
|
|
6005
|
+
yield yield tslib.__await(page);
|
|
5842
6006
|
}
|
|
5843
6007
|
});
|
|
5844
6008
|
}
|
|
@@ -6217,7 +6381,6 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
6217
6381
|
bodyMapper: ErrorResponse
|
|
6218
6382
|
}
|
|
6219
6383
|
},
|
|
6220
|
-
queryParameters: [apiVersion],
|
|
6221
6384
|
urlParameters: [
|
|
6222
6385
|
$host,
|
|
6223
6386
|
subscriptionId,
|
|
@@ -6238,7 +6401,6 @@ const listBySubscriptionNextOperationSpec = {
|
|
|
6238
6401
|
bodyMapper: ErrorResponse
|
|
6239
6402
|
}
|
|
6240
6403
|
},
|
|
6241
|
-
queryParameters: [apiVersion],
|
|
6242
6404
|
urlParameters: [
|
|
6243
6405
|
$host,
|
|
6244
6406
|
subscriptionId,
|
|
@@ -6280,20 +6442,31 @@ class InventoryItemsImpl {
|
|
|
6280
6442
|
[Symbol.asyncIterator]() {
|
|
6281
6443
|
return this;
|
|
6282
6444
|
},
|
|
6283
|
-
byPage: () => {
|
|
6284
|
-
|
|
6445
|
+
byPage: (settings) => {
|
|
6446
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6447
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
6448
|
+
}
|
|
6449
|
+
return this.listByVMMServerPagingPage(resourceGroupName, vmmServerName, options, settings);
|
|
6285
6450
|
}
|
|
6286
6451
|
};
|
|
6287
6452
|
}
|
|
6288
|
-
listByVMMServerPagingPage(resourceGroupName, vmmServerName, options) {
|
|
6453
|
+
listByVMMServerPagingPage(resourceGroupName, vmmServerName, options, settings) {
|
|
6289
6454
|
return tslib.__asyncGenerator(this, arguments, function* listByVMMServerPagingPage_1() {
|
|
6290
|
-
let result
|
|
6291
|
-
|
|
6292
|
-
|
|
6455
|
+
let result;
|
|
6456
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6457
|
+
if (!continuationToken) {
|
|
6458
|
+
result = yield tslib.__await(this._listByVMMServer(resourceGroupName, vmmServerName, options));
|
|
6459
|
+
let page = result.value || [];
|
|
6460
|
+
continuationToken = result.nextLink;
|
|
6461
|
+
setContinuationToken(page, continuationToken);
|
|
6462
|
+
yield yield tslib.__await(page);
|
|
6463
|
+
}
|
|
6293
6464
|
while (continuationToken) {
|
|
6294
6465
|
result = yield tslib.__await(this._listByVMMServerNext(resourceGroupName, vmmServerName, continuationToken, options));
|
|
6295
6466
|
continuationToken = result.nextLink;
|
|
6296
|
-
|
|
6467
|
+
let page = result.value || [];
|
|
6468
|
+
setContinuationToken(page, continuationToken);
|
|
6469
|
+
yield yield tslib.__await(page);
|
|
6297
6470
|
}
|
|
6298
6471
|
});
|
|
6299
6472
|
}
|
|
@@ -6466,7 +6639,6 @@ const listByVMMServerNextOperationSpec = {
|
|
|
6466
6639
|
bodyMapper: ErrorResponse
|
|
6467
6640
|
}
|
|
6468
6641
|
},
|
|
6469
|
-
queryParameters: [apiVersion],
|
|
6470
6642
|
urlParameters: [
|
|
6471
6643
|
$host,
|
|
6472
6644
|
subscriptionId,
|
|
@@ -6494,7 +6666,7 @@ class Scvmm extends coreClient__namespace.ServiceClient {
|
|
|
6494
6666
|
* @param options The parameter options
|
|
6495
6667
|
*/
|
|
6496
6668
|
constructor(credentials, subscriptionId, options) {
|
|
6497
|
-
var _a, _b;
|
|
6669
|
+
var _a, _b, _c;
|
|
6498
6670
|
if (credentials === undefined) {
|
|
6499
6671
|
throw new Error("'credentials' cannot be null");
|
|
6500
6672
|
}
|
|
@@ -6509,32 +6681,34 @@ class Scvmm extends coreClient__namespace.ServiceClient {
|
|
|
6509
6681
|
requestContentType: "application/json; charset=utf-8",
|
|
6510
6682
|
credential: credentials
|
|
6511
6683
|
};
|
|
6512
|
-
const packageDetails = `azsdk-js-arm-scvmm/1.0.0-beta.
|
|
6684
|
+
const packageDetails = `azsdk-js-arm-scvmm/1.0.0-beta.3`;
|
|
6513
6685
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
6514
6686
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
6515
6687
|
: `${packageDetails}`;
|
|
6516
|
-
if (!options.credentialScopes) {
|
|
6517
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
6518
|
-
}
|
|
6519
6688
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
6520
6689
|
userAgentPrefix
|
|
6521
|
-
},
|
|
6690
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
6522
6691
|
super(optionsWithDefaults);
|
|
6692
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
6523
6693
|
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
6524
6694
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
6525
|
-
|
|
6695
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
6526
6696
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
|
|
6531
|
-
|
|
6532
|
-
|
|
6533
|
-
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
|
|
6537
|
-
|
|
6697
|
+
}
|
|
6698
|
+
if (!options ||
|
|
6699
|
+
!options.pipeline ||
|
|
6700
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
6701
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
6702
|
+
this.pipeline.removePolicy({
|
|
6703
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
6704
|
+
});
|
|
6705
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
6706
|
+
credential: credentials,
|
|
6707
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
6708
|
+
challengeCallbacks: {
|
|
6709
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
6710
|
+
}
|
|
6711
|
+
}));
|
|
6538
6712
|
}
|
|
6539
6713
|
// Parameter assignments
|
|
6540
6714
|
this.subscriptionId = subscriptionId;
|
|
@@ -6581,4 +6755,5 @@ class Scvmm extends coreClient__namespace.ServiceClient {
|
|
|
6581
6755
|
}
|
|
6582
6756
|
|
|
6583
6757
|
exports.Scvmm = Scvmm;
|
|
6758
|
+
exports.getContinuationToken = getContinuationToken;
|
|
6584
6759
|
//# sourceMappingURL=index.js.map
|