@huaweicloud/huaweicloud-sdk-waf 3.1.173 → 3.1.174

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 (317) hide show
  1. package/package.json +2 -2
  2. package/v1/WafClient.d.ts +532 -18
  3. package/v1/WafClient.d.ts.map +1 -1
  4. package/v1/WafClient.js +1360 -42
  5. package/v1/WafClient.js.map +1 -1
  6. package/v1/WafRegion.d.ts +5 -0
  7. package/v1/WafRegion.d.ts.map +1 -1
  8. package/v1/WafRegion.js +11 -1
  9. package/v1/WafRegion.js.map +1 -1
  10. package/v1/model/ConfirmApplicationTypesRequest.d.ts +12 -0
  11. package/v1/model/ConfirmApplicationTypesRequest.d.ts.map +1 -0
  12. package/v1/model/ConfirmApplicationTypesRequest.js +28 -0
  13. package/v1/model/ConfirmApplicationTypesRequest.js.map +1 -0
  14. package/v1/model/ConfirmApplicationTypesResponse.d.ts +9 -0
  15. package/v1/model/ConfirmApplicationTypesResponse.d.ts.map +1 -0
  16. package/v1/model/ConfirmApplicationTypesResponse.js +19 -0
  17. package/v1/model/ConfirmApplicationTypesResponse.js.map +1 -0
  18. package/v1/model/ConfirmAsyncJobRequest.d.ts +14 -0
  19. package/v1/model/ConfirmAsyncJobRequest.d.ts.map +1 -0
  20. package/v1/model/ConfirmAsyncJobRequest.js +35 -0
  21. package/v1/model/ConfirmAsyncJobRequest.js.map +1 -0
  22. package/v1/model/ConfirmAsyncJobResponse.d.ts +13 -0
  23. package/v1/model/ConfirmAsyncJobResponse.d.ts.map +1 -0
  24. package/v1/model/ConfirmAsyncJobResponse.js +29 -0
  25. package/v1/model/ConfirmAsyncJobResponse.js.map +1 -0
  26. package/v1/model/ConfirmThreatMapRequest.d.ts +8 -0
  27. package/v1/model/ConfirmThreatMapRequest.d.ts.map +1 -0
  28. package/v1/model/ConfirmThreatMapRequest.js +20 -0
  29. package/v1/model/ConfirmThreatMapRequest.js.map +1 -0
  30. package/v1/model/ConfirmThreatMapResponse.d.ts +10 -0
  31. package/v1/model/ConfirmThreatMapResponse.d.ts.map +1 -0
  32. package/v1/model/ConfirmThreatMapResponse.js +19 -0
  33. package/v1/model/ConfirmThreatMapResponse.js.map +1 -0
  34. package/v1/model/EipInfo.d.ts +16 -0
  35. package/v1/model/EipInfo.d.ts.map +1 -0
  36. package/v1/model/EipInfo.js +39 -0
  37. package/v1/model/EipInfo.js.map +1 -0
  38. package/v1/model/InstanceTag.d.ts +8 -0
  39. package/v1/model/InstanceTag.d.ts.map +1 -0
  40. package/v1/model/InstanceTag.js +17 -0
  41. package/v1/model/InstanceTag.js.map +1 -0
  42. package/v1/model/IpReputationRulesListInfo.d.ts +21 -0
  43. package/v1/model/IpReputationRulesListInfo.d.ts.map +1 -0
  44. package/v1/model/IpReputationRulesListInfo.js +41 -0
  45. package/v1/model/IpReputationRulesListInfo.js.map +1 -0
  46. package/v1/model/IpReputationRulesListInfoAction.d.ts +15 -0
  47. package/v1/model/IpReputationRulesListInfoAction.d.ts.map +1 -0
  48. package/v1/model/IpReputationRulesListInfoAction.js +24 -0
  49. package/v1/model/IpReputationRulesListInfoAction.js.map +1 -0
  50. package/v1/model/LeakageListInfo.d.ts +2 -0
  51. package/v1/model/LeakageListInfo.d.ts.map +1 -1
  52. package/v1/model/LeakageListInfo.js +4 -0
  53. package/v1/model/LeakageListInfo.js.map +1 -1
  54. package/v1/model/ListAntiTamperPolicyRulesRequest.d.ts +18 -0
  55. package/v1/model/ListAntiTamperPolicyRulesRequest.d.ts.map +1 -0
  56. package/v1/model/ListAntiTamperPolicyRulesRequest.js +42 -0
  57. package/v1/model/ListAntiTamperPolicyRulesRequest.js.map +1 -0
  58. package/v1/model/ListAntiTamperPolicyRulesResponse.d.ts +10 -0
  59. package/v1/model/ListAntiTamperPolicyRulesResponse.d.ts.map +1 -0
  60. package/v1/model/ListAntiTamperPolicyRulesResponse.js +19 -0
  61. package/v1/model/ListAntiTamperPolicyRulesResponse.js.map +1 -0
  62. package/v1/model/ListAntileakagePolicyRulesRequest.d.ts +18 -0
  63. package/v1/model/ListAntileakagePolicyRulesRequest.d.ts.map +1 -0
  64. package/v1/model/ListAntileakagePolicyRulesRequest.js +42 -0
  65. package/v1/model/ListAntileakagePolicyRulesRequest.js.map +1 -0
  66. package/v1/model/ListAntileakagePolicyRulesResponse.d.ts +10 -0
  67. package/v1/model/ListAntileakagePolicyRulesResponse.d.ts.map +1 -0
  68. package/v1/model/ListAntileakagePolicyRulesResponse.js +19 -0
  69. package/v1/model/ListAntileakagePolicyRulesResponse.js.map +1 -0
  70. package/v1/model/ListCcPolicyRulesRequest.d.ts +18 -0
  71. package/v1/model/ListCcPolicyRulesRequest.d.ts.map +1 -0
  72. package/v1/model/ListCcPolicyRulesRequest.js +42 -0
  73. package/v1/model/ListCcPolicyRulesRequest.js.map +1 -0
  74. package/v1/model/ListCcPolicyRulesResponse.d.ts +10 -0
  75. package/v1/model/ListCcPolicyRulesResponse.d.ts.map +1 -0
  76. package/v1/model/ListCcPolicyRulesResponse.js +19 -0
  77. package/v1/model/ListCcPolicyRulesResponse.js.map +1 -0
  78. package/v1/model/ListCustomPolicyRulesRequest.d.ts +18 -0
  79. package/v1/model/ListCustomPolicyRulesRequest.d.ts.map +1 -0
  80. package/v1/model/ListCustomPolicyRulesRequest.js +42 -0
  81. package/v1/model/ListCustomPolicyRulesRequest.js.map +1 -0
  82. package/v1/model/ListCustomPolicyRulesResponse.d.ts +10 -0
  83. package/v1/model/ListCustomPolicyRulesResponse.d.ts.map +1 -0
  84. package/v1/model/ListCustomPolicyRulesResponse.js +19 -0
  85. package/v1/model/ListCustomPolicyRulesResponse.js.map +1 -0
  86. package/v1/model/ListGeoIpPolicyRulesRequest.d.ts +18 -0
  87. package/v1/model/ListGeoIpPolicyRulesRequest.d.ts.map +1 -0
  88. package/v1/model/ListGeoIpPolicyRulesRequest.js +42 -0
  89. package/v1/model/ListGeoIpPolicyRulesRequest.js.map +1 -0
  90. package/v1/model/ListGeoIpPolicyRulesResponse.d.ts +10 -0
  91. package/v1/model/ListGeoIpPolicyRulesResponse.d.ts.map +1 -0
  92. package/v1/model/ListGeoIpPolicyRulesResponse.js +19 -0
  93. package/v1/model/ListGeoIpPolicyRulesResponse.js.map +1 -0
  94. package/v1/model/ListIgnorePolicyRulesRequest.d.ts +18 -0
  95. package/v1/model/ListIgnorePolicyRulesRequest.d.ts.map +1 -0
  96. package/v1/model/ListIgnorePolicyRulesRequest.js +42 -0
  97. package/v1/model/ListIgnorePolicyRulesRequest.js.map +1 -0
  98. package/v1/model/ListIgnorePolicyRulesResponse.d.ts +10 -0
  99. package/v1/model/ListIgnorePolicyRulesResponse.d.ts.map +1 -0
  100. package/v1/model/ListIgnorePolicyRulesResponse.js +19 -0
  101. package/v1/model/ListIgnorePolicyRulesResponse.js.map +1 -0
  102. package/v1/model/ListInstanceTagsRequest.d.ts +14 -0
  103. package/v1/model/ListInstanceTagsRequest.d.ts.map +1 -0
  104. package/v1/model/ListInstanceTagsRequest.js +35 -0
  105. package/v1/model/ListInstanceTagsRequest.js.map +1 -0
  106. package/v1/model/ListInstanceTagsResponse.d.ts +8 -0
  107. package/v1/model/ListInstanceTagsResponse.d.ts.map +1 -0
  108. package/v1/model/ListInstanceTagsResponse.js +15 -0
  109. package/v1/model/ListInstanceTagsResponse.js.map +1 -0
  110. package/v1/model/ListIpReputationPolicyRulesRequest.d.ts +18 -0
  111. package/v1/model/ListIpReputationPolicyRulesRequest.d.ts.map +1 -0
  112. package/v1/model/ListIpReputationPolicyRulesRequest.js +42 -0
  113. package/v1/model/ListIpReputationPolicyRulesRequest.js.map +1 -0
  114. package/v1/model/ListIpReputationPolicyRulesResponse.d.ts +10 -0
  115. package/v1/model/ListIpReputationPolicyRulesResponse.d.ts.map +1 -0
  116. package/v1/model/ListIpReputationPolicyRulesResponse.js +19 -0
  117. package/v1/model/ListIpReputationPolicyRulesResponse.js.map +1 -0
  118. package/v1/model/ListIpReputationRulesRequest.d.ts +20 -0
  119. package/v1/model/ListIpReputationRulesRequest.d.ts.map +1 -0
  120. package/v1/model/ListIpReputationRulesRequest.js +51 -0
  121. package/v1/model/ListIpReputationRulesRequest.js.map +1 -0
  122. package/v1/model/ListIpReputationRulesResponse.d.ts +10 -0
  123. package/v1/model/ListIpReputationRulesResponse.d.ts.map +1 -0
  124. package/v1/model/ListIpReputationRulesResponse.js +19 -0
  125. package/v1/model/ListIpReputationRulesResponse.js.map +1 -0
  126. package/v1/model/ListPrivacyPolicyRulesRequest.d.ts +18 -0
  127. package/v1/model/ListPrivacyPolicyRulesRequest.d.ts.map +1 -0
  128. package/v1/model/ListPrivacyPolicyRulesRequest.js +42 -0
  129. package/v1/model/ListPrivacyPolicyRulesRequest.js.map +1 -0
  130. package/v1/model/ListPrivacyPolicyRulesResponse.d.ts +10 -0
  131. package/v1/model/ListPrivacyPolicyRulesResponse.d.ts.map +1 -0
  132. package/v1/model/ListPrivacyPolicyRulesResponse.js +19 -0
  133. package/v1/model/ListPrivacyPolicyRulesResponse.js.map +1 -0
  134. package/v1/model/ListProtectableResourcesRequest.d.ts +18 -0
  135. package/v1/model/ListProtectableResourcesRequest.d.ts.map +1 -0
  136. package/v1/model/ListProtectableResourcesRequest.js +45 -0
  137. package/v1/model/ListProtectableResourcesRequest.js.map +1 -0
  138. package/v1/model/ListProtectableResourcesResponse.d.ts +10 -0
  139. package/v1/model/ListProtectableResourcesResponse.d.ts.map +1 -0
  140. package/v1/model/ListProtectableResourcesResponse.js +19 -0
  141. package/v1/model/ListProtectableResourcesResponse.js.map +1 -0
  142. package/v1/model/ListResponseCodeTimelineRequest.d.ts +36 -0
  143. package/v1/model/ListResponseCodeTimelineRequest.d.ts.map +1 -0
  144. package/v1/model/ListResponseCodeTimelineRequest.js +77 -0
  145. package/v1/model/ListResponseCodeTimelineRequest.js.map +1 -0
  146. package/v1/model/ListResponseCodeTimelineResponse.d.ts +8 -0
  147. package/v1/model/ListResponseCodeTimelineResponse.d.ts.map +1 -0
  148. package/v1/model/ListResponseCodeTimelineResponse.js +15 -0
  149. package/v1/model/ListResponseCodeTimelineResponse.js.map +1 -0
  150. package/v1/model/ListSecurityReportSendingRecordResponseItems.d.ts +29 -0
  151. package/v1/model/ListSecurityReportSendingRecordResponseItems.d.ts.map +1 -0
  152. package/v1/model/ListSecurityReportSendingRecordResponseItems.js +75 -0
  153. package/v1/model/ListSecurityReportSendingRecordResponseItems.js.map +1 -0
  154. package/v1/model/ListSecurityReportSendingRecordResponseStatPeriod.d.ts +12 -0
  155. package/v1/model/ListSecurityReportSendingRecordResponseStatPeriod.d.ts.map +1 -0
  156. package/v1/model/ListSecurityReportSendingRecordResponseStatPeriod.js +29 -0
  157. package/v1/model/ListSecurityReportSendingRecordResponseStatPeriod.js.map +1 -0
  158. package/v1/model/ListSecurityReportSendingRecordsRequest.d.ts +20 -0
  159. package/v1/model/ListSecurityReportSendingRecordsRequest.d.ts.map +1 -0
  160. package/v1/model/ListSecurityReportSendingRecordsRequest.js +48 -0
  161. package/v1/model/ListSecurityReportSendingRecordsRequest.js.map +1 -0
  162. package/v1/model/ListSecurityReportSendingRecordsResponse.d.ts +10 -0
  163. package/v1/model/ListSecurityReportSendingRecordsResponse.d.ts.map +1 -0
  164. package/v1/model/ListSecurityReportSendingRecordsResponse.js +19 -0
  165. package/v1/model/ListSecurityReportSendingRecordsResponse.js.map +1 -0
  166. package/v1/model/ListWhiteblackipPolicyRulesRequest.d.ts +18 -0
  167. package/v1/model/ListWhiteblackipPolicyRulesRequest.d.ts.map +1 -0
  168. package/v1/model/ListWhiteblackipPolicyRulesRequest.js +42 -0
  169. package/v1/model/ListWhiteblackipPolicyRulesRequest.js.map +1 -0
  170. package/v1/model/ListWhiteblackipPolicyRulesResponse.d.ts +12 -0
  171. package/v1/model/ListWhiteblackipPolicyRulesResponse.d.ts.map +1 -0
  172. package/v1/model/ListWhiteblackipPolicyRulesResponse.js +23 -0
  173. package/v1/model/ListWhiteblackipPolicyRulesResponse.js.map +1 -0
  174. package/v1/model/Listener.d.ts +14 -0
  175. package/v1/model/Listener.d.ts.map +1 -0
  176. package/v1/model/Listener.js +31 -0
  177. package/v1/model/Listener.js.map +1 -0
  178. package/v1/model/ProtectableResources.d.ts +26 -0
  179. package/v1/model/ProtectableResources.d.ts.map +1 -0
  180. package/v1/model/ProtectableResources.js +57 -0
  181. package/v1/model/ProtectableResources.js.map +1 -0
  182. package/v1/model/SecurityReportContentResponseReportContentInfo.d.ts +59 -0
  183. package/v1/model/SecurityReportContentResponseReportContentInfo.d.ts.map +1 -0
  184. package/v1/model/SecurityReportContentResponseReportContentInfo.js +119 -0
  185. package/v1/model/SecurityReportContentResponseReportContentInfo.js.map +1 -0
  186. package/v1/model/SecurityReportContentResponseReportContentInfoAttackTypeDistributionInfoList.d.ts +8 -0
  187. package/v1/model/SecurityReportContentResponseReportContentInfoAttackTypeDistributionInfoList.d.ts.map +1 -0
  188. package/v1/model/SecurityReportContentResponseReportContentInfoAttackTypeDistributionInfoList.js +17 -0
  189. package/v1/model/SecurityReportContentResponseReportContentInfoAttackTypeDistributionInfoList.js.map +1 -0
  190. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfo.d.ts +14 -0
  191. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfo.d.ts.map +1 -0
  192. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfo.js +29 -0
  193. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfo.js.map +1 -0
  194. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoAverageInfoList.d.ts +9 -0
  195. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoAverageInfoList.d.ts.map +1 -0
  196. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoAverageInfoList.js +17 -0
  197. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoAverageInfoList.js.map +1 -0
  198. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoPeakInfoList.d.ts +9 -0
  199. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoPeakInfoList.d.ts.map +1 -0
  200. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoPeakInfoList.js +17 -0
  201. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoPeakInfoList.js.map +1 -0
  202. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoTimeline.d.ts +8 -0
  203. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoTimeline.d.ts.map +1 -0
  204. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoTimeline.js +17 -0
  205. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoTimeline.js.map +1 -0
  206. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoTimeline1.d.ts +8 -0
  207. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoTimeline1.d.ts.map +1 -0
  208. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoTimeline1.js +17 -0
  209. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoTimeline1.js.map +1 -0
  210. package/v1/model/SecurityReportContentResponseReportContentInfoOverviewStatisticsListInfo.d.ts +13 -0
  211. package/v1/model/SecurityReportContentResponseReportContentInfoOverviewStatisticsListInfo.d.ts.map +1 -0
  212. package/v1/model/SecurityReportContentResponseReportContentInfoOverviewStatisticsListInfo.js +27 -0
  213. package/v1/model/SecurityReportContentResponseReportContentInfoOverviewStatisticsListInfo.js.map +1 -0
  214. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfo.d.ts +14 -0
  215. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfo.d.ts.map +1 -0
  216. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfo.js +29 -0
  217. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfo.js.map +1 -0
  218. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoAverageInfoList.d.ts +9 -0
  219. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoAverageInfoList.d.ts.map +1 -0
  220. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoAverageInfoList.js +17 -0
  221. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoAverageInfoList.js.map +1 -0
  222. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoPeakInfoList.d.ts +9 -0
  223. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoPeakInfoList.d.ts.map +1 -0
  224. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoPeakInfoList.js +17 -0
  225. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoPeakInfoList.js.map +1 -0
  226. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoTimeline.d.ts +8 -0
  227. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoTimeline.d.ts.map +1 -0
  228. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoTimeline.js +17 -0
  229. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoTimeline.js.map +1 -0
  230. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoTimeline1.d.ts +8 -0
  231. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoTimeline1.d.ts.map +1 -0
  232. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoTimeline1.js +17 -0
  233. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoTimeline1.js.map +1 -0
  234. package/v1/model/SecurityReportContentResponseReportContentInfoRequestStatisticsInfoList.d.ts +9 -0
  235. package/v1/model/SecurityReportContentResponseReportContentInfoRequestStatisticsInfoList.d.ts.map +1 -0
  236. package/v1/model/SecurityReportContentResponseReportContentInfoRequestStatisticsInfoList.js +17 -0
  237. package/v1/model/SecurityReportContentResponseReportContentInfoRequestStatisticsInfoList.js.map +1 -0
  238. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfo.d.ts +14 -0
  239. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfo.d.ts.map +1 -0
  240. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfo.js +29 -0
  241. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfo.js.map +1 -0
  242. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoResponseSourceUpstreamInfoList.d.ts +9 -0
  243. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoResponseSourceUpstreamInfoList.d.ts.map +1 -0
  244. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoResponseSourceUpstreamInfoList.js +17 -0
  245. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoResponseSourceUpstreamInfoList.js.map +1 -0
  246. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoResponseSourceWafInfoList.d.ts +9 -0
  247. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoResponseSourceWafInfoList.d.ts.map +1 -0
  248. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoResponseSourceWafInfoList.js +17 -0
  249. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoResponseSourceWafInfoList.js.map +1 -0
  250. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoTimeline.d.ts +8 -0
  251. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoTimeline.d.ts.map +1 -0
  252. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoTimeline.js +17 -0
  253. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoTimeline.js.map +1 -0
  254. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoTimeline1.d.ts +8 -0
  255. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoTimeline1.d.ts.map +1 -0
  256. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoTimeline1.js +17 -0
  257. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoTimeline1.js.map +1 -0
  258. package/v1/model/SecurityReportContentResponseReportContentInfoTimeline.d.ts +8 -0
  259. package/v1/model/SecurityReportContentResponseReportContentInfoTimeline.d.ts.map +1 -0
  260. package/v1/model/SecurityReportContentResponseReportContentInfoTimeline.js +17 -0
  261. package/v1/model/SecurityReportContentResponseReportContentInfoTimeline.js.map +1 -0
  262. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfo.d.ts +19 -0
  263. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfo.d.ts.map +1 -0
  264. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfo.js +39 -0
  265. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfo.js.map +1 -0
  266. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfoAbnormal404InfoList.d.ts +10 -0
  267. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfoAbnormal404InfoList.d.ts.map +1 -0
  268. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfoAbnormal404InfoList.js +21 -0
  269. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfoAbnormal404InfoList.js.map +1 -0
  270. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfoAbnormal500InfoList.d.ts +10 -0
  271. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfoAbnormal500InfoList.d.ts.map +1 -0
  272. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfoAbnormal500InfoList.js +21 -0
  273. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfoAbnormal500InfoList.js.map +1 -0
  274. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfoAbnormal502InfoList.d.ts +10 -0
  275. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfoAbnormal502InfoList.d.ts.map +1 -0
  276. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfoAbnormal502InfoList.js +21 -0
  277. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfoAbnormal502InfoList.js.map +1 -0
  278. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackSourceIpsInfoList.d.ts +8 -0
  279. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackSourceIpsInfoList.d.ts.map +1 -0
  280. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackSourceIpsInfoList.js +17 -0
  281. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackSourceIpsInfoList.js.map +1 -0
  282. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackSourceLocationsInfoList.d.ts +8 -0
  283. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackSourceLocationsInfoList.d.ts.map +1 -0
  284. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackSourceLocationsInfoList.js +17 -0
  285. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackSourceLocationsInfoList.js.map +1 -0
  286. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackedDomainsInfoList.d.ts +12 -0
  287. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackedDomainsInfoList.d.ts.map +1 -0
  288. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackedDomainsInfoList.js +27 -0
  289. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackedDomainsInfoList.js.map +1 -0
  290. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackedUrlsInfoList.d.ts +10 -0
  291. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackedUrlsInfoList.d.ts.map +1 -0
  292. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackedUrlsInfoList.js +21 -0
  293. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackedUrlsInfoList.js.map +1 -0
  294. package/v1/model/SecurityReportContentResponseReportContentInfoTopDomains.d.ts +8 -0
  295. package/v1/model/SecurityReportContentResponseReportContentInfoTopDomains.d.ts.map +1 -0
  296. package/v1/model/SecurityReportContentResponseReportContentInfoTopDomains.js +17 -0
  297. package/v1/model/SecurityReportContentResponseReportContentInfoTopDomains.js.map +1 -0
  298. package/v1/model/SecurityReportContentResponseStatPeriod.d.ts +12 -0
  299. package/v1/model/SecurityReportContentResponseStatPeriod.d.ts.map +1 -0
  300. package/v1/model/SecurityReportContentResponseStatPeriod.js +31 -0
  301. package/v1/model/SecurityReportContentResponseStatPeriod.js.map +1 -0
  302. package/v1/model/ShowSecurityReportContentRequest.d.ts +16 -0
  303. package/v1/model/ShowSecurityReportContentRequest.d.ts.map +1 -0
  304. package/v1/model/ShowSecurityReportContentRequest.js +42 -0
  305. package/v1/model/ShowSecurityReportContentRequest.js.map +1 -0
  306. package/v1/model/ShowSecurityReportContentResponse.d.ts +47 -0
  307. package/v1/model/ShowSecurityReportContentResponse.d.ts.map +1 -0
  308. package/v1/model/ShowSecurityReportContentResponse.js +111 -0
  309. package/v1/model/ShowSecurityReportContentResponse.js.map +1 -0
  310. package/v1/model/ThreatMapResponseBodyLocale.d.ts +76 -0
  311. package/v1/model/ThreatMapResponseBodyLocale.d.ts.map +1 -0
  312. package/v1/model/ThreatMapResponseBodyLocale.js +175 -0
  313. package/v1/model/ThreatMapResponseBodyLocale.js.map +1 -0
  314. package/v1/public-api.d.ts +75 -0
  315. package/v1/public-api.d.ts.map +1 -1
  316. package/v1/public-api.js +75 -0
  317. package/v1/public-api.js.map +1 -1
