@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/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;
@@ -2800,10 +2890,14 @@ export class DescribeTrFirewallsV2DetailResponseBody extends $tea.Model {
2800
2890
  firewallId?: string;
2801
2891
  firewallName?: string;
2802
2892
  firewallStatus?: string;
2893
+ firewallSubnetCidr?: string;
2803
2894
  firewallSwitchStatus?: string;
2895
+ firewallVpcCidr?: string;
2804
2896
  regionNo?: string;
2805
2897
  requestId?: string;
2806
2898
  routeMode?: string;
2899
+ trAttachmentMasterCidr?: string;
2900
+ trAttachmentSlaveCidr?: string;
2807
2901
  transitRouterId?: string;
2808
2902
  static names(): { [key: string]: string } {
2809
2903
  return {
@@ -2815,10 +2909,14 @@ export class DescribeTrFirewallsV2DetailResponseBody extends $tea.Model {
2815
2909
  firewallId: 'FirewallId',
2816
2910
  firewallName: 'FirewallName',
2817
2911
  firewallStatus: 'FirewallStatus',
2912
+ firewallSubnetCidr: 'FirewallSubnetCidr',
2818
2913
  firewallSwitchStatus: 'FirewallSwitchStatus',
2914
+ firewallVpcCidr: 'FirewallVpcCidr',
2819
2915
  regionNo: 'RegionNo',
2820
2916
  requestId: 'RequestId',
2821
2917
  routeMode: 'RouteMode',
2918
+ trAttachmentMasterCidr: 'TrAttachmentMasterCidr',
2919
+ trAttachmentSlaveCidr: 'TrAttachmentSlaveCidr',
2822
2920
  transitRouterId: 'TransitRouterId',
2823
2921
  };
2824
2922
  }
@@ -2833,10 +2931,14 @@ export class DescribeTrFirewallsV2DetailResponseBody extends $tea.Model {
2833
2931
  firewallId: 'string',
2834
2932
  firewallName: 'string',
2835
2933
  firewallStatus: 'string',
2934
+ firewallSubnetCidr: 'string',
2836
2935
  firewallSwitchStatus: 'string',
2936
+ firewallVpcCidr: 'string',
2837
2937
  regionNo: 'string',
2838
2938
  requestId: 'string',
2839
2939
  routeMode: 'string',
2940
+ trAttachmentMasterCidr: 'string',
2941
+ trAttachmentSlaveCidr: 'string',
2840
2942
  transitRouterId: 'string',
2841
2943
  };
2842
2944
  }
@@ -3141,6 +3243,78 @@ export class DescribeUserAssetIPTrafficInfoResponse extends $tea.Model {
3141
3243
  }
3142
3244
  }
3143
3245
 
3246
+ export class DescribeUserIPSWhitelistRequest extends $tea.Model {
3247
+ lang?: string;
3248
+ sourceIp?: string;
3249
+ static names(): { [key: string]: string } {
3250
+ return {
3251
+ lang: 'Lang',
3252
+ sourceIp: 'SourceIp',
3253
+ };
3254
+ }
3255
+
3256
+ static types(): { [key: string]: any } {
3257
+ return {
3258
+ lang: 'string',
3259
+ sourceIp: 'string',
3260
+ };
3261
+ }
3262
+
3263
+ constructor(map?: { [key: string]: any }) {
3264
+ super(map);
3265
+ }
3266
+ }
3267
+
3268
+ export class DescribeUserIPSWhitelistResponseBody extends $tea.Model {
3269
+ ipv6Whitelists?: DescribeUserIPSWhitelistResponseBodyIpv6Whitelists[];
3270
+ requestId?: string;
3271
+ whitelists?: DescribeUserIPSWhitelistResponseBodyWhitelists[];
3272
+ static names(): { [key: string]: string } {
3273
+ return {
3274
+ ipv6Whitelists: 'Ipv6Whitelists',
3275
+ requestId: 'RequestId',
3276
+ whitelists: 'Whitelists',
3277
+ };
3278
+ }
3279
+
3280
+ static types(): { [key: string]: any } {
3281
+ return {
3282
+ ipv6Whitelists: { 'type': 'array', 'itemType': DescribeUserIPSWhitelistResponseBodyIpv6Whitelists },
3283
+ requestId: 'string',
3284
+ whitelists: { 'type': 'array', 'itemType': DescribeUserIPSWhitelistResponseBodyWhitelists },
3285
+ };
3286
+ }
3287
+
3288
+ constructor(map?: { [key: string]: any }) {
3289
+ super(map);
3290
+ }
3291
+ }
3292
+
3293
+ export class DescribeUserIPSWhitelistResponse extends $tea.Model {
3294
+ headers: { [key: string]: string };
3295
+ statusCode: number;
3296
+ body: DescribeUserIPSWhitelistResponseBody;
3297
+ static names(): { [key: string]: string } {
3298
+ return {
3299
+ headers: 'headers',
3300
+ statusCode: 'statusCode',
3301
+ body: 'body',
3302
+ };
3303
+ }
3304
+
3305
+ static types(): { [key: string]: any } {
3306
+ return {
3307
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3308
+ statusCode: 'number',
3309
+ body: DescribeUserIPSWhitelistResponseBody,
3310
+ };
3311
+ }
3312
+
3313
+ constructor(map?: { [key: string]: any }) {
3314
+ super(map);
3315
+ }
3316
+ }
3317
+
3144
3318
  export class DescribeVpcFirewallAclGroupListRequest extends $tea.Model {
3145
3319
  currentPage?: string;
3146
3320
  firewallConfigureStatus?: string;
@@ -4245,6 +4419,96 @@ export class ModifyControlPolicyPositionResponse extends $tea.Model {
4245
4419
  }
4246
4420
  }
