@alicloud/cloudfw20171207 1.2.7 → 1.2.9
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/client.d.ts +232 -0
- package/dist/client.js +484 -0
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +606 -0
package/dist/client.js
CHANGED
|
@@ -1365,6 +1365,76 @@ class DescribeControlPolicyResponse extends $tea.Model {
|
|
|
1365
1365
|
}
|
|
1366
1366
|
}
|
|
1367
1367
|
exports.DescribeControlPolicyResponse = DescribeControlPolicyResponse;
|
|
1368
|
+
class DescribeDefaultIPSConfigRequest extends $tea.Model {
|
|
1369
|
+
constructor(map) {
|
|
1370
|
+
super(map);
|
|
1371
|
+
}
|
|
1372
|
+
static names() {
|
|
1373
|
+
return {
|
|
1374
|
+
lang: 'Lang',
|
|
1375
|
+
sourceIp: 'SourceIp',
|
|
1376
|
+
};
|
|
1377
|
+
}
|
|
1378
|
+
static types() {
|
|
1379
|
+
return {
|
|
1380
|
+
lang: 'string',
|
|
1381
|
+
sourceIp: 'string',
|
|
1382
|
+
};
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
exports.DescribeDefaultIPSConfigRequest = DescribeDefaultIPSConfigRequest;
|
|
1386
|
+
class DescribeDefaultIPSConfigResponseBody extends $tea.Model {
|
|
1387
|
+
constructor(map) {
|
|
1388
|
+
super(map);
|
|
1389
|
+
}
|
|
1390
|
+
static names() {
|
|
1391
|
+
return {
|
|
1392
|
+
aiRules: 'AiRules',
|
|
1393
|
+
basicRules: 'BasicRules',
|
|
1394
|
+
ctiRules: 'CtiRules',
|
|
1395
|
+
enableAllPatch: 'EnableAllPatch',
|
|
1396
|
+
enableDefault: 'EnableDefault',
|
|
1397
|
+
patchRules: 'PatchRules',
|
|
1398
|
+
requestId: 'RequestId',
|
|
1399
|
+
ruleClass: 'RuleClass',
|
|
1400
|
+
runMode: 'RunMode',
|
|
1401
|
+
};
|
|
1402
|
+
}
|
|
1403
|
+
static types() {
|
|
1404
|
+
return {
|
|
1405
|
+
aiRules: 'number',
|
|
1406
|
+
basicRules: 'number',
|
|
1407
|
+
ctiRules: 'number',
|
|
1408
|
+
enableAllPatch: 'number',
|
|
1409
|
+
enableDefault: 'number',
|
|
1410
|
+
patchRules: 'number',
|
|
1411
|
+
requestId: 'string',
|
|
1412
|
+
ruleClass: 'number',
|
|
1413
|
+
runMode: 'number',
|
|
1414
|
+
};
|
|
1415
|
+
}
|
|
1416
|
+
}
|
|
1417
|
+
exports.DescribeDefaultIPSConfigResponseBody = DescribeDefaultIPSConfigResponseBody;
|
|
1418
|
+
class DescribeDefaultIPSConfigResponse extends $tea.Model {
|
|
1419
|
+
constructor(map) {
|
|
1420
|
+
super(map);
|
|
1421
|
+
}
|
|
1422
|
+
static names() {
|
|
1423
|
+
return {
|
|
1424
|
+
headers: 'headers',
|
|
1425
|
+
statusCode: 'statusCode',
|
|
1426
|
+
body: 'body',
|
|
1427
|
+
};
|
|
1428
|
+
}
|
|
1429
|
+
static types() {
|
|
1430
|
+
return {
|
|
1431
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1432
|
+
statusCode: 'number',
|
|
1433
|
+
body: DescribeDefaultIPSConfigResponseBody,
|
|
1434
|
+
};
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
exports.DescribeDefaultIPSConfigResponse = DescribeDefaultIPSConfigResponse;
|
|
1368
1438
|
class DescribeDomainResolveRequest extends $tea.Model {
|
|
1369
1439
|
constructor(map) {
|
|
1370
1440
|
super(map);
|
|
@@ -2205,10 +2275,14 @@ class DescribeTrFirewallsV2DetailResponseBody extends $tea.Model {
|
|
|
2205
2275
|
firewallId: 'FirewallId',
|
|
2206
2276
|
firewallName: 'FirewallName',
|
|
2207
2277
|
firewallStatus: 'FirewallStatus',
|
|
2278
|
+
firewallSubnetCidr: 'FirewallSubnetCidr',
|
|
2208
2279
|
firewallSwitchStatus: 'FirewallSwitchStatus',
|
|
2280
|
+
firewallVpcCidr: 'FirewallVpcCidr',
|
|
2209
2281
|
regionNo: 'RegionNo',
|
|
2210
2282
|
requestId: 'RequestId',
|
|
2211
2283
|
routeMode: 'RouteMode',
|
|
2284
|
+
trAttachmentMasterCidr: 'TrAttachmentMasterCidr',
|
|
2285
|
+
trAttachmentSlaveCidr: 'TrAttachmentSlaveCidr',
|
|
2212
2286
|
transitRouterId: 'TransitRouterId',
|
|
2213
2287
|
};
|
|
2214
2288
|
}
|
|
@@ -2222,10 +2296,14 @@ class DescribeTrFirewallsV2DetailResponseBody extends $tea.Model {
|
|
|
2222
2296
|
firewallId: 'string',
|
|
2223
2297
|
firewallName: 'string',
|
|
2224
2298
|
firewallStatus: 'string',
|
|
2299
|
+
firewallSubnetCidr: 'string',
|
|
2225
2300
|
firewallSwitchStatus: 'string',
|
|
2301
|
+
firewallVpcCidr: 'string',
|
|
2226
2302
|
regionNo: 'string',
|
|
2227
2303
|
requestId: 'string',
|
|
2228
2304
|
routeMode: 'string',
|
|
2305
|
+
trAttachmentMasterCidr: 'string',
|
|
2306
|
+
trAttachmentSlaveCidr: 'string',
|
|
2229
2307
|
transitRouterId: 'string',
|
|
2230
2308
|
};
|
|
2231
2309
|
}
|
|
@@ -2461,6 +2539,64 @@ class DescribeUserAssetIPTrafficInfoResponse extends $tea.Model {
|
|
|
2461
2539
|
}
|
|
2462
2540
|
}
|
|
2463
2541
|
exports.DescribeUserAssetIPTrafficInfoResponse = DescribeUserAssetIPTrafficInfoResponse;
|
|
2542
|
+
class DescribeUserIPSWhitelistRequest extends $tea.Model {
|
|
2543
|
+
constructor(map) {
|
|
2544
|
+
super(map);
|
|
2545
|
+
}
|
|
2546
|
+
static names() {
|
|
2547
|
+
return {
|
|
2548
|
+
lang: 'Lang',
|
|
2549
|
+
sourceIp: 'SourceIp',
|
|
2550
|
+
};
|
|
2551
|
+
}
|
|
2552
|
+
static types() {
|
|
2553
|
+
return {
|
|
2554
|
+
lang: 'string',
|
|
2555
|
+
sourceIp: 'string',
|
|
2556
|
+
};
|
|
2557
|
+
}
|
|
2558
|
+
}
|
|
2559
|
+
exports.DescribeUserIPSWhitelistRequest = DescribeUserIPSWhitelistRequest;
|
|
2560
|
+
class DescribeUserIPSWhitelistResponseBody extends $tea.Model {
|
|
2561
|
+
constructor(map) {
|
|
2562
|
+
super(map);
|
|
2563
|
+
}
|
|
2564
|
+
static names() {
|
|
2565
|
+
return {
|
|
2566
|
+
ipv6Whitelists: 'Ipv6Whitelists',
|
|
2567
|
+
requestId: 'RequestId',
|
|
2568
|
+
whitelists: 'Whitelists',
|
|
2569
|
+
};
|
|
2570
|
+
}
|
|
2571
|
+
static types() {
|
|
2572
|
+
return {
|
|
2573
|
+
ipv6Whitelists: { 'type': 'array', 'itemType': DescribeUserIPSWhitelistResponseBodyIpv6Whitelists },
|
|
2574
|
+
requestId: 'string',
|
|
2575
|
+
whitelists: { 'type': 'array', 'itemType': DescribeUserIPSWhitelistResponseBodyWhitelists },
|
|
2576
|
+
};
|
|
2577
|
+
}
|
|
2578
|
+
}
|
|
2579
|
+
exports.DescribeUserIPSWhitelistResponseBody = DescribeUserIPSWhitelistResponseBody;
|
|
2580
|
+
class DescribeUserIPSWhitelistResponse extends $tea.Model {
|
|
2581
|
+
constructor(map) {
|
|
2582
|
+
super(map);
|
|
2583
|
+
}
|
|
2584
|
+
static names() {
|
|
2585
|
+
return {
|
|
2586
|
+
headers: 'headers',
|
|
2587
|
+
statusCode: 'statusCode',
|
|
2588
|
+
body: 'body',
|
|
2589
|
+
};
|
|
2590
|
+
}
|
|
2591
|
+
static types() {
|
|
2592
|
+
return {
|
|
2593
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2594
|
+
statusCode: 'number',
|
|
2595
|
+
body: DescribeUserIPSWhitelistResponseBody,
|
|
2596
|
+
};
|
|
2597
|
+
}
|
|
2598
|
+
}
|
|
2599
|
+
exports.DescribeUserIPSWhitelistResponse = DescribeUserIPSWhitelistResponse;
|
|
2464
2600
|
class DescribeVpcFirewallAclGroupListRequest extends $tea.Model {
|
|
2465
2601
|
constructor(map) {
|
|
2466
2602
|
super(map);
|
|
@@ -3317,6 +3453,76 @@ class ModifyControlPolicyPositionResponse extends $tea.Model {
|
|
|
3317
3453
|
}
|
|
3318
3454
|
}
|
|
3319
3455
|
exports.ModifyControlPolicyPositionResponse = ModifyControlPolicyPositionResponse;
|
|
3456
|
+
class ModifyDefaultIPSConfigRequest extends $tea.Model {
|
|
3457
|
+
constructor(map) {
|
|
3458
|
+
super(map);
|
|
3459
|
+
}
|
|
3460
|
+
static names() {
|
|
3461
|
+
return {
|
|
3462
|
+
aiRules: 'AiRules',
|
|
3463
|
+
basicRules: 'BasicRules',
|
|
3464
|
+
ctiRules: 'CtiRules',
|
|
3465
|
+
enableAllPatch: 'EnableAllPatch',
|
|
3466
|
+
enableDefault: 'EnableDefault',
|
|
3467
|
+
lang: 'Lang',
|
|
3468
|
+
patchRules: 'PatchRules',
|
|
3469
|
+
ruleClass: 'RuleClass',
|
|
3470
|
+
runMode: 'RunMode',
|
|
3471
|
+
sourceIp: 'SourceIp',
|
|
3472
|
+
};
|
|
3473
|
+
}
|
|
3474
|
+
static types() {
|
|
3475
|
+
return {
|
|
3476
|
+
aiRules: 'string',
|
|
3477
|
+
basicRules: 'string',
|
|
3478
|
+
ctiRules: 'string',
|
|
3479
|
+
enableAllPatch: 'string',
|
|
3480
|
+
enableDefault: 'string',
|
|
3481
|
+
lang: 'string',
|
|
3482
|
+
patchRules: 'string',
|
|
3483
|
+
ruleClass: 'string',
|
|
3484
|
+
runMode: 'string',
|
|
3485
|
+
sourceIp: 'string',
|
|
3486
|
+
};
|
|
3487
|
+
}
|
|
3488
|
+
}
|
|
3489
|
+
exports.ModifyDefaultIPSConfigRequest = ModifyDefaultIPSConfigRequest;
|
|
3490
|
+
class ModifyDefaultIPSConfigResponseBody extends $tea.Model {
|
|
3491
|
+
constructor(map) {
|
|
3492
|
+
super(map);
|
|
3493
|
+
}
|
|
3494
|
+
static names() {
|
|
3495
|
+
return {
|
|
3496
|
+
requestId: 'RequestId',
|
|
3497
|
+
};
|
|
3498
|
+
}
|
|
3499
|
+
static types() {
|
|
3500
|
+
return {
|
|
3501
|
+
requestId: 'string',
|
|
3502
|
+
};
|
|
3503
|
+
}
|
|
3504
|
+
}
|
|
3505
|
+
exports.ModifyDefaultIPSConfigResponseBody = ModifyDefaultIPSConfigResponseBody;
|
|
3506
|
+
class ModifyDefaultIPSConfigResponse extends $tea.Model {
|
|
3507
|
+
constructor(map) {
|
|
3508
|
+
super(map);
|
|
3509
|
+
}
|
|
3510
|
+
static names() {
|
|
3511
|
+
return {
|
|
3512
|
+
headers: 'headers',
|
|
3513
|
+
statusCode: 'statusCode',
|
|
3514
|
+
body: 'body',
|
|
3515
|
+
};
|
|
3516
|
+
}
|
|
3517
|
+
static types() {
|
|
3518
|
+
return {
|
|
3519
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3520
|
+
statusCode: 'number',
|
|
3521
|
+
body: ModifyDefaultIPSConfigResponseBody,
|
|
3522
|
+
};
|
|
3523
|
+
}
|
|
3524
|
+
}
|
|
3525
|
+
exports.ModifyDefaultIPSConfigResponse = ModifyDefaultIPSConfigResponse;
|
|
3320
3526
|
class ModifyFirewallV2RoutePolicySwitchRequest extends $tea.Model {
|
|
3321
3527
|
constructor(map) {
|
|
3322
3528
|
super(map);
|
|
@@ -3627,6 +3833,70 @@ class ModifyTrFirewallV2RoutePolicyScopeResponse extends $tea.Model {
|
|
|
3627
3833
|
}
|
|
3628
3834
|
}
|
|
3629
3835
|
exports.ModifyTrFirewallV2RoutePolicyScopeResponse = ModifyTrFirewallV2RoutePolicyScopeResponse;
|
|
3836
|
+
class ModifyUserIPSWhitelistRequest extends $tea.Model {
|
|
3837
|
+
constructor(map) {
|
|
3838
|
+
super(map);
|
|
3839
|
+
}
|
|
3840
|
+
static names() {
|
|
3841
|
+
return {
|
|
3842
|
+
direction: 'Direction',
|
|
3843
|
+
ipVersion: 'IpVersion',
|
|
3844
|
+
lang: 'Lang',
|
|
3845
|
+
listType: 'ListType',
|
|
3846
|
+
listValue: 'ListValue',
|
|
3847
|
+
sourceIp: 'SourceIp',
|
|
3848
|
+
whiteType: 'WhiteType',
|
|
3849
|
+
};
|
|
3850
|
+
}
|
|
3851
|
+
static types() {
|
|
3852
|
+
return {
|
|
3853
|
+
direction: 'number',
|
|
3854
|
+
ipVersion: 'string',
|
|
3855
|
+
lang: 'string',
|
|
3856
|
+
listType: 'number',
|
|
3857
|
+
listValue: 'string',
|
|
3858
|
+
sourceIp: 'string',
|
|
3859
|
+
whiteType: 'number',
|
|
3860
|
+
};
|
|
3861
|
+
}
|
|
3862
|
+
}
|
|
3863
|
+
exports.ModifyUserIPSWhitelistRequest = ModifyUserIPSWhitelistRequest;
|
|
3864
|
+
class ModifyUserIPSWhitelistResponseBody extends $tea.Model {
|
|
3865
|
+
constructor(map) {
|
|
3866
|
+
super(map);
|
|
3867
|
+
}
|
|
3868
|
+
static names() {
|
|
3869
|
+
return {
|
|
3870
|
+
requestId: 'RequestId',
|
|
3871
|
+
};
|
|
3872
|
+
}
|
|
3873
|
+
static types() {
|
|
3874
|
+
return {
|
|
3875
|
+
requestId: 'string',
|
|
3876
|
+
};
|
|
3877
|
+
}
|
|
3878
|
+
}
|
|
3879
|
+
exports.ModifyUserIPSWhitelistResponseBody = ModifyUserIPSWhitelistResponseBody;
|
|
3880
|
+
class ModifyUserIPSWhitelistResponse extends $tea.Model {
|
|
3881
|
+
constructor(map) {
|
|
3882
|
+
super(map);
|
|
3883
|
+
}
|
|
3884
|
+
static names() {
|
|
3885
|
+
return {
|
|
3886
|
+
headers: 'headers',
|
|
3887
|
+
statusCode: 'statusCode',
|
|
3888
|
+
body: 'body',
|
|
3889
|
+
};
|
|
3890
|
+
}
|
|
3891
|
+
static types() {
|
|
3892
|
+
return {
|
|
3893
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3894
|
+
statusCode: 'number',
|
|
3895
|
+
body: ModifyUserIPSWhitelistResponseBody,
|
|
3896
|
+
};
|
|
3897
|
+
}
|
|
3898
|
+
}
|
|
3899
|
+
exports.ModifyUserIPSWhitelistResponse = ModifyUserIPSWhitelistResponse;
|
|
3630
3900
|
class ModifyVpcFirewallCenConfigureRequest extends $tea.Model {
|
|
3631
3901
|
constructor(map) {
|
|
3632
3902
|
super(map);
|
|
@@ -3891,6 +4161,7 @@ class ModifyVpcFirewallControlPolicyPositionRequest extends $tea.Model {
|
|
|
3891
4161
|
}
|
|
3892
4162
|
static names() {
|
|
3893
4163
|
return {
|
|
4164
|
+
aclUuid: 'AclUuid',
|
|
3894
4165
|
lang: 'Lang',
|
|
3895
4166
|
newOrder: 'NewOrder',
|
|
3896
4167
|
oldOrder: 'OldOrder',
|
|
@@ -3899,6 +4170,7 @@ class ModifyVpcFirewallControlPolicyPositionRequest extends $tea.Model {
|
|
|
3899
4170
|
}
|
|
3900
4171
|
static types() {
|
|
3901
4172
|
return {
|
|
4173
|
+
aclUuid: 'string',
|
|
3902
4174
|
lang: 'string',
|
|
3903
4175
|
newOrder: 'string',
|
|
3904
4176
|
oldOrder: 'string',
|
|
@@ -5345,6 +5617,54 @@ class DescribeTrFirewallsV2RouteListResponseBodyFirewallRouteDetailList extends
|
|
|
5345
5617
|
}
|
|
5346
5618
|
}
|
|
5347
5619
|
exports.DescribeTrFirewallsV2RouteListResponseBodyFirewallRouteDetailList = DescribeTrFirewallsV2RouteListResponseBodyFirewallRouteDetailList;
|
|
5620
|
+
class DescribeUserIPSWhitelistResponseBodyIpv6Whitelists extends $tea.Model {
|
|
5621
|
+
constructor(map) {
|
|
5622
|
+
super(map);
|
|
5623
|
+
}
|
|
5624
|
+
static names() {
|
|
5625
|
+
return {
|
|
5626
|
+
direction: 'Direction',
|
|
5627
|
+
listType: 'ListType',
|
|
5628
|
+
listValue: 'ListValue',
|
|
5629
|
+
whiteListValue: 'WhiteListValue',
|
|
5630
|
+
whiteType: 'WhiteType',
|
|
5631
|
+
};
|
|
5632
|
+
}
|
|
5633
|
+
static types() {
|
|
5634
|
+
return {
|
|
5635
|
+
direction: 'number',
|
|
5636
|
+
listType: 'number',
|
|
5637
|
+
listValue: 'string',
|
|
5638
|
+
whiteListValue: { 'type': 'array', 'itemType': 'string' },
|
|
5639
|
+
whiteType: 'number',
|
|
5640
|
+
};
|
|
5641
|
+
}
|
|
5642
|
+
}
|
|
5643
|
+
exports.DescribeUserIPSWhitelistResponseBodyIpv6Whitelists = DescribeUserIPSWhitelistResponseBodyIpv6Whitelists;
|
|
5644
|
+
class DescribeUserIPSWhitelistResponseBodyWhitelists extends $tea.Model {
|
|
5645
|
+
constructor(map) {
|
|
5646
|
+
super(map);
|
|
5647
|
+
}
|
|
5648
|
+
static names() {
|
|
5649
|
+
return {
|
|
5650
|
+
direction: 'Direction',
|
|
5651
|
+
listType: 'ListType',
|
|
5652
|
+
listValue: 'ListValue',
|
|
5653
|
+
whiteListValue: 'WhiteListValue',
|
|
5654
|
+
whiteType: 'WhiteType',
|
|
5655
|
+
};
|
|
5656
|
+
}
|
|
5657
|
+
static types() {
|
|
5658
|
+
return {
|
|
5659
|
+
direction: 'number',
|
|
5660
|
+
listType: 'number',
|
|
5661
|
+
listValue: 'string',
|
|
5662
|
+
whiteListValue: { 'type': 'array', 'itemType': 'string' },
|
|
5663
|
+
whiteType: 'number',
|
|
5664
|
+
};
|
|
5665
|
+
}
|
|
5666
|
+
}
|
|
5667
|
+
exports.DescribeUserIPSWhitelistResponseBodyWhitelists = DescribeUserIPSWhitelistResponseBodyWhitelists;
|
|
5348
5668
|
class DescribeVpcFirewallAclGroupListResponseBodyAclGroupList extends $tea.Model {
|
|
5349
5669
|
constructor(map) {
|
|
5350
5670
|
super(map);
|
|
@@ -7354,6 +7674,35 @@ class Client extends openapi_client_1.default {
|
|
|
7354
7674
|
let runtime = new $Util.RuntimeOptions({});
|
|
7355
7675
|
return await this.describeControlPolicyWithOptions(request, runtime);
|
|
7356
7676
|
}
|
|
7677
|
+
async describeDefaultIPSConfigWithOptions(request, runtime) {
|
|
7678
|
+
tea_util_1.default.validateModel(request);
|
|
7679
|
+
let query = {};
|
|
7680
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
7681
|
+
query["Lang"] = request.lang;
|
|
7682
|
+
}
|
|
7683
|
+
if (!tea_util_1.default.isUnset(request.sourceIp)) {
|
|
7684
|
+
query["SourceIp"] = request.sourceIp;
|
|
7685
|
+
}
|
|
7686
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
7687
|
+
query: openapi_util_1.default.query(query),
|
|
7688
|
+
});
|
|
7689
|
+
let params = new $OpenApi.Params({
|
|
7690
|
+
action: "DescribeDefaultIPSConfig",
|
|
7691
|
+
version: "2017-12-07",
|
|
7692
|
+
protocol: "HTTPS",
|
|
7693
|
+
pathname: "/",
|
|
7694
|
+
method: "POST",
|
|
7695
|
+
authType: "AK",
|
|
7696
|
+
style: "RPC",
|
|
7697
|
+
reqBodyType: "formData",
|
|
7698
|
+
bodyType: "json",
|
|
7699
|
+
});
|
|
7700
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeDefaultIPSConfigResponse({}));
|
|
7701
|
+
}
|
|
7702
|
+
async describeDefaultIPSConfig(request) {
|
|
7703
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
7704
|
+
return await this.describeDefaultIPSConfigWithOptions(request, runtime);
|
|
7705
|
+
}
|
|
7357
7706
|
/**
|
|
7358
7707
|
* You can call the DescribeDomainResolve operation to query the DNS record of a domain name. This operation can retrieve DNS records only from Alibaba Cloud DNS. Before you can call this operation, make sure that your domain name is hosted on Alibaba Cloud DNS.
|
|
7359
7708
|
* ## Limits
|
|
@@ -8135,6 +8484,38 @@ class Client extends openapi_client_1.default {
|
|
|
8135
8484
|
let runtime = new $Util.RuntimeOptions({});
|
|
8136
8485
|
return await this.describeUserAssetIPTrafficInfoWithOptions(request, runtime);
|
|
8137
8486
|
}
|
|
8487
|
+
async describeUserIPSWhitelistWithOptions(request, runtime) {
|
|
8488
|
+
tea_util_1.default.validateModel(request);
|
|
8489
|
+
let query = {};
|
|
8490
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
8491
|
+
query["Lang"] = request.lang;
|
|
8492
|
+
}
|
|
8493
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
8494
|
+
query["Lang"] = request.lang;
|
|
8495
|
+
}
|
|
8496
|
+
if (!tea_util_1.default.isUnset(request.sourceIp)) {
|
|
8497
|
+
query["SourceIp"] = request.sourceIp;
|
|
8498
|
+
}
|
|
8499
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
8500
|
+
query: openapi_util_1.default.query(query),
|
|
8501
|
+
});
|
|
8502
|
+
let params = new $OpenApi.Params({
|
|
8503
|
+
action: "DescribeUserIPSWhitelist",
|
|
8504
|
+
version: "2017-12-07",
|
|
8505
|
+
protocol: "HTTPS",
|
|
8506
|
+
pathname: "/",
|
|
8507
|
+
method: "POST",
|
|
8508
|
+
authType: "AK",
|
|
8509
|
+
style: "RPC",
|
|
8510
|
+
reqBodyType: "formData",
|
|
8511
|
+
bodyType: "json",
|
|
8512
|
+
});
|
|
8513
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeUserIPSWhitelistResponse({}));
|
|
8514
|
+
}
|
|
8515
|
+
async describeUserIPSWhitelist(request) {
|
|
8516
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
8517
|
+
return await this.describeUserIPSWhitelistWithOptions(request, runtime);
|
|
8518
|
+
}
|
|
8138
8519
|
/**
|
|
8139
8520
|
* You can call the DescribeVpcFirewallAclGroupList operation to query the information about all policy groups of access control policies that are created for VPC firewalls.
|
|
8140
8521
|
* ## Limits
|
|
@@ -8912,6 +9293,59 @@ class Client extends openapi_client_1.default {
|
|
|
8912
9293
|
let runtime = new $Util.RuntimeOptions({});
|
|
8913
9294
|
return await this.modifyControlPolicyPositionWithOptions(request, runtime);
|
|
8914
9295
|
}
|
|
9296
|
+
async modifyDefaultIPSConfigWithOptions(request, runtime) {
|
|
9297
|
+
tea_util_1.default.validateModel(request);
|
|
9298
|
+
let query = {};
|
|
9299
|
+
if (!tea_util_1.default.isUnset(request.aiRules)) {
|
|
9300
|
+
query["AiRules"] = request.aiRules;
|
|
9301
|
+
}
|
|
9302
|
+
if (!tea_util_1.default.isUnset(request.basicRules)) {
|
|
9303
|
+
query["BasicRules"] = request.basicRules;
|
|
9304
|
+
}
|
|
9305
|
+
if (!tea_util_1.default.isUnset(request.ctiRules)) {
|
|
9306
|
+
query["CtiRules"] = request.ctiRules;
|
|
9307
|
+
}
|
|
9308
|
+
if (!tea_util_1.default.isUnset(request.enableAllPatch)) {
|
|
9309
|
+
query["EnableAllPatch"] = request.enableAllPatch;
|
|
9310
|
+
}
|
|
9311
|
+
if (!tea_util_1.default.isUnset(request.enableDefault)) {
|
|
9312
|
+
query["EnableDefault"] = request.enableDefault;
|
|
9313
|
+
}
|
|
9314
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
9315
|
+
query["Lang"] = request.lang;
|
|
9316
|
+
}
|
|
9317
|
+
if (!tea_util_1.default.isUnset(request.patchRules)) {
|
|
9318
|
+
query["PatchRules"] = request.patchRules;
|
|
9319
|
+
}
|
|
9320
|
+
if (!tea_util_1.default.isUnset(request.ruleClass)) {
|
|
9321
|
+
query["RuleClass"] = request.ruleClass;
|
|
9322
|
+
}
|
|
9323
|
+
if (!tea_util_1.default.isUnset(request.runMode)) {
|
|
9324
|
+
query["RunMode"] = request.runMode;
|
|
9325
|
+
}
|
|
9326
|
+
if (!tea_util_1.default.isUnset(request.sourceIp)) {
|
|
9327
|
+
query["SourceIp"] = request.sourceIp;
|
|
9328
|
+
}
|
|
9329
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
9330
|
+
query: openapi_util_1.default.query(query),
|
|
9331
|
+
});
|
|
9332
|
+
let params = new $OpenApi.Params({
|
|
9333
|
+
action: "ModifyDefaultIPSConfig",
|
|
9334
|
+
version: "2017-12-07",
|
|
9335
|
+
protocol: "HTTPS",
|
|
9336
|
+
pathname: "/",
|
|
9337
|
+
method: "POST",
|
|
9338
|
+
authType: "AK",
|
|
9339
|
+
style: "RPC",
|
|
9340
|
+
reqBodyType: "formData",
|
|
9341
|
+
bodyType: "json",
|
|
9342
|
+
});
|
|
9343
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyDefaultIPSConfigResponse({}));
|
|
9344
|
+
}
|
|
9345
|
+
async modifyDefaultIPSConfig(request) {
|
|
9346
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
9347
|
+
return await this.modifyDefaultIPSConfigWithOptions(request, runtime);
|
|
9348
|
+
}
|
|
8915
9349
|
async modifyFirewallV2RoutePolicySwitchWithOptions(request, runtime) {
|
|
8916
9350
|
tea_util_1.default.validateModel(request);
|
|
8917
9351
|
let query = {};
|
|
@@ -9120,6 +9554,53 @@ class Client extends openapi_client_1.default {
|
|
|
9120
9554
|
let runtime = new $Util.RuntimeOptions({});
|
|
9121
9555
|
return await this.modifyTrFirewallV2RoutePolicyScopeWithOptions(request, runtime);
|
|
9122
9556
|
}
|
|
9557
|
+
async modifyUserIPSWhitelistWithOptions(request, runtime) {
|
|
9558
|
+
tea_util_1.default.validateModel(request);
|
|
9559
|
+
let query = {};
|
|
9560
|
+
if (!tea_util_1.default.isUnset(request.direction)) {
|
|
9561
|
+
query["Direction"] = request.direction;
|
|
9562
|
+
}
|
|
9563
|
+
if (!tea_util_1.default.isUnset(request.ipVersion)) {
|
|
9564
|
+
query["IpVersion"] = request.ipVersion;
|
|
9565
|
+
}
|
|
9566
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
9567
|
+
query["Lang"] = request.lang;
|
|
9568
|
+
}
|
|
9569
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
9570
|
+
query["Lang"] = request.lang;
|
|
9571
|
+
}
|
|
9572
|
+
if (!tea_util_1.default.isUnset(request.listType)) {
|
|
9573
|
+
query["ListType"] = request.listType;
|
|
9574
|
+
}
|
|
9575
|
+
if (!tea_util_1.default.isUnset(request.listValue)) {
|
|
9576
|
+
query["ListValue"] = request.listValue;
|
|
9577
|
+
}
|
|
9578
|
+
if (!tea_util_1.default.isUnset(request.sourceIp)) {
|
|
9579
|
+
query["SourceIp"] = request.sourceIp;
|
|
9580
|
+
}
|
|
9581
|
+
if (!tea_util_1.default.isUnset(request.whiteType)) {
|
|
9582
|
+
query["WhiteType"] = request.whiteType;
|
|
9583
|
+
}
|
|
9584
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
9585
|
+
query: openapi_util_1.default.query(query),
|
|
9586
|
+
});
|
|
9587
|
+
let params = new $OpenApi.Params({
|
|
9588
|
+
action: "ModifyUserIPSWhitelist",
|
|
9589
|
+
version: "2017-12-07",
|
|
9590
|
+
protocol: "HTTPS",
|
|
9591
|
+
pathname: "/",
|
|
9592
|
+
method: "POST",
|
|
9593
|
+
authType: "AK",
|
|
9594
|
+
style: "RPC",
|
|
9595
|
+
reqBodyType: "formData",
|
|
9596
|
+
bodyType: "json",
|
|
9597
|
+
});
|
|
9598
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyUserIPSWhitelistResponse({}));
|
|
9599
|
+
}
|
|
9600
|
+
async modifyUserIPSWhitelist(request) {
|
|
9601
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
9602
|
+
return await this.modifyUserIPSWhitelistWithOptions(request, runtime);
|
|
9603
|
+
}
|
|
9123
9604
|
/**
|
|
9124
9605
|
* You can call the ModifyVpcFirewallCenConfigure operation to modify the configurations of a VPC firewall. The VPC firewall protects mutual access traffic between a VPC and a specified network instance that is attached to a CEN instance. The network instance can be a VPC, a virtual border router (VBR), or a Cloud Connect Network (CCN) instance. Before you call this operation, make sure that you have created a VPC firewall by calling the [CreateVpcFirewallCenConfigure](~~345772~~) operation.
|
|
9125
9606
|
* ## Limits
|
|
@@ -9381,6 +9862,9 @@ class Client extends openapi_client_1.default {
|
|
|
9381
9862
|
async modifyVpcFirewallControlPolicyPositionWithOptions(request, runtime) {
|
|
9382
9863
|
tea_util_1.default.validateModel(request);
|
|
9383
9864
|
let query = {};
|
|
9865
|
+
if (!tea_util_1.default.isUnset(request.aclUuid)) {
|
|
9866
|
+
query["AclUuid"] = request.aclUuid;
|
|
9867
|
+
}
|
|
9384
9868
|
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
9385
9869
|
query["Lang"] = request.lang;
|
|
9386
9870
|
}
|