package/v1/WafClient.js CHANGED
@@ -5,6 +5,9 @@ const ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder
5
5
  const ApplyCertificateToHostRequest_1 = require("./model/ApplyCertificateToHostRequest");
6
6
  const BatchDeletePoliciesRequest_1 = require("./model/BatchDeletePoliciesRequest");
7
7
  const ChangePrepaidCloudWafRequest_1 = require("./model/ChangePrepaidCloudWafRequest");
8
+ const ConfirmApplicationTypesRequest_1 = require("./model/ConfirmApplicationTypesRequest");
9
+ const ConfirmAsyncJobRequest_1 = require("./model/ConfirmAsyncJobRequest");
10
+ const ConfirmThreatMapRequest_1 = require("./model/ConfirmThreatMapRequest");
8
11
  const ConfirmTmsResourceInstancesRequest_1 = require("./model/ConfirmTmsResourceInstancesRequest");
9
12
  const ConfirmUserBundleRequest_1 = require("./model/ConfirmUserBundleRequest");
10
13
  const CreateAntiTamperRuleRequest_1 = require("./model/CreateAntiTamperRuleRequest");
@@ -44,31 +47,44 @@ const DeletePrivacyRuleRequest_1 = require("./model/DeletePrivacyRuleRequest");
44
47
  const DeletePunishmentRuleRequest_1 = require("./model/DeletePunishmentRuleRequest");
45
48
  const DeleteValueListRequest_1 = require("./model/DeleteValueListRequest");
46
49
  const DeleteWhiteBlackIpRuleRequest_1 = require("./model/DeleteWhiteBlackIpRuleRequest");
50
+ const ListAntiTamperPolicyRulesRequest_1 = require("./model/ListAntiTamperPolicyRulesRequest");
47
51
  const ListAnticrawlerRulesRequest_1 = require("./model/ListAnticrawlerRulesRequest");
52
+ const ListAntileakagePolicyRulesRequest_1 = require("./model/ListAntileakagePolicyRulesRequest");
48
53
  const ListAntileakageRulesRequest_1 = require("./model/ListAntileakageRulesRequest");
49
54
  const ListAntitamperRuleRequest_1 = require("./model/ListAntitamperRuleRequest");
50
55
  const ListAttackActionTypesRequest_1 = require("./model/ListAttackActionTypesRequest");
51
56
  const ListBandwidthTimelineRequest_1 = require("./model/ListBandwidthTimelineRequest");
57
+ const ListCcPolicyRulesRequest_1 = require("./model/ListCcPolicyRulesRequest");
52
58
  const ListCcRulesRequest_1 = require("./model/ListCcRulesRequest");
53
59
  const ListCertificatesRequest_1 = require("./model/ListCertificatesRequest");
54
60
  const ListCompositeHostsRequest_1 = require("./model/ListCompositeHostsRequest");
61
+ const ListCustomPolicyRulesRequest_1 = require("./model/ListCustomPolicyRulesRequest");
55
62
  const ListCustomRulesRequest_1 = require("./model/ListCustomRulesRequest");
56
63
  const ListEventLogRequest_1 = require("./model/ListEventLogRequest");
57
64
  const ListEventRequest_1 = require("./model/ListEventRequest");
65
+ const ListGeoIpPolicyRulesRequest_1 = require("./model/ListGeoIpPolicyRulesRequest");
58
66
  const ListGeoipRuleRequest_1 = require("./model/ListGeoipRuleRequest");
59
67
  const ListHostRequest_1 = require("./model/ListHostRequest");
60
68
  const ListHostRouteRequest_1 = require("./model/ListHostRouteRequest");
69
+ const ListIgnorePolicyRulesRequest_1 = require("./model/ListIgnorePolicyRulesRequest");
61
70
  const ListIgnoreRuleRequest_1 = require("./model/ListIgnoreRuleRequest");