4247
4421
 
4422
+ export class ModifyDefaultIPSConfigRequest extends $tea.Model {
4423
+ aiRules?: string;
4424
+ basicRules?: string;
4425
+ ctiRules?: string;
4426
+ enableAllPatch?: string;
4427
+ enableDefault?: string;
4428
+ lang?: string;
4429
+ patchRules?: string;
4430
+ ruleClass?: string;
4431
+ runMode?: string;
4432
+ sourceIp?: string;
4433
+ static names(): { [key: string]: string } {
4434
+ return {
4435
+ aiRules: 'AiRules',
4436
+ basicRules: 'BasicRules',
4437
+ ctiRules: 'CtiRules',
4438
+ enableAllPatch: 'EnableAllPatch',
4439
+ enableDefault: 'EnableDefault',
4440
+ lang: 'Lang',
4441
+ patchRules: 'PatchRules',
4442
+ ruleClass: 'RuleClass',
4443
+ runMode: 'RunMode',
4444
+ sourceIp: 'SourceIp',
4445
+ };
4446
+ }
4447
+
4448
+ static types(): { [key: string]: any } {
4449
+ return {
4450
+ aiRules: 'string',
4451
+ basicRules: 'string',
4452
+ ctiRules: 'string',
4453
+ enableAllPatch: 'string',
4454
+ enableDefault: 'string',
4455
+ lang: 'string',
4456
+ patchRules: 'string',
4457
+ ruleClass: 'string',
4458
+ runMode: 'string',
4459
+ sourceIp: 'string',
4460
+ };
4461
+ }
4462
+
4463
+ constructor(map?: { [key: string]: any }) {
4464
+ super(map);
4465
+ }
4466
+ }
4467
+
4468
+ export class ModifyDefaultIPSConfigResponseBody extends $tea.Model {
4469
+ requestId?: string;
4470
+ static names(): { [key: string]: string } {
4471
+ return {
4472
+ requestId: 'RequestId',
4473
+ };
4474
+ }
4475
+
4476
+ static types(): { [key: string]: any } {
4477
+ return {
4478
+ requestId: 'string',
4479
+ };
4480
+ }
4481
+
4482
+ constructor(map?: { [key: string]: any }) {
4483
+ super(map);
4484
+ }
4485
+ }
4486
+
4487
+ export class ModifyDefaultIPSConfigResponse extends $tea.Model {
4488
+ headers: { [key: string]: string };
4489
+ statusCode: number;
4490
+ body: ModifyDefaultIPSConfigResponseBody;
4491
+ static names(): { [key: string]: string } {
4492
+ return {
4493
+ headers: 'headers',
4494
+ statusCode: 'statusCode',
4495
+ body: 'body',
4496
+ };
4497
+ }
4498
+
4499
+ static types(): { [key: string]: any } {
4500
+ return {
4501
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4502
+ statusCode: 'number',
4503
+ body: ModifyDefaultIPSConfigResponseBody,
4504
+ };
4505
+ }
4506
+
4507
+ constructor(map?: { [key: string]: any }) {
4508
+ super(map);
4509
+ }
4510
+ }
4511
+
4248
4512
  export class ModifyFirewallV2RoutePolicySwitchRequest extends $tea.Model {
4249
4513
  firewallId?: string;
4250
4514
  lang?: string;
@@ -4630,6 +4894,87 @@ export class ModifyTrFirewallV2RoutePolicyScopeResponse extends $tea.Model {
4630
4894
  }
4631
4895
  }
