@azure/arm-resources 5.2.1-alpha.20250106.1 → 5.2.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 +273 -273
- 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
|
}
|
|
@@ -3376,7 +3376,7 @@ class OperationsImpl {
|
|
|
3376
3376
|
return this;
|
|
3377
3377
|
},
|
|
3378
3378
|
byPage: (settings) => {
|
|
3379
|
-
if (settings === null || settings ===
|
|
3379
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
3380
3380
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3381
3381
|
}
|
|
3382
3382
|
return this.listPagingPage(options, settings);
|
|
@@ -3386,7 +3386,7 @@ class OperationsImpl {
|
|
|
3386
3386
|
listPagingPage(options, settings) {
|
|
3387
3387
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3388
3388
|
let result;
|
|
3389
|
-
let continuationToken = settings === null || settings ===
|
|
3389
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
3390
3390
|
if (!continuationToken) {
|
|
3391
3391
|
result = yield tslib.__await(this._list(options));
|
|
3392
3392
|
let page = result.value || [];
|
|
@@ -3488,7 +3488,7 @@ function createLroSpec(inputs) {
|
|
|
3488
3488
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
3489
3489
|
sendPollRequest: (path, options) => {
|
|
3490
3490
|
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
3491
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
|
3491
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
|
|
3492
3492
|
}
|
|
3493
3493
|
};
|
|
3494
3494
|
}
|
|
@@ -3525,7 +3525,7 @@ class DeploymentsImpl {
|
|
|
3525
3525
|
return this;
|
|
3526
3526
|
},
|
|
3527
3527
|
byPage: (settings) => {
|
|
3528
|
-
if (settings === null || settings ===
|
|
3528
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
3529
3529
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3530
3530
|
}
|
|
3531
3531
|
return this.listAtScopePagingPage(scope, options, settings);
|
|
@@ -3535,7 +3535,7 @@ class DeploymentsImpl {
|
|
|
3535
3535
|
listAtScopePagingPage(scope, options, settings) {
|
|
3536
3536
|
return tslib.__asyncGenerator(this, arguments, function* listAtScopePagingPage_1() {
|
|
3537
3537
|
let result;
|
|
3538
|
-
let continuationToken = settings === null || settings ===
|
|
3538
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
3539
3539
|
if (!continuationToken) {
|
|
3540
3540
|
result = yield tslib.__await(this._listAtScope(scope, options));
|
|
3541
3541
|
let page = result.value || [];
|
|
@@ -3586,7 +3586,7 @@ class DeploymentsImpl {
|
|
|
3586
3586
|
return this;
|
|
3587
3587
|
},
|
|
3588
3588
|
byPage: (settings) => {
|
|
3589
|
-
if (settings === null || settings ===
|
|
3589
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
3590
3590
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3591
3591
|
}
|
|
3592
3592
|
return this.listAtTenantScopePagingPage(options, settings);
|
|
@@ -3596,7 +3596,7 @@ class DeploymentsImpl {
|
|
|
3596
3596
|
listAtTenantScopePagingPage(options, settings) {
|
|
3597
3597
|
return tslib.__asyncGenerator(this, arguments, function* listAtTenantScopePagingPage_1() {
|
|
3598
3598
|
let result;
|
|
3599
|
-
let continuationToken = settings === null || settings ===
|
|
3599
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
3600
3600
|
if (!continuationToken) {
|
|
3601
3601
|
result = yield tslib.__await(this._listAtTenantScope(options));
|
|
3602
3602
|
let page = result.value || [];
|
|
@@ -3648,7 +3648,7 @@ class DeploymentsImpl {
|
|
|
3648
3648
|
return this;
|
|
3649
3649
|
},
|
|
3650
3650
|
byPage: (settings) => {
|
|
3651
|
-
if (settings === null || settings ===
|
|
3651
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
3652
3652
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3653
3653
|
}
|
|
3654
3654
|
return this.listAtManagementGroupScopePagingPage(groupId, options, settings);
|
|
@@ -3658,7 +3658,7 @@ class DeploymentsImpl {
|
|
|
3658
3658
|
listAtManagementGroupScopePagingPage(groupId, options, settings) {
|
|
3659
3659
|
return tslib.__asyncGenerator(this, arguments, function* listAtManagementGroupScopePagingPage_1() {
|
|
3660
3660
|
let result;
|
|
3661
|
-
let continuationToken = settings === null || settings ===
|
|
3661
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
3662
3662
|
if (!continuationToken) {
|
|
3663
3663
|
result = yield tslib.__await(this._listAtManagementGroupScope(groupId, options));
|
|
3664
3664
|
let page = result.value || [];
|
|
@@ -3709,7 +3709,7 @@ class DeploymentsImpl {
|
|
|
3709
3709
|
return this;
|
|
3710
3710
|
},
|
|
3711
3711
|
byPage: (settings) => {
|
|
3712
|
-
if (settings === null || settings ===
|
|
3712
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
3713
3713
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3714
3714
|
}
|
|
3715
3715
|
return this.listAtSubscriptionScopePagingPage(options, settings);
|
|
@@ -3719,7 +3719,7 @@ class DeploymentsImpl {
|
|
|
3719
3719
|
listAtSubscriptionScopePagingPage(options, settings) {
|
|
3720
3720
|
return tslib.__asyncGenerator(this, arguments, function* listAtSubscriptionScopePagingPage_1() {
|
|
3721
3721
|
let result;
|
|
3722
|
-
let continuationToken = settings === null || settings ===
|
|
3722
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
3723
3723
|
if (!continuationToken) {
|
|
3724
3724
|
result = yield tslib.__await(this._listAtSubscriptionScope(options));
|
|
3725
3725
|
let page = result.value || [];
|
|
@@ -3772,7 +3772,7 @@ class DeploymentsImpl {
|
|
|
3772
3772
|
return this;
|
|
3773
3773
|
},
|
|
3774
3774
|
byPage: (settings) => {
|
|
3775
|
-
if (settings === null || settings ===
|
|
3775
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
3776
3776
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3777
3777
|
}
|
|
3778
3778
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -3782,7 +3782,7 @@ class DeploymentsImpl {
|
|
|
3782
3782
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
3783
3783
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
3784
3784
|
let result;
|
|
3785
|
-
let continuationToken = settings === null || settings ===
|
|
3785
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
3786
3786
|
if (!continuationToken) {
|
|
3787
3787
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
3788
3788
|
let page = result.value || [];
|
|
@@ -3832,17 +3832,17 @@ class DeploymentsImpl {
|
|
|
3832
3832
|
* @param options The options parameters.
|
|
3833
3833
|
*/
|
|
3834
3834
|
beginDeleteAtScope(scope, deploymentName, options) {
|
|
3835
|
-
return tslib.__awaiter(this,
|
|
3836
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3835
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3836
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3837
3837
|
return this.client.sendOperationRequest(args, spec);
|
|
3838
3838
|
});
|
|
3839
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3839
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3840
3840
|
var _a;
|
|
3841
3841
|
let currentRawResponse = undefined;
|
|
3842
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3842
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
3843
3843
|
const callback = (rawResponse, flatResponse) => {
|
|
3844
3844
|
currentRawResponse = rawResponse;
|
|
3845
|
-
providedCallback === null || providedCallback ===
|
|
3845
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
3846
3846
|
};
|
|
3847
3847
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3848
3848
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3861,8 +3861,8 @@ class DeploymentsImpl {
|
|
|
3861
3861
|
spec: deleteAtScopeOperationSpec$1
|
|
3862
3862
|
});
|
|
3863
3863
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3864
|
-
restoreFrom: options === null || options ===
|
|
3865
|
-
intervalInMs: options === null || options ===
|
|
3864
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
3865
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
3866
3866
|
});
|
|
3867
3867
|
yield poller.poll();
|
|
3868
3868
|
return poller;
|
|
@@ -3881,7 +3881,7 @@ class DeploymentsImpl {
|
|
|
3881
3881
|
* @param options The options parameters.
|
|
3882
3882
|
*/
|
|
3883
3883
|
beginDeleteAtScopeAndWait(scope, deploymentName, options) {
|
|
3884
|
-
return tslib.__awaiter(this,
|
|
3884
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3885
3885
|
const poller = yield this.beginDeleteAtScope(scope, deploymentName, options);
|
|
3886
3886
|
return poller.pollUntilDone();
|
|
3887
3887
|
});
|
|
@@ -3903,17 +3903,17 @@ class DeploymentsImpl {
|
|
|
3903
3903
|
* @param options The options parameters.
|
|
3904
3904
|
*/
|
|
3905
3905
|
beginCreateOrUpdateAtScope(scope, deploymentName, parameters, options) {
|
|
3906
|
-
return tslib.__awaiter(this,
|
|
3907
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3906
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3907
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3908
3908
|
return this.client.sendOperationRequest(args, spec);
|
|
3909
3909
|
});
|
|
3910
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3910
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3911
3911
|
var _a;
|
|
3912
3912
|
let currentRawResponse = undefined;
|
|
3913
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3913
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
3914
3914
|
const callback = (rawResponse, flatResponse) => {
|
|
3915
3915
|
currentRawResponse = rawResponse;
|
|
3916
|
-
providedCallback === null || providedCallback ===
|
|
3916
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
3917
3917
|
};
|
|
3918
3918
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3919
3919
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3932,8 +3932,8 @@ class DeploymentsImpl {
|
|
|
3932
3932
|
spec: createOrUpdateAtScopeOperationSpec$1
|
|
3933
3933
|
});
|
|
3934
3934
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3935
|
-
restoreFrom: options === null || options ===
|
|
3936
|
-
intervalInMs: options === null || options ===
|
|
3935
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
3936
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
3937
3937
|
});
|
|
3938
3938
|
yield poller.poll();
|
|
3939
3939
|
return poller;
|
|
@@ -3947,7 +3947,7 @@ class DeploymentsImpl {
|
|
|
3947
3947
|
* @param options The options parameters.
|
|
3948
3948
|
*/
|
|
3949
3949
|
beginCreateOrUpdateAtScopeAndWait(scope, deploymentName, parameters, options) {
|
|
3950
|
-
return tslib.__awaiter(this,
|
|
3950
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3951
3951
|
const poller = yield this.beginCreateOrUpdateAtScope(scope, deploymentName, parameters, options);
|
|
3952
3952
|
return poller.pollUntilDone();
|
|
3953
3953
|
});
|
|
@@ -3981,17 +3981,17 @@ class DeploymentsImpl {
|
|
|
3981
3981
|
* @param options The options parameters.
|
|
3982
3982
|
*/
|
|
3983
3983
|
beginValidateAtScope(scope, deploymentName, parameters, options) {
|
|
3984
|
-
return tslib.__awaiter(this,
|
|
3985
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3984
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3985
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3986
3986
|
return this.client.sendOperationRequest(args, spec);
|
|
3987
3987
|
});
|
|
3988
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3988
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3989
3989
|
var _a;
|
|
3990
3990
|
let currentRawResponse = undefined;
|
|
3991
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3991
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
3992
3992
|
const callback = (rawResponse, flatResponse) => {
|
|
3993
3993
|
currentRawResponse = rawResponse;
|
|
3994
|
-
providedCallback === null || providedCallback ===
|
|
3994
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
3995
3995
|
};
|
|
3996
3996
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3997
3997
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4010,8 +4010,8 @@ class DeploymentsImpl {
|
|
|
4010
4010
|
spec: validateAtScopeOperationSpec
|
|
4011
4011
|
});
|
|
4012
4012
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4013
|
-
restoreFrom: options === null || options ===
|
|
4014
|
-
intervalInMs: options === null || options ===
|
|
4013
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4014
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
4015
4015
|
});
|
|
4016
4016
|
yield poller.poll();
|
|
4017
4017
|
return poller;
|
|
@@ -4026,7 +4026,7 @@ class DeploymentsImpl {
|
|
|
4026
4026
|
* @param options The options parameters.
|
|
4027
4027
|
*/
|
|
4028
4028
|
beginValidateAtScopeAndWait(scope, deploymentName, parameters, options) {
|
|
4029
|
-
return tslib.__awaiter(this,
|
|
4029
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4030
4030
|
const poller = yield this.beginValidateAtScope(scope, deploymentName, parameters, options);
|
|
4031
4031
|
return poller.pollUntilDone();
|
|
4032
4032
|
});
|
|
@@ -4060,17 +4060,17 @@ class DeploymentsImpl {
|
|
|
4060
4060
|
* @param options The options parameters.
|
|
4061
4061
|
*/
|
|
4062
4062
|
beginDeleteAtTenantScope(deploymentName, options) {
|
|
4063
|
-
return tslib.__awaiter(this,
|
|
4064
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4063
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4064
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4065
4065
|
return this.client.sendOperationRequest(args, spec);
|
|
4066
4066
|
});
|
|
4067
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4067
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4068
4068
|
var _a;
|
|
4069
4069
|
let currentRawResponse = undefined;
|
|
4070
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4070
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4071
4071
|
const callback = (rawResponse, flatResponse) => {
|
|
4072
4072
|
currentRawResponse = rawResponse;
|
|
4073
|
-
providedCallback === null || providedCallback ===
|
|
4073
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4074
4074
|
};
|
|
4075
4075
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4076
4076
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4089,8 +4089,8 @@ class DeploymentsImpl {
|
|
|
4089
4089
|
spec: deleteAtTenantScopeOperationSpec
|
|
4090
4090
|
});
|
|
4091
4091
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4092
|
-
restoreFrom: options === null || options ===
|
|
4093
|
-
intervalInMs: options === null || options ===
|
|
4092
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4093
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
4094
4094
|
});
|
|
4095
4095
|
yield poller.poll();
|
|
4096
4096
|
return poller;
|
|
@@ -4108,7 +4108,7 @@ class DeploymentsImpl {
|
|
|
4108
4108
|
* @param options The options parameters.
|
|
4109
4109
|
*/
|
|
4110
4110
|
beginDeleteAtTenantScopeAndWait(deploymentName, options) {
|
|
4111
|
-
return tslib.__awaiter(this,
|
|
4111
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4112
4112
|
const poller = yield this.beginDeleteAtTenantScope(deploymentName, options);
|
|
4113
4113
|
return poller.pollUntilDone();
|
|
4114
4114
|
});
|
|
@@ -4128,17 +4128,17 @@ class DeploymentsImpl {
|
|
|
4128
4128
|
* @param options The options parameters.
|
|
4129
4129
|
*/
|
|
4130
4130
|
beginCreateOrUpdateAtTenantScope(deploymentName, parameters, options) {
|
|
4131
|
-
return tslib.__awaiter(this,
|
|
4132
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4131
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4132
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4133
4133
|
return this.client.sendOperationRequest(args, spec);
|
|
4134
4134
|
});
|
|
4135
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4135
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4136
4136
|
var _a;
|
|
4137
4137
|
let currentRawResponse = undefined;
|
|
4138
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4138
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4139
4139
|
const callback = (rawResponse, flatResponse) => {
|
|
4140
4140
|
currentRawResponse = rawResponse;
|
|
4141
|
-
providedCallback === null || providedCallback ===
|
|
4141
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4142
4142
|
};
|
|
4143
4143
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4144
4144
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4157,8 +4157,8 @@ class DeploymentsImpl {
|
|
|
4157
4157
|
spec: createOrUpdateAtTenantScopeOperationSpec
|
|
4158
4158
|
});
|
|
4159
4159
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4160
|
-
restoreFrom: options === null || options ===
|
|
4161
|
-
intervalInMs: options === null || options ===
|
|
4160
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4161
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
4162
4162
|
});
|
|
4163
4163
|
yield poller.poll();
|
|
4164
4164
|
return poller;
|
|
@@ -4171,7 +4171,7 @@ class DeploymentsImpl {
|
|
|
4171
4171
|
* @param options The options parameters.
|
|
4172
4172
|
*/
|
|
4173
4173
|
beginCreateOrUpdateAtTenantScopeAndWait(deploymentName, parameters, options) {
|
|
4174
|
-
return tslib.__awaiter(this,
|
|
4174
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4175
4175
|
const poller = yield this.beginCreateOrUpdateAtTenantScope(deploymentName, parameters, options);
|
|
4176
4176
|
return poller.pollUntilDone();
|
|
4177
4177
|
});
|
|
@@ -4202,17 +4202,17 @@ class DeploymentsImpl {
|
|
|
4202
4202
|
* @param options The options parameters.
|
|
4203
4203
|
*/
|
|
4204
4204
|
beginValidateAtTenantScope(deploymentName, parameters, options) {
|
|
4205
|
-
return tslib.__awaiter(this,
|
|
4206
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4205
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4206
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4207
4207
|
return this.client.sendOperationRequest(args, spec);
|
|
4208
4208
|
});
|
|
4209
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4209
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4210
4210
|
var _a;
|
|
4211
4211
|
let currentRawResponse = undefined;
|
|
4212
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4212
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4213
4213
|
const callback = (rawResponse, flatResponse) => {
|
|
4214
4214
|
currentRawResponse = rawResponse;
|
|
4215
|
-
providedCallback === null || providedCallback ===
|
|
4215
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4216
4216
|
};
|
|
4217
4217
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4218
4218
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4231,8 +4231,8 @@ class DeploymentsImpl {
|
|
|
4231
4231
|
spec: validateAtTenantScopeOperationSpec
|
|
4232
4232
|
});
|
|
4233
4233
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4234
|
-
restoreFrom: options === null || options ===
|
|
4235
|
-
intervalInMs: options === null || options ===
|
|
4234
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4235
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
4236
4236
|
});
|
|
4237
4237
|
yield poller.poll();
|
|
4238
4238
|
return poller;
|
|
@@ -4246,7 +4246,7 @@ class DeploymentsImpl {
|
|
|
4246
4246
|
* @param options The options parameters.
|
|
4247
4247
|
*/
|
|
4248
4248
|
beginValidateAtTenantScopeAndWait(deploymentName, parameters, options) {
|
|
4249
|
-
return tslib.__awaiter(this,
|
|
4249
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4250
4250
|
const poller = yield this.beginValidateAtTenantScope(deploymentName, parameters, options);
|
|
4251
4251
|
return poller.pollUntilDone();
|
|
4252
4252
|
});
|
|
@@ -4258,17 +4258,17 @@ class DeploymentsImpl {
|
|
|
4258
4258
|
* @param options The options parameters.
|
|
4259
4259
|
*/
|
|
4260
4260
|
beginWhatIfAtTenantScope(deploymentName, parameters, options) {
|
|
4261
|
-
return tslib.__awaiter(this,
|
|
4262
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4261
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4262
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4263
4263
|
return this.client.sendOperationRequest(args, spec);
|
|
4264
4264
|
});
|
|
4265
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4265
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4266
4266
|
var _a;
|
|
4267
4267
|
let currentRawResponse = undefined;
|
|
4268
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4268
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4269
4269
|
const callback = (rawResponse, flatResponse) => {
|
|
4270
4270
|
currentRawResponse = rawResponse;
|
|
4271
|
-
providedCallback === null || providedCallback ===
|
|
4271
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4272
4272
|
};
|
|
4273
4273
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4274
4274
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4287,8 +4287,8 @@ class DeploymentsImpl {
|
|
|
4287
4287
|
spec: whatIfAtTenantScopeOperationSpec
|
|
4288
4288
|
});
|
|
4289
4289
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4290
|
-
restoreFrom: options === null || options ===
|
|
4291
|
-
intervalInMs: options === null || options ===
|
|
4290
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4291
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
4292
4292
|
resourceLocationConfig: "location"
|
|
4293
4293
|
});
|
|
4294
4294
|
yield poller.poll();
|
|
@@ -4302,7 +4302,7 @@ class DeploymentsImpl {
|
|
|
4302
4302
|
* @param options The options parameters.
|
|
4303
4303
|
*/
|
|
4304
4304
|
beginWhatIfAtTenantScopeAndWait(deploymentName, parameters, options) {
|
|
4305
|
-
return tslib.__awaiter(this,
|
|
4305
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4306
4306
|
const poller = yield this.beginWhatIfAtTenantScope(deploymentName, parameters, options);
|
|
4307
4307
|
return poller.pollUntilDone();
|
|
4308
4308
|
});
|
|
@@ -4335,17 +4335,17 @@ class DeploymentsImpl {
|
|
|
4335
4335
|
* @param options The options parameters.
|
|
4336
4336
|
*/
|
|
4337
4337
|
beginDeleteAtManagementGroupScope(groupId, deploymentName, options) {
|
|
4338
|
-
return tslib.__awaiter(this,
|
|
4339
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4338
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4339
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4340
4340
|
return this.client.sendOperationRequest(args, spec);
|
|
4341
4341
|
});
|
|
4342
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4342
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4343
4343
|
var _a;
|
|
4344
4344
|
let currentRawResponse = undefined;
|
|
4345
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4345
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4346
4346
|
const callback = (rawResponse, flatResponse) => {
|
|
4347
4347
|
currentRawResponse = rawResponse;
|
|
4348
|
-
providedCallback === null || providedCallback ===
|
|
4348
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4349
4349
|
};
|
|
4350
4350
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4351
4351
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4364,8 +4364,8 @@ class DeploymentsImpl {
|
|
|
4364
4364
|
spec: deleteAtManagementGroupScopeOperationSpec
|
|
4365
4365
|
});
|
|
4366
4366
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4367
|
-
restoreFrom: options === null || options ===
|
|
4368
|
-
intervalInMs: options === null || options ===
|
|
4367
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4368
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
4369
4369
|
});
|
|
4370
4370
|
yield poller.poll();
|
|
4371
4371
|
return poller;
|
|
@@ -4384,7 +4384,7 @@ class DeploymentsImpl {
|
|
|
4384
4384
|
* @param options The options parameters.
|
|
4385
4385
|
*/
|
|
4386
4386
|
beginDeleteAtManagementGroupScopeAndWait(groupId, deploymentName, options) {
|
|
4387
|
-
return tslib.__awaiter(this,
|
|
4387
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4388
4388
|
const poller = yield this.beginDeleteAtManagementGroupScope(groupId, deploymentName, options);
|
|
4389
4389
|
return poller.pollUntilDone();
|
|
4390
4390
|
});
|
|
@@ -4406,17 +4406,17 @@ class DeploymentsImpl {
|
|
|
4406
4406
|
* @param options The options parameters.
|
|
4407
4407
|
*/
|
|
4408
4408
|
beginCreateOrUpdateAtManagementGroupScope(groupId, deploymentName, parameters, options) {
|
|
4409
|
-
return tslib.__awaiter(this,
|
|
4410
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4409
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4410
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4411
4411
|
return this.client.sendOperationRequest(args, spec);
|
|
4412
4412
|
});
|
|
4413
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4413
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4414
4414
|
var _a;
|
|
4415
4415
|
let currentRawResponse = undefined;
|
|
4416
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4416
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4417
4417
|
const callback = (rawResponse, flatResponse) => {
|
|
4418
4418
|
currentRawResponse = rawResponse;
|
|
4419
|
-
providedCallback === null || providedCallback ===
|
|
4419
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4420
4420
|
};
|
|
4421
4421
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4422
4422
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4435,8 +4435,8 @@ class DeploymentsImpl {
|
|
|
4435
4435
|
spec: createOrUpdateAtManagementGroupScopeOperationSpec
|
|
4436
4436
|
});
|
|
4437
4437
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4438
|
-
restoreFrom: options === null || options ===
|
|
4439
|
-
intervalInMs: options === null || options ===
|
|
4438
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4439
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
4440
4440
|
});
|
|
4441
4441
|
yield poller.poll();
|
|
4442
4442
|
return poller;
|
|
@@ -4450,7 +4450,7 @@ class DeploymentsImpl {
|
|
|
4450
4450
|
* @param options The options parameters.
|
|
4451
4451
|
*/
|
|
4452
4452
|
beginCreateOrUpdateAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
|
|
4453
|
-
return tslib.__awaiter(this,
|
|
4453
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4454
4454
|
const poller = yield this.beginCreateOrUpdateAtManagementGroupScope(groupId, deploymentName, parameters, options);
|
|
4455
4455
|
return poller.pollUntilDone();
|
|
4456
4456
|
});
|
|
@@ -4484,17 +4484,17 @@ class DeploymentsImpl {
|
|
|
4484
4484
|
* @param options The options parameters.
|
|
4485
4485
|
*/
|
|
4486
4486
|
beginValidateAtManagementGroupScope(groupId, deploymentName, parameters, options) {
|
|
4487
|
-
return tslib.__awaiter(this,
|
|
4488
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4487
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4488
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4489
4489
|
return this.client.sendOperationRequest(args, spec);
|
|
4490
4490
|
});
|
|
4491
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4491
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4492
4492
|
var _a;
|
|
4493
4493
|
let currentRawResponse = undefined;
|
|
4494
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4494
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4495
4495
|
const callback = (rawResponse, flatResponse) => {
|
|
4496
4496
|
currentRawResponse = rawResponse;
|
|
4497
|
-
providedCallback === null || providedCallback ===
|
|
4497
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4498
4498
|
};
|
|
4499
4499
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4500
4500
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4513,8 +4513,8 @@ class DeploymentsImpl {
|
|
|
4513
4513
|
spec: validateAtManagementGroupScopeOperationSpec
|
|
4514
4514
|
});
|
|
4515
4515
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4516
|
-
restoreFrom: options === null || options ===
|
|
4517
|
-
intervalInMs: options === null || options ===
|
|
4516
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4517
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
4518
4518
|
});
|
|
4519
4519
|
yield poller.poll();
|
|
4520
4520
|
return poller;
|
|
@@ -4529,7 +4529,7 @@ class DeploymentsImpl {
|
|
|
4529
4529
|
* @param options The options parameters.
|
|
4530
4530
|
*/
|
|
4531
4531
|
beginValidateAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
|
|
4532
|
-
return tslib.__awaiter(this,
|
|
4532
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4533
4533
|
const poller = yield this.beginValidateAtManagementGroupScope(groupId, deploymentName, parameters, options);
|
|
4534
4534
|
return poller.pollUntilDone();
|
|
4535
4535
|
});
|
|
@@ -4543,17 +4543,17 @@ class DeploymentsImpl {
|
|
|
4543
4543
|
* @param options The options parameters.
|
|
4544
4544
|
*/
|
|
4545
4545
|
beginWhatIfAtManagementGroupScope(groupId, deploymentName, parameters, options) {
|
|
4546
|
-
return tslib.__awaiter(this,
|
|
4547
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4546
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4547
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4548
4548
|
return this.client.sendOperationRequest(args, spec);
|
|
4549
4549
|
});
|
|
4550
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4550
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4551
4551
|
var _a;
|
|
4552
4552
|
let currentRawResponse = undefined;
|
|
4553
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4553
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4554
4554
|
const callback = (rawResponse, flatResponse) => {
|
|
4555
4555
|
currentRawResponse = rawResponse;
|
|
4556
|
-
providedCallback === null || providedCallback ===
|
|
4556
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4557
4557
|
};
|
|
4558
4558
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4559
4559
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4572,8 +4572,8 @@ class DeploymentsImpl {
|
|
|
4572
4572
|
spec: whatIfAtManagementGroupScopeOperationSpec
|
|
4573
4573
|
});
|
|
4574
4574
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4575
|
-
restoreFrom: options === null || options ===
|
|
4576
|
-
intervalInMs: options === null || options ===
|
|
4575
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4576
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
4577
4577
|
resourceLocationConfig: "location"
|
|
4578
4578
|
});
|
|
4579
4579
|
yield poller.poll();
|
|
@@ -4589,7 +4589,7 @@ class DeploymentsImpl {
|
|
|
4589
4589
|
* @param options The options parameters.
|
|
4590
4590
|
*/
|
|
4591
4591
|
beginWhatIfAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
|
|
4592
|
-
return tslib.__awaiter(this,
|
|
4592
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4593
4593
|
const poller = yield this.beginWhatIfAtManagementGroupScope(groupId, deploymentName, parameters, options);
|
|
4594
4594
|
return poller.pollUntilDone();
|
|
4595
4595
|
});
|
|
@@ -4623,17 +4623,17 @@ class DeploymentsImpl {
|
|
|
4623
4623
|
* @param options The options parameters.
|
|
4624
4624
|
*/
|
|
4625
4625
|
beginDeleteAtSubscriptionScope(deploymentName, options) {
|
|
4626
|
-
return tslib.__awaiter(this,
|
|
4627
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4626
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4627
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4628
4628
|
return this.client.sendOperationRequest(args, spec);
|
|
4629
4629
|
});
|
|
4630
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4630
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4631
4631
|
var _a;
|
|
4632
4632
|
let currentRawResponse = undefined;
|
|
4633
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4633
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4634
4634
|
const callback = (rawResponse, flatResponse) => {
|
|
4635
4635
|
currentRawResponse = rawResponse;
|
|
4636
|
-
providedCallback === null || providedCallback ===
|
|
4636
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4637
4637
|
};
|
|
4638
4638
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4639
4639
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4652,8 +4652,8 @@ class DeploymentsImpl {
|
|
|
4652
4652
|
spec: deleteAtSubscriptionScopeOperationSpec
|
|
4653
4653
|
});
|
|
4654
4654
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4655
|
-
restoreFrom: options === null || options ===
|
|
4656
|
-
intervalInMs: options === null || options ===
|
|
4655
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4656
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
4657
4657
|
});
|
|
4658
4658
|
yield poller.poll();
|
|
4659
4659
|
return poller;
|
|
@@ -4671,7 +4671,7 @@ class DeploymentsImpl {
|
|
|
4671
4671
|
* @param options The options parameters.
|
|
4672
4672
|
*/
|
|
4673
4673
|
beginDeleteAtSubscriptionScopeAndWait(deploymentName, options) {
|
|
4674
|
-
return tslib.__awaiter(this,
|
|
4674
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4675
4675
|
const poller = yield this.beginDeleteAtSubscriptionScope(deploymentName, options);
|
|
4676
4676
|
return poller.pollUntilDone();
|
|
4677
4677
|
});
|
|
@@ -4691,17 +4691,17 @@ class DeploymentsImpl {
|
|
|
4691
4691
|
* @param options The options parameters.
|
|
4692
4692
|
*/
|
|
4693
4693
|
beginCreateOrUpdateAtSubscriptionScope(deploymentName, parameters, options) {
|
|
4694
|
-
return tslib.__awaiter(this,
|
|
4695
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4694
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4695
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4696
4696
|
return this.client.sendOperationRequest(args, spec);
|
|
4697
4697
|
});
|
|
4698
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4698
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4699
4699
|
var _a;
|
|
4700
4700
|
let currentRawResponse = undefined;
|
|
4701
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4701
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4702
4702
|
const callback = (rawResponse, flatResponse) => {
|
|
4703
4703
|
currentRawResponse = rawResponse;
|
|
4704
|
-
providedCallback === null || providedCallback ===
|
|
4704
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4705
4705
|
};
|
|
4706
4706
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4707
4707
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4720,8 +4720,8 @@ class DeploymentsImpl {
|
|
|
4720
4720
|
spec: createOrUpdateAtSubscriptionScopeOperationSpec
|
|
4721
4721
|
});
|
|
4722
4722
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4723
|
-
restoreFrom: options === null || options ===
|
|
4724
|
-
intervalInMs: options === null || options ===
|
|
4723
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4724
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
4725
4725
|
});
|
|
4726
4726
|
yield poller.poll();
|
|
4727
4727
|
return poller;
|
|
@@ -4734,7 +4734,7 @@ class DeploymentsImpl {
|
|
|
4734
4734
|
* @param options The options parameters.
|
|
4735
4735
|
*/
|
|
4736
4736
|
beginCreateOrUpdateAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
|
|
4737
|
-
return tslib.__awaiter(this,
|
|
4737
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4738
4738
|
const poller = yield this.beginCreateOrUpdateAtSubscriptionScope(deploymentName, parameters, options);
|
|
4739
4739
|
return poller.pollUntilDone();
|
|
4740
4740
|
});
|
|
@@ -4765,17 +4765,17 @@ class DeploymentsImpl {
|
|
|
4765
4765
|
* @param options The options parameters.
|
|
4766
4766
|
*/
|
|
4767
4767
|
beginValidateAtSubscriptionScope(deploymentName, parameters, options) {
|
|
4768
|
-
return tslib.__awaiter(this,
|
|
4769
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4768
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4769
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4770
4770
|
return this.client.sendOperationRequest(args, spec);
|
|
4771
4771
|
});
|
|
4772
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4772
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4773
4773
|
var _a;
|
|
4774
4774
|
let currentRawResponse = undefined;
|
|
4775
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4775
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4776
4776
|
const callback = (rawResponse, flatResponse) => {
|
|
4777
4777
|
currentRawResponse = rawResponse;
|
|
4778
|
-
providedCallback === null || providedCallback ===
|
|
4778
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4779
4779
|
};
|
|
4780
4780
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4781
4781
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4794,8 +4794,8 @@ class DeploymentsImpl {
|
|
|
4794
4794
|
spec: validateAtSubscriptionScopeOperationSpec
|
|
4795
4795
|
});
|
|
4796
4796
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4797
|
-
restoreFrom: options === null || options ===
|
|
4798
|
-
intervalInMs: options === null || options ===
|
|
4797
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4798
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
4799
4799
|
});
|
|
4800
4800
|
yield poller.poll();
|
|
4801
4801
|
return poller;
|
|
@@ -4809,7 +4809,7 @@ class DeploymentsImpl {
|
|
|
4809
4809
|
* @param options The options parameters.
|
|
4810
4810
|
*/
|
|
4811
4811
|
beginValidateAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
|
|
4812
|
-
return tslib.__awaiter(this,
|
|
4812
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4813
4813
|
const poller = yield this.beginValidateAtSubscriptionScope(deploymentName, parameters, options);
|
|
4814
4814
|
return poller.pollUntilDone();
|
|
4815
4815
|
});
|
|
@@ -4821,17 +4821,17 @@ class DeploymentsImpl {
|
|
|
4821
4821
|
* @param options The options parameters.
|
|
4822
4822
|
*/
|
|
4823
4823
|
beginWhatIfAtSubscriptionScope(deploymentName, parameters, options) {
|
|
4824
|
-
return tslib.__awaiter(this,
|
|
4825
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4824
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4825
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4826
4826
|
return this.client.sendOperationRequest(args, spec);
|
|
4827
4827
|
});
|
|
4828
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4828
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4829
4829
|
var _a;
|
|
4830
4830
|
let currentRawResponse = undefined;
|
|
4831
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4831
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4832
4832
|
const callback = (rawResponse, flatResponse) => {
|
|
4833
4833
|
currentRawResponse = rawResponse;
|
|
4834
|
-
providedCallback === null || providedCallback ===
|
|
4834
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4835
4835
|
};
|
|
4836
4836
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4837
4837
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4850,8 +4850,8 @@ class DeploymentsImpl {
|
|
|
4850
4850
|
spec: whatIfAtSubscriptionScopeOperationSpec
|
|
4851
4851
|
});
|
|
4852
4852
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4853
|
-
restoreFrom: options === null || options ===
|
|
4854
|
-
intervalInMs: options === null || options ===
|
|
4853
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4854
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
4855
4855
|
resourceLocationConfig: "location"
|
|
4856
4856
|
});
|
|
4857
4857
|
yield poller.poll();
|
|
@@ -4865,7 +4865,7 @@ class DeploymentsImpl {
|
|
|
4865
4865
|
* @param options The options parameters.
|
|
4866
4866
|
*/
|
|
4867
4867
|
beginWhatIfAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
|
|
4868
|
-
return tslib.__awaiter(this,
|
|
4868
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4869
4869
|
const poller = yield this.beginWhatIfAtSubscriptionScope(deploymentName, parameters, options);
|
|
4870
4870
|
return poller.pollUntilDone();
|
|
4871
4871
|
});
|
|
@@ -4900,17 +4900,17 @@ class DeploymentsImpl {
|
|
|
4900
4900
|
* @param options The options parameters.
|
|
4901
4901
|
*/
|
|
4902
4902
|
beginDelete(resourceGroupName, deploymentName, options) {
|
|
4903
|
-
return tslib.__awaiter(this,
|
|
4904
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4903
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4904
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4905
4905
|
return this.client.sendOperationRequest(args, spec);
|
|
4906
4906
|
});
|
|
4907
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4907
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4908
4908
|
var _a;
|
|
4909
4909
|
let currentRawResponse = undefined;
|
|
4910
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4910
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4911
4911
|
const callback = (rawResponse, flatResponse) => {
|
|
4912
4912
|
currentRawResponse = rawResponse;
|
|
4913
|
-
providedCallback === null || providedCallback ===
|
|
4913
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4914
4914
|
};
|
|
4915
4915
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4916
4916
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4929,8 +4929,8 @@ class DeploymentsImpl {
|
|
|
4929
4929
|
spec: deleteOperationSpec$3
|
|
4930
4930
|
});
|
|
4931
4931
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4932
|
-
restoreFrom: options === null || options ===
|
|
4933
|
-
intervalInMs: options === null || options ===
|
|
4932
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4933
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
4934
4934
|
});
|
|
4935
4935
|
yield poller.poll();
|
|
4936
4936
|
return poller;
|
|
@@ -4951,7 +4951,7 @@ class DeploymentsImpl {
|
|
|
4951
4951
|
* @param options The options parameters.
|
|
4952
4952
|
*/
|
|
4953
4953
|
beginDeleteAndWait(resourceGroupName, deploymentName, options) {
|
|
4954
|
-
return tslib.__awaiter(this,
|
|
4954
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4955
4955
|
const poller = yield this.beginDelete(resourceGroupName, deploymentName, options);
|
|
4956
4956
|
return poller.pollUntilDone();
|
|
4957
4957
|
});
|
|
@@ -4975,17 +4975,17 @@ class DeploymentsImpl {
|
|
|
4975
4975
|
* @param options The options parameters.
|
|
4976
4976
|
*/
|
|
4977
4977
|
beginCreateOrUpdate(resourceGroupName, deploymentName, parameters, options) {
|
|
4978
|
-
return tslib.__awaiter(this,
|
|
4979
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4978
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4979
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4980
4980
|
return this.client.sendOperationRequest(args, spec);
|
|
4981
4981
|
});
|
|
4982
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4982
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4983
4983
|
var _a;
|
|
4984
4984
|
let currentRawResponse = undefined;
|
|
4985
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4985
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4986
4986
|
const callback = (rawResponse, flatResponse) => {
|
|
4987
4987
|
currentRawResponse = rawResponse;
|
|
4988
|
-
providedCallback === null || providedCallback ===
|
|
4988
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4989
4989
|
};
|
|
4990
4990
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4991
4991
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5004,8 +5004,8 @@ class DeploymentsImpl {
|
|
|
5004
5004
|
spec: createOrUpdateOperationSpec$3
|
|
5005
5005
|
});
|
|
5006
5006
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5007
|
-
restoreFrom: options === null || options ===
|
|
5008
|
-
intervalInMs: options === null || options ===
|
|
5007
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5008
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
5009
5009
|
});
|
|
5010
5010
|
yield poller.poll();
|
|
5011
5011
|
return poller;
|
|
@@ -5020,7 +5020,7 @@ class DeploymentsImpl {
|
|
|
5020
5020
|
* @param options The options parameters.
|
|
5021
5021
|
*/
|
|
5022
5022
|
beginCreateOrUpdateAndWait(resourceGroupName, deploymentName, parameters, options) {
|
|
5023
|
-
return tslib.__awaiter(this,
|
|
5023
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5024
5024
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, deploymentName, parameters, options);
|
|
5025
5025
|
return poller.pollUntilDone();
|
|
5026
5026
|
});
|
|
@@ -5055,17 +5055,17 @@ class DeploymentsImpl {
|
|
|
5055
5055
|
* @param options The options parameters.
|
|
5056
5056
|
*/
|
|
5057
5057
|
beginValidate(resourceGroupName, deploymentName, parameters, options) {
|
|
5058
|
-
return tslib.__awaiter(this,
|
|
5059
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5058
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5059
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5060
5060
|
return this.client.sendOperationRequest(args, spec);
|
|
5061
5061
|
});
|
|
5062
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5062
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5063
5063
|
var _a;
|
|
5064
5064
|
let currentRawResponse = undefined;
|
|
5065
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5065
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5066
5066
|
const callback = (rawResponse, flatResponse) => {
|
|
5067
5067
|
currentRawResponse = rawResponse;
|
|
5068
|
-
providedCallback === null || providedCallback ===
|
|
5068
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5069
5069
|
};
|
|
5070
5070
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5071
5071
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5084,8 +5084,8 @@ class DeploymentsImpl {
|
|
|
5084
5084
|
spec: validateOperationSpec
|
|
5085
5085
|
});
|
|
5086
5086
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5087
|
-
restoreFrom: options === null || options ===
|
|
5088
|
-
intervalInMs: options === null || options ===
|
|
5087
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5088
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
5089
5089
|
});
|
|
5090
5090
|
yield poller.poll();
|
|
5091
5091
|
return poller;
|
|
@@ -5101,7 +5101,7 @@ class DeploymentsImpl {
|
|
|
5101
5101
|
* @param options The options parameters.
|
|
5102
5102
|
*/
|
|
5103
5103
|
beginValidateAndWait(resourceGroupName, deploymentName, parameters, options) {
|
|
5104
|
-
return tslib.__awaiter(this,
|
|
5104
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5105
5105
|
const poller = yield this.beginValidate(resourceGroupName, deploymentName, parameters, options);
|
|
5106
5106
|
return poller.pollUntilDone();
|
|
5107
5107
|
});
|
|
@@ -5115,17 +5115,17 @@ class DeploymentsImpl {
|
|
|
5115
5115
|
* @param options The options parameters.
|
|
5116
5116
|
*/
|
|
5117
5117
|
beginWhatIf(resourceGroupName, deploymentName, parameters, options) {
|
|
5118
|
-
return tslib.__awaiter(this,
|
|
5119
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5118
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5119
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5120
5120
|
return this.client.sendOperationRequest(args, spec);
|
|
5121
5121
|
});
|
|
5122
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5122
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5123
5123
|
var _a;
|
|
5124
5124
|
let currentRawResponse = undefined;
|
|
5125
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5125
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5126
5126
|
const callback = (rawResponse, flatResponse) => {
|
|
5127
5127
|
currentRawResponse = rawResponse;
|
|
5128
|
-
providedCallback === null || providedCallback ===
|
|
5128
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5129
5129
|
};
|
|
5130
5130
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5131
5131
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5144,8 +5144,8 @@ class DeploymentsImpl {
|
|
|
5144
5144
|
spec: whatIfOperationSpec
|
|
5145
5145
|
});
|
|
5146
5146
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5147
|
-
restoreFrom: options === null || options ===
|
|
5148
|
-
intervalInMs: options === null || options ===
|
|
5147
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5148
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5149
5149
|
resourceLocationConfig: "location"
|
|
5150
5150
|
});
|
|
5151
5151
|
yield poller.poll();
|
|
@@ -5161,7 +5161,7 @@ class DeploymentsImpl {
|
|
|
5161
5161
|
* @param options The options parameters.
|
|
5162
5162
|
*/
|
|
5163
5163
|
beginWhatIfAndWait(resourceGroupName, deploymentName, parameters, options) {
|
|
5164
|
-
return tslib.__awaiter(this,
|
|
5164
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5165
5165
|
const poller = yield this.beginWhatIf(resourceGroupName, deploymentName, parameters, options);
|
|
5166
5166
|
return poller.pollUntilDone();
|
|
5167
5167
|
});
|
|
@@ -6359,7 +6359,7 @@ class ProvidersImpl {
|
|
|
6359
6359
|
return this;
|
|
6360
6360
|
},
|
|
6361
6361
|
byPage: (settings) => {
|
|
6362
|
-
if (settings === null || settings ===
|
|
6362
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
6363
6363
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6364
6364
|
}
|
|
6365
6365
|
return this.listPagingPage(options, settings);
|
|
@@ -6369,7 +6369,7 @@ class ProvidersImpl {
|
|
|
6369
6369
|
listPagingPage(options, settings) {
|
|
6370
6370
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
6371
6371
|
let result;
|
|
6372
|
-
let continuationToken = settings === null || settings ===
|
|
6372
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
6373
6373
|
if (!continuationToken) {
|
|
6374
6374
|
result = yield tslib.__await(this._list(options));
|
|
6375
6375
|
let page = result.value || [];
|
|
@@ -6420,7 +6420,7 @@ class ProvidersImpl {
|
|
|
6420
6420
|
return this;
|
|
6421
6421
|
},
|
|
6422
6422
|
byPage: (settings) => {
|
|
6423
|
-
if (settings === null || settings ===
|
|
6423
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
6424
6424
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6425
6425
|
}
|
|
6426
6426
|
return this.listAtTenantScopePagingPage(options, settings);
|
|
@@ -6430,7 +6430,7 @@ class ProvidersImpl {
|
|
|
6430
6430
|
listAtTenantScopePagingPage(options, settings) {
|
|
6431
6431
|
return tslib.__asyncGenerator(this, arguments, function* listAtTenantScopePagingPage_1() {
|
|
6432
6432
|
let result;
|
|
6433
|
-
let continuationToken = settings === null || settings ===
|
|
6433
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
6434
6434
|
if (!continuationToken) {
|
|
6435
6435
|
result = yield tslib.__await(this._listAtTenantScope(options));
|
|
6436
6436
|
let page = result.value || [];
|
|
@@ -6812,7 +6812,7 @@ class ResourcesImpl {
|
|
|
6812
6812
|
return this;
|
|
6813
6813
|
},
|
|
6814
6814
|
byPage: (settings) => {
|
|
6815
|
-
if (settings === null || settings ===
|
|
6815
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
6816
6816
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6817
6817
|
}
|
|
6818
6818
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -6822,7 +6822,7 @@ class ResourcesImpl {
|
|
|
6822
6822
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
6823
6823
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
6824
6824
|
let result;
|
|
6825
|
-
let continuationToken = settings === null || settings ===
|
|
6825
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
6826
6826
|
if (!continuationToken) {
|
|
6827
6827
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
6828
6828
|
let page = result.value || [];
|
|
@@ -6873,7 +6873,7 @@ class ResourcesImpl {
|
|
|
6873
6873
|
return this;
|
|
6874
6874
|
},
|
|
6875
6875
|
byPage: (settings) => {
|
|
6876
|
-
if (settings === null || settings ===
|
|
6876
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
6877
6877
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6878
6878
|
}
|
|
6879
6879
|
return this.listPagingPage(options, settings);
|
|
@@ -6883,7 +6883,7 @@ class ResourcesImpl {
|
|
|
6883
6883
|
listPagingPage(options, settings) {
|
|
6884
6884
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
6885
6885
|
let result;
|
|
6886
|
-
let continuationToken = settings === null || settings ===
|
|
6886
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
6887
6887
|
if (!continuationToken) {
|
|
6888
6888
|
result = yield tslib.__await(this._list(options));
|
|
6889
6889
|
let page = result.value || [];
|
|
@@ -6939,17 +6939,17 @@ class ResourcesImpl {
|
|
|
6939
6939
|
* @param options The options parameters.
|
|
6940
6940
|
*/
|
|
6941
6941
|
beginMoveResources(sourceResourceGroupName, parameters, options) {
|
|
6942
|
-
return tslib.__awaiter(this,
|
|
6943
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6942
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6943
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6944
6944
|
return this.client.sendOperationRequest(args, spec);
|
|
6945
6945
|
});
|
|
6946
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
6946
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6947
6947
|
var _a;
|
|
6948
6948
|
let currentRawResponse = undefined;
|
|
6949
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6949
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
6950
6950
|
const callback = (rawResponse, flatResponse) => {
|
|
6951
6951
|
currentRawResponse = rawResponse;
|
|
6952
|
-
providedCallback === null || providedCallback ===
|
|
6952
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
6953
6953
|
};
|
|
6954
6954
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6955
6955
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6968,8 +6968,8 @@ class ResourcesImpl {
|
|
|
6968
6968
|
spec: moveResourcesOperationSpec
|
|
6969
6969
|
});
|
|
6970
6970
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6971
|
-
restoreFrom: options === null || options ===
|
|
6972
|
-
intervalInMs: options === null || options ===
|
|
6971
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
6972
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
6973
6973
|
});
|
|
6974
6974
|
yield poller.poll();
|
|
6975
6975
|
return poller;
|
|
@@ -6986,7 +6986,7 @@ class ResourcesImpl {
|
|
|
6986
6986
|
* @param options The options parameters.
|
|
6987
6987
|
*/
|
|
6988
6988
|
beginMoveResourcesAndWait(sourceResourceGroupName, parameters, options) {
|
|
6989
|
-
return tslib.__awaiter(this,
|
|
6989
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
6990
6990
|
const poller = yield this.beginMoveResources(sourceResourceGroupName, parameters, options);
|
|
6991
6991
|
return poller.pollUntilDone();
|
|
6992
6992
|
});
|
|
@@ -7004,17 +7004,17 @@ class ResourcesImpl {
|
|
|
7004
7004
|
* @param options The options parameters.
|
|
7005
7005
|
*/
|
|
7006
7006
|
beginValidateMoveResources(sourceResourceGroupName, parameters, options) {
|
|
7007
|
-
return tslib.__awaiter(this,
|
|
7008
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7007
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7008
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7009
7009
|
return this.client.sendOperationRequest(args, spec);
|
|
7010
7010
|
});
|
|
7011
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7011
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7012
7012
|
var _a;
|
|
7013
7013
|
let currentRawResponse = undefined;
|
|
7014
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7014
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7015
7015
|
const callback = (rawResponse, flatResponse) => {
|
|
7016
7016
|
currentRawResponse = rawResponse;
|
|
7017
|
-
providedCallback === null || providedCallback ===
|
|
7017
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7018
7018
|
};
|
|
7019
7019
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7020
7020
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7033,8 +7033,8 @@ class ResourcesImpl {
|
|
|
7033
7033
|
spec: validateMoveResourcesOperationSpec
|
|
7034
7034
|
});
|
|
7035
7035
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7036
|
-
restoreFrom: options === null || options ===
|
|
7037
|
-
intervalInMs: options === null || options ===
|
|
7036
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7037
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
7038
7038
|
});
|
|
7039
7039
|
yield poller.poll();
|
|
7040
7040
|
return poller;
|
|
@@ -7053,7 +7053,7 @@ class ResourcesImpl {
|
|
|
7053
7053
|
* @param options The options parameters.
|
|
7054
7054
|
*/
|
|
7055
7055
|
beginValidateMoveResourcesAndWait(sourceResourceGroupName, parameters, options) {
|
|
7056
|
-
return tslib.__awaiter(this,
|
|
7056
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7057
7057
|
const poller = yield this.beginValidateMoveResources(sourceResourceGroupName, parameters, options);
|
|
7058
7058
|
return poller.pollUntilDone();
|
|
7059
7059
|
});
|
|
@@ -7099,17 +7099,17 @@ class ResourcesImpl {
|
|
|
7099
7099
|
* @param options The options parameters.
|
|
7100
7100
|
*/
|
|
7101
7101
|
beginDelete(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, options) {
|
|
7102
|
-
return tslib.__awaiter(this,
|
|
7103
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7102
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7103
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7104
7104
|
return this.client.sendOperationRequest(args, spec);
|
|
7105
7105
|
});
|
|
7106
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7106
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7107
7107
|
var _a;
|
|
7108
7108
|
let currentRawResponse = undefined;
|
|
7109
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7109
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7110
7110
|
const callback = (rawResponse, flatResponse) => {
|
|
7111
7111
|
currentRawResponse = rawResponse;
|
|
7112
|
-
providedCallback === null || providedCallback ===
|
|
7112
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7113
7113
|
};
|
|
7114
7114
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7115
7115
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7136,8 +7136,8 @@ class ResourcesImpl {
|
|
|
7136
7136
|
spec: deleteOperationSpec$2
|
|
7137
7137
|
});
|
|
7138
7138
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7139
|
-
restoreFrom: options === null || options ===
|
|
7140
|
-
intervalInMs: options === null || options ===
|
|
7139
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7140
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
7141
7141
|
});
|
|
7142
7142
|
yield poller.poll();
|
|
7143
7143
|
return poller;
|
|
@@ -7155,7 +7155,7 @@ class ResourcesImpl {
|
|
|
7155
7155
|
* @param options The options parameters.
|
|
7156
7156
|
*/
|
|
7157
7157
|
beginDeleteAndWait(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, options) {
|
|
7158
|
-
return tslib.__awaiter(this,
|
|
7158
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7159
7159
|
const poller = yield this.beginDelete(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, options);
|
|
7160
7160
|
return poller.pollUntilDone();
|
|
7161
7161
|
});
|
|
@@ -7173,17 +7173,17 @@ class ResourcesImpl {
|
|
|
7173
7173
|
* @param options The options parameters.
|
|
7174
7174
|
*/
|
|
7175
7175
|
beginCreateOrUpdate(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, parameters, options) {
|
|
7176
|
-
return tslib.__awaiter(this,
|
|
7177
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7176
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7177
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7178
7178
|
return this.client.sendOperationRequest(args, spec);
|
|
7179
7179
|
});
|
|
7180
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7180
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7181
7181
|
var _a;
|
|
7182
7182
|
let currentRawResponse = undefined;
|
|
7183
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7183
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7184
7184
|
const callback = (rawResponse, flatResponse) => {
|
|
7185
7185
|
currentRawResponse = rawResponse;
|
|
7186
|
-
providedCallback === null || providedCallback ===
|
|
7186
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7187
7187
|
};
|
|
7188
7188
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7189
7189
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7211,8 +7211,8 @@ class ResourcesImpl {
|
|
|
7211
7211
|
spec: createOrUpdateOperationSpec$2
|
|
7212
7212
|
});
|
|
7213
7213
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7214
|
-
restoreFrom: options === null || options ===
|
|
7215
|
-
intervalInMs: options === null || options ===
|
|
7214
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7215
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
7216
7216
|
});
|
|
7217
7217
|
yield poller.poll();
|
|
7218
7218
|
return poller;
|
|
@@ -7231,7 +7231,7 @@ class ResourcesImpl {
|
|
|
7231
7231
|
* @param options The options parameters.
|
|
7232
7232
|
*/
|
|
7233
7233
|
beginCreateOrUpdateAndWait(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, parameters, options) {
|
|
7234
|
-
return tslib.__awaiter(this,
|
|
7234
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7235
7235
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, parameters, options);
|
|
7236
7236
|
return poller.pollUntilDone();
|
|
7237
7237
|
});
|
|
@@ -7249,17 +7249,17 @@ class ResourcesImpl {
|
|
|
7249
7249
|
* @param options The options parameters.
|
|
7250
7250
|
*/
|
|
7251
7251
|
beginUpdate(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, parameters, options) {
|
|
7252
|
-
return tslib.__awaiter(this,
|
|
7253
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7252
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7253
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7254
7254
|
return this.client.sendOperationRequest(args, spec);
|
|
7255
7255
|
});
|
|
7256
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7256
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7257
7257
|
var _a;
|
|
7258
7258
|
let currentRawResponse = undefined;
|
|
7259
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7259
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7260
7260
|
const callback = (rawResponse, flatResponse) => {
|
|
7261
7261
|
currentRawResponse = rawResponse;
|
|
7262
|
-
providedCallback === null || providedCallback ===
|
|
7262
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7263
7263
|
};
|
|
7264
7264
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7265
7265
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7287,8 +7287,8 @@ class ResourcesImpl {
|
|
|
7287
7287
|
spec: updateOperationSpec$1
|
|
7288
7288
|
});
|
|
7289
7289
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7290
|
-
restoreFrom: options === null || options ===
|
|
7291
|
-
intervalInMs: options === null || options ===
|
|
7290
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7291
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
7292
7292
|
});
|
|
7293
7293
|
yield poller.poll();
|
|
7294
7294
|
return poller;
|
|
@@ -7307,7 +7307,7 @@ class ResourcesImpl {
|
|
|
7307
7307
|
* @param options The options parameters.
|
|
7308
7308
|
*/
|
|
7309
7309
|
beginUpdateAndWait(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, parameters, options) {
|
|
7310
|
-
return tslib.__awaiter(this,
|
|
7310
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7311
7311
|
const poller = yield this.beginUpdate(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, parameters, options);
|
|
7312
7312
|
return poller.pollUntilDone();
|
|
7313
7313
|
});
|
|
@@ -7354,17 +7354,17 @@ class ResourcesImpl {
|
|
|
7354
7354
|
* @param options The options parameters.
|
|
7355
7355
|
*/
|
|
7356
7356
|
beginDeleteById(resourceId, apiVersion, options) {
|
|
7357
|
-
return tslib.__awaiter(this,
|
|
7358
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7357
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7358
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7359
7359
|
return this.client.sendOperationRequest(args, spec);
|
|
7360
7360
|
});
|
|
7361
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7361
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7362
7362
|
var _a;
|
|
7363
7363
|
let currentRawResponse = undefined;
|
|
7364
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7364
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7365
7365
|
const callback = (rawResponse, flatResponse) => {
|
|
7366
7366
|
currentRawResponse = rawResponse;
|
|
7367
|
-
providedCallback === null || providedCallback ===
|
|
7367
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7368
7368
|
};
|
|
7369
7369
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7370
7370
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7383,8 +7383,8 @@ class ResourcesImpl {
|
|
|
7383
7383
|
spec: deleteByIdOperationSpec
|
|
7384
7384
|
});
|
|
7385
7385
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7386
|
-
restoreFrom: options === null || options ===
|
|
7387
|
-
intervalInMs: options === null || options ===
|
|
7386
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7387
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
7388
7388
|
});
|
|
7389
7389
|
yield poller.poll();
|
|
7390
7390
|
return poller;
|
|
@@ -7399,7 +7399,7 @@ class ResourcesImpl {
|
|
|
7399
7399
|
* @param options The options parameters.
|
|
7400
7400
|
*/
|
|
7401
7401
|
beginDeleteByIdAndWait(resourceId, apiVersion, options) {
|
|
7402
|
-
return tslib.__awaiter(this,
|
|
7402
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7403
7403
|
const poller = yield this.beginDeleteById(resourceId, apiVersion, options);
|
|
7404
7404
|
return poller.pollUntilDone();
|
|
7405
7405
|
});
|
|
@@ -7414,17 +7414,17 @@ class ResourcesImpl {
|
|
|
7414
7414
|
* @param options The options parameters.
|
|
7415
7415
|
*/
|
|
7416
7416
|
beginCreateOrUpdateById(resourceId, apiVersion, parameters, options) {
|
|
7417
|
-
return tslib.__awaiter(this,
|
|
7418
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7417
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7418
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7419
7419
|
return this.client.sendOperationRequest(args, spec);
|
|
7420
7420
|
});
|
|
7421
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7421
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7422
7422
|
var _a;
|
|
7423
7423
|
let currentRawResponse = undefined;
|
|
7424
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7424
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7425
7425
|
const callback = (rawResponse, flatResponse) => {
|
|
7426
7426
|
currentRawResponse = rawResponse;
|
|
7427
|
-
providedCallback === null || providedCallback ===
|
|
7427
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7428
7428
|
};
|
|
7429
7429
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7430
7430
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7443,8 +7443,8 @@ class ResourcesImpl {
|
|
|
7443
7443
|
spec: createOrUpdateByIdOperationSpec
|
|
7444
7444
|
});
|
|
7445
7445
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7446
|
-
restoreFrom: options === null || options ===
|
|
7447
|
-
intervalInMs: options === null || options ===
|
|
7446
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7447
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
7448
7448
|
});
|
|
7449
7449
|
yield poller.poll();
|
|
7450
7450
|
return poller;
|
|
@@ -7460,7 +7460,7 @@ class ResourcesImpl {
|
|
|
7460
7460
|
* @param options The options parameters.
|
|
7461
7461
|
*/
|
|
7462
7462
|
beginCreateOrUpdateByIdAndWait(resourceId, apiVersion, parameters, options) {
|
|
7463
|
-
return tslib.__awaiter(this,
|
|
7463
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7464
7464
|
const poller = yield this.beginCreateOrUpdateById(resourceId, apiVersion, parameters, options);
|
|
7465
7465
|
return poller.pollUntilDone();
|
|
7466
7466
|
});
|
|
@@ -7475,17 +7475,17 @@ class ResourcesImpl {
|
|
|
7475
7475
|
* @param options The options parameters.
|
|
7476
7476
|
*/
|
|
7477
7477
|
beginUpdateById(resourceId, apiVersion, parameters, options) {
|
|
7478
|
-
return tslib.__awaiter(this,
|
|
7479
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7478
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7479
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7480
7480
|
return this.client.sendOperationRequest(args, spec);
|
|
7481
7481
|
});
|
|
7482
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
7482
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7483
7483
|
var _a;
|
|
7484
7484
|
let currentRawResponse = undefined;
|
|
7485
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7485
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
7486
7486
|
const callback = (rawResponse, flatResponse) => {
|
|
7487
7487
|
currentRawResponse = rawResponse;
|
|
7488
|
-
providedCallback === null || providedCallback ===
|
|
7488
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
7489
7489
|
};
|
|
7490
7490
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7491
7491
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7504,8 +7504,8 @@ class ResourcesImpl {
|
|
|
7504
7504
|
spec: updateByIdOperationSpec
|
|
7505
7505
|
});
|
|
7506
7506
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7507
|
-
restoreFrom: options === null || options ===
|
|
7508
|
-
intervalInMs: options === null || options ===
|
|
7507
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
7508
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
7509
7509
|
});
|
|
7510
7510
|
yield poller.poll();
|
|
7511
7511
|
return poller;
|
|
@@ -7521,7 +7521,7 @@ class ResourcesImpl {
|
|
|
7521
7521
|
* @param options The options parameters.
|
|
7522
7522
|
*/
|
|
7523
7523
|
beginUpdateByIdAndWait(resourceId, apiVersion, parameters, options) {
|
|
7524
|
-
return tslib.__awaiter(this,
|
|
7524
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
7525
7525
|
const poller = yield this.beginUpdateById(resourceId, apiVersion, parameters, options);
|
|
7526
7526
|
return poller.pollUntilDone();
|
|
7527
7527
|
});
|
|
@@ -7964,7 +7964,7 @@ class ResourceGroupsImpl {
|
|
|
7964
7964
|
return this;
|
|
7965
7965
|
},
|
|
7966
7966
|
byPage: (settings) => {
|
|
7967
|
-
if (settings === null || settings ===
|
|
7967
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
7968
7968
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7969
7969
|
}
|
|
7970
7970
|
return this.listPagingPage(options, settings);
|
|
@@ -7974,7 +7974,7 @@ class ResourceGroupsImpl {
|
|
|
7974
7974
|
listPagingPage(options, settings) {
|
|
7975
7975
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
7976
7976
|
let result;
|
|
7977
|
-
let continuationToken = settings === null || settings ===
|
|
7977
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
7978
7978
|
if (!continuationToken) {
|
|
7979
7979
|
result = yield tslib.__await(this._list(options));
|
|
7980
7980
|
let page = result.value || [];
|
|
@@ -8037,17 +8037,17 @@ class ResourceGroupsImpl {
|
|
|
8037
8037
|
* @param options The options parameters.
|
|
8038
8038
|
*/
|
|
8039
8039
|
beginDelete(resourceGroupName, options) {
|
|
8040
|
-
return tslib.__awaiter(this,
|
|
8041
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8040
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8041
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8042
8042
|
return this.client.sendOperationRequest(args, spec);
|
|
8043
8043
|
});
|
|
8044
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8044
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8045
8045
|
var _a;
|
|
8046
8046
|
let currentRawResponse = undefined;
|
|
8047
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8047
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
8048
8048
|
const callback = (rawResponse, flatResponse) => {
|
|
8049
8049
|
currentRawResponse = rawResponse;
|
|
8050
|
-
providedCallback === null || providedCallback ===
|
|
8050
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
8051
8051
|
};
|
|
8052
8052
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8053
8053
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8066,8 +8066,8 @@ class ResourceGroupsImpl {
|
|
|
8066
8066
|
spec: deleteOperationSpec$1
|
|
8067
8067
|
});
|
|
8068
8068
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8069
|
-
restoreFrom: options === null || options ===
|
|
8070
|
-
intervalInMs: options === null || options ===
|
|
8069
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
8070
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
8071
8071
|
});
|
|
8072
8072
|
yield poller.poll();
|
|
8073
8073
|
return poller;
|
|
@@ -8080,7 +8080,7 @@ class ResourceGroupsImpl {
|
|
|
8080
8080
|
* @param options The options parameters.
|
|
8081
8081
|
*/
|
|
8082
8082
|
beginDeleteAndWait(resourceGroupName, options) {
|
|
8083
|
-
return tslib.__awaiter(this,
|
|
8083
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8084
8084
|
const poller = yield this.beginDelete(resourceGroupName, options);
|
|
8085
8085
|
return poller.pollUntilDone();
|
|
8086
8086
|
});
|
|
@@ -8111,17 +8111,17 @@ class ResourceGroupsImpl {
|
|
|
8111
8111
|
* @param options The options parameters.
|
|
8112
8112
|
*/
|
|
8113
8113
|
beginExportTemplate(resourceGroupName, parameters, options) {
|
|
8114
|
-
return tslib.__awaiter(this,
|
|
8115
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
8114
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8115
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8116
8116
|
return this.client.sendOperationRequest(args, spec);
|
|
8117
8117
|
});
|
|
8118
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
8118
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8119
8119
|
var _a;
|
|
8120
8120
|
let currentRawResponse = undefined;
|
|
8121
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
8121
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
8122
8122
|
const callback = (rawResponse, flatResponse) => {
|
|
8123
8123
|
currentRawResponse = rawResponse;
|
|
8124
|
-
providedCallback === null || providedCallback ===
|
|
8124
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
8125
8125
|
};
|
|
8126
8126
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
8127
8127
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -8140,8 +8140,8 @@ class ResourceGroupsImpl {
|
|
|
8140
8140
|
spec: exportTemplateOperationSpec
|
|
8141
8141
|
});
|
|
8142
8142
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8143
|
-
restoreFrom: options === null || options ===
|
|
8144
|
-
intervalInMs: options === null || options ===
|
|
8143
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
8144
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
8145
8145
|
resourceLocationConfig: "location"
|
|
8146
8146
|
});
|
|
8147
8147
|
yield poller.poll();
|
|
@@ -8155,7 +8155,7 @@ class ResourceGroupsImpl {
|
|
|
8155
8155
|
* @param options The options parameters.
|
|
8156
8156
|
*/
|
|
8157
8157
|
beginExportTemplateAndWait(resourceGroupName, parameters, options) {
|
|
8158
|
-
return tslib.__awaiter(this,
|
|
8158
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
8159
8159
|
const poller = yield this.beginExportTemplate(resourceGroupName, parameters, options);
|
|
8160
8160
|
return poller.pollUntilDone();
|
|
8161
8161
|
});
|
|
@@ -8386,7 +8386,7 @@ class TagsOperationsImpl {
|
|
|
8386
8386
|
return this;
|
|
8387
8387
|
},
|
|
8388
8388
|
byPage: (settings) => {
|
|
8389
|
-
if (settings === null || settings ===
|
|
8389
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
8390
8390
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8391
8391
|
}
|
|
8392
8392
|
return this.listPagingPage(options, settings);
|
|
@@ -8396,7 +8396,7 @@ class TagsOperationsImpl {
|
|
|
8396
8396
|
listPagingPage(options, settings) {
|
|
8397
8397
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
8398
8398
|
let result;
|
|
8399
|
-
let continuationToken = settings === null || settings ===
|
|
8399
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
8400
8400
|
if (!continuationToken) {
|
|
8401
8401
|
result = yield tslib.__await(this._list(options));
|
|
8402
8402
|
let page = result.value || [];
|
|
@@ -8755,7 +8755,7 @@ class DeploymentOperationsImpl {
|
|
|
8755
8755
|
return this;
|
|
8756
8756
|
},
|
|
8757
8757
|
byPage: (settings) => {
|
|
8758
|
-
if (settings === null || settings ===
|
|
8758
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
8759
8759
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8760
8760
|
}
|
|
8761
8761
|
return this.listAtScopePagingPage(scope, deploymentName, options, settings);
|
|
@@ -8765,7 +8765,7 @@ class DeploymentOperationsImpl {
|
|
|
8765
8765
|
listAtScopePagingPage(scope, deploymentName, options, settings) {
|
|
8766
8766
|
return tslib.__asyncGenerator(this, arguments, function* listAtScopePagingPage_1() {
|
|
8767
8767
|
let result;
|
|
8768
|
-
let continuationToken = settings === null || settings ===
|
|
8768
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
8769
8769
|
if (!continuationToken) {
|
|
8770
8770
|
result = yield tslib.__await(this._listAtScope(scope, deploymentName, options));
|
|
8771
8771
|
let page = result.value || [];
|
|
@@ -8817,7 +8817,7 @@ class DeploymentOperationsImpl {
|
|
|
8817
8817
|
return this;
|
|
8818
8818
|
},
|
|
8819
8819
|
byPage: (settings) => {
|
|
8820
|
-
if (settings === null || settings ===
|
|
8820
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
8821
8821
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8822
8822
|
}
|
|
8823
8823
|
return this.listAtTenantScopePagingPage(deploymentName, options, settings);
|
|
@@ -8827,7 +8827,7 @@ class DeploymentOperationsImpl {
|
|
|
8827
8827
|
listAtTenantScopePagingPage(deploymentName, options, settings) {
|
|
8828
8828
|
return tslib.__asyncGenerator(this, arguments, function* listAtTenantScopePagingPage_1() {
|
|
8829
8829
|
let result;
|
|
8830
|
-
let continuationToken = settings === null || settings ===
|
|
8830
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
8831
8831
|
if (!continuationToken) {
|
|
8832
8832
|
result = yield tslib.__await(this._listAtTenantScope(deploymentName, options));
|
|
8833
8833
|
let page = result.value || [];
|
|
@@ -8880,7 +8880,7 @@ class DeploymentOperationsImpl {
|
|
|
8880
8880
|
return this;
|
|
8881
8881
|
},
|
|
8882
8882
|
byPage: (settings) => {
|
|
8883
|
-
if (settings === null || settings ===
|
|
8883
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
8884
8884
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8885
8885
|
}
|
|
8886
8886
|
return this.listAtManagementGroupScopePagingPage(groupId, deploymentName, options, settings);
|
|
@@ -8890,7 +8890,7 @@ class DeploymentOperationsImpl {
|
|
|
8890
8890
|
listAtManagementGroupScopePagingPage(groupId, deploymentName, options, settings) {
|
|
8891
8891
|
return tslib.__asyncGenerator(this, arguments, function* listAtManagementGroupScopePagingPage_1() {
|
|
8892
8892
|
let result;
|
|
8893
|
-
let continuationToken = settings === null || settings ===
|
|
8893
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
8894
8894
|
if (!continuationToken) {
|
|
8895
8895
|
result = yield tslib.__await(this._listAtManagementGroupScope(groupId, deploymentName, options));
|
|
8896
8896
|
let page = result.value || [];
|
|
@@ -8942,7 +8942,7 @@ class DeploymentOperationsImpl {
|
|
|
8942
8942
|
return this;
|
|
8943
8943
|
},
|
|
8944
8944
|
byPage: (settings) => {
|
|
8945
|
-
if (settings === null || settings ===
|
|
8945
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
8946
8946
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
8947
8947
|
}
|
|
8948
8948
|
return this.listAtSubscriptionScopePagingPage(deploymentName, options, settings);
|
|
@@ -8952,7 +8952,7 @@ class DeploymentOperationsImpl {
|
|
|
8952
8952
|
listAtSubscriptionScopePagingPage(deploymentName, options, settings) {
|
|
8953
8953
|
return tslib.__asyncGenerator(this, arguments, function* listAtSubscriptionScopePagingPage_1() {
|
|
8954
8954
|
let result;
|
|
8955
|
-
let continuationToken = settings === null || settings ===
|
|
8955
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
8956
8956
|
if (!continuationToken) {
|
|
8957
8957
|
result = yield tslib.__await(this._listAtSubscriptionScope(deploymentName, options));
|
|
8958
8958
|
let page = result.value || [];
|
|
@@ -9005,7 +9005,7 @@ class DeploymentOperationsImpl {
|
|
|
9005
9005
|
return this;
|
|
9006
9006
|
},
|
|
9007
9007
|
byPage: (settings) => {
|
|
9008
|
-
if (settings === null || settings ===
|
|
9008
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
9009
9009
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
9010
9010
|
}
|
|
9011
9011
|
return this.listPagingPage(resourceGroupName, deploymentName, options, settings);
|
|
@@ -9015,7 +9015,7 @@ class DeploymentOperationsImpl {
|
|
|
9015
9015
|
listPagingPage(resourceGroupName, deploymentName, options, settings) {
|
|
9016
9016
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
9017
9017
|
let result;
|
|
9018
|
-
let continuationToken = settings === null || settings ===
|
|
9018
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
9019
9019
|
if (!continuationToken) {
|
|
9020
9020
|
result = yield tslib.__await(this._list(resourceGroupName, deploymentName, options));
|
|
9021
9021
|
let page = result.value || [];
|
|
@@ -9535,10 +9535,10 @@ class ResourceManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
9535
9535
|
: `${packageDetails}`;
|
|
9536
9536
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
9537
9537
|
userAgentPrefix
|
|
9538
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
9538
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
|
|
9539
9539
|
super(optionsWithDefaults);
|
|
9540
9540
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
9541
|
-
if ((options === null || options ===
|
|
9541
|
+
if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
9542
9542
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
9543
9543
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
9544
9544
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -9552,7 +9552,7 @@ class ResourceManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
9552
9552
|
});
|
|
9553
9553
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
9554
9554
|
credential: credentials,
|
|
9555
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
9555
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
9556
9556
|
challengeCallbacks: {
|
|
9557
9557
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
9558
9558
|
}
|
|
@@ -9581,7 +9581,7 @@ class ResourceManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
9581
9581
|
const apiVersionPolicy = {
|
|
9582
9582
|
name: "CustomApiVersionPolicy",
|
|
9583
9583
|
sendRequest(request, next) {
|
|
9584
|
-
return tslib.__awaiter(this,
|
|
9584
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
9585
9585
|
const param = request.url.split("?");
|
|
9586
9586
|
if (param.length > 1) {
|
|
9587
9587
|
const newParams = param[1].split("&").map((item) => {
|