62
71
  const ListInstanceRequest_1 = require("./model/ListInstanceRequest");
72
+ const ListInstanceTagsRequest_1 = require("./model/ListInstanceTagsRequest");
63
73
  const ListIpGroupRequest_1 = require("./model/ListIpGroupRequest");
74
+ const ListIpReputationPolicyRulesRequest_1 = require("./model/ListIpReputationPolicyRulesRequest");
75
+ const ListIpReputationRulesRequest_1 = require("./model/ListIpReputationRulesRequest");
64
76
  const ListNoticeConfigsRequest_1 = require("./model/ListNoticeConfigsRequest");
65
77
  const ListOverviewsClassificationRequest_1 = require("./model/ListOverviewsClassificationRequest");
66
78
  const ListPolicyRequest_1 = require("./model/ListPolicyRequest");
67
79
  const ListPremiumHostRequest_1 = require("./model/ListPremiumHostRequest");
80
+ const ListPrivacyPolicyRulesRequest_1 = require("./model/ListPrivacyPolicyRulesRequest");
68
81
  const ListPrivacyRuleRequest_1 = require("./model/ListPrivacyRuleRequest");
82
+ const ListProtectableResourcesRequest_1 = require("./model/ListProtectableResourcesRequest");
69
83
  const ListPunishmentRulesRequest_1 = require("./model/ListPunishmentRulesRequest");
70
84
  const ListQpsTimelineRequest_1 = require("./model/ListQpsTimelineRequest");
71
85
  const ListRequestTimelineRequest_1 = require("./model/ListRequestTimelineRequest");
86
+ const ListResponseCodeTimelineRequest_1 = require("./model/ListResponseCodeTimelineRequest");
87
+ const ListSecurityReportSendingRecordsRequest_1 = require("./model/ListSecurityReportSendingRecordsRequest");
72
88
  const ListSecurityReportSubscriptionsRequest_1 = require("./model/ListSecurityReportSubscriptionsRequest");
73
89
  const ListStatisticsRequest_1 = require("./model/ListStatisticsRequest");
74
90
  const ListTopAbnormalRequest_1 = require("./model/ListTopAbnormalRequest");
@@ -77,6 +93,7 @@ const ListTopIpRequest_1 = require("./model/ListTopIpRequest");
77
93
  const ListTopUrlRequest_1 = require("./model/ListTopUrlRequest");
78
94
  const ListValueListRequest_1 = require("./model/ListValueListRequest");
79
95
  const ListWebBasicProtectionRulesRequest_1 = require("./model/ListWebBasicProtectionRulesRequest");
96
+ const ListWhiteblackipPolicyRulesRequest_1 = require("./model/ListWhiteblackipPolicyRulesRequest");
80
97
  const ListWhiteblackipRuleRequest_1 = require("./model/ListWhiteblackipRuleRequest");
81
98
  const MigrateCompositeHostsRequest_1 = require("./model/MigrateCompositeHostsRequest");
82
99
  const RenameInstanceRequest_1 = require("./model/RenameInstanceRequest");
@@ -101,6 +118,7 @@ const ShowPolicyRequest_1 = require("./model/ShowPolicyRequest");
101
118
  const ShowPremiumHostRequest_1 = require("./model/ShowPremiumHostRequest");
102
119
  const ShowPrivacyRuleRequest_1 = require("./model/ShowPrivacyRuleRequest");
103
120
  const ShowPunishmentRuleRequest_1 = require("./model/ShowPunishmentRuleRequest");
121
+ const ShowSecurityReportContentRequest_1 = require("./model/ShowSecurityReportContentRequest");
104
122
  const ShowSourceIpRequest_1 = require("./model/ShowSourceIpRequest");
105
123
  const ShowSubscriptionInfoRequest_1 = require("./model/ShowSubscriptionInfoRequest");
106
124
  const ShowValueListRequest_1 = require("./model/ShowValueListRequest");
@@ -201,6 +219,58 @@ class WafClient {
201
219
  options['responseHeaders'] = [''];
202
220
  return this.hcClient.sendRequest(options);
203
221
  }