4632
4896
 
4897
+ export class ModifyUserIPSWhitelistRequest extends $tea.Model {
4898
+ direction?: number;
4899
+ ipVersion?: string;
4900
+ lang?: string;
4901
+ listType?: number;
4902
+ listValue?: string;
4903
+ sourceIp?: string;
4904
+ whiteType?: number;
4905
+ static names(): { [key: string]: string } {
4906
+ return {
4907
+ direction: 'Direction',
4908
+ ipVersion: 'IpVersion',
4909
+ lang: 'Lang',
4910
+ listType: 'ListType',
4911
+ listValue: 'ListValue',
4912
+ sourceIp: 'SourceIp',
4913
+ whiteType: 'WhiteType',
4914
+ };
4915
+ }
4916
+
4917
+ static types(): { [key: string]: any } {
4918
+ return {
4919
+ direction: 'number',
4920
+ ipVersion: 'string',
4921
+ lang: 'string',
4922
+ listType: 'number',
4923
+ listValue: 'string',
4924
+ sourceIp: 'string',
4925
+ whiteType: 'number',
4926
+ };
4927
+ }
4928
+
4929
+ constructor(map?: { [key: string]: any }) {
4930
+ super(map);
4931
+ }
4932
+ }
4933
+
4934
+ export class ModifyUserIPSWhitelistResponseBody extends $tea.Model {
4935
+ requestId?: string;
4936
+ static names(): { [key: string]: string } {
4937
+ return {
4938
+ requestId: 'RequestId',
4939
+ };
4940
+ }
4941
+
4942
+ static types(): { [key: string]: any } {
4943
+ return {
4944
+ requestId: 'string',
4945
+ };
4946
+ }
4947
+
4948
+ constructor(map?: { [key: string]: any }) {
4949
+ super(map);
4950
+ }
4951
+ }
4952
+
4953
+ export class ModifyUserIPSWhitelistResponse extends $tea.Model {
4954
+ headers: { [key: string]: string };
4955
+ statusCode: number;
4956
+ body: ModifyUserIPSWhitelistResponseBody;
4957
+ static names(): { [key: string]: string } {
4958
+ return {
4959
+ headers: 'headers',
4960
+ statusCode: 'statusCode',
4961
+ body: 'body',
4962
+ };
4963
+ }
4964
+
4965
+ static types(): { [key: string]: any } {
4966
+ return {
4967
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4968
+ statusCode: 'number',
4969
+ body: ModifyUserIPSWhitelistResponseBody,
4970
+ };
4971
+ }
4972
+
4973
+ constructor(map?: { [key: string]: any }) {
4974
+ super(map);
4975
+ }
4976
+ }
4977
+
4633
4978
  export class ModifyVpcFirewallCenConfigureRequest extends $tea.Model {
4634
4979
  lang?: string;
4635
4980
  memberUid?: string;
@@ -4958,12 +5303,14 @@ export class ModifyVpcFirewallControlPolicyResponse extends $tea.Model {
4958
5303
  }
4959
5304
 
4960
5305
  export class ModifyVpcFirewallControlPolicyPositionRequest extends $tea.Model {
5306
+ aclUuid?: string;
4961
5307
  lang?: string;
4962
5308
  newOrder?: string;
4963
5309
  oldOrder?: string;
4964
5310
  vpcFirewallId?: string;
4965
5311
  static names(): { [key: string]: string } {
4966
5312
  return {
5313
+ aclUuid: 'AclUuid',
4967
5314
  lang: 'Lang',
4968
5315
  newOrder: 'NewOrder',
4969
5316
  oldOrder: 'OldOrder',
@@ -4973,6 +5320,7 @@ export class ModifyVpcFirewallControlPolicyPositionRequest extends $tea.Model {
4973
5320
 
4974
5321
  static types(): { [key: string]: any } {
4975
5322
  return {
5323
+ aclUuid: 'string',
4976
5324
  lang: 'string',
4977
5325
  newOrder: 'string',
4978
5326
  oldOrder: 'string',
@@ -6857,6 +7205,68 @@ export class DescribeTrFirewallsV2RouteListResponseBodyFirewallRouteDetailList e
6857
7205
  }
6858
7206
  }
6859
7207
 
7208
+ export class DescribeUserIPSWhitelistResponseBodyIpv6Whitelists extends $tea.Model {
7209
+ direction?: number;
7210
+ listType?: number;
7211
+ listValue?: string;
7212
+ whiteListValue?: string[];
7213
+ whiteType?: number;
7214
+ static names(): { [key: string]: string } {
7215
+ return {
7216
+ direction: 'Direction',
7217
+ listType: 'ListType',
7218
+ listValue: 'ListValue',
7219
+ whiteListValue: 'WhiteListValue',
7220
+ whiteType: 'WhiteType',
7221
+ };
7222
+ }
7223
+
7224
+ static types(): { [key: string]: any } {
7225
+ return {
7226
+ direction: 'number',
7227
+ listType: 'number',
7228
+ listValue: 'string',
7229
+ whiteListValue: { 'type': 'array', 'itemType': 'string' },
7230
+ whiteType: 'number',
7231
+ };
7232
+ }
7233
+
7234
+ constructor(map?: { [key: string]: any }) {
7235
+ super(map);
7236
+ }
7237
+ }
7238
+
7239
+ export class DescribeUserIPSWhitelistResponseBodyWhitelists extends $tea.Model {
7240
+ direction?: number;
7241
+ listType?: number;
7242
+ listValue?: string;
7243
+ whiteListValue?: string[];
7244
+ whiteType?: number;
7245
+ static names(): { [key: string]: string } {
7246
+ return {
7247
+ direction: 'Direction',
7248
+ listType: 'ListType',
7249
+ listValue: 'ListValue',
7250
+ whiteListValue: 'WhiteListValue',
7251
+ whiteType: 'WhiteType',
7252
+ };
7253
+ }
7254
+
7255
+ static types(): { [key: string]: any } {
7256
+ return {
7257
+ direction: 'number',
7258
+ listType: 'number',
7259
+ listValue: 'string',
7260
+ whiteListValue: { 'type': 'array', 'itemType': 'string' },
7261
+ whiteType: 'number',
7262
+ };
7263
+ }
7264
+
7265
+ constructor(map?: { [key: string]: any }) {
7266
+ super(map);
7267
+ }
7268
+ }
7269
+
6860
7270
  export class DescribeVpcFirewallAclGroupListResponseBodyAclGroupList extends $tea.Model {
6861
7271
  aclGroupId?: string;
6862
7272
  aclGroupName?: string;
@@ -9305,6 +9715,39 @@ export default class Client extends OpenApi {
9305
9715
  return await this.describeControlPolicyWithOptions(request, runtime);
9306
9716
  }
9307
9717
 
9718
+ async describeDefaultIPSConfigWithOptions(request: DescribeDefaultIPSConfigRequest, runtime: $Util.RuntimeOptions): Promise<DescribeDefaultIPSConfigResponse> {
9719
+ Util.validateModel(request);
9720
+ let query = { };
9721
+ if (!Util.isUnset(request.lang)) {
9722
+ query["Lang"] = request.lang;
9723
+ }
9724
+
9725
+ if (!Util.isUnset(request.sourceIp)) {
9726
+ query["SourceIp"] = request.sourceIp;
9727
+ }
9728
+
9729
+ let req = new $OpenApi.OpenApiRequest({
9730
+ query: OpenApiUtil.query(query),
9731
+ });
9732
+ let params = new $OpenApi.Params({
9733
+ action: "DescribeDefaultIPSConfig",
9734
+ version: "2017-12-07",
9735
+ protocol: "HTTPS",
9736
+ pathname: "/",
9737
+ method: "POST",
9738
+ authType: "AK",
9739
+ style: "RPC",
9740
+ reqBodyType: "formData",
9741
+ bodyType: "json",
9742
+ });
9743
+ return $tea.cast<DescribeDefaultIPSConfigResponse>(await this.callApi(params, req, runtime), new DescribeDefaultIPSConfigResponse({}));
9744
+ }
9745
+
9746
+ async describeDefaultIPSConfig(request: DescribeDefaultIPSConfigRequest): Promise<DescribeDefaultIPSConfigResponse> {
9747
+ let runtime = new $Util.RuntimeOptions({ });
9748
+ return await this.describeDefaultIPSConfigWithOptions(request, runtime);
9749
+ }
9750
+
9308
9751
  /**
9309
9752
  * 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
9753
  * ## Limits
@@ -10233,6 +10676,43 @@ export default class Client extends OpenApi {
10233
10676
  return await this.describeUserAssetIPTrafficInfoWithOptions(request, runtime);
10234
10677
  }
10235
10678
 
10679
+ async describeUserIPSWhitelistWithOptions(request: DescribeUserIPSWhitelistRequest, runtime: $Util.RuntimeOptions): Promise<DescribeUserIPSWhitelistResponse> {
10680
+ Util.validateModel(request);
10681
+ let query = { };
10682
+ if (!Util.isUnset(request.lang)) {
10683
+ query["Lang"] = request.lang;
10684
+ }
10685
+
10686
+ if (!Util.isUnset(request.lang)) {
10687
+ query["Lang"] = request.lang;
10688
+ }
10689
+
10690
+ if (!Util.isUnset(request.sourceIp)) {
10691
+ query["SourceIp"] = request.sourceIp;
10692
+ }
10693
+
10694
+ let req = new $OpenApi.OpenApiRequest({
10695
+ query: OpenApiUtil.query(query),
10696
+ });
10697
+ let params = new $OpenApi.Params({
10698
+ action: "DescribeUserIPSWhitelist",
10699
+ version: "2017-12-07",
10700
+ protocol: "HTTPS",
10701
+ pathname: "/",
10702
+ method: "POST",
10703
+ authType: "AK",
10704
+ style: "RPC",
10705
+ reqBodyType: "formData",
10706
+ bodyType: "json",
10707
+ });
10708
+ return $tea.cast<DescribeUserIPSWhitelistResponse>(await this.callApi(params, req, runtime), new DescribeUserIPSWhitelistResponse({}));
10709
+ }
10710
+
10711
+ async describeUserIPSWhitelist(request: DescribeUserIPSWhitelistRequest): Promise<DescribeUserIPSWhitelistResponse> {
10712
+ let runtime = new $Util.RuntimeOptions({ });
10713
+ return await this.describeUserIPSWhitelistWithOptions(request, runtime);
10714
+ }
10715
+
10236
10716
  /**
10237
10717
  * 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
10718
  * ## Limits
@@ -11138,6 +11618,71 @@ export default class Client extends OpenApi {
11138
11618
  return await this.modifyControlPolicyPositionWithOptions(request, runtime);
11139
11619
  }
11140
11620
 
11621
+ async modifyDefaultIPSConfigWithOptions(request: ModifyDefaultIPSConfigRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDefaultIPSConfigResponse> {
11622
+ Util.validateModel(request);
11623
+ let query = { };
11624
+ if (!Util.isUnset(request.aiRules)) {
11625
+ query["AiRules"] = request.aiRules;
11626
+ }
11627
+
11628
+ if (!Util.isUnset(request.basicRules)) {
11629
+ query["BasicRules"] = request.basicRules;
11630
+ }
11631
+
11632
+ if (!Util.isUnset(request.ctiRules)) {
11633
+ query["CtiRules"] = request.ctiRules;
11634
+ }
11635
+
11636
+ if (!Util.isUnset(request.enableAllPatch)) {
11637
+ query["EnableAllPatch"] = request.enableAllPatch;
11638
+ }
11639
+
11640
+ if (!Util.isUnset(request.enableDefault)) {
11641
+ query["EnableDefault"] = request.enableDefault;
11642
+ }
11643
+
11644
+ if (!Util.isUnset(request.lang)) {
11645
+ query["Lang"] = request.lang;
11646
+ }
11647
+
11648
+ if (!Util.isUnset(request.patchRules)) {
11649
+ query["PatchRules"] = request.patchRules;
11650
+ }
11651
+
11652
+ if (!Util.isUnset(request.ruleClass)) {
11653
+ query["RuleClass"] = request.ruleClass;
11654
+ }
11655
+
11656
+ if (!Util.isUnset(request.runMode)) {
11657
+ query["RunMode"] = request.runMode;
11658
+ }
11659
+
11660
+ if (!Util.isUnset(request.sourceIp)) {
11661
+ query["SourceIp"] = request.sourceIp;
11662
+ }
11663
+
11664
+ let req = new $OpenApi.OpenApiRequest({
11665
+ query: OpenApiUtil.query(query),
11666
+ });
11667
+ let params = new $OpenApi.Params({
11668
+ action: "ModifyDefaultIPSConfig",
11669
+ version: "2017-12-07",
11670
+ protocol: "HTTPS",
11671
+ pathname: "/",
11672
+ method: "POST",
11673
+ authType: "AK",
11674
+ style: "RPC",
11675
+ reqBodyType: "formData",
11676
+ bodyType: "json",
11677
+ });
11678
+ return $tea.cast<ModifyDefaultIPSConfigResponse>(await this.callApi(params, req, runtime), new ModifyDefaultIPSConfigResponse({}));
11679
+ }
11680
+
11681
+ async modifyDefaultIPSConfig(request: ModifyDefaultIPSConfigRequest): Promise<ModifyDefaultIPSConfigResponse> {
11682
+ let runtime = new $Util.RuntimeOptions({ });
11683
+ return await this.modifyDefaultIPSConfigWithOptions(request, runtime);
11684
+ }
11685
+
11141
11686
  async modifyFirewallV2RoutePolicySwitchWithOptions(request: ModifyFirewallV2RoutePolicySwitchRequest, runtime: $Util.RuntimeOptions): Promise<ModifyFirewallV2RoutePolicySwitchResponse> {
11142
11687
  Util.validateModel(request);
11143
11688
  let query = { };
@@ -11375,6 +11920,63 @@ export default class Client extends OpenApi {
11375
11920
  return await this.modifyTrFirewallV2RoutePolicyScopeWithOptions(request, runtime);
11376
11921
  }
11377
11922
 
11923
+ async modifyUserIPSWhitelistWithOptions(request: ModifyUserIPSWhitelistRequest, runtime: $Util.RuntimeOptions): Promise<ModifyUserIPSWhitelistResponse> {
11924
+ Util.validateModel(request);
11925
+ let query = { };
11926
+ if (!Util.isUnset(request.direction)) {
11927
+ query["Direction"] = request.direction;
11928
+ }
11929
+
11930
+ if (!Util.isUnset(request.ipVersion)) {
11931
+ query["IpVersion"] = request.ipVersion;
11932
+ }
11933
+
11934
+ if (!Util.isUnset(request.lang)) {
11935
+ query["Lang"] = request.lang;
11936
+ }
11937
+
11938
+ if (!Util.isUnset(request.lang)) {
11939
+ query["Lang"] = request.lang;
11940
+ }
11941
+
11942
+ if (!Util.isUnset(request.listType)) {
11943
+ query["ListType"] = request.listType;
11944
+ }
11945
+
11946
+ if (!Util.isUnset(request.listValue)) {
11947
+ query["ListValue"] = request.listValue;
11948
+ }
11949
+
11950
+ if (!Util.isUnset(request.sourceIp)) {
11951
+ query["SourceIp"] = request.sourceIp;
11952
+ }
11953
+
11954
+ if (!Util.isUnset(request.whiteType)) {
11955
+ query["WhiteType"] = request.whiteType;
11956
+ }
11957
+
11958
+ let req = new $OpenApi.OpenApiRequest({
11959
+ query: OpenApiUtil.query(query),
11960
+ });
11961
+ let params = new $OpenApi.Params({
11962
+ action: "ModifyUserIPSWhitelist",
11963
+ version: "2017-12-07",
11964
+ protocol: "HTTPS",
11965
+ pathname: "/",
11966
+ method: "POST",
11967
+ authType: "AK",
11968
+ style: "RPC",
11969
+ reqBodyType: "formData",
11970
+ bodyType: "json",
11971
+ });
11972
+ return $tea.cast<ModifyUserIPSWhitelistResponse>(await this.callApi(params, req, runtime), new ModifyUserIPSWhitelistResponse({}));
11973
+ }
11974
+
11975
+ async modifyUserIPSWhitelist(request: ModifyUserIPSWhitelistRequest): Promise<ModifyUserIPSWhitelistResponse> {
11976
+ let runtime = new $Util.RuntimeOptions({ });
11977
+ return await this.modifyUserIPSWhitelistWithOptions(request, runtime);
11978
+ }
11979
+
11378
11980
  /**
11379
11981
  * 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
11982
  * ## Limits
@@ -11673,6 +12275,10 @@ export default class Client extends OpenApi {
11673
12275
  async modifyVpcFirewallControlPolicyPositionWithOptions(request: ModifyVpcFirewallControlPolicyPositionRequest, runtime: $Util.RuntimeOptions): Promise<ModifyVpcFirewallControlPolicyPositionResponse> {
11674
12276
  Util.validateModel(request);
11675
12277
  let query = { };
12278
+ if (!Util.isUnset(request.aclUuid)) {
12279
+ query["AclUuid"] = request.aclUuid;
12280
+ }
12281
+
11676
12282
  if (!Util.isUnset(request.lang)) {
11677
12283
  query["Lang"] = request.lang;
11678
12284
  }