@huaweicloud/huaweicloud-sdk-cfw 3.1.158 → 3.1.160

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.
Files changed (117) hide show
  1. package/package.json +2 -2
  2. package/v1/CfwClient.d.ts +225 -0
  3. package/v1/CfwClient.d.ts.map +1 -1
  4. package/v1/CfwClient.js +688 -1
  5. package/v1/CfwClient.js.map +1 -1
  6. package/v1/model/AccessTopMemberVO.d.ts +10 -0
  7. package/v1/model/AccessTopMemberVO.d.ts.map +1 -0
  8. package/v1/model/AccessTopMemberVO.js +21 -0
  9. package/v1/model/AccessTopMemberVO.js.map +1 -0
  10. package/v1/model/AccessTopStatisticsVO.d.ts +20 -0
  11. package/v1/model/AccessTopStatisticsVO.d.ts.map +1 -0
  12. package/v1/model/AccessTopStatisticsVO.js +49 -0
  13. package/v1/model/AccessTopStatisticsVO.js.map +1 -0
  14. package/v1/model/AccessTopVO.d.ts +76 -0
  15. package/v1/model/AccessTopVO.d.ts.map +1 -0
  16. package/v1/model/AccessTopVO.js +183 -0
  17. package/v1/model/AccessTopVO.js.map +1 -0
  18. package/v1/model/AttackStatisticRespBody.d.ts +53 -0
  19. package/v1/model/AttackStatisticRespBody.d.ts.map +1 -0
  20. package/v1/model/AttackStatisticRespBody.js +127 -0
  21. package/v1/model/AttackStatisticRespBody.js.map +1 -0
  22. package/v1/model/AttackTrendRespBody.d.ts +14 -0
  23. package/v1/model/AttackTrendRespBody.d.ts.map +1 -0
  24. package/v1/model/AttackTrendRespBody.js +33 -0
  25. package/v1/model/AttackTrendRespBody.js.map +1 -0
  26. package/v1/model/CustomerIpsSaveDto.d.ts +73 -0
  27. package/v1/model/CustomerIpsSaveDto.d.ts.map +1 -0
  28. package/v1/model/CustomerIpsSaveDto.js +149 -0
  29. package/v1/model/CustomerIpsSaveDto.js.map +1 -0
  30. package/v1/model/CustomerIpsVO.d.ts +79 -0
  31. package/v1/model/CustomerIpsVO.d.ts.map +1 -0
  32. package/v1/model/CustomerIpsVO.js +150 -0
  33. package/v1/model/CustomerIpsVO.js.map +1 -0
  34. package/v1/model/ExportIpBlacklistResponse.d.ts +0 -4
  35. package/v1/model/ExportIpBlacklistResponse.d.ts.map +1 -1
  36. package/v1/model/ExportIpBlacklistResponse.js +0 -10
  37. package/v1/model/ExportIpBlacklistResponse.js.map +1 -1
  38. package/v1/model/IpsContent.d.ts +26 -0
  39. package/v1/model/IpsContent.d.ts.map +1 -0
  40. package/v1/model/IpsContent.js +61 -0
  41. package/v1/model/IpsContent.js.map +1 -0
  42. package/v1/model/ListAttackStatisticRequest.d.ts +69 -0
  43. package/v1/model/ListAttackStatisticRequest.d.ts.map +1 -0
  44. package/v1/model/ListAttackStatisticRequest.js +124 -0
  45. package/v1/model/ListAttackStatisticRequest.js.map +1 -0
  46. package/v1/model/ListAttackStatisticResponse.d.ts +8 -0
  47. package/v1/model/ListAttackStatisticResponse.d.ts.map +1 -0
  48. package/v1/model/ListAttackStatisticResponse.js +15 -0
  49. package/v1/model/ListAttackStatisticResponse.js.map +1 -0
  50. package/v1/model/Port.d.ts +10 -0
  51. package/v1/model/Port.d.ts.map +1 -0
  52. package/v1/model/Port.js +23 -0
  53. package/v1/model/Port.js.map +1 -0
  54. package/v1/model/ShowAccessTopRequest.d.ts +79 -0
  55. package/v1/model/ShowAccessTopRequest.d.ts.map +1 -0
  56. package/v1/model/ShowAccessTopRequest.js +139 -0
  57. package/v1/model/ShowAccessTopRequest.js.map +1 -0
  58. package/v1/model/ShowAccessTopResponse.d.ts +8 -0
  59. package/v1/model/ShowAccessTopResponse.d.ts.map +1 -0
  60. package/v1/model/ShowAccessTopResponse.js +15 -0
  61. package/v1/model/ShowAccessTopResponse.js.map +1 -0
  62. package/v1/model/ShowAttackTotalRequest.d.ts +49 -0
  63. package/v1/model/ShowAttackTotalRequest.d.ts.map +1 -0
  64. package/v1/model/ShowAttackTotalRequest.js +97 -0
  65. package/v1/model/ShowAttackTotalRequest.js.map +1 -0
  66. package/v1/model/ShowAttackTotalRespData.d.ts +20 -0
  67. package/v1/model/ShowAttackTotalRespData.d.ts.map +1 -0
  68. package/v1/model/ShowAttackTotalRespData.js +49 -0
  69. package/v1/model/ShowAttackTotalRespData.js.map +1 -0
  70. package/v1/model/ShowAttackTotalResponse.d.ts +8 -0
  71. package/v1/model/ShowAttackTotalResponse.d.ts.map +1 -0
  72. package/v1/model/ShowAttackTotalResponse.js +15 -0
  73. package/v1/model/ShowAttackTotalResponse.js.map +1 -0
  74. package/v1/model/ShowAttackTrendRequest.d.ts +49 -0
  75. package/v1/model/ShowAttackTrendRequest.d.ts.map +1 -0
  76. package/v1/model/ShowAttackTrendRequest.js +97 -0
  77. package/v1/model/ShowAttackTrendRequest.js.map +1 -0
  78. package/v1/model/ShowAttackTrendResponse.d.ts +8 -0
  79. package/v1/model/ShowAttackTrendResponse.d.ts.map +1 -0
  80. package/v1/model/ShowAttackTrendResponse.js +15 -0
  81. package/v1/model/ShowAttackTrendResponse.js.map +1 -0
  82. package/v1/model/ShowCustomerIpsInfoRequest.d.ts +20 -0
  83. package/v1/model/ShowCustomerIpsInfoRequest.d.ts.map +1 -0
  84. package/v1/model/ShowCustomerIpsInfoRequest.js +53 -0
  85. package/v1/model/ShowCustomerIpsInfoRequest.js.map +1 -0
  86. package/v1/model/ShowCustomerIpsInfoResponse.d.ts +8 -0
  87. package/v1/model/ShowCustomerIpsInfoResponse.d.ts.map +1 -0
  88. package/v1/model/ShowCustomerIpsInfoResponse.js +15 -0
  89. package/v1/model/ShowCustomerIpsInfoResponse.js.map +1 -0
  90. package/v1/model/ShowTrafficTrendRequest.d.ts +63 -0
  91. package/v1/model/ShowTrafficTrendRequest.d.ts.map +1 -0
  92. package/v1/model/ShowTrafficTrendRequest.js +121 -0
  93. package/v1/model/ShowTrafficTrendRequest.js.map +1 -0
  94. package/v1/model/ShowTrafficTrendResponse.d.ts +8 -0
  95. package/v1/model/ShowTrafficTrendResponse.d.ts.map +1 -0
  96. package/v1/model/ShowTrafficTrendResponse.js +15 -0
  97. package/v1/model/ShowTrafficTrendResponse.js.map +1 -0
  98. package/v1/model/TopInfo.d.ts +12 -0
  99. package/v1/model/TopInfo.d.ts.map +1 -0
  100. package/v1/model/TopInfo.js +27 -0
  101. package/v1/model/TopInfo.js.map +1 -0
  102. package/v1/model/TrafficTrendVO.d.ts +18 -0
  103. package/v1/model/TrafficTrendVO.d.ts.map +1 -0
  104. package/v1/model/TrafficTrendVO.js +43 -0
  105. package/v1/model/TrafficTrendVO.js.map +1 -0
  106. package/v1/model/UpdateCustomerIpsRequest.d.ts +15 -0
  107. package/v1/model/UpdateCustomerIpsRequest.d.ts.map +1 -0
  108. package/v1/model/UpdateCustomerIpsRequest.js +35 -0
  109. package/v1/model/UpdateCustomerIpsRequest.js.map +1 -0
  110. package/v1/model/UpdateCustomerIpsResponse.d.ts +7 -0
  111. package/v1/model/UpdateCustomerIpsResponse.d.ts.map +1 -0
  112. package/v1/model/UpdateCustomerIpsResponse.js +15 -0
  113. package/v1/model/UpdateCustomerIpsResponse.js.map +1 -0
  114. package/v1/public-api.d.ts +26 -0
  115. package/v1/public-api.d.ts.map +1 -1
  116. package/v1/public-api.js +26 -0
  117. package/v1/public-api.js.map +1 -1