222
+ /**
223
+ * 按application规则类型获取内置规则类型
224
+ *
225
+ * Please refer to HUAWEI cloud API Explorer for details.
226
+ *
227
+ * @summary 按application规则类型获取内置规则类型
228
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
229
+ * @param {number} [offset] **参数解释:** 分页查询的起始位置,表示从第几条记录开始返回(从1开始计数)。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 1
230
+ * @param {number} [limit] **参数解释:** 分页查询的单页返回数量,控制每次请求返回的记录条数。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 10
231
+ * @param {*} [options] Override http request option.
232
+ * @throws {RequiredError}
233
+ */
234
+ confirmApplicationTypes(confirmApplicationTypesRequest) {
235
+ const options = (0, exports.ParamCreater)().confirmApplicationTypes(confirmApplicationTypesRequest);
236
+ // @ts-ignore
237
+ options['responseHeaders'] = [''];
238
+ return this.hcClient.sendRequest(options);
239
+ }
240
+ /**
241
+ * 查询异步任务的执行状态详情
242
+ *
243
+ * Please refer to HUAWEI cloud API Explorer for details.
244
+ *
245
+ * @summary 查询异步任务详情
246
+ * @param {string} jobId **参数解释:** 异步任务的任务id **约束限制:** 不涉及 **取值范围:** 只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
247
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
248
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
249
+ * @param {*} [options] Override http request option.
250
+ * @throws {RequiredError}
251
+ */
252
+ confirmAsyncJob(confirmAsyncJobRequest) {
253
+ const options = (0, exports.ParamCreater)().confirmAsyncJob(confirmAsyncJobRequest);
254
+ // @ts-ignore
255
+ options['responseHeaders'] = [''];
256
+ return this.hcClient.sendRequest(options);
257
+ }
258
+ /**
259
+ * 查询告警可选事件类型
260
+ *
261
+ * Please refer to HUAWEI cloud API Explorer for details.
262
+ *
263
+ * @summary SMN告警通知
264
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
265
+ * @param {*} [options] Override http request option.
266
+ * @throws {RequiredError}
267
+ */
268
+ confirmThreatMap(confirmThreatMapRequest) {
269
+ const options = (0, exports.ParamCreater)().confirmThreatMap(confirmThreatMapRequest);
270
+ // @ts-ignore
271
+ options['responseHeaders'] = [''];
272
+ return this.hcClient.sendRequest(options);
273
+ }
204
274
  /**
205
275
  * 使用标签过滤实例,标签管理服务需要提供按标签过滤各服务实例并汇总显示在列表中,需要各服务提供查询能力。
206
276
  *
@@ -924,6 +994,26 @@ class WafClient {
924
994
  options['responseHeaders'] = [''];
925
995
  return this.hcClient.sendRequest(options);
926
996
  }
997
+ /**
998
+ * 查询所有策略网页防篡改
999
+ *
1000
+ * Please refer to HUAWEI cloud API Explorer for details.
1001
+ *
1002
+ * @summary 查询所有策略网页防篡改
1003
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1004
+ * @param {string} [policyids] **参数解释:** 域名id。 **约束限制:** 不涉及 **取值范围:** 只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
1005
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
1006
+ * @param {number} [page] **参数解释:** 分页查询的起始位置,表示从第几条记录开始返回(从1开始计数)。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 1
1007
+ * @param {number} [pagesize] **参数解释:** 分页查询时,每页包含多少条结果。 **约束限制:** 不涉及 **默认取值:** 1000
1008
+ * @param {*} [options] Override http request option.
1009
+ * @throws {RequiredError}
1010
+ */
1011
+ listAntiTamperPolicyRules(listAntiTamperPolicyRulesRequest) {
1012
+ const options = (0, exports.ParamCreater)().listAntiTamperPolicyRules(listAntiTamperPolicyRulesRequest);
1013
+ // @ts-ignore
1014
+ options['responseHeaders'] = [''];
1015
+ return this.hcClient.sendRequest(options);
1016
+ }
927
1017
  /**
928
1018
  * 查询JS脚本反爬虫规则列表
929
1019
  *
@@ -945,6 +1035,26 @@ class WafClient {
945
1035
  options['responseHeaders'] = [''];
946
1036
  return this.hcClient.sendRequest(options);
947
1037
  }
1038
+ /**
1039
+ * 查询所有策略防敏感信息泄漏规则
1040
+ *
1041
+ * Please refer to HUAWEI cloud API Explorer for details.
1042
+ *
1043
+ * @summary 查询所有策略防敏感信息泄漏规则
1044
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1045
+ * @param {string} [policyids] **参数解释:** 域名id。 **约束限制:** 不涉及 **取值范围:** 只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
1046
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
1047
+ * @param {number} [page] **参数解释:** 分页查询的起始位置,表示从第几条记录开始返回(从1开始计数)。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 1
1048
+ * @param {number} [pagesize] **参数解释:** 分页查询时,每页包含多少条结果。 **约束限制:** 不涉及 **默认取值:** 1000
1049
+ * @param {*} [options] Override http request option.
1050
+ * @throws {RequiredError}
1051
+ */
1052
+ listAntileakagePolicyRules(listAntileakagePolicyRulesRequest) {
1053
+ const options = (0, exports.ParamCreater)().listAntileakagePolicyRules(listAntileakagePolicyRulesRequest);
1054
+ // @ts-ignore
1055
+ options['responseHeaders'] = [''];
1056
+ return this.hcClient.sendRequest(options);
1057
+ }
948
1058
  /**
949
1059
  * 查询防敏感信息泄露规则列表
950
1060
  *
@@ -1027,6 +1137,26 @@ class WafClient {
1027
1137
  options['responseHeaders'] = [''];
1028
1138
  return this.hcClient.sendRequest(options);
1029
1139
  }
1140
+ /**
1141
+ * 查询所有策略CC规则
1142
+ *
1143
+ * Please refer to HUAWEI cloud API Explorer for details.
1144
+ *
1145
+ * @summary 查询所有策略CC规则
1146
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1147
+ * @param {string} [policyids] **参数解释:** 策略id列表。策略id从\"查询防护策略列表\"(ListPolicy)接口获取,多个策略之间用“,”隔开 **约束限制:** 不涉及 **取值范围:** 策略id只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
1148
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
1149
+ * @param {number} [page] **参数解释:** 分页查询的起始位置,表示从第几条记录开始返回(从1开始计数)。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 1
1150
+ * @param {number} [pagesize] **参数解释:** 分页查询时,每页包含多少条结果。 **约束限制:** 不涉及 **默认取值:** 1000
1151
+ * @param {*} [options] Override http request option.
1152
+ * @throws {RequiredError}
1153
+ */
1154
+ listCcPolicyRules(listCcPolicyRulesRequest) {
1155
+ const options = (0, exports.ParamCreater)().listCcPolicyRules(listCcPolicyRulesRequest);
1156
+ // @ts-ignore
1157
+ options['responseHeaders'] = [''];
1158
+ return this.hcClient.sendRequest(options);
1159
+ }
1030
1160
  /**
1031
1161
  * 查询cc规则列表
1032
1162
  *
@@ -1094,6 +1224,26 @@ class WafClient {
1094
1224
  options['responseHeaders'] = [''];
1095
1225
  return this.hcClient.sendRequest(options);
1096
1226
  }
1227
+ /**
1228
+ * 查询所有策略精准防护规则
1229
+ *
1230
+ * Please refer to HUAWEI cloud API Explorer for details.
1231
+ *
1232
+ * @summary 查询所有策略精准防护规则
1233
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1234
+ * @param {string} [policyids] **参数解释:** 策略id列表。策略id从\"查询防护策略列表\"(ListPolicy)接口获取,多个策略之间用“,”隔开 **约束限制:** 不涉及 **取值范围:** 策略id只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
1235
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
1236
+ * @param {number} [page] **参数解释:** 分页查询的起始位置,表示从第几条记录开始返回(从1开始计数)。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 1
1237
+ * @param {number} [pagesize] **参数解释:** 分页查询时,每页包含多少条结果。 **约束限制:** 不涉及 **默认取值:** 1000
1238
+ * @param {*} [options] Override http request option.
1239
+ * @throws {RequiredError}
1240
+ */
1241
+ listCustomPolicyRules(listCustomPolicyRulesRequest) {
1242
+ const options = (0, exports.ParamCreater)().listCustomPolicyRules(listCustomPolicyRulesRequest);
1243
+ // @ts-ignore
1244
+ options['responseHeaders'] = [''];
1245
+ return this.hcClient.sendRequest(options);
1246
+ }
1097
1247
  /**
1098
1248
  * 查询精准防护规则列表
1099
1249
  *
@@ -1158,6 +1308,26 @@ class WafClient {
1158
1308
  options['responseHeaders'] = [''];
1159
1309
  return this.hcClient.sendRequest(options);
1160
1310
  }
1311
+ /**
1312
+ * 查询所有策略地理位置访问控制
1313
+ *
1314
+ * Please refer to HUAWEI cloud API Explorer for details.
1315
+ *
1316
+ * @summary 查询所有策略地理位置访问控制
1317
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1318
+ * @param {string} [policyids] **参数解释:** 策略id列表。策略id从\"查询防护策略列表\"(ListPolicy)接口获取,多个策略之间用“,”隔开 **约束限制:** 不涉及 **取值范围:** 策略id只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
1319
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
1320
+ * @param {number} [page] **参数解释:** 分页查询的起始位置,表示从第几条记录开始返回(从1开始计数)。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 1
1321
+ * @param {number} [pagesize] **参数解释:** 分页查询时,每页包含多少条结果。 **约束限制:** 不涉及 **默认取值:** 1000
1322
+ * @param {*} [options] Override http request option.
1323
+ * @throws {RequiredError}
1324
+ */
1325
+ listGeoIpPolicyRules(listGeoIpPolicyRulesRequest) {
1326
+ const options = (0, exports.ParamCreater)().listGeoIpPolicyRules(listGeoIpPolicyRulesRequest);
1327
+ // @ts-ignore
1328
+ options['responseHeaders'] = [''];
1329
+ return this.hcClient.sendRequest(options);
1330
+ }
1161
1331
  /**
1162
1332
  * 查询地理位置访问控制规则列表
1163
1333
  *
@@ -1200,15 +1370,7 @@ class WafClient {
1200
1370
  return this.hcClient.sendRequest(options);
1201
1371
  }
1202
1372
  /**
1203
- * **参数解释:**
1204
- * 返回路由信息。
1205
- * > 该API局点受限使用,后续将下线。
1206
- * **约束限制:**
1207
- * 不涉及
1208
- * **取值范围:**
1209
- * 不涉及
1210
- * **默认取值:**
1211
- * 不涉及
1373
+ * 返回路由信息。 > 该API局点受限使用,后续将下线。
1212
1374
  *
1213
1375
  * Please refer to HUAWEI cloud API Explorer for details.
1214
1376
  *
@@ -1225,6 +1387,26 @@ class WafClient {
1225
1387
  options['responseHeaders'] = [''];
1226
1388
  return this.hcClient.sendRequest(options);
1227
1389
  }
1390
+ /**
1391
+ * 查询所有策略全局白名单
1392
+ *
1393
+ * Please refer to HUAWEI cloud API Explorer for details.
1394
+ *
1395
+ * @summary 查询所有策略全局白名单
1396
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1397
+ * @param {string} [policyids] **参数解释:** 域名id。 **约束限制:** 不涉及 **取值范围:** 只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
1398
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
1399
+ * @param {number} [page] **参数解释:** 分页查询的起始位置,表示从第几条记录开始返回(从1开始计数)。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 1
1400
+ * @param {number} [pagesize] **参数解释:** 分页查询时,每页包含多少条结果。 **约束限制:** 不涉及 **默认取值:** 1000
1401
+ * @param {*} [options] Override http request option.
1402
+ * @throws {RequiredError}
1403
+ */
1404
+ listIgnorePolicyRules(listIgnorePolicyRulesRequest) {
1405
+ const options = (0, exports.ParamCreater)().listIgnorePolicyRules(listIgnorePolicyRulesRequest);
1406
+ // @ts-ignore
1407
+ options['responseHeaders'] = [''];
1408
+ return this.hcClient.sendRequest(options);
1409
+ }
1228
1410
  /**
1229
1411
  * 查询全局白名单(原误报屏蔽)规则列表
1230
1412
  *
@@ -1265,6 +1447,24 @@ class WafClient {
1265
1447
  options['responseHeaders'] = [''];
1266
1448
  return this.hcClient.sendRequest(options);
1267
1449
  }
1450
+ /**
1451
+ * 查询WAF独享引擎标签。独享模式只在部分局点支持,包括:华北-北京四、华东-上海一、华南-广州、华南-深圳 、中国-香港、亚太-曼谷、 亚太-新加坡。
1452
+ *
1453
+ * Please refer to HUAWEI cloud API Explorer for details.
1454
+ *
1455
+ * @summary 查询WAF独享引擎标签
1456
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1457
+ * @param {string} resourceid **参数解释:** 资源类型,目前支持waf和waf-instance **约束限制:** 不涉及 **取值范围:** - waf - waf-instance **默认取值:** 不涉及
1458
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
1459
+ * @param {*} [options] Override http request option.
1460
+ * @throws {RequiredError}
1461
+ */
1462
+ listInstanceTags(listInstanceTagsRequest) {
1463
+ const options = (0, exports.ParamCreater)().listInstanceTags(listInstanceTagsRequest);
1464
+ // @ts-ignore
1465
+ options['responseHeaders'] = [''];
1466
+ return this.hcClient.sendRequest(options);
1467
+ }
1268
1468
  /**
1269
1469
  * 查询地址组列表
1270
1470
  *
@@ -1286,6 +1486,46 @@ class WafClient {
1286
1486
  options['responseHeaders'] = [''];
1287
1487
  return this.hcClient.sendRequest(options);
1288
1488
  }
1489
+ /**
1490
+ * 查询所有策略威胁情报控制规则
1491
+ *
1492
+ * Please refer to HUAWEI cloud API Explorer for details.
1493
+ *
1494
+ * @summary 查询所有策略威胁情报控制规则
1495
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1496
+ * @param {string} [policyids] **参数解释:** 域名id。 **约束限制:** 不涉及 **取值范围:** 只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
1497
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
1498
+ * @param {number} [page] **参数解释:** 分页查询的起始位置,表示从第几条记录开始返回(从1开始计数)。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 1
1499
+ * @param {number} [pagesize] **参数解释:** 分页查询时,每页包含多少条结果。 **约束限制:** 不涉及 **默认取值:** 1000
1500
+ * @param {*} [options] Override http request option.
1501
+ * @throws {RequiredError}
1502
+ */
1503
+ listIpReputationPolicyRules(listIpReputationPolicyRulesRequest) {
1504
+ const options = (0, exports.ParamCreater)().listIpReputationPolicyRules(listIpReputationPolicyRulesRequest);
1505
+ // @ts-ignore
1506
+ options['responseHeaders'] = [''];
1507
+ return this.hcClient.sendRequest(options);
1508
+ }
1509
+ /**
1510
+ * 查询威胁情报规则列表
1511
+ *
1512
+ * Please refer to HUAWEI cloud API Explorer for details.
1513
+ *
1514
+ * @summary 查询威胁情报规则列表
1515
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1516
+ * @param {string} policyId **参数解释:** 策略id(策略id从查询防护策略列表接口获取) **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1517
+ * @param {number} offset **参数解释:** 偏移量,表示查询该偏移量之后的记录。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1518
+ * @param {number} limit **参数解释:** 查询返回记录的数量限制。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 1000
1519
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
1520
+ * @param {*} [options] Override http request option.
1521
+ * @throws {RequiredError}
1522
+ */
1523
+ listIpReputationRules(listIpReputationRulesRequest) {
1524
+ const options = (0, exports.ParamCreater)().listIpReputationRules(listIpReputationRulesRequest);
1525
+ // @ts-ignore
1526
+ options['responseHeaders'] = [''];
1527
+ return this.hcClient.sendRequest(options);
1528
+ }
1289
1529
  /**
1290
1530
  * 查询告警通知配置
1291
1531
  *
@@ -1368,6 +1608,26 @@ class WafClient {
1368
1608
  options['responseHeaders'] = [''];
1369
1609
  return this.hcClient.sendRequest(options);
1370
1610
  }
1611
+ /**
1612
+ * 查询所有策略隐私屏蔽防护规则
1613
+ *
1614
+ * Please refer to HUAWEI cloud API Explorer for details.
1615
+ *
1616
+ * @summary 查询所有策略隐私屏蔽防护规则
1617
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1618
+ * @param {string} [policyids] **参数解释:** 策略id列表。策略id从\"查询防护策略列表\"(ListPolicy)接口获取,多个策略之间用“,”隔开 **约束限制:** 不涉及 **取值范围:** 策略id只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
1619
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
1620
+ * @param {number} [page] **参数解释:** 分页查询的起始位置,表示从第几条记录开始返回(从1开始计数)。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 1
1621
+ * @param {number} [pagesize] **参数解释:** 分页查询时,每页包含多少条结果。 **约束限制:** 不涉及 **默认取值:** 1000
1622
+ * @param {*} [options] Override http request option.
1623
+ * @throws {RequiredError}
1624
+ */
1625
+ listPrivacyPolicyRules(listPrivacyPolicyRulesRequest) {
1626
+ const options = (0, exports.ParamCreater)().listPrivacyPolicyRules(listPrivacyPolicyRulesRequest);
1627
+ // @ts-ignore
1628
+ options['responseHeaders'] = [''];
1629
+ return this.hcClient.sendRequest(options);
1630
+ }
1371
1631
  /**
1372
1632
  * 查询隐私屏蔽防护规则列表
1373
1633
  *
@@ -1388,6 +1648,25 @@ class WafClient {
1388
1648
  options['responseHeaders'] = [''];
1389
1649
  return this.hcClient.sendRequest(options);
1390
1650
  }
1651
+ /**
1652
+ * 查询可防护的资源列表
1653
+ *
1654
+ * Please refer to HUAWEI cloud API Explorer for details.
1655
+ *
1656
+ * @summary 查询可防护的资源列表
1657
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1658
+ * @param {string} resourceType **参数解释:** 查询的防护资源类型,目前支持的资源类型为:elb **约束限制:** 不涉及 **取值范围:** - elb **默认取值:** elb
1659
+ * @param {string} [vpcId] **参数解释:** 负载均衡器所在VPC ID **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1660
+ * @param {string} [region] **参数解释:** 租户的regionId **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1661
+ * @param {*} [options] Override http request option.
1662
+ * @throws {RequiredError}
1663
+ */
1664
+ listProtectableResources(listProtectableResourcesRequest) {
1665
+ const options = (0, exports.ParamCreater)().listProtectableResources(listProtectableResourcesRequest);
1666
+ // @ts-ignore
1667
+ options['responseHeaders'] = [''];
1668
+ return this.hcClient.sendRequest(options);
1669
+ }
1391
1670
  /**
1392
1671
  * 查询攻击惩罚规则列表
1393
1672
  *
@@ -1452,6 +1731,49 @@ class WafClient {
1452
1731
  options['responseHeaders'] = [''];
1453
1732
  return this.hcClient.sendRequest(options);
1454
1733
  }
1734
+ /**
1735
+ * 查询安全统计响应码数据
1736
+ *
1737
+ * Please refer to HUAWEI cloud API Explorer for details.
1738
+ *
1739
+ * @summary 查询安全统计响应码数据
1740
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1741
+ * @param {number} from **参数解释:** 起始时间(13位毫秒时间戳) **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1742
+ * @param {number} to **参数解释:** 结束时间(13位毫秒时间戳) **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1743
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
1744
+ * @param {Array<string>} [hosts] **参数解释:** 要查询的域名列表,通过 ”查询独享模式域名列表“(ListPremiumHost)或者 “查询云模式防护域名列表” (ListHost)接口获取 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1745
+ * @param {Array<string>} [instances] **参数解释:** 要查询的实例列表,通过 “查询WAF独享引擎列表”(ListInstance)接口获取 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1746
+ * @param {'WAF' | 'UPSTREAM'} [responseSource] **参数解释:** 响应源 **约束限制:** 不涉及 **取值范围:** - WAF - UPSTREAM **默认取值:** 不涉及
1747
+ * @param {string} [groupBy] **参数解释:** 展示维度,按天展示时传\&quot;DAY\&quot; **约束限制:** 不涉及 **取值范围:** - DAY **默认取值:** 不涉及
1748
+ * @param {*} [options] Override http request option.
1749
+ * @throws {RequiredError}
1750
+ */
1751
+ listResponseCodeTimeline(listResponseCodeTimelineRequest) {
1752
+ const options = (0, exports.ParamCreater)().listResponseCodeTimeline(listResponseCodeTimelineRequest);
1753
+ // @ts-ignore
1754
+ options['responseHeaders'] = [''];
1755
+ return this.hcClient.sendRequest(options);
1756
+ }
1757
+ /**
1758
+ * 查询安全报告发送记录
1759
+ *
1760
+ * Please refer to HUAWEI cloud API Explorer for details.
1761
+ *
1762
+ * @summary 查询安全报告发送记录
1763
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
1764
+ * @param {string} [reportName] **参数解释:** 查询的报告名称 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1765
+ * @param {string} [reportCategory] **参数解释:** 查询的报告类别 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1766
+ * @param {number} [limit] **参数解释:** 分页查询的单页返回数量,控制每次请求返回的记录条数。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 10
1767
+ * @param {number} [offset] **参数解释:** 偏移量,表示查询该偏移量之后的记录。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1768
+ * @param {*} [options] Override http request option.
1769
+ * @throws {RequiredError}
1770
+ */
1771
+ listSecurityReportSendingRecords(listSecurityReportSendingRecordsRequest) {
1772
+ const options = (0, exports.ParamCreater)().listSecurityReportSendingRecords(listSecurityReportSendingRecordsRequest);
1773
+ // @ts-ignore
1774
+ options['responseHeaders'] = [''];
1775
+ return this.hcClient.sendRequest(options);
1776
+ }
1455
1777
  /**
1456
1778
  * 查询安全报告订阅列表
1457
1779
  *
@@ -1631,6 +1953,26 @@ class WafClient {
1631
1953
  options['responseHeaders'] = [''];
1632
1954
  return this.hcClient.sendRequest(options);
1633
1955
  }
1956
+ /**
1957
+ * 查询所有策略黑白名单防护规则
1958
+ *
1959
+ * Please refer to HUAWEI cloud API Explorer for details.
1960
+ *
1961
+ * @summary 查询所有策略黑白名单防护规则
1962
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
1963
+ * @param {string} [policyids] **参数解释:** 策略id列表。策略id从\&quot;查询防护策略列表\&quot;(ListPolicy)接口获取,多个策略之间用“,”隔开 **约束限制:** 不涉及 **取值范围:** 策略id只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
1964
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
1965
+ * @param {number} [page] **参数解释:** 分页查询的起始位置,表示从第几条记录开始返回(从1开始计数)。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 1
1966
+ * @param {number} [pagesize] **参数解释:** 分页查询时,每页包含多少条结果。 **约束限制:** 不涉及 **默认取值:** 1000
1967
+ * @param {*} [options] Override http request option.
1968
+ * @throws {RequiredError}
1969
+ */
1970
+ listWhiteblackipPolicyRules(listWhiteblackipPolicyRulesRequest) {
1971
+ const options = (0, exports.ParamCreater)().listWhiteblackipPolicyRules(listWhiteblackipPolicyRulesRequest);
1972
+ // @ts-ignore
1973
+ options['responseHeaders'] = [''];
1974
+ return this.hcClient.sendRequest(options);
1975
+ }
1634
1976
  /**
1635
1977
  * 查询黑白名单规则列表
1636
1978
  *
@@ -2073,6 +2415,24 @@ class WafClient {
2073
2415
  options['responseHeaders'] = [''];
2074
2416
  return this.hcClient.sendRequest(options);
2075
2417
  }
2418
+ /**
2419
+ * 查询安全报告内容
2420
+ *
2421
+ * Please refer to HUAWEI cloud API Explorer for details.
2422
+ *
2423
+ * @summary 查询安全报告内容
2424
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2425
+ * @param {string} reportId **参数解释:** 报告ID,请从接口 “查询安全报告发送记录”(ListSecurityReportSendingRecords)中获取 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
2426
+ * @param {string} subscriptionId **参数解释:** 需要删除的订阅id,从“查询安全报告订阅列表”(ListSecurityReportSubscriptions)中获取 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
2427
+ * @param {*} [options] Override http request option.
2428
+ * @throws {RequiredError}
2429
+ */
2430
+ showSecurityReportContent(showSecurityReportContentRequest) {
2431
+ const options = (0, exports.ParamCreater)().showSecurityReportContent(showSecurityReportContentRequest);
2432
+ // @ts-ignore
2433
+ options['responseHeaders'] = [''];
2434
+ return this.hcClient.sendRequest(options);
2435
+ }
2076
2436
  /**
2077
2437
  * 查询WAF回源Ip信息
2078
2438
  *
@@ -2822,33 +3182,152 @@ const ParamCreater = function () {
2822
3182
  return options;
2823
3183
  },
2824
3184
  /**
2825
- * 使用标签过滤实例,标签管理服务需要提供按标签过滤各服务实例并汇总显示在列表中,需要各服务提供查询能力。
3185
+ * 按application规则类型获取内置规则类型
2826
3186
  *
2827
3187
  * Please refer to HUAWEI cloud API Explorer for details.
2828
3188
  */
