@azure/arm-vmwarecloudsimple 3.1.1-alpha.20250206.1 → 3.1.1-alpha.20250210.1
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/dist/index.js +92 -92
- package/dist/index.js.map +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -47,14 +47,14 @@ function getContinuationToken(page) {
|
|
|
47
47
|
if (typeof page !== "object" || page === null) {
|
|
48
48
|
return undefined;
|
|
49
49
|
}
|
|
50
|
-
return (_a = pageMap.get(page)) === null || _a ===
|
|
50
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
51
51
|
}
|
|
52
52
|
function setContinuationToken(page, continuationToken) {
|
|
53
53
|
var _a;
|
|
54
54
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
|
-
const pageInfo = (_a = pageMap.get(page)) !== null && _a !==
|
|
57
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
58
58
|
pageInfo.continuationToken = continuationToken;
|
|
59
59
|
pageMap.set(page, pageInfo);
|
|
60
60
|
}
|
|
@@ -2920,7 +2920,7 @@ class OperationsImpl {
|
|
|
2920
2920
|
return this;
|
|
2921
2921
|
},
|
|
2922
2922
|
byPage: (settings) => {
|
|
2923
|
-
if (settings === null || settings ===
|
|
2923
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2924
2924
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
2925
2925
|
}
|
|
2926
2926
|
return this.listPagingPage(options, settings);
|
|
@@ -2930,7 +2930,7 @@ class OperationsImpl {
|
|
|
2930
2930
|
listPagingPage(options, settings) {
|
|
2931
2931
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2932
2932
|
let result;
|
|
2933
|
-
let continuationToken = settings === null || settings ===
|
|
2933
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2934
2934
|
if (!continuationToken) {
|
|
2935
2935
|
result = yield tslib.__await(this._list(options));
|
|
2936
2936
|
let page = result.value || [];
|
|
@@ -3069,12 +3069,12 @@ class LroImpl {
|
|
|
3069
3069
|
this.requestMethod = requestMethod;
|
|
3070
3070
|
}
|
|
3071
3071
|
sendInitialRequest() {
|
|
3072
|
-
return tslib.__awaiter(this,
|
|
3072
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3073
3073
|
return this.sendOperationFn(this.args, this.spec);
|
|
3074
3074
|
});
|
|
3075
3075
|
}
|
|
3076
3076
|
sendPollRequest(path) {
|
|
3077
|
-
return tslib.__awaiter(this,
|
|
3077
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3078
3078
|
const _a = this.spec, { requestBody } = _a, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
3079
3079
|
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
3080
3080
|
});
|
|
@@ -3112,7 +3112,7 @@ class DedicatedCloudNodesImpl {
|
|
|
3112
3112
|
return this;
|
|
3113
3113
|
},
|
|
3114
3114
|
byPage: (settings) => {
|
|
3115
|
-
if (settings === null || settings ===
|
|
3115
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3116
3116
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3117
3117
|
}
|
|
3118
3118
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -3122,7 +3122,7 @@ class DedicatedCloudNodesImpl {
|
|
|
3122
3122
|
listBySubscriptionPagingPage(options, settings) {
|
|
3123
3123
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
3124
3124
|
let result;
|
|
3125
|
-
let continuationToken = settings === null || settings ===
|
|
3125
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3126
3126
|
if (!continuationToken) {
|
|
3127
3127
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
3128
3128
|
let page = result.value || [];
|
|
@@ -3174,7 +3174,7 @@ class DedicatedCloudNodesImpl {
|
|
|
3174
3174
|
return this;
|
|
3175
3175
|
},
|
|
3176
3176
|
byPage: (settings) => {
|
|
3177
|
-
if (settings === null || settings ===
|
|
3177
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3178
3178
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3179
3179
|
}
|
|
3180
3180
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -3184,7 +3184,7 @@ class DedicatedCloudNodesImpl {
|
|
|
3184
3184
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
3185
3185
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
3186
3186
|
let result;
|
|
3187
|
-
let continuationToken = settings === null || settings ===
|
|
3187
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3188
3188
|
if (!continuationToken) {
|
|
3189
3189
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
3190
3190
|
let page = result.value || [];
|
|
@@ -3254,17 +3254,17 @@ class DedicatedCloudNodesImpl {
|
|
|
3254
3254
|
* @param options The options parameters.
|
|
3255
3255
|
*/
|
|
3256
3256
|
beginCreateOrUpdate(resourceGroupName, referer, dedicatedCloudNodeName, dedicatedCloudNodeRequest, options) {
|
|
3257
|
-
return tslib.__awaiter(this,
|
|
3258
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3257
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3258
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3259
3259
|
return this.client.sendOperationRequest(args, spec);
|
|
3260
3260
|
});
|
|
3261
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3261
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3262
3262
|
var _a;
|
|
3263
3263
|
let currentRawResponse = undefined;
|
|
3264
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3264
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3265
3265
|
const callback = (rawResponse, flatResponse) => {
|
|
3266
3266
|
currentRawResponse = rawResponse;
|
|
3267
|
-
providedCallback === null || providedCallback ===
|
|
3267
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3268
3268
|
};
|
|
3269
3269
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3270
3270
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3285,8 +3285,8 @@ class DedicatedCloudNodesImpl {
|
|
|
3285
3285
|
options
|
|
3286
3286
|
}, createOrUpdateOperationSpec$2);
|
|
3287
3287
|
const poller = new coreLro.LroEngine(lro, {
|
|
3288
|
-
resumeFrom: options === null || options ===
|
|
3289
|
-
intervalInMs: options === null || options ===
|
|
3288
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3289
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3290
3290
|
});
|
|
3291
3291
|
yield poller.poll();
|
|
3292
3292
|
return poller;
|
|
@@ -3301,7 +3301,7 @@ class DedicatedCloudNodesImpl {
|
|
|
3301
3301
|
* @param options The options parameters.
|
|
3302
3302
|
*/
|
|
3303
3303
|
beginCreateOrUpdateAndWait(resourceGroupName, referer, dedicatedCloudNodeName, dedicatedCloudNodeRequest, options) {
|
|
3304
|
-
return tslib.__awaiter(this,
|
|
3304
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3305
3305
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, referer, dedicatedCloudNodeName, dedicatedCloudNodeRequest, options);
|
|
3306
3306
|
return poller.pollUntilDone();
|
|
3307
3307
|
});
|
|
@@ -3571,7 +3571,7 @@ class DedicatedCloudServicesImpl {
|
|
|
3571
3571
|
return this;
|
|
3572
3572
|
},
|
|
3573
3573
|
byPage: (settings) => {
|
|
3574
|
-
if (settings === null || settings ===
|
|
3574
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3575
3575
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3576
3576
|
}
|
|
3577
3577
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -3581,7 +3581,7 @@ class DedicatedCloudServicesImpl {
|
|
|
3581
3581
|
listBySubscriptionPagingPage(options, settings) {
|
|
3582
3582
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
3583
3583
|
let result;
|
|
3584
|
-
let continuationToken = settings === null || settings ===
|
|
3584
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3585
3585
|
if (!continuationToken) {
|
|
3586
3586
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
3587
3587
|
let page = result.value || [];
|
|
@@ -3633,7 +3633,7 @@ class DedicatedCloudServicesImpl {
|
|
|
3633
3633
|
return this;
|
|
3634
3634
|
},
|
|
3635
3635
|
byPage: (settings) => {
|
|
3636
|
-
if (settings === null || settings ===
|
|
3636
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3637
3637
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3638
3638
|
}
|
|
3639
3639
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -3643,7 +3643,7 @@ class DedicatedCloudServicesImpl {
|
|
|
3643
3643
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
3644
3644
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
3645
3645
|
let result;
|
|
3646
|
-
let continuationToken = settings === null || settings ===
|
|
3646
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3647
3647
|
if (!continuationToken) {
|
|
3648
3648
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
3649
3649
|
let page = result.value || [];
|
|
@@ -3726,17 +3726,17 @@ class DedicatedCloudServicesImpl {
|
|
|
3726
3726
|
* @param options The options parameters.
|
|
3727
3727
|
*/
|
|
3728
3728
|
beginDelete(resourceGroupName, dedicatedCloudServiceName, options) {
|
|
3729
|
-
return tslib.__awaiter(this,
|
|
3730
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3729
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3730
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3731
3731
|
return this.client.sendOperationRequest(args, spec);
|
|
3732
3732
|
});
|
|
3733
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3733
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3734
3734
|
var _a;
|
|
3735
3735
|
let currentRawResponse = undefined;
|
|
3736
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3736
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3737
3737
|
const callback = (rawResponse, flatResponse) => {
|
|
3738
3738
|
currentRawResponse = rawResponse;
|
|
3739
|
-
providedCallback === null || providedCallback ===
|
|
3739
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3740
3740
|
};
|
|
3741
3741
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3742
3742
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3751,8 +3751,8 @@ class DedicatedCloudServicesImpl {
|
|
|
3751
3751
|
});
|
|
3752
3752
|
const lro = new LroImpl(sendOperation, { resourceGroupName, dedicatedCloudServiceName, options }, deleteOperationSpec$1);
|
|
3753
3753
|
const poller = new coreLro.LroEngine(lro, {
|
|
3754
|
-
resumeFrom: options === null || options ===
|
|
3755
|
-
intervalInMs: options === null || options ===
|
|
3754
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3755
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3756
3756
|
});
|
|
3757
3757
|
yield poller.poll();
|
|
3758
3758
|
return poller;
|
|
@@ -3765,7 +3765,7 @@ class DedicatedCloudServicesImpl {
|
|
|
3765
3765
|
* @param options The options parameters.
|
|
3766
3766
|
*/
|
|
3767
3767
|
beginDeleteAndWait(resourceGroupName, dedicatedCloudServiceName, options) {
|
|
3768
|
-
return tslib.__awaiter(this,
|
|
3768
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3769
3769
|
const poller = yield this.beginDelete(resourceGroupName, dedicatedCloudServiceName, options);
|
|
3770
3770
|
return poller.pollUntilDone();
|
|
3771
3771
|
});
|
|
@@ -4013,7 +4013,7 @@ class SkusAvailabilityImpl {
|
|
|
4013
4013
|
return this;
|
|
4014
4014
|
},
|
|
4015
4015
|
byPage: (settings) => {
|
|
4016
|
-
if (settings === null || settings ===
|
|
4016
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4017
4017
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4018
4018
|
}
|
|
4019
4019
|
return this.listPagingPage(regionId, options, settings);
|
|
@@ -4023,7 +4023,7 @@ class SkusAvailabilityImpl {
|
|
|
4023
4023
|
listPagingPage(regionId, options, settings) {
|
|
4024
4024
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4025
4025
|
let result;
|
|
4026
|
-
let continuationToken = settings === null || settings ===
|
|
4026
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4027
4027
|
if (!continuationToken) {
|
|
4028
4028
|
result = yield tslib.__await(this._list(regionId, options));
|
|
4029
4029
|
let page = result.value || [];
|
|
@@ -4153,7 +4153,7 @@ class PrivateCloudsImpl {
|
|
|
4153
4153
|
return this;
|
|
4154
4154
|
},
|
|
4155
4155
|
byPage: (settings) => {
|
|
4156
|
-
if (settings === null || settings ===
|
|
4156
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4157
4157
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4158
4158
|
}
|
|
4159
4159
|
return this.listPagingPage(regionId, options, settings);
|
|
@@ -4163,7 +4163,7 @@ class PrivateCloudsImpl {
|
|
|
4163
4163
|
listPagingPage(regionId, options, settings) {
|
|
4164
4164
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4165
4165
|
let result;
|
|
4166
|
-
let continuationToken = settings === null || settings ===
|
|
4166
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4167
4167
|
if (!continuationToken) {
|
|
4168
4168
|
result = yield tslib.__await(this._list(regionId, options));
|
|
4169
4169
|
let page = result.value || [];
|
|
@@ -4324,7 +4324,7 @@ class CustomizationPoliciesImpl {
|
|
|
4324
4324
|
return this;
|
|
4325
4325
|
},
|
|
4326
4326
|
byPage: (settings) => {
|
|
4327
|
-
if (settings === null || settings ===
|
|
4327
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4328
4328
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4329
4329
|
}
|
|
4330
4330
|
return this.listPagingPage(regionId, pcName, options, settings);
|
|
@@ -4334,7 +4334,7 @@ class CustomizationPoliciesImpl {
|
|
|
4334
4334
|
listPagingPage(regionId, pcName, options, settings) {
|
|
4335
4335
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4336
4336
|
let result;
|
|
4337
|
-
let continuationToken = settings === null || settings ===
|
|
4337
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4338
4338
|
if (!continuationToken) {
|
|
4339
4339
|
result = yield tslib.__await(this._list(regionId, pcName, options));
|
|
4340
4340
|
let page = result.value || [];
|
|
@@ -4501,7 +4501,7 @@ class ResourcePoolsImpl {
|
|
|
4501
4501
|
return this;
|
|
4502
4502
|
},
|
|
4503
4503
|
byPage: (settings) => {
|
|
4504
|
-
if (settings === null || settings ===
|
|
4504
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4505
4505
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4506
4506
|
}
|
|
4507
4507
|
return this.listPagingPage(regionId, pcName, options, settings);
|
|
@@ -4511,7 +4511,7 @@ class ResourcePoolsImpl {
|
|
|
4511
4511
|
listPagingPage(regionId, pcName, options, settings) {
|
|
4512
4512
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4513
4513
|
let result;
|
|
4514
|
-
let continuationToken = settings === null || settings ===
|
|
4514
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4515
4515
|
if (!continuationToken) {
|
|
4516
4516
|
result = yield tslib.__await(this._list(regionId, pcName, options));
|
|
4517
4517
|
let page = result.value || [];
|
|
@@ -4679,7 +4679,7 @@ class VirtualMachineTemplatesImpl {
|
|
|
4679
4679
|
return this;
|
|
4680
4680
|
},
|
|
4681
4681
|
byPage: (settings) => {
|
|
4682
|
-
if (settings === null || settings ===
|
|
4682
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4683
4683
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4684
4684
|
}
|
|
4685
4685
|
return this.listPagingPage(pcName, regionId, resourcePoolName, options, settings);
|
|
@@ -4689,7 +4689,7 @@ class VirtualMachineTemplatesImpl {
|
|
|
4689
4689
|
listPagingPage(pcName, regionId, resourcePoolName, options, settings) {
|
|
4690
4690
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4691
4691
|
let result;
|
|
4692
|
-
let continuationToken = settings === null || settings ===
|
|
4692
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4693
4693
|
if (!continuationToken) {
|
|
4694
4694
|
result = yield tslib.__await(this._list(pcName, regionId, resourcePoolName, options));
|
|
4695
4695
|
let page = result.value || [];
|
|
@@ -4858,7 +4858,7 @@ class VirtualNetworksImpl {
|
|
|
4858
4858
|
return this;
|
|
4859
4859
|
},
|
|
4860
4860
|
byPage: (settings) => {
|
|
4861
|
-
if (settings === null || settings ===
|
|
4861
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4862
4862
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4863
4863
|
}
|
|
4864
4864
|
return this.listPagingPage(regionId, pcName, resourcePoolName, options, settings);
|
|
@@ -4868,7 +4868,7 @@ class VirtualNetworksImpl {
|
|
|
4868
4868
|
listPagingPage(regionId, pcName, resourcePoolName, options, settings) {
|
|
4869
4869
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4870
4870
|
let result;
|
|
4871
|
-
let continuationToken = settings === null || settings ===
|
|
4871
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4872
4872
|
if (!continuationToken) {
|
|
4873
4873
|
result = yield tslib.__await(this._list(regionId, pcName, resourcePoolName, options));
|
|
4874
4874
|
let page = result.value || [];
|
|
@@ -5035,7 +5035,7 @@ class UsagesImpl {
|
|
|
5035
5035
|
return this;
|
|
5036
5036
|
},
|
|
5037
5037
|
byPage: (settings) => {
|
|
5038
|
-
if (settings === null || settings ===
|
|
5038
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5039
5039
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5040
5040
|
}
|
|
5041
5041
|
return this.listPagingPage(regionId, options, settings);
|
|
@@ -5045,7 +5045,7 @@ class UsagesImpl {
|
|
|
5045
5045
|
listPagingPage(regionId, options, settings) {
|
|
5046
5046
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5047
5047
|
let result;
|
|
5048
|
-
let continuationToken = settings === null || settings ===
|
|
5048
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5049
5049
|
if (!continuationToken) {
|
|
5050
5050
|
result = yield tslib.__await(this._list(regionId, options));
|
|
5051
5051
|
let page = result.value || [];
|
|
@@ -5174,7 +5174,7 @@ class VirtualMachinesImpl {
|
|
|
5174
5174
|
return this;
|
|
5175
5175
|
},
|
|
5176
5176
|
byPage: (settings) => {
|
|
5177
|
-
if (settings === null || settings ===
|
|
5177
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5178
5178
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5179
5179
|
}
|
|
5180
5180
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -5184,7 +5184,7 @@ class VirtualMachinesImpl {
|
|
|
5184
5184
|
listBySubscriptionPagingPage(options, settings) {
|
|
5185
5185
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
5186
5186
|
let result;
|
|
5187
|
-
let continuationToken = settings === null || settings ===
|
|
5187
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5188
5188
|
if (!continuationToken) {
|
|
5189
5189
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
5190
5190
|
let page = result.value || [];
|
|
@@ -5236,7 +5236,7 @@ class VirtualMachinesImpl {
|
|
|
5236
5236
|
return this;
|
|
5237
5237
|
},
|
|
5238
5238
|
byPage: (settings) => {
|
|
5239
|
-
if (settings === null || settings ===
|
|
5239
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5240
5240
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5241
5241
|
}
|
|
5242
5242
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -5246,7 +5246,7 @@ class VirtualMachinesImpl {
|
|
|
5246
5246
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
5247
5247
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
5248
5248
|
let result;
|
|
5249
|
-
let continuationToken = settings === null || settings ===
|
|
5249
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5250
5250
|
if (!continuationToken) {
|
|
5251
5251
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
5252
5252
|
let page = result.value || [];
|
|
@@ -5316,17 +5316,17 @@ class VirtualMachinesImpl {
|
|
|
5316
5316
|
* @param options The options parameters.
|
|
5317
5317
|
*/
|
|
5318
5318
|
beginCreateOrUpdate(resourceGroupName, referer, virtualMachineName, virtualMachineRequest, options) {
|
|
5319
|
-
return tslib.__awaiter(this,
|
|
5320
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5319
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5320
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5321
5321
|
return this.client.sendOperationRequest(args, spec);
|
|
5322
5322
|
});
|
|
5323
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5323
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5324
5324
|
var _a;
|
|
5325
5325
|
let currentRawResponse = undefined;
|
|
5326
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5326
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
5327
5327
|
const callback = (rawResponse, flatResponse) => {
|
|
5328
5328
|
currentRawResponse = rawResponse;
|
|
5329
|
-
providedCallback === null || providedCallback ===
|
|
5329
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
5330
5330
|
};
|
|
5331
5331
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5332
5332
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5347,8 +5347,8 @@ class VirtualMachinesImpl {
|
|
|
5347
5347
|
options
|
|
5348
5348
|
}, createOrUpdateOperationSpec);
|
|
5349
5349
|
const poller = new coreLro.LroEngine(lro, {
|
|
5350
|
-
resumeFrom: options === null || options ===
|
|
5351
|
-
intervalInMs: options === null || options ===
|
|
5350
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5351
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
5352
5352
|
});
|
|
5353
5353
|
yield poller.poll();
|
|
5354
5354
|
return poller;
|
|
@@ -5363,7 +5363,7 @@ class VirtualMachinesImpl {
|
|
|
5363
5363
|
* @param options The options parameters.
|
|
5364
5364
|
*/
|
|
5365
5365
|
beginCreateOrUpdateAndWait(resourceGroupName, referer, virtualMachineName, virtualMachineRequest, options) {
|
|
5366
|
-
return tslib.__awaiter(this,
|
|
5366
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5367
5367
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, referer, virtualMachineName, virtualMachineRequest, options);
|
|
5368
5368
|
return poller.pollUntilDone();
|
|
5369
5369
|
});
|
|
@@ -5376,17 +5376,17 @@ class VirtualMachinesImpl {
|
|
|
5376
5376
|
* @param options The options parameters.
|
|
5377
5377
|
*/
|
|
5378
5378
|
beginDelete(resourceGroupName, referer, virtualMachineName, options) {
|
|
5379
|
-
return tslib.__awaiter(this,
|
|
5380
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5379
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5380
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5381
5381
|
return this.client.sendOperationRequest(args, spec);
|
|
5382
5382
|
});
|
|
5383
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5383
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5384
5384
|
var _a;
|
|
5385
5385
|
let currentRawResponse = undefined;
|
|
5386
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5386
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
5387
5387
|
const callback = (rawResponse, flatResponse) => {
|
|
5388
5388
|
currentRawResponse = rawResponse;
|
|
5389
|
-
providedCallback === null || providedCallback ===
|
|
5389
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
5390
5390
|
};
|
|
5391
5391
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5392
5392
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5401,8 +5401,8 @@ class VirtualMachinesImpl {
|
|
|
5401
5401
|
});
|
|
5402
5402
|
const lro = new LroImpl(sendOperation, { resourceGroupName, referer, virtualMachineName, options }, deleteOperationSpec);
|
|
5403
5403
|
const poller = new coreLro.LroEngine(lro, {
|
|
5404
|
-
resumeFrom: options === null || options ===
|
|
5405
|
-
intervalInMs: options === null || options ===
|
|
5404
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5405
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
5406
5406
|
});
|
|
5407
5407
|
yield poller.poll();
|
|
5408
5408
|
return poller;
|
|
@@ -5416,7 +5416,7 @@ class VirtualMachinesImpl {
|
|
|
5416
5416
|
* @param options The options parameters.
|
|
5417
5417
|
*/
|
|
5418
5418
|
beginDeleteAndWait(resourceGroupName, referer, virtualMachineName, options) {
|
|
5419
|
-
return tslib.__awaiter(this,
|
|
5419
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5420
5420
|
const poller = yield this.beginDelete(resourceGroupName, referer, virtualMachineName, options);
|
|
5421
5421
|
return poller.pollUntilDone();
|
|
5422
5422
|
});
|
|
@@ -5429,17 +5429,17 @@ class VirtualMachinesImpl {
|
|
|
5429
5429
|
* @param options The options parameters.
|
|
5430
5430
|
*/
|
|
5431
5431
|
beginUpdate(resourceGroupName, virtualMachineName, virtualMachineRequest, options) {
|
|
5432
|
-
return tslib.__awaiter(this,
|
|
5433
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5432
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5433
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5434
5434
|
return this.client.sendOperationRequest(args, spec);
|
|
5435
5435
|
});
|
|
5436
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5436
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5437
5437
|
var _a;
|
|
5438
5438
|
let currentRawResponse = undefined;
|
|
5439
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5439
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
5440
5440
|
const callback = (rawResponse, flatResponse) => {
|
|
5441
5441
|
currentRawResponse = rawResponse;
|
|
5442
|
-
providedCallback === null || providedCallback ===
|
|
5442
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
5443
5443
|
};
|
|
5444
5444
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5445
5445
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5454,8 +5454,8 @@ class VirtualMachinesImpl {
|
|
|
5454
5454
|
});
|
|
5455
5455
|
const lro = new LroImpl(sendOperation, { resourceGroupName, virtualMachineName, virtualMachineRequest, options }, updateOperationSpec);
|
|
5456
5456
|
const poller = new coreLro.LroEngine(lro, {
|
|
5457
|
-
resumeFrom: options === null || options ===
|
|
5458
|
-
intervalInMs: options === null || options ===
|
|
5457
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5458
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
5459
5459
|
});
|
|
5460
5460
|
yield poller.poll();
|
|
5461
5461
|
return poller;
|
|
@@ -5469,7 +5469,7 @@ class VirtualMachinesImpl {
|
|
|
5469
5469
|
* @param options The options parameters.
|
|
5470
5470
|
*/
|
|
5471
5471
|
beginUpdateAndWait(resourceGroupName, virtualMachineName, virtualMachineRequest, options) {
|
|
5472
|
-
return tslib.__awaiter(this,
|
|
5472
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5473
5473
|
const poller = yield this.beginUpdate(resourceGroupName, virtualMachineName, virtualMachineRequest, options);
|
|
5474
5474
|
return poller.pollUntilDone();
|
|
5475
5475
|
});
|
|
@@ -5482,17 +5482,17 @@ class VirtualMachinesImpl {
|
|
|
5482
5482
|
* @param options The options parameters.
|
|
5483
5483
|
*/
|
|
5484
5484
|
beginStart(resourceGroupName, referer, virtualMachineName, options) {
|
|
5485
|
-
return tslib.__awaiter(this,
|
|
5486
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5485
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5486
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5487
5487
|
return this.client.sendOperationRequest(args, spec);
|
|
5488
5488
|
});
|
|
5489
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5489
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5490
5490
|
var _a;
|
|
5491
5491
|
let currentRawResponse = undefined;
|
|
5492
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5492
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
5493
5493
|
const callback = (rawResponse, flatResponse) => {
|
|
5494
5494
|
currentRawResponse = rawResponse;
|
|
5495
|
-
providedCallback === null || providedCallback ===
|
|
5495
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
5496
5496
|
};
|
|
5497
5497
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5498
5498
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5507,8 +5507,8 @@ class VirtualMachinesImpl {
|
|
|
5507
5507
|
});
|
|
5508
5508
|
const lro = new LroImpl(sendOperation, { resourceGroupName, referer, virtualMachineName, options }, startOperationSpec);
|
|
5509
5509
|
const poller = new coreLro.LroEngine(lro, {
|
|
5510
|
-
resumeFrom: options === null || options ===
|
|
5511
|
-
intervalInMs: options === null || options ===
|
|
5510
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5511
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
5512
5512
|
});
|
|
5513
5513
|
yield poller.poll();
|
|
5514
5514
|
return poller;
|
|
@@ -5522,7 +5522,7 @@ class VirtualMachinesImpl {
|
|
|
5522
5522
|
* @param options The options parameters.
|
|
5523
5523
|
*/
|
|
5524
5524
|
beginStartAndWait(resourceGroupName, referer, virtualMachineName, options) {
|
|
5525
|
-
return tslib.__awaiter(this,
|
|
5525
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5526
5526
|
const poller = yield this.beginStart(resourceGroupName, referer, virtualMachineName, options);
|
|
5527
5527
|
return poller.pollUntilDone();
|
|
5528
5528
|
});
|
|
@@ -5535,17 +5535,17 @@ class VirtualMachinesImpl {
|
|
|
5535
5535
|
* @param options The options parameters.
|
|
5536
5536
|
*/
|
|
5537
5537
|
beginStop(resourceGroupName, referer, virtualMachineName, options) {
|
|
5538
|
-
return tslib.__awaiter(this,
|
|
5539
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5538
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5539
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5540
5540
|
return this.client.sendOperationRequest(args, spec);
|
|
5541
5541
|
});
|
|
5542
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5542
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5543
5543
|
var _a;
|
|
5544
5544
|
let currentRawResponse = undefined;
|
|
5545
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5545
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
5546
5546
|
const callback = (rawResponse, flatResponse) => {
|
|
5547
5547
|
currentRawResponse = rawResponse;
|
|
5548
|
-
providedCallback === null || providedCallback ===
|
|
5548
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
5549
5549
|
};
|
|
5550
5550
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5551
5551
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5560,8 +5560,8 @@ class VirtualMachinesImpl {
|
|
|
5560
5560
|
});
|
|
5561
5561
|
const lro = new LroImpl(sendOperation, { resourceGroupName, referer, virtualMachineName, options }, stopOperationSpec);
|
|
5562
5562
|
const poller = new coreLro.LroEngine(lro, {
|
|
5563
|
-
resumeFrom: options === null || options ===
|
|
5564
|
-
intervalInMs: options === null || options ===
|
|
5563
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5564
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
5565
5565
|
});
|
|
5566
5566
|
yield poller.poll();
|
|
5567
5567
|
return poller;
|
|
@@ -5575,7 +5575,7 @@ class VirtualMachinesImpl {
|
|
|
5575
5575
|
* @param options The options parameters.
|
|
5576
5576
|
*/
|
|
5577
5577
|
beginStopAndWait(resourceGroupName, referer, virtualMachineName, options) {
|
|
5578
|
-
return tslib.__awaiter(this,
|
|
5578
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5579
5579
|
const poller = yield this.beginStop(resourceGroupName, referer, virtualMachineName, options);
|
|
5580
5580
|
return poller.pollUntilDone();
|
|
5581
5581
|
});
|
|
@@ -5898,10 +5898,10 @@ class VMwareCloudSimple extends coreClient__namespace.ServiceClient {
|
|
|
5898
5898
|
: `${packageDetails}`;
|
|
5899
5899
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
5900
5900
|
userAgentPrefix
|
|
5901
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
5901
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
5902
5902
|
super(optionsWithDefaults);
|
|
5903
5903
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
5904
|
-
if ((options === null || options ===
|
|
5904
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
5905
5905
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
5906
5906
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
5907
5907
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -5915,7 +5915,7 @@ class VMwareCloudSimple extends coreClient__namespace.ServiceClient {
|
|
|
5915
5915
|
});
|
|
5916
5916
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
5917
5917
|
credential: credentials,
|
|
5918
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
5918
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
5919
5919
|
challengeCallbacks: {
|
|
5920
5920
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
5921
5921
|
}
|
|
@@ -5947,7 +5947,7 @@ class VMwareCloudSimple extends coreClient__namespace.ServiceClient {
|
|
|
5947
5947
|
const apiVersionPolicy = {
|
|
5948
5948
|
name: "CustomApiVersionPolicy",
|
|
5949
5949
|
sendRequest(request, next) {
|
|
5950
|
-
return tslib.__awaiter(this,
|
|
5950
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5951
5951
|
const param = request.url.split("?");
|
|
5952
5952
|
if (param.length > 1) {
|
|
5953
5953
|
const newParams = param[1].split("&").map((item) => {
|