package/v1/CfwClient.js CHANGED
@@ -50,6 +50,7 @@ const ListAddressSetDetailRequest_1 = require("./model/ListAddressSetDetailReque
50
50
  const ListAddressSetsRequest_1 = require("./model/ListAddressSetsRequest");
51
51
  const ListAlarmWhitelistRequest_1 = require("./model/ListAlarmWhitelistRequest");
52
52
  const ListAttackLogsRequest_1 = require("./model/ListAttackLogsRequest");
53
+ const ListAttackStatisticRequest_1 = require("./model/ListAttackStatisticRequest");
53
54
  const ListBlackWhiteListsRequest_1 = require("./model/ListBlackWhiteListsRequest");
54
55
  const ListCaptureResultRequest_1 = require("./model/ListCaptureResultRequest");
55
56
  const ListCaptureTaskRequest_1 = require("./model/ListCaptureTaskRequest");
@@ -83,13 +84,18 @@ const ListServiceSetDetailRequest_1 = require("./model/ListServiceSetDetailReque
83
84
  const ListServiceSetsRequest_1 = require("./model/ListServiceSetsRequest");
84
85
  const RetryIpBlacklistRequest_1 = require("./model/RetryIpBlacklistRequest");
85
86
  const SaveTagsRequest_1 = require("./model/SaveTagsRequest");
87
+ const ShowAccessTopRequest_1 = require("./model/ShowAccessTopRequest");
86
88
  const ShowAlarmConfigRequest_1 = require("./model/ShowAlarmConfigRequest");
87
89
  const ShowAntiVirusRuleRequest_1 = require("./model/ShowAntiVirusRuleRequest");
88
90
  const ShowAntiVirusSwitchRequest_1 = require("./model/ShowAntiVirusSwitchRequest");
91
+ const ShowAttackTotalRequest_1 = require("./model/ShowAttackTotalRequest");
92
+ const ShowAttackTrendRequest_1 = require("./model/ShowAttackTrendRequest");
89
93
  const ShowAutoProtectStatusRequest_1 = require("./model/ShowAutoProtectStatusRequest");
94
+ const ShowCustomerIpsInfoRequest_1 = require("./model/ShowCustomerIpsInfoRequest");
90
95
  const ShowDomainSetDetailRequest_1 = require("./model/ShowDomainSetDetailRequest");
91
96
  const ShowImportStatusRequest_1 = require("./model/ShowImportStatusRequest");
92
97
  const ShowIpsUpdateTimeRequest_1 = require("./model/ShowIpsUpdateTimeRequest");
98
+ const ShowTrafficTrendRequest_1 = require("./model/ShowTrafficTrendRequest");
93
99
  const SwitchAutoProtectStatusRequest_1 = require("./model/SwitchAutoProtectStatusRequest");
94
100
  const UpdateAclRuleOrderRequest_1 = require("./model/UpdateAclRuleOrderRequest");
95
101
  const UpdateAclRuleRequest_1 = require("./model/UpdateAclRuleRequest");
@@ -99,6 +105,7 @@ const UpdateAlarmConfigRequest_1 = require("./model/UpdateAlarmConfigRequest");
99
105
  const UpdateAntiVirusRuleRequest_1 = require("./model/UpdateAntiVirusRuleRequest");
100
106
  const UpdateAntiVirusSwitchRequest_1 = require("./model/UpdateAntiVirusSwitchRequest");
101
107
  const UpdateBlackWhiteListRequest_1 = require("./model/UpdateBlackWhiteListRequest");
108
+ const UpdateCustomerIpsRequest_1 = require("./model/UpdateCustomerIpsRequest");
102
109
  const UpdateDnsServersRequest_1 = require("./model/UpdateDnsServersRequest");
103
110
  const UpdateDomainSetRequest_1 = require("./model/UpdateDomainSetRequest");
104
111
  const UpdateLogConfigRequest_1 = require("./model/UpdateLogConfigRequest");
@@ -676,7 +683,7 @@ class CfwClient {
676
683
  exportIpBlacklist(exportIpBlacklistRequest) {
677
684
  const options = (0, exports.ParamCreater)().exportIpBlacklist(exportIpBlacklistRequest);
678
685
  // @ts-ignore
679
- options['responseHeaders'] = ['Content-Disposition', 'Content-Length', 'Content-Type'];
686
+ options['responseHeaders'] = ['Content-Disposition', 'Content-Type'];
680
687
  return this.hcClient.sendRequest(options);
681
688
  }
682
689
  /**
@@ -855,6 +862,30 @@ class CfwClient {
855
862
  options['responseHeaders'] = [''];
856
863
  return this.hcClient.sendRequest(options);
857
864
  }
865
+ /**
866
+ * 根据防火墙攻击日志,查询攻击统计信息
867
+ *
868
+ * Please refer to HUAWEI cloud API Explorer for details.
869
+ *
870
+ * @summary 查询攻击统计
871
+ * @param {string} projectId **参数解释**: 项目ID,用于明确项目归属,配置后可通过该ID查询项目下资产,可以从调API处获取,也可以从控制台获取。[项目ID获取方式](cfw_02_0015.xml) **约束限制**: 不涉及 **取值范围**: 32位UUID **默认取值**: 不涉及
872
+ * @param {string} fwInstanceId **参数解释**: 防火墙ID,用户创建防火墙实例后产生的唯一ID,配置后可区分不同防火墙,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 **约束限制**: 不涉及 **取值范围**: 32位UUID **默认取值**: 不涉及
873
+ * @param {'internet' | 'nat' | 'vpc' | 'vgw'} logType **参数解释**: 日志类型 **约束限制**: 不涉及 **取值范围**: internet为南北向日志、nat为nat场景日志,vpc为东西向日志,vgw为vgw场景日志 **默认取值**: 不涉及
874
+ * @param {'dst' | 'src'} item **参数解释**: 聚合类型 **约束限制**: 不涉及 **取值范围**: dst TOP攻击目的统计 src TOP攻击来源统计 **默认取值**: 不涉及
875
+ * @param {0 | 1 | 2} [range] **参数解释**: 时间范围 **约束限制**: 不涉及 **取值范围**: 0为近一时 1近一天 2近七天 **默认取值**: 不涉及
876
+ * @param {'in2out' | 'out2in'} [direction] **参数解释**: 会话方向 **约束限制**: 不涉及 **取值范围**: in2out为出云方向 out2in为入云方向 **默认取值**: 不涉及
877
+ * @param {number} [startTime] **参数解释**: 开始时间 **约束限制**: 不涉及 **取值范围**: 毫秒级时间戳 **默认取值**: 不涉及
878
+ * @param {number} [endTime] **参数解释**: 结束时间 **约束限制**: 不涉及 **取值范围**: 毫秒级时间戳 **默认取值**: 不涉及
879
+ * @param {Array<string>} [vgwId] **参数解释**: VGW ID **约束限制**: 不涉及 **取值范围**: 32位UUID **默认取值**: 不涉及
880
+ * @param {*} [options] Override http request option.
881
+ * @throws {RequiredError}
882
+ */
883
+ listAttackStatistic(listAttackStatisticRequest) {
884
+ const options = (0, exports.ParamCreater)().listAttackStatistic(listAttackStatisticRequest);
885
+ // @ts-ignore
886
+ options['responseHeaders'] = [''];
887
+ return this.hcClient.sendRequest(options);
888
+ }
858
889
  /**
859
890
  * 查询黑白名单列表
860
891
  *
@@ -1358,6 +1389,31 @@ class CfwClient {
1358
1389
  options['responseHeaders'] = [''];
1359
1390
  return this.hcClient.sendRequest(options);
1360
1391
  }
1392
+ /**
1393
+ * 获取访问日志的TOP统计信息,如TOP命中规则等
1394
+ *
1395
+ * Please refer to HUAWEI cloud API Explorer for details.
1396
+ *
1397
+ * @summary 查询访问日志统计信息
1398
+ * @param {string} projectId **参数解释**: 项目ID,用于明确项目归属,配置后可通过该ID查询项目下资产,可以从调API处获取,也可以从控制台获取。[项目ID获取方式](cfw_02_0015.xml) **约束限制**: 不涉及 **取值范围**: 32位UUID **默认取值**: 不涉及
1399
+ * @param {string} fwInstanceId **参数解释**: 防火墙ID,用户创建防火墙实例后产生的唯一ID,配置后可区分不同防火墙,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 **约束限制**: 不涉及 **取值范围**: 32位UUID **默认取值**: 不涉及
1400
+ * @param {'strategy_dashboard' | 'strategy_hit_info' | 'top_deny_rule' | 'src_ip' | 'dst_ip' | 'src_region' | 'dst_region' | 'dst_port'} item **参数解释**: 聚合类型 **约束限制**: 不涉及 **取值范围**: strategy_hit_info 策略的命中趋势 strategy_dashboard 策略命中概览 top_deny_rule TOP命中拦截策略 dst_ip TOP拦截目的IP src_ip TOP拦截源IP dst_port TOP拦截端口 dst_region TOP拦截目的地区 src_region TOP拦截源地区 **默认取值**: 不涉及
1401
+ * @param {'in2out' | 'out2in'} [direction] **参数解释**: 会话方向 **约束限制**: 不涉及 **取值范围**: in2out为出云方向 out2in为入云方向 **默认取值**: 不涉及
1402
+ * @param {0 | 1 | 2} [range] **参数解释**: 时间范围 **约束限制**: 不涉及 **取值范围**: 0为近一时 1近一天 2近七天 **默认取值**: 不涉及
1403
+ * @param {number} [startTime] **参数解释**: 开始时间 **约束限制**: 不涉及 **取值范围**: 毫秒级时间戳 **默认取值**: 不涉及
1404
+ * @param {number} [endTime] **参数解释**: 结束时间 **约束限制**: 不涉及 **取值范围**: 毫秒级时间戳 **默认取值**: 不涉及
1405
+ * @param {Array<string>} [vgwId] **参数解释**: VGW ID **约束限制**: 不涉及 **取值范围**: 32位UUID **默认取值**: 不涉及
1406
+ * @param {'internet' | 'nat' | 'vpc' | 'vgw'} [logType] **参数解释**: 日志类型 **约束限制**: 不涉及 **取值范围**: internet为南北向日志、nat为nat场景日志,vpc为东西向日志,vgw为vgw场景日志 **默认取值**: 不涉及
1407
+ * @param {Array<string>} [ruleId] **参数解释**: 规则ID列表 **约束限制**: 不涉及 **取值范围**: 32位UUID **默认取值**: 不涉及
1408
+ * @param {*} [options] Override http request option.
1409
+ * @throws {RequiredError}
1410
+ */
1411
+ showAccessTop(showAccessTopRequest) {
1412
+ const options = (0, exports.ParamCreater)().showAccessTop(showAccessTopRequest);
1413
+ // @ts-ignore
1414
+ options['responseHeaders'] = [''];
1415
+ return this.hcClient.sendRequest(options);
1416
+ }
1361
1417
  /**
1362
1418
  * 获取告警配置信息
1363
1419
  *
@@ -1415,6 +1471,50 @@ class CfwClient {
1415
1471
  options['responseHeaders'] = [''];
1416
1472
  return this.hcClient.sendRequest(options);
1417
1473
  }
1474
+ /**
1475
+ * 查询攻击概览
1476
+ *
1477
+ * Please refer to HUAWEI cloud API Explorer for details.
1478
+ *
1479
+ * @summary 查询攻击概览
1480
+ * @param {string} projectId **参数解释**: 项目ID,用于明确项目归属,配置后可通过该ID查询项目下资产,可以从调API处获取,也可以从控制台获取。[项目ID获取方式](cfw_02_0015.xml) **约束限制**: 不涉及 **取值范围**: 32位UUID **默认取值**: 不涉及
1481
+ * @param {string} fwInstanceId **参数解释**: 防火墙ID,用户创建防火墙实例后产生的唯一ID,配置后可区分不同防火墙,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 **约束限制**: 不涉及 **取值范围**: 32位UUID **默认取值**: 不涉及
1482
+ * @param {'internet' | 'nat' | 'vpc' | 'vgw'} logType **参数解释**: 日志类型 **约束限制**: 不涉及 **取值范围**: internet为南北向日志、nat为nat场景日志,vpc为东西向日志,vgw为vgw场景日志 **默认取值**: 不涉及
1483
+ * @param {0 | 1 | 2} [range] **参数解释**: 时间范围 **约束限制**: 不涉及 **取值范围**: 0为近一时 1近一天 2近七天 **默认取值**: 不涉及
1484
+ * @param {number} [startTime] **参数解释**: 开始时间 **约束限制**: 不涉及 **取值范围**: 毫秒级时间戳 **默认取值**: 不涉及
1485
+ * @param {number} [endTime] **参数解释**: 结束时间 **约束限制**: 不涉及 **取值范围**: 毫秒级时间戳 **默认取值**: 不涉及
1486
+ * @param {Array<string>} [vgwId] **参数解释**: VGW ID **约束限制**: 不涉及 **取值范围**: 32位UUID **默认取值**: 不涉及
1487
+ * @param {*} [options] Override http request option.
1488
+ * @throws {RequiredError}
1489
+ */
1490
+ showAttackTotal(showAttackTotalRequest) {
1491
+ const options = (0, exports.ParamCreater)().showAttackTotal(showAttackTotalRequest);
1492
+ // @ts-ignore
1493
+ options['responseHeaders'] = [''];
1494
+ return this.hcClient.sendRequest(options);
1495
+ }
1496
+ /**
1497
+ * 查询攻击趋势
1498
+ *
1499
+ * Please refer to HUAWEI cloud API Explorer for details.
1500
+ *
1501
+ * @summary 查询攻击趋势
1502
+ * @param {string} projectId **参数解释**: 项目ID,用于明确项目归属,配置后可通过该ID查询项目下资产,可以从调API处获取,也可以从控制台获取。[项目ID获取方式](cfw_02_0015.xml) **约束限制**: 不涉及 **取值范围**: 32位UUID **默认取值**: 不涉及
1503
+ * @param {string} fwInstanceId **参数解释**: 防火墙ID,用户创建防火墙实例后产生的唯一ID,配置后可区分不同防火墙,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 **约束限制**: 不涉及 **取值范围**: 32位UUID **默认取值**: 不涉及
1504
+ * @param {'internet' | 'nat' | 'vpc' | 'vgw'} logType **参数解释**: 日志类型 **约束限制**: 不涉及 **取值范围**: internet为南北向日志、nat为nat场景日志,vpc为东西向日志,vgw为vgw场景日志 **默认取值**: 不涉及
1505
+ * @param {0 | 1 | 2} [range] **参数解释**: 时间范围 **约束限制**: 不涉及 **取值范围**: 0为近一时 1近一天 2近七天 **默认取值**: 不涉及
1506
+ * @param {number} [startTime] **参数解释**: 开始时间 **约束限制**: 不涉及 **取值范围**: 毫秒级时间戳 **默认取值**: 不涉及
1507
+ * @param {number} [endTime] **参数解释**: 结束时间 **约束限制**: 不涉及 **取值范围**: 毫秒级时间戳 **默认取值**: 不涉及
1508
+ * @param {Array<string>} [vgwId] **参数解释**: VGW ID **约束限制**: 不涉及 **取值范围**: 32位UUID **默认取值**: 不涉及
1509
+ * @param {*} [options] Override http request option.
1510
+ * @throws {RequiredError}
1511
+ */
1512
+ showAttackTrend(showAttackTrendRequest) {
1513
+ const options = (0, exports.ParamCreater)().showAttackTrend(showAttackTrendRequest);
1514
+ // @ts-ignore
1515
+ options['responseHeaders'] = [''];
1516
+ return this.hcClient.sendRequest(options);
1517
+ }
1418
1518
  /**
1419
1519
  * 查看域名组详情
1420
1520
  *
@@ -1434,6 +1534,30 @@ class CfwClient {
1434
1534
  options['responseHeaders'] = [''];
1435
1535
  return this.hcClient.sendRequest(options);
1436
1536
  }
1537
+ /**
1538
+ * 查询流量趋势,包括南北向、EIP、东西向的流量趋势
1539
+ *
1540
+ * Please refer to HUAWEI cloud API Explorer for details.
1541
+ *
1542
+ * @summary 查询流量趋势
1543
+ * @param {string} projectId **参数解释**: 项目ID,用于明确项目归属,配置后可通过该ID查询项目下资产,可以从调API处获取,也可以从控制台获取。[项目ID获取方式](cfw_02_0015.xml) **约束限制**: 不涉及 **取值范围**: 32位UUID **默认取值**: 不涉及
1544
+ * @param {string} fwInstanceId **参数解释**: 防火墙ID,用户创建防火墙实例后产生的唯一ID,配置后可区分不同防火墙,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 **约束限制**: 不涉及 **取值范围**: 32位UUID **默认取值**: 不涉及
1545
+ * @param {'internet' | 'nat' | 'vpc' | 'vgw'} logType **参数解释**: 日志类型 **约束限制**: 不涉及 **取值范围**: internet为南北向日志、nat为nat场景日志,vpc为东西向日志,vgw为vgw场景日志 **默认取值**: 不涉及
1546
+ * @param {'avg' | 'max'} aggType **参数解释**: 聚合类型 **约束限制**: 不涉及 **取值范围**: avg为平均值 max为最大值 **默认取值**: 不涉及
1547
+ * @param {0 | 1 | 2} [range] **参数解释**: 时间范围 **约束限制**: 不涉及 **取值范围**: 0为近一时 1近一天 2近七天 **默认取值**: 不涉及
1548
+ * @param {number} [startTime] **参数解释**: 开始时间 **约束限制**: 不涉及 **取值范围**: 毫秒级时间戳 **默认取值**: 不涉及
1549
+ * @param {number} [endTime] **参数解释**: 结束时间 **约束限制**: 不涉及 **取值范围**: 毫秒级时间戳 **默认取值**: 不涉及
1550
+ * @param {Array<string>} [vgwId] **参数解释**: VGW ID **约束限制**: 不涉及 **取值范围**: 32位UUID **默认取值**: 不涉及
1551
+ * @param {Array<string>} [ip] **参数解释**: IP地址列表,查看IP的流量趋势 **约束限制**: 不涉及 **取值范围**: IP地址 **默认取值**: 不涉及
1552
+ * @param {*} [options] Override http request option.
1553
+ * @throws {RequiredError}
1554
+ */
1555
+ showTrafficTrend(showTrafficTrendRequest) {
1556
+ const options = (0, exports.ParamCreater)().showTrafficTrend(showTrafficTrendRequest);
1557
+ // @ts-ignore
1558
+ options['responseHeaders'] = [''];
1559
+ return this.hcClient.sendRequest(options);
1560
+ }
1437
1561
  /**
1438
1562
  * 更新地址组信息
1439
1563
  *
@@ -2162,6 +2286,25 @@ class CfwClient {
2162
2286
  options['responseHeaders'] = [''];
2163
2287
  return this.hcClient.sendRequest(options);
2164
2288
  }
2289
+ /**
2290
+ * 功能说明:自定义IPS规则详情,特性:根据路径输入的IPS ID查看对应的自定义IPS详情
2291
+ *
2292
+ * Please refer to HUAWEI cloud API Explorer for details.
2293
+ *
2294
+ * @summary 查询自定义IPS规则详情
2295
+ * @param {string} fwInstanceId **参数解释**: 防火墙ID,用户创建防火墙实例后产生的唯一ID,配置后可区分不同防火墙,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取 **约束限制**: 不涉及 **取值范围**: 32位UUID **默认取值**: 不涉及
2296
+ * @param {string} ipsCfwId **参数解释**: cfw侧自定义IPS规则id **约束限制**: 不涉及 **取值范围**: 32位UUID **默认取值**: 不涉及
2297
+ * @param {string} objectId **参数解释**: 防护对象ID,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志ID,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得 **约束限制**: type为0时,object_id为互联网边界防护对象ID,type为1时,object_id为VPC边界防护对象ID,type可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得 **取值范围**: 32位UUID **默认取值**: 不涉及
2298
+ * @param {string} projectId **参数解释**: 项目ID,用于明确项目归属,配置后可通过该ID查询项目下资产,可以从调API处获取,也可以从控制台获取。[项目ID获取方式](cfw_02_0015.xml) **约束限制**: 不涉及 **取值范围**: 32位UUID **默认取值**: 不涉及
2299
+ * @param {*} [options] Override http request option.
2300
+ * @throws {RequiredError}
2301
+ */
2302
+ showCustomerIpsInfo(showCustomerIpsInfoRequest) {
2303
+ const options = (0, exports.ParamCreater)().showCustomerIpsInfo(showCustomerIpsInfoRequest);
2304
+ // @ts-ignore
2305
+ options['responseHeaders'] = [''];
2306
+ return this.hcClient.sendRequest(options);
2307
+ }
2165
2308
  /**
2166
2309
  * 获取ips规则细节
2167
2310
  *
@@ -2199,6 +2342,24 @@ class CfwClient {
2199
2342
  options['responseHeaders'] = [''];
2200
2343
  return this.hcClient.sendRequest(options);
2201
2344
  }
2345
+ /**
2346
+ * 更新自定义IPS规则
2347
+ *
2348
+ * Please refer to HUAWEI cloud API Explorer for details.
2349
+ *
2350
+ * @summary 更新自定义IPS规则
2351
+ * @param {string} ipsCfwId **参数解释**: cfw侧自定义IPS规则id **约束限制**: 不涉及 **取值范围**: 32位UUID **默认取值**: 不涉及
2352
+ * @param {string} projectId **参数解释**: 项目ID,用于明确项目归属,配置后可通过该ID查询项目下资产,可以从调API处获取,也可以从控制台获取。[项目ID获取方式](cfw_02_0015.xml) **约束限制**: 不涉及 **取值范围**: 32位UUID **默认取值**: 不涉及
2353
+ * @param {CustomerIpsSaveDto} updateCustomerIpsRequestBody 更新自定义IPS规则请求参数
2354
+ * @param {*} [options] Override http request option.
2355
+ * @throws {RequiredError}
2356
+ */
2357
+ updateCustomerIps(updateCustomerIpsRequest) {
2358
+ const options = (0, exports.ParamCreater)().updateCustomerIps(updateCustomerIpsRequest);
2359
+ // @ts-ignore
2360
+ options['responseHeaders'] = [''];
2361
+ return this.hcClient.sendRequest(options);
2362
+ }
2202
2363
  }
2203
2364
  exports.CfwClient = CfwClient;
2204
2365
  const ParamCreater = function () {
@@ -4490,6 +4651,96 @@ const ParamCreater = function () {
4490
4651
  options.headers = localVarHeaderParameter;
4491
4652
  return options;
4492
4653
  },
4654
+ /**
4655
+ * 根据防火墙攻击日志,查询攻击统计信息
4656
+ *
4657
+ * Please refer to HUAWEI cloud API Explorer for details.
4658
+ */
4659
+ listAttackStatistic(listAttackStatisticRequest) {
4660
+ const options = {
4661
+ method: "GET",
4662
+ url: "/v1/{project_id}/cfw/logs/attack-statistic",
4663
+ contentType: "application/json",
4664
+ queryParams: {},
4665
+ pathParams: {},
4666
+ headers: {}
4667
+ };
4668
+ const localVarHeaderParameter = {};
4669
+ const localVarQueryParameter = {};
4670
+ let projectId;
4671
+ let fwInstanceId;
4672
+ let logType;
4673
+ let item;
4674
+ let range;
4675
+ let direction;
4676
+ let startTime;
4677
+ let endTime;
4678
+ let vgwId;
4679
+ if (listAttackStatisticRequest !== null && listAttackStatisticRequest !== undefined) {
4680
+ if (listAttackStatisticRequest instanceof ListAttackStatisticRequest_1.ListAttackStatisticRequest) {
4681
+ projectId = listAttackStatisticRequest.projectId;
4682
+ fwInstanceId = listAttackStatisticRequest.fwInstanceId;
4683
+ logType = listAttackStatisticRequest.logType;
4684
+ item = listAttackStatisticRequest.item;
4685
+ range = listAttackStatisticRequest.range;
4686
+ direction = listAttackStatisticRequest.direction;
4687
+ startTime = listAttackStatisticRequest.startTime;
4688
+ endTime = listAttackStatisticRequest.endTime;
4689
+ vgwId = listAttackStatisticRequest.vgwId;
4690
+ }
4691
+ else {
4692
+ projectId = listAttackStatisticRequest['project_id'];
4693
+ fwInstanceId = listAttackStatisticRequest['fw_instance_id'];
4694
+ logType = listAttackStatisticRequest['log_type'];
4695
+ item = listAttackStatisticRequest['item'];
4696
+ range = listAttackStatisticRequest['range'];
4697
+ direction = listAttackStatisticRequest['direction'];
4698
+ startTime = listAttackStatisticRequest['start_time'];
4699
+ endTime = listAttackStatisticRequest['end_time'];
4700
+ vgwId = listAttackStatisticRequest['vgw_id'];
4701
+ }
4702
+ }
4703
+ if (projectId === null || projectId === undefined) {
4704
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listAttackStatistic.');
4705
+ }
4706
+ if (fwInstanceId === null || fwInstanceId === undefined) {
4707
+ throw new RequiredError('fwInstanceId', 'Required parameter fwInstanceId was null or undefined when calling listAttackStatistic.');
4708
+ }
4709
+ if (fwInstanceId !== null && fwInstanceId !== undefined) {
4710
+ localVarQueryParameter['fw_instance_id'] = fwInstanceId;
4711
+ }
4712
+ if (logType === null || logType === undefined) {
4713
+ throw new RequiredError('logType', 'Required parameter logType was null or undefined when calling listAttackStatistic.');
4714
+ }
4715
+ if (logType !== null && logType !== undefined) {
4716
+ localVarQueryParameter['log_type'] = logType;
4717
+ }
4718
+ if (item === null || item === undefined) {
4719
+ throw new RequiredError('item', 'Required parameter item was null or undefined when calling listAttackStatistic.');
4720
+ }
4721
+ if (item !== null && item !== undefined) {
4722
+ localVarQueryParameter['item'] = item;
4723
+ }
4724
+ if (range !== null && range !== undefined) {
4725
+ localVarQueryParameter['range'] = range;
4726
+ }
4727
+ if (direction !== null && direction !== undefined) {
4728
+ localVarQueryParameter['direction'] = direction;
4729
+ }
4730
+ if (startTime !== null && startTime !== undefined) {
4731
+ localVarQueryParameter['start_time'] = startTime;
4732
+ }
4733
+ if (endTime !== null && endTime !== undefined) {
4734
+ localVarQueryParameter['end_time'] = endTime;
4735
+ }
4736
+ if (vgwId !== null && vgwId !== undefined) {
4737
+ localVarQueryParameter['vgw_id'] = vgwId;
4738
+ }
4739
+ options.queryParams = localVarQueryParameter;
4740
+ options.pathParams = { 'project_id': projectId, };
4741
+ options.headers = localVarHeaderParameter;
4742
+ return options;
4743
+ },
4493
4744
  /**
4494
4745
  * 查询黑白名单列表
4495
4746
  *
@@ -6129,6 +6380,99 @@ const ParamCreater = function () {
6129
6380
  options.headers = localVarHeaderParameter;
6130
6381
  return options;
6131
6382
  },
6383
+ /**
6384
+ * 获取访问日志的TOP统计信息,如TOP命中规则等
6385
+ *
6386
+ * Please refer to HUAWEI cloud API Explorer for details.
6387
+ */
6388
+ showAccessTop(showAccessTopRequest) {
6389
+ const options = {
6390
+ method: "GET",
6391
+ url: "/v1/{project_id}/cfw/logs/access-top",
6392
+ contentType: "application/json",
6393
+ queryParams: {},
6394
+ pathParams: {},
6395
+ headers: {}
6396
+ };
6397
+ const localVarHeaderParameter = {};
6398
+ const localVarQueryParameter = {};
6399
+ let projectId;
6400
+ let fwInstanceId;
6401
+ let item;
6402
+ let direction;
6403
+ let range;
6404
+ let startTime;
6405
+ let endTime;
6406
+ let vgwId;
6407
+ let logType;
6408
+ let ruleId;
6409
+ if (showAccessTopRequest !== null && showAccessTopRequest !== undefined) {
6410
+ if (showAccessTopRequest instanceof ShowAccessTopRequest_1.ShowAccessTopRequest) {
6411
+ projectId = showAccessTopRequest.projectId;
6412
+ fwInstanceId = showAccessTopRequest.fwInstanceId;
6413
+ item = showAccessTopRequest.item;
6414
+ direction = showAccessTopRequest.direction;
6415
+ range = showAccessTopRequest.range;
6416
+ startTime = showAccessTopRequest.startTime;
6417
+ endTime = showAccessTopRequest.endTime;
6418
+ vgwId = showAccessTopRequest.vgwId;
6419
+ logType = showAccessTopRequest.logType;
6420
+ ruleId = showAccessTopRequest.ruleId;
6421
+ }
6422
+ else {
6423
+ projectId = showAccessTopRequest['project_id'];
6424
+ fwInstanceId = showAccessTopRequest['fw_instance_id'];
6425
+ item = showAccessTopRequest['item'];
6426
+ direction = showAccessTopRequest['direction'];
6427
+ range = showAccessTopRequest['range'];
6428
+ startTime = showAccessTopRequest['start_time'];
6429
+ endTime = showAccessTopRequest['end_time'];
6430
+ vgwId = showAccessTopRequest['vgw_id'];
6431
+ logType = showAccessTopRequest['log_type'];
6432
+ ruleId = showAccessTopRequest['rule_id'];
6433
+ }
6434
+ }
6435
+ if (projectId === null || projectId === undefined) {
6436
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling showAccessTop.');
6437
+ }
6438
+ if (fwInstanceId === null || fwInstanceId === undefined) {
6439
+ throw new RequiredError('fwInstanceId', 'Required parameter fwInstanceId was null or undefined when calling showAccessTop.');
6440
+ }
6441
+ if (fwInstanceId !== null && fwInstanceId !== undefined) {
6442
+ localVarQueryParameter['fw_instance_id'] = fwInstanceId;
6443
+ }
6444
+ if (item === null || item === undefined) {
6445
+ throw new RequiredError('item', 'Required parameter item was null or undefined when calling showAccessTop.');
6446
+ }
6447
+ if (item !== null && item !== undefined) {
6448
+ localVarQueryParameter['item'] = item;
6449
+ }
6450
+ if (direction !== null && direction !== undefined) {
6451
+ localVarQueryParameter['direction'] = direction;
6452
+ }
6453
+ if (range !== null && range !== undefined) {
6454
+ localVarQueryParameter['range'] = range;
6455
+ }
6456
+ if (startTime !== null && startTime !== undefined) {
6457
+ localVarQueryParameter['start_time'] = startTime;
6458
+ }
6459
+ if (endTime !== null && endTime !== undefined) {
6460
+ localVarQueryParameter['end_time'] = endTime;
6461
+ }
6462
+ if (vgwId !== null && vgwId !== undefined) {
6463
+ localVarQueryParameter['vgw_id'] = vgwId;
6464
+ }
6465
+ if (logType !== null && logType !== undefined) {
6466
+ localVarQueryParameter['log_type'] = logType;
6467
+ }
6468
+ if (ruleId !== null && ruleId !== undefined) {
6469
+ localVarQueryParameter['rule_id'] = ruleId;
6470
+ }
6471
+ options.queryParams = localVarQueryParameter;
6472
+ options.pathParams = { 'project_id': projectId, };
6473
+ options.headers = localVarHeaderParameter;
6474
+ return options;
6475
+ },
6132
6476
  /**
6133
6477
  * 获取告警配置信息
6134
6478
  *
@@ -6300,6 +6644,156 @@ const ParamCreater = function () {
6300
6644
  options.headers = localVarHeaderParameter;
6301
6645
  return options;
6302
6646
  },
6647
+ /**
6648
+ * 查询攻击概览
6649
+ *
6650
+ * Please refer to HUAWEI cloud API Explorer for details.
6651
+ */
6652
+ showAttackTotal(showAttackTotalRequest) {
6653
+ const options = {
6654
+ method: "GET",
6655
+ url: "/v1/{project_id}/cfw/logs/total-attack",
6656
+ contentType: "application/json",
6657
+ queryParams: {},
6658
+ pathParams: {},
6659
+ headers: {}
6660
+ };
6661
+ const localVarHeaderParameter = {};
6662
+ const localVarQueryParameter = {};
6663
+ let projectId;
6664
+ let fwInstanceId;
6665
+ let logType;
6666
+ let range;
6667
+ let startTime;
6668
+ let endTime;
6669
+ let vgwId;
6670
+ if (showAttackTotalRequest !== null && showAttackTotalRequest !== undefined) {
6671
+ if (showAttackTotalRequest instanceof ShowAttackTotalRequest_1.ShowAttackTotalRequest) {
6672
+ projectId = showAttackTotalRequest.projectId;
6673
+ fwInstanceId = showAttackTotalRequest.fwInstanceId;
6674
+ logType = showAttackTotalRequest.logType;
6675
+ range = showAttackTotalRequest.range;
6676
+ startTime = showAttackTotalRequest.startTime;
6677
+ endTime = showAttackTotalRequest.endTime;
6678
+ vgwId = showAttackTotalRequest.vgwId;
6679
+ }
6680
+ else {
6681
+ projectId = showAttackTotalRequest['project_id'];
6682
+ fwInstanceId = showAttackTotalRequest['fw_instance_id'];
6683
+ logType = showAttackTotalRequest['log_type'];
6684
+ range = showAttackTotalRequest['range'];
6685
+ startTime = showAttackTotalRequest['start_time'];
6686
+ endTime = showAttackTotalRequest['end_time'];
6687
+ vgwId = showAttackTotalRequest['vgw_id'];
6688
+ }
6689
+ }
6690
+ if (projectId === null || projectId === undefined) {
6691
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling showAttackTotal.');
6692
+ }
6693
+ if (fwInstanceId === null || fwInstanceId === undefined) {
6694
+ throw new RequiredError('fwInstanceId', 'Required parameter fwInstanceId was null or undefined when calling showAttackTotal.');
6695
+ }
6696
+ if (fwInstanceId !== null && fwInstanceId !== undefined) {
6697
+ localVarQueryParameter['fw_instance_id'] = fwInstanceId;
6698
+ }
6699
+ if (logType === null || logType === undefined) {
6700
+ throw new RequiredError('logType', 'Required parameter logType was null or undefined when calling showAttackTotal.');
6701
+ }
6702
+ if (logType !== null && logType !== undefined) {
6703
+ localVarQueryParameter['log_type'] = logType;
6704
+ }
6705
+ if (range !== null && range !== undefined) {
6706
+ localVarQueryParameter['range'] = range;
6707
+ }
6708
+ if (startTime !== null && startTime !== undefined) {
6709
+ localVarQueryParameter['start_time'] = startTime;
6710
+ }
6711
+ if (endTime !== null && endTime !== undefined) {
6712
+ localVarQueryParameter['end_time'] = endTime;
6713
+ }
6714
+ if (vgwId !== null && vgwId !== undefined) {
6715
+ localVarQueryParameter['vgw_id'] = vgwId;
6716
+ }
6717
+ options.queryParams = localVarQueryParameter;
6718
+ options.pathParams = { 'project_id': projectId, };
6719
+ options.headers = localVarHeaderParameter;
6720
+ return options;
6721
+ },
6722
+ /**
6723
+ * 查询攻击趋势
6724
+ *
6725
+ * Please refer to HUAWEI cloud API Explorer for details.
6726
+ */
6727
+ showAttackTrend(showAttackTrendRequest) {
6728
+ const options = {
6729
+ method: "GET",
6730
+ url: "/v1/{project_id}/cfw/logs/trend-attack",
6731
+ contentType: "application/json",
6732
+ queryParams: {},
6733
+ pathParams: {},
6734
+ headers: {}
6735
+ };
6736
+ const localVarHeaderParameter = {};
6737
+ const localVarQueryParameter = {};
6738
+ let projectId;
6739
+ let fwInstanceId;
6740
+ let logType;
6741
+ let range;
6742
+ let startTime;
6743
+ let endTime;
6744
+ let vgwId;
6745
+ if (showAttackTrendRequest !== null && showAttackTrendRequest !== undefined) {
6746
+ if (showAttackTrendRequest instanceof ShowAttackTrendRequest_1.ShowAttackTrendRequest) {
6747
+ projectId = showAttackTrendRequest.projectId;
6748
+ fwInstanceId = showAttackTrendRequest.fwInstanceId;
6749
+ logType = showAttackTrendRequest.logType;
6750
+ range = showAttackTrendRequest.range;
6751
+ startTime = showAttackTrendRequest.startTime;
6752
+ endTime = showAttackTrendRequest.endTime;
6753
+ vgwId = showAttackTrendRequest.vgwId;
6754
+ }
6755
+ else {
6756
+ projectId = showAttackTrendRequest['project_id'];
6757
+ fwInstanceId = showAttackTrendRequest['fw_instance_id'];
6758
+ logType = showAttackTrendRequest['log_type'];
6759
+ range = showAttackTrendRequest['range'];
6760
+ startTime = showAttackTrendRequest['start_time'];
6761
+ endTime = showAttackTrendRequest['end_time'];
6762
+ vgwId = showAttackTrendRequest['vgw_id'];
6763
+ }
6764
+ }
6765
+ if (projectId === null || projectId === undefined) {
6766
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling showAttackTrend.');
6767
+ }
6768
+ if (fwInstanceId === null || fwInstanceId === undefined) {
6769
+ throw new RequiredError('fwInstanceId', 'Required parameter fwInstanceId was null or undefined when calling showAttackTrend.');
6770
+ }
6771
+ if (fwInstanceId !== null && fwInstanceId !== undefined) {
6772
+ localVarQueryParameter['fw_instance_id'] = fwInstanceId;
6773
+ }
6774
+ if (logType === null || logType === undefined) {
6775
+ throw new RequiredError('logType', 'Required parameter logType was null or undefined when calling showAttackTrend.');
6776
+ }
6777
+ if (logType !== null && logType !== undefined) {
6778
+ localVarQueryParameter['log_type'] = logType;
6779
+ }
6780
+ if (range !== null && range !== undefined) {
6781
+ localVarQueryParameter['range'] = range;
6782
+ }
6783
+ if (startTime !== null && startTime !== undefined) {
6784
+ localVarQueryParameter['start_time'] = startTime;
6785
+ }
6786
+ if (endTime !== null && endTime !== undefined) {
6787
+ localVarQueryParameter['end_time'] = endTime;
6788
+ }
6789
+ if (vgwId !== null && vgwId !== undefined) {
6790
+ localVarQueryParameter['vgw_id'] = vgwId;
6791
+ }
6792
+ options.queryParams = localVarQueryParameter;
6793
+ options.pathParams = { 'project_id': projectId, };
6794
+ options.headers = localVarHeaderParameter;
6795
+ return options;
6796
+ },
6303
6797
  /**
6304
6798
  * 查看域名组详情
6305
6799
  *
@@ -6354,6 +6848,96 @@ const ParamCreater = function () {
6354
6848
  options.headers = localVarHeaderParameter;
6355
6849
  return options;
6356
6850
  },
6851
+ /**
6852
+ * 查询流量趋势,包括南北向、EIP、东西向的流量趋势
6853
+ *
6854
+ * Please refer to HUAWEI cloud API Explorer for details.
6855
+ */
6856
+ showTrafficTrend(showTrafficTrendRequest) {
6857
+ const options = {
6858
+ method: "GET",
6859
+ url: "/v1/{project_id}/cfw/logs/traffic-trend",
6860
+ contentType: "application/json",
6861
+ queryParams: {},
6862
+ pathParams: {},
6863
+ headers: {}
6864
+ };
6865
+ const localVarHeaderParameter = {};
6866
+ const localVarQueryParameter = {};
6867
+ let projectId;
6868
+ let fwInstanceId;
6869
+ let logType;
6870
+ let aggType;
6871
+ let range;
6872
+ let startTime;
6873
+ let endTime;
6874
+ let vgwId;
6875
+ let ip;
6876
+ if (showTrafficTrendRequest !== null && showTrafficTrendRequest !== undefined) {
6877
+ if (showTrafficTrendRequest instanceof ShowTrafficTrendRequest_1.ShowTrafficTrendRequest) {
6878
+ projectId = showTrafficTrendRequest.projectId;
6879
+ fwInstanceId = showTrafficTrendRequest.fwInstanceId;
6880
+ logType = showTrafficTrendRequest.logType;
6881
+ aggType = showTrafficTrendRequest.aggType;
6882
+ range = showTrafficTrendRequest.range;
6883
+ startTime = showTrafficTrendRequest.startTime;
6884
+ endTime = showTrafficTrendRequest.endTime;
6885
+ vgwId = showTrafficTrendRequest.vgwId;
6886
+ ip = showTrafficTrendRequest.ip;
6887
+ }
6888
+ else {
6889
+ projectId = showTrafficTrendRequest['project_id'];
6890
+ fwInstanceId = showTrafficTrendRequest['fw_instance_id'];
6891
+ logType = showTrafficTrendRequest['log_type'];
6892
+ aggType = showTrafficTrendRequest['agg_type'];
6893
+ range = showTrafficTrendRequest['range'];
6894
+ startTime = showTrafficTrendRequest['start_time'];
6895
+ endTime = showTrafficTrendRequest['end_time'];
6896
+ vgwId = showTrafficTrendRequest['vgw_id'];
6897
+ ip = showTrafficTrendRequest['ip'];
6898
+ }
6899
+ }
6900
+ if (projectId === null || projectId === undefined) {
6901
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling showTrafficTrend.');
6902
+ }
6903
+ if (fwInstanceId === null || fwInstanceId === undefined) {
6904
+ throw new RequiredError('fwInstanceId', 'Required parameter fwInstanceId was null or undefined when calling showTrafficTrend.');
6905
+ }
6906
+ if (fwInstanceId !== null && fwInstanceId !== undefined) {
6907
+ localVarQueryParameter['fw_instance_id'] = fwInstanceId;
6908
+ }
6909
+ if (logType === null || logType === undefined) {
6910
+ throw new RequiredError('logType', 'Required parameter logType was null or undefined when calling showTrafficTrend.');
6911
+ }
6912
+ if (logType !== null && logType !== undefined) {
6913
+ localVarQueryParameter['log_type'] = logType;
6914
+ }
6915
+ if (aggType === null || aggType === undefined) {
6916
+ throw new RequiredError('aggType', 'Required parameter aggType was null or undefined when calling showTrafficTrend.');
6917
+ }
6918
+ if (aggType !== null && aggType !== undefined) {
6919
+ localVarQueryParameter['agg_type'] = aggType;
6920
+ }
6921
+ if (range !== null && range !== undefined) {
6922
+ localVarQueryParameter['range'] = range;
6923
+ }
6924
+ if (startTime !== null && startTime !== undefined) {
6925
+ localVarQueryParameter['start_time'] = startTime;
6926
+ }
6927
+ if (endTime !== null && endTime !== undefined) {
6928
+ localVarQueryParameter['end_time'] = endTime;
6929
+ }
6930
+ if (vgwId !== null && vgwId !== undefined) {
6931
+ localVarQueryParameter['vgw_id'] = vgwId;
6932
+ }
6933
+ if (ip !== null && ip !== undefined) {
6934
+ localVarQueryParameter['ip'] = ip;
6935
+ }
6936
+ options.queryParams = localVarQueryParameter;
6937
+ options.pathParams = { 'project_id': projectId, };
6938
+ options.headers = localVarHeaderParameter;
6939
+ return options;
6940
+ },
6357
6941
  /**
6358
6942
  * 更新地址组信息
6359
6943
  *
@@ -8596,6 +9180,63 @@ const ParamCreater = function () {
8596
9180
  options.headers = localVarHeaderParameter;
8597
9181
  return options;
8598
9182
  },
9183
+ /**
9184
+ * 功能说明:自定义IPS规则详情,特性:根据路径输入的IPS ID查看对应的自定义IPS详情
9185
+ *
9186
+ * Please refer to HUAWEI cloud API Explorer for details.
9187
+ */
9188
+ showCustomerIpsInfo(showCustomerIpsInfoRequest) {
9189
+ const options = {
9190
+ method: "GET",
9191
+ url: "/v1/{project_id}/ips/custom-rule/{ips_cfw_id}",
9192
+ contentType: "application/json",
9193
+ queryParams: {},
9194
+ pathParams: {},
9195
+ headers: {}
9196
+ };
9197
+ const localVarHeaderParameter = {};
9198
+ const localVarQueryParameter = {};
9199
+ let fwInstanceId;
9200
+ let ipsCfwId;
9201
+ let objectId;
9202
+ let projectId;
9203
+ if (showCustomerIpsInfoRequest !== null && showCustomerIpsInfoRequest !== undefined) {
9204
+ if (showCustomerIpsInfoRequest instanceof ShowCustomerIpsInfoRequest_1.ShowCustomerIpsInfoRequest) {
9205
+ fwInstanceId = showCustomerIpsInfoRequest.fwInstanceId;
9206
+ ipsCfwId = showCustomerIpsInfoRequest.ipsCfwId;
9207
+ objectId = showCustomerIpsInfoRequest.objectId;
9208
+ projectId = showCustomerIpsInfoRequest.projectId;
9209
+ }
9210
+ else {
9211
+ fwInstanceId = showCustomerIpsInfoRequest['fw_instance_id'];
9212
+ ipsCfwId = showCustomerIpsInfoRequest['ips_cfw_id'];
9213
+ objectId = showCustomerIpsInfoRequest['object_id'];
9214
+ projectId = showCustomerIpsInfoRequest['project_id'];
9215
+ }
9216
+ }
9217
+ if (fwInstanceId === null || fwInstanceId === undefined) {
9218
+ throw new RequiredError('fwInstanceId', 'Required parameter fwInstanceId was null or undefined when calling showCustomerIpsInfo.');
9219
+ }
9220
+ if (fwInstanceId !== null && fwInstanceId !== undefined) {
9221
+ localVarQueryParameter['fw_instance_id'] = fwInstanceId;
9222
+ }
9223
+ if (ipsCfwId === null || ipsCfwId === undefined) {
9224
+ throw new RequiredError('ipsCfwId', 'Required parameter ipsCfwId was null or undefined when calling showCustomerIpsInfo.');
9225
+ }
9226
+ if (objectId === null || objectId === undefined) {
9227
+ throw new RequiredError('objectId', 'Required parameter objectId was null or undefined when calling showCustomerIpsInfo.');
9228
+ }
9229
+ if (objectId !== null && objectId !== undefined) {
9230
+ localVarQueryParameter['object_id'] = objectId;
9231
+ }
9232
+ if (projectId === null || projectId === undefined) {
9233
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling showCustomerIpsInfo.');
9234
+ }
9235
+ options.queryParams = localVarQueryParameter;
9236
+ options.pathParams = { 'ips_cfw_id': ipsCfwId, 'project_id': projectId, };
9237
+ options.headers = localVarHeaderParameter;
9238
+ return options;
9239
+ },
8599
9240
  /**
8600
9241
  * 获取ips规则细节
8601
9242
  *
@@ -8698,6 +9339,52 @@ const ParamCreater = function () {
8698
9339
  options.headers = localVarHeaderParameter;
8699
9340
  return options;
8700
9341
  },
9342
+ /**
9343
+ * 更新自定义IPS规则
9344
+ *
9345
+ * Please refer to HUAWEI cloud API Explorer for details.
9346
+ */
9347
+ updateCustomerIps(updateCustomerIpsRequest) {
9348
+ const options = {
9349
+ method: "PUT",
9350
+ url: "/v1/{project_id}/ips/custom-rule/{ips_cfw_id}",
9351
+ contentType: "application/json",
9352
+ queryParams: {},
9353
+ pathParams: {},
9354
+ headers: {},
9355
+ data: {}
9356
+ };
9357
+ const localVarHeaderParameter = {};
9358
+ let body;
9359
+ let ipsCfwId;
9360
+ let projectId;
9361
+ if (updateCustomerIpsRequest !== null && updateCustomerIpsRequest !== undefined) {
9362
+ if (updateCustomerIpsRequest instanceof UpdateCustomerIpsRequest_1.UpdateCustomerIpsRequest) {
9363
+ ipsCfwId = updateCustomerIpsRequest.ipsCfwId;
9364
+ projectId = updateCustomerIpsRequest.projectId;
9365
+ body = updateCustomerIpsRequest.body;
9366
+ }
9367
+ else {
9368
+ ipsCfwId = updateCustomerIpsRequest['ips_cfw_id'];
9369
+ projectId = updateCustomerIpsRequest['project_id'];
9370
+ body = updateCustomerIpsRequest['body'];
9371
+ }
9372
+ }
9373
+ if (ipsCfwId === null || ipsCfwId === undefined) {
9374
+ throw new RequiredError('ipsCfwId', 'Required parameter ipsCfwId was null or undefined when calling updateCustomerIps.');
9375
+ }
9376
+ if (projectId === null || projectId === undefined) {
9377
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling updateCustomerIps.');
9378
+ }
9379
+ if (body === null || body === undefined) {
9380
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
9381
+ }
9382
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9383
+ options.data = body !== undefined ? body : {};
9384
+ options.pathParams = { 'ips_cfw_id': ipsCfwId, 'project_id': projectId, };
9385
+ options.headers = localVarHeaderParameter;
9386
+ return options;
9387
+ },
8701
9388
  };
8702
9389
  };
8703
9390
  exports.ParamCreater = ParamCreater;