2829
- confirmTmsResourceInstances(confirmTmsResourceInstancesRequest) {
3189
+ confirmApplicationTypes(confirmApplicationTypesRequest) {
2830
3190
  const options = {
2831
- method: "POST",
2832
- url: "/v1/{project_id}/waf/{resource_type}/resource-instances/action",
3191
+ method: "GET",
3192
+ url: "/v1/{project_id}/waf/rules/application-types",
2833
3193
  contentType: "application/json",
2834
3194
  queryParams: {},
2835
3195
  pathParams: {},
2836
- headers: {},
2837
- data: {}
3196
+ headers: {}
2838
3197
  };
2839
3198
  const localVarHeaderParameter = {};
2840
- let body;
3199
+ const localVarQueryParameter = {};
2841
3200
  let contentType;
2842
- let resourceType;
2843
- if (confirmTmsResourceInstancesRequest !== null && confirmTmsResourceInstancesRequest !== undefined) {
2844
- if (confirmTmsResourceInstancesRequest instanceof ConfirmTmsResourceInstancesRequest_1.ConfirmTmsResourceInstancesRequest) {
2845
- contentType = confirmTmsResourceInstancesRequest.contentType;
2846
- resourceType = confirmTmsResourceInstancesRequest.resourceType;
2847
- body = confirmTmsResourceInstancesRequest.body;
3201
+ let offset;
3202
+ let limit;
3203
+ if (confirmApplicationTypesRequest !== null && confirmApplicationTypesRequest !== undefined) {
3204
+ if (confirmApplicationTypesRequest instanceof ConfirmApplicationTypesRequest_1.ConfirmApplicationTypesRequest) {
3205
+ contentType = confirmApplicationTypesRequest.contentType;
3206
+ offset = confirmApplicationTypesRequest.offset;
3207
+ limit = confirmApplicationTypesRequest.limit;
2848
3208
  }
2849
3209
  else {
2850
- contentType = confirmTmsResourceInstancesRequest['Content-Type'];
2851
- resourceType = confirmTmsResourceInstancesRequest['resource_type'];
3210
+ contentType = confirmApplicationTypesRequest['Content-Type'];
3211
+ offset = confirmApplicationTypesRequest['offset'];
3212
+ limit = confirmApplicationTypesRequest['limit'];
3213
+ }
3214
+ }
3215
+ if (offset !== null && offset !== undefined) {
3216
+ localVarQueryParameter['offset'] = offset;
3217
+ }
3218
+ if (limit !== null && limit !== undefined) {
3219
+ localVarQueryParameter['limit'] = limit;
3220
+ }
3221
+ if (contentType !== undefined && contentType !== null) {
3222
+ localVarHeaderParameter['Content-Type'] = String(contentType);
3223
+ }
3224
+ options.queryParams = localVarQueryParameter;
3225
+ options.headers = localVarHeaderParameter;
3226
+ return options;
3227
+ },
3228
+ /**
3229
+ * 查询异步任务的执行状态详情
3230
+ *
3231
+ * Please refer to HUAWEI cloud API Explorer for details.
3232
+ */
3233
+ confirmAsyncJob(confirmAsyncJobRequest) {
3234
+ const options = {
3235
+ method: "GET",
3236
+ url: "/v1/{project_id}/waf/async-job/{job_id}",
3237
+ contentType: "application/json",
3238
+ queryParams: {},
3239
+ pathParams: {},
3240
+ headers: {}
3241
+ };
3242
+ const localVarHeaderParameter = {};
3243
+ const localVarQueryParameter = {};
3244
+ let jobId;
3245
+ let contentType;
3246
+ let enterpriseProjectId;
3247
+ if (confirmAsyncJobRequest !== null && confirmAsyncJobRequest !== undefined) {
3248
+ if (confirmAsyncJobRequest instanceof ConfirmAsyncJobRequest_1.ConfirmAsyncJobRequest) {
3249
+ jobId = confirmAsyncJobRequest.jobId;
3250
+ contentType = confirmAsyncJobRequest.contentType;
3251
+ enterpriseProjectId = confirmAsyncJobRequest.enterpriseProjectId;
3252
+ }
3253
+ else {
3254
+ jobId = confirmAsyncJobRequest['job_id'];
3255
+ contentType = confirmAsyncJobRequest['Content-Type'];
3256
+ enterpriseProjectId = confirmAsyncJobRequest['enterpriseProjectId'];
3257
+ }
3258
+ }
3259
+ if (jobId === null || jobId === undefined) {
3260
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling confirmAsyncJob.');
3261
+ }
3262
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
3263
+ localVarQueryParameter['enterpriseProjectId'] = enterpriseProjectId;
3264
+ }
3265
+ if (contentType !== undefined && contentType !== null) {
3266
+ localVarHeaderParameter['Content-Type'] = String(contentType);
3267
+ }
3268
+ options.queryParams = localVarQueryParameter;
3269
+ options.pathParams = { 'job_id': jobId, };
3270
+ options.headers = localVarHeaderParameter;
3271
+ return options;
3272
+ },
3273
+ /**
3274
+ * 查询告警可选事件类型
3275
+ *
3276
+ * Please refer to HUAWEI cloud API Explorer for details.
3277
+ */
3278
+ confirmThreatMap(confirmThreatMapRequest) {
3279
+ const options = {
3280
+ method: "GET",
3281
+ url: "/v1/{project_id}/waf/tag/threat/map",
3282
+ contentType: "application/json",
3283
+ queryParams: {},
3284
+ pathParams: {},
3285
+ headers: {}
3286
+ };
3287
+ const localVarHeaderParameter = {};
3288
+ let contentType;
3289
+ if (confirmThreatMapRequest !== null && confirmThreatMapRequest !== undefined) {
3290
+ if (confirmThreatMapRequest instanceof ConfirmThreatMapRequest_1.ConfirmThreatMapRequest) {
3291
+ contentType = confirmThreatMapRequest.contentType;
3292
+ }
3293
+ else {
3294
+ contentType = confirmThreatMapRequest['Content-Type'];
3295
+ }
3296
+ }
3297
+ if (contentType !== undefined && contentType !== null) {
3298
+ localVarHeaderParameter['Content-Type'] = String(contentType);
3299
+ }
3300
+ options.headers = localVarHeaderParameter;
3301
+ return options;
3302
+ },
3303
+ /**
3304
+ * 使用标签过滤实例,标签管理服务需要提供按标签过滤各服务实例并汇总显示在列表中,需要各服务提供查询能力。
3305
+ *
3306
+ * Please refer to HUAWEI cloud API Explorer for details.
3307
+ */
3308
+ confirmTmsResourceInstances(confirmTmsResourceInstancesRequest) {
3309
+ const options = {
3310
+ method: "POST",
3311
+ url: "/v1/{project_id}/waf/{resource_type}/resource-instances/action",
3312
+ contentType: "application/json",
3313
+ queryParams: {},
3314
+ pathParams: {},
3315
+ headers: {},
3316
+ data: {}
3317
+ };
3318
+ const localVarHeaderParameter = {};
3319
+ let body;
3320
+ let contentType;
3321
+ let resourceType;
3322
+ if (confirmTmsResourceInstancesRequest !== null && confirmTmsResourceInstancesRequest !== undefined) {
3323
+ if (confirmTmsResourceInstancesRequest instanceof ConfirmTmsResourceInstancesRequest_1.ConfirmTmsResourceInstancesRequest) {
3324
+ contentType = confirmTmsResourceInstancesRequest.contentType;
3325
+ resourceType = confirmTmsResourceInstancesRequest.resourceType;
3326
+ body = confirmTmsResourceInstancesRequest.body;
3327
+ }
3328
+ else {
3329
+ contentType = confirmTmsResourceInstancesRequest['Content-Type'];
3330
+ resourceType = confirmTmsResourceInstancesRequest['resource_type'];
2852
3331
  body = confirmTmsResourceInstancesRequest['body'];
2853
3332
  }
2854
3333
  }
@@ -4743,6 +5222,62 @@ const ParamCreater = function () {
4743
5222
  options.headers = localVarHeaderParameter;
4744
5223
  return options;
4745
5224
  },
5225
+ /**
5226
+ * 查询所有策略网页防篡改
5227
+ *
5228
+ * Please refer to HUAWEI cloud API Explorer for details.
5229
+ */
5230
+ listAntiTamperPolicyRules(listAntiTamperPolicyRulesRequest) {
5231
+ const options = {
5232
+ method: "GET",
5233
+ url: "/v1/{project_id}/waf/rule/antitamper",
5234
+ contentType: "application/json",
5235
+ queryParams: {},
5236
+ pathParams: {},
5237
+ headers: {}
5238
+ };
5239
+ const localVarHeaderParameter = {};
5240
+ const localVarQueryParameter = {};
5241
+ let contentType;
5242
+ let policyids;
5243
+ let enterpriseProjectId;
5244
+ let page;
5245
+ let pagesize;
5246
+ if (listAntiTamperPolicyRulesRequest !== null && listAntiTamperPolicyRulesRequest !== undefined) {
5247
+ if (listAntiTamperPolicyRulesRequest instanceof ListAntiTamperPolicyRulesRequest_1.ListAntiTamperPolicyRulesRequest) {
5248
+ contentType = listAntiTamperPolicyRulesRequest.contentType;
5249
+ policyids = listAntiTamperPolicyRulesRequest.policyids;
5250
+ enterpriseProjectId = listAntiTamperPolicyRulesRequest.enterpriseProjectId;
5251
+ page = listAntiTamperPolicyRulesRequest.page;
5252
+ pagesize = listAntiTamperPolicyRulesRequest.pagesize;
5253
+ }
5254
+ else {
5255
+ contentType = listAntiTamperPolicyRulesRequest['Content-Type'];
5256
+ policyids = listAntiTamperPolicyRulesRequest['policyids'];
5257
+ enterpriseProjectId = listAntiTamperPolicyRulesRequest['enterprise_project_id'];
5258
+ page = listAntiTamperPolicyRulesRequest['page'];
5259
+ pagesize = listAntiTamperPolicyRulesRequest['pagesize'];
5260
+ }
5261
+ }
5262
+ if (policyids !== null && policyids !== undefined) {
5263
+ localVarQueryParameter['policyids'] = policyids;
5264
+ }
5265
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
5266
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
5267
+ }
5268
+ if (page !== null && page !== undefined) {
5269
+ localVarQueryParameter['page'] = page;
5270
+ }
5271
+ if (pagesize !== null && pagesize !== undefined) {
5272
+ localVarQueryParameter['pagesize'] = pagesize;
5273
+ }
5274
+ if (contentType !== undefined && contentType !== null) {
5275
+ localVarHeaderParameter['Content-Type'] = String(contentType);
5276
+ }
5277
+ options.queryParams = localVarQueryParameter;
5278
+ options.headers = localVarHeaderParameter;
5279
+ return options;
5280
+ },
4746
5281
  /**
4747
5282
  * 查询JS脚本反爬虫规则列表
4748
5283
  *
@@ -4812,6 +5347,62 @@ const ParamCreater = function () {
4812
5347
  options.headers = localVarHeaderParameter;
4813
5348
  return options;
4814
5349
  },
5350
+ /**
5351
+ * 查询所有策略防敏感信息泄漏规则
5352
+ *
5353
+ * Please refer to HUAWEI cloud API Explorer for details.
5354
+ */
5355
+ listAntileakagePolicyRules(listAntileakagePolicyRulesRequest) {
5356
+ const options = {
5357
+ method: "GET",
5358
+ url: "/v1/{project_id}/waf/rule/antileakage",
5359
+ contentType: "application/json",
5360
+ queryParams: {},
5361
+ pathParams: {},
5362
+ headers: {}
5363
+ };
5364
+ const localVarHeaderParameter = {};
5365
+ const localVarQueryParameter = {};
5366
+ let contentType;
5367
+ let policyids;
5368
+ let enterpriseProjectId;
5369
+ let page;
5370
+ let pagesize;
5371
+ if (listAntileakagePolicyRulesRequest !== null && listAntileakagePolicyRulesRequest !== undefined) {
5372
+ if (listAntileakagePolicyRulesRequest instanceof ListAntileakagePolicyRulesRequest_1.ListAntileakagePolicyRulesRequest) {
5373
+ contentType = listAntileakagePolicyRulesRequest.contentType;
5374
+ policyids = listAntileakagePolicyRulesRequest.policyids;
5375
+ enterpriseProjectId = listAntileakagePolicyRulesRequest.enterpriseProjectId;
5376
+ page = listAntileakagePolicyRulesRequest.page;
5377
+ pagesize = listAntileakagePolicyRulesRequest.pagesize;
5378
+ }
5379
+ else {
5380
+ contentType = listAntileakagePolicyRulesRequest['Content-Type'];
5381
+ policyids = listAntileakagePolicyRulesRequest['policyids'];
5382
+ enterpriseProjectId = listAntileakagePolicyRulesRequest['enterprise_project_id'];
5383
+ page = listAntileakagePolicyRulesRequest['page'];
5384
+ pagesize = listAntileakagePolicyRulesRequest['pagesize'];
5385
+ }
5386
+ }
5387
+ if (policyids !== null && policyids !== undefined) {
5388
+ localVarQueryParameter['policyids'] = policyids;
5389
+ }
5390
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
5391
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
5392
+ }
5393
+ if (page !== null && page !== undefined) {
5394
+ localVarQueryParameter['page'] = page;
5395
+ }
5396
+ if (pagesize !== null && pagesize !== undefined) {
5397
+ localVarQueryParameter['pagesize'] = pagesize;
5398
+ }
5399
+ if (contentType !== undefined && contentType !== null) {
5400
+ localVarHeaderParameter['Content-Type'] = String(contentType);
5401
+ }
5402
+ options.queryParams = localVarQueryParameter;
5403
+ options.headers = localVarHeaderParameter;
5404
+ return options;
5405
+ },
4815
5406
  /**
4816
5407
  * 查询防敏感信息泄露规则列表
4817
5408
  *
@@ -5068,6 +5659,62 @@ const ParamCreater = function () {
5068
5659
  options.headers = localVarHeaderParameter;
5069
5660
  return options;
5070
5661
  },
5662
+ /**
5663
+ * 查询所有策略CC规则
5664
+ *
5665
+ * Please refer to HUAWEI cloud API Explorer for details.
5666
+ */
5667
+ listCcPolicyRules(listCcPolicyRulesRequest) {
5668
+ const options = {
5669
+ method: "GET",
5670
+ url: "/v1/{project_id}/waf/rule/cc",
5671
+ contentType: "application/json",
5672
+ queryParams: {},
5673
+ pathParams: {},
5674
+ headers: {}
5675
+ };
5676
+ const localVarHeaderParameter = {};
5677
+ const localVarQueryParameter = {};
5678
+ let contentType;
5679
+ let policyids;
5680
+ let enterpriseProjectId;
5681
+ let page;
5682
+ let pagesize;
5683
+ if (listCcPolicyRulesRequest !== null && listCcPolicyRulesRequest !== undefined) {
5684
+ if (listCcPolicyRulesRequest instanceof ListCcPolicyRulesRequest_1.ListCcPolicyRulesRequest) {
5685
+ contentType = listCcPolicyRulesRequest.contentType;
5686
+ policyids = listCcPolicyRulesRequest.policyids;
5687
+ enterpriseProjectId = listCcPolicyRulesRequest.enterpriseProjectId;
5688
+ page = listCcPolicyRulesRequest.page;
5689
+ pagesize = listCcPolicyRulesRequest.pagesize;
5690
+ }
5691
+ else {
5692
+ contentType = listCcPolicyRulesRequest['Content-Type'];
5693
+ policyids = listCcPolicyRulesRequest['policyids'];
5694
+ enterpriseProjectId = listCcPolicyRulesRequest['enterprise_project_id'];
5695
+ page = listCcPolicyRulesRequest['page'];
5696
+ pagesize = listCcPolicyRulesRequest['pagesize'];
5697
+ }
5698
+ }
5699
+ if (policyids !== null && policyids !== undefined) {
5700
+ localVarQueryParameter['policyids'] = policyids;
5701
+ }
5702
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
5703
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
5704
+ }
5705
+ if (page !== null && page !== undefined) {
5706
+ localVarQueryParameter['page'] = page;
5707
+ }
5708
+ if (pagesize !== null && pagesize !== undefined) {
5709
+ localVarQueryParameter['pagesize'] = pagesize;
5710
+ }
5711
+ if (contentType !== undefined && contentType !== null) {
5712
+ localVarHeaderParameter['Content-Type'] = String(contentType);
5713
+ }
5714
+ options.queryParams = localVarQueryParameter;
5715
+ options.headers = localVarHeaderParameter;
5716
+ return options;
5717
+ },
5071
5718
  /**
5072
5719
  * 查询cc规则列表
5073
5720
  *
@@ -5285,6 +5932,62 @@ const ParamCreater = function () {
5285
5932
  options.headers = localVarHeaderParameter;
5286
5933
  return options;
5287
5934
  },
5935
+ /**
5936
+ * 查询所有策略精准防护规则
5937
+ *
5938
+ * Please refer to HUAWEI cloud API Explorer for details.
5939
+ */
5940
+ listCustomPolicyRules(listCustomPolicyRulesRequest) {
5941
+ const options = {
5942
+ method: "GET",
5943
+ url: "/v1/{project_id}/waf/rule/custom",
5944
+ contentType: "application/json",
5945
+ queryParams: {},
5946
+ pathParams: {},
5947
+ headers: {}
5948
+ };
5949
+ const localVarHeaderParameter = {};
5950
+ const localVarQueryParameter = {};
5951
+ let contentType;
5952
+ let policyids;
5953
+ let enterpriseProjectId;
5954
+ let page;
5955
+ let pagesize;
5956
+ if (listCustomPolicyRulesRequest !== null && listCustomPolicyRulesRequest !== undefined) {
5957
+ if (listCustomPolicyRulesRequest instanceof ListCustomPolicyRulesRequest_1.ListCustomPolicyRulesRequest) {
5958
+ contentType = listCustomPolicyRulesRequest.contentType;
5959
+ policyids = listCustomPolicyRulesRequest.policyids;
5960
+ enterpriseProjectId = listCustomPolicyRulesRequest.enterpriseProjectId;
5961
+ page = listCustomPolicyRulesRequest.page;
5962
+ pagesize = listCustomPolicyRulesRequest.pagesize;
5963
+ }
5964
+ else {
5965
+ contentType = listCustomPolicyRulesRequest['Content-Type'];
5966
+ policyids = listCustomPolicyRulesRequest['policyids'];
5967
+ enterpriseProjectId = listCustomPolicyRulesRequest['enterprise_project_id'];
5968
+ page = listCustomPolicyRulesRequest['page'];
5969
+ pagesize = listCustomPolicyRulesRequest['pagesize'];
5970
+ }
5971
+ }
5972
+ if (policyids !== null && policyids !== undefined) {
5973
+ localVarQueryParameter['policyids'] = policyids;
5974
+ }
5975
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
5976
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
5977
+ }
5978
+ if (page !== null && page !== undefined) {
5979
+ localVarQueryParameter['page'] = page;
5980
+ }
5981
+ if (pagesize !== null && pagesize !== undefined) {
5982
+ localVarQueryParameter['pagesize'] = pagesize;
5983
+ }
5984
+ if (contentType !== undefined && contentType !== null) {
5985
+ localVarHeaderParameter['Content-Type'] = String(contentType);
5986
+ }
5987
+ options.queryParams = localVarQueryParameter;
5988
+ options.headers = localVarHeaderParameter;
5989
+ return options;
5990
+ },
5288
5991
  /**
5289
5992
  * 查询精准防护规则列表
5290
5993
  *
@@ -5485,14 +6188,14 @@ const ParamCreater = function () {
5485
6188
  return options;
5486
6189
  },
5487
6190
  /**
5488
- * 查询地理位置访问控制规则列表
6191
+ * 查询所有策略地理位置访问控制
5489
6192
  *
5490
6193
  * Please refer to HUAWEI cloud API Explorer for details.
5491
6194
  */
