@alicloud/cloudfw20171207 1.2.7 → 1.2.8
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 +227 -0
- package/dist/client.js +471 -0
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +587 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/cloudfw20171207",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/client.js",
|
|
6
6
|
"scripts": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@alicloud/tea-typescript": "^1.7.1",
|
|
23
|
-
"@alicloud/tea-util": "^1.4.
|
|
23
|
+
"@alicloud/tea-util": "^1.4.7",
|
|
24
24
|
"@alicloud/openapi-client": "^0.4.4",
|
|
25
25
|
"@alicloud/openapi-util": "^0.3.1",
|
|
26
26
|
"@alicloud/endpoint-util": "^0.0.1"
|
package/src/client.ts
CHANGED
|
@@ -1722,6 +1722,96 @@ export class DescribeControlPolicyResponse extends $tea.Model {
|
|
|
1722
1722
|
}
|
|
1723
1723
|
}
|
|
1724
1724
|
|
|
1725
|
+
export class DescribeDefaultIPSConfigRequest extends $tea.Model {
|
|
1726
|
+
lang?: string;
|
|
1727
|
+
sourceIp?: string;
|
|
1728
|
+
static names(): { [key: string]: string } {
|
|
1729
|
+
return {
|
|
1730
|
+
lang: 'Lang',
|
|
1731
|
+
sourceIp: 'SourceIp',
|
|
1732
|
+
};
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
static types(): { [key: string]: any } {
|
|
1736
|
+
return {
|
|
1737
|
+
lang: 'string',
|
|
1738
|
+
sourceIp: 'string',
|
|
1739
|
+
};
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
constructor(map?: { [key: string]: any }) {
|
|
1743
|
+
super(map);
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
export class DescribeDefaultIPSConfigResponseBody extends $tea.Model {
|
|
1748
|
+
aiRules?: number;
|
|
1749
|
+
basicRules?: number;
|
|
1750
|
+
ctiRules?: number;
|
|
1751
|
+
enableAllPatch?: number;
|
|
1752
|
+
enableDefault?: number;
|
|
1753
|
+
patchRules?: number;
|
|
1754
|
+
requestId?: string;
|
|
1755
|
+
ruleClass?: number;
|
|
1756
|
+
runMode?: number;
|
|
1757
|
+
static names(): { [key: string]: string } {
|
|
1758
|
+
return {
|
|
1759
|
+
aiRules: 'AiRules',
|
|
1760
|
+
basicRules: 'BasicRules',
|
|
1761
|
+
ctiRules: 'CtiRules',
|
|
1762
|
+
enableAllPatch: 'EnableAllPatch',
|
|
1763
|
+
enableDefault: 'EnableDefault',
|
|
1764
|
+
patchRules: 'PatchRules',
|
|
1765
|
+
requestId: 'RequestId',
|
|
1766
|
+
ruleClass: 'RuleClass',
|
|
1767
|
+
runMode: 'RunMode',
|
|
1768
|
+
};
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1771
|
+
static types(): { [key: string]: any } {
|
|
1772
|
+
return {
|
|
1773
|
+
aiRules: 'number',
|
|
1774
|
+
basicRules: 'number',
|
|
1775
|
+
ctiRules: 'number',
|
|
1776
|
+
enableAllPatch: 'number',
|
|
1777
|
+
enableDefault: 'number',
|
|
1778
|
+
patchRules: 'number',
|
|
1779
|
+
requestId: 'string',
|
|
1780
|
+
ruleClass: 'number',
|
|
1781
|
+
runMode: 'number',
|
|
1782
|
+
};
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
constructor(map?: { [key: string]: any }) {
|
|
1786
|
+
super(map);
|
|
1787
|
+
}
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1790
|
+
export class DescribeDefaultIPSConfigResponse extends $tea.Model {
|
|
1791
|
+
headers: { [key: string]: string };
|
|
1792
|
+
statusCode: number;
|
|
1793
|
+
body: DescribeDefaultIPSConfigResponseBody;
|
|
1794
|
+
static names(): { [key: string]: string } {
|
|
1795
|
+
return {
|
|
1796
|
+
headers: 'headers',
|
|
1797
|
+
statusCode: 'statusCode',
|
|
1798
|
+
body: 'body',
|
|
1799
|
+
};
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
static types(): { [key: string]: any } {
|
|
1803
|
+
return {
|
|
1804
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1805
|
+
statusCode: 'number',
|
|
1806
|
+
body: DescribeDefaultIPSConfigResponseBody,
|
|
1807
|
+
};
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
constructor(map?: { [key: string]: any }) {
|
|
1811
|
+
super(map);
|
|
1812
|
+
}
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1725
1815
|
export class DescribeDomainResolveRequest extends $tea.Model {
|
|
1726
1816
|
domain?: string;
|
|
1727
1817
|
ipVersion?: string;
|
|
@@ -3141,6 +3231,78 @@ export class DescribeUserAssetIPTrafficInfoResponse extends $tea.Model {
|
|
|
3141
3231
|
}
|
|
3142
3232
|
}
|
|
3143
3233
|
|
|
3234
|
+
export class DescribeUserIPSWhitelistRequest extends $tea.Model {
|
|
3235
|
+
lang?: string;
|
|
3236
|
+
sourceIp?: string;
|
|
3237
|
+
static names(): { [key: string]: string } {
|
|
3238
|
+
return {
|
|
3239
|
+
lang: 'Lang',
|
|
3240
|
+
sourceIp: 'SourceIp',
|
|
3241
|
+
};
|
|
3242
|
+
}
|
|
3243
|
+
|
|
3244
|
+
static types(): { [key: string]: any } {
|
|
3245
|
+
return {
|
|
3246
|
+
lang: 'string',
|
|
3247
|
+
sourceIp: 'string',
|
|
3248
|
+
};
|
|
3249
|
+
}
|
|
3250
|
+
|
|
3251
|
+
constructor(map?: { [key: string]: any }) {
|
|
3252
|
+
super(map);
|
|
3253
|
+
}
|
|
3254
|
+
}
|
|
3255
|
+
|
|
3256
|
+
export class DescribeUserIPSWhitelistResponseBody extends $tea.Model {
|
|
3257
|
+
ipv6Whitelists?: DescribeUserIPSWhitelistResponseBodyIpv6Whitelists[];
|
|
3258
|
+
requestId?: string;
|
|
3259
|
+
whitelists?: DescribeUserIPSWhitelistResponseBodyWhitelists[];
|
|
3260
|
+
static names(): { [key: string]: string } {
|
|
3261
|
+
return {
|
|
3262
|
+
ipv6Whitelists: 'Ipv6Whitelists',
|
|
3263
|
+
requestId: 'RequestId',
|
|
3264
|
+
whitelists: 'Whitelists',
|
|
3265
|
+
};
|
|
3266
|
+
}
|
|
3267
|
+
|
|
3268
|
+
static types(): { [key: string]: any } {
|
|
3269
|
+
return {
|
|
3270
|
+
ipv6Whitelists: { 'type': 'array', 'itemType': DescribeUserIPSWhitelistResponseBodyIpv6Whitelists },
|
|
3271
|
+
requestId: 'string',
|
|
3272
|
+
whitelists: { 'type': 'array', 'itemType': DescribeUserIPSWhitelistResponseBodyWhitelists },
|
|
3273
|
+
};
|
|
3274
|
+
}
|
|
3275
|
+
|
|
3276
|
+
constructor(map?: { [key: string]: any }) {
|
|
3277
|
+
super(map);
|
|
3278
|
+
}
|
|
3279
|
+
}
|
|
3280
|
+
|
|
3281
|
+
export class DescribeUserIPSWhitelistResponse extends $tea.Model {
|
|
3282
|
+
headers: { [key: string]: string };
|
|
3283
|
+
statusCode: number;
|
|
3284
|
+
body: DescribeUserIPSWhitelistResponseBody;
|
|
3285
|
+
static names(): { [key: string]: string } {
|
|
3286
|
+
return {
|
|
3287
|
+
headers: 'headers',
|
|
3288
|
+
statusCode: 'statusCode',
|
|
3289
|
+
body: 'body',
|
|
3290
|
+
};
|
|
3291
|
+
}
|
|
3292
|
+
|
|
3293
|
+
static types(): { [key: string]: any } {
|
|
3294
|
+
return {
|
|
3295
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3296
|
+
statusCode: 'number',
|
|
3297
|
+
body: DescribeUserIPSWhitelistResponseBody,
|
|
3298
|
+
};
|
|
3299
|
+
}
|
|
3300
|
+
|
|
3301
|
+
constructor(map?: { [key: string]: any }) {
|
|
3302
|
+
super(map);
|
|
3303
|
+
}
|
|
3304
|
+
}
|
|
3305
|
+
|
|
3144
3306
|
export class DescribeVpcFirewallAclGroupListRequest extends $tea.Model {
|
|
3145
3307
|
currentPage?: string;
|
|
3146
3308
|
firewallConfigureStatus?: string;
|
|
@@ -4245,6 +4407,96 @@ export class ModifyControlPolicyPositionResponse extends $tea.Model {
|
|
|
4245
4407
|
}
|
|
4246
4408
|
}
|
|
4247
4409
|
|
|
4410
|
+
export class ModifyDefaultIPSConfigRequest extends $tea.Model {
|
|
4411
|
+
aiRules?: string;
|
|
4412
|
+
basicRules?: string;
|
|
4413
|
+
ctiRules?: string;
|
|
4414
|
+
enableAllPatch?: string;
|
|
4415
|
+
enableDefault?: string;
|
|
4416
|
+
lang?: string;
|
|
4417
|
+
patchRules?: string;
|
|
4418
|
+
ruleClass?: string;
|
|
4419
|
+
runMode?: string;
|
|
4420
|
+
sourceIp?: string;
|
|
4421
|
+
static names(): { [key: string]: string } {
|
|
4422
|
+
return {
|
|
4423
|
+
aiRules: 'AiRules',
|
|
4424
|
+
basicRules: 'BasicRules',
|
|
4425
|
+
ctiRules: 'CtiRules',
|
|
4426
|
+
enableAllPatch: 'EnableAllPatch',
|
|
4427
|
+
enableDefault: 'EnableDefault',
|
|
4428
|
+
lang: 'Lang',
|
|
4429
|
+
patchRules: 'PatchRules',
|
|
4430
|
+
ruleClass: 'RuleClass',
|
|
4431
|
+
runMode: 'RunMode',
|
|
4432
|
+
sourceIp: 'SourceIp',
|
|
4433
|
+
};
|
|
4434
|
+
}
|
|
4435
|
+
|
|
4436
|
+
static types(): { [key: string]: any } {
|
|
4437
|
+
return {
|
|
4438
|
+
aiRules: 'string',
|
|
4439
|
+
basicRules: 'string',
|
|
4440
|
+
ctiRules: 'string',
|
|
4441
|
+
enableAllPatch: 'string',
|
|
4442
|
+
enableDefault: 'string',
|
|
4443
|
+
lang: 'string',
|
|
4444
|
+
patchRules: 'string',
|
|
4445
|
+
ruleClass: 'string',
|
|
4446
|
+
runMode: 'string',
|
|
4447
|
+
sourceIp: 'string',
|
|
4448
|
+
};
|
|
4449
|
+
}
|
|
4450
|
+
|
|
4451
|
+
constructor(map?: { [key: string]: any }) {
|
|
4452
|
+
super(map);
|
|
4453
|
+
}
|
|
4454
|
+
}
|
|
4455
|
+
|
|
4456
|
+
export class ModifyDefaultIPSConfigResponseBody extends $tea.Model {
|
|
4457
|
+
requestId?: string;
|
|
4458
|
+
static names(): { [key: string]: string } {
|
|
4459
|
+
return {
|
|
4460
|
+
requestId: 'RequestId',
|
|
4461
|
+
};
|
|
4462
|
+
}
|
|
4463
|
+
|
|
4464
|
+
static types(): { [key: string]: any } {
|
|
4465
|
+
return {
|
|
4466
|
+
requestId: 'string',
|
|
4467
|
+
};
|
|
4468
|
+
}
|
|
4469
|
+
|
|
4470
|
+
constructor(map?: { [key: string]: any }) {
|
|
4471
|
+
super(map);
|
|
4472
|
+
}
|
|
4473
|
+
}
|
|
4474
|
+
|
|
4475
|
+
export class ModifyDefaultIPSConfigResponse extends $tea.Model {
|
|
4476
|
+
headers: { [key: string]: string };
|
|
4477
|
+
statusCode: number;
|
|
4478
|
+
body: ModifyDefaultIPSConfigResponseBody;
|
|
4479
|
+
static names(): { [key: string]: string } {
|
|
4480
|
+
return {
|
|
4481
|
+
headers: 'headers',
|
|
4482
|
+
statusCode: 'statusCode',
|
|
4483
|
+
body: 'body',
|
|
4484
|
+
};
|
|
4485
|
+
}
|
|
4486
|
+
|
|
4487
|
+
static types(): { [key: string]: any } {
|
|
4488
|
+
return {
|
|
4489
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4490
|
+
statusCode: 'number',
|
|
4491
|
+
body: ModifyDefaultIPSConfigResponseBody,
|
|
4492
|
+
};
|
|
4493
|
+
}
|
|
4494
|
+
|
|
4495
|
+
constructor(map?: { [key: string]: any }) {
|
|
4496
|
+
super(map);
|
|
4497
|
+
}
|
|
4498
|
+
}
|
|
4499
|
+
|
|
4248
4500
|
export class ModifyFirewallV2RoutePolicySwitchRequest extends $tea.Model {
|
|
4249
4501
|
firewallId?: string;
|
|
4250
4502
|
lang?: string;
|
|
@@ -4630,6 +4882,87 @@ export class ModifyTrFirewallV2RoutePolicyScopeResponse extends $tea.Model {
|
|
|
4630
4882
|
}
|
|
4631
4883
|
}
|
|
4632
4884
|
|
|
4885
|
+
export class ModifyUserIPSWhitelistRequest extends $tea.Model {
|
|
4886
|
+
direction?: number;
|
|
4887
|
+
ipVersion?: string;
|
|
4888
|
+
lang?: string;
|
|
4889
|
+
listType?: number;
|
|
4890
|
+
listValue?: string;
|
|
4891
|
+
sourceIp?: string;
|
|
4892
|
+
whiteType?: number;
|
|
4893
|
+
static names(): { [key: string]: string } {
|
|
4894
|
+
return {
|
|
4895
|
+
direction: 'Direction',
|
|
4896
|
+
ipVersion: 'IpVersion',
|
|
4897
|
+
lang: 'Lang',
|
|
4898
|
+
listType: 'ListType',
|
|
4899
|
+
listValue: 'ListValue',
|
|
4900
|
+
sourceIp: 'SourceIp',
|
|
4901
|
+
whiteType: 'WhiteType',
|
|
4902
|
+
};
|
|
4903
|
+
}
|
|
4904
|
+
|
|
4905
|
+
static types(): { [key: string]: any } {
|
|
4906
|
+
return {
|
|
4907
|
+
direction: 'number',
|
|
4908
|
+
ipVersion: 'string',
|
|
4909
|
+
lang: 'string',
|
|
4910
|
+
listType: 'number',
|
|
4911
|
+
listValue: 'string',
|
|
4912
|
+
sourceIp: 'string',
|
|
4913
|
+
whiteType: 'number',
|
|
4914
|
+
};
|
|
4915
|
+
}
|
|
4916
|
+
|
|
4917
|
+
constructor(map?: { [key: string]: any }) {
|
|
4918
|
+
super(map);
|
|
4919
|
+
}
|
|
4920
|
+
}
|
|
4921
|
+
|
|
4922
|
+
export class ModifyUserIPSWhitelistResponseBody extends $tea.Model {
|
|
4923
|
+
requestId?: string;
|
|
4924
|
+
static names(): { [key: string]: string } {
|
|
4925
|
+
return {
|
|
4926
|
+
requestId: 'RequestId',
|
|
4927
|
+
};
|
|
4928
|
+
}
|
|
4929
|
+
|
|
4930
|
+
static types(): { [key: string]: any } {
|
|
4931
|
+
return {
|
|
4932
|
+
requestId: 'string',
|
|
4933
|
+
};
|
|
4934
|
+
}
|
|
4935
|
+
|
|
4936
|
+
constructor(map?: { [key: string]: any }) {
|
|
4937
|
+
super(map);
|
|
4938
|
+
}
|
|
4939
|
+
}
|
|
4940
|
+
|
|
4941
|
+
export class ModifyUserIPSWhitelistResponse extends $tea.Model {
|
|
4942
|
+
headers: { [key: string]: string };
|
|
4943
|
+
statusCode: number;
|
|
4944
|
+
body: ModifyUserIPSWhitelistResponseBody;
|
|
4945
|
+
static names(): { [key: string]: string } {
|
|
4946
|
+
return {
|
|
4947
|
+
headers: 'headers',
|
|
4948
|
+
statusCode: 'statusCode',
|
|
4949
|
+
body: 'body',
|
|
4950
|
+
};
|
|
4951
|
+
}
|
|
4952
|
+
|
|
4953
|
+
static types(): { [key: string]: any } {
|
|
4954
|
+
return {
|
|
4955
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4956
|
+
statusCode: 'number',
|
|
4957
|
+
body: ModifyUserIPSWhitelistResponseBody,
|
|
4958
|
+
};
|
|
4959
|
+
}
|
|
4960
|
+
|
|
4961
|
+
constructor(map?: { [key: string]: any }) {
|
|
4962
|
+
super(map);
|
|
4963
|
+
}
|
|
4964
|
+
}
|
|
4965
|
+
|
|
4633
4966
|
export class ModifyVpcFirewallCenConfigureRequest extends $tea.Model {
|
|
4634
4967
|
lang?: string;
|
|
4635
4968
|
memberUid?: string;
|
|
@@ -6857,6 +7190,68 @@ export class DescribeTrFirewallsV2RouteListResponseBodyFirewallRouteDetailList e
|
|
|
6857
7190
|
}
|
|
6858
7191
|
}
|
|
6859
7192
|
|
|
7193
|
+
export class DescribeUserIPSWhitelistResponseBodyIpv6Whitelists extends $tea.Model {
|
|
7194
|
+
direction?: number;
|
|
7195
|
+
listType?: number;
|
|
7196
|
+
listValue?: string;
|
|
7197
|
+
whiteListValue?: string[];
|
|
7198
|
+
whiteType?: number;
|
|
7199
|
+
static names(): { [key: string]: string } {
|
|
7200
|
+
return {
|
|
7201
|
+
direction: 'Direction',
|
|
7202
|
+
listType: 'ListType',
|
|
7203
|
+
listValue: 'ListValue',
|
|
7204
|
+
whiteListValue: 'WhiteListValue',
|
|
7205
|
+
whiteType: 'WhiteType',
|
|
7206
|
+
};
|
|
7207
|
+
}
|
|
7208
|
+
|
|
7209
|
+
static types(): { [key: string]: any } {
|
|
7210
|
+
return {
|
|
7211
|
+
direction: 'number',
|
|
7212
|
+
listType: 'number',
|
|
7213
|
+
listValue: 'string',
|
|
7214
|
+
whiteListValue: { 'type': 'array', 'itemType': 'string' },
|
|
7215
|
+
whiteType: 'number',
|
|
7216
|
+
};
|
|
7217
|
+
}
|
|
7218
|
+
|
|
7219
|
+
constructor(map?: { [key: string]: any }) {
|
|
7220
|
+
super(map);
|
|
7221
|
+
}
|
|
7222
|
+
}
|
|
7223
|
+
|
|
7224
|
+
export class DescribeUserIPSWhitelistResponseBodyWhitelists extends $tea.Model {
|
|
7225
|
+
direction?: number;
|
|
7226
|
+
listType?: number;
|
|
7227
|
+
listValue?: string;
|
|
7228
|
+
whiteListValue?: string[];
|
|
7229
|
+
whiteType?: number;
|
|
7230
|
+
static names(): { [key: string]: string } {
|
|
7231
|
+
return {
|
|
7232
|
+
direction: 'Direction',
|
|
7233
|
+
listType: 'ListType',
|
|
7234
|
+
listValue: 'ListValue',
|
|
7235
|
+
whiteListValue: 'WhiteListValue',
|
|
7236
|
+
whiteType: 'WhiteType',
|
|
7237
|
+
};
|
|
7238
|
+
}
|
|
7239
|
+
|
|
7240
|
+
static types(): { [key: string]: any } {
|
|
7241
|
+
return {
|
|
7242
|
+
direction: 'number',
|
|
7243
|
+
listType: 'number',
|
|
7244
|
+
listValue: 'string',
|
|
7245
|
+
whiteListValue: { 'type': 'array', 'itemType': 'string' },
|
|
7246
|
+
whiteType: 'number',
|
|
7247
|
+
};
|
|
7248
|
+
}
|
|
7249
|
+
|
|
7250
|
+
constructor(map?: { [key: string]: any }) {
|
|
7251
|
+
super(map);
|
|
7252
|
+
}
|
|
7253
|
+
}
|
|
7254
|
+
|
|
6860
7255
|
export class DescribeVpcFirewallAclGroupListResponseBodyAclGroupList extends $tea.Model {
|
|
6861
7256
|
aclGroupId?: string;
|
|
6862
7257
|
aclGroupName?: string;
|
|
@@ -9305,6 +9700,39 @@ export default class Client extends OpenApi {
|
|
|
9305
9700
|
return await this.describeControlPolicyWithOptions(request, runtime);
|
|
9306
9701
|
}
|
|
9307
9702
|
|
|
9703
|
+
async describeDefaultIPSConfigWithOptions(request: DescribeDefaultIPSConfigRequest, runtime: $Util.RuntimeOptions): Promise<DescribeDefaultIPSConfigResponse> {
|
|
9704
|
+
Util.validateModel(request);
|
|
9705
|
+
let query = { };
|
|
9706
|
+
if (!Util.isUnset(request.lang)) {
|
|
9707
|
+
query["Lang"] = request.lang;
|
|
9708
|
+
}
|
|
9709
|
+
|
|
9710
|
+
if (!Util.isUnset(request.sourceIp)) {
|
|
9711
|
+
query["SourceIp"] = request.sourceIp;
|
|
9712
|
+
}
|
|
9713
|
+
|
|
9714
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
9715
|
+
query: OpenApiUtil.query(query),
|
|
9716
|
+
});
|
|
9717
|
+
let params = new $OpenApi.Params({
|
|
9718
|
+
action: "DescribeDefaultIPSConfig",
|
|
9719
|
+
version: "2017-12-07",
|
|
9720
|
+
protocol: "HTTPS",
|
|
9721
|
+
pathname: "/",
|
|
9722
|
+
method: "POST",
|
|
9723
|
+
authType: "AK",
|
|
9724
|
+
style: "RPC",
|
|
9725
|
+
reqBodyType: "formData",
|
|
9726
|
+
bodyType: "json",
|
|
9727
|
+
});
|
|
9728
|
+
return $tea.cast<DescribeDefaultIPSConfigResponse>(await this.callApi(params, req, runtime), new DescribeDefaultIPSConfigResponse({}));
|
|
9729
|
+
}
|
|
9730
|
+
|
|
9731
|
+
async describeDefaultIPSConfig(request: DescribeDefaultIPSConfigRequest): Promise<DescribeDefaultIPSConfigResponse> {
|
|
9732
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
9733
|
+
return await this.describeDefaultIPSConfigWithOptions(request, runtime);
|
|
9734
|
+
}
|
|
9735
|
+
|
|
9308
9736
|
/**
|
|
9309
9737
|
* 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.
|
|
9310
9738
|
* ## Limits
|
|
@@ -10233,6 +10661,43 @@ export default class Client extends OpenApi {
|
|
|
10233
10661
|
return await this.describeUserAssetIPTrafficInfoWithOptions(request, runtime);
|
|
10234
10662
|
}
|
|
10235
10663
|
|
|
10664
|
+
async describeUserIPSWhitelistWithOptions(request: DescribeUserIPSWhitelistRequest, runtime: $Util.RuntimeOptions): Promise<DescribeUserIPSWhitelistResponse> {
|
|
10665
|
+
Util.validateModel(request);
|
|
10666
|
+
let query = { };
|
|
10667
|
+
if (!Util.isUnset(request.lang)) {
|
|
10668
|
+
query["Lang"] = request.lang;
|
|
10669
|
+
}
|
|
10670
|
+
|
|
10671
|
+
if (!Util.isUnset(request.lang)) {
|
|
10672
|
+
query["Lang"] = request.lang;
|
|
10673
|
+
}
|
|
10674
|
+
|
|
10675
|
+
if (!Util.isUnset(request.sourceIp)) {
|
|
10676
|
+
query["SourceIp"] = request.sourceIp;
|
|
10677
|
+
}
|
|
10678
|
+
|
|
10679
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
10680
|
+
query: OpenApiUtil.query(query),
|
|
10681
|
+
});
|
|
10682
|
+
let params = new $OpenApi.Params({
|
|
10683
|
+
action: "DescribeUserIPSWhitelist",
|
|
10684
|
+
version: "2017-12-07",
|
|
10685
|
+
protocol: "HTTPS",
|
|
10686
|
+
pathname: "/",
|
|
10687
|
+
method: "POST",
|
|
10688
|
+
authType: "AK",
|
|
10689
|
+
style: "RPC",
|
|
10690
|
+
reqBodyType: "formData",
|
|
10691
|
+
bodyType: "json",
|
|
10692
|
+
});
|
|
10693
|
+
return $tea.cast<DescribeUserIPSWhitelistResponse>(await this.callApi(params, req, runtime), new DescribeUserIPSWhitelistResponse({}));
|
|
10694
|
+
}
|
|
10695
|
+
|
|
10696
|
+
async describeUserIPSWhitelist(request: DescribeUserIPSWhitelistRequest): Promise<DescribeUserIPSWhitelistResponse> {
|
|
10697
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
10698
|
+
return await this.describeUserIPSWhitelistWithOptions(request, runtime);
|
|
10699
|
+
}
|
|
10700
|
+
|
|
10236
10701
|
/**
|
|
10237
10702
|
* You can call the DescribeVpcFirewallAclGroupList operation to query the information about all policy groups of access control policies that are created for VPC firewalls.
|
|
10238
10703
|
* ## Limits
|
|
@@ -11138,6 +11603,71 @@ export default class Client extends OpenApi {
|
|
|
11138
11603
|
return await this.modifyControlPolicyPositionWithOptions(request, runtime);
|
|
11139
11604
|
}
|
|
11140
11605
|
|
|
11606
|
+
async modifyDefaultIPSConfigWithOptions(request: ModifyDefaultIPSConfigRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDefaultIPSConfigResponse> {
|
|
11607
|
+
Util.validateModel(request);
|
|
11608
|
+
let query = { };
|
|
11609
|
+
if (!Util.isUnset(request.aiRules)) {
|
|
11610
|
+
query["AiRules"] = request.aiRules;
|
|
11611
|
+
}
|
|
11612
|
+
|
|
11613
|
+
if (!Util.isUnset(request.basicRules)) {
|
|
11614
|
+
query["BasicRules"] = request.basicRules;
|
|
11615
|
+
}
|
|
11616
|
+
|
|
11617
|
+
if (!Util.isUnset(request.ctiRules)) {
|
|
11618
|
+
query["CtiRules"] = request.ctiRules;
|
|
11619
|
+
}
|
|
11620
|
+
|
|
11621
|
+
if (!Util.isUnset(request.enableAllPatch)) {
|
|
11622
|
+
query["EnableAllPatch"] = request.enableAllPatch;
|
|
11623
|
+
}
|
|
11624
|
+
|
|
11625
|
+
if (!Util.isUnset(request.enableDefault)) {
|
|
11626
|
+
query["EnableDefault"] = request.enableDefault;
|
|
11627
|
+
}
|
|
11628
|
+
|
|
11629
|
+
if (!Util.isUnset(request.lang)) {
|
|
11630
|
+
query["Lang"] = request.lang;
|
|
11631
|
+
}
|
|
11632
|
+
|
|
11633
|
+
if (!Util.isUnset(request.patchRules)) {
|
|
11634
|
+
query["PatchRules"] = request.patchRules;
|
|
11635
|
+
}
|
|
11636
|
+
|
|
11637
|
+
if (!Util.isUnset(request.ruleClass)) {
|
|
11638
|
+
query["RuleClass"] = request.ruleClass;
|
|
11639
|
+
}
|
|
11640
|
+
|
|
11641
|
+
if (!Util.isUnset(request.runMode)) {
|
|
11642
|
+
query["RunMode"] = request.runMode;
|
|
11643
|
+
}
|
|
11644
|
+
|
|
11645
|
+
if (!Util.isUnset(request.sourceIp)) {
|
|
11646
|
+
query["SourceIp"] = request.sourceIp;
|
|
11647
|
+
}
|
|
11648
|
+
|
|
11649
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
11650
|
+
query: OpenApiUtil.query(query),
|
|
11651
|
+
});
|
|
11652
|
+
let params = new $OpenApi.Params({
|
|
11653
|
+
action: "ModifyDefaultIPSConfig",
|
|
11654
|
+
version: "2017-12-07",
|
|
11655
|
+
protocol: "HTTPS",
|
|
11656
|
+
pathname: "/",
|
|
11657
|
+
method: "POST",
|
|
11658
|
+
authType: "AK",
|
|
11659
|
+
style: "RPC",
|
|
11660
|
+
reqBodyType: "formData",
|
|
11661
|
+
bodyType: "json",
|
|
11662
|
+
});
|
|
11663
|
+
return $tea.cast<ModifyDefaultIPSConfigResponse>(await this.callApi(params, req, runtime), new ModifyDefaultIPSConfigResponse({}));
|
|
11664
|
+
}
|
|
11665
|
+
|
|
11666
|
+
async modifyDefaultIPSConfig(request: ModifyDefaultIPSConfigRequest): Promise<ModifyDefaultIPSConfigResponse> {
|
|
11667
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
11668
|
+
return await this.modifyDefaultIPSConfigWithOptions(request, runtime);
|
|
11669
|
+
}
|
|
11670
|
+
|
|
11141
11671
|
async modifyFirewallV2RoutePolicySwitchWithOptions(request: ModifyFirewallV2RoutePolicySwitchRequest, runtime: $Util.RuntimeOptions): Promise<ModifyFirewallV2RoutePolicySwitchResponse> {
|
|
11142
11672
|
Util.validateModel(request);
|
|
11143
11673
|
let query = { };
|
|
@@ -11375,6 +11905,63 @@ export default class Client extends OpenApi {
|
|
|
11375
11905
|
return await this.modifyTrFirewallV2RoutePolicyScopeWithOptions(request, runtime);
|
|
11376
11906
|
}
|
|
11377
11907
|
|
|
11908
|
+
async modifyUserIPSWhitelistWithOptions(request: ModifyUserIPSWhitelistRequest, runtime: $Util.RuntimeOptions): Promise<ModifyUserIPSWhitelistResponse> {
|
|
11909
|
+
Util.validateModel(request);
|
|
11910
|
+
let query = { };
|
|
11911
|
+
if (!Util.isUnset(request.direction)) {
|
|
11912
|
+
query["Direction"] = request.direction;
|
|
11913
|
+
}
|
|
11914
|
+
|
|
11915
|
+
if (!Util.isUnset(request.ipVersion)) {
|
|
11916
|
+
query["IpVersion"] = request.ipVersion;
|
|
11917
|
+
}
|
|
11918
|
+
|
|
11919
|
+
if (!Util.isUnset(request.lang)) {
|
|
11920
|
+
query["Lang"] = request.lang;
|
|
11921
|
+
}
|
|
11922
|
+
|
|
11923
|
+
if (!Util.isUnset(request.lang)) {
|
|
11924
|
+
query["Lang"] = request.lang;
|
|
11925
|
+
}
|
|
11926
|
+
|
|
11927
|
+
if (!Util.isUnset(request.listType)) {
|
|
11928
|
+
query["ListType"] = request.listType;
|
|
11929
|
+
}
|
|
11930
|
+
|
|
11931
|
+
if (!Util.isUnset(request.listValue)) {
|
|
11932
|
+
query["ListValue"] = request.listValue;
|
|
11933
|
+
}
|
|
11934
|
+
|
|
11935
|
+
if (!Util.isUnset(request.sourceIp)) {
|
|
11936
|
+
query["SourceIp"] = request.sourceIp;
|
|
11937
|
+
}
|
|
11938
|
+
|
|
11939
|
+
if (!Util.isUnset(request.whiteType)) {
|
|
11940
|
+
query["WhiteType"] = request.whiteType;
|
|
11941
|
+
}
|
|
11942
|
+
|
|
11943
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
11944
|
+
query: OpenApiUtil.query(query),
|
|
11945
|
+
});
|
|
11946
|
+
let params = new $OpenApi.Params({
|
|
11947
|
+
action: "ModifyUserIPSWhitelist",
|
|
11948
|
+
version: "2017-12-07",
|
|
11949
|
+
protocol: "HTTPS",
|
|
11950
|
+
pathname: "/",
|
|
11951
|
+
method: "POST",
|
|
11952
|
+
authType: "AK",
|
|
11953
|
+
style: "RPC",
|
|
11954
|
+
reqBodyType: "formData",
|
|
11955
|
+
bodyType: "json",
|
|
11956
|
+
});
|
|
11957
|
+
return $tea.cast<ModifyUserIPSWhitelistResponse>(await this.callApi(params, req, runtime), new ModifyUserIPSWhitelistResponse({}));
|
|
11958
|
+
}
|
|
11959
|
+
|
|
11960
|
+
async modifyUserIPSWhitelist(request: ModifyUserIPSWhitelistRequest): Promise<ModifyUserIPSWhitelistResponse> {
|
|
11961
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
11962
|
+
return await this.modifyUserIPSWhitelistWithOptions(request, runtime);
|
|
11963
|
+
}
|
|
11964
|
+
|
|
11378
11965
|
/**
|
|
11379
11966
|
* 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.
|
|
11380
11967
|
* ## Limits
|