@azure/arm-vmwarecloudsimple 3.0.2-alpha.20230127.1 → 3.1.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 +27 -10
- 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 +7 -5
- 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/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.
|
|
@@ -2888,20 +2920,31 @@ class OperationsImpl {
|
|
|
2888
2920
|
[Symbol.asyncIterator]() {
|
|
2889
2921
|
return this;
|
|
2890
2922
|
},
|
|
2891
|
-
byPage: () => {
|
|
2892
|
-
|
|
2923
|
+
byPage: (settings) => {
|
|
2924
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2925
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2926
|
+
}
|
|
2927
|
+
return this.listPagingPage(options, settings);
|
|
2893
2928
|
}
|
|
2894
2929
|
};
|
|
2895
2930
|
}
|
|
2896
|
-
listPagingPage(options) {
|
|
2931
|
+
listPagingPage(options, settings) {
|
|
2897
2932
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2898
|
-
let result
|
|
2899
|
-
|
|
2900
|
-
|
|
2933
|
+
let result;
|
|
2934
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2935
|
+
if (!continuationToken) {
|
|
2936
|
+
result = yield tslib.__await(this._list(options));
|
|
2937
|
+
let page = result.value || [];
|
|
2938
|
+
continuationToken = result.nextLink;
|
|
2939
|
+
setContinuationToken(page, continuationToken);
|
|
2940
|
+
yield yield tslib.__await(page);
|
|
2941
|
+
}
|
|
2901
2942
|
while (continuationToken) {
|
|
2902
2943
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
2903
2944
|
continuationToken = result.nextLink;
|
|
2904
|
-
|
|
2945
|
+
let page = result.value || [];
|
|
2946
|
+
setContinuationToken(page, continuationToken);
|
|
2947
|
+
yield yield tslib.__await(page);
|
|
2905
2948
|
}
|
|
2906
2949
|
});
|
|
2907
2950
|
}
|
|
@@ -3004,7 +3047,6 @@ const listNextOperationSpec$7 = {
|
|
|
3004
3047
|
bodyMapper: CsrpError
|
|
3005
3048
|
}
|
|
3006
3049
|
},
|
|
3007
|
-
queryParameters: [apiVersion],
|
|
3008
3050
|
urlParameters: [$host, nextLink],
|
|
3009
3051
|
headerParameters: [accept],
|
|
3010
3052
|
serializer: serializer$a
|
|
@@ -3068,20 +3110,31 @@ class DedicatedCloudNodesImpl {
|
|
|
3068
3110
|
[Symbol.asyncIterator]() {
|
|
3069
3111
|
return this;
|
|
3070
3112
|
},
|
|
3071
|
-
byPage: () => {
|
|
3072
|
-
|
|
3113
|
+
byPage: (settings) => {
|
|
3114
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3115
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3116
|
+
}
|
|
3117
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
3073
3118
|
}
|
|
3074
3119
|
};
|
|
3075
3120
|
}
|
|
3076
|
-
listBySubscriptionPagingPage(options) {
|
|
3121
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
3077
3122
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
3078
|
-
let result
|
|
3079
|
-
|
|
3080
|
-
|
|
3123
|
+
let result;
|
|
3124
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3125
|
+
if (!continuationToken) {
|
|
3126
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
3127
|
+
let page = result.value || [];
|
|
3128
|
+
continuationToken = result.nextLink;
|
|
3129
|
+
setContinuationToken(page, continuationToken);
|
|
3130
|
+
yield yield tslib.__await(page);
|
|
3131
|
+
}
|
|
3081
3132
|
while (continuationToken) {
|
|
3082
3133
|
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
3083
3134
|
continuationToken = result.nextLink;
|
|
3084
|
-
|
|
3135
|
+
let page = result.value || [];
|
|
3136
|
+
setContinuationToken(page, continuationToken);
|
|
3137
|
+
yield yield tslib.__await(page);
|
|
3085
3138
|
}
|
|
3086
3139
|
});
|
|
3087
3140
|
}
|
|
@@ -3117,20 +3170,31 @@ class DedicatedCloudNodesImpl {
|
|
|
3117
3170
|
[Symbol.asyncIterator]() {
|
|
3118
3171
|
return this;
|
|
3119
3172
|
},
|
|
3120
|
-
byPage: () => {
|
|
3121
|
-
|
|
3173
|
+
byPage: (settings) => {
|
|
3174
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3175
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3176
|
+
}
|
|
3177
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
3122
3178
|
}
|
|
3123
3179
|
};
|
|
3124
3180
|
}
|
|
3125
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
3181
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
3126
3182
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
3127
|
-
let result
|
|
3128
|
-
|
|
3129
|
-
|
|
3183
|
+
let result;
|
|
3184
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3185
|
+
if (!continuationToken) {
|
|
3186
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
3187
|
+
let page = result.value || [];
|
|
3188
|
+
continuationToken = result.nextLink;
|
|
3189
|
+
setContinuationToken(page, continuationToken);
|
|
3190
|
+
yield yield tslib.__await(page);
|
|
3191
|
+
}
|
|
3130
3192
|
while (continuationToken) {
|
|
3131
3193
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
3132
3194
|
continuationToken = result.nextLink;
|
|
3133
|
-
|
|
3195
|
+
let page = result.value || [];
|
|
3196
|
+
setContinuationToken(page, continuationToken);
|
|
3197
|
+
yield yield tslib.__await(page);
|
|
3134
3198
|
}
|
|
3135
3199
|
});
|
|
3136
3200
|
}
|
|
@@ -3442,12 +3506,6 @@ const listBySubscriptionNextOperationSpec$2 = {
|
|
|
3442
3506
|
bodyMapper: CsrpError
|
|
3443
3507
|
}
|
|
3444
3508
|
},
|
|
3445
|
-
queryParameters: [
|
|
3446
|
-
apiVersion,
|
|
3447
|
-
filter,
|
|
3448
|
-
top,
|
|
3449
|
-
skipToken
|
|
3450
|
-
],
|
|
3451
3509
|
urlParameters: [
|
|
3452
3510
|
$host,
|
|
3453
3511
|
subscriptionId,
|
|
@@ -3467,12 +3525,6 @@ const listByResourceGroupNextOperationSpec$2 = {
|
|
|
3467
3525
|
bodyMapper: CsrpError
|
|
3468
3526
|
}
|
|
3469
3527
|
},
|
|
3470
|
-
queryParameters: [
|
|
3471
|
-
apiVersion,
|
|
3472
|
-
filter,
|
|
3473
|
-
top,
|
|
3474
|
-
skipToken
|
|
3475
|
-
],
|
|
3476
3528
|
urlParameters: [
|
|
3477
3529
|
$host,
|
|
3478
3530
|
subscriptionId,
|
|
@@ -3513,20 +3565,31 @@ class DedicatedCloudServicesImpl {
|
|
|
3513
3565
|
[Symbol.asyncIterator]() {
|
|
3514
3566
|
return this;
|
|
3515
3567
|
},
|
|
3516
|
-
byPage: () => {
|
|
3517
|
-
|
|
3568
|
+
byPage: (settings) => {
|
|
3569
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3570
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3571
|
+
}
|
|
3572
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
3518
3573
|
}
|
|
3519
3574
|
};
|
|
3520
3575
|
}
|
|
3521
|
-
listBySubscriptionPagingPage(options) {
|
|
3576
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
3522
3577
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
3523
|
-
let result
|
|
3524
|
-
|
|
3525
|
-
|
|
3578
|
+
let result;
|
|
3579
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3580
|
+
if (!continuationToken) {
|
|
3581
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
3582
|
+
let page = result.value || [];
|
|
3583
|
+
continuationToken = result.nextLink;
|
|
3584
|
+
setContinuationToken(page, continuationToken);
|
|
3585
|
+
yield yield tslib.__await(page);
|
|
3586
|
+
}
|
|
3526
3587
|
while (continuationToken) {
|
|
3527
3588
|
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
3528
3589
|
continuationToken = result.nextLink;
|
|
3529
|
-
|
|
3590
|
+
let page = result.value || [];
|
|
3591
|
+
setContinuationToken(page, continuationToken);
|
|
3592
|
+
yield yield tslib.__await(page);
|
|
3530
3593
|
}
|
|
3531
3594
|
});
|
|
3532
3595
|
}
|
|
@@ -3562,20 +3625,31 @@ class DedicatedCloudServicesImpl {
|
|
|
3562
3625
|
[Symbol.asyncIterator]() {
|
|
3563
3626
|
return this;
|
|
3564
3627
|
},
|
|
3565
|
-
byPage: () => {
|
|
3566
|
-
|
|
3628
|
+
byPage: (settings) => {
|
|
3629
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3630
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3631
|
+
}
|
|
3632
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
3567
3633
|
}
|
|
3568
3634
|
};
|
|
3569
3635
|
}
|
|
3570
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
3636
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
3571
3637
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
3572
|
-
let result
|
|
3573
|
-
|
|
3574
|
-
|
|
3638
|
+
let result;
|
|
3639
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3640
|
+
if (!continuationToken) {
|
|
3641
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
3642
|
+
let page = result.value || [];
|
|
3643
|
+
continuationToken = result.nextLink;
|
|
3644
|
+
setContinuationToken(page, continuationToken);
|
|
3645
|
+
yield yield tslib.__await(page);
|
|
3646
|
+
}
|
|
3575
3647
|
while (continuationToken) {
|
|
3576
3648
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
3577
3649
|
continuationToken = result.nextLink;
|
|
3578
|
-
|
|
3650
|
+
let page = result.value || [];
|
|
3651
|
+
setContinuationToken(page, continuationToken);
|
|
3652
|
+
yield yield tslib.__await(page);
|
|
3579
3653
|
}
|
|
3580
3654
|
});
|
|
3581
3655
|
}
|
|
@@ -3869,12 +3943,6 @@ const listBySubscriptionNextOperationSpec$1 = {
|
|
|
3869
3943
|
bodyMapper: CsrpError
|
|
3870
3944
|
}
|
|
3871
3945
|
},
|
|
3872
|
-
queryParameters: [
|
|
3873
|
-
apiVersion,
|
|
3874
|
-
filter,
|
|
3875
|
-
top,
|
|
3876
|
-
skipToken
|
|
3877
|
-
],
|
|
3878
3946
|
urlParameters: [
|
|
3879
3947
|
$host,
|
|
3880
3948
|
subscriptionId,
|
|
@@ -3894,12 +3962,6 @@ const listByResourceGroupNextOperationSpec$1 = {
|
|
|
3894
3962
|
bodyMapper: CsrpError
|
|
3895
3963
|
}
|
|
3896
3964
|
},
|
|
3897
|
-
queryParameters: [
|
|
3898
|
-
apiVersion,
|
|
3899
|
-
filter,
|
|
3900
|
-
top,
|
|
3901
|
-
skipToken
|
|
3902
|
-
],
|
|
3903
3965
|
urlParameters: [
|
|
3904
3966
|
$host,
|
|
3905
3967
|
subscriptionId,
|
|
@@ -3941,20 +4003,31 @@ class SkusAvailabilityImpl {
|
|
|
3941
4003
|
[Symbol.asyncIterator]() {
|
|
3942
4004
|
return this;
|
|
3943
4005
|
},
|
|
3944
|
-
byPage: () => {
|
|
3945
|
-
|
|
4006
|
+
byPage: (settings) => {
|
|
4007
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4008
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4009
|
+
}
|
|
4010
|
+
return this.listPagingPage(regionId, options, settings);
|
|
3946
4011
|
}
|
|
3947
4012
|
};
|
|
3948
4013
|
}
|
|
3949
|
-
listPagingPage(regionId, options) {
|
|
4014
|
+
listPagingPage(regionId, options, settings) {
|
|
3950
4015
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3951
|
-
let result
|
|
3952
|
-
|
|
3953
|
-
|
|
4016
|
+
let result;
|
|
4017
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4018
|
+
if (!continuationToken) {
|
|
4019
|
+
result = yield tslib.__await(this._list(regionId, options));
|
|
4020
|
+
let page = result.value || [];
|
|
4021
|
+
continuationToken = result.nextLink;
|
|
4022
|
+
setContinuationToken(page, continuationToken);
|
|
4023
|
+
yield yield tslib.__await(page);
|
|
4024
|
+
}
|
|
3954
4025
|
while (continuationToken) {
|
|
3955
4026
|
result = yield tslib.__await(this._listNext(regionId, continuationToken, options));
|
|
3956
4027
|
continuationToken = result.nextLink;
|
|
3957
|
-
|
|
4028
|
+
let page = result.value || [];
|
|
4029
|
+
setContinuationToken(page, continuationToken);
|
|
4030
|
+
yield yield tslib.__await(page);
|
|
3958
4031
|
}
|
|
3959
4032
|
});
|
|
3960
4033
|
}
|
|
@@ -4027,7 +4100,6 @@ const listNextOperationSpec$6 = {
|
|
|
4027
4100
|
bodyMapper: CsrpError
|
|
4028
4101
|
}
|
|
4029
4102
|
},
|
|
4030
|
-
queryParameters: [apiVersion, skuId],
|
|
4031
4103
|
urlParameters: [
|
|
4032
4104
|
$host,
|
|
4033
4105
|
subscriptionId,
|
|
@@ -4069,20 +4141,31 @@ class PrivateCloudsImpl {
|
|
|
4069
4141
|
[Symbol.asyncIterator]() {
|
|
4070
4142
|
return this;
|
|
4071
4143
|
},
|
|
4072
|
-
byPage: () => {
|
|
4073
|
-
|
|
4144
|
+
byPage: (settings) => {
|
|
4145
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4146
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4147
|
+
}
|
|
4148
|
+
return this.listPagingPage(regionId, options, settings);
|
|
4074
4149
|
}
|
|
4075
4150
|
};
|
|
4076
4151
|
}
|
|
4077
|
-
listPagingPage(regionId, options) {
|
|
4152
|
+
listPagingPage(regionId, options, settings) {
|
|
4078
4153
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4079
|
-
let result
|
|
4080
|
-
|
|
4081
|
-
|
|
4154
|
+
let result;
|
|
4155
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4156
|
+
if (!continuationToken) {
|
|
4157
|
+
result = yield tslib.__await(this._list(regionId, options));
|
|
4158
|
+
let page = result.value || [];
|
|
4159
|
+
continuationToken = result.nextLink;
|
|
4160
|
+
setContinuationToken(page, continuationToken);
|
|
4161
|
+
yield yield tslib.__await(page);
|
|
4162
|
+
}
|
|
4082
4163
|
while (continuationToken) {
|
|
4083
4164
|
result = yield tslib.__await(this._listNext(regionId, continuationToken, options));
|
|
4084
4165
|
continuationToken = result.nextLink;
|
|
4085
|
-
|
|
4166
|
+
let page = result.value || [];
|
|
4167
|
+
setContinuationToken(page, continuationToken);
|
|
4168
|
+
yield yield tslib.__await(page);
|
|
4086
4169
|
}
|
|
4087
4170
|
});
|
|
4088
4171
|
}
|
|
@@ -4185,7 +4268,6 @@ const listNextOperationSpec$5 = {
|
|
|
4185
4268
|
bodyMapper: CsrpError
|
|
4186
4269
|
}
|
|
4187
4270
|
},
|
|
4188
|
-
queryParameters: [apiVersion],
|
|
4189
4271
|
urlParameters: [
|
|
4190
4272
|
$host,
|
|
4191
4273
|
subscriptionId,
|
|
@@ -4228,20 +4310,31 @@ class CustomizationPoliciesImpl {
|
|
|
4228
4310
|
[Symbol.asyncIterator]() {
|
|
4229
4311
|
return this;
|
|
4230
4312
|
},
|
|
4231
|
-
byPage: () => {
|
|
4232
|
-
|
|
4313
|
+
byPage: (settings) => {
|
|
4314
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4315
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4316
|
+
}
|
|
4317
|
+
return this.listPagingPage(regionId, pcName, options, settings);
|
|
4233
4318
|
}
|
|
4234
4319
|
};
|
|
4235
4320
|
}
|
|
4236
|
-
listPagingPage(regionId, pcName, options) {
|
|
4321
|
+
listPagingPage(regionId, pcName, options, settings) {
|
|
4237
4322
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4238
|
-
let result
|
|
4239
|
-
|
|
4240
|
-
|
|
4323
|
+
let result;
|
|
4324
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4325
|
+
if (!continuationToken) {
|
|
4326
|
+
result = yield tslib.__await(this._list(regionId, pcName, options));
|
|
4327
|
+
let page = result.value || [];
|
|
4328
|
+
continuationToken = result.nextLink;
|
|
4329
|
+
setContinuationToken(page, continuationToken);
|
|
4330
|
+
yield yield tslib.__await(page);
|
|
4331
|
+
}
|
|
4241
4332
|
while (continuationToken) {
|
|
4242
4333
|
result = yield tslib.__await(this._listNext(regionId, pcName, continuationToken, options));
|
|
4243
4334
|
continuationToken = result.nextLink;
|
|
4244
|
-
|
|
4335
|
+
let page = result.value || [];
|
|
4336
|
+
setContinuationToken(page, continuationToken);
|
|
4337
|
+
yield yield tslib.__await(page);
|
|
4245
4338
|
}
|
|
4246
4339
|
});
|
|
4247
4340
|
}
|
|
@@ -4349,7 +4442,6 @@ const listNextOperationSpec$4 = {
|
|
|
4349
4442
|
bodyMapper: CsrpError
|
|
4350
4443
|
}
|
|
4351
4444
|
},
|
|
4352
|
-
queryParameters: [apiVersion, filter],
|
|
4353
4445
|
urlParameters: [
|
|
4354
4446
|
$host,
|
|
4355
4447
|
subscriptionId,
|
|
@@ -4393,20 +4485,31 @@ class ResourcePoolsImpl {
|
|
|
4393
4485
|
[Symbol.asyncIterator]() {
|
|
4394
4486
|
return this;
|
|
4395
4487
|
},
|
|
4396
|
-
byPage: () => {
|
|
4397
|
-
|
|
4488
|
+
byPage: (settings) => {
|
|
4489
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4490
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4491
|
+
}
|
|
4492
|
+
return this.listPagingPage(regionId, pcName, options, settings);
|
|
4398
4493
|
}
|
|
4399
4494
|
};
|
|
4400
4495
|
}
|
|
4401
|
-
listPagingPage(regionId, pcName, options) {
|
|
4496
|
+
listPagingPage(regionId, pcName, options, settings) {
|
|
4402
4497
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4403
|
-
let result
|
|
4404
|
-
|
|
4405
|
-
|
|
4498
|
+
let result;
|
|
4499
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4500
|
+
if (!continuationToken) {
|
|
4501
|
+
result = yield tslib.__await(this._list(regionId, pcName, options));
|
|
4502
|
+
let page = result.value || [];
|
|
4503
|
+
continuationToken = result.nextLink;
|
|
4504
|
+
setContinuationToken(page, continuationToken);
|
|
4505
|
+
yield yield tslib.__await(page);
|
|
4506
|
+
}
|
|
4406
4507
|
while (continuationToken) {
|
|
4407
4508
|
result = yield tslib.__await(this._listNext(regionId, pcName, continuationToken, options));
|
|
4408
4509
|
continuationToken = result.nextLink;
|
|
4409
|
-
|
|
4510
|
+
let page = result.value || [];
|
|
4511
|
+
setContinuationToken(page, continuationToken);
|
|
4512
|
+
yield yield tslib.__await(page);
|
|
4410
4513
|
}
|
|
4411
4514
|
});
|
|
4412
4515
|
}
|
|
@@ -4514,7 +4617,6 @@ const listNextOperationSpec$3 = {
|
|
|
4514
4617
|
bodyMapper: CsrpError
|
|
4515
4618
|
}
|
|
4516
4619
|
},
|
|
4517
|
-
queryParameters: [apiVersion],
|
|
4518
4620
|
urlParameters: [
|
|
4519
4621
|
$host,
|
|
4520
4622
|
subscriptionId,
|
|
@@ -4559,20 +4661,31 @@ class VirtualMachineTemplatesImpl {
|
|
|
4559
4661
|
[Symbol.asyncIterator]() {
|
|
4560
4662
|
return this;
|
|
4561
4663
|
},
|
|
4562
|
-
byPage: () => {
|
|
4563
|
-
|
|
4664
|
+
byPage: (settings) => {
|
|
4665
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4666
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4667
|
+
}
|
|
4668
|
+
return this.listPagingPage(pcName, regionId, resourcePoolName, options, settings);
|
|
4564
4669
|
}
|
|
4565
4670
|
};
|
|
4566
4671
|
}
|
|
4567
|
-
listPagingPage(pcName, regionId, resourcePoolName, options) {
|
|
4672
|
+
listPagingPage(pcName, regionId, resourcePoolName, options, settings) {
|
|
4568
4673
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4569
|
-
let result
|
|
4570
|
-
|
|
4571
|
-
|
|
4674
|
+
let result;
|
|
4675
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4676
|
+
if (!continuationToken) {
|
|
4677
|
+
result = yield tslib.__await(this._list(pcName, regionId, resourcePoolName, options));
|
|
4678
|
+
let page = result.value || [];
|
|
4679
|
+
continuationToken = result.nextLink;
|
|
4680
|
+
setContinuationToken(page, continuationToken);
|
|
4681
|
+
yield yield tslib.__await(page);
|
|
4682
|
+
}
|
|
4572
4683
|
while (continuationToken) {
|
|
4573
|
-
result = yield tslib.__await(this._listNext(pcName, regionId,
|
|
4684
|
+
result = yield tslib.__await(this._listNext(pcName, regionId, continuationToken, options));
|
|
4574
4685
|
continuationToken = result.nextLink;
|
|
4575
|
-
|
|
4686
|
+
let page = result.value || [];
|
|
4687
|
+
setContinuationToken(page, continuationToken);
|
|
4688
|
+
yield yield tslib.__await(page);
|
|
4576
4689
|
}
|
|
4577
4690
|
});
|
|
4578
4691
|
}
|
|
@@ -4618,12 +4731,11 @@ class VirtualMachineTemplatesImpl {
|
|
|
4618
4731
|
* ListNext
|
|
4619
4732
|
* @param pcName The private cloud name
|
|
4620
4733
|
* @param regionId The region Id (westus, eastus)
|
|
4621
|
-
* @param resourcePoolName Resource pool used to derive vSphere cluster which contains VM templates
|
|
4622
4734
|
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
4623
4735
|
* @param options The options parameters.
|
|
4624
4736
|
*/
|
|
4625
|
-
_listNext(pcName, regionId,
|
|
4626
|
-
return this.client.sendOperationRequest({ pcName, regionId,
|
|
4737
|
+
_listNext(pcName, regionId, nextLink, options) {
|
|
4738
|
+
return this.client.sendOperationRequest({ pcName, regionId, nextLink, options }, listNextOperationSpec$2);
|
|
4627
4739
|
}
|
|
4628
4740
|
}
|
|
4629
4741
|
// Operation Specifications
|
|
@@ -4682,7 +4794,6 @@ const listNextOperationSpec$2 = {
|
|
|
4682
4794
|
bodyMapper: CsrpError
|
|
4683
4795
|
}
|
|
4684
4796
|
},
|
|
4685
|
-
queryParameters: [apiVersion, resourcePoolName1],
|
|
4686
4797
|
urlParameters: [
|
|
4687
4798
|
$host,
|
|
4688
4799
|
subscriptionId,
|
|
@@ -4727,20 +4838,31 @@ class VirtualNetworksImpl {
|
|
|
4727
4838
|
[Symbol.asyncIterator]() {
|
|
4728
4839
|
return this;
|
|
4729
4840
|
},
|
|
4730
|
-
byPage: () => {
|
|
4731
|
-
|
|
4841
|
+
byPage: (settings) => {
|
|
4842
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4843
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4844
|
+
}
|
|
4845
|
+
return this.listPagingPage(regionId, pcName, resourcePoolName, options, settings);
|
|
4732
4846
|
}
|
|
4733
4847
|
};
|
|
4734
4848
|
}
|
|
4735
|
-
listPagingPage(regionId, pcName, resourcePoolName, options) {
|
|
4849
|
+
listPagingPage(regionId, pcName, resourcePoolName, options, settings) {
|
|
4736
4850
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4737
|
-
let result
|
|
4738
|
-
|
|
4739
|
-
|
|
4851
|
+
let result;
|
|
4852
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4853
|
+
if (!continuationToken) {
|
|
4854
|
+
result = yield tslib.__await(this._list(regionId, pcName, resourcePoolName, options));
|
|
4855
|
+
let page = result.value || [];
|
|
4856
|
+
continuationToken = result.nextLink;
|
|
4857
|
+
setContinuationToken(page, continuationToken);
|
|
4858
|
+
yield yield tslib.__await(page);
|
|
4859
|
+
}
|
|
4740
4860
|
while (continuationToken) {
|
|
4741
|
-
result = yield tslib.__await(this._listNext(regionId, pcName,
|
|
4861
|
+
result = yield tslib.__await(this._listNext(regionId, pcName, continuationToken, options));
|
|
4742
4862
|
continuationToken = result.nextLink;
|
|
4743
|
-
|
|
4863
|
+
let page = result.value || [];
|
|
4864
|
+
setContinuationToken(page, continuationToken);
|
|
4865
|
+
yield yield tslib.__await(page);
|
|
4744
4866
|
}
|
|
4745
4867
|
});
|
|
4746
4868
|
}
|
|
@@ -4786,12 +4908,11 @@ class VirtualNetworksImpl {
|
|
|
4786
4908
|
* ListNext
|
|
4787
4909
|
* @param regionId The region Id (westus, eastus)
|
|
4788
4910
|
* @param pcName The private cloud name
|
|
4789
|
-
* @param resourcePoolName Resource pool used to derive vSphere cluster which contains virtual networks
|
|
4790
4911
|
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
4791
4912
|
* @param options The options parameters.
|
|
4792
4913
|
*/
|
|
4793
|
-
_listNext(regionId, pcName,
|
|
4794
|
-
return this.client.sendOperationRequest({ regionId, pcName,
|
|
4914
|
+
_listNext(regionId, pcName, nextLink, options) {
|
|
4915
|
+
return this.client.sendOperationRequest({ regionId, pcName, nextLink, options }, listNextOperationSpec$1);
|
|
4795
4916
|
}
|
|
4796
4917
|
}
|
|
4797
4918
|
// Operation Specifications
|
|
@@ -4850,7 +4971,6 @@ const listNextOperationSpec$1 = {
|
|
|
4850
4971
|
bodyMapper: CsrpError
|
|
4851
4972
|
}
|
|
4852
4973
|
},
|
|
4853
|
-
queryParameters: [apiVersion, resourcePoolName1],
|
|
4854
4974
|
urlParameters: [
|
|
4855
4975
|
$host,
|
|
4856
4976
|
subscriptionId,
|
|
@@ -4893,20 +5013,31 @@ class UsagesImpl {
|
|
|
4893
5013
|
[Symbol.asyncIterator]() {
|
|
4894
5014
|
return this;
|
|
4895
5015
|
},
|
|
4896
|
-
byPage: () => {
|
|
4897
|
-
|
|
5016
|
+
byPage: (settings) => {
|
|
5017
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5018
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5019
|
+
}
|
|
5020
|
+
return this.listPagingPage(regionId, options, settings);
|
|
4898
5021
|
}
|
|
4899
5022
|
};
|
|
4900
5023
|
}
|
|
4901
|
-
listPagingPage(regionId, options) {
|
|
5024
|
+
listPagingPage(regionId, options, settings) {
|
|
4902
5025
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4903
|
-
let result
|
|
4904
|
-
|
|
4905
|
-
|
|
5026
|
+
let result;
|
|
5027
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5028
|
+
if (!continuationToken) {
|
|
5029
|
+
result = yield tslib.__await(this._list(regionId, options));
|
|
5030
|
+
let page = result.value || [];
|
|
5031
|
+
continuationToken = result.nextLink;
|
|
5032
|
+
setContinuationToken(page, continuationToken);
|
|
5033
|
+
yield yield tslib.__await(page);
|
|
5034
|
+
}
|
|
4906
5035
|
while (continuationToken) {
|
|
4907
5036
|
result = yield tslib.__await(this._listNext(regionId, continuationToken, options));
|
|
4908
5037
|
continuationToken = result.nextLink;
|
|
4909
|
-
|
|
5038
|
+
let page = result.value || [];
|
|
5039
|
+
setContinuationToken(page, continuationToken);
|
|
5040
|
+
yield yield tslib.__await(page);
|
|
4910
5041
|
}
|
|
4911
5042
|
});
|
|
4912
5043
|
}
|
|
@@ -4979,7 +5110,6 @@ const listNextOperationSpec = {
|
|
|
4979
5110
|
bodyMapper: CsrpError
|
|
4980
5111
|
}
|
|
4981
5112
|
},
|
|
4982
|
-
queryParameters: [apiVersion, filter],
|
|
4983
5113
|
urlParameters: [
|
|
4984
5114
|
$host,
|
|
4985
5115
|
subscriptionId,
|
|
@@ -5020,20 +5150,31 @@ class VirtualMachinesImpl {
|
|
|
5020
5150
|
[Symbol.asyncIterator]() {
|
|
5021
5151
|
return this;
|
|
5022
5152
|
},
|
|
5023
|
-
byPage: () => {
|
|
5024
|
-
|
|
5153
|
+
byPage: (settings) => {
|
|
5154
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5155
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5156
|
+
}
|
|
5157
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
5025
5158
|
}
|
|
5026
5159
|
};
|
|
5027
5160
|
}
|
|
5028
|
-
listBySubscriptionPagingPage(options) {
|
|
5161
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
5029
5162
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
5030
|
-
let result
|
|
5031
|
-
|
|
5032
|
-
|
|
5163
|
+
let result;
|
|
5164
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5165
|
+
if (!continuationToken) {
|
|
5166
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
5167
|
+
let page = result.value || [];
|
|
5168
|
+
continuationToken = result.nextLink;
|
|
5169
|
+
setContinuationToken(page, continuationToken);
|
|
5170
|
+
yield yield tslib.__await(page);
|
|
5171
|
+
}
|
|
5033
5172
|
while (continuationToken) {
|
|
5034
5173
|
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
5035
5174
|
continuationToken = result.nextLink;
|
|
5036
|
-
|
|
5175
|
+
let page = result.value || [];
|
|
5176
|
+
setContinuationToken(page, continuationToken);
|
|
5177
|
+
yield yield tslib.__await(page);
|
|
5037
5178
|
}
|
|
5038
5179
|
});
|
|
5039
5180
|
}
|
|
@@ -5069,20 +5210,31 @@ class VirtualMachinesImpl {
|
|
|
5069
5210
|
[Symbol.asyncIterator]() {
|
|
5070
5211
|
return this;
|
|
5071
5212
|
},
|
|
5072
|
-
byPage: () => {
|
|
5073
|
-
|
|
5213
|
+
byPage: (settings) => {
|
|
5214
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5215
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5216
|
+
}
|
|
5217
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
5074
5218
|
}
|
|
5075
5219
|
};
|
|
5076
5220
|
}
|
|
5077
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
5221
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
5078
5222
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
5079
|
-
let result
|
|
5080
|
-
|
|
5081
|
-
|
|
5223
|
+
let result;
|
|
5224
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5225
|
+
if (!continuationToken) {
|
|
5226
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
5227
|
+
let page = result.value || [];
|
|
5228
|
+
continuationToken = result.nextLink;
|
|
5229
|
+
setContinuationToken(page, continuationToken);
|
|
5230
|
+
yield yield tslib.__await(page);
|
|
5231
|
+
}
|
|
5082
5232
|
while (continuationToken) {
|
|
5083
5233
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
5084
5234
|
continuationToken = result.nextLink;
|
|
5085
|
-
|
|
5235
|
+
let page = result.value || [];
|
|
5236
|
+
setContinuationToken(page, continuationToken);
|
|
5237
|
+
yield yield tslib.__await(page);
|
|
5086
5238
|
}
|
|
5087
5239
|
});
|
|
5088
5240
|
}
|
|
@@ -5654,12 +5806,6 @@ const listBySubscriptionNextOperationSpec = {
|
|
|
5654
5806
|
bodyMapper: CsrpError
|
|
5655
5807
|
}
|
|
5656
5808
|
},
|
|
5657
|
-
queryParameters: [
|
|
5658
|
-
apiVersion,
|
|
5659
|
-
filter,
|
|
5660
|
-
top,
|
|
5661
|
-
skipToken
|
|
5662
|
-
],
|
|
5663
5809
|
urlParameters: [
|
|
5664
5810
|
$host,
|
|
5665
5811
|
subscriptionId,
|
|
@@ -5679,12 +5825,6 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
5679
5825
|
bodyMapper: CsrpError
|
|
5680
5826
|
}
|
|
5681
5827
|
},
|
|
5682
|
-
queryParameters: [
|
|
5683
|
-
apiVersion,
|
|
5684
|
-
filter,
|
|
5685
|
-
top,
|
|
5686
|
-
skipToken
|
|
5687
|
-
],
|
|
5688
5828
|
urlParameters: [
|
|
5689
5829
|
$host,
|
|
5690
5830
|
subscriptionId,
|
|
@@ -5710,7 +5850,7 @@ class VMwareCloudSimple extends coreClient__namespace.ServiceClient {
|
|
|
5710
5850
|
* @param options The parameter options
|
|
5711
5851
|
*/
|
|
5712
5852
|
constructor(credentials, subscriptionId, options) {
|
|
5713
|
-
var _a, _b;
|
|
5853
|
+
var _a, _b, _c;
|
|
5714
5854
|
if (credentials === undefined) {
|
|
5715
5855
|
throw new Error("'credentials' cannot be null");
|
|
5716
5856
|
}
|
|
@@ -5725,32 +5865,34 @@ class VMwareCloudSimple extends coreClient__namespace.ServiceClient {
|
|
|
5725
5865
|
requestContentType: "application/json; charset=utf-8",
|
|
5726
5866
|
credential: credentials
|
|
5727
5867
|
};
|
|
5728
|
-
const packageDetails = `azsdk-js-arm-vmwarecloudsimple/3.0
|
|
5868
|
+
const packageDetails = `azsdk-js-arm-vmwarecloudsimple/3.1.0`;
|
|
5729
5869
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
5730
5870
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
5731
5871
|
: `${packageDetails}`;
|
|
5732
|
-
if (!options.credentialScopes) {
|
|
5733
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
5734
|
-
}
|
|
5735
5872
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
5736
5873
|
userAgentPrefix
|
|
5737
|
-
},
|
|
5874
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
5738
5875
|
super(optionsWithDefaults);
|
|
5876
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
5739
5877
|
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
5740
5878
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
5741
|
-
|
|
5879
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
5742
5880
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5881
|
+
}
|
|
5882
|
+
if (!options ||
|
|
5883
|
+
!options.pipeline ||
|
|
5884
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
5885
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
5886
|
+
this.pipeline.removePolicy({
|
|
5887
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
5888
|
+
});
|
|
5889
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
5890
|
+
credential: credentials,
|
|
5891
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
5892
|
+
challengeCallbacks: {
|
|
5893
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
5894
|
+
}
|
|
5895
|
+
}));
|
|
5754
5896
|
}
|
|
5755
5897
|
// Parameter assignments
|
|
5756
5898
|
this.subscriptionId = subscriptionId;
|
|
@@ -5800,4 +5942,5 @@ class VMwareCloudSimple extends coreClient__namespace.ServiceClient {
|
|
|
5800
5942
|
}
|
|
5801
5943
|
|
|
5802
5944
|
exports.VMwareCloudSimple = VMwareCloudSimple;
|
|
5945
|
+
exports.getContinuationToken = getContinuationToken;
|
|
5803
5946
|
//# sourceMappingURL=index.js.map
|