5492
- listGeoipRule(listGeoipRuleRequest) {
6195
+ listGeoIpPolicyRules(listGeoIpPolicyRulesRequest) {
5493
6196
  const options = {
5494
6197
  method: "GET",
5495
- url: "/v1/{project_id}/waf/policy/{policy_id}/geoip",
6198
+ url: "/v1/{project_id}/waf/rule/geoip",
5496
6199
  contentType: "application/json",
5497
6200
  queryParams: {},
5498
6201
  pathParams: {},
@@ -5501,15 +6204,71 @@ const ParamCreater = function () {
5501
6204
  const localVarHeaderParameter = {};
5502
6205
  const localVarQueryParameter = {};
5503
6206
  let contentType;
5504
- let policyId;
6207
+ let policyids;
5505
6208
  let enterpriseProjectId;
5506
6209
  let page;
5507
6210
  let pagesize;
5508
- if (listGeoipRuleRequest !== null && listGeoipRuleRequest !== undefined) {
5509
- if (listGeoipRuleRequest instanceof ListGeoipRuleRequest_1.ListGeoipRuleRequest) {
5510
- contentType = listGeoipRuleRequest.contentType;
5511
- policyId = listGeoipRuleRequest.policyId;
5512
- enterpriseProjectId = listGeoipRuleRequest.enterpriseProjectId;
6211
+ if (listGeoIpPolicyRulesRequest !== null && listGeoIpPolicyRulesRequest !== undefined) {
6212
+ if (listGeoIpPolicyRulesRequest instanceof ListGeoIpPolicyRulesRequest_1.ListGeoIpPolicyRulesRequest) {
6213
+ contentType = listGeoIpPolicyRulesRequest.contentType;
6214
+ policyids = listGeoIpPolicyRulesRequest.policyids;
6215
+ enterpriseProjectId = listGeoIpPolicyRulesRequest.enterpriseProjectId;
6216
+ page = listGeoIpPolicyRulesRequest.page;
6217
+ pagesize = listGeoIpPolicyRulesRequest.pagesize;
6218
+ }
6219
+ else {
6220
+ contentType = listGeoIpPolicyRulesRequest['Content-Type'];
6221
+ policyids = listGeoIpPolicyRulesRequest['policyids'];
6222
+ enterpriseProjectId = listGeoIpPolicyRulesRequest['enterprise_project_id'];
6223
+ page = listGeoIpPolicyRulesRequest['page'];
6224
+ pagesize = listGeoIpPolicyRulesRequest['pagesize'];
6225
+ }
6226
+ }
6227
+ if (policyids !== null && policyids !== undefined) {
6228
+ localVarQueryParameter['policyids'] = policyids;
6229
+ }
6230
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
6231
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
6232
+ }
6233
+ if (page !== null && page !== undefined) {
6234
+ localVarQueryParameter['page'] = page;
6235
+ }
6236
+ if (pagesize !== null && pagesize !== undefined) {
6237
+ localVarQueryParameter['pagesize'] = pagesize;
6238
+ }
6239
+ if (contentType !== undefined && contentType !== null) {
6240
+ localVarHeaderParameter['Content-Type'] = String(contentType);
6241
+ }
6242
+ options.queryParams = localVarQueryParameter;
6243
+ options.headers = localVarHeaderParameter;
6244
+ return options;
6245
+ },
6246
+ /**
6247
+ * 查询地理位置访问控制规则列表
6248
+ *
6249
+ * Please refer to HUAWEI cloud API Explorer for details.
6250
+ */
6251
+ listGeoipRule(listGeoipRuleRequest) {
6252
+ const options = {
6253
+ method: "GET",
6254
+ url: "/v1/{project_id}/waf/policy/{policy_id}/geoip",
6255
+ contentType: "application/json",
6256
+ queryParams: {},
6257
+ pathParams: {},
6258
+ headers: {}
6259
+ };
6260
+ const localVarHeaderParameter = {};
6261
+ const localVarQueryParameter = {};
6262
+ let contentType;
6263
+ let policyId;
6264
+ let enterpriseProjectId;
6265
+ let page;
6266
+ let pagesize;
6267
+ if (listGeoipRuleRequest !== null && listGeoipRuleRequest !== undefined) {
6268
+ if (listGeoipRuleRequest instanceof ListGeoipRuleRequest_1.ListGeoipRuleRequest) {
6269
+ contentType = listGeoipRuleRequest.contentType;
6270
+ policyId = listGeoipRuleRequest.policyId;
6271
+ enterpriseProjectId = listGeoipRuleRequest.enterpriseProjectId;
5513
6272
  page = listGeoipRuleRequest.page;
5514
6273
  pagesize = listGeoipRuleRequest.pagesize;
5515
6274
  }
@@ -5604,15 +6363,7 @@ const ParamCreater = function () {
5604
6363
  return options;
5605
6364
  },
5606
6365
  /**
5607
- * **参数解释:**
5608
- * 返回路由信息。
5609
- * &gt; 该API局点受限使用,后续将下线。
5610
- * **约束限制:**
5611
- * 不涉及
5612
- * **取值范围:**
5613
- * 不涉及
5614
- * **默认取值:**
5615
- * 不涉及
6366
+ * 返回路由信息。 &gt; 该API局点受限使用,后续将下线。
5616
6367
  *
5617
6368
  * Please refer to HUAWEI cloud API Explorer for details.
5618
6369
  */
@@ -5656,6 +6407,62 @@ const ParamCreater = function () {
5656
6407
  options.headers = localVarHeaderParameter;
5657
6408
  return options;
5658
6409
  },
6410
+ /**
6411
+ * 查询所有策略全局白名单
6412
+ *
6413
+ * Please refer to HUAWEI cloud API Explorer for details.
6414
+ */
6415
+ listIgnorePolicyRules(listIgnorePolicyRulesRequest) {
6416
+ const options = {
6417
+ method: "GET",
6418
+ url: "/v1/{project_id}/waf/rule/ignore",
6419
+ contentType: "application/json",
6420
+ queryParams: {},
6421
+ pathParams: {},
6422
+ headers: {}
6423
+ };
6424
+ const localVarHeaderParameter = {};
6425
+ const localVarQueryParameter = {};
6426
+ let contentType;
6427
+ let policyids;
6428
+ let enterpriseProjectId;
6429
+ let page;
6430
+ let pagesize;
6431
+ if (listIgnorePolicyRulesRequest !== null && listIgnorePolicyRulesRequest !== undefined) {
6432
+ if (listIgnorePolicyRulesRequest instanceof ListIgnorePolicyRulesRequest_1.ListIgnorePolicyRulesRequest) {
6433
+ contentType = listIgnorePolicyRulesRequest.contentType;
6434
+ policyids = listIgnorePolicyRulesRequest.policyids;
6435
+ enterpriseProjectId = listIgnorePolicyRulesRequest.enterpriseProjectId;
6436
+ page = listIgnorePolicyRulesRequest.page;
6437
+ pagesize = listIgnorePolicyRulesRequest.pagesize;
6438
+ }
6439
+ else {
6440
+ contentType = listIgnorePolicyRulesRequest['Content-Type'];
6441
+ policyids = listIgnorePolicyRulesRequest['policyids'];
6442
+ enterpriseProjectId = listIgnorePolicyRulesRequest['enterprise_project_id'];
6443
+ page = listIgnorePolicyRulesRequest['page'];
6444
+ pagesize = listIgnorePolicyRulesRequest['pagesize'];
6445
+ }
6446
+ }
6447
+ if (policyids !== null && policyids !== undefined) {
6448
+ localVarQueryParameter['policyids'] = policyids;
6449
+ }
6450
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
6451
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
6452
+ }
6453
+ if (page !== null && page !== undefined) {
6454
+ localVarQueryParameter['page'] = page;
6455
+ }
6456
+ if (pagesize !== null && pagesize !== undefined) {
6457
+ localVarQueryParameter['pagesize'] = pagesize;
6458
+ }
6459
+ if (contentType !== undefined && contentType !== null) {
6460
+ localVarHeaderParameter['Content-Type'] = String(contentType);
6461
+ }
6462
+ options.queryParams = localVarQueryParameter;
6463
+ options.headers = localVarHeaderParameter;
6464
+ return options;
6465
+ },
5659
6466
  /**
5660
6467
  * 查询全局白名单(原误报屏蔽)规则列表
5661
6468
  *
@@ -5769,6 +6576,51 @@ const ParamCreater = function () {
5769
6576
  options.headers = localVarHeaderParameter;
5770
6577
  return options;
5771
6578
  },
6579
+ /**
6580
+ * 查询WAF独享引擎标签。独享模式只在部分局点支持,包括:华北-北京四、华东-上海一、华南-广州、华南-深圳 、中国-香港、亚太-曼谷、 亚太-新加坡。
6581
+ *
6582
+ * Please refer to HUAWEI cloud API Explorer for details.
6583
+ */
6584
+ listInstanceTags(listInstanceTagsRequest) {
6585
+ const options = {
6586
+ method: "GET",
6587
+ url: "/v1/{project_id}/waf/{resourceid}/tags",
6588
+ contentType: "application/json",
6589
+ queryParams: {},
6590
+ pathParams: {},
6591
+ headers: {}
6592
+ };
6593
+ const localVarHeaderParameter = {};
6594
+ const localVarQueryParameter = {};
6595
+ let contentType;
6596
+ let resourceid;
6597
+ let enterpriseProjectId;
6598
+ if (listInstanceTagsRequest !== null && listInstanceTagsRequest !== undefined) {
6599
+ if (listInstanceTagsRequest instanceof ListInstanceTagsRequest_1.ListInstanceTagsRequest) {
6600
+ contentType = listInstanceTagsRequest.contentType;
6601
+ resourceid = listInstanceTagsRequest.resourceid;
6602
+ enterpriseProjectId = listInstanceTagsRequest.enterpriseProjectId;
6603
+ }
6604
+ else {
6605
+ contentType = listInstanceTagsRequest['Content-Type'];
6606
+ resourceid = listInstanceTagsRequest['resourceid'];
6607
+ enterpriseProjectId = listInstanceTagsRequest['enterprise_project_id'];
6608
+ }
6609
+ }
6610
+ if (resourceid === null || resourceid === undefined) {
6611
+ throw new RequiredError('resourceid', 'Required parameter resourceid was null or undefined when calling listInstanceTags.');
6612
+ }
6613
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
6614
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
6615
+ }
6616
+ if (contentType !== undefined && contentType !== null) {
6617
+ localVarHeaderParameter['Content-Type'] = String(contentType);
6618
+ }
6619
+ options.queryParams = localVarQueryParameter;
6620
+ options.pathParams = { 'resourceid': resourceid, };
6621
+ options.headers = localVarHeaderParameter;
6622
+ return options;
6623
+ },
5772
6624
  /**
5773
6625
  * 查询地址组列表
5774
6626
  *
@@ -5831,6 +6683,125 @@ const ParamCreater = function () {
5831
6683
  options.headers = localVarHeaderParameter;
5832
6684
  return options;
5833
6685
  },
6686
+ /**
6687
+ * 查询所有策略威胁情报控制规则
6688
+ *
6689
+ * Please refer to HUAWEI cloud API Explorer for details.
6690
+ */
6691
+ listIpReputationPolicyRules(listIpReputationPolicyRulesRequest) {
6692
+ const options = {
6693
+ method: "GET",
6694
+ url: "/v1/{project_id}/waf/rule/ip-reputation",
6695
+ contentType: "application/json",
6696
+ queryParams: {},
6697
+ pathParams: {},
6698
+ headers: {}
6699
+ };
6700
+ const localVarHeaderParameter = {};
6701
+ const localVarQueryParameter = {};
6702
+ let contentType;
6703
+ let policyids;
6704
+ let enterpriseProjectId;
6705
+ let page;
6706
+ let pagesize;
6707
+ if (listIpReputationPolicyRulesRequest !== null && listIpReputationPolicyRulesRequest !== undefined) {
6708
+ if (listIpReputationPolicyRulesRequest instanceof ListIpReputationPolicyRulesRequest_1.ListIpReputationPolicyRulesRequest) {
6709
+ contentType = listIpReputationPolicyRulesRequest.contentType;
6710
+ policyids = listIpReputationPolicyRulesRequest.policyids;
6711
+ enterpriseProjectId = listIpReputationPolicyRulesRequest.enterpriseProjectId;
6712
+ page = listIpReputationPolicyRulesRequest.page;
6713
+ pagesize = listIpReputationPolicyRulesRequest.pagesize;
6714
+ }
6715
+ else {
6716
+ contentType = listIpReputationPolicyRulesRequest['Content-Type'];
6717
+ policyids = listIpReputationPolicyRulesRequest['policyids'];
6718
+ enterpriseProjectId = listIpReputationPolicyRulesRequest['enterprise_project_id'];
6719
+ page = listIpReputationPolicyRulesRequest['page'];
6720
+ pagesize = listIpReputationPolicyRulesRequest['pagesize'];
6721
+ }
6722
+ }
6723
+ if (policyids !== null && policyids !== undefined) {
6724
+ localVarQueryParameter['policyids'] = policyids;
6725
+ }
6726
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
6727
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
6728
+ }
6729
+ if (page !== null && page !== undefined) {
6730
+ localVarQueryParameter['page'] = page;
6731
+ }
6732
+ if (pagesize !== null && pagesize !== undefined) {
6733
+ localVarQueryParameter['pagesize'] = pagesize;
6734
+ }
6735
+ if (contentType !== undefined && contentType !== null) {
6736
+ localVarHeaderParameter['Content-Type'] = String(contentType);
6737
+ }
6738
+ options.queryParams = localVarQueryParameter;
6739
+ options.headers = localVarHeaderParameter;
6740
+ return options;
6741
+ },
6742
+ /**
6743
+ * 查询威胁情报规则列表
6744
+ *
6745
+ * Please refer to HUAWEI cloud API Explorer for details.
6746
+ */
6747
+ listIpReputationRules(listIpReputationRulesRequest) {
6748
+ const options = {
6749
+ method: "GET",
6750
+ url: "/v1/{project_id}/waf/policy/{policy_id}/ip-reputation",
6751
+ contentType: "application/json",
6752
+ queryParams: {},
6753
+ pathParams: {},
6754
+ headers: {}
6755
+ };
6756
+ const localVarHeaderParameter = {};
6757
+ const localVarQueryParameter = {};
6758
+ let contentType;
6759
+ let policyId;
6760
+ let offset;
6761
+ let limit;
6762
+ let enterpriseProjectId;
6763
+ if (listIpReputationRulesRequest !== null && listIpReputationRulesRequest !== undefined) {
6764
+ if (listIpReputationRulesRequest instanceof ListIpReputationRulesRequest_1.ListIpReputationRulesRequest) {
6765
+ contentType = listIpReputationRulesRequest.contentType;
6766
+ policyId = listIpReputationRulesRequest.policyId;
6767
+ offset = listIpReputationRulesRequest.offset;
6768
+ limit = listIpReputationRulesRequest.limit;
6769
+ enterpriseProjectId = listIpReputationRulesRequest.enterpriseProjectId;
6770
+ }
6771
+ else {
6772
+ contentType = listIpReputationRulesRequest['Content-Type'];
6773
+ policyId = listIpReputationRulesRequest['policy_id'];
6774
+ offset = listIpReputationRulesRequest['offset'];
6775
+ limit = listIpReputationRulesRequest['limit'];
6776
+ enterpriseProjectId = listIpReputationRulesRequest['enterprise_project_id'];
6777
+ }
6778
+ }
6779
+ if (policyId === null || policyId === undefined) {
6780
+ throw new RequiredError('policyId', 'Required parameter policyId was null or undefined when calling listIpReputationRules.');
6781
+ }
6782
+ if (offset === null || offset === undefined) {
6783
+ throw new RequiredError('offset', 'Required parameter offset was null or undefined when calling listIpReputationRules.');
6784
+ }
6785
+ if (offset !== null && offset !== undefined) {
6786
+ localVarQueryParameter['offset'] = offset;
6787
+ }
6788
+ if (limit === null || limit === undefined) {
6789
+ throw new RequiredError('limit', 'Required parameter limit was null or undefined when calling listIpReputationRules.');
6790
+ }
6791
+ if (limit !== null && limit !== undefined) {
6792
+ localVarQueryParameter['limit'] = limit;
6793
+ }
6794
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
6795
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
6796
+ }
6797
+ if (contentType !== undefined && contentType !== null) {
6798
+ localVarHeaderParameter['Content-Type'] = String(contentType);
6799
+ }
6800
+ options.queryParams = localVarQueryParameter;
6801
+ options.pathParams = { 'policy_id': policyId, };
6802
+ options.headers = localVarHeaderParameter;
6803
+ return options;
6804
+ },
5834
6805
  /**
5835
6806
  * 查询告警通知配置
5836
6807
  *
@@ -6073,6 +7044,62 @@ const ParamCreater = function () {
6073
7044
  options.headers = localVarHeaderParameter;
6074
7045
  return options;
6075
7046
  },
7047
+ /**
7048
+ * 查询所有策略隐私屏蔽防护规则
7049
+ *
7050
+ * Please refer to HUAWEI cloud API Explorer for details.
7051
+ */
7052
+ listPrivacyPolicyRules(listPrivacyPolicyRulesRequest) {
7053
+ const options = {
7054
+ method: "GET",
7055
+ url: "/v1/{project_id}/waf/rule/privacy",
7056
+ contentType: "application/json",
7057
+ queryParams: {},
7058
+ pathParams: {},
7059
+ headers: {}
7060
+ };
7061
+ const localVarHeaderParameter = {};
7062
+ const localVarQueryParameter = {};
7063
+ let contentType;
7064
+ let policyids;
7065
+ let enterpriseProjectId;
7066
+ let page;
7067
+ let pagesize;
7068
+ if (listPrivacyPolicyRulesRequest !== null && listPrivacyPolicyRulesRequest !== undefined) {
7069
+ if (listPrivacyPolicyRulesRequest instanceof ListPrivacyPolicyRulesRequest_1.ListPrivacyPolicyRulesRequest) {
7070
+ contentType = listPrivacyPolicyRulesRequest.contentType;
7071
+ policyids = listPrivacyPolicyRulesRequest.policyids;
7072
+ enterpriseProjectId = listPrivacyPolicyRulesRequest.enterpriseProjectId;
7073
+ page = listPrivacyPolicyRulesRequest.page;
7074
+ pagesize = listPrivacyPolicyRulesRequest.pagesize;
7075
+ }
7076
+ else {
7077
+ contentType = listPrivacyPolicyRulesRequest['Content-Type'];
7078
+ policyids = listPrivacyPolicyRulesRequest['policyids'];
7079
+ enterpriseProjectId = listPrivacyPolicyRulesRequest['enterprise_project_id'];
7080
+ page = listPrivacyPolicyRulesRequest['page'];
7081
+ pagesize = listPrivacyPolicyRulesRequest['pagesize'];
7082
+ }
7083
+ }
7084
+ if (policyids !== null && policyids !== undefined) {
7085
+ localVarQueryParameter['policyids'] = policyids;
7086
+ }
7087
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
7088
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
7089
+ }
7090
+ if (page !== null && page !== undefined) {
7091
+ localVarQueryParameter['page'] = page;
7092
+ }
7093
+ if (pagesize !== null && pagesize !== undefined) {
7094
+ localVarQueryParameter['pagesize'] = pagesize;
7095
+ }
7096
+ if (contentType !== undefined && contentType !== null) {
7097
+ localVarHeaderParameter['Content-Type'] = String(contentType);
7098
+ }
7099
+ options.queryParams = localVarQueryParameter;
7100
+ options.headers = localVarHeaderParameter;
7101
+ return options;
7102
+ },
6076
7103
  /**
6077
7104
  * 查询隐私屏蔽防护规则列表
6078
7105
  *
@@ -6130,6 +7157,57 @@ const ParamCreater = function () {
6130
7157
  options.headers = localVarHeaderParameter;
6131
7158
  return options;
6132
7159
  },
7160
+ /**
7161
+ * 查询可防护的资源列表
7162
+ *
7163
+ * Please refer to HUAWEI cloud API Explorer for details.
7164
+ */
7165
+ listProtectableResources(listProtectableResourcesRequest) {
7166
+ const options = {
7167
+ method: "GET",
7168
+ url: "/v1/{project_id}/premium-waf/host/protectable-resources/{resource_type}",
7169
+ contentType: "application/json",
7170
+ queryParams: {},
7171
+ pathParams: {},
7172
+ headers: {}
7173
+ };
7174
+ const localVarHeaderParameter = {};
7175
+ const localVarQueryParameter = {};
7176
+ let contentType;
7177
+ let resourceType;
7178
+ let vpcId;
7179
+ let region;
7180
+ if (listProtectableResourcesRequest !== null && listProtectableResourcesRequest !== undefined) {
7181
+ if (listProtectableResourcesRequest instanceof ListProtectableResourcesRequest_1.ListProtectableResourcesRequest) {
7182
+ contentType = listProtectableResourcesRequest.contentType;
7183
+ resourceType = listProtectableResourcesRequest.resourceType;
7184
+ vpcId = listProtectableResourcesRequest.vpcId;
7185
+ region = listProtectableResourcesRequest.region;
7186
+ }
7187
+ else {
7188
+ contentType = listProtectableResourcesRequest['Content-Type'];
7189
+ resourceType = listProtectableResourcesRequest['resource_type'];
7190
+ vpcId = listProtectableResourcesRequest['vpc_id'];
7191
+ region = listProtectableResourcesRequest['region'];
7192
+ }
7193
+ }
7194
+ if (resourceType === null || resourceType === undefined) {
7195
+ throw new RequiredError('resourceType', 'Required parameter resourceType was null or undefined when calling listProtectableResources.');
7196
+ }
7197
+ if (vpcId !== null && vpcId !== undefined) {
7198
+ localVarQueryParameter['vpc_id'] = vpcId;
7199
+ }
7200
+ if (region !== undefined && region !== null) {
7201
+ localVarHeaderParameter['region'] = String(region);
7202
+ }
7203
+ if (contentType !== undefined && contentType !== null) {
7204
+ localVarHeaderParameter['Content-Type'] = String(contentType);
7205
+ }
7206
+ options.queryParams = localVarQueryParameter;
7207
+ options.pathParams = { 'resource_type': resourceType, };
7208
+ options.headers = localVarHeaderParameter;
7209
+ return options;
7210
+ },
6133
7211
  /**
6134
7212
  * 查询攻击惩罚规则列表
6135
7213
  *
@@ -6341,6 +7419,142 @@ const ParamCreater = function () {
6341
7419
  options.headers = localVarHeaderParameter;
6342
7420
  return options;
6343
7421
  },
7422
+ /**
7423
+ * 查询安全统计响应码数据
7424
+ *
7425
+ * Please refer to HUAWEI cloud API Explorer for details.
7426
+ */
7427
+ listResponseCodeTimeline(listResponseCodeTimelineRequest) {
7428
+ const options = {
7429
+ method: "GET",
7430
+ url: "/v1/{project_id}/waf/overviews/response-code/timeline",
7431
+ contentType: "application/json",
7432
+ queryParams: {},
7433
+ pathParams: {},
7434
+ headers: {}
7435
+ };
7436
+ const localVarHeaderParameter = {};
7437
+ const localVarQueryParameter = {};
7438
+ let contentType;
7439
+ let from;
7440
+ let to;
7441
+ let enterpriseProjectId;
7442
+ let hosts;
7443
+ let instances;
7444
+ let responseSource;
7445
+ let groupBy;
7446
+ if (listResponseCodeTimelineRequest !== null && listResponseCodeTimelineRequest !== undefined) {
7447
+ if (listResponseCodeTimelineRequest instanceof ListResponseCodeTimelineRequest_1.ListResponseCodeTimelineRequest) {
7448
+ contentType = listResponseCodeTimelineRequest.contentType;
7449
+ from = listResponseCodeTimelineRequest.from;
7450
+ to = listResponseCodeTimelineRequest.to;
7451
+ enterpriseProjectId = listResponseCodeTimelineRequest.enterpriseProjectId;
7452
+ hosts = listResponseCodeTimelineRequest.hosts;
7453
+ instances = listResponseCodeTimelineRequest.instances;
7454
+ responseSource = listResponseCodeTimelineRequest.responseSource;
7455
+ groupBy = listResponseCodeTimelineRequest.groupBy;
7456
+ }
7457
+ else {
7458
+ contentType = listResponseCodeTimelineRequest['Content-Type'];
7459
+ from = listResponseCodeTimelineRequest['from'];
7460
+ to = listResponseCodeTimelineRequest['to'];
7461
+ enterpriseProjectId = listResponseCodeTimelineRequest['enterprise_project_id'];
7462
+ hosts = listResponseCodeTimelineRequest['hosts'];
7463
+ instances = listResponseCodeTimelineRequest['instances'];
7464
+ responseSource = listResponseCodeTimelineRequest['response_source'];
7465
+ groupBy = listResponseCodeTimelineRequest['group_by'];
7466
+ }
7467
+ }
7468
+ if (from === null || from === undefined) {
7469
+ throw new RequiredError('from', 'Required parameter from was null or undefined when calling listResponseCodeTimeline.');
7470
+ }
7471
+ if (from !== null && from !== undefined) {
7472
+ localVarQueryParameter['from'] = from;
7473
+ }
7474
+ if (to === null || to === undefined) {
7475
+ throw new RequiredError('to', 'Required parameter to was null or undefined when calling listResponseCodeTimeline.');
7476
+ }
7477
+ if (to !== null && to !== undefined) {
7478
+ localVarQueryParameter['to'] = to;
7479
+ }
7480
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
7481
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
7482
+ }
7483
+ if (hosts !== null && hosts !== undefined) {
7484
+ localVarQueryParameter['hosts'] = hosts;
7485
+ }
7486
+ if (instances !== null && instances !== undefined) {
7487
+ localVarQueryParameter['instances'] = instances;
7488
+ }
7489
+ if (responseSource !== null && responseSource !== undefined) {
7490
+ localVarQueryParameter['response_source'] = responseSource;
7491
+ }
7492
+ if (groupBy !== null && groupBy !== undefined) {
7493
+ localVarQueryParameter['group_by'] = groupBy;
7494
+ }
7495
+ if (contentType !== undefined && contentType !== null) {
7496
+ localVarHeaderParameter['Content-Type'] = String(contentType);
7497
+ }
7498
+ options.queryParams = localVarQueryParameter;
7499
+ options.headers = localVarHeaderParameter;
7500
+ return options;
7501
+ },
7502
+ /**
7503
+ * 查询安全报告发送记录
7504
+ *
7505
+ * Please refer to HUAWEI cloud API Explorer for details.
7506
+ */
7507
+ listSecurityReportSendingRecords(listSecurityReportSendingRecordsRequest) {
7508
+ const options = {
7509
+ method: "GET",
7510
+ url: "/v1/{project_id}/waf/security-report/sending-records",
7511
+ contentType: "application/json",
7512
+ queryParams: {},
7513
+ pathParams: {},
7514
+ headers: {}
7515
+ };
7516
+ const localVarHeaderParameter = {};
7517
+ const localVarQueryParameter = {};
7518
+ let contentType;
7519
+ let reportName;
7520
+ let reportCategory;
7521
+ let limit;
7522
+ let offset;
7523
+ if (listSecurityReportSendingRecordsRequest !== null && listSecurityReportSendingRecordsRequest !== undefined) {
7524
+ if (listSecurityReportSendingRecordsRequest instanceof ListSecurityReportSendingRecordsRequest_1.ListSecurityReportSendingRecordsRequest) {
7525
+ contentType = listSecurityReportSendingRecordsRequest.contentType;
7526
+ reportName = listSecurityReportSendingRecordsRequest.reportName;
7527
+ reportCategory = listSecurityReportSendingRecordsRequest.reportCategory;
7528
+ limit = listSecurityReportSendingRecordsRequest.limit;
7529
+ offset = listSecurityReportSendingRecordsRequest.offset;
7530
+ }
7531
+ else {
7532
+ contentType = listSecurityReportSendingRecordsRequest['Content-Type'];
7533
+ reportName = listSecurityReportSendingRecordsRequest['report_name'];
7534
+ reportCategory = listSecurityReportSendingRecordsRequest['report_category'];
7535
+ limit = listSecurityReportSendingRecordsRequest['limit'];
7536
+ offset = listSecurityReportSendingRecordsRequest['offset'];
7537
+ }
7538
+ }
7539
+ if (reportName !== null && reportName !== undefined) {
7540
+ localVarQueryParameter['report_name'] = reportName;
7541
+ }
7542
+ if (reportCategory !== null && reportCategory !== undefined) {
7543
+ localVarQueryParameter['report_category'] = reportCategory;
7544
+ }
7545
+ if (limit !== null && limit !== undefined) {
7546
+ localVarQueryParameter['limit'] = limit;
7547
+ }
7548
+ if (offset !== null && offset !== undefined) {
7549
+ localVarQueryParameter['offset'] = offset;
7550
+ }
7551
+ if (contentType !== undefined && contentType !== null) {
7552
+ localVarHeaderParameter['Content-Type'] = String(contentType);
7553
+ }
7554
+ options.queryParams = localVarQueryParameter;
7555
+ options.headers = localVarHeaderParameter;
7556
+ return options;
7557
+ },
6344
7558
  /**
6345
7559
  * 查询安全报告订阅列表
6346
7560
  *
@@ -6936,6 +8150,62 @@ const ParamCreater = function () {
6936
8150
  options.headers = localVarHeaderParameter;
6937
8151
  return options;
6938
8152
  },
8153
+ /**
8154
+ * 查询所有策略黑白名单防护规则
8155
+ *
8156
+ * Please refer to HUAWEI cloud API Explorer for details.
8157
+ */
8158
+ listWhiteblackipPolicyRules(listWhiteblackipPolicyRulesRequest) {
8159
+ const options = {
8160
+ method: "GET",
8161
+ url: "/v1/{project_id}/waf/rule/whiteblackip",
8162
+ contentType: "application/json",
8163
+ queryParams: {},
8164
+ pathParams: {},
8165
+ headers: {}
8166
+ };
8167
+ const localVarHeaderParameter = {};
8168
+ const localVarQueryParameter = {};
8169
+ let contentType;
8170
+ let policyids;
8171
+ let enterpriseProjectId;
8172
+ let page;
8173
+ let pagesize;
8174
+ if (listWhiteblackipPolicyRulesRequest !== null && listWhiteblackipPolicyRulesRequest !== undefined) {
8175
+ if (listWhiteblackipPolicyRulesRequest instanceof ListWhiteblackipPolicyRulesRequest_1.ListWhiteblackipPolicyRulesRequest) {
8176
+ contentType = listWhiteblackipPolicyRulesRequest.contentType;
8177
+ policyids = listWhiteblackipPolicyRulesRequest.policyids;
8178
+ enterpriseProjectId = listWhiteblackipPolicyRulesRequest.enterpriseProjectId;
8179
+ page = listWhiteblackipPolicyRulesRequest.page;
8180
+ pagesize = listWhiteblackipPolicyRulesRequest.pagesize;
8181
+ }
8182
+ else {
8183
+ contentType = listWhiteblackipPolicyRulesRequest['Content-Type'];
8184
+ policyids = listWhiteblackipPolicyRulesRequest['policyids'];
8185
+ enterpriseProjectId = listWhiteblackipPolicyRulesRequest['enterprise_project_id'];
8186
+ page = listWhiteblackipPolicyRulesRequest['page'];
8187
+ pagesize = listWhiteblackipPolicyRulesRequest['pagesize'];
8188
+ }
8189
+ }
8190
+ if (policyids !== null && policyids !== undefined) {
8191
+ localVarQueryParameter['policyids'] = policyids;
8192
+ }
8193
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
8194
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
8195
+ }
8196
+ if (page !== null && page !== undefined) {
8197
+ localVarQueryParameter['page'] = page;
8198
+ }
8199
+ if (pagesize !== null && pagesize !== undefined) {
8200
+ localVarQueryParameter['pagesize'] = pagesize;
8201
+ }
8202
+ if (contentType !== undefined && contentType !== null) {
8203
+ localVarHeaderParameter['Content-Type'] = String(contentType);
8204
+ }
8205
+ options.queryParams = localVarQueryParameter;
8206
+ options.headers = localVarHeaderParameter;
8207
+ return options;
8208
+ },
6939
8209
  /**
6940
8210
  * 查询黑白名单规则列表
6941
8211
  *
@@ -8074,6 +9344,54 @@ const ParamCreater = function () {
8074
9344
  options.headers = localVarHeaderParameter;
8075
9345
  return options;
8076
9346
  },
9347
+ /**
9348
+ * 查询安全报告内容
9349
+ *
9350
+ * Please refer to HUAWEI cloud API Explorer for details.
9351
+ */
9352
+ showSecurityReportContent(showSecurityReportContentRequest) {
9353
+ const options = {
9354
+ method: "GET",
9355
+ url: "/v1/{project_id}/waf/security-reports/{report_id}",
9356
+ contentType: "application/json",
9357
+ queryParams: {},
9358
+ pathParams: {},
9359
+ headers: {}
9360
+ };
9361
+ const localVarHeaderParameter = {};
9362
+ const localVarQueryParameter = {};
9363
+ let contentType;
9364
+ let reportId;
9365
+ let subscriptionId;
9366
+ if (showSecurityReportContentRequest !== null && showSecurityReportContentRequest !== undefined) {
9367
+ if (showSecurityReportContentRequest instanceof ShowSecurityReportContentRequest_1.ShowSecurityReportContentRequest) {
9368
+ contentType = showSecurityReportContentRequest.contentType;
9369
+ reportId = showSecurityReportContentRequest.reportId;
9370
+ subscriptionId = showSecurityReportContentRequest.subscriptionId;
9371
+ }
9372
+ else {
9373
+ contentType = showSecurityReportContentRequest['Content-Type'];
9374
+ reportId = showSecurityReportContentRequest['report_id'];
9375
+ subscriptionId = showSecurityReportContentRequest['subscription_id'];
9376
+ }
9377
+ }
9378
+ if (reportId === null || reportId === undefined) {
9379
+ throw new RequiredError('reportId', 'Required parameter reportId was null or undefined when calling showSecurityReportContent.');
9380
+ }
9381
+ if (subscriptionId === null || subscriptionId === undefined) {
9382
+ throw new RequiredError('subscriptionId', 'Required parameter subscriptionId was null or undefined when calling showSecurityReportContent.');
9383
+ }
9384
+ if (subscriptionId !== null && subscriptionId !== undefined) {
9385
+ localVarQueryParameter['subscription_id'] = subscriptionId;
9386
+ }
9387
+ if (contentType !== undefined && contentType !== null) {
9388
+ localVarHeaderParameter['Content-Type'] = String(contentType);
9389
+ }
9390
+ options.queryParams = localVarQueryParameter;
9391
+ options.pathParams = { 'report_id': reportId, };
9392
+ options.headers = localVarHeaderParameter;
9393
+ return options;
9394
+ },
8077
9395
  /**
8078
9396
  * 查询WAF回源Ip信息
8079
9397
  *