@azure/arm-scvmm 1.0.1-alpha.20250210.1 → 1.0.1-alpha.20250211.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 +237 -237
- 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
|
}
|
|
@@ -3526,7 +3526,7 @@ function createLroSpec(inputs) {
|
|
|
3526
3526
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
3527
3527
|
sendPollRequest: (path, options) => {
|
|
3528
3528
|
const { requestBody } = spec, restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
3529
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
|
3529
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
3530
3530
|
},
|
|
3531
3531
|
};
|
|
3532
3532
|
}
|
|
@@ -3563,7 +3563,7 @@ class VirtualMachineInstancesImpl {
|
|
|
3563
3563
|
return this;
|
|
3564
3564
|
},
|
|
3565
3565
|
byPage: (settings) => {
|
|
3566
|
-
if (settings === null || settings ===
|
|
3566
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3567
3567
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3568
3568
|
}
|
|
3569
3569
|
return this.listPagingPage(resourceUri, options, settings);
|
|
@@ -3573,7 +3573,7 @@ class VirtualMachineInstancesImpl {
|
|
|
3573
3573
|
listPagingPage(resourceUri, options, settings) {
|
|
3574
3574
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3575
3575
|
let result;
|
|
3576
|
-
let continuationToken = settings === null || settings ===
|
|
3576
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3577
3577
|
if (!continuationToken) {
|
|
3578
3578
|
result = yield tslib.__await(this._list(resourceUri, options));
|
|
3579
3579
|
let page = result.value || [];
|
|
@@ -3634,17 +3634,17 @@ class VirtualMachineInstancesImpl {
|
|
|
3634
3634
|
* @param options The options parameters.
|
|
3635
3635
|
*/
|
|
3636
3636
|
beginCreateOrUpdate(resourceUri, resource, options) {
|
|
3637
|
-
return tslib.__awaiter(this,
|
|
3638
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3637
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3638
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3639
3639
|
return this.client.sendOperationRequest(args, spec);
|
|
3640
3640
|
});
|
|
3641
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3641
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3642
3642
|
var _a;
|
|
3643
3643
|
let currentRawResponse = undefined;
|
|
3644
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3644
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3645
3645
|
const callback = (rawResponse, flatResponse) => {
|
|
3646
3646
|
currentRawResponse = rawResponse;
|
|
3647
|
-
providedCallback === null || providedCallback ===
|
|
3647
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3648
3648
|
};
|
|
3649
3649
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3650
3650
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3663,8 +3663,8 @@ class VirtualMachineInstancesImpl {
|
|
|
3663
3663
|
spec: createOrUpdateOperationSpec$5,
|
|
3664
3664
|
});
|
|
3665
3665
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3666
|
-
restoreFrom: options === null || options ===
|
|
3667
|
-
intervalInMs: options === null || options ===
|
|
3666
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3667
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3668
3668
|
resourceLocationConfig: "azure-async-operation",
|
|
3669
3669
|
});
|
|
3670
3670
|
yield poller.poll();
|
|
@@ -3679,7 +3679,7 @@ class VirtualMachineInstancesImpl {
|
|
|
3679
3679
|
* @param options The options parameters.
|
|
3680
3680
|
*/
|
|
3681
3681
|
beginCreateOrUpdateAndWait(resourceUri, resource, options) {
|
|
3682
|
-
return tslib.__awaiter(this,
|
|
3682
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3683
3683
|
const poller = yield this.beginCreateOrUpdate(resourceUri, resource, options);
|
|
3684
3684
|
return poller.pollUntilDone();
|
|
3685
3685
|
});
|
|
@@ -3691,17 +3691,17 @@ class VirtualMachineInstancesImpl {
|
|
|
3691
3691
|
* @param options The options parameters.
|
|
3692
3692
|
*/
|
|
3693
3693
|
beginUpdate(resourceUri, properties, options) {
|
|
3694
|
-
return tslib.__awaiter(this,
|
|
3695
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3694
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3695
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3696
3696
|
return this.client.sendOperationRequest(args, spec);
|
|
3697
3697
|
});
|
|
3698
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3698
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3699
3699
|
var _a;
|
|
3700
3700
|
let currentRawResponse = undefined;
|
|
3701
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3701
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3702
3702
|
const callback = (rawResponse, flatResponse) => {
|
|
3703
3703
|
currentRawResponse = rawResponse;
|
|
3704
|
-
providedCallback === null || providedCallback ===
|
|
3704
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3705
3705
|
};
|
|
3706
3706
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3707
3707
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3720,8 +3720,8 @@ class VirtualMachineInstancesImpl {
|
|
|
3720
3720
|
spec: updateOperationSpec$5,
|
|
3721
3721
|
});
|
|
3722
3722
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3723
|
-
restoreFrom: options === null || options ===
|
|
3724
|
-
intervalInMs: options === null || options ===
|
|
3723
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3724
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3725
3725
|
resourceLocationConfig: "azure-async-operation",
|
|
3726
3726
|
});
|
|
3727
3727
|
yield poller.poll();
|
|
@@ -3735,7 +3735,7 @@ class VirtualMachineInstancesImpl {
|
|
|
3735
3735
|
* @param options The options parameters.
|
|
3736
3736
|
*/
|
|
3737
3737
|
beginUpdateAndWait(resourceUri, properties, options) {
|
|
3738
|
-
return tslib.__awaiter(this,
|
|
3738
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3739
3739
|
const poller = yield this.beginUpdate(resourceUri, properties, options);
|
|
3740
3740
|
return poller.pollUntilDone();
|
|
3741
3741
|
});
|
|
@@ -3746,17 +3746,17 @@ class VirtualMachineInstancesImpl {
|
|
|
3746
3746
|
* @param options The options parameters.
|
|
3747
3747
|
*/
|
|
3748
3748
|
beginDelete(resourceUri, options) {
|
|
3749
|
-
return tslib.__awaiter(this,
|
|
3750
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3749
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3750
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3751
3751
|
return this.client.sendOperationRequest(args, spec);
|
|
3752
3752
|
});
|
|
3753
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3753
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3754
3754
|
var _a;
|
|
3755
3755
|
let currentRawResponse = undefined;
|
|
3756
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3756
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3757
3757
|
const callback = (rawResponse, flatResponse) => {
|
|
3758
3758
|
currentRawResponse = rawResponse;
|
|
3759
|
-
providedCallback === null || providedCallback ===
|
|
3759
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3760
3760
|
};
|
|
3761
3761
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3762
3762
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3775,8 +3775,8 @@ class VirtualMachineInstancesImpl {
|
|
|
3775
3775
|
spec: deleteOperationSpec$7,
|
|
3776
3776
|
});
|
|
3777
3777
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3778
|
-
restoreFrom: options === null || options ===
|
|
3779
|
-
intervalInMs: options === null || options ===
|
|
3778
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3779
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3780
3780
|
resourceLocationConfig: "azure-async-operation",
|
|
3781
3781
|
});
|
|
3782
3782
|
yield poller.poll();
|
|
@@ -3789,7 +3789,7 @@ class VirtualMachineInstancesImpl {
|
|
|
3789
3789
|
* @param options The options parameters.
|
|
3790
3790
|
*/
|
|
3791
3791
|
beginDeleteAndWait(resourceUri, options) {
|
|
3792
|
-
return tslib.__awaiter(this,
|
|
3792
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3793
3793
|
const poller = yield this.beginDelete(resourceUri, options);
|
|
3794
3794
|
return poller.pollUntilDone();
|
|
3795
3795
|
});
|
|
@@ -3801,17 +3801,17 @@ class VirtualMachineInstancesImpl {
|
|
|
3801
3801
|
* @param options The options parameters.
|
|
3802
3802
|
*/
|
|
3803
3803
|
beginCreateCheckpoint(resourceUri, body, options) {
|
|
3804
|
-
return tslib.__awaiter(this,
|
|
3805
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3804
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3805
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3806
3806
|
return this.client.sendOperationRequest(args, spec);
|
|
3807
3807
|
});
|
|
3808
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3808
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3809
3809
|
var _a;
|
|
3810
3810
|
let currentRawResponse = undefined;
|
|
3811
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3811
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3812
3812
|
const callback = (rawResponse, flatResponse) => {
|
|
3813
3813
|
currentRawResponse = rawResponse;
|
|
3814
|
-
providedCallback === null || providedCallback ===
|
|
3814
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3815
3815
|
};
|
|
3816
3816
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3817
3817
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3830,8 +3830,8 @@ class VirtualMachineInstancesImpl {
|
|
|
3830
3830
|
spec: createCheckpointOperationSpec,
|
|
3831
3831
|
});
|
|
3832
3832
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3833
|
-
restoreFrom: options === null || options ===
|
|
3834
|
-
intervalInMs: options === null || options ===
|
|
3833
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3834
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3835
3835
|
resourceLocationConfig: "location",
|
|
3836
3836
|
});
|
|
3837
3837
|
yield poller.poll();
|
|
@@ -3845,7 +3845,7 @@ class VirtualMachineInstancesImpl {
|
|
|
3845
3845
|
* @param options The options parameters.
|
|
3846
3846
|
*/
|
|
3847
3847
|
beginCreateCheckpointAndWait(resourceUri, body, options) {
|
|
3848
|
-
return tslib.__awaiter(this,
|
|
3848
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3849
3849
|
const poller = yield this.beginCreateCheckpoint(resourceUri, body, options);
|
|
3850
3850
|
return poller.pollUntilDone();
|
|
3851
3851
|
});
|
|
@@ -3857,17 +3857,17 @@ class VirtualMachineInstancesImpl {
|
|
|
3857
3857
|
* @param options The options parameters.
|
|
3858
3858
|
*/
|
|
3859
3859
|
beginDeleteCheckpoint(resourceUri, body, options) {
|
|
3860
|
-
return tslib.__awaiter(this,
|
|
3861
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3860
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3861
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3862
3862
|
return this.client.sendOperationRequest(args, spec);
|
|
3863
3863
|
});
|
|
3864
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3864
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3865
3865
|
var _a;
|
|
3866
3866
|
let currentRawResponse = undefined;
|
|
3867
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3867
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3868
3868
|
const callback = (rawResponse, flatResponse) => {
|
|
3869
3869
|
currentRawResponse = rawResponse;
|
|
3870
|
-
providedCallback === null || providedCallback ===
|
|
3870
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3871
3871
|
};
|
|
3872
3872
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3873
3873
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3886,8 +3886,8 @@ class VirtualMachineInstancesImpl {
|
|
|
3886
3886
|
spec: deleteCheckpointOperationSpec,
|
|
3887
3887
|
});
|
|
3888
3888
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3889
|
-
restoreFrom: options === null || options ===
|
|
3890
|
-
intervalInMs: options === null || options ===
|
|
3889
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3890
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3891
3891
|
resourceLocationConfig: "location",
|
|
3892
3892
|
});
|
|
3893
3893
|
yield poller.poll();
|
|
@@ -3901,7 +3901,7 @@ class VirtualMachineInstancesImpl {
|
|
|
3901
3901
|
* @param options The options parameters.
|
|
3902
3902
|
*/
|
|
3903
3903
|
beginDeleteCheckpointAndWait(resourceUri, body, options) {
|
|
3904
|
-
return tslib.__awaiter(this,
|
|
3904
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3905
3905
|
const poller = yield this.beginDeleteCheckpoint(resourceUri, body, options);
|
|
3906
3906
|
return poller.pollUntilDone();
|
|
3907
3907
|
});
|
|
@@ -3912,17 +3912,17 @@ class VirtualMachineInstancesImpl {
|
|
|
3912
3912
|
* @param options The options parameters.
|
|
3913
3913
|
*/
|
|
3914
3914
|
beginRestart(resourceUri, options) {
|
|
3915
|
-
return tslib.__awaiter(this,
|
|
3916
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3915
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3916
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3917
3917
|
return this.client.sendOperationRequest(args, spec);
|
|
3918
3918
|
});
|
|
3919
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3919
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3920
3920
|
var _a;
|
|
3921
3921
|
let currentRawResponse = undefined;
|
|
3922
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3922
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3923
3923
|
const callback = (rawResponse, flatResponse) => {
|
|
3924
3924
|
currentRawResponse = rawResponse;
|
|
3925
|
-
providedCallback === null || providedCallback ===
|
|
3925
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3926
3926
|
};
|
|
3927
3927
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3928
3928
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3941,8 +3941,8 @@ class VirtualMachineInstancesImpl {
|
|
|
3941
3941
|
spec: restartOperationSpec,
|
|
3942
3942
|
});
|
|
3943
3943
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3944
|
-
restoreFrom: options === null || options ===
|
|
3945
|
-
intervalInMs: options === null || options ===
|
|
3944
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3945
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3946
3946
|
resourceLocationConfig: "location",
|
|
3947
3947
|
});
|
|
3948
3948
|
yield poller.poll();
|
|
@@ -3955,7 +3955,7 @@ class VirtualMachineInstancesImpl {
|
|
|
3955
3955
|
* @param options The options parameters.
|
|
3956
3956
|
*/
|
|
3957
3957
|
beginRestartAndWait(resourceUri, options) {
|
|
3958
|
-
return tslib.__awaiter(this,
|
|
3958
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3959
3959
|
const poller = yield this.beginRestart(resourceUri, options);
|
|
3960
3960
|
return poller.pollUntilDone();
|
|
3961
3961
|
});
|
|
@@ -3967,17 +3967,17 @@ class VirtualMachineInstancesImpl {
|
|
|
3967
3967
|
* @param options The options parameters.
|
|
3968
3968
|
*/
|
|
3969
3969
|
beginRestoreCheckpoint(resourceUri, body, options) {
|
|
3970
|
-
return tslib.__awaiter(this,
|
|
3971
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3970
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3971
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3972
3972
|
return this.client.sendOperationRequest(args, spec);
|
|
3973
3973
|
});
|
|
3974
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3974
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3975
3975
|
var _a;
|
|
3976
3976
|
let currentRawResponse = undefined;
|
|
3977
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3977
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3978
3978
|
const callback = (rawResponse, flatResponse) => {
|
|
3979
3979
|
currentRawResponse = rawResponse;
|
|
3980
|
-
providedCallback === null || providedCallback ===
|
|
3980
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3981
3981
|
};
|
|
3982
3982
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3983
3983
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3996,8 +3996,8 @@ class VirtualMachineInstancesImpl {
|
|
|
3996
3996
|
spec: restoreCheckpointOperationSpec,
|
|
3997
3997
|
});
|
|
3998
3998
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3999
|
-
restoreFrom: options === null || options ===
|
|
4000
|
-
intervalInMs: options === null || options ===
|
|
3999
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4000
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4001
4001
|
resourceLocationConfig: "location",
|
|
4002
4002
|
});
|
|
4003
4003
|
yield poller.poll();
|
|
@@ -4011,7 +4011,7 @@ class VirtualMachineInstancesImpl {
|
|
|
4011
4011
|
* @param options The options parameters.
|
|
4012
4012
|
*/
|
|
4013
4013
|
beginRestoreCheckpointAndWait(resourceUri, body, options) {
|
|
4014
|
-
return tslib.__awaiter(this,
|
|
4014
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4015
4015
|
const poller = yield this.beginRestoreCheckpoint(resourceUri, body, options);
|
|
4016
4016
|
return poller.pollUntilDone();
|
|
4017
4017
|
});
|
|
@@ -4022,17 +4022,17 @@ class VirtualMachineInstancesImpl {
|
|
|
4022
4022
|
* @param options The options parameters.
|
|
4023
4023
|
*/
|
|
4024
4024
|
beginStart(resourceUri, options) {
|
|
4025
|
-
return tslib.__awaiter(this,
|
|
4026
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4025
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4026
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4027
4027
|
return this.client.sendOperationRequest(args, spec);
|
|
4028
4028
|
});
|
|
4029
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4029
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4030
4030
|
var _a;
|
|
4031
4031
|
let currentRawResponse = undefined;
|
|
4032
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4032
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4033
4033
|
const callback = (rawResponse, flatResponse) => {
|
|
4034
4034
|
currentRawResponse = rawResponse;
|
|
4035
|
-
providedCallback === null || providedCallback ===
|
|
4035
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4036
4036
|
};
|
|
4037
4037
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4038
4038
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4051,8 +4051,8 @@ class VirtualMachineInstancesImpl {
|
|
|
4051
4051
|
spec: startOperationSpec,
|
|
4052
4052
|
});
|
|
4053
4053
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4054
|
-
restoreFrom: options === null || options ===
|
|
4055
|
-
intervalInMs: options === null || options ===
|
|
4054
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4055
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4056
4056
|
resourceLocationConfig: "location",
|
|
4057
4057
|
});
|
|
4058
4058
|
yield poller.poll();
|
|
@@ -4065,7 +4065,7 @@ class VirtualMachineInstancesImpl {
|
|
|
4065
4065
|
* @param options The options parameters.
|
|
4066
4066
|
*/
|
|
4067
4067
|
beginStartAndWait(resourceUri, options) {
|
|
4068
|
-
return tslib.__awaiter(this,
|
|
4068
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4069
4069
|
const poller = yield this.beginStart(resourceUri, options);
|
|
4070
4070
|
return poller.pollUntilDone();
|
|
4071
4071
|
});
|
|
@@ -4077,17 +4077,17 @@ class VirtualMachineInstancesImpl {
|
|
|
4077
4077
|
* @param options The options parameters.
|
|
4078
4078
|
*/
|
|
4079
4079
|
beginStop(resourceUri, body, options) {
|
|
4080
|
-
return tslib.__awaiter(this,
|
|
4081
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4080
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4081
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4082
4082
|
return this.client.sendOperationRequest(args, spec);
|
|
4083
4083
|
});
|
|
4084
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4084
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4085
4085
|
var _a;
|
|
4086
4086
|
let currentRawResponse = undefined;
|
|
4087
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4087
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4088
4088
|
const callback = (rawResponse, flatResponse) => {
|
|
4089
4089
|
currentRawResponse = rawResponse;
|
|
4090
|
-
providedCallback === null || providedCallback ===
|
|
4090
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4091
4091
|
};
|
|
4092
4092
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4093
4093
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4106,8 +4106,8 @@ class VirtualMachineInstancesImpl {
|
|
|
4106
4106
|
spec: stopOperationSpec,
|
|
4107
4107
|
});
|
|
4108
4108
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4109
|
-
restoreFrom: options === null || options ===
|
|
4110
|
-
intervalInMs: options === null || options ===
|
|
4109
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4110
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4111
4111
|
resourceLocationConfig: "location",
|
|
4112
4112
|
});
|
|
4113
4113
|
yield poller.poll();
|
|
@@ -4121,7 +4121,7 @@ class VirtualMachineInstancesImpl {
|
|
|
4121
4121
|
* @param options The options parameters.
|
|
4122
4122
|
*/
|
|
4123
4123
|
beginStopAndWait(resourceUri, body, options) {
|
|
4124
|
-
return tslib.__awaiter(this,
|
|
4124
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4125
4125
|
const poller = yield this.beginStop(resourceUri, body, options);
|
|
4126
4126
|
return poller.pollUntilDone();
|
|
4127
4127
|
});
|
|
@@ -4463,7 +4463,7 @@ class GuestAgentsImpl {
|
|
|
4463
4463
|
return this;
|
|
4464
4464
|
},
|
|
4465
4465
|
byPage: (settings) => {
|
|
4466
|
-
if (settings === null || settings ===
|
|
4466
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4467
4467
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4468
4468
|
}
|
|
4469
4469
|
return this.listByVirtualMachineInstancePagingPage(resourceUri, options, settings);
|
|
@@ -4473,7 +4473,7 @@ class GuestAgentsImpl {
|
|
|
4473
4473
|
listByVirtualMachineInstancePagingPage(resourceUri, options, settings) {
|
|
4474
4474
|
return tslib.__asyncGenerator(this, arguments, function* listByVirtualMachineInstancePagingPage_1() {
|
|
4475
4475
|
let result;
|
|
4476
|
-
let continuationToken = settings === null || settings ===
|
|
4476
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4477
4477
|
if (!continuationToken) {
|
|
4478
4478
|
result = yield tslib.__await(this._listByVirtualMachineInstance(resourceUri, options));
|
|
4479
4479
|
let page = result.value || [];
|
|
@@ -4533,17 +4533,17 @@ class GuestAgentsImpl {
|
|
|
4533
4533
|
* @param options The options parameters.
|
|
4534
4534
|
*/
|
|
4535
4535
|
beginCreate(resourceUri, resource, options) {
|
|
4536
|
-
return tslib.__awaiter(this,
|
|
4537
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4536
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4537
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4538
4538
|
return this.client.sendOperationRequest(args, spec);
|
|
4539
4539
|
});
|
|
4540
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4540
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4541
4541
|
var _a;
|
|
4542
4542
|
let currentRawResponse = undefined;
|
|
4543
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4543
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4544
4544
|
const callback = (rawResponse, flatResponse) => {
|
|
4545
4545
|
currentRawResponse = rawResponse;
|
|
4546
|
-
providedCallback === null || providedCallback ===
|
|
4546
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4547
4547
|
};
|
|
4548
4548
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4549
4549
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4562,8 +4562,8 @@ class GuestAgentsImpl {
|
|
|
4562
4562
|
spec: createOperationSpec$1,
|
|
4563
4563
|
});
|
|
4564
4564
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4565
|
-
restoreFrom: options === null || options ===
|
|
4566
|
-
intervalInMs: options === null || options ===
|
|
4565
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4566
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4567
4567
|
resourceLocationConfig: "azure-async-operation",
|
|
4568
4568
|
});
|
|
4569
4569
|
yield poller.poll();
|
|
@@ -4577,7 +4577,7 @@ class GuestAgentsImpl {
|
|
|
4577
4577
|
* @param options The options parameters.
|
|
4578
4578
|
*/
|
|
4579
4579
|
beginCreateAndWait(resourceUri, resource, options) {
|
|
4580
|
-
return tslib.__awaiter(this,
|
|
4580
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4581
4581
|
const poller = yield this.beginCreate(resourceUri, resource, options);
|
|
4582
4582
|
return poller.pollUntilDone();
|
|
4583
4583
|
});
|
|
@@ -4729,7 +4729,7 @@ class VmInstanceHybridIdentityMetadatasImpl {
|
|
|
4729
4729
|
return this;
|
|
4730
4730
|
},
|
|
4731
4731
|
byPage: (settings) => {
|
|
4732
|
-
if (settings === null || settings ===
|
|
4732
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4733
4733
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4734
4734
|
}
|
|
4735
4735
|
return this.listByVirtualMachineInstancePagingPage(resourceUri, options, settings);
|
|
@@ -4739,7 +4739,7 @@ class VmInstanceHybridIdentityMetadatasImpl {
|
|
|
4739
4739
|
listByVirtualMachineInstancePagingPage(resourceUri, options, settings) {
|
|
4740
4740
|
return tslib.__asyncGenerator(this, arguments, function* listByVirtualMachineInstancePagingPage_1() {
|
|
4741
4741
|
let result;
|
|
4742
|
-
let continuationToken = settings === null || settings ===
|
|
4742
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4743
4743
|
if (!continuationToken) {
|
|
4744
4744
|
result = yield tslib.__await(this._listByVirtualMachineInstance(resourceUri, options));
|
|
4745
4745
|
let page = result.value || [];
|
|
@@ -4888,7 +4888,7 @@ class OperationsImpl {
|
|
|
4888
4888
|
return this;
|
|
4889
4889
|
},
|
|
4890
4890
|
byPage: (settings) => {
|
|
4891
|
-
if (settings === null || settings ===
|
|
4891
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4892
4892
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4893
4893
|
}
|
|
4894
4894
|
return this.listPagingPage(options, settings);
|
|
@@ -4898,7 +4898,7 @@ class OperationsImpl {
|
|
|
4898
4898
|
listPagingPage(options, settings) {
|
|
4899
4899
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4900
4900
|
let result;
|
|
4901
|
-
let continuationToken = settings === null || settings ===
|
|
4901
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4902
4902
|
if (!continuationToken) {
|
|
4903
4903
|
result = yield tslib.__await(this._list(options));
|
|
4904
4904
|
let page = result.value || [];
|
|
@@ -5016,7 +5016,7 @@ class AvailabilitySetsImpl {
|
|
|
5016
5016
|
return this;
|
|
5017
5017
|
},
|
|
5018
5018
|
byPage: (settings) => {
|
|
5019
|
-
if (settings === null || settings ===
|
|
5019
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5020
5020
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5021
5021
|
}
|
|
5022
5022
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -5026,7 +5026,7 @@ class AvailabilitySetsImpl {
|
|
|
5026
5026
|
listBySubscriptionPagingPage(options, settings) {
|
|
5027
5027
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
5028
5028
|
let result;
|
|
5029
|
-
let continuationToken = settings === null || settings ===
|
|
5029
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5030
5030
|
if (!continuationToken) {
|
|
5031
5031
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
5032
5032
|
let page = result.value || [];
|
|
@@ -5078,7 +5078,7 @@ class AvailabilitySetsImpl {
|
|
|
5078
5078
|
return this;
|
|
5079
5079
|
},
|
|
5080
5080
|
byPage: (settings) => {
|
|
5081
|
-
if (settings === null || settings ===
|
|
5081
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5082
5082
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5083
5083
|
}
|
|
5084
5084
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -5088,7 +5088,7 @@ class AvailabilitySetsImpl {
|
|
|
5088
5088
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
5089
5089
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
5090
5090
|
let result;
|
|
5091
|
-
let continuationToken = settings === null || settings ===
|
|
5091
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5092
5092
|
if (!continuationToken) {
|
|
5093
5093
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
5094
5094
|
let page = result.value || [];
|
|
@@ -5157,17 +5157,17 @@ class AvailabilitySetsImpl {
|
|
|
5157
5157
|
* @param options The options parameters.
|
|
5158
5158
|
*/
|
|
5159
5159
|
beginCreateOrUpdate(resourceGroupName, availabilitySetResourceName, resource, options) {
|
|
5160
|
-
return tslib.__awaiter(this,
|
|
5161
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5160
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5161
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5162
5162
|
return this.client.sendOperationRequest(args, spec);
|
|
5163
5163
|
});
|
|
5164
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5164
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5165
5165
|
var _a;
|
|
5166
5166
|
let currentRawResponse = undefined;
|
|
5167
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5167
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
5168
5168
|
const callback = (rawResponse, flatResponse) => {
|
|
5169
5169
|
currentRawResponse = rawResponse;
|
|
5170
|
-
providedCallback === null || providedCallback ===
|
|
5170
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
5171
5171
|
};
|
|
5172
5172
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5173
5173
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5191,8 +5191,8 @@ class AvailabilitySetsImpl {
|
|
|
5191
5191
|
spec: createOrUpdateOperationSpec$4,
|
|
5192
5192
|
});
|
|
5193
5193
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5194
|
-
restoreFrom: options === null || options ===
|
|
5195
|
-
intervalInMs: options === null || options ===
|
|
5194
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5195
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
5196
5196
|
resourceLocationConfig: "azure-async-operation",
|
|
5197
5197
|
});
|
|
5198
5198
|
yield poller.poll();
|
|
@@ -5207,7 +5207,7 @@ class AvailabilitySetsImpl {
|
|
|
5207
5207
|
* @param options The options parameters.
|
|
5208
5208
|
*/
|
|
5209
5209
|
beginCreateOrUpdateAndWait(resourceGroupName, availabilitySetResourceName, resource, options) {
|
|
5210
|
-
return tslib.__awaiter(this,
|
|
5210
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5211
5211
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, availabilitySetResourceName, resource, options);
|
|
5212
5212
|
return poller.pollUntilDone();
|
|
5213
5213
|
});
|
|
@@ -5220,17 +5220,17 @@ class AvailabilitySetsImpl {
|
|
|
5220
5220
|
* @param options The options parameters.
|
|
5221
5221
|
*/
|
|
5222
5222
|
beginUpdate(resourceGroupName, availabilitySetResourceName, properties, options) {
|
|
5223
|
-
return tslib.__awaiter(this,
|
|
5224
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5223
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5224
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5225
5225
|
return this.client.sendOperationRequest(args, spec);
|
|
5226
5226
|
});
|
|
5227
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5227
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5228
5228
|
var _a;
|
|
5229
5229
|
let currentRawResponse = undefined;
|
|
5230
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5230
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
5231
5231
|
const callback = (rawResponse, flatResponse) => {
|
|
5232
5232
|
currentRawResponse = rawResponse;
|
|
5233
|
-
providedCallback === null || providedCallback ===
|
|
5233
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
5234
5234
|
};
|
|
5235
5235
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5236
5236
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5254,8 +5254,8 @@ class AvailabilitySetsImpl {
|
|
|
5254
5254
|
spec: updateOperationSpec$4,
|
|
5255
5255
|
});
|
|
5256
5256
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5257
|
-
restoreFrom: options === null || options ===
|
|
5258
|
-
intervalInMs: options === null || options ===
|
|
5257
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5258
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
5259
5259
|
resourceLocationConfig: "azure-async-operation",
|
|
5260
5260
|
});
|
|
5261
5261
|
yield poller.poll();
|
|
@@ -5270,7 +5270,7 @@ class AvailabilitySetsImpl {
|
|
|
5270
5270
|
* @param options The options parameters.
|
|
5271
5271
|
*/
|
|
5272
5272
|
beginUpdateAndWait(resourceGroupName, availabilitySetResourceName, properties, options) {
|
|
5273
|
-
return tslib.__awaiter(this,
|
|
5273
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5274
5274
|
const poller = yield this.beginUpdate(resourceGroupName, availabilitySetResourceName, properties, options);
|
|
5275
5275
|
return poller.pollUntilDone();
|
|
5276
5276
|
});
|
|
@@ -5282,17 +5282,17 @@ class AvailabilitySetsImpl {
|
|
|
5282
5282
|
* @param options The options parameters.
|
|
5283
5283
|
*/
|
|
5284
5284
|
beginDelete(resourceGroupName, availabilitySetResourceName, options) {
|
|
5285
|
-
return tslib.__awaiter(this,
|
|
5286
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5285
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5286
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5287
5287
|
return this.client.sendOperationRequest(args, spec);
|
|
5288
5288
|
});
|
|
5289
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5289
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5290
5290
|
var _a;
|
|
5291
5291
|
let currentRawResponse = undefined;
|
|
5292
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5292
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
5293
5293
|
const callback = (rawResponse, flatResponse) => {
|
|
5294
5294
|
currentRawResponse = rawResponse;
|
|
5295
|
-
providedCallback === null || providedCallback ===
|
|
5295
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
5296
5296
|
};
|
|
5297
5297
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5298
5298
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5311,8 +5311,8 @@ class AvailabilitySetsImpl {
|
|
|
5311
5311
|
spec: deleteOperationSpec$5,
|
|
5312
5312
|
});
|
|
5313
5313
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5314
|
-
restoreFrom: options === null || options ===
|
|
5315
|
-
intervalInMs: options === null || options ===
|
|
5314
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5315
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
5316
5316
|
resourceLocationConfig: "location",
|
|
5317
5317
|
});
|
|
5318
5318
|
yield poller.poll();
|
|
@@ -5326,7 +5326,7 @@ class AvailabilitySetsImpl {
|
|
|
5326
5326
|
* @param options The options parameters.
|
|
5327
5327
|
*/
|
|
5328
5328
|
beginDeleteAndWait(resourceGroupName, availabilitySetResourceName, options) {
|
|
5329
|
-
return tslib.__awaiter(this,
|
|
5329
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5330
5330
|
const poller = yield this.beginDelete(resourceGroupName, availabilitySetResourceName, options);
|
|
5331
5331
|
return poller.pollUntilDone();
|
|
5332
5332
|
});
|
|
@@ -5573,7 +5573,7 @@ class CloudsImpl {
|
|
|
5573
5573
|
return this;
|
|
5574
5574
|
},
|
|
5575
5575
|
byPage: (settings) => {
|
|
5576
|
-
if (settings === null || settings ===
|
|
5576
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5577
5577
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5578
5578
|
}
|
|
5579
5579
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -5583,7 +5583,7 @@ class CloudsImpl {
|
|
|
5583
5583
|
listBySubscriptionPagingPage(options, settings) {
|
|
5584
5584
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
5585
5585
|
let result;
|
|
5586
|
-
let continuationToken = settings === null || settings ===
|
|
5586
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5587
5587
|
if (!continuationToken) {
|
|
5588
5588
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
5589
5589
|
let page = result.value || [];
|
|
@@ -5635,7 +5635,7 @@ class CloudsImpl {
|
|
|
5635
5635
|
return this;
|
|
5636
5636
|
},
|
|
5637
5637
|
byPage: (settings) => {
|
|
5638
|
-
if (settings === null || settings ===
|
|
5638
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5639
5639
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5640
5640
|
}
|
|
5641
5641
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -5645,7 +5645,7 @@ class CloudsImpl {
|
|
|
5645
5645
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
5646
5646
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
5647
5647
|
let result;
|
|
5648
|
-
let continuationToken = settings === null || settings ===
|
|
5648
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5649
5649
|
if (!continuationToken) {
|
|
5650
5650
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
5651
5651
|
let page = result.value || [];
|
|
@@ -5714,17 +5714,17 @@ class CloudsImpl {
|
|
|
5714
5714
|
* @param options The options parameters.
|
|
5715
5715
|
*/
|
|
5716
5716
|
beginCreateOrUpdate(resourceGroupName, cloudResourceName, resource, options) {
|
|
5717
|
-
return tslib.__awaiter(this,
|
|
5718
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5717
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5718
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5719
5719
|
return this.client.sendOperationRequest(args, spec);
|
|
5720
5720
|
});
|
|
5721
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5721
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5722
5722
|
var _a;
|
|
5723
5723
|
let currentRawResponse = undefined;
|
|
5724
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5724
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
5725
5725
|
const callback = (rawResponse, flatResponse) => {
|
|
5726
5726
|
currentRawResponse = rawResponse;
|
|
5727
|
-
providedCallback === null || providedCallback ===
|
|
5727
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
5728
5728
|
};
|
|
5729
5729
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5730
5730
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5743,8 +5743,8 @@ class CloudsImpl {
|
|
|
5743
5743
|
spec: createOrUpdateOperationSpec$3,
|
|
5744
5744
|
});
|
|
5745
5745
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5746
|
-
restoreFrom: options === null || options ===
|
|
5747
|
-
intervalInMs: options === null || options ===
|
|
5746
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5747
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
5748
5748
|
resourceLocationConfig: "azure-async-operation",
|
|
5749
5749
|
});
|
|
5750
5750
|
yield poller.poll();
|
|
@@ -5759,7 +5759,7 @@ class CloudsImpl {
|
|
|
5759
5759
|
* @param options The options parameters.
|
|
5760
5760
|
*/
|
|
5761
5761
|
beginCreateOrUpdateAndWait(resourceGroupName, cloudResourceName, resource, options) {
|
|
5762
|
-
return tslib.__awaiter(this,
|
|
5762
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5763
5763
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, cloudResourceName, resource, options);
|
|
5764
5764
|
return poller.pollUntilDone();
|
|
5765
5765
|
});
|
|
@@ -5772,17 +5772,17 @@ class CloudsImpl {
|
|
|
5772
5772
|
* @param options The options parameters.
|
|
5773
5773
|
*/
|
|
5774
5774
|
beginUpdate(resourceGroupName, cloudResourceName, properties, options) {
|
|
5775
|
-
return tslib.__awaiter(this,
|
|
5776
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5775
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5776
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5777
5777
|
return this.client.sendOperationRequest(args, spec);
|
|
5778
5778
|
});
|
|
5779
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5779
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5780
5780
|
var _a;
|
|
5781
5781
|
let currentRawResponse = undefined;
|
|
5782
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5782
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
5783
5783
|
const callback = (rawResponse, flatResponse) => {
|
|
5784
5784
|
currentRawResponse = rawResponse;
|
|
5785
|
-
providedCallback === null || providedCallback ===
|
|
5785
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
5786
5786
|
};
|
|
5787
5787
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5788
5788
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5801,8 +5801,8 @@ class CloudsImpl {
|
|
|
5801
5801
|
spec: updateOperationSpec$3,
|
|
5802
5802
|
});
|
|
5803
5803
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5804
|
-
restoreFrom: options === null || options ===
|
|
5805
|
-
intervalInMs: options === null || options ===
|
|
5804
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5805
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
5806
5806
|
resourceLocationConfig: "azure-async-operation",
|
|
5807
5807
|
});
|
|
5808
5808
|
yield poller.poll();
|
|
@@ -5817,7 +5817,7 @@ class CloudsImpl {
|
|
|
5817
5817
|
* @param options The options parameters.
|
|
5818
5818
|
*/
|
|
5819
5819
|
beginUpdateAndWait(resourceGroupName, cloudResourceName, properties, options) {
|
|
5820
|
-
return tslib.__awaiter(this,
|
|
5820
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5821
5821
|
const poller = yield this.beginUpdate(resourceGroupName, cloudResourceName, properties, options);
|
|
5822
5822
|
return poller.pollUntilDone();
|
|
5823
5823
|
});
|
|
@@ -5829,17 +5829,17 @@ class CloudsImpl {
|
|
|
5829
5829
|
* @param options The options parameters.
|
|
5830
5830
|
*/
|
|
5831
5831
|
beginDelete(resourceGroupName, cloudResourceName, options) {
|
|
5832
|
-
return tslib.__awaiter(this,
|
|
5833
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5832
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5833
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5834
5834
|
return this.client.sendOperationRequest(args, spec);
|
|
5835
5835
|
});
|
|
5836
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5836
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5837
5837
|
var _a;
|
|
5838
5838
|
let currentRawResponse = undefined;
|
|
5839
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5839
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
5840
5840
|
const callback = (rawResponse, flatResponse) => {
|
|
5841
5841
|
currentRawResponse = rawResponse;
|
|
5842
|
-
providedCallback === null || providedCallback ===
|
|
5842
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
5843
5843
|
};
|
|
5844
5844
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5845
5845
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5858,8 +5858,8 @@ class CloudsImpl {
|
|
|
5858
5858
|
spec: deleteOperationSpec$4,
|
|
5859
5859
|
});
|
|
5860
5860
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5861
|
-
restoreFrom: options === null || options ===
|
|
5862
|
-
intervalInMs: options === null || options ===
|
|
5861
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5862
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
5863
5863
|
resourceLocationConfig: "azure-async-operation",
|
|
5864
5864
|
});
|
|
5865
5865
|
yield poller.poll();
|
|
@@ -5873,7 +5873,7 @@ class CloudsImpl {
|
|
|
5873
5873
|
* @param options The options parameters.
|
|
5874
5874
|
*/
|
|
5875
5875
|
beginDeleteAndWait(resourceGroupName, cloudResourceName, options) {
|
|
5876
|
-
return tslib.__awaiter(this,
|
|
5876
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5877
5877
|
const poller = yield this.beginDelete(resourceGroupName, cloudResourceName, options);
|
|
5878
5878
|
return poller.pollUntilDone();
|
|
5879
5879
|
});
|
|
@@ -6120,7 +6120,7 @@ class VirtualMachineTemplatesImpl {
|
|
|
6120
6120
|
return this;
|
|
6121
6121
|
},
|
|
6122
6122
|
byPage: (settings) => {
|
|
6123
|
-
if (settings === null || settings ===
|
|
6123
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6124
6124
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6125
6125
|
}
|
|
6126
6126
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -6130,7 +6130,7 @@ class VirtualMachineTemplatesImpl {
|
|
|
6130
6130
|
listBySubscriptionPagingPage(options, settings) {
|
|
6131
6131
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
6132
6132
|
let result;
|
|
6133
|
-
let continuationToken = settings === null || settings ===
|
|
6133
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6134
6134
|
if (!continuationToken) {
|
|
6135
6135
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
6136
6136
|
let page = result.value || [];
|
|
@@ -6182,7 +6182,7 @@ class VirtualMachineTemplatesImpl {
|
|
|
6182
6182
|
return this;
|
|
6183
6183
|
},
|
|
6184
6184
|
byPage: (settings) => {
|
|
6185
|
-
if (settings === null || settings ===
|
|
6185
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6186
6186
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6187
6187
|
}
|
|
6188
6188
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -6192,7 +6192,7 @@ class VirtualMachineTemplatesImpl {
|
|
|
6192
6192
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
6193
6193
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
6194
6194
|
let result;
|
|
6195
|
-
let continuationToken = settings === null || settings ===
|
|
6195
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6196
6196
|
if (!continuationToken) {
|
|
6197
6197
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
6198
6198
|
let page = result.value || [];
|
|
@@ -6261,17 +6261,17 @@ class VirtualMachineTemplatesImpl {
|
|
|
6261
6261
|
* @param options The options parameters.
|
|
6262
6262
|
*/
|
|
6263
6263
|
beginCreateOrUpdate(resourceGroupName, virtualMachineTemplateName, resource, options) {
|
|
6264
|
-
return tslib.__awaiter(this,
|
|
6265
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6264
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6265
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6266
6266
|
return this.client.sendOperationRequest(args, spec);
|
|
6267
6267
|
});
|
|
6268
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6268
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6269
6269
|
var _a;
|
|
6270
6270
|
let currentRawResponse = undefined;
|
|
6271
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6271
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6272
6272
|
const callback = (rawResponse, flatResponse) => {
|
|
6273
6273
|
currentRawResponse = rawResponse;
|
|
6274
|
-
providedCallback === null || providedCallback ===
|
|
6274
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6275
6275
|
};
|
|
6276
6276
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6277
6277
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6295,8 +6295,8 @@ class VirtualMachineTemplatesImpl {
|
|
|
6295
6295
|
spec: createOrUpdateOperationSpec$2,
|
|
6296
6296
|
});
|
|
6297
6297
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6298
|
-
restoreFrom: options === null || options ===
|
|
6299
|
-
intervalInMs: options === null || options ===
|
|
6298
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6299
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6300
6300
|
resourceLocationConfig: "azure-async-operation",
|
|
6301
6301
|
});
|
|
6302
6302
|
yield poller.poll();
|
|
@@ -6311,7 +6311,7 @@ class VirtualMachineTemplatesImpl {
|
|
|
6311
6311
|
* @param options The options parameters.
|
|
6312
6312
|
*/
|
|
6313
6313
|
beginCreateOrUpdateAndWait(resourceGroupName, virtualMachineTemplateName, resource, options) {
|
|
6314
|
-
return tslib.__awaiter(this,
|
|
6314
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6315
6315
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, virtualMachineTemplateName, resource, options);
|
|
6316
6316
|
return poller.pollUntilDone();
|
|
6317
6317
|
});
|
|
@@ -6324,17 +6324,17 @@ class VirtualMachineTemplatesImpl {
|
|
|
6324
6324
|
* @param options The options parameters.
|
|
6325
6325
|
*/
|
|
6326
6326
|
beginUpdate(resourceGroupName, virtualMachineTemplateName, properties, options) {
|
|
6327
|
-
return tslib.__awaiter(this,
|
|
6328
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6327
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6328
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6329
6329
|
return this.client.sendOperationRequest(args, spec);
|
|
6330
6330
|
});
|
|
6331
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6331
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6332
6332
|
var _a;
|
|
6333
6333
|
let currentRawResponse = undefined;
|
|
6334
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6334
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6335
6335
|
const callback = (rawResponse, flatResponse) => {
|
|
6336
6336
|
currentRawResponse = rawResponse;
|
|
6337
|
-
providedCallback === null || providedCallback ===
|
|
6337
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6338
6338
|
};
|
|
6339
6339
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6340
6340
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6358,8 +6358,8 @@ class VirtualMachineTemplatesImpl {
|
|
|
6358
6358
|
spec: updateOperationSpec$2,
|
|
6359
6359
|
});
|
|
6360
6360
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6361
|
-
restoreFrom: options === null || options ===
|
|
6362
|
-
intervalInMs: options === null || options ===
|
|
6361
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6362
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6363
6363
|
resourceLocationConfig: "azure-async-operation",
|
|
6364
6364
|
});
|
|
6365
6365
|
yield poller.poll();
|
|
@@ -6374,7 +6374,7 @@ class VirtualMachineTemplatesImpl {
|
|
|
6374
6374
|
* @param options The options parameters.
|
|
6375
6375
|
*/
|
|
6376
6376
|
beginUpdateAndWait(resourceGroupName, virtualMachineTemplateName, properties, options) {
|
|
6377
|
-
return tslib.__awaiter(this,
|
|
6377
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6378
6378
|
const poller = yield this.beginUpdate(resourceGroupName, virtualMachineTemplateName, properties, options);
|
|
6379
6379
|
return poller.pollUntilDone();
|
|
6380
6380
|
});
|
|
@@ -6386,17 +6386,17 @@ class VirtualMachineTemplatesImpl {
|
|
|
6386
6386
|
* @param options The options parameters.
|
|
6387
6387
|
*/
|
|
6388
6388
|
beginDelete(resourceGroupName, virtualMachineTemplateName, options) {
|
|
6389
|
-
return tslib.__awaiter(this,
|
|
6390
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6389
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6390
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6391
6391
|
return this.client.sendOperationRequest(args, spec);
|
|
6392
6392
|
});
|
|
6393
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6393
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6394
6394
|
var _a;
|
|
6395
6395
|
let currentRawResponse = undefined;
|
|
6396
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6396
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6397
6397
|
const callback = (rawResponse, flatResponse) => {
|
|
6398
6398
|
currentRawResponse = rawResponse;
|
|
6399
|
-
providedCallback === null || providedCallback ===
|
|
6399
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6400
6400
|
};
|
|
6401
6401
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6402
6402
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6415,8 +6415,8 @@ class VirtualMachineTemplatesImpl {
|
|
|
6415
6415
|
spec: deleteOperationSpec$3,
|
|
6416
6416
|
});
|
|
6417
6417
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6418
|
-
restoreFrom: options === null || options ===
|
|
6419
|
-
intervalInMs: options === null || options ===
|
|
6418
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6419
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6420
6420
|
resourceLocationConfig: "azure-async-operation",
|
|
6421
6421
|
});
|
|
6422
6422
|
yield poller.poll();
|
|
@@ -6430,7 +6430,7 @@ class VirtualMachineTemplatesImpl {
|
|
|
6430
6430
|
* @param options The options parameters.
|
|
6431
6431
|
*/
|
|
6432
6432
|
beginDeleteAndWait(resourceGroupName, virtualMachineTemplateName, options) {
|
|
6433
|
-
return tslib.__awaiter(this,
|
|
6433
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6434
6434
|
const poller = yield this.beginDelete(resourceGroupName, virtualMachineTemplateName, options);
|
|
6435
6435
|
return poller.pollUntilDone();
|
|
6436
6436
|
});
|
|
@@ -6677,7 +6677,7 @@ class VirtualNetworksImpl {
|
|
|
6677
6677
|
return this;
|
|
6678
6678
|
},
|
|
6679
6679
|
byPage: (settings) => {
|
|
6680
|
-
if (settings === null || settings ===
|
|
6680
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6681
6681
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6682
6682
|
}
|
|
6683
6683
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -6687,7 +6687,7 @@ class VirtualNetworksImpl {
|
|
|
6687
6687
|
listBySubscriptionPagingPage(options, settings) {
|
|
6688
6688
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
6689
6689
|
let result;
|
|
6690
|
-
let continuationToken = settings === null || settings ===
|
|
6690
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6691
6691
|
if (!continuationToken) {
|
|
6692
6692
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
6693
6693
|
let page = result.value || [];
|
|
@@ -6739,7 +6739,7 @@ class VirtualNetworksImpl {
|
|
|
6739
6739
|
return this;
|
|
6740
6740
|
},
|
|
6741
6741
|
byPage: (settings) => {
|
|
6742
|
-
if (settings === null || settings ===
|
|
6742
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6743
6743
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6744
6744
|
}
|
|
6745
6745
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -6749,7 +6749,7 @@ class VirtualNetworksImpl {
|
|
|
6749
6749
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
6750
6750
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
6751
6751
|
let result;
|
|
6752
|
-
let continuationToken = settings === null || settings ===
|
|
6752
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6753
6753
|
if (!continuationToken) {
|
|
6754
6754
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
6755
6755
|
let page = result.value || [];
|
|
@@ -6818,17 +6818,17 @@ class VirtualNetworksImpl {
|
|
|
6818
6818
|
* @param options The options parameters.
|
|
6819
6819
|
*/
|
|
6820
6820
|
beginCreateOrUpdate(resourceGroupName, virtualNetworkName, resource, options) {
|
|
6821
|
-
return tslib.__awaiter(this,
|
|
6822
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6821
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6822
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6823
6823
|
return this.client.sendOperationRequest(args, spec);
|
|
6824
6824
|
});
|
|
6825
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6825
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6826
6826
|
var _a;
|
|
6827
6827
|
let currentRawResponse = undefined;
|
|
6828
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6828
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6829
6829
|
const callback = (rawResponse, flatResponse) => {
|
|
6830
6830
|
currentRawResponse = rawResponse;
|
|
6831
|
-
providedCallback === null || providedCallback ===
|
|
6831
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6832
6832
|
};
|
|
6833
6833
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6834
6834
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6847,8 +6847,8 @@ class VirtualNetworksImpl {
|
|
|
6847
6847
|
spec: createOrUpdateOperationSpec$1,
|
|
6848
6848
|
});
|
|
6849
6849
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6850
|
-
restoreFrom: options === null || options ===
|
|
6851
|
-
intervalInMs: options === null || options ===
|
|
6850
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6851
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6852
6852
|
resourceLocationConfig: "azure-async-operation",
|
|
6853
6853
|
});
|
|
6854
6854
|
yield poller.poll();
|
|
@@ -6863,7 +6863,7 @@ class VirtualNetworksImpl {
|
|
|
6863
6863
|
* @param options The options parameters.
|
|
6864
6864
|
*/
|
|
6865
6865
|
beginCreateOrUpdateAndWait(resourceGroupName, virtualNetworkName, resource, options) {
|
|
6866
|
-
return tslib.__awaiter(this,
|
|
6866
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6867
6867
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, virtualNetworkName, resource, options);
|
|
6868
6868
|
return poller.pollUntilDone();
|
|
6869
6869
|
});
|
|
@@ -6876,17 +6876,17 @@ class VirtualNetworksImpl {
|
|
|
6876
6876
|
* @param options The options parameters.
|
|
6877
6877
|
*/
|
|
6878
6878
|
beginUpdate(resourceGroupName, virtualNetworkName, properties, options) {
|
|
6879
|
-
return tslib.__awaiter(this,
|
|
6880
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6879
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6880
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6881
6881
|
return this.client.sendOperationRequest(args, spec);
|
|
6882
6882
|
});
|
|
6883
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6883
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6884
6884
|
var _a;
|
|
6885
6885
|
let currentRawResponse = undefined;
|
|
6886
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6886
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6887
6887
|
const callback = (rawResponse, flatResponse) => {
|
|
6888
6888
|
currentRawResponse = rawResponse;
|
|
6889
|
-
providedCallback === null || providedCallback ===
|
|
6889
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6890
6890
|
};
|
|
6891
6891
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6892
6892
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6905,8 +6905,8 @@ class VirtualNetworksImpl {
|
|
|
6905
6905
|
spec: updateOperationSpec$1,
|
|
6906
6906
|
});
|
|
6907
6907
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6908
|
-
restoreFrom: options === null || options ===
|
|
6909
|
-
intervalInMs: options === null || options ===
|
|
6908
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6909
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6910
6910
|
resourceLocationConfig: "azure-async-operation",
|
|
6911
6911
|
});
|
|
6912
6912
|
yield poller.poll();
|
|
@@ -6921,7 +6921,7 @@ class VirtualNetworksImpl {
|
|
|
6921
6921
|
* @param options The options parameters.
|
|
6922
6922
|
*/
|
|
6923
6923
|
beginUpdateAndWait(resourceGroupName, virtualNetworkName, properties, options) {
|
|
6924
|
-
return tslib.__awaiter(this,
|
|
6924
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6925
6925
|
const poller = yield this.beginUpdate(resourceGroupName, virtualNetworkName, properties, options);
|
|
6926
6926
|
return poller.pollUntilDone();
|
|
6927
6927
|
});
|
|
@@ -6933,17 +6933,17 @@ class VirtualNetworksImpl {
|
|
|
6933
6933
|
* @param options The options parameters.
|
|
6934
6934
|
*/
|
|
6935
6935
|
beginDelete(resourceGroupName, virtualNetworkName, options) {
|
|
6936
|
-
return tslib.__awaiter(this,
|
|
6937
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6936
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6937
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6938
6938
|
return this.client.sendOperationRequest(args, spec);
|
|
6939
6939
|
});
|
|
6940
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6940
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6941
6941
|
var _a;
|
|
6942
6942
|
let currentRawResponse = undefined;
|
|
6943
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6943
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6944
6944
|
const callback = (rawResponse, flatResponse) => {
|
|
6945
6945
|
currentRawResponse = rawResponse;
|
|
6946
|
-
providedCallback === null || providedCallback ===
|
|
6946
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6947
6947
|
};
|
|
6948
6948
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6949
6949
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6962,8 +6962,8 @@ class VirtualNetworksImpl {
|
|
|
6962
6962
|
spec: deleteOperationSpec$2,
|
|
6963
6963
|
});
|
|
6964
6964
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6965
|
-
restoreFrom: options === null || options ===
|
|
6966
|
-
intervalInMs: options === null || options ===
|
|
6965
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6966
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6967
6967
|
resourceLocationConfig: "azure-async-operation",
|
|
6968
6968
|
});
|
|
6969
6969
|
yield poller.poll();
|
|
@@ -6977,7 +6977,7 @@ class VirtualNetworksImpl {
|
|
|
6977
6977
|
* @param options The options parameters.
|
|
6978
6978
|
*/
|
|
6979
6979
|
beginDeleteAndWait(resourceGroupName, virtualNetworkName, options) {
|
|
6980
|
-
return tslib.__awaiter(this,
|
|
6980
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6981
6981
|
const poller = yield this.beginDelete(resourceGroupName, virtualNetworkName, options);
|
|
6982
6982
|
return poller.pollUntilDone();
|
|
6983
6983
|
});
|
|
@@ -7224,7 +7224,7 @@ class VmmServersImpl {
|
|
|
7224
7224
|
return this;
|
|
7225
7225
|
},
|
|
7226
7226
|
byPage: (settings) => {
|
|
7227
|
-
if (settings === null || settings ===
|
|
7227
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
7228
7228
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7229
7229
|
}
|
|
7230
7230
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -7234,7 +7234,7 @@ class VmmServersImpl {
|
|
|
7234
7234
|
listBySubscriptionPagingPage(options, settings) {
|
|
7235
7235
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
7236
7236
|
let result;
|
|
7237
|
-
let continuationToken = settings === null || settings ===
|
|
7237
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
7238
7238
|
if (!continuationToken) {
|
|
7239
7239
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
7240
7240
|
let page = result.value || [];
|
|
@@ -7286,7 +7286,7 @@ class VmmServersImpl {
|
|
|
7286
7286
|
return this;
|
|
7287
7287
|
},
|
|
7288
7288
|
byPage: (settings) => {
|
|
7289
|
-
if (settings === null || settings ===
|
|
7289
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
7290
7290
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7291
7291
|
}
|
|
7292
7292
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -7296,7 +7296,7 @@ class VmmServersImpl {
|
|
|
7296
7296
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
7297
7297
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
7298
7298
|
let result;
|
|
7299
|
-
let continuationToken = settings === null || settings ===
|
|
7299
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
7300
7300
|
if (!continuationToken) {
|
|
7301
7301
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
7302
7302
|
let page = result.value || [];
|
|
@@ -7365,17 +7365,17 @@ class VmmServersImpl {
|
|
|
7365
7365
|
* @param options The options parameters.
|
|
7366
7366
|
*/
|
|
7367
7367
|
beginCreateOrUpdate(resourceGroupName, vmmServerName, resource, options) {
|
|
7368
|
-
return tslib.__awaiter(this,
|
|
7369
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7368
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7369
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7370
7370
|
return this.client.sendOperationRequest(args, spec);
|
|
7371
7371
|
});
|
|
7372
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7372
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7373
7373
|
var _a;
|
|
7374
7374
|
let currentRawResponse = undefined;
|
|
7375
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7375
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
7376
7376
|
const callback = (rawResponse, flatResponse) => {
|
|
7377
7377
|
currentRawResponse = rawResponse;
|
|
7378
|
-
providedCallback === null || providedCallback ===
|
|
7378
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
7379
7379
|
};
|
|
7380
7380
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7381
7381
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7394,8 +7394,8 @@ class VmmServersImpl {
|
|
|
7394
7394
|
spec: createOrUpdateOperationSpec,
|
|
7395
7395
|
});
|
|
7396
7396
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7397
|
-
restoreFrom: options === null || options ===
|
|
7398
|
-
intervalInMs: options === null || options ===
|
|
7397
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7398
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
7399
7399
|
resourceLocationConfig: "azure-async-operation",
|
|
7400
7400
|
});
|
|
7401
7401
|
yield poller.poll();
|
|
@@ -7410,7 +7410,7 @@ class VmmServersImpl {
|
|
|
7410
7410
|
* @param options The options parameters.
|
|
7411
7411
|
*/
|
|
7412
7412
|
beginCreateOrUpdateAndWait(resourceGroupName, vmmServerName, resource, options) {
|
|
7413
|
-
return tslib.__awaiter(this,
|
|
7413
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7414
7414
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, vmmServerName, resource, options);
|
|
7415
7415
|
return poller.pollUntilDone();
|
|
7416
7416
|
});
|
|
@@ -7423,17 +7423,17 @@ class VmmServersImpl {
|
|
|
7423
7423
|
* @param options The options parameters.
|
|
7424
7424
|
*/
|
|
7425
7425
|
beginUpdate(resourceGroupName, vmmServerName, properties, options) {
|
|
7426
|
-
return tslib.__awaiter(this,
|
|
7427
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7426
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7427
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7428
7428
|
return this.client.sendOperationRequest(args, spec);
|
|
7429
7429
|
});
|
|
7430
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7430
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7431
7431
|
var _a;
|
|
7432
7432
|
let currentRawResponse = undefined;
|
|
7433
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7433
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
7434
7434
|
const callback = (rawResponse, flatResponse) => {
|
|
7435
7435
|
currentRawResponse = rawResponse;
|
|
7436
|
-
providedCallback === null || providedCallback ===
|
|
7436
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
7437
7437
|
};
|
|
7438
7438
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7439
7439
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7452,8 +7452,8 @@ class VmmServersImpl {
|
|
|
7452
7452
|
spec: updateOperationSpec,
|
|
7453
7453
|
});
|
|
7454
7454
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7455
|
-
restoreFrom: options === null || options ===
|
|
7456
|
-
intervalInMs: options === null || options ===
|
|
7455
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7456
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
7457
7457
|
resourceLocationConfig: "azure-async-operation",
|
|
7458
7458
|
});
|
|
7459
7459
|
yield poller.poll();
|
|
@@ -7468,7 +7468,7 @@ class VmmServersImpl {
|
|
|
7468
7468
|
* @param options The options parameters.
|
|
7469
7469
|
*/
|
|
7470
7470
|
beginUpdateAndWait(resourceGroupName, vmmServerName, properties, options) {
|
|
7471
|
-
return tslib.__awaiter(this,
|
|
7471
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7472
7472
|
const poller = yield this.beginUpdate(resourceGroupName, vmmServerName, properties, options);
|
|
7473
7473
|
return poller.pollUntilDone();
|
|
7474
7474
|
});
|
|
@@ -7480,17 +7480,17 @@ class VmmServersImpl {
|
|
|
7480
7480
|
* @param options The options parameters.
|
|
7481
7481
|
*/
|
|
7482
7482
|
beginDelete(resourceGroupName, vmmServerName, options) {
|
|
7483
|
-
return tslib.__awaiter(this,
|
|
7484
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7483
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7484
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7485
7485
|
return this.client.sendOperationRequest(args, spec);
|
|
7486
7486
|
});
|
|
7487
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7487
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7488
7488
|
var _a;
|
|
7489
7489
|
let currentRawResponse = undefined;
|
|
7490
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7490
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
7491
7491
|
const callback = (rawResponse, flatResponse) => {
|
|
7492
7492
|
currentRawResponse = rawResponse;
|
|
7493
|
-
providedCallback === null || providedCallback ===
|
|
7493
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
7494
7494
|
};
|
|
7495
7495
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7496
7496
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7509,8 +7509,8 @@ class VmmServersImpl {
|
|
|
7509
7509
|
spec: deleteOperationSpec$1,
|
|
7510
7510
|
});
|
|
7511
7511
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7512
|
-
restoreFrom: options === null || options ===
|
|
7513
|
-
intervalInMs: options === null || options ===
|
|
7512
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7513
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
7514
7514
|
resourceLocationConfig: "azure-async-operation",
|
|
7515
7515
|
});
|
|
7516
7516
|
yield poller.poll();
|
|
@@ -7524,7 +7524,7 @@ class VmmServersImpl {
|
|
|
7524
7524
|
* @param options The options parameters.
|
|
7525
7525
|
*/
|
|
7526
7526
|
beginDeleteAndWait(resourceGroupName, vmmServerName, options) {
|
|
7527
|
-
return tslib.__awaiter(this,
|
|
7527
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7528
7528
|
const poller = yield this.beginDelete(resourceGroupName, vmmServerName, options);
|
|
7529
7529
|
return poller.pollUntilDone();
|
|
7530
7530
|
});
|
|
@@ -7773,7 +7773,7 @@ class InventoryItemsImpl {
|
|
|
7773
7773
|
return this;
|
|
7774
7774
|
},
|
|
7775
7775
|
byPage: (settings) => {
|
|
7776
|
-
if (settings === null || settings ===
|
|
7776
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
7777
7777
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7778
7778
|
}
|
|
7779
7779
|
return this.listByVmmServerPagingPage(resourceGroupName, vmmServerName, options, settings);
|
|
@@ -7783,7 +7783,7 @@ class InventoryItemsImpl {
|
|
|
7783
7783
|
listByVmmServerPagingPage(resourceGroupName, vmmServerName, options, settings) {
|
|
7784
7784
|
return tslib.__asyncGenerator(this, arguments, function* listByVmmServerPagingPage_1() {
|
|
7785
7785
|
let result;
|
|
7786
|
-
let continuationToken = settings === null || settings ===
|
|
7786
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
7787
7787
|
if (!continuationToken) {
|
|
7788
7788
|
result = yield tslib.__await(this._listByVmmServer(resourceGroupName, vmmServerName, options));
|
|
7789
7789
|
let page = result.value || [];
|
|
@@ -8026,10 +8026,10 @@ class ScVmm extends coreClient__namespace.ServiceClient {
|
|
|
8026
8026
|
: `${packageDetails}`;
|
|
8027
8027
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
8028
8028
|
userAgentPrefix,
|
|
8029
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
8029
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
8030
8030
|
super(optionsWithDefaults);
|
|
8031
8031
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
8032
|
-
if ((options === null || options ===
|
|
8032
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
8033
8033
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
8034
8034
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
8035
8035
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -8043,7 +8043,7 @@ class ScVmm extends coreClient__namespace.ServiceClient {
|
|
|
8043
8043
|
});
|
|
8044
8044
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
8045
8045
|
credential: credentials,
|
|
8046
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
8046
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
8047
8047
|
challengeCallbacks: {
|
|
8048
8048
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
|
|
8049
8049
|
},
|
|
@@ -8075,7 +8075,7 @@ class ScVmm extends coreClient__namespace.ServiceClient {
|
|
|
8075
8075
|
const apiVersionPolicy = {
|
|
8076
8076
|
name: "CustomApiVersionPolicy",
|
|
8077
8077
|
sendRequest(request, next) {
|
|
8078
|
-
return tslib.__awaiter(this,
|
|
8078
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8079
8079
|
const param = request.url.split("?");
|
|
8080
8080
|
if (param.length > 1) {
|
|
8081
8081
|
const newParams = param[1].split("&").map((item) => {
|