@azure/arm-peering 2.1.1-alpha.20250106.1 → 2.1.1-alpha.20250108.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 +40 -40
- 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
|
@@ -46,14 +46,14 @@ function getContinuationToken(page) {
|
|
|
46
46
|
if (typeof page !== "object" || page === null) {
|
|
47
47
|
return undefined;
|
|
48
48
|
}
|
|
49
|
-
return (_a = pageMap.get(page)) === null || _a ===
|
|
49
|
+
return (_a = pageMap.get(page)) === null || _a === undefined ? undefined : _a.continuationToken;
|
|
50
50
|
}
|
|
51
51
|
function setContinuationToken(page, continuationToken) {
|
|
52
52
|
var _a;
|
|
53
53
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
54
54
|
return;
|
|
55
55
|
}
|
|
56
|
-
const pageInfo = (_a = pageMap.get(page)) !== null && _a !==
|
|
56
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
|
|
57
57
|
pageInfo.continuationToken = continuationToken;
|
|
58
58
|
pageMap.set(page, pageInfo);
|
|
59
59
|
}
|
|
@@ -2523,7 +2523,7 @@ class CdnPeeringPrefixesImpl {
|
|
|
2523
2523
|
return this;
|
|
2524
2524
|
},
|
|
2525
2525
|
byPage: (settings) => {
|
|
2526
|
-
if (settings === null || settings ===
|
|
2526
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
2527
2527
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
2528
2528
|
}
|
|
2529
2529
|
return this.listPagingPage(peeringLocation, options, settings);
|
|
@@ -2533,7 +2533,7 @@ class CdnPeeringPrefixesImpl {
|
|
|
2533
2533
|
listPagingPage(peeringLocation, options, settings) {
|
|
2534
2534
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2535
2535
|
let result;
|
|
2536
|
-
let continuationToken = settings === null || settings ===
|
|
2536
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
2537
2537
|
if (!continuationToken) {
|
|
2538
2538
|
result = yield tslib.__await(this._list(peeringLocation, options));
|
|
2539
2539
|
let page = result.value || [];
|
|
@@ -2661,7 +2661,7 @@ class LegacyPeeringsImpl {
|
|
|
2661
2661
|
return this;
|
|
2662
2662
|
},
|
|
2663
2663
|
byPage: (settings) => {
|
|
2664
|
-
if (settings === null || settings ===
|
|
2664
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
2665
2665
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
2666
2666
|
}
|
|
2667
2667
|
return this.listPagingPage(peeringLocation, kind, options, settings);
|
|
@@ -2671,7 +2671,7 @@ class LegacyPeeringsImpl {
|
|
|
2671
2671
|
listPagingPage(peeringLocation, kind, options, settings) {
|
|
2672
2672
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2673
2673
|
let result;
|
|
2674
|
-
let continuationToken = settings === null || settings ===
|
|
2674
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
2675
2675
|
if (!continuationToken) {
|
|
2676
2676
|
result = yield tslib.__await(this._list(peeringLocation, kind, options));
|
|
2677
2677
|
let page = result.value || [];
|
|
@@ -2862,7 +2862,7 @@ class OperationsImpl {
|
|
|
2862
2862
|
return this;
|
|
2863
2863
|
},
|
|
2864
2864
|
byPage: (settings) => {
|
|
2865
|
-
if (settings === null || settings ===
|
|
2865
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
2866
2866
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
2867
2867
|
}
|
|
2868
2868
|
return this.listPagingPage(options, settings);
|
|
@@ -2872,7 +2872,7 @@ class OperationsImpl {
|
|
|
2872
2872
|
listPagingPage(options, settings) {
|
|
2873
2873
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2874
2874
|
let result;
|
|
2875
|
-
let continuationToken = settings === null || settings ===
|
|
2875
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
2876
2876
|
if (!continuationToken) {
|
|
2877
2877
|
result = yield tslib.__await(this._list(options));
|
|
2878
2878
|
let page = result.value || [];
|
|
@@ -2991,7 +2991,7 @@ class PeerAsnsImpl {
|
|
|
2991
2991
|
return this;
|
|
2992
2992
|
},
|
|
2993
2993
|
byPage: (settings) => {
|
|
2994
|
-
if (settings === null || settings ===
|
|
2994
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
2995
2995
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
2996
2996
|
}
|
|
2997
2997
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -3001,7 +3001,7 @@ class PeerAsnsImpl {
|
|
|
3001
3001
|
listBySubscriptionPagingPage(options, settings) {
|
|
3002
3002
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
3003
3003
|
let result;
|
|
3004
|
-
let continuationToken = settings === null || settings ===
|
|
3004
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
3005
3005
|
if (!continuationToken) {
|
|
3006
3006
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
3007
3007
|
let page = result.value || [];
|
|
@@ -3215,7 +3215,7 @@ class PeeringLocationsImpl {
|
|
|
3215
3215
|
return this;
|
|
3216
3216
|
},
|
|
3217
3217
|
byPage: (settings) => {
|
|
3218
|
-
if (settings === null || settings ===
|
|
3218
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
3219
3219
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3220
3220
|
}
|
|
3221
3221
|
return this.listPagingPage(kind, options, settings);
|
|
@@ -3225,7 +3225,7 @@ class PeeringLocationsImpl {
|
|
|
3225
3225
|
listPagingPage(kind, options, settings) {
|
|
3226
3226
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3227
3227
|
let result;
|
|
3228
|
-
let continuationToken = settings === null || settings ===
|
|
3228
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
3229
3229
|
if (!continuationToken) {
|
|
3230
3230
|
result = yield tslib.__await(this._list(kind, options));
|
|
3231
3231
|
let page = result.value || [];
|
|
@@ -3360,7 +3360,7 @@ class RegisteredAsnsImpl {
|
|
|
3360
3360
|
return this;
|
|
3361
3361
|
},
|
|
3362
3362
|
byPage: (settings) => {
|
|
3363
|
-
if (settings === null || settings ===
|
|
3363
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
3364
3364
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3365
3365
|
}
|
|
3366
3366
|
return this.listByPeeringPagingPage(resourceGroupName, peeringName, options, settings);
|
|
@@ -3370,7 +3370,7 @@ class RegisteredAsnsImpl {
|
|
|
3370
3370
|
listByPeeringPagingPage(resourceGroupName, peeringName, options, settings) {
|
|
3371
3371
|
return tslib.__asyncGenerator(this, arguments, function* listByPeeringPagingPage_1() {
|
|
3372
3372
|
let result;
|
|
3373
|
-
let continuationToken = settings === null || settings ===
|
|
3373
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
3374
3374
|
if (!continuationToken) {
|
|
3375
3375
|
result = yield tslib.__await(this._listByPeering(resourceGroupName, peeringName, options));
|
|
3376
3376
|
let page = result.value || [];
|
|
@@ -3616,7 +3616,7 @@ class RegisteredPrefixesImpl {
|
|
|
3616
3616
|
return this;
|
|
3617
3617
|
},
|
|
3618
3618
|
byPage: (settings) => {
|
|
3619
|
-
if (settings === null || settings ===
|
|
3619
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
3620
3620
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3621
3621
|
}
|
|
3622
3622
|
return this.listByPeeringPagingPage(resourceGroupName, peeringName, options, settings);
|
|
@@ -3626,7 +3626,7 @@ class RegisteredPrefixesImpl {
|
|
|
3626
3626
|
listByPeeringPagingPage(resourceGroupName, peeringName, options, settings) {
|
|
3627
3627
|
return tslib.__asyncGenerator(this, arguments, function* listByPeeringPagingPage_1() {
|
|
3628
3628
|
let result;
|
|
3629
|
-
let continuationToken = settings === null || settings ===
|
|
3629
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
3630
3630
|
if (!continuationToken) {
|
|
3631
3631
|
result = yield tslib.__await(this._listByPeering(resourceGroupName, peeringName, options));
|
|
3632
3632
|
let page = result.value || [];
|
|
@@ -3871,7 +3871,7 @@ class PeeringsImpl {
|
|
|
3871
3871
|
return this;
|
|
3872
3872
|
},
|
|
3873
3873
|
byPage: (settings) => {
|
|
3874
|
-
if (settings === null || settings ===
|
|
3874
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
3875
3875
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3876
3876
|
}
|
|
3877
3877
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -3881,7 +3881,7 @@ class PeeringsImpl {
|
|
|
3881
3881
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
3882
3882
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
3883
3883
|
let result;
|
|
3884
|
-
let continuationToken = settings === null || settings ===
|
|
3884
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
3885
3885
|
if (!continuationToken) {
|
|
3886
3886
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
3887
3887
|
let page = result.value || [];
|
|
@@ -3932,7 +3932,7 @@ class PeeringsImpl {
|
|
|
3932
3932
|
return this;
|
|
3933
3933
|
},
|
|
3934
3934
|
byPage: (settings) => {
|
|
3935
|
-
if (settings === null || settings ===
|
|
3935
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
3936
3936
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3937
3937
|
}
|
|
3938
3938
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -3942,7 +3942,7 @@ class PeeringsImpl {
|
|
|
3942
3942
|
listBySubscriptionPagingPage(options, settings) {
|
|
3943
3943
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
3944
3944
|
let result;
|
|
3945
|
-
let continuationToken = settings === null || settings ===
|
|
3945
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
3946
3946
|
if (!continuationToken) {
|
|
3947
3947
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
3948
3948
|
let page = result.value || [];
|
|
@@ -4255,7 +4255,7 @@ class ReceivedRoutesImpl {
|
|
|
4255
4255
|
return this;
|
|
4256
4256
|
},
|
|
4257
4257
|
byPage: (settings) => {
|
|
4258
|
-
if (settings === null || settings ===
|
|
4258
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4259
4259
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4260
4260
|
}
|
|
4261
4261
|
return this.listByPeeringPagingPage(resourceGroupName, peeringName, options, settings);
|
|
@@ -4265,7 +4265,7 @@ class ReceivedRoutesImpl {
|
|
|
4265
4265
|
listByPeeringPagingPage(resourceGroupName, peeringName, options, settings) {
|
|
4266
4266
|
return tslib.__asyncGenerator(this, arguments, function* listByPeeringPagingPage_1() {
|
|
4267
4267
|
let result;
|
|
4268
|
-
let continuationToken = settings === null || settings ===
|
|
4268
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4269
4269
|
if (!continuationToken) {
|
|
4270
4270
|
result = yield tslib.__await(this._listByPeering(resourceGroupName, peeringName, options));
|
|
4271
4271
|
let page = result.value || [];
|
|
@@ -4416,7 +4416,7 @@ class ConnectionMonitorTestsImpl {
|
|
|
4416
4416
|
return this;
|
|
4417
4417
|
},
|
|
4418
4418
|
byPage: (settings) => {
|
|
4419
|
-
if (settings === null || settings ===
|
|
4419
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4420
4420
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4421
4421
|
}
|
|
4422
4422
|
return this.listByPeeringServicePagingPage(resourceGroupName, peeringServiceName, options, settings);
|
|
@@ -4426,7 +4426,7 @@ class ConnectionMonitorTestsImpl {
|
|
|
4426
4426
|
listByPeeringServicePagingPage(resourceGroupName, peeringServiceName, options, settings) {
|
|
4427
4427
|
return tslib.__asyncGenerator(this, arguments, function* listByPeeringServicePagingPage_1() {
|
|
4428
4428
|
let result;
|
|
4429
|
-
let continuationToken = settings === null || settings ===
|
|
4429
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4430
4430
|
if (!continuationToken) {
|
|
4431
4431
|
result = yield tslib.__await(this._listByPeeringService(resourceGroupName, peeringServiceName, options));
|
|
4432
4432
|
let page = result.value || [];
|
|
@@ -4680,7 +4680,7 @@ class PeeringServiceCountriesImpl {
|
|
|
4680
4680
|
return this;
|
|
4681
4681
|
},
|
|
4682
4682
|
byPage: (settings) => {
|
|
4683
|
-
if (settings === null || settings ===
|
|
4683
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4684
4684
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4685
4685
|
}
|
|
4686
4686
|
return this.listPagingPage(options, settings);
|
|
@@ -4690,7 +4690,7 @@ class PeeringServiceCountriesImpl {
|
|
|
4690
4690
|
listPagingPage(options, settings) {
|
|
4691
4691
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4692
4692
|
let result;
|
|
4693
|
-
let continuationToken = settings === null || settings ===
|
|
4693
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4694
4694
|
if (!continuationToken) {
|
|
4695
4695
|
result = yield tslib.__await(this._list(options));
|
|
4696
4696
|
let page = result.value || [];
|
|
@@ -4813,7 +4813,7 @@ class PeeringServiceLocationsImpl {
|
|
|
4813
4813
|
return this;
|
|
4814
4814
|
},
|
|
4815
4815
|
byPage: (settings) => {
|
|
4816
|
-
if (settings === null || settings ===
|
|
4816
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4817
4817
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4818
4818
|
}
|
|
4819
4819
|
return this.listPagingPage(options, settings);
|
|
@@ -4823,7 +4823,7 @@ class PeeringServiceLocationsImpl {
|
|
|
4823
4823
|
listPagingPage(options, settings) {
|
|
4824
4824
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4825
4825
|
let result;
|
|
4826
|
-
let continuationToken = settings === null || settings ===
|
|
4826
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4827
4827
|
if (!continuationToken) {
|
|
4828
4828
|
result = yield tslib.__await(this._list(options));
|
|
4829
4829
|
let page = result.value || [];
|
|
@@ -4948,7 +4948,7 @@ class PrefixesImpl {
|
|
|
4948
4948
|
return this;
|
|
4949
4949
|
},
|
|
4950
4950
|
byPage: (settings) => {
|
|
4951
|
-
if (settings === null || settings ===
|
|
4951
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4952
4952
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4953
4953
|
}
|
|
4954
4954
|
return this.listByPeeringServicePagingPage(resourceGroupName, peeringServiceName, options, settings);
|
|
@@ -4958,7 +4958,7 @@ class PrefixesImpl {
|
|
|
4958
4958
|
listByPeeringServicePagingPage(resourceGroupName, peeringServiceName, options, settings) {
|
|
4959
4959
|
return tslib.__asyncGenerator(this, arguments, function* listByPeeringServicePagingPage_1() {
|
|
4960
4960
|
let result;
|
|
4961
|
-
let continuationToken = settings === null || settings ===
|
|
4961
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4962
4962
|
if (!continuationToken) {
|
|
4963
4963
|
result = yield tslib.__await(this._listByPeeringService(resourceGroupName, peeringServiceName, options));
|
|
4964
4964
|
let page = result.value || [];
|
|
@@ -5202,7 +5202,7 @@ class PeeringServiceProvidersImpl {
|
|
|
5202
5202
|
return this;
|
|
5203
5203
|
},
|
|
5204
5204
|
byPage: (settings) => {
|
|
5205
|
-
if (settings === null || settings ===
|
|
5205
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5206
5206
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5207
5207
|
}
|
|
5208
5208
|
return this.listPagingPage(options, settings);
|
|
@@ -5212,7 +5212,7 @@ class PeeringServiceProvidersImpl {
|
|
|
5212
5212
|
listPagingPage(options, settings) {
|
|
5213
5213
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5214
5214
|
let result;
|
|
5215
|
-
let continuationToken = settings === null || settings ===
|
|
5215
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
5216
5216
|
if (!continuationToken) {
|
|
5217
5217
|
result = yield tslib.__await(this._list(options));
|
|
5218
5218
|
let page = result.value || [];
|
|
@@ -5336,7 +5336,7 @@ class PeeringServicesImpl {
|
|
|
5336
5336
|
return this;
|
|
5337
5337
|
},
|
|
5338
5338
|
byPage: (settings) => {
|
|
5339
|
-
if (settings === null || settings ===
|
|
5339
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5340
5340
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5341
5341
|
}
|
|
5342
5342
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -5346,7 +5346,7 @@ class PeeringServicesImpl {
|
|
|
5346
5346
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
5347
5347
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
5348
5348
|
let result;
|
|
5349
|
-
let continuationToken = settings === null || settings ===
|
|
5349
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
5350
5350
|
if (!continuationToken) {
|
|
5351
5351
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
5352
5352
|
let page = result.value || [];
|
|
@@ -5397,7 +5397,7 @@ class PeeringServicesImpl {
|
|
|
5397
5397
|
return this;
|
|
5398
5398
|
},
|
|
5399
5399
|
byPage: (settings) => {
|
|
5400
|
-
if (settings === null || settings ===
|
|
5400
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5401
5401
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5402
5402
|
}
|
|
5403
5403
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -5407,7 +5407,7 @@ class PeeringServicesImpl {
|
|
|
5407
5407
|
listBySubscriptionPagingPage(options, settings) {
|
|
5408
5408
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
5409
5409
|
let result;
|
|
5410
|
-
let continuationToken = settings === null || settings ===
|
|
5410
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
5411
5411
|
if (!continuationToken) {
|
|
5412
5412
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
5413
5413
|
let page = result.value || [];
|
|
@@ -5746,10 +5746,10 @@ class PeeringManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
5746
5746
|
: `${packageDetails}`;
|
|
5747
5747
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
5748
5748
|
userAgentPrefix
|
|
5749
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
5749
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
|
|
5750
5750
|
super(optionsWithDefaults);
|
|
5751
5751
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
5752
|
-
if ((options === null || options ===
|
|
5752
|
+
if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
5753
5753
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
5754
5754
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
5755
5755
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -5763,7 +5763,7 @@ class PeeringManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
5763
5763
|
});
|
|
5764
5764
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
5765
5765
|
credential: credentials,
|
|
5766
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
5766
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
5767
5767
|
challengeCallbacks: {
|
|
5768
5768
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
5769
5769
|
}
|
|
@@ -5800,7 +5800,7 @@ class PeeringManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
5800
5800
|
const apiVersionPolicy = {
|
|
5801
5801
|
name: "CustomApiVersionPolicy",
|
|
5802
5802
|
sendRequest(request, next) {
|
|
5803
|
-
return tslib.__awaiter(this,
|
|
5803
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5804
5804
|
const param = request.url.split("?");
|
|
5805
5805
|
if (param.length > 1) {
|
|
5806
5806
|
const newParams = param[1].split("&").map((item) => {
|