@azure/arm-servicefabric 3.0.1-alpha.20250207.1 → 3.0.1-alpha.20250210.2
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 +109 -109
- package/dist/index.js.map +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -47,14 +47,14 @@ function getContinuationToken(page) {
|
|
|
47
47
|
if (typeof page !== "object" || page === null) {
|
|
48
48
|
return undefined;
|
|
49
49
|
}
|
|
50
|
-
return (_a = pageMap.get(page)) === null || _a ===
|
|
50
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
51
51
|
}
|
|
52
52
|
function setContinuationToken(page, continuationToken) {
|
|
53
53
|
var _a;
|
|
54
54
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
|
-
const pageInfo = (_a = pageMap.get(page)) !== null && _a !==
|
|
57
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
58
58
|
pageInfo.continuationToken = continuationToken;
|
|
59
59
|
pageMap.set(page, pageInfo);
|
|
60
60
|
}
|
|
@@ -3450,7 +3450,7 @@ function createLroSpec(inputs) {
|
|
|
3450
3450
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
3451
3451
|
sendPollRequest: (path, options) => {
|
|
3452
3452
|
const { requestBody } = spec, restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
3453
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
|
3453
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
3454
3454
|
}
|
|
3455
3455
|
};
|
|
3456
3456
|
}
|
|
@@ -3488,7 +3488,7 @@ class ClustersImpl {
|
|
|
3488
3488
|
return this;
|
|
3489
3489
|
},
|
|
3490
3490
|
byPage: (settings) => {
|
|
3491
|
-
if (settings === null || settings ===
|
|
3491
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3492
3492
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3493
3493
|
}
|
|
3494
3494
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -3498,7 +3498,7 @@ class ClustersImpl {
|
|
|
3498
3498
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
3499
3499
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
3500
3500
|
let result;
|
|
3501
|
-
let continuationToken = settings === null || settings ===
|
|
3501
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3502
3502
|
if (!continuationToken) {
|
|
3503
3503
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
3504
3504
|
let page = result.value || [];
|
|
@@ -3550,7 +3550,7 @@ class ClustersImpl {
|
|
|
3550
3550
|
return this;
|
|
3551
3551
|
},
|
|
3552
3552
|
byPage: (settings) => {
|
|
3553
|
-
if (settings === null || settings ===
|
|
3553
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3554
3554
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3555
3555
|
}
|
|
3556
3556
|
return this.listPagingPage(options, settings);
|
|
@@ -3560,7 +3560,7 @@ class ClustersImpl {
|
|
|
3560
3560
|
listPagingPage(options, settings) {
|
|
3561
3561
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3562
3562
|
let result;
|
|
3563
|
-
let continuationToken = settings === null || settings ===
|
|
3563
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3564
3564
|
if (!continuationToken) {
|
|
3565
3565
|
result = yield tslib.__await(this._list(options));
|
|
3566
3566
|
let page = result.value || [];
|
|
@@ -3615,17 +3615,17 @@ class ClustersImpl {
|
|
|
3615
3615
|
* @param options The options parameters.
|
|
3616
3616
|
*/
|
|
3617
3617
|
beginCreateOrUpdate(resourceGroupName, clusterName, parameters, options) {
|
|
3618
|
-
return tslib.__awaiter(this,
|
|
3619
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3618
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3619
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3620
3620
|
return this.client.sendOperationRequest(args, spec);
|
|
3621
3621
|
});
|
|
3622
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3622
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3623
3623
|
var _a;
|
|
3624
3624
|
let currentRawResponse = undefined;
|
|
3625
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3625
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3626
3626
|
const callback = (rawResponse, flatResponse) => {
|
|
3627
3627
|
currentRawResponse = rawResponse;
|
|
3628
|
-
providedCallback === null || providedCallback ===
|
|
3628
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3629
3629
|
};
|
|
3630
3630
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3631
3631
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3644,8 +3644,8 @@ class ClustersImpl {
|
|
|
3644
3644
|
spec: createOrUpdateOperationSpec$4
|
|
3645
3645
|
});
|
|
3646
3646
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3647
|
-
restoreFrom: options === null || options ===
|
|
3648
|
-
intervalInMs: options === null || options ===
|
|
3647
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3648
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3649
3649
|
});
|
|
3650
3650
|
yield poller.poll();
|
|
3651
3651
|
return poller;
|
|
@@ -3659,7 +3659,7 @@ class ClustersImpl {
|
|
|
3659
3659
|
* @param options The options parameters.
|
|
3660
3660
|
*/
|
|
3661
3661
|
beginCreateOrUpdateAndWait(resourceGroupName, clusterName, parameters, options) {
|
|
3662
|
-
return tslib.__awaiter(this,
|
|
3662
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3663
3663
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, clusterName, parameters, options);
|
|
3664
3664
|
return poller.pollUntilDone();
|
|
3665
3665
|
});
|
|
@@ -3673,17 +3673,17 @@ class ClustersImpl {
|
|
|
3673
3673
|
* @param options The options parameters.
|
|
3674
3674
|
*/
|
|
3675
3675
|
beginUpdate(resourceGroupName, clusterName, parameters, options) {
|
|
3676
|
-
return tslib.__awaiter(this,
|
|
3677
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3676
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3677
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3678
3678
|
return this.client.sendOperationRequest(args, spec);
|
|
3679
3679
|
});
|
|
3680
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3680
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3681
3681
|
var _a;
|
|
3682
3682
|
let currentRawResponse = undefined;
|
|
3683
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3683
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3684
3684
|
const callback = (rawResponse, flatResponse) => {
|
|
3685
3685
|
currentRawResponse = rawResponse;
|
|
3686
|
-
providedCallback === null || providedCallback ===
|
|
3686
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3687
3687
|
};
|
|
3688
3688
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3689
3689
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3702,8 +3702,8 @@ class ClustersImpl {
|
|
|
3702
3702
|
spec: updateOperationSpec$2
|
|
3703
3703
|
});
|
|
3704
3704
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3705
|
-
restoreFrom: options === null || options ===
|
|
3706
|
-
intervalInMs: options === null || options ===
|
|
3705
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3706
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3707
3707
|
});
|
|
3708
3708
|
yield poller.poll();
|
|
3709
3709
|
return poller;
|
|
@@ -3718,7 +3718,7 @@ class ClustersImpl {
|
|
|
3718
3718
|
* @param options The options parameters.
|
|
3719
3719
|
*/
|
|
3720
3720
|
beginUpdateAndWait(resourceGroupName, clusterName, parameters, options) {
|
|
3721
|
-
return tslib.__awaiter(this,
|
|
3721
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3722
3722
|
const poller = yield this.beginUpdate(resourceGroupName, clusterName, parameters, options);
|
|
3723
3723
|
return poller.pollUntilDone();
|
|
3724
3724
|
});
|
|
@@ -4155,7 +4155,7 @@ class OperationsImpl {
|
|
|
4155
4155
|
return this;
|
|
4156
4156
|
},
|
|
4157
4157
|
byPage: (settings) => {
|
|
4158
|
-
if (settings === null || settings ===
|
|
4158
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4159
4159
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4160
4160
|
}
|
|
4161
4161
|
return this.listPagingPage(options, settings);
|
|
@@ -4165,7 +4165,7 @@ class OperationsImpl {
|
|
|
4165
4165
|
listPagingPage(options, settings) {
|
|
4166
4166
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4167
4167
|
let result;
|
|
4168
|
-
let continuationToken = settings === null || settings ===
|
|
4168
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4169
4169
|
if (!continuationToken) {
|
|
4170
4170
|
result = yield tslib.__await(this._list(options));
|
|
4171
4171
|
let page = result.value || [];
|
|
@@ -4286,7 +4286,7 @@ class ApplicationTypesImpl {
|
|
|
4286
4286
|
return this;
|
|
4287
4287
|
},
|
|
4288
4288
|
byPage: (settings) => {
|
|
4289
|
-
if (settings === null || settings ===
|
|
4289
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4290
4290
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4291
4291
|
}
|
|
4292
4292
|
return this.listPagingPage(resourceGroupName, clusterName, options, settings);
|
|
@@ -4296,7 +4296,7 @@ class ApplicationTypesImpl {
|
|
|
4296
4296
|
listPagingPage(resourceGroupName, clusterName, options, settings) {
|
|
4297
4297
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4298
4298
|
let result;
|
|
4299
|
-
let continuationToken = settings === null || settings ===
|
|
4299
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4300
4300
|
if (!continuationToken) {
|
|
4301
4301
|
result = yield tslib.__await(this._list(resourceGroupName, clusterName, options));
|
|
4302
4302
|
let page = result.value || [];
|
|
@@ -4369,17 +4369,17 @@ class ApplicationTypesImpl {
|
|
|
4369
4369
|
* @param options The options parameters.
|
|
4370
4370
|
*/
|
|
4371
4371
|
beginDelete(resourceGroupName, clusterName, applicationTypeName, options) {
|
|
4372
|
-
return tslib.__awaiter(this,
|
|
4373
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4372
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4373
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4374
4374
|
return this.client.sendOperationRequest(args, spec);
|
|
4375
4375
|
});
|
|
4376
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4376
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4377
4377
|
var _a;
|
|
4378
4378
|
let currentRawResponse = undefined;
|
|
4379
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4379
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4380
4380
|
const callback = (rawResponse, flatResponse) => {
|
|
4381
4381
|
currentRawResponse = rawResponse;
|
|
4382
|
-
providedCallback === null || providedCallback ===
|
|
4382
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4383
4383
|
};
|
|
4384
4384
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4385
4385
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4398,8 +4398,8 @@ class ApplicationTypesImpl {
|
|
|
4398
4398
|
spec: deleteOperationSpec$3
|
|
4399
4399
|
});
|
|
4400
4400
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4401
|
-
restoreFrom: options === null || options ===
|
|
4402
|
-
intervalInMs: options === null || options ===
|
|
4401
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4402
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
4403
4403
|
});
|
|
4404
4404
|
yield poller.poll();
|
|
4405
4405
|
return poller;
|
|
@@ -4413,7 +4413,7 @@ class ApplicationTypesImpl {
|
|
|
4413
4413
|
* @param options The options parameters.
|
|
4414
4414
|
*/
|
|
4415
4415
|
beginDeleteAndWait(resourceGroupName, clusterName, applicationTypeName, options) {
|
|
4416
|
-
return tslib.__awaiter(this,
|
|
4416
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4417
4417
|
const poller = yield this.beginDelete(resourceGroupName, clusterName, applicationTypeName, options);
|
|
4418
4418
|
return poller.pollUntilDone();
|
|
4419
4419
|
});
|
|
@@ -4588,7 +4588,7 @@ class ApplicationTypeVersionsImpl {
|
|
|
4588
4588
|
return this;
|
|
4589
4589
|
},
|
|
4590
4590
|
byPage: (settings) => {
|
|
4591
|
-
if (settings === null || settings ===
|
|
4591
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4592
4592
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4593
4593
|
}
|
|
4594
4594
|
return this.listPagingPage(resourceGroupName, clusterName, applicationTypeName, options, settings);
|
|
@@ -4598,7 +4598,7 @@ class ApplicationTypeVersionsImpl {
|
|
|
4598
4598
|
listPagingPage(resourceGroupName, clusterName, applicationTypeName, options, settings) {
|
|
4599
4599
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4600
4600
|
let result;
|
|
4601
|
-
let continuationToken = settings === null || settings ===
|
|
4601
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4602
4602
|
if (!continuationToken) {
|
|
4603
4603
|
result = yield tslib.__await(this._list(resourceGroupName, clusterName, applicationTypeName, options));
|
|
4604
4604
|
let page = result.value || [];
|
|
@@ -4657,17 +4657,17 @@ class ApplicationTypeVersionsImpl {
|
|
|
4657
4657
|
* @param options The options parameters.
|
|
4658
4658
|
*/
|
|
4659
4659
|
beginCreateOrUpdate(resourceGroupName, clusterName, applicationTypeName, version, parameters, options) {
|
|
4660
|
-
return tslib.__awaiter(this,
|
|
4661
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4660
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4661
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4662
4662
|
return this.client.sendOperationRequest(args, spec);
|
|
4663
4663
|
});
|
|
4664
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4664
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4665
4665
|
var _a;
|
|
4666
4666
|
let currentRawResponse = undefined;
|
|
4667
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4667
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4668
4668
|
const callback = (rawResponse, flatResponse) => {
|
|
4669
4669
|
currentRawResponse = rawResponse;
|
|
4670
|
-
providedCallback === null || providedCallback ===
|
|
4670
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4671
4671
|
};
|
|
4672
4672
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4673
4673
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4693,8 +4693,8 @@ class ApplicationTypeVersionsImpl {
|
|
|
4693
4693
|
spec: createOrUpdateOperationSpec$2
|
|
4694
4694
|
});
|
|
4695
4695
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4696
|
-
restoreFrom: options === null || options ===
|
|
4697
|
-
intervalInMs: options === null || options ===
|
|
4696
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4697
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
4698
4698
|
});
|
|
4699
4699
|
yield poller.poll();
|
|
4700
4700
|
return poller;
|
|
@@ -4710,7 +4710,7 @@ class ApplicationTypeVersionsImpl {
|
|
|
4710
4710
|
* @param options The options parameters.
|
|
4711
4711
|
*/
|
|
4712
4712
|
beginCreateOrUpdateAndWait(resourceGroupName, clusterName, applicationTypeName, version, parameters, options) {
|
|
4713
|
-
return tslib.__awaiter(this,
|
|
4713
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4714
4714
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, clusterName, applicationTypeName, version, parameters, options);
|
|
4715
4715
|
return poller.pollUntilDone();
|
|
4716
4716
|
});
|
|
@@ -4724,17 +4724,17 @@ class ApplicationTypeVersionsImpl {
|
|
|
4724
4724
|
* @param options The options parameters.
|
|
4725
4725
|
*/
|
|
4726
4726
|
beginDelete(resourceGroupName, clusterName, applicationTypeName, version, options) {
|
|
4727
|
-
return tslib.__awaiter(this,
|
|
4728
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4727
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4728
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4729
4729
|
return this.client.sendOperationRequest(args, spec);
|
|
4730
4730
|
});
|
|
4731
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4731
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4732
4732
|
var _a;
|
|
4733
4733
|
let currentRawResponse = undefined;
|
|
4734
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4734
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4735
4735
|
const callback = (rawResponse, flatResponse) => {
|
|
4736
4736
|
currentRawResponse = rawResponse;
|
|
4737
|
-
providedCallback === null || providedCallback ===
|
|
4737
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4738
4738
|
};
|
|
4739
4739
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4740
4740
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4759,8 +4759,8 @@ class ApplicationTypeVersionsImpl {
|
|
|
4759
4759
|
spec: deleteOperationSpec$2
|
|
4760
4760
|
});
|
|
4761
4761
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4762
|
-
restoreFrom: options === null || options ===
|
|
4763
|
-
intervalInMs: options === null || options ===
|
|
4762
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4763
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
4764
4764
|
});
|
|
4765
4765
|
yield poller.poll();
|
|
4766
4766
|
return poller;
|
|
@@ -4775,7 +4775,7 @@ class ApplicationTypeVersionsImpl {
|
|
|
4775
4775
|
* @param options The options parameters.
|
|
4776
4776
|
*/
|
|
4777
4777
|
beginDeleteAndWait(resourceGroupName, clusterName, applicationTypeName, version, options) {
|
|
4778
|
-
return tslib.__awaiter(this,
|
|
4778
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4779
4779
|
const poller = yield this.beginDelete(resourceGroupName, clusterName, applicationTypeName, version, options);
|
|
4780
4780
|
return poller.pollUntilDone();
|
|
4781
4781
|
});
|
|
@@ -4971,7 +4971,7 @@ class ApplicationsImpl {
|
|
|
4971
4971
|
return this;
|
|
4972
4972
|
},
|
|
4973
4973
|
byPage: (settings) => {
|
|
4974
|
-
if (settings === null || settings ===
|
|
4974
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4975
4975
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4976
4976
|
}
|
|
4977
4977
|
return this.listPagingPage(resourceGroupName, clusterName, options, settings);
|
|
@@ -4981,7 +4981,7 @@ class ApplicationsImpl {
|
|
|
4981
4981
|
listPagingPage(resourceGroupName, clusterName, options, settings) {
|
|
4982
4982
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4983
4983
|
let result;
|
|
4984
|
-
let continuationToken = settings === null || settings ===
|
|
4984
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4985
4985
|
if (!continuationToken) {
|
|
4986
4986
|
result = yield tslib.__await(this._list(resourceGroupName, clusterName, options));
|
|
4987
4987
|
let page = result.value || [];
|
|
@@ -5038,17 +5038,17 @@ class ApplicationsImpl {
|
|
|
5038
5038
|
* @param options The options parameters.
|
|
5039
5039
|
*/
|
|
5040
5040
|
beginCreateOrUpdate(resourceGroupName, clusterName, applicationName, parameters, options) {
|
|
5041
|
-
return tslib.__awaiter(this,
|
|
5042
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5041
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5042
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5043
5043
|
return this.client.sendOperationRequest(args, spec);
|
|
5044
5044
|
});
|
|
5045
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5045
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5046
5046
|
var _a;
|
|
5047
5047
|
let currentRawResponse = undefined;
|
|
5048
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5048
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
5049
5049
|
const callback = (rawResponse, flatResponse) => {
|
|
5050
5050
|
currentRawResponse = rawResponse;
|
|
5051
|
-
providedCallback === null || providedCallback ===
|
|
5051
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
5052
5052
|
};
|
|
5053
5053
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5054
5054
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5073,8 +5073,8 @@ class ApplicationsImpl {
|
|
|
5073
5073
|
spec: createOrUpdateOperationSpec$1
|
|
5074
5074
|
});
|
|
5075
5075
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5076
|
-
restoreFrom: options === null || options ===
|
|
5077
|
-
intervalInMs: options === null || options ===
|
|
5076
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5077
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
5078
5078
|
});
|
|
5079
5079
|
yield poller.poll();
|
|
5080
5080
|
return poller;
|
|
@@ -5089,7 +5089,7 @@ class ApplicationsImpl {
|
|
|
5089
5089
|
* @param options The options parameters.
|
|
5090
5090
|
*/
|
|
5091
5091
|
beginCreateOrUpdateAndWait(resourceGroupName, clusterName, applicationName, parameters, options) {
|
|
5092
|
-
return tslib.__awaiter(this,
|
|
5092
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5093
5093
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, clusterName, applicationName, parameters, options);
|
|
5094
5094
|
return poller.pollUntilDone();
|
|
5095
5095
|
});
|
|
@@ -5103,17 +5103,17 @@ class ApplicationsImpl {
|
|
|
5103
5103
|
* @param options The options parameters.
|
|
5104
5104
|
*/
|
|
5105
5105
|
beginUpdate(resourceGroupName, clusterName, applicationName, parameters, options) {
|
|
5106
|
-
return tslib.__awaiter(this,
|
|
5107
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5106
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5107
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5108
5108
|
return this.client.sendOperationRequest(args, spec);
|
|
5109
5109
|
});
|
|
5110
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5110
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5111
5111
|
var _a;
|
|
5112
5112
|
let currentRawResponse = undefined;
|
|
5113
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5113
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
5114
5114
|
const callback = (rawResponse, flatResponse) => {
|
|
5115
5115
|
currentRawResponse = rawResponse;
|
|
5116
|
-
providedCallback === null || providedCallback ===
|
|
5116
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
5117
5117
|
};
|
|
5118
5118
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5119
5119
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5138,8 +5138,8 @@ class ApplicationsImpl {
|
|
|
5138
5138
|
spec: updateOperationSpec$1
|
|
5139
5139
|
});
|
|
5140
5140
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5141
|
-
restoreFrom: options === null || options ===
|
|
5142
|
-
intervalInMs: options === null || options ===
|
|
5141
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5142
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
5143
5143
|
});
|
|
5144
5144
|
yield poller.poll();
|
|
5145
5145
|
return poller;
|
|
@@ -5154,7 +5154,7 @@ class ApplicationsImpl {
|
|
|
5154
5154
|
* @param options The options parameters.
|
|
5155
5155
|
*/
|
|
5156
5156
|
beginUpdateAndWait(resourceGroupName, clusterName, applicationName, parameters, options) {
|
|
5157
|
-
return tslib.__awaiter(this,
|
|
5157
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5158
5158
|
const poller = yield this.beginUpdate(resourceGroupName, clusterName, applicationName, parameters, options);
|
|
5159
5159
|
return poller.pollUntilDone();
|
|
5160
5160
|
});
|
|
@@ -5167,17 +5167,17 @@ class ApplicationsImpl {
|
|
|
5167
5167
|
* @param options The options parameters.
|
|
5168
5168
|
*/
|
|
5169
5169
|
beginDelete(resourceGroupName, clusterName, applicationName, options) {
|
|
5170
|
-
return tslib.__awaiter(this,
|
|
5171
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5170
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5171
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5172
5172
|
return this.client.sendOperationRequest(args, spec);
|
|
5173
5173
|
});
|
|
5174
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5174
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5175
5175
|
var _a;
|
|
5176
5176
|
let currentRawResponse = undefined;
|
|
5177
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5177
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
5178
5178
|
const callback = (rawResponse, flatResponse) => {
|
|
5179
5179
|
currentRawResponse = rawResponse;
|
|
5180
|
-
providedCallback === null || providedCallback ===
|
|
5180
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
5181
5181
|
};
|
|
5182
5182
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5183
5183
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5196,8 +5196,8 @@ class ApplicationsImpl {
|
|
|
5196
5196
|
spec: deleteOperationSpec$1
|
|
5197
5197
|
});
|
|
5198
5198
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5199
|
-
restoreFrom: options === null || options ===
|
|
5200
|
-
intervalInMs: options === null || options ===
|
|
5199
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5200
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
5201
5201
|
});
|
|
5202
5202
|
yield poller.poll();
|
|
5203
5203
|
return poller;
|
|
@@ -5211,7 +5211,7 @@ class ApplicationsImpl {
|
|
|
5211
5211
|
* @param options The options parameters.
|
|
5212
5212
|
*/
|
|
5213
5213
|
beginDeleteAndWait(resourceGroupName, clusterName, applicationName, options) {
|
|
5214
|
-
return tslib.__awaiter(this,
|
|
5214
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5215
5215
|
const poller = yield this.beginDelete(resourceGroupName, clusterName, applicationName, options);
|
|
5216
5216
|
return poller.pollUntilDone();
|
|
5217
5217
|
});
|
|
@@ -5428,7 +5428,7 @@ class ServicesImpl {
|
|
|
5428
5428
|
return this;
|
|
5429
5429
|
},
|
|
5430
5430
|
byPage: (settings) => {
|
|
5431
|
-
if (settings === null || settings ===
|
|
5431
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5432
5432
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5433
5433
|
}
|
|
5434
5434
|
return this.listPagingPage(resourceGroupName, clusterName, applicationName, options, settings);
|
|
@@ -5438,7 +5438,7 @@ class ServicesImpl {
|
|
|
5438
5438
|
listPagingPage(resourceGroupName, clusterName, applicationName, options, settings) {
|
|
5439
5439
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5440
5440
|
let result;
|
|
5441
|
-
let continuationToken = settings === null || settings ===
|
|
5441
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5442
5442
|
if (!continuationToken) {
|
|
5443
5443
|
result = yield tslib.__await(this._list(resourceGroupName, clusterName, applicationName, options));
|
|
5444
5444
|
let page = result.value || [];
|
|
@@ -5499,17 +5499,17 @@ class ServicesImpl {
|
|
|
5499
5499
|
* @param options The options parameters.
|
|
5500
5500
|
*/
|
|
5501
5501
|
beginCreateOrUpdate(resourceGroupName, clusterName, applicationName, serviceName, parameters, options) {
|
|
5502
|
-
return tslib.__awaiter(this,
|
|
5503
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5502
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5503
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5504
5504
|
return this.client.sendOperationRequest(args, spec);
|
|
5505
5505
|
});
|
|
5506
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5506
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5507
5507
|
var _a;
|
|
5508
5508
|
let currentRawResponse = undefined;
|
|
5509
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5509
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
5510
5510
|
const callback = (rawResponse, flatResponse) => {
|
|
5511
5511
|
currentRawResponse = rawResponse;
|
|
5512
|
-
providedCallback === null || providedCallback ===
|
|
5512
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
5513
5513
|
};
|
|
5514
5514
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5515
5515
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5535,8 +5535,8 @@ class ServicesImpl {
|
|
|
5535
5535
|
spec: createOrUpdateOperationSpec
|
|
5536
5536
|
});
|
|
5537
5537
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5538
|
-
restoreFrom: options === null || options ===
|
|
5539
|
-
intervalInMs: options === null || options ===
|
|
5538
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5539
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
5540
5540
|
});
|
|
5541
5541
|
yield poller.poll();
|
|
5542
5542
|
return poller;
|
|
@@ -5553,7 +5553,7 @@ class ServicesImpl {
|
|
|
5553
5553
|
* @param options The options parameters.
|
|
5554
5554
|
*/
|
|
5555
5555
|
beginCreateOrUpdateAndWait(resourceGroupName, clusterName, applicationName, serviceName, parameters, options) {
|
|
5556
|
-
return tslib.__awaiter(this,
|
|
5556
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5557
5557
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, clusterName, applicationName, serviceName, parameters, options);
|
|
5558
5558
|
return poller.pollUntilDone();
|
|
5559
5559
|
});
|
|
@@ -5569,17 +5569,17 @@ class ServicesImpl {
|
|
|
5569
5569
|
* @param options The options parameters.
|
|
5570
5570
|
*/
|
|
5571
5571
|
beginUpdate(resourceGroupName, clusterName, applicationName, serviceName, parameters, options) {
|
|
5572
|
-
return tslib.__awaiter(this,
|
|
5573
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5572
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5573
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5574
5574
|
return this.client.sendOperationRequest(args, spec);
|
|
5575
5575
|
});
|
|
5576
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5576
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5577
5577
|
var _a;
|
|
5578
5578
|
let currentRawResponse = undefined;
|
|
5579
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5579
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
5580
5580
|
const callback = (rawResponse, flatResponse) => {
|
|
5581
5581
|
currentRawResponse = rawResponse;
|
|
5582
|
-
providedCallback === null || providedCallback ===
|
|
5582
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
5583
5583
|
};
|
|
5584
5584
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5585
5585
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5605,8 +5605,8 @@ class ServicesImpl {
|
|
|
5605
5605
|
spec: updateOperationSpec
|
|
5606
5606
|
});
|
|
5607
5607
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5608
|
-
restoreFrom: options === null || options ===
|
|
5609
|
-
intervalInMs: options === null || options ===
|
|
5608
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5609
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
5610
5610
|
});
|
|
5611
5611
|
yield poller.poll();
|
|
5612
5612
|
return poller;
|
|
@@ -5623,7 +5623,7 @@ class ServicesImpl {
|
|
|
5623
5623
|
* @param options The options parameters.
|
|
5624
5624
|
*/
|
|
5625
5625
|
beginUpdateAndWait(resourceGroupName, clusterName, applicationName, serviceName, parameters, options) {
|
|
5626
|
-
return tslib.__awaiter(this,
|
|
5626
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5627
5627
|
const poller = yield this.beginUpdate(resourceGroupName, clusterName, applicationName, serviceName, parameters, options);
|
|
5628
5628
|
return poller.pollUntilDone();
|
|
5629
5629
|
});
|
|
@@ -5638,17 +5638,17 @@ class ServicesImpl {
|
|
|
5638
5638
|
* @param options The options parameters.
|
|
5639
5639
|
*/
|
|
5640
5640
|
beginDelete(resourceGroupName, clusterName, applicationName, serviceName, options) {
|
|
5641
|
-
return tslib.__awaiter(this,
|
|
5642
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5641
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5642
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5643
5643
|
return this.client.sendOperationRequest(args, spec);
|
|
5644
5644
|
});
|
|
5645
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5645
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5646
5646
|
var _a;
|
|
5647
5647
|
let currentRawResponse = undefined;
|
|
5648
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5648
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
5649
5649
|
const callback = (rawResponse, flatResponse) => {
|
|
5650
5650
|
currentRawResponse = rawResponse;
|
|
5651
|
-
providedCallback === null || providedCallback ===
|
|
5651
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
5652
5652
|
};
|
|
5653
5653
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5654
5654
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5673,8 +5673,8 @@ class ServicesImpl {
|
|
|
5673
5673
|
spec: deleteOperationSpec
|
|
5674
5674
|
});
|
|
5675
5675
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5676
|
-
restoreFrom: options === null || options ===
|
|
5677
|
-
intervalInMs: options === null || options ===
|
|
5676
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5677
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
5678
5678
|
});
|
|
5679
5679
|
yield poller.poll();
|
|
5680
5680
|
return poller;
|
|
@@ -5690,7 +5690,7 @@ class ServicesImpl {
|
|
|
5690
5690
|
* @param options The options parameters.
|
|
5691
5691
|
*/
|
|
5692
5692
|
beginDeleteAndWait(resourceGroupName, clusterName, applicationName, serviceName, options) {
|
|
5693
|
-
return tslib.__awaiter(this,
|
|
5693
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5694
5694
|
const poller = yield this.beginDelete(resourceGroupName, clusterName, applicationName, serviceName, options);
|
|
5695
5695
|
return poller.pollUntilDone();
|
|
5696
5696
|
});
|
|
@@ -5916,10 +5916,10 @@ class ServiceFabricManagementClient extends coreClient__namespace.ServiceClient
|
|
|
5916
5916
|
: `${packageDetails}`;
|
|
5917
5917
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
5918
5918
|
userAgentPrefix
|
|
5919
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
5919
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
5920
5920
|
super(optionsWithDefaults);
|
|
5921
5921
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
5922
|
-
if ((options === null || options ===
|
|
5922
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
5923
5923
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
5924
5924
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
5925
5925
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -5933,7 +5933,7 @@ class ServiceFabricManagementClient extends coreClient__namespace.ServiceClient
|
|
|
5933
5933
|
});
|
|
5934
5934
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
5935
5935
|
credential: credentials,
|
|
5936
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
5936
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
5937
5937
|
challengeCallbacks: {
|
|
5938
5938
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
5939
5939
|
}
|
|
@@ -5961,7 +5961,7 @@ class ServiceFabricManagementClient extends coreClient__namespace.ServiceClient
|
|
|
5961
5961
|
const apiVersionPolicy = {
|
|
5962
5962
|
name: "CustomApiVersionPolicy",
|
|
5963
5963
|
sendRequest(request, next) {
|
|
5964
|
-
return tslib.__awaiter(this,
|
|
5964
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5965
5965
|
const param = request.url.split("?");
|
|
5966
5966
|
if (param.length > 1) {
|
|
5967
5967
|
const newParams = param[1].split("&").map((item) => {
|