@azure/arm-scvmm 1.0.1-alpha.20250106.1 → 1.0.1-alpha.20250107.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 === undefined ? undefined : _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 !== undefined ? _a : {};
|
|
58
58
|
pageInfo.continuationToken = continuationToken;
|
|
59
59
|
pageMap.set(page, pageInfo);
|
|
60
60
|
}
|
|
@@ -3533,7 +3533,7 @@ function createLroSpec(inputs) {
|
|
|
3533
3533
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
3534
3534
|
sendPollRequest: (path, options) => {
|
|
3535
3535
|
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
3536
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
|
3536
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
|
|
3537
3537
|
},
|
|
3538
3538
|
};
|
|
3539
3539
|
}
|
|
@@ -3570,7 +3570,7 @@ class VirtualMachineInstancesImpl {
|
|
|
3570
3570
|
return this;
|
|
3571
3571
|
},
|
|
3572
3572
|
byPage: (settings) => {
|
|
3573
|
-
if (settings === null || settings ===
|
|
3573
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
3574
3574
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3575
3575
|
}
|
|
3576
3576
|
return this.listPagingPage(resourceUri, options, settings);
|
|
@@ -3580,7 +3580,7 @@ class VirtualMachineInstancesImpl {
|
|
|
3580
3580
|
listPagingPage(resourceUri, options, settings) {
|
|
3581
3581
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3582
3582
|
let result;
|
|
3583
|
-
let continuationToken = settings === null || settings ===
|
|
3583
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
3584
3584
|
if (!continuationToken) {
|
|
3585
3585
|
result = yield tslib.__await(this._list(resourceUri, options));
|
|
3586
3586
|
let page = result.value || [];
|
|
@@ -3641,17 +3641,17 @@ class VirtualMachineInstancesImpl {
|
|
|
3641
3641
|
* @param options The options parameters.
|
|
3642
3642
|
*/
|
|
3643
3643
|
beginCreateOrUpdate(resourceUri, resource, options) {
|
|
3644
|
-
return tslib.__awaiter(this,
|
|
3645
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3644
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3645
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3646
3646
|
return this.client.sendOperationRequest(args, spec);
|
|
3647
3647
|
});
|
|
3648
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3648
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3649
3649
|
var _a;
|
|
3650
3650
|
let currentRawResponse = undefined;
|
|
3651
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3651
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
3652
3652
|
const callback = (rawResponse, flatResponse) => {
|
|
3653
3653
|
currentRawResponse = rawResponse;
|
|
3654
|
-
providedCallback === null || providedCallback ===
|
|
3654
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
3655
3655
|
};
|
|
3656
3656
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3657
3657
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3670,8 +3670,8 @@ class VirtualMachineInstancesImpl {
|
|
|
3670
3670
|
spec: createOrUpdateOperationSpec$5,
|
|
3671
3671
|
});
|
|
3672
3672
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3673
|
-
restoreFrom: options === null || options ===
|
|
3674
|
-
intervalInMs: options === null || options ===
|
|
3673
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
3674
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
3675
3675
|
resourceLocationConfig: "azure-async-operation",
|
|
3676
3676
|
});
|
|
3677
3677
|
yield poller.poll();
|
|
@@ -3686,7 +3686,7 @@ class VirtualMachineInstancesImpl {
|
|
|
3686
3686
|
* @param options The options parameters.
|
|
3687
3687
|
*/
|
|
3688
3688
|
beginCreateOrUpdateAndWait(resourceUri, resource, options) {
|
|
3689
|
-
return tslib.__awaiter(this,
|
|
3689
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3690
3690
|
const poller = yield this.beginCreateOrUpdate(resourceUri, resource, options);
|
|
3691
3691
|
return poller.pollUntilDone();
|
|
3692
3692
|
});
|
|
@@ -3698,17 +3698,17 @@ class VirtualMachineInstancesImpl {
|
|
|
3698
3698
|
* @param options The options parameters.
|
|
3699
3699
|
*/
|
|
3700
3700
|
beginUpdate(resourceUri, properties, options) {
|
|
3701
|
-
return tslib.__awaiter(this,
|
|
3702
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3701
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3702
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3703
3703
|
return this.client.sendOperationRequest(args, spec);
|
|
3704
3704
|
});
|
|
3705
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3705
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3706
3706
|
var _a;
|
|
3707
3707
|
let currentRawResponse = undefined;
|
|
3708
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3708
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
3709
3709
|
const callback = (rawResponse, flatResponse) => {
|
|
3710
3710
|
currentRawResponse = rawResponse;
|
|
3711
|
-
providedCallback === null || providedCallback ===
|
|
3711
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
3712
3712
|
};
|
|
3713
3713
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3714
3714
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3727,8 +3727,8 @@ class VirtualMachineInstancesImpl {
|
|
|
3727
3727
|
spec: updateOperationSpec$5,
|
|
3728
3728
|
});
|
|
3729
3729
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3730
|
-
restoreFrom: options === null || options ===
|
|
3731
|
-
intervalInMs: options === null || options ===
|
|
3730
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
3731
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
3732
3732
|
resourceLocationConfig: "azure-async-operation",
|
|
3733
3733
|
});
|
|
3734
3734
|
yield poller.poll();
|
|
@@ -3742,7 +3742,7 @@ class VirtualMachineInstancesImpl {
|
|
|
3742
3742
|
* @param options The options parameters.
|
|
3743
3743
|
*/
|
|
3744
3744
|
beginUpdateAndWait(resourceUri, properties, options) {
|
|
3745
|
-
return tslib.__awaiter(this,
|
|
3745
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3746
3746
|
const poller = yield this.beginUpdate(resourceUri, properties, options);
|
|
3747
3747
|
return poller.pollUntilDone();
|
|
3748
3748
|
});
|
|
@@ -3753,17 +3753,17 @@ class VirtualMachineInstancesImpl {
|
|
|
3753
3753
|
* @param options The options parameters.
|
|
3754
3754
|
*/
|
|
3755
3755
|
beginDelete(resourceUri, options) {
|
|
3756
|
-
return tslib.__awaiter(this,
|
|
3757
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3756
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3757
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3758
3758
|
return this.client.sendOperationRequest(args, spec);
|
|
3759
3759
|
});
|
|
3760
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3760
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3761
3761
|
var _a;
|
|
3762
3762
|
let currentRawResponse = undefined;
|
|
3763
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3763
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
3764
3764
|
const callback = (rawResponse, flatResponse) => {
|
|
3765
3765
|
currentRawResponse = rawResponse;
|
|
3766
|
-
providedCallback === null || providedCallback ===
|
|
3766
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
3767
3767
|
};
|
|
3768
3768
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3769
3769
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3782,8 +3782,8 @@ class VirtualMachineInstancesImpl {
|
|
|
3782
3782
|
spec: deleteOperationSpec$7,
|
|
3783
3783
|
});
|
|
3784
3784
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3785
|
-
restoreFrom: options === null || options ===
|
|
3786
|
-
intervalInMs: options === null || options ===
|
|
3785
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
3786
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
3787
3787
|
resourceLocationConfig: "azure-async-operation",
|
|
3788
3788
|
});
|
|
3789
3789
|
yield poller.poll();
|
|
@@ -3796,7 +3796,7 @@ class VirtualMachineInstancesImpl {
|
|
|
3796
3796
|
* @param options The options parameters.
|
|
3797
3797
|
*/
|
|
3798
3798
|
beginDeleteAndWait(resourceUri, options) {
|
|
3799
|
-
return tslib.__awaiter(this,
|
|
3799
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3800
3800
|
const poller = yield this.beginDelete(resourceUri, options);
|
|
3801
3801
|
return poller.pollUntilDone();
|
|
3802
3802
|
});
|
|
@@ -3808,17 +3808,17 @@ class VirtualMachineInstancesImpl {
|
|
|
3808
3808
|
* @param options The options parameters.
|
|
3809
3809
|
*/
|
|
3810
3810
|
beginCreateCheckpoint(resourceUri, body, options) {
|
|
3811
|
-
return tslib.__awaiter(this,
|
|
3812
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3811
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3812
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3813
3813
|
return this.client.sendOperationRequest(args, spec);
|
|
3814
3814
|
});
|
|
3815
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3815
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3816
3816
|
var _a;
|
|
3817
3817
|
let currentRawResponse = undefined;
|
|
3818
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3818
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
3819
3819
|
const callback = (rawResponse, flatResponse) => {
|
|
3820
3820
|
currentRawResponse = rawResponse;
|
|
3821
|
-
providedCallback === null || providedCallback ===
|
|
3821
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
3822
3822
|
};
|
|
3823
3823
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3824
3824
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3837,8 +3837,8 @@ class VirtualMachineInstancesImpl {
|
|
|
3837
3837
|
spec: createCheckpointOperationSpec,
|
|
3838
3838
|
});
|
|
3839
3839
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3840
|
-
restoreFrom: options === null || options ===
|
|
3841
|
-
intervalInMs: options === null || options ===
|
|
3840
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
3841
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
3842
3842
|
resourceLocationConfig: "location",
|
|
3843
3843
|
});
|
|
3844
3844
|
yield poller.poll();
|
|
@@ -3852,7 +3852,7 @@ class VirtualMachineInstancesImpl {
|
|
|
3852
3852
|
* @param options The options parameters.
|
|
3853
3853
|
*/
|
|
3854
3854
|
beginCreateCheckpointAndWait(resourceUri, body, options) {
|
|
3855
|
-
return tslib.__awaiter(this,
|
|
3855
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3856
3856
|
const poller = yield this.beginCreateCheckpoint(resourceUri, body, options);
|
|
3857
3857
|
return poller.pollUntilDone();
|
|
3858
3858
|
});
|
|
@@ -3864,17 +3864,17 @@ class VirtualMachineInstancesImpl {
|
|
|
3864
3864
|
* @param options The options parameters.
|
|
3865
3865
|
*/
|
|
3866
3866
|
beginDeleteCheckpoint(resourceUri, body, options) {
|
|
3867
|
-
return tslib.__awaiter(this,
|
|
3868
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3867
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3868
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3869
3869
|
return this.client.sendOperationRequest(args, spec);
|
|
3870
3870
|
});
|
|
3871
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3871
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3872
3872
|
var _a;
|
|
3873
3873
|
let currentRawResponse = undefined;
|
|
3874
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3874
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
3875
3875
|
const callback = (rawResponse, flatResponse) => {
|
|
3876
3876
|
currentRawResponse = rawResponse;
|
|
3877
|
-
providedCallback === null || providedCallback ===
|
|
3877
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
3878
3878
|
};
|
|
3879
3879
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3880
3880
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3893,8 +3893,8 @@ class VirtualMachineInstancesImpl {
|
|
|
3893
3893
|
spec: deleteCheckpointOperationSpec,
|
|
3894
3894
|
});
|
|
3895
3895
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3896
|
-
restoreFrom: options === null || options ===
|
|
3897
|
-
intervalInMs: options === null || options ===
|
|
3896
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
3897
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
3898
3898
|
resourceLocationConfig: "location",
|
|
3899
3899
|
});
|
|
3900
3900
|
yield poller.poll();
|
|
@@ -3908,7 +3908,7 @@ class VirtualMachineInstancesImpl {
|
|
|
3908
3908
|
* @param options The options parameters.
|
|
3909
3909
|
*/
|
|
3910
3910
|
beginDeleteCheckpointAndWait(resourceUri, body, options) {
|
|
3911
|
-
return tslib.__awaiter(this,
|
|
3911
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3912
3912
|
const poller = yield this.beginDeleteCheckpoint(resourceUri, body, options);
|
|
3913
3913
|
return poller.pollUntilDone();
|
|
3914
3914
|
});
|
|
@@ -3919,17 +3919,17 @@ class VirtualMachineInstancesImpl {
|
|
|
3919
3919
|
* @param options The options parameters.
|
|
3920
3920
|
*/
|
|
3921
3921
|
beginRestart(resourceUri, options) {
|
|
3922
|
-
return tslib.__awaiter(this,
|
|
3923
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3922
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3923
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3924
3924
|
return this.client.sendOperationRequest(args, spec);
|
|
3925
3925
|
});
|
|
3926
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3926
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3927
3927
|
var _a;
|
|
3928
3928
|
let currentRawResponse = undefined;
|
|
3929
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3929
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
3930
3930
|
const callback = (rawResponse, flatResponse) => {
|
|
3931
3931
|
currentRawResponse = rawResponse;
|
|
3932
|
-
providedCallback === null || providedCallback ===
|
|
3932
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
3933
3933
|
};
|
|
3934
3934
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3935
3935
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3948,8 +3948,8 @@ class VirtualMachineInstancesImpl {
|
|
|
3948
3948
|
spec: restartOperationSpec,
|
|
3949
3949
|
});
|
|
3950
3950
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3951
|
-
restoreFrom: options === null || options ===
|
|
3952
|
-
intervalInMs: options === null || options ===
|
|
3951
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
3952
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
3953
3953
|
resourceLocationConfig: "location",
|
|
3954
3954
|
});
|
|
3955
3955
|
yield poller.poll();
|
|
@@ -3962,7 +3962,7 @@ class VirtualMachineInstancesImpl {
|
|
|
3962
3962
|
* @param options The options parameters.
|
|
3963
3963
|
*/
|
|
3964
3964
|
beginRestartAndWait(resourceUri, options) {
|
|
3965
|
-
return tslib.__awaiter(this,
|
|
3965
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3966
3966
|
const poller = yield this.beginRestart(resourceUri, options);
|
|
3967
3967
|
return poller.pollUntilDone();
|
|
3968
3968
|
});
|
|
@@ -3974,17 +3974,17 @@ class VirtualMachineInstancesImpl {
|
|
|
3974
3974
|
* @param options The options parameters.
|
|
3975
3975
|
*/
|
|
3976
3976
|
beginRestoreCheckpoint(resourceUri, body, options) {
|
|
3977
|
-
return tslib.__awaiter(this,
|
|
3978
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3977
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3978
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3979
3979
|
return this.client.sendOperationRequest(args, spec);
|
|
3980
3980
|
});
|
|
3981
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3981
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3982
3982
|
var _a;
|
|
3983
3983
|
let currentRawResponse = undefined;
|
|
3984
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3984
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
3985
3985
|
const callback = (rawResponse, flatResponse) => {
|
|
3986
3986
|
currentRawResponse = rawResponse;
|
|
3987
|
-
providedCallback === null || providedCallback ===
|
|
3987
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
3988
3988
|
};
|
|
3989
3989
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3990
3990
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4003,8 +4003,8 @@ class VirtualMachineInstancesImpl {
|
|
|
4003
4003
|
spec: restoreCheckpointOperationSpec,
|
|
4004
4004
|
});
|
|
4005
4005
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4006
|
-
restoreFrom: options === null || options ===
|
|
4007
|
-
intervalInMs: options === null || options ===
|
|
4006
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4007
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
4008
4008
|
resourceLocationConfig: "location",
|
|
4009
4009
|
});
|
|
4010
4010
|
yield poller.poll();
|
|
@@ -4018,7 +4018,7 @@ class VirtualMachineInstancesImpl {
|
|
|
4018
4018
|
* @param options The options parameters.
|
|
4019
4019
|
*/
|
|
4020
4020
|
beginRestoreCheckpointAndWait(resourceUri, body, options) {
|
|
4021
|
-
return tslib.__awaiter(this,
|
|
4021
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4022
4022
|
const poller = yield this.beginRestoreCheckpoint(resourceUri, body, options);
|
|
4023
4023
|
return poller.pollUntilDone();
|
|
4024
4024
|
});
|
|
@@ -4029,17 +4029,17 @@ class VirtualMachineInstancesImpl {
|
|
|
4029
4029
|
* @param options The options parameters.
|
|
4030
4030
|
*/
|
|
4031
4031
|
beginStart(resourceUri, options) {
|
|
4032
|
-
return tslib.__awaiter(this,
|
|
4033
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4032
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4033
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4034
4034
|
return this.client.sendOperationRequest(args, spec);
|
|
4035
4035
|
});
|
|
4036
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4036
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4037
4037
|
var _a;
|
|
4038
4038
|
let currentRawResponse = undefined;
|
|
4039
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4039
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4040
4040
|
const callback = (rawResponse, flatResponse) => {
|
|
4041
4041
|
currentRawResponse = rawResponse;
|
|
4042
|
-
providedCallback === null || providedCallback ===
|
|
4042
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4043
4043
|
};
|
|
4044
4044
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4045
4045
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4058,8 +4058,8 @@ class VirtualMachineInstancesImpl {
|
|
|
4058
4058
|
spec: startOperationSpec,
|
|
4059
4059
|
});
|
|
4060
4060
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4061
|
-
restoreFrom: options === null || options ===
|
|
4062
|
-
intervalInMs: options === null || options ===
|
|
4061
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4062
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
4063
4063
|
resourceLocationConfig: "location",
|
|
4064
4064
|
});
|
|
4065
4065
|
yield poller.poll();
|
|
@@ -4072,7 +4072,7 @@ class VirtualMachineInstancesImpl {
|
|
|
4072
4072
|
* @param options The options parameters.
|
|
4073
4073
|
*/
|
|
4074
4074
|
beginStartAndWait(resourceUri, options) {
|
|
4075
|
-
return tslib.__awaiter(this,
|
|
4075
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4076
4076
|
const poller = yield this.beginStart(resourceUri, options);
|
|
4077
4077
|
return poller.pollUntilDone();
|
|
4078
4078
|
});
|
|
@@ -4084,17 +4084,17 @@ class VirtualMachineInstancesImpl {
|
|
|
4084
4084
|
* @param options The options parameters.
|
|
4085
4085
|
*/
|
|
4086
4086
|
beginStop(resourceUri, body, options) {
|
|
4087
|
-
return tslib.__awaiter(this,
|
|
4088
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4087
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4088
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4089
4089
|
return this.client.sendOperationRequest(args, spec);
|
|
4090
4090
|
});
|
|
4091
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4091
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4092
4092
|
var _a;
|
|
4093
4093
|
let currentRawResponse = undefined;
|
|
4094
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4094
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4095
4095
|
const callback = (rawResponse, flatResponse) => {
|
|
4096
4096
|
currentRawResponse = rawResponse;
|
|
4097
|
-
providedCallback === null || providedCallback ===
|
|
4097
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4098
4098
|
};
|
|
4099
4099
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4100
4100
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4113,8 +4113,8 @@ class VirtualMachineInstancesImpl {
|
|
|
4113
4113
|
spec: stopOperationSpec,
|
|
4114
4114
|
});
|
|
4115
4115
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4116
|
-
restoreFrom: options === null || options ===
|
|
4117
|
-
intervalInMs: options === null || options ===
|
|
4116
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4117
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
4118
4118
|
resourceLocationConfig: "location",
|
|
4119
4119
|
});
|
|
4120
4120
|
yield poller.poll();
|
|
@@ -4128,7 +4128,7 @@ class VirtualMachineInstancesImpl {
|
|
|
4128
4128
|
* @param options The options parameters.
|
|
4129
4129
|
*/
|
|
4130
4130
|
beginStopAndWait(resourceUri, body, options) {
|
|
4131
|
-
return tslib.__awaiter(this,
|
|
4131
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4132
4132
|
const poller = yield this.beginStop(resourceUri, body, options);
|
|
4133
4133
|
return poller.pollUntilDone();
|
|
4134
4134
|
});
|
|
@@ -4470,7 +4470,7 @@ class GuestAgentsImpl {
|
|
|
4470
4470
|
return this;
|
|
4471
4471
|
},
|
|
4472
4472
|
byPage: (settings) => {
|
|
4473
|
-
if (settings === null || settings ===
|
|
4473
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4474
4474
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4475
4475
|
}
|
|
4476
4476
|
return this.listByVirtualMachineInstancePagingPage(resourceUri, options, settings);
|
|
@@ -4480,7 +4480,7 @@ class GuestAgentsImpl {
|
|
|
4480
4480
|
listByVirtualMachineInstancePagingPage(resourceUri, options, settings) {
|
|
4481
4481
|
return tslib.__asyncGenerator(this, arguments, function* listByVirtualMachineInstancePagingPage_1() {
|
|
4482
4482
|
let result;
|
|
4483
|
-
let continuationToken = settings === null || settings ===
|
|
4483
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4484
4484
|
if (!continuationToken) {
|
|
4485
4485
|
result = yield tslib.__await(this._listByVirtualMachineInstance(resourceUri, options));
|
|
4486
4486
|
let page = result.value || [];
|
|
@@ -4540,17 +4540,17 @@ class GuestAgentsImpl {
|
|
|
4540
4540
|
* @param options The options parameters.
|
|
4541
4541
|
*/
|
|
4542
4542
|
beginCreate(resourceUri, resource, options) {
|
|
4543
|
-
return tslib.__awaiter(this,
|
|
4544
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4543
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4544
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4545
4545
|
return this.client.sendOperationRequest(args, spec);
|
|
4546
4546
|
});
|
|
4547
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4547
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4548
4548
|
var _a;
|
|
4549
4549
|
let currentRawResponse = undefined;
|
|
4550
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4550
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4551
4551
|
const callback = (rawResponse, flatResponse) => {
|
|
4552
4552
|
currentRawResponse = rawResponse;
|
|
4553
|
-
providedCallback === null || providedCallback ===
|
|
4553
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4554
4554
|
};
|
|
4555
4555
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4556
4556
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4569,8 +4569,8 @@ class GuestAgentsImpl {
|
|
|
4569
4569
|
spec: createOperationSpec$1,
|
|
4570
4570
|
});
|
|
4571
4571
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4572
|
-
restoreFrom: options === null || options ===
|
|
4573
|
-
intervalInMs: options === null || options ===
|
|
4572
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4573
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
4574
4574
|
resourceLocationConfig: "azure-async-operation",
|
|
4575
4575
|
});
|
|
4576
4576
|
yield poller.poll();
|
|
@@ -4584,7 +4584,7 @@ class GuestAgentsImpl {
|
|
|
4584
4584
|
* @param options The options parameters.
|
|
4585
4585
|
*/
|
|
4586
4586
|
beginCreateAndWait(resourceUri, resource, options) {
|
|
4587
|
-
return tslib.__awaiter(this,
|
|
4587
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4588
4588
|
const poller = yield this.beginCreate(resourceUri, resource, options);
|
|
4589
4589
|
return poller.pollUntilDone();
|
|
4590
4590
|
});
|
|
@@ -4736,7 +4736,7 @@ class VmInstanceHybridIdentityMetadatasImpl {
|
|
|
4736
4736
|
return this;
|
|
4737
4737
|
},
|
|
4738
4738
|
byPage: (settings) => {
|
|
4739
|
-
if (settings === null || settings ===
|
|
4739
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4740
4740
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4741
4741
|
}
|
|
4742
4742
|
return this.listByVirtualMachineInstancePagingPage(resourceUri, options, settings);
|
|
@@ -4746,7 +4746,7 @@ class VmInstanceHybridIdentityMetadatasImpl {
|
|
|
4746
4746
|
listByVirtualMachineInstancePagingPage(resourceUri, options, settings) {
|
|
4747
4747
|
return tslib.__asyncGenerator(this, arguments, function* listByVirtualMachineInstancePagingPage_1() {
|
|
4748
4748
|
let result;
|
|
4749
|
-
let continuationToken = settings === null || settings ===
|
|
4749
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4750
4750
|
if (!continuationToken) {
|
|
4751
4751
|
result = yield tslib.__await(this._listByVirtualMachineInstance(resourceUri, options));
|
|
4752
4752
|
let page = result.value || [];
|
|
@@ -4895,7 +4895,7 @@ class OperationsImpl {
|
|
|
4895
4895
|
return this;
|
|
4896
4896
|
},
|
|
4897
4897
|
byPage: (settings) => {
|
|
4898
|
-
if (settings === null || settings ===
|
|
4898
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4899
4899
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4900
4900
|
}
|
|
4901
4901
|
return this.listPagingPage(options, settings);
|
|
@@ -4905,7 +4905,7 @@ class OperationsImpl {
|
|
|
4905
4905
|
listPagingPage(options, settings) {
|
|
4906
4906
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4907
4907
|
let result;
|
|
4908
|
-
let continuationToken = settings === null || settings ===
|
|
4908
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4909
4909
|
if (!continuationToken) {
|
|
4910
4910
|
result = yield tslib.__await(this._list(options));
|
|
4911
4911
|
let page = result.value || [];
|
|
@@ -5023,7 +5023,7 @@ class AvailabilitySetsImpl {
|
|
|
5023
5023
|
return this;
|
|
5024
5024
|
},
|
|
5025
5025
|
byPage: (settings) => {
|
|
5026
|
-
if (settings === null || settings ===
|
|
5026
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5027
5027
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5028
5028
|
}
|
|
5029
5029
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -5033,7 +5033,7 @@ class AvailabilitySetsImpl {
|
|
|
5033
5033
|
listBySubscriptionPagingPage(options, settings) {
|
|
5034
5034
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
5035
5035
|
let result;
|
|
5036
|
-
let continuationToken = settings === null || settings ===
|
|
5036
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
5037
5037
|
if (!continuationToken) {
|
|
5038
5038
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
5039
5039
|
let page = result.value || [];
|
|
@@ -5085,7 +5085,7 @@ class AvailabilitySetsImpl {
|
|
|
5085
5085
|
return this;
|
|
5086
5086
|
},
|
|
5087
5087
|
byPage: (settings) => {
|
|
5088
|
-
if (settings === null || settings ===
|
|
5088
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5089
5089
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5090
5090
|
}
|
|
5091
5091
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -5095,7 +5095,7 @@ class AvailabilitySetsImpl {
|
|
|
5095
5095
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
5096
5096
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
5097
5097
|
let result;
|
|
5098
|
-
let continuationToken = settings === null || settings ===
|
|
5098
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
5099
5099
|
if (!continuationToken) {
|
|
5100
5100
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
5101
5101
|
let page = result.value || [];
|
|
@@ -5164,17 +5164,17 @@ class AvailabilitySetsImpl {
|
|
|
5164
5164
|
* @param options The options parameters.
|
|
5165
5165
|
*/
|
|
5166
5166
|
beginCreateOrUpdate(resourceGroupName, availabilitySetResourceName, resource, options) {
|
|
5167
|
-
return tslib.__awaiter(this,
|
|
5168
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5167
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5168
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5169
5169
|
return this.client.sendOperationRequest(args, spec);
|
|
5170
5170
|
});
|
|
5171
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5171
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5172
5172
|
var _a;
|
|
5173
5173
|
let currentRawResponse = undefined;
|
|
5174
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5174
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5175
5175
|
const callback = (rawResponse, flatResponse) => {
|
|
5176
5176
|
currentRawResponse = rawResponse;
|
|
5177
|
-
providedCallback === null || providedCallback ===
|
|
5177
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5178
5178
|
};
|
|
5179
5179
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5180
5180
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5198,8 +5198,8 @@ class AvailabilitySetsImpl {
|
|
|
5198
5198
|
spec: createOrUpdateOperationSpec$4,
|
|
5199
5199
|
});
|
|
5200
5200
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5201
|
-
restoreFrom: options === null || options ===
|
|
5202
|
-
intervalInMs: options === null || options ===
|
|
5201
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5202
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5203
5203
|
resourceLocationConfig: "azure-async-operation",
|
|
5204
5204
|
});
|
|
5205
5205
|
yield poller.poll();
|
|
@@ -5214,7 +5214,7 @@ class AvailabilitySetsImpl {
|
|
|
5214
5214
|
* @param options The options parameters.
|
|
5215
5215
|
*/
|
|
5216
5216
|
beginCreateOrUpdateAndWait(resourceGroupName, availabilitySetResourceName, resource, options) {
|
|
5217
|
-
return tslib.__awaiter(this,
|
|
5217
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5218
5218
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, availabilitySetResourceName, resource, options);
|
|
5219
5219
|
return poller.pollUntilDone();
|
|
5220
5220
|
});
|
|
@@ -5227,17 +5227,17 @@ class AvailabilitySetsImpl {
|
|
|
5227
5227
|
* @param options The options parameters.
|
|
5228
5228
|
*/
|
|
5229
5229
|
beginUpdate(resourceGroupName, availabilitySetResourceName, properties, options) {
|
|
5230
|
-
return tslib.__awaiter(this,
|
|
5231
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5230
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5231
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5232
5232
|
return this.client.sendOperationRequest(args, spec);
|
|
5233
5233
|
});
|
|
5234
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5234
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5235
5235
|
var _a;
|
|
5236
5236
|
let currentRawResponse = undefined;
|
|
5237
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5237
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5238
5238
|
const callback = (rawResponse, flatResponse) => {
|
|
5239
5239
|
currentRawResponse = rawResponse;
|
|
5240
|
-
providedCallback === null || providedCallback ===
|
|
5240
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5241
5241
|
};
|
|
5242
5242
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5243
5243
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5261,8 +5261,8 @@ class AvailabilitySetsImpl {
|
|
|
5261
5261
|
spec: updateOperationSpec$4,
|
|
5262
5262
|
});
|
|
5263
5263
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5264
|
-
restoreFrom: options === null || options ===
|
|
5265
|
-
intervalInMs: options === null || options ===
|
|
5264
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5265
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5266
5266
|
resourceLocationConfig: "azure-async-operation",
|
|
5267
5267
|
});
|
|
5268
5268
|
yield poller.poll();
|
|
@@ -5277,7 +5277,7 @@ class AvailabilitySetsImpl {
|
|
|
5277
5277
|
* @param options The options parameters.
|
|
5278
5278
|
*/
|
|
5279
5279
|
beginUpdateAndWait(resourceGroupName, availabilitySetResourceName, properties, options) {
|
|
5280
|
-
return tslib.__awaiter(this,
|
|
5280
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5281
5281
|
const poller = yield this.beginUpdate(resourceGroupName, availabilitySetResourceName, properties, options);
|
|
5282
5282
|
return poller.pollUntilDone();
|
|
5283
5283
|
});
|
|
@@ -5289,17 +5289,17 @@ class AvailabilitySetsImpl {
|
|
|
5289
5289
|
* @param options The options parameters.
|
|
5290
5290
|
*/
|
|
5291
5291
|
beginDelete(resourceGroupName, availabilitySetResourceName, options) {
|
|
5292
|
-
return tslib.__awaiter(this,
|
|
5293
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5292
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5293
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5294
5294
|
return this.client.sendOperationRequest(args, spec);
|
|
5295
5295
|
});
|
|
5296
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5296
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5297
5297
|
var _a;
|
|
5298
5298
|
let currentRawResponse = undefined;
|
|
5299
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5299
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5300
5300
|
const callback = (rawResponse, flatResponse) => {
|
|
5301
5301
|
currentRawResponse = rawResponse;
|
|
5302
|
-
providedCallback === null || providedCallback ===
|
|
5302
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5303
5303
|
};
|
|
5304
5304
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5305
5305
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5318,8 +5318,8 @@ class AvailabilitySetsImpl {
|
|
|
5318
5318
|
spec: deleteOperationSpec$5,
|
|
5319
5319
|
});
|
|
5320
5320
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5321
|
-
restoreFrom: options === null || options ===
|
|
5322
|
-
intervalInMs: options === null || options ===
|
|
5321
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5322
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5323
5323
|
resourceLocationConfig: "location",
|
|
5324
5324
|
});
|
|
5325
5325
|
yield poller.poll();
|
|
@@ -5333,7 +5333,7 @@ class AvailabilitySetsImpl {
|
|
|
5333
5333
|
* @param options The options parameters.
|
|
5334
5334
|
*/
|
|
5335
5335
|
beginDeleteAndWait(resourceGroupName, availabilitySetResourceName, options) {
|
|
5336
|
-
return tslib.__awaiter(this,
|
|
5336
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5337
5337
|
const poller = yield this.beginDelete(resourceGroupName, availabilitySetResourceName, options);
|
|
5338
5338
|
return poller.pollUntilDone();
|
|
5339
5339
|
});
|
|
@@ -5580,7 +5580,7 @@ class CloudsImpl {
|
|
|
5580
5580
|
return this;
|
|
5581
5581
|
},
|
|
5582
5582
|
byPage: (settings) => {
|
|
5583
|
-
if (settings === null || settings ===
|
|
5583
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5584
5584
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5585
5585
|
}
|
|
5586
5586
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -5590,7 +5590,7 @@ class CloudsImpl {
|
|
|
5590
5590
|
listBySubscriptionPagingPage(options, settings) {
|
|
5591
5591
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
5592
5592
|
let result;
|
|
5593
|
-
let continuationToken = settings === null || settings ===
|
|
5593
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
5594
5594
|
if (!continuationToken) {
|
|
5595
5595
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
5596
5596
|
let page = result.value || [];
|
|
@@ -5642,7 +5642,7 @@ class CloudsImpl {
|
|
|
5642
5642
|
return this;
|
|
5643
5643
|
},
|
|
5644
5644
|
byPage: (settings) => {
|
|
5645
|
-
if (settings === null || settings ===
|
|
5645
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5646
5646
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5647
5647
|
}
|
|
5648
5648
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -5652,7 +5652,7 @@ class CloudsImpl {
|
|
|
5652
5652
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
5653
5653
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
5654
5654
|
let result;
|
|
5655
|
-
let continuationToken = settings === null || settings ===
|
|
5655
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
5656
5656
|
if (!continuationToken) {
|
|
5657
5657
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
5658
5658
|
let page = result.value || [];
|
|
@@ -5721,17 +5721,17 @@ class CloudsImpl {
|
|
|
5721
5721
|
* @param options The options parameters.
|
|
5722
5722
|
*/
|
|
5723
5723
|
beginCreateOrUpdate(resourceGroupName, cloudResourceName, resource, options) {
|
|
5724
|
-
return tslib.__awaiter(this,
|
|
5725
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5724
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5725
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5726
5726
|
return this.client.sendOperationRequest(args, spec);
|
|
5727
5727
|
});
|
|
5728
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5728
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5729
5729
|
var _a;
|
|
5730
5730
|
let currentRawResponse = undefined;
|
|
5731
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5731
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5732
5732
|
const callback = (rawResponse, flatResponse) => {
|
|
5733
5733
|
currentRawResponse = rawResponse;
|
|
5734
|
-
providedCallback === null || providedCallback ===
|
|
5734
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5735
5735
|
};
|
|
5736
5736
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5737
5737
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5750,8 +5750,8 @@ class CloudsImpl {
|
|
|
5750
5750
|
spec: createOrUpdateOperationSpec$3,
|
|
5751
5751
|
});
|
|
5752
5752
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5753
|
-
restoreFrom: options === null || options ===
|
|
5754
|
-
intervalInMs: options === null || options ===
|
|
5753
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5754
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5755
5755
|
resourceLocationConfig: "azure-async-operation",
|
|
5756
5756
|
});
|
|
5757
5757
|
yield poller.poll();
|
|
@@ -5766,7 +5766,7 @@ class CloudsImpl {
|
|
|
5766
5766
|
* @param options The options parameters.
|
|
5767
5767
|
*/
|
|
5768
5768
|
beginCreateOrUpdateAndWait(resourceGroupName, cloudResourceName, resource, options) {
|
|
5769
|
-
return tslib.__awaiter(this,
|
|
5769
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5770
5770
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, cloudResourceName, resource, options);
|
|
5771
5771
|
return poller.pollUntilDone();
|
|
5772
5772
|
});
|
|
@@ -5779,17 +5779,17 @@ class CloudsImpl {
|
|
|
5779
5779
|
* @param options The options parameters.
|
|
5780
5780
|
*/
|
|
5781
5781
|
beginUpdate(resourceGroupName, cloudResourceName, properties, options) {
|
|
5782
|
-
return tslib.__awaiter(this,
|
|
5783
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5782
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5783
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5784
5784
|
return this.client.sendOperationRequest(args, spec);
|
|
5785
5785
|
});
|
|
5786
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5786
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5787
5787
|
var _a;
|
|
5788
5788
|
let currentRawResponse = undefined;
|
|
5789
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5789
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5790
5790
|
const callback = (rawResponse, flatResponse) => {
|
|
5791
5791
|
currentRawResponse = rawResponse;
|
|
5792
|
-
providedCallback === null || providedCallback ===
|
|
5792
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5793
5793
|
};
|
|
5794
5794
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5795
5795
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5808,8 +5808,8 @@ class CloudsImpl {
|
|
|
5808
5808
|
spec: updateOperationSpec$3,
|
|
5809
5809
|
});
|
|
5810
5810
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5811
|
-
restoreFrom: options === null || options ===
|
|
5812
|
-
intervalInMs: options === null || options ===
|
|
5811
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5812
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5813
5813
|
resourceLocationConfig: "azure-async-operation",
|
|
5814
5814
|
});
|
|
5815
5815
|
yield poller.poll();
|
|
@@ -5824,7 +5824,7 @@ class CloudsImpl {
|
|
|
5824
5824
|
* @param options The options parameters.
|
|
5825
5825
|
*/
|
|
5826
5826
|
beginUpdateAndWait(resourceGroupName, cloudResourceName, properties, options) {
|
|
5827
|
-
return tslib.__awaiter(this,
|
|
5827
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5828
5828
|
const poller = yield this.beginUpdate(resourceGroupName, cloudResourceName, properties, options);
|
|
5829
5829
|
return poller.pollUntilDone();
|
|
5830
5830
|
});
|
|
@@ -5836,17 +5836,17 @@ class CloudsImpl {
|
|
|
5836
5836
|
* @param options The options parameters.
|
|
5837
5837
|
*/
|
|
5838
5838
|
beginDelete(resourceGroupName, cloudResourceName, options) {
|
|
5839
|
-
return tslib.__awaiter(this,
|
|
5840
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5839
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5840
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5841
5841
|
return this.client.sendOperationRequest(args, spec);
|
|
5842
5842
|
});
|
|
5843
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5843
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5844
5844
|
var _a;
|
|
5845
5845
|
let currentRawResponse = undefined;
|
|
5846
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5846
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5847
5847
|
const callback = (rawResponse, flatResponse) => {
|
|
5848
5848
|
currentRawResponse = rawResponse;
|
|
5849
|
-
providedCallback === null || providedCallback ===
|
|
5849
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5850
5850
|
};
|
|
5851
5851
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5852
5852
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5865,8 +5865,8 @@ class CloudsImpl {
|
|
|
5865
5865
|
spec: deleteOperationSpec$4,
|
|
5866
5866
|
});
|
|
5867
5867
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5868
|
-
restoreFrom: options === null || options ===
|
|
5869
|
-
intervalInMs: options === null || options ===
|
|
5868
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5869
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5870
5870
|
resourceLocationConfig: "azure-async-operation",
|
|
5871
5871
|
});
|
|
5872
5872
|
yield poller.poll();
|
|
@@ -5880,7 +5880,7 @@ class CloudsImpl {
|
|
|
5880
5880
|
* @param options The options parameters.
|
|
5881
5881
|
*/
|
|
5882
5882
|
beginDeleteAndWait(resourceGroupName, cloudResourceName, options) {
|
|
5883
|
-
return tslib.__awaiter(this,
|
|
5883
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5884
5884
|
const poller = yield this.beginDelete(resourceGroupName, cloudResourceName, options);
|
|
5885
5885
|
return poller.pollUntilDone();
|
|
5886
5886
|
});
|
|
@@ -6127,7 +6127,7 @@ class VirtualMachineTemplatesImpl {
|
|
|
6127
6127
|
return this;
|
|
6128
6128
|
},
|
|
6129
6129
|
byPage: (settings) => {
|
|
6130
|
-
if (settings === null || settings ===
|
|
6130
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
6131
6131
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6132
6132
|
}
|
|
6133
6133
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -6137,7 +6137,7 @@ class VirtualMachineTemplatesImpl {
|
|
|
6137
6137
|
listBySubscriptionPagingPage(options, settings) {
|
|
6138
6138
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
6139
6139
|
let result;
|
|
6140
|
-
let continuationToken = settings === null || settings ===
|
|
6140
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
6141
6141
|
if (!continuationToken) {
|
|
6142
6142
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
6143
6143
|
let page = result.value || [];
|
|
@@ -6189,7 +6189,7 @@ class VirtualMachineTemplatesImpl {
|
|
|
6189
6189
|
return this;
|
|
6190
6190
|
},
|
|
6191
6191
|
byPage: (settings) => {
|
|
6192
|
-
if (settings === null || settings ===
|
|
6192
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
6193
6193
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6194
6194
|
}
|
|
6195
6195
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -6199,7 +6199,7 @@ class VirtualMachineTemplatesImpl {
|
|
|
6199
6199
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
6200
6200
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
6201
6201
|
let result;
|
|
6202
|
-
let continuationToken = settings === null || settings ===
|
|
6202
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
6203
6203
|
if (!continuationToken) {
|
|
6204
6204
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
6205
6205
|
let page = result.value || [];
|
|
@@ -6268,17 +6268,17 @@ class VirtualMachineTemplatesImpl {
|
|
|
6268
6268
|
* @param options The options parameters.
|
|
6269
6269
|
*/
|
|
6270
6270
|
beginCreateOrUpdate(resourceGroupName, virtualMachineTemplateName, resource, options) {
|
|
6271
|
-
return tslib.__awaiter(this,
|
|
6272
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6271
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6272
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6273
6273
|
return this.client.sendOperationRequest(args, spec);
|
|
6274
6274
|
});
|
|
6275
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6275
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6276
6276
|
var _a;
|
|
6277
6277
|
let currentRawResponse = undefined;
|
|
6278
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6278
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6279
6279
|
const callback = (rawResponse, flatResponse) => {
|
|
6280
6280
|
currentRawResponse = rawResponse;
|
|
6281
|
-
providedCallback === null || providedCallback ===
|
|
6281
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6282
6282
|
};
|
|
6283
6283
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6284
6284
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6302,8 +6302,8 @@ class VirtualMachineTemplatesImpl {
|
|
|
6302
6302
|
spec: createOrUpdateOperationSpec$2,
|
|
6303
6303
|
});
|
|
6304
6304
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6305
|
-
restoreFrom: options === null || options ===
|
|
6306
|
-
intervalInMs: options === null || options ===
|
|
6305
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6306
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6307
6307
|
resourceLocationConfig: "azure-async-operation",
|
|
6308
6308
|
});
|
|
6309
6309
|
yield poller.poll();
|
|
@@ -6318,7 +6318,7 @@ class VirtualMachineTemplatesImpl {
|
|
|
6318
6318
|
* @param options The options parameters.
|
|
6319
6319
|
*/
|
|
6320
6320
|
beginCreateOrUpdateAndWait(resourceGroupName, virtualMachineTemplateName, resource, options) {
|
|
6321
|
-
return tslib.__awaiter(this,
|
|
6321
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6322
6322
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, virtualMachineTemplateName, resource, options);
|
|
6323
6323
|
return poller.pollUntilDone();
|
|
6324
6324
|
});
|
|
@@ -6331,17 +6331,17 @@ class VirtualMachineTemplatesImpl {
|
|
|
6331
6331
|
* @param options The options parameters.
|
|
6332
6332
|
*/
|
|
6333
6333
|
beginUpdate(resourceGroupName, virtualMachineTemplateName, properties, options) {
|
|
6334
|
-
return tslib.__awaiter(this,
|
|
6335
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6334
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6335
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6336
6336
|
return this.client.sendOperationRequest(args, spec);
|
|
6337
6337
|
});
|
|
6338
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6338
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6339
6339
|
var _a;
|
|
6340
6340
|
let currentRawResponse = undefined;
|
|
6341
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6341
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6342
6342
|
const callback = (rawResponse, flatResponse) => {
|
|
6343
6343
|
currentRawResponse = rawResponse;
|
|
6344
|
-
providedCallback === null || providedCallback ===
|
|
6344
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6345
6345
|
};
|
|
6346
6346
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6347
6347
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6365,8 +6365,8 @@ class VirtualMachineTemplatesImpl {
|
|
|
6365
6365
|
spec: updateOperationSpec$2,
|
|
6366
6366
|
});
|
|
6367
6367
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6368
|
-
restoreFrom: options === null || options ===
|
|
6369
|
-
intervalInMs: options === null || options ===
|
|
6368
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6369
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6370
6370
|
resourceLocationConfig: "azure-async-operation",
|
|
6371
6371
|
});
|
|
6372
6372
|
yield poller.poll();
|
|
@@ -6381,7 +6381,7 @@ class VirtualMachineTemplatesImpl {
|
|
|
6381
6381
|
* @param options The options parameters.
|
|
6382
6382
|
*/
|
|
6383
6383
|
beginUpdateAndWait(resourceGroupName, virtualMachineTemplateName, properties, options) {
|
|
6384
|
-
return tslib.__awaiter(this,
|
|
6384
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6385
6385
|
const poller = yield this.beginUpdate(resourceGroupName, virtualMachineTemplateName, properties, options);
|
|
6386
6386
|
return poller.pollUntilDone();
|
|
6387
6387
|
});
|
|
@@ -6393,17 +6393,17 @@ class VirtualMachineTemplatesImpl {
|
|
|
6393
6393
|
* @param options The options parameters.
|
|
6394
6394
|
*/
|
|
6395
6395
|
beginDelete(resourceGroupName, virtualMachineTemplateName, options) {
|
|
6396
|
-
return tslib.__awaiter(this,
|
|
6397
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6396
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6397
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6398
6398
|
return this.client.sendOperationRequest(args, spec);
|
|
6399
6399
|
});
|
|
6400
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6400
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6401
6401
|
var _a;
|
|
6402
6402
|
let currentRawResponse = undefined;
|
|
6403
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6403
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6404
6404
|
const callback = (rawResponse, flatResponse) => {
|
|
6405
6405
|
currentRawResponse = rawResponse;
|
|
6406
|
-
providedCallback === null || providedCallback ===
|
|
6406
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6407
6407
|
};
|
|
6408
6408
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6409
6409
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6422,8 +6422,8 @@ class VirtualMachineTemplatesImpl {
|
|
|
6422
6422
|
spec: deleteOperationSpec$3,
|
|
6423
6423
|
});
|
|
6424
6424
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6425
|
-
restoreFrom: options === null || options ===
|
|
6426
|
-
intervalInMs: options === null || options ===
|
|
6425
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6426
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6427
6427
|
resourceLocationConfig: "azure-async-operation",
|
|
6428
6428
|
});
|
|
6429
6429
|
yield poller.poll();
|
|
@@ -6437,7 +6437,7 @@ class VirtualMachineTemplatesImpl {
|
|
|
6437
6437
|
* @param options The options parameters.
|
|
6438
6438
|
*/
|
|
6439
6439
|
beginDeleteAndWait(resourceGroupName, virtualMachineTemplateName, options) {
|
|
6440
|
-
return tslib.__awaiter(this,
|
|
6440
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6441
6441
|
const poller = yield this.beginDelete(resourceGroupName, virtualMachineTemplateName, options);
|
|
6442
6442
|
return poller.pollUntilDone();
|
|
6443
6443
|
});
|
|
@@ -6684,7 +6684,7 @@ class VirtualNetworksImpl {
|
|
|
6684
6684
|
return this;
|
|
6685
6685
|
},
|
|
6686
6686
|
byPage: (settings) => {
|
|
6687
|
-
if (settings === null || settings ===
|
|
6687
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
6688
6688
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6689
6689
|
}
|
|
6690
6690
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -6694,7 +6694,7 @@ class VirtualNetworksImpl {
|
|
|
6694
6694
|
listBySubscriptionPagingPage(options, settings) {
|
|
6695
6695
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
6696
6696
|
let result;
|
|
6697
|
-
let continuationToken = settings === null || settings ===
|
|
6697
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
6698
6698
|
if (!continuationToken) {
|
|
6699
6699
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
6700
6700
|
let page = result.value || [];
|
|
@@ -6746,7 +6746,7 @@ class VirtualNetworksImpl {
|
|
|
6746
6746
|
return this;
|
|
6747
6747
|
},
|
|
6748
6748
|
byPage: (settings) => {
|
|
6749
|
-
if (settings === null || settings ===
|
|
6749
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
6750
6750
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6751
6751
|
}
|
|
6752
6752
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -6756,7 +6756,7 @@ class VirtualNetworksImpl {
|
|
|
6756
6756
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
6757
6757
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
6758
6758
|
let result;
|
|
6759
|
-
let continuationToken = settings === null || settings ===
|
|
6759
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
6760
6760
|
if (!continuationToken) {
|
|
6761
6761
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
6762
6762
|
let page = result.value || [];
|
|
@@ -6825,17 +6825,17 @@ class VirtualNetworksImpl {
|
|
|
6825
6825
|
* @param options The options parameters.
|
|
6826
6826
|
*/
|
|
6827
6827
|
beginCreateOrUpdate(resourceGroupName, virtualNetworkName, resource, options) {
|
|
6828
|
-
return tslib.__awaiter(this,
|
|
6829
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6828
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6829
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6830
6830
|
return this.client.sendOperationRequest(args, spec);
|
|
6831
6831
|
});
|
|
6832
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6832
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6833
6833
|
var _a;
|
|
6834
6834
|
let currentRawResponse = undefined;
|
|
6835
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6835
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6836
6836
|
const callback = (rawResponse, flatResponse) => {
|
|
6837
6837
|
currentRawResponse = rawResponse;
|
|
6838
|
-
providedCallback === null || providedCallback ===
|
|
6838
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6839
6839
|
};
|
|
6840
6840
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6841
6841
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6854,8 +6854,8 @@ class VirtualNetworksImpl {
|
|
|
6854
6854
|
spec: createOrUpdateOperationSpec$1,
|
|
6855
6855
|
});
|
|
6856
6856
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6857
|
-
restoreFrom: options === null || options ===
|
|
6858
|
-
intervalInMs: options === null || options ===
|
|
6857
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6858
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6859
6859
|
resourceLocationConfig: "azure-async-operation",
|
|
6860
6860
|
});
|
|
6861
6861
|
yield poller.poll();
|
|
@@ -6870,7 +6870,7 @@ class VirtualNetworksImpl {
|
|
|
6870
6870
|
* @param options The options parameters.
|
|
6871
6871
|
*/
|
|
6872
6872
|
beginCreateOrUpdateAndWait(resourceGroupName, virtualNetworkName, resource, options) {
|
|
6873
|
-
return tslib.__awaiter(this,
|
|
6873
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6874
6874
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, virtualNetworkName, resource, options);
|
|
6875
6875
|
return poller.pollUntilDone();
|
|
6876
6876
|
});
|
|
@@ -6883,17 +6883,17 @@ class VirtualNetworksImpl {
|
|
|
6883
6883
|
* @param options The options parameters.
|
|
6884
6884
|
*/
|
|
6885
6885
|
beginUpdate(resourceGroupName, virtualNetworkName, properties, options) {
|
|
6886
|
-
return tslib.__awaiter(this,
|
|
6887
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6886
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6887
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6888
6888
|
return this.client.sendOperationRequest(args, spec);
|
|
6889
6889
|
});
|
|
6890
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6890
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6891
6891
|
var _a;
|
|
6892
6892
|
let currentRawResponse = undefined;
|
|
6893
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6893
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6894
6894
|
const callback = (rawResponse, flatResponse) => {
|
|
6895
6895
|
currentRawResponse = rawResponse;
|
|
6896
|
-
providedCallback === null || providedCallback ===
|
|
6896
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6897
6897
|
};
|
|
6898
6898
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6899
6899
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6912,8 +6912,8 @@ class VirtualNetworksImpl {
|
|
|
6912
6912
|
spec: updateOperationSpec$1,
|
|
6913
6913
|
});
|
|
6914
6914
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6915
|
-
restoreFrom: options === null || options ===
|
|
6916
|
-
intervalInMs: options === null || options ===
|
|
6915
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6916
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6917
6917
|
resourceLocationConfig: "azure-async-operation",
|
|
6918
6918
|
});
|
|
6919
6919
|
yield poller.poll();
|
|
@@ -6928,7 +6928,7 @@ class VirtualNetworksImpl {
|
|
|
6928
6928
|
* @param options The options parameters.
|
|
6929
6929
|
*/
|
|
6930
6930
|
beginUpdateAndWait(resourceGroupName, virtualNetworkName, properties, options) {
|
|
6931
|
-
return tslib.__awaiter(this,
|
|
6931
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6932
6932
|
const poller = yield this.beginUpdate(resourceGroupName, virtualNetworkName, properties, options);
|
|
6933
6933
|
return poller.pollUntilDone();
|
|
6934
6934
|
});
|
|
@@ -6940,17 +6940,17 @@ class VirtualNetworksImpl {
|
|
|
6940
6940
|
* @param options The options parameters.
|
|
6941
6941
|
*/
|
|
6942
6942
|
beginDelete(resourceGroupName, virtualNetworkName, options) {
|
|
6943
|
-
return tslib.__awaiter(this,
|
|
6944
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6943
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6944
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6945
6945
|
return this.client.sendOperationRequest(args, spec);
|
|
6946
6946
|
});
|
|
6947
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6947
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6948
6948
|
var _a;
|
|
6949
6949
|
let currentRawResponse = undefined;
|
|
6950
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6950
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6951
6951
|
const callback = (rawResponse, flatResponse) => {
|
|
6952
6952
|
currentRawResponse = rawResponse;
|
|
6953
|
-
providedCallback === null || providedCallback ===
|
|
6953
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6954
6954
|
};
|
|
6955
6955
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6956
6956
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6969,8 +6969,8 @@ class VirtualNetworksImpl {
|
|
|
6969
6969
|
spec: deleteOperationSpec$2,
|
|
6970
6970
|
});
|
|
6971
6971
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6972
|
-
restoreFrom: options === null || options ===
|
|
6973
|
-
intervalInMs: options === null || options ===
|
|
6972
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6973
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
6974
6974
|
resourceLocationConfig: "azure-async-operation",
|
|
6975
6975
|
});
|
|
6976
6976
|
yield poller.poll();
|
|
@@ -6984,7 +6984,7 @@ class VirtualNetworksImpl {
|
|
|
6984
6984
|
* @param options The options parameters.
|
|
6985
6985
|
*/
|
|
6986
6986
|
beginDeleteAndWait(resourceGroupName, virtualNetworkName, options) {
|
|
6987
|
-
return tslib.__awaiter(this,
|
|
6987
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6988
6988
|
const poller = yield this.beginDelete(resourceGroupName, virtualNetworkName, options);
|
|
6989
6989
|
return poller.pollUntilDone();
|
|
6990
6990
|
});
|
|
@@ -7231,7 +7231,7 @@ class VmmServersImpl {
|
|
|
7231
7231
|
return this;
|
|
7232
7232
|
},
|
|
7233
7233
|
byPage: (settings) => {
|
|
7234
|
-
if (settings === null || settings ===
|
|
7234
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7235
7235
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7236
7236
|
}
|
|
7237
7237
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -7241,7 +7241,7 @@ class VmmServersImpl {
|
|
|
7241
7241
|
listBySubscriptionPagingPage(options, settings) {
|
|
7242
7242
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
7243
7243
|
let result;
|
|
7244
|
-
let continuationToken = settings === null || settings ===
|
|
7244
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
7245
7245
|
if (!continuationToken) {
|
|
7246
7246
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
7247
7247
|
let page = result.value || [];
|
|
@@ -7293,7 +7293,7 @@ class VmmServersImpl {
|
|
|
7293
7293
|
return this;
|
|
7294
7294
|
},
|
|
7295
7295
|
byPage: (settings) => {
|
|
7296
|
-
if (settings === null || settings ===
|
|
7296
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7297
7297
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7298
7298
|
}
|
|
7299
7299
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -7303,7 +7303,7 @@ class VmmServersImpl {
|
|
|
7303
7303
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
7304
7304
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
7305
7305
|
let result;
|
|
7306
|
-
let continuationToken = settings === null || settings ===
|
|
7306
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
7307
7307
|
if (!continuationToken) {
|
|
7308
7308
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
7309
7309
|
let page = result.value || [];
|
|
@@ -7372,17 +7372,17 @@ class VmmServersImpl {
|
|
|
7372
7372
|
* @param options The options parameters.
|
|
7373
7373
|
*/
|
|
7374
7374
|
beginCreateOrUpdate(resourceGroupName, vmmServerName, resource, options) {
|
|
7375
|
-
return tslib.__awaiter(this,
|
|
7376
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7375
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7376
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7377
7377
|
return this.client.sendOperationRequest(args, spec);
|
|
7378
7378
|
});
|
|
7379
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7379
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7380
7380
|
var _a;
|
|
7381
7381
|
let currentRawResponse = undefined;
|
|
7382
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7382
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7383
7383
|
const callback = (rawResponse, flatResponse) => {
|
|
7384
7384
|
currentRawResponse = rawResponse;
|
|
7385
|
-
providedCallback === null || providedCallback ===
|
|
7385
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7386
7386
|
};
|
|
7387
7387
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7388
7388
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7401,8 +7401,8 @@ class VmmServersImpl {
|
|
|
7401
7401
|
spec: createOrUpdateOperationSpec,
|
|
7402
7402
|
});
|
|
7403
7403
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7404
|
-
restoreFrom: options === null || options ===
|
|
7405
|
-
intervalInMs: options === null || options ===
|
|
7404
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7405
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7406
7406
|
resourceLocationConfig: "azure-async-operation",
|
|
7407
7407
|
});
|
|
7408
7408
|
yield poller.poll();
|
|
@@ -7417,7 +7417,7 @@ class VmmServersImpl {
|
|
|
7417
7417
|
* @param options The options parameters.
|
|
7418
7418
|
*/
|
|
7419
7419
|
beginCreateOrUpdateAndWait(resourceGroupName, vmmServerName, resource, options) {
|
|
7420
|
-
return tslib.__awaiter(this,
|
|
7420
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7421
7421
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, vmmServerName, resource, options);
|
|
7422
7422
|
return poller.pollUntilDone();
|
|
7423
7423
|
});
|
|
@@ -7430,17 +7430,17 @@ class VmmServersImpl {
|
|
|
7430
7430
|
* @param options The options parameters.
|
|
7431
7431
|
*/
|
|
7432
7432
|
beginUpdate(resourceGroupName, vmmServerName, properties, options) {
|
|
7433
|
-
return tslib.__awaiter(this,
|
|
7434
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7433
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7434
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7435
7435
|
return this.client.sendOperationRequest(args, spec);
|
|
7436
7436
|
});
|
|
7437
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7437
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7438
7438
|
var _a;
|
|
7439
7439
|
let currentRawResponse = undefined;
|
|
7440
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7440
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7441
7441
|
const callback = (rawResponse, flatResponse) => {
|
|
7442
7442
|
currentRawResponse = rawResponse;
|
|
7443
|
-
providedCallback === null || providedCallback ===
|
|
7443
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7444
7444
|
};
|
|
7445
7445
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7446
7446
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7459,8 +7459,8 @@ class VmmServersImpl {
|
|
|
7459
7459
|
spec: updateOperationSpec,
|
|
7460
7460
|
});
|
|
7461
7461
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7462
|
-
restoreFrom: options === null || options ===
|
|
7463
|
-
intervalInMs: options === null || options ===
|
|
7462
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7463
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7464
7464
|
resourceLocationConfig: "azure-async-operation",
|
|
7465
7465
|
});
|
|
7466
7466
|
yield poller.poll();
|
|
@@ -7475,7 +7475,7 @@ class VmmServersImpl {
|
|
|
7475
7475
|
* @param options The options parameters.
|
|
7476
7476
|
*/
|
|
7477
7477
|
beginUpdateAndWait(resourceGroupName, vmmServerName, properties, options) {
|
|
7478
|
-
return tslib.__awaiter(this,
|
|
7478
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7479
7479
|
const poller = yield this.beginUpdate(resourceGroupName, vmmServerName, properties, options);
|
|
7480
7480
|
return poller.pollUntilDone();
|
|
7481
7481
|
});
|
|
@@ -7487,17 +7487,17 @@ class VmmServersImpl {
|
|
|
7487
7487
|
* @param options The options parameters.
|
|
7488
7488
|
*/
|
|
7489
7489
|
beginDelete(resourceGroupName, vmmServerName, options) {
|
|
7490
|
-
return tslib.__awaiter(this,
|
|
7491
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7490
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7491
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7492
7492
|
return this.client.sendOperationRequest(args, spec);
|
|
7493
7493
|
});
|
|
7494
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7494
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7495
7495
|
var _a;
|
|
7496
7496
|
let currentRawResponse = undefined;
|
|
7497
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7497
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7498
7498
|
const callback = (rawResponse, flatResponse) => {
|
|
7499
7499
|
currentRawResponse = rawResponse;
|
|
7500
|
-
providedCallback === null || providedCallback ===
|
|
7500
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7501
7501
|
};
|
|
7502
7502
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7503
7503
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7516,8 +7516,8 @@ class VmmServersImpl {
|
|
|
7516
7516
|
spec: deleteOperationSpec$1,
|
|
7517
7517
|
});
|
|
7518
7518
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7519
|
-
restoreFrom: options === null || options ===
|
|
7520
|
-
intervalInMs: options === null || options ===
|
|
7519
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7520
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
7521
7521
|
resourceLocationConfig: "azure-async-operation",
|
|
7522
7522
|
});
|
|
7523
7523
|
yield poller.poll();
|
|
@@ -7531,7 +7531,7 @@ class VmmServersImpl {
|
|
|
7531
7531
|
* @param options The options parameters.
|
|
7532
7532
|
*/
|
|
7533
7533
|
beginDeleteAndWait(resourceGroupName, vmmServerName, options) {
|
|
7534
|
-
return tslib.__awaiter(this,
|
|
7534
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7535
7535
|
const poller = yield this.beginDelete(resourceGroupName, vmmServerName, options);
|
|
7536
7536
|
return poller.pollUntilDone();
|
|
7537
7537
|
});
|
|
@@ -7780,7 +7780,7 @@ class InventoryItemsImpl {
|
|
|
7780
7780
|
return this;
|
|
7781
7781
|
},
|
|
7782
7782
|
byPage: (settings) => {
|
|
7783
|
-
if (settings === null || settings ===
|
|
7783
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7784
7784
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7785
7785
|
}
|
|
7786
7786
|
return this.listByVmmServerPagingPage(resourceGroupName, vmmServerName, options, settings);
|
|
@@ -7790,7 +7790,7 @@ class InventoryItemsImpl {
|
|
|
7790
7790
|
listByVmmServerPagingPage(resourceGroupName, vmmServerName, options, settings) {
|
|
7791
7791
|
return tslib.__asyncGenerator(this, arguments, function* listByVmmServerPagingPage_1() {
|
|
7792
7792
|
let result;
|
|
7793
|
-
let continuationToken = settings === null || settings ===
|
|
7793
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
7794
7794
|
if (!continuationToken) {
|
|
7795
7795
|
result = yield tslib.__await(this._listByVmmServer(resourceGroupName, vmmServerName, options));
|
|
7796
7796
|
let page = result.value || [];
|
|
@@ -8033,10 +8033,10 @@ class ScVmm extends coreClient__namespace.ServiceClient {
|
|
|
8033
8033
|
: `${packageDetails}`;
|
|
8034
8034
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
8035
8035
|
userAgentPrefix,
|
|
8036
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
8036
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
|
|
8037
8037
|
super(optionsWithDefaults);
|
|
8038
8038
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
8039
|
-
if ((options === null || options ===
|
|
8039
|
+
if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
8040
8040
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
8041
8041
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
8042
8042
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -8050,7 +8050,7 @@ class ScVmm extends coreClient__namespace.ServiceClient {
|
|
|
8050
8050
|
});
|
|
8051
8051
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
8052
8052
|
credential: credentials,
|
|
8053
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
8053
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
8054
8054
|
challengeCallbacks: {
|
|
8055
8055
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
|
|
8056
8056
|
},
|
|
@@ -8082,7 +8082,7 @@ class ScVmm extends coreClient__namespace.ServiceClient {
|
|
|
8082
8082
|
const apiVersionPolicy = {
|
|
8083
8083
|
name: "CustomApiVersionPolicy",
|
|
8084
8084
|
sendRequest(request, next) {
|
|
8085
|
-
return tslib.__awaiter(this,
|
|
8085
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8086
8086
|
const param = request.url.split("?");
|
|
8087
8087
|
if (param.length > 1) {
|
|
8088
8088
|
const newParams = param[1].split("&").map((item) => {
|