@huaweicloud/huaweicloud-sdk-waf 3.1.176 → 3.1.177

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 (249) hide show
  1. package/package.json +2 -2
  2. package/v1/WafClient.d.ts +537 -1
  3. package/v1/WafClient.d.ts.map +1 -1
  4. package/v1/WafClient.js +1126 -12
  5. package/v1/WafClient.js.map +1 -1
  6. package/v1/model/AsyncJobReqBody.d.ts +42 -0
  7. package/v1/model/AsyncJobReqBody.d.ts.map +1 -0
  8. package/v1/model/AsyncJobReqBody.js +89 -0
  9. package/v1/model/AsyncJobReqBody.js.map +1 -0
  10. package/v1/model/BatchDeleteCompositeHostsRequest.d.ts +15 -0
  11. package/v1/model/BatchDeleteCompositeHostsRequest.d.ts.map +1 -0
  12. package/v1/model/BatchDeleteCompositeHostsRequest.js +34 -0
  13. package/v1/model/BatchDeleteCompositeHostsRequest.js.map +1 -0
  14. package/v1/model/BatchDeleteCompositeHostsRequestBody.d.ts +12 -0
  15. package/v1/model/BatchDeleteCompositeHostsRequestBody.d.ts.map +1 -0
  16. package/v1/model/BatchDeleteCompositeHostsRequestBody.js +29 -0
  17. package/v1/model/BatchDeleteCompositeHostsRequestBody.js.map +1 -0
  18. package/v1/model/BatchDeleteCompositeHostsResponse.d.ts +9 -0
  19. package/v1/model/BatchDeleteCompositeHostsResponse.d.ts.map +1 -0
  20. package/v1/model/BatchDeleteCompositeHostsResponse.js +21 -0
  21. package/v1/model/BatchDeleteCompositeHostsResponse.js.map +1 -0
  22. package/v1/model/BatchDeleteRulesRequest.d.ts +15 -0
  23. package/v1/model/BatchDeleteRulesRequest.d.ts.map +1 -0
  24. package/v1/model/BatchDeleteRulesRequest.js +35 -0
  25. package/v1/model/BatchDeleteRulesRequest.js.map +1 -0
  26. package/v1/model/BatchDeleteRulesResponse.d.ts +10 -0
  27. package/v1/model/BatchDeleteRulesResponse.d.ts.map +1 -0
  28. package/v1/model/BatchDeleteRulesResponse.js +21 -0
  29. package/v1/model/BatchDeleteRulesResponse.js.map +1 -0
  30. package/v1/model/BatchUpdateAntiTamperRulesRequestBody.d.ts +15 -0
  31. package/v1/model/BatchUpdateAntiTamperRulesRequestBody.d.ts.map +1 -0
  32. package/v1/model/BatchUpdateAntiTamperRulesRequestBody.js +34 -0
  33. package/v1/model/BatchUpdateAntiTamperRulesRequestBody.js.map +1 -0
  34. package/v1/model/BatchUpdateAntileakageRuleRequestBody.d.ts +28 -0
  35. package/v1/model/BatchUpdateAntileakageRuleRequestBody.d.ts.map +1 -0
  36. package/v1/model/BatchUpdateAntileakageRuleRequestBody.js +51 -0
  37. package/v1/model/BatchUpdateAntileakageRuleRequestBody.js.map +1 -0
  38. package/v1/model/BatchUpdateAntileakageRulesRequest.d.ts +11 -0
  39. package/v1/model/BatchUpdateAntileakageRulesRequest.d.ts.map +1 -0
  40. package/v1/model/BatchUpdateAntileakageRulesRequest.js +24 -0
  41. package/v1/model/BatchUpdateAntileakageRulesRequest.js.map +1 -0
  42. package/v1/model/BatchUpdateAntileakageRulesResponse.d.ts +10 -0
  43. package/v1/model/BatchUpdateAntileakageRulesResponse.d.ts.map +1 -0
  44. package/v1/model/BatchUpdateAntileakageRulesResponse.js +21 -0
  45. package/v1/model/BatchUpdateAntileakageRulesResponse.js.map +1 -0
  46. package/v1/model/BatchUpdateAntitamperRulesRequest.d.ts +11 -0
  47. package/v1/model/BatchUpdateAntitamperRulesRequest.d.ts.map +1 -0
  48. package/v1/model/BatchUpdateAntitamperRulesRequest.js +24 -0
  49. package/v1/model/BatchUpdateAntitamperRulesRequest.js.map +1 -0
  50. package/v1/model/BatchUpdateAntitamperRulesResponse.d.ts +10 -0
  51. package/v1/model/BatchUpdateAntitamperRulesResponse.d.ts.map +1 -0
  52. package/v1/model/BatchUpdateAntitamperRulesResponse.js +21 -0
  53. package/v1/model/BatchUpdateAntitamperRulesResponse.js.map +1 -0
  54. package/v1/model/BatchUpdateCcRulesRequest.d.ts +11 -0
  55. package/v1/model/BatchUpdateCcRulesRequest.d.ts.map +1 -0
  56. package/v1/model/BatchUpdateCcRulesRequest.js +24 -0
  57. package/v1/model/BatchUpdateCcRulesRequest.js.map +1 -0
  58. package/v1/model/BatchUpdateCcRulesRequestBody.d.ts +73 -0
  59. package/v1/model/BatchUpdateCcRulesRequestBody.d.ts.map +1 -0
  60. package/v1/model/BatchUpdateCcRulesRequestBody.js +153 -0
  61. package/v1/model/BatchUpdateCcRulesRequestBody.js.map +1 -0
  62. package/v1/model/BatchUpdateCcRulesResponse.d.ts +10 -0
  63. package/v1/model/BatchUpdateCcRulesResponse.d.ts.map +1 -0
  64. package/v1/model/BatchUpdateCcRulesResponse.js +21 -0
  65. package/v1/model/BatchUpdateCcRulesResponse.js.map +1 -0
  66. package/v1/model/BatchUpdateCustomRuleRequestBody.d.ts +39 -0
  67. package/v1/model/BatchUpdateCustomRuleRequestBody.d.ts.map +1 -0
  68. package/v1/model/BatchUpdateCustomRuleRequestBody.js +77 -0
  69. package/v1/model/BatchUpdateCustomRuleRequestBody.js.map +1 -0
  70. package/v1/model/BatchUpdateCustomRulesRequest.d.ts +11 -0
  71. package/v1/model/BatchUpdateCustomRulesRequest.d.ts.map +1 -0
  72. package/v1/model/BatchUpdateCustomRulesRequest.js +24 -0
  73. package/v1/model/BatchUpdateCustomRulesRequest.js.map +1 -0
  74. package/v1/model/BatchUpdateCustomRulesResponse.d.ts +10 -0
  75. package/v1/model/BatchUpdateCustomRulesResponse.d.ts.map +1 -0
  76. package/v1/model/BatchUpdateCustomRulesResponse.js +21 -0
  77. package/v1/model/BatchUpdateCustomRulesResponse.js.map +1 -0
  78. package/v1/model/BatchUpdateGeoipRulesRequest.d.ts +11 -0
  79. package/v1/model/BatchUpdateGeoipRulesRequest.d.ts.map +1 -0
  80. package/v1/model/BatchUpdateGeoipRulesRequest.js +24 -0
  81. package/v1/model/BatchUpdateGeoipRulesRequest.js.map +1 -0
  82. package/v1/model/BatchUpdateGeoipRulesRequestBody.d.ts +17 -0
  83. package/v1/model/BatchUpdateGeoipRulesRequestBody.d.ts.map +1 -0
  84. package/v1/model/BatchUpdateGeoipRulesRequestBody.js +35 -0
  85. package/v1/model/BatchUpdateGeoipRulesRequestBody.js.map +1 -0
  86. package/v1/model/BatchUpdateGeoipRulesResponse.d.ts +10 -0
  87. package/v1/model/BatchUpdateGeoipRulesResponse.d.ts.map +1 -0
  88. package/v1/model/BatchUpdateGeoipRulesResponse.js +21 -0
  89. package/v1/model/BatchUpdateGeoipRulesResponse.js.map +1 -0
  90. package/v1/model/BatchUpdateIgnoreRuleRequestBody.d.ts +23 -0
  91. package/v1/model/BatchUpdateIgnoreRuleRequestBody.d.ts.map +1 -0
  92. package/v1/model/BatchUpdateIgnoreRuleRequestBody.js +47 -0
  93. package/v1/model/BatchUpdateIgnoreRuleRequestBody.js.map +1 -0
  94. package/v1/model/BatchUpdateIgnoreRulesRequest.d.ts +11 -0
  95. package/v1/model/BatchUpdateIgnoreRulesRequest.d.ts.map +1 -0
  96. package/v1/model/BatchUpdateIgnoreRulesRequest.js +24 -0
  97. package/v1/model/BatchUpdateIgnoreRulesRequest.js.map +1 -0
  98. package/v1/model/BatchUpdateIgnoreRulesResponse.d.ts +10 -0
  99. package/v1/model/BatchUpdateIgnoreRulesResponse.d.ts.map +1 -0
  100. package/v1/model/BatchUpdateIgnoreRulesResponse.js +21 -0
  101. package/v1/model/BatchUpdateIgnoreRulesResponse.js.map +1 -0
  102. package/v1/model/BatchUpdateIpReputationRuleRequestBody.d.ts +22 -0
  103. package/v1/model/BatchUpdateIpReputationRuleRequestBody.d.ts.map +1 -0
  104. package/v1/model/BatchUpdateIpReputationRuleRequestBody.js +47 -0
  105. package/v1/model/BatchUpdateIpReputationRuleRequestBody.js.map +1 -0
  106. package/v1/model/BatchUpdateIpReputationRuleRequestBodyAction.d.ts +6 -0
  107. package/v1/model/BatchUpdateIpReputationRuleRequestBodyAction.d.ts.map +1 -0
  108. package/v1/model/BatchUpdateIpReputationRuleRequestBodyAction.js +13 -0
  109. package/v1/model/BatchUpdateIpReputationRuleRequestBodyAction.js.map +1 -0
  110. package/v1/model/BatchUpdateIpReputationRulesRequest.d.ts +11 -0
  111. package/v1/model/BatchUpdateIpReputationRulesRequest.d.ts.map +1 -0
  112. package/v1/model/BatchUpdateIpReputationRulesRequest.js +24 -0
  113. package/v1/model/BatchUpdateIpReputationRulesRequest.js.map +1 -0
  114. package/v1/model/BatchUpdateIpReputationRulesResponse.d.ts +10 -0
  115. package/v1/model/BatchUpdateIpReputationRulesResponse.d.ts.map +1 -0
  116. package/v1/model/BatchUpdateIpReputationRulesResponse.js +21 -0
  117. package/v1/model/BatchUpdateIpReputationRulesResponse.js.map +1 -0
  118. package/v1/model/BatchUpdatePrivacyRuleRequestBody.d.ts +27 -0
  119. package/v1/model/BatchUpdatePrivacyRuleRequestBody.d.ts.map +1 -0
  120. package/v1/model/BatchUpdatePrivacyRuleRequestBody.js +49 -0
  121. package/v1/model/BatchUpdatePrivacyRuleRequestBody.js.map +1 -0
  122. package/v1/model/BatchUpdatePrivacyRulesRequest.d.ts +11 -0
  123. package/v1/model/BatchUpdatePrivacyRulesRequest.d.ts.map +1 -0
  124. package/v1/model/BatchUpdatePrivacyRulesRequest.js +24 -0
  125. package/v1/model/BatchUpdatePrivacyRulesRequest.js.map +1 -0
  126. package/v1/model/BatchUpdatePrivacyRulesResponse.d.ts +10 -0
  127. package/v1/model/BatchUpdatePrivacyRulesResponse.d.ts.map +1 -0
  128. package/v1/model/BatchUpdatePrivacyRulesResponse.js +21 -0
  129. package/v1/model/BatchUpdatePrivacyRulesResponse.js.map +1 -0
  130. package/v1/model/BatchUpdateWhiteBlackIpRuleRequestBody.d.ts +29 -0
  131. package/v1/model/BatchUpdateWhiteBlackIpRuleRequestBody.d.ts.map +1 -0
  132. package/v1/model/BatchUpdateWhiteBlackIpRuleRequestBody.js +65 -0
  133. package/v1/model/BatchUpdateWhiteBlackIpRuleRequestBody.js.map +1 -0
  134. package/v1/model/BatchUpdateWhiteblackipRulesRequest.d.ts +11 -0
  135. package/v1/model/BatchUpdateWhiteblackipRulesRequest.d.ts.map +1 -0
  136. package/v1/model/BatchUpdateWhiteblackipRulesRequest.js +24 -0
  137. package/v1/model/BatchUpdateWhiteblackipRulesRequest.js.map +1 -0
  138. package/v1/model/BatchUpdateWhiteblackipRulesResponse.d.ts +10 -0
  139. package/v1/model/BatchUpdateWhiteblackipRulesResponse.d.ts.map +1 -0
  140. package/v1/model/BatchUpdateWhiteblackipRulesResponse.js +21 -0
  141. package/v1/model/BatchUpdateWhiteblackipRulesResponse.js.map +1 -0
  142. package/v1/model/ConfirmDnsDomainRequest.d.ts +12 -0
  143. package/v1/model/ConfirmDnsDomainRequest.d.ts.map +1 -0
  144. package/v1/model/ConfirmDnsDomainRequest.js +30 -0
  145. package/v1/model/ConfirmDnsDomainRequest.js.map +1 -0
  146. package/v1/model/ConfirmDnsDomainResponse.d.ts +12 -0
  147. package/v1/model/ConfirmDnsDomainResponse.d.ts.map +1 -0
  148. package/v1/model/ConfirmDnsDomainResponse.js +25 -0
  149. package/v1/model/ConfirmDnsDomainResponse.js.map +1 -0
  150. package/v1/model/CopyPolicyByIdRequest.d.ts +20 -0
  151. package/v1/model/CopyPolicyByIdRequest.d.ts.map +1 -0
  152. package/v1/model/CopyPolicyByIdRequest.js +52 -0
  153. package/v1/model/CopyPolicyByIdRequest.js.map +1 -0
  154. package/v1/model/CopyPolicyByIdResponse.d.ts +51 -0
  155. package/v1/model/CopyPolicyByIdResponse.d.ts.map +1 -0
  156. package/v1/model/CopyPolicyByIdResponse.js +83 -0
  157. package/v1/model/CopyPolicyByIdResponse.js.map +1 -0
  158. package/v1/model/CreateEventExportJobRequest.d.ts +11 -0
  159. package/v1/model/CreateEventExportJobRequest.d.ts.map +1 -0
  160. package/v1/model/CreateEventExportJobRequest.js +24 -0
  161. package/v1/model/CreateEventExportJobRequest.js.map +1 -0
  162. package/v1/model/CreateEventExportJobResponse.d.ts +13 -0
  163. package/v1/model/CreateEventExportJobResponse.d.ts.map +1 -0
  164. package/v1/model/CreateEventExportJobResponse.js +29 -0
  165. package/v1/model/CreateEventExportJobResponse.js.map +1 -0
  166. package/v1/model/CreateSecurityReportSubscriptionRequest.d.ts +11 -0
  167. package/v1/model/CreateSecurityReportSubscriptionRequest.d.ts.map +1 -0
  168. package/v1/model/CreateSecurityReportSubscriptionRequest.js +24 -0
  169. package/v1/model/CreateSecurityReportSubscriptionRequest.js.map +1 -0
  170. package/v1/model/CreateSecurityReportSubscriptionRequestBody.d.ts +38 -0
  171. package/v1/model/CreateSecurityReportSubscriptionRequestBody.d.ts.map +1 -0
  172. package/v1/model/CreateSecurityReportSubscriptionRequestBody.js +89 -0
  173. package/v1/model/CreateSecurityReportSubscriptionRequestBody.js.map +1 -0
  174. package/v1/model/CreateSecurityReportSubscriptionRequestBodyReportContentSubscription.d.ts +52 -0
  175. package/v1/model/CreateSecurityReportSubscriptionRequestBodyReportContentSubscription.d.ts.map +1 -0
  176. package/v1/model/CreateSecurityReportSubscriptionRequestBodyReportContentSubscription.js +129 -0
  177. package/v1/model/CreateSecurityReportSubscriptionRequestBodyReportContentSubscription.js.map +1 -0
  178. package/v1/model/CreateSecurityReportSubscriptionRequestBodyStatPeriod.d.ts +12 -0
  179. package/v1/model/CreateSecurityReportSubscriptionRequestBodyStatPeriod.d.ts.map +1 -0
  180. package/v1/model/CreateSecurityReportSubscriptionRequestBodyStatPeriod.js +29 -0
  181. package/v1/model/CreateSecurityReportSubscriptionRequestBodyStatPeriod.js.map +1 -0
  182. package/v1/model/CreateSecurityReportSubscriptionResponse.d.ts +47 -0
  183. package/v1/model/CreateSecurityReportSubscriptionResponse.d.ts.map +1 -0
  184. package/v1/model/CreateSecurityReportSubscriptionResponse.js +111 -0
  185. package/v1/model/CreateSecurityReportSubscriptionResponse.js.map +1 -0
  186. package/v1/model/DeleteIpReputationRuleRequest.d.ts +20 -0
  187. package/v1/model/DeleteIpReputationRuleRequest.d.ts.map +1 -0
  188. package/v1/model/DeleteIpReputationRuleRequest.js +52 -0
  189. package/v1/model/DeleteIpReputationRuleRequest.js.map +1 -0
  190. package/v1/model/DeleteIpReputationRuleResponse.d.ts +24 -0
  191. package/v1/model/DeleteIpReputationRuleResponse.d.ts.map +1 -0
  192. package/v1/model/DeleteIpReputationRuleResponse.js +47 -0
  193. package/v1/model/DeleteIpReputationRuleResponse.js.map +1 -0
  194. package/v1/model/DeleteIpReputationRuleResponseBodyAction.d.ts +6 -0
  195. package/v1/model/DeleteIpReputationRuleResponseBodyAction.d.ts.map +1 -0
  196. package/v1/model/DeleteIpReputationRuleResponseBodyAction.js +13 -0
  197. package/v1/model/DeleteIpReputationRuleResponseBodyAction.js.map +1 -0
  198. package/v1/model/DeleteSecurityReportSubscriptionRequest.d.ts +12 -0
  199. package/v1/model/DeleteSecurityReportSubscriptionRequest.d.ts.map +1 -0
  200. package/v1/model/DeleteSecurityReportSubscriptionRequest.js +31 -0
  201. package/v1/model/DeleteSecurityReportSubscriptionRequest.js.map +1 -0
  202. package/v1/model/DeleteSecurityReportSubscriptionResponse.d.ts +47 -0
  203. package/v1/model/DeleteSecurityReportSubscriptionResponse.d.ts.map +1 -0
  204. package/v1/model/DeleteSecurityReportSubscriptionResponse.js +111 -0
  205. package/v1/model/DeleteSecurityReportSubscriptionResponse.js.map +1 -0
  206. package/v1/model/DnsDomain.d.ts +15 -0
  207. package/v1/model/DnsDomain.d.ts.map +1 -0
  208. package/v1/model/DnsDomain.js +31 -0
  209. package/v1/model/DnsDomain.js.map +1 -0
  210. package/v1/model/PolicyRuleIdRequestBody.d.ts +9 -0
  211. package/v1/model/PolicyRuleIdRequestBody.d.ts.map +1 -0
  212. package/v1/model/PolicyRuleIdRequestBody.js +19 -0
  213. package/v1/model/PolicyRuleIdRequestBody.js.map +1 -0
  214. package/v1/model/PolicyRuleIdRequestBodyPolicyRuleIds.d.ts +12 -0
  215. package/v1/model/PolicyRuleIdRequestBodyPolicyRuleIds.d.ts.map +1 -0
  216. package/v1/model/PolicyRuleIdRequestBodyPolicyRuleIds.js +29 -0
  217. package/v1/model/PolicyRuleIdRequestBodyPolicyRuleIds.js.map +1 -0
  218. package/v1/model/PolicyRuleIdResponseBodyPolicyRuleIds.d.ts +12 -0
  219. package/v1/model/PolicyRuleIdResponseBodyPolicyRuleIds.d.ts.map +1 -0
  220. package/v1/model/PolicyRuleIdResponseBodyPolicyRuleIds.js +29 -0
  221. package/v1/model/PolicyRuleIdResponseBodyPolicyRuleIds.js.map +1 -0
  222. package/v1/model/Server.d.ts +8 -0
  223. package/v1/model/Server.d.ts.map +1 -0
  224. package/v1/model/Server.js +17 -0
  225. package/v1/model/Server.js.map +1 -0
  226. package/v1/model/UpdatePremiumInstanceProgressRequest.d.ts +15 -0
  227. package/v1/model/UpdatePremiumInstanceProgressRequest.d.ts.map +1 -0
  228. package/v1/model/UpdatePremiumInstanceProgressRequest.js +35 -0
  229. package/v1/model/UpdatePremiumInstanceProgressRequest.js.map +1 -0
  230. package/v1/model/UpdatePremiumInstanceProgressResponse.d.ts +9 -0
  231. package/v1/model/UpdatePremiumInstanceProgressResponse.d.ts.map +1 -0
  232. package/v1/model/UpdatePremiumInstanceProgressResponse.js +19 -0
  233. package/v1/model/UpdatePremiumInstanceProgressResponse.js.map +1 -0
  234. package/v1/model/UpdateSecurityReportSubscriptionRequest.d.ts +15 -0
  235. package/v1/model/UpdateSecurityReportSubscriptionRequest.d.ts.map +1 -0
  236. package/v1/model/UpdateSecurityReportSubscriptionRequest.js +35 -0
  237. package/v1/model/UpdateSecurityReportSubscriptionRequest.js.map +1 -0
  238. package/v1/model/UpdateSecurityReportSubscriptionRequestBody.d.ts +46 -0
  239. package/v1/model/UpdateSecurityReportSubscriptionRequestBody.d.ts.map +1 -0
  240. package/v1/model/UpdateSecurityReportSubscriptionRequestBody.js +114 -0
  241. package/v1/model/UpdateSecurityReportSubscriptionRequestBody.js.map +1 -0
  242. package/v1/model/UpdateSecurityReportSubscriptionResponse.d.ts +47 -0
  243. package/v1/model/UpdateSecurityReportSubscriptionResponse.d.ts.map +1 -0
  244. package/v1/model/UpdateSecurityReportSubscriptionResponse.js +111 -0
  245. package/v1/model/UpdateSecurityReportSubscriptionResponse.js.map +1 -0
  246. package/v1/public-api.d.ts +60 -0
  247. package/v1/public-api.d.ts.map +1 -1
  248. package/v1/public-api.js +60 -0
  249. package/v1/public-api.js.map +1 -1
package/v1/WafClient.js CHANGED
@@ -13,11 +13,23 @@ const BatchCreateIpReputationRuleRequest_1 = require("./model/BatchCreateIpReput
13
13
  const BatchCreatePrivacyRuleRequest_1 = require("./model/BatchCreatePrivacyRuleRequest");
14
14
  const BatchCreateWhiteblackipRuleRequest_1 = require("./model/BatchCreateWhiteblackipRuleRequest");
15
15
  const BatchDeleteAlertNoticeConfigRequest_1 = require("./model/BatchDeleteAlertNoticeConfigRequest");
16
+ const BatchDeleteCompositeHostsRequest_1 = require("./model/BatchDeleteCompositeHostsRequest");
16
17
  const BatchDeletePoliciesRequest_1 = require("./model/BatchDeletePoliciesRequest");
18
+ const BatchDeleteRulesRequest_1 = require("./model/BatchDeleteRulesRequest");
19
+ const BatchUpdateAntileakageRulesRequest_1 = require("./model/BatchUpdateAntileakageRulesRequest");
20
+ const BatchUpdateAntitamperRulesRequest_1 = require("./model/BatchUpdateAntitamperRulesRequest");
21
+ const BatchUpdateCcRulesRequest_1 = require("./model/BatchUpdateCcRulesRequest");
22
+ const BatchUpdateCustomRulesRequest_1 = require("./model/BatchUpdateCustomRulesRequest");
23
+ const BatchUpdateGeoipRulesRequest_1 = require("./model/BatchUpdateGeoipRulesRequest");
24
+ const BatchUpdateIgnoreRulesRequest_1 = require("./model/BatchUpdateIgnoreRulesRequest");
25
+ const BatchUpdateIpReputationRulesRequest_1 = require("./model/BatchUpdateIpReputationRulesRequest");
26
+ const BatchUpdatePrivacyRulesRequest_1 = require("./model/BatchUpdatePrivacyRulesRequest");
27
+ const BatchUpdateWhiteblackipRulesRequest_1 = require("./model/BatchUpdateWhiteblackipRulesRequest");
17
28
  const ChangePrepaidCloudWafRequest_1 = require("./model/ChangePrepaidCloudWafRequest");
18
29
  const CheckAgencyRequest_1 = require("./model/CheckAgencyRequest");
19
30
  const ConfirmApplicationTypesRequest_1 = require("./model/ConfirmApplicationTypesRequest");
20
31
  const ConfirmAsyncJobRequest_1 = require("./model/ConfirmAsyncJobRequest");
32
+ const ConfirmDnsDomainRequest_1 = require("./model/ConfirmDnsDomainRequest");
21
33
  const ConfirmIpReputationRuleRequest_1 = require("./model/ConfirmIpReputationRuleRequest");
22
34
  const ConfirmPolicyAntileakageMapRequest_1 = require("./model/ConfirmPolicyAntileakageMapRequest");
23
35
  const ConfirmPolicyIpReputationMapRequest_1 = require("./model/ConfirmPolicyIpReputationMapRequest");
@@ -25,6 +37,7 @@ const ConfirmProtectionTypesRequest_1 = require("./model/ConfirmProtectionTypesR
25
37
  const ConfirmThreatMapRequest_1 = require("./model/ConfirmThreatMapRequest");
26
38
  const ConfirmTmsResourceInstancesRequest_1 = require("./model/ConfirmTmsResourceInstancesRequest");
27
39
  const ConfirmUserBundleRequest_1 = require("./model/ConfirmUserBundleRequest");
40
+ const CopyPolicyByIdRequest_1 = require("./model/CopyPolicyByIdRequest");
28
41
  const CreateAgencyRequest_1 = require("./model/CreateAgencyRequest");
29
42
  const CreateAlertNoticeConfigRequest_1 = require("./model/CreateAlertNoticeConfigRequest");
30
43
  const CreateAntiTamperRuleRequest_1 = require("./model/CreateAntiTamperRuleRequest");
@@ -34,6 +47,7 @@ const CreateCcRuleRequest_1 = require("./model/CreateCcRuleRequest");
34
47
  const CreateCertificateRequest_1 = require("./model/CreateCertificateRequest");
35
48
  const CreateCloudWafPostPaidResourceRequest_1 = require("./model/CreateCloudWafPostPaidResourceRequest");
36
49
  const CreateCustomRuleRequest_1 = require("./model/CreateCustomRuleRequest");
50
+ const CreateEventExportJobRequest_1 = require("./model/CreateEventExportJobRequest");
37
51
  const CreateGeoipRuleRequest_1 = require("./model/CreateGeoipRuleRequest");
38
52
  const CreateHostRequest_1 = require("./model/CreateHostRequest");
39
53
  const CreateIgnoreRuleRequest_1 = require("./model/CreateIgnoreRuleRequest");
@@ -46,6 +60,7 @@ const CreatePrepaidCloudWafRequest_1 = require("./model/CreatePrepaidCloudWafReq
46
60
  const CreatePrivacyRuleRequest_1 = require("./model/CreatePrivacyRuleRequest");
47
61
  const CreatePunishmentRuleRequest_1 = require("./model/CreatePunishmentRuleRequest");
48
62
  const CreateQuickAccessDomainRequest_1 = require("./model/CreateQuickAccessDomainRequest");
63
+ const CreateSecurityReportSubscriptionRequest_1 = require("./model/CreateSecurityReportSubscriptionRequest");
49
64
  const CreateValueListRequest_1 = require("./model/CreateValueListRequest");
50
65
  const CreateWhiteblackipRuleRequest_1 = require("./model/CreateWhiteblackipRuleRequest");
51
66
  const DeleteAgencyRequest_1 = require("./model/DeleteAgencyRequest");
@@ -61,10 +76,12 @@ const DeleteHostRequest_1 = require("./model/DeleteHostRequest");
61
76
  const DeleteIgnoreRuleRequest_1 = require("./model/DeleteIgnoreRuleRequest");
62
77
  const DeleteInstanceRequest_1 = require("./model/DeleteInstanceRequest");
63
78
  const DeleteIpGroupRequest_1 = require("./model/DeleteIpGroupRequest");
79
+ const DeleteIpReputationRuleRequest_1 = require("./model/DeleteIpReputationRuleRequest");
64
80
  const DeletePolicyRequest_1 = require("./model/DeletePolicyRequest");
65
81
  const DeletePremiumHostRequest_1 = require("./model/DeletePremiumHostRequest");
66
82
  const DeletePrivacyRuleRequest_1 = require("./model/DeletePrivacyRuleRequest");
67
83
  const DeletePunishmentRuleRequest_1 = require("./model/DeletePunishmentRuleRequest");
84
+ const DeleteSecurityReportSubscriptionRequest_1 = require("./model/DeleteSecurityReportSubscriptionRequest");
68
85
  const DeleteValueListRequest_1 = require("./model/DeleteValueListRequest");
69
86
  const DeleteWhiteBlackIpRuleRequest_1 = require("./model/DeleteWhiteBlackIpRuleRequest");
70
87
  const ListAntiTamperPolicyRulesRequest_1 = require("./model/ListAntiTamperPolicyRulesRequest");
@@ -170,9 +187,11 @@ const UpdatePolicyRuleStatusRequest_1 = require("./model/UpdatePolicyRuleStatusR
170
187
  const UpdatePremiumHostAccessStatusRequest_1 = require("./model/UpdatePremiumHostAccessStatusRequest");
171
188
  const UpdatePremiumHostProtectStatusRequest_1 = require("./model/UpdatePremiumHostProtectStatusRequest");
172
189
  const UpdatePremiumHostRequest_1 = require("./model/UpdatePremiumHostRequest");
190
+ const UpdatePremiumInstanceProgressRequest_1 = require("./model/UpdatePremiumInstanceProgressRequest");
173
191
  const UpdatePremiumInstanceRequest_1 = require("./model/UpdatePremiumInstanceRequest");
174
192
  const UpdatePrivacyRuleRequest_1 = require("./model/UpdatePrivacyRuleRequest");
175
193
  const UpdatePunishmentRuleRequest_1 = require("./model/UpdatePunishmentRuleRequest");
194
+ const UpdateSecurityReportSubscriptionRequest_1 = require("./model/UpdateSecurityReportSubscriptionRequest");
176
195
  const UpdateValueListRequest_1 = require("./model/UpdateValueListRequest");
177
196
  const UpdateWhiteblackipRuleRequest_1 = require("./model/UpdateWhiteblackipRuleRequest");
178
197
  class WafClient {
@@ -394,6 +413,24 @@ class WafClient {
394
413
  options['responseHeaders'] = [''];
395
414
  return this.hcClient.sendRequest(options);
396
415
  }
416
+ /**
417
+ * 批量删除租户域名
418
+ *
419
+ * Please refer to HUAWEI cloud API Explorer for details.
420
+ *
421
+ * @summary 批量删除租户域名
422
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
423
+ * @param {BatchDeleteCompositeHostsRequestBody} batchDeleteCompositeHostsRequestBody 批量删除域名body
424
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
425
+ * @param {*} [options] Override http request option.
426
+ * @throws {RequiredError}
427
+ */
428
+ batchDeleteCompositeHosts(batchDeleteCompositeHostsRequest) {
429
+ const options = (0, exports.ParamCreater)().batchDeleteCompositeHosts(batchDeleteCompositeHostsRequest);
430
+ // @ts-ignore
431
+ options['responseHeaders'] = [''];
432
+ return this.hcClient.sendRequest(options);
433
+ }
397
434
  /**
398
435
  * 批量删除防护策略
399
436
  *
@@ -412,6 +449,177 @@ class WafClient {
412
449
  options['responseHeaders'] = [''];
413
450
  return this.hcClient.sendRequest(options);
414
451
  }
452
+ /**
453
+ * 批量删除规则
454
+ *
455
+ * Please refer to HUAWEI cloud API Explorer for details.
456
+ *
457
+ * @summary 批量删除规则
458
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
459
+ * @param {string} ruleType **参数解释:** 需要删除的规则类型,目前支持cc,custom,whiteblackip,geoip,ip-reputation,antitamper,antileakage,ignore,privacy **约束限制:** 不涉及 **取值范围:** - cc - custom - whiteblackip - geoip - ip-reputation - antitamper - antileakage - ignore - privacy **默认取值:** 不涉及
460
+ * @param {PolicyRuleIdRequestBody} [batchDeleteRulesRequestBody] **参数解释:** 批量删除防护规则body **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
461
+ * @param {*} [options] Override http request option.
462
+ * @throws {RequiredError}
463
+ */
464
+ batchDeleteRules(batchDeleteRulesRequest) {
465
+ const options = (0, exports.ParamCreater)().batchDeleteRules(batchDeleteRulesRequest);
466
+ // @ts-ignore
467
+ options['responseHeaders'] = [''];
468
+ return this.hcClient.sendRequest(options);
469
+ }
470
+ /**
471
+ * 批量修改防敏感信息泄露规则
472
+ *
473
+ * Please refer to HUAWEI cloud API Explorer for details.
474
+ *
475
+ * @summary 批量更新防敏感信息泄露规则
476
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
477
+ * @param {BatchUpdateAntileakageRuleRequestBody} [batchUpdateAntileakageRuleRequestBody] **参数解释:** 批量修改防敏感信息泄露规则body **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
478
+ * @param {*} [options] Override http request option.
479
+ * @throws {RequiredError}
480
+ */
481
+ batchUpdateAntileakageRules(batchUpdateAntileakageRulesRequest) {
482
+ const options = (0, exports.ParamCreater)().batchUpdateAntileakageRules(batchUpdateAntileakageRulesRequest);
483
+ // @ts-ignore
484
+ options['responseHeaders'] = [''];
485
+ return this.hcClient.sendRequest(options);
486
+ }
487
+ /**
488
+ * 批量修改地理位置访问控制规则
489
+ *
490
+ * Please refer to HUAWEI cloud API Explorer for details.
491
+ *
492
+ * @summary 批量更新网页防篡改规则
493
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
494
+ * @param {BatchUpdateAntiTamperRulesRequestBody} [batchUpdateAntiTamperRulesRequestBody] **参数解释:** 批量修改网页防篡改规则body **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
495
+ * @param {*} [options] Override http request option.
496
+ * @throws {RequiredError}
497
+ */
498
+ batchUpdateAntitamperRules(batchUpdateAntitamperRulesRequest) {
499
+ const options = (0, exports.ParamCreater)().batchUpdateAntitamperRules(batchUpdateAntitamperRulesRequest);
500
+ // @ts-ignore
501
+ options['responseHeaders'] = [''];
502
+ return this.hcClient.sendRequest(options);
503
+ }
504
+ /**
505
+ * 批量修改地理位置访问控制规则
506
+ *
507
+ * Please refer to HUAWEI cloud API Explorer for details.
508
+ *
509
+ * @summary 批量修改CC防护规则
510
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
511
+ * @param {BatchUpdateCcRulesRequestBody} [batchUpdateCcRulesRequestBody] **参数解释:** 批量修CC准防护问控制规则body **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
512
+ * @param {*} [options] Override http request option.
513
+ * @throws {RequiredError}
514
+ */
515
+ batchUpdateCcRules(batchUpdateCcRulesRequest) {
516
+ const options = (0, exports.ParamCreater)().batchUpdateCcRules(batchUpdateCcRulesRequest);
517
+ // @ts-ignore
518
+ options['responseHeaders'] = [''];
519
+ return this.hcClient.sendRequest(options);
520
+ }
521
+ /**
522
+ * 批量修改地理位置访问控制规则
523
+ *
524
+ * Please refer to HUAWEI cloud API Explorer for details.
525
+ *
526
+ * @summary 批量更新精准防护规则
527
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
528
+ * @param {BatchUpdateCustomRuleRequestBody} [batchUpdateCustomRuleResponseBody] **参数解释:** 批量修改精准防护控制规则body **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
529
+ * @param {*} [options] Override http request option.
530
+ * @throws {RequiredError}
531
+ */
532
+ batchUpdateCustomRules(batchUpdateCustomRulesRequest) {
533
+ const options = (0, exports.ParamCreater)().batchUpdateCustomRules(batchUpdateCustomRulesRequest);
534
+ // @ts-ignore
535
+ options['responseHeaders'] = [''];
536
+ return this.hcClient.sendRequest(options);
537
+ }
538
+ /**
539
+ * 批量修改地理位置访问控制规则
540
+ *
541
+ * Please refer to HUAWEI cloud API Explorer for details.
542
+ *
543
+ * @summary 批量修改地理位置访问控制规则
544
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
545
+ * @param {BatchUpdateGeoipRulesRequestBody} [batchUpdateGeoipRulesRequestBody] **参数解释:** 批量修改地理位置访问控制规则body **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
546
+ * @param {*} [options] Override http request option.
547
+ * @throws {RequiredError}
548
+ */
549
+ batchUpdateGeoipRules(batchUpdateGeoipRulesRequest) {
550
+ const options = (0, exports.ParamCreater)().batchUpdateGeoipRules(batchUpdateGeoipRulesRequest);
551
+ // @ts-ignore
552
+ options['responseHeaders'] = [''];
553
+ return this.hcClient.sendRequest(options);
554
+ }
555
+ /**
556
+ * 批量修改全局白名单规则
557
+ *
558
+ * Please refer to HUAWEI cloud API Explorer for details.
559
+ *
560
+ * @summary 批量更新全局白名单规则
561
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
562
+ * @param {BatchUpdateIgnoreRuleRequestBody} [batchUpdateIgnoreRuleRequestBody] **参数解释:** 批量修改全局白名单规则body **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
563
+ * @param {*} [options] Override http request option.
564
+ * @throws {RequiredError}
565
+ */
566
+ batchUpdateIgnoreRules(batchUpdateIgnoreRulesRequest) {
567
+ const options = (0, exports.ParamCreater)().batchUpdateIgnoreRules(batchUpdateIgnoreRulesRequest);
568
+ // @ts-ignore
569
+ options['responseHeaders'] = [''];
570
+ return this.hcClient.sendRequest(options);
571
+ }
572
+ /**
573
+ * 批量修改地理位置访问控制规则
574
+ *
575
+ * Please refer to HUAWEI cloud API Explorer for details.
576
+ *
577
+ * @summary 批量更新威胁情报规则
578
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
579
+ * @param {BatchUpdateIpReputationRuleRequestBody} [batchUpdateIpReputationRuleRequestBody] **参数解释:** 批量修改威胁情报访问控制规则body **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
580
+ * @param {*} [options] Override http request option.
581
+ * @throws {RequiredError}
582
+ */
583
+ batchUpdateIpReputationRules(batchUpdateIpReputationRulesRequest) {
584
+ const options = (0, exports.ParamCreater)().batchUpdateIpReputationRules(batchUpdateIpReputationRulesRequest);
585
+ // @ts-ignore
586
+ options['responseHeaders'] = [''];
587
+ return this.hcClient.sendRequest(options);
588
+ }
589
+ /**
590
+ * 批量修改全局白名单规则
591
+ *
592
+ * Please refer to HUAWEI cloud API Explorer for details.
593
+ *
594
+ * @summary 批量更新隐私屏蔽规则
595
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
596
+ * @param {BatchUpdatePrivacyRuleRequestBody} [batchUpdatePrivacyRuleRequestBody] **参数解释:** 批量修改隐私屏蔽规则body **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
597
+ * @param {*} [options] Override http request option.
598
+ * @throws {RequiredError}
599
+ */
600
+ batchUpdatePrivacyRules(batchUpdatePrivacyRulesRequest) {
601
+ const options = (0, exports.ParamCreater)().batchUpdatePrivacyRules(batchUpdatePrivacyRulesRequest);
602
+ // @ts-ignore
603
+ options['responseHeaders'] = [''];
604
+ return this.hcClient.sendRequest(options);
605
+ }
606
+ /**
607
+ * 批量修改地理位置访问控制规则
608
+ *
609
+ * Please refer to HUAWEI cloud API Explorer for details.
610
+ *
611
+ * @summary 批量更新黑白名单设置规则
612
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
613
+ * @param {BatchUpdateWhiteBlackIpRuleRequestBody} [batchUpdateWhiteBlackIpRuleRequestBody] **参数解释:** 批量修改黑白名单设置规则body **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
614
+ * @param {*} [options] Override http request option.
615
+ * @throws {RequiredError}
616
+ */
617
+ batchUpdateWhiteblackipRules(batchUpdateWhiteblackipRulesRequest) {
618
+ const options = (0, exports.ParamCreater)().batchUpdateWhiteblackipRules(batchUpdateWhiteblackipRulesRequest);
619
+ // @ts-ignore
620
+ options['responseHeaders'] = [''];
621
+ return this.hcClient.sendRequest(options);
622
+ }
415
623
  /**
416
624
  * 变更包周期云模式waf规格。注:
417
625
  * - 1.变更某产品规格的前提是必须已购买该产品
@@ -528,7 +736,7 @@ class WafClient {
528
736
  * @summary 查询威胁情报控制防护选项的详细信息
529
737
  * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
530
738
  * @param {string} lang **参数解释:** 语言的类型 - cn代表中文 - en代表英文 **约束限制:** 不涉及 **取值范围:** - cn - en **默认取值:** - cn
531
- * @param {string} type **参数解释:** 语言 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
739
+ * @param {string} type **参数解释:** 防护选项的详细信息的类型,当前仅支持“idc”。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
532
740
  * @param {*} [options] Override http request option.
533
741
  * @throws {RequiredError}
534
742
  */
@@ -607,6 +815,25 @@ class WafClient {
607
815
  options['responseHeaders'] = [''];
608
816
  return this.hcClient.sendRequest(options);
609
817
  }
818
+ /**
819
+ * 根据Id复制防护策略
820
+ *
821
+ * Please refer to HUAWEI cloud API Explorer for details.
822
+ *
823
+ * @summary 根据Id复制防护策略
824
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
825
+ * @param {string} srcPolicyId **参数解释:** 源策略id,可以通过 查询 防护策略列表(ListPolicy)接口获取 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
826
+ * @param {string} destPolicyName **参数解释:** 复制出的新策略名称,用于标识复制后的防护策略,需符合命名规范(如无特殊字符、长度限制等)。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
827
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
828
+ * @param {*} [options] Override http request option.
829
+ * @throws {RequiredError}
830
+ */
831
+ copyPolicyById(copyPolicyByIdRequest) {
832
+ const options = (0, exports.ParamCreater)().copyPolicyById(copyPolicyByIdRequest);
833
+ // @ts-ignore
834
+ options['responseHeaders'] = [''];
835
+ return this.hcClient.sendRequest(options);
836
+ }
610
837
  /**
611
838
  * 创建独享引擎的代理
612
839
  *
@@ -776,6 +1003,23 @@ class WafClient {
776
1003
  options['responseHeaders'] = [''];
777
1004
  return this.hcClient.sendRequest(options);
778
1005
  }
1006
+ /**
1007
+ * 下发自定义导出攻击事件的异步任务
1008
+ *
1009
+ * Please refer to HUAWEI cloud API Explorer for details.
1010
+ *
1011
+ * @summary 下发自定义导出攻击事件的异步任务
1012
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1013
+ * @param {AsyncJobReqBody} asyncJobReqBody **参数解释:** 下发自定义导出攻击事件的异步任务的请求体 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1014
+ * @param {*} [options] Override http request option.
1015
+ * @throws {RequiredError}
1016
+ */
1017
+ createEventExportJob(createEventExportJobRequest) {
1018
+ const options = (0, exports.ParamCreater)().createEventExportJob(createEventExportJobRequest);
1019
+ // @ts-ignore
1020
+ options['responseHeaders'] = [''];
1021
+ return this.hcClient.sendRequest(options);
1022
+ }
779
1023
  /**
780
1024
  * 创建地理位置控制规则
781
1025
  *
@@ -979,6 +1223,23 @@ class WafClient {
979
1223
  options['responseHeaders'] = [''];
980
1224
  return this.hcClient.sendRequest(options);
981
1225
  }
1226
+ /**
1227
+ * 创建安全报告订阅
1228
+ *
1229
+ * Please refer to HUAWEI cloud API Explorer for details.
1230
+ *
1231
+ * @summary 创建安全报告订阅
1232
+ * @param {string} contentType content-type
1233
+ * @param {CreateSecurityReportSubscriptionRequestBody} createSecurityReportSubscriptionRequest 创建安全报告订阅
1234
+ * @param {*} [options] Override http request option.
1235
+ * @throws {RequiredError}
1236
+ */
1237
+ createSecurityReportSubscription(createSecurityReportSubscriptionRequest) {
1238
+ const options = (0, exports.ParamCreater)().createSecurityReportSubscription(createSecurityReportSubscriptionRequest);
1239
+ // @ts-ignore
1240
+ options['responseHeaders'] = [''];
1241
+ return this.hcClient.sendRequest(options);
1242
+ }
982
1243
  /**
983
1244
  * 创建引用表,引用表能够被CC攻击防护规则和精准访问防护中的规则所引用。
984
1245
  *
@@ -1257,6 +1518,25 @@ class WafClient {
1257
1518
  options['responseHeaders'] = [''];
1258
1519
  return this.hcClient.sendRequest(options);
1259
1520
  }
1521
+ /**
1522
+ * 删除IP情报防护规则
1523
+ *
1524
+ * Please refer to HUAWEI cloud API Explorer for details.
1525
+ *
1526
+ * @summary 删除机房IP情报防护规则
1527
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1528
+ * @param {string} policyId **参数解释:** 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1529
+ * @param {string} ruleId **参数解释:** 机房IP情报访问控制规则id,通过\"查询威胁情报规则列表\"接口获取 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1530
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
1531
+ * @param {*} [options] Override http request option.
1532
+ * @throws {RequiredError}
1533
+ */
1534
+ deleteIpReputationRule(deleteIpReputationRuleRequest) {
1535
+ const options = (0, exports.ParamCreater)().deleteIpReputationRule(deleteIpReputationRuleRequest);
1536
+ // @ts-ignore
1537
+ options['responseHeaders'] = [''];
1538
+ return this.hcClient.sendRequest(options);
1539
+ }
1260
1540
  /**
1261
1541
  * 删除防护策略,若策略正在使用,则需要先接解除域名与策略的绑定关系才能删除策略。
1262
1542
  *
@@ -1332,6 +1612,23 @@ class WafClient {
1332
1612
  options['responseHeaders'] = [''];
1333
1613
  return this.hcClient.sendRequest(options);
1334
1614
  }
1615
+ /**
1616
+ * 删除安全报告订阅
1617
+ *
1618
+ * Please refer to HUAWEI cloud API Explorer for details.
1619
+ *
1620
+ * @summary 删除安全报告订阅
1621
+ * @param {string} subscriptionId **参数解释:** 需要删除的订阅id,从“查询安全报告订阅列表”中获取 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1622
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1623
+ * @param {*} [options] Override http request option.
1624
+ * @throws {RequiredError}
1625
+ */
1626
+ deleteSecurityReportSubscription(deleteSecurityReportSubscriptionRequest) {
1627
+ const options = (0, exports.ParamCreater)().deleteSecurityReportSubscription(deleteSecurityReportSubscriptionRequest);
1628
+ // @ts-ignore
1629
+ options['responseHeaders'] = [''];
1630
+ return this.hcClient.sendRequest(options);
1631
+ }
1335
1632
  /**
1336
1633
  * 删除引用表
1337
1634
  *
@@ -3395,6 +3692,24 @@ class WafClient {
3395
3692
  options['responseHeaders'] = [''];
3396
3693
  return this.hcClient.sendRequest(options);
3397
3694
  }
3695
+ /**
3696
+ * 返回独享接入进度
3697
+ *
3698
+ * Please refer to HUAWEI cloud API Explorer for details.
3699
+ *
3700
+ * @summary 修改独享域名接入进度
3701
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
3702
+ * @param {string} hostId **参数解释:** 独享模式域名Id,通过 查询独享模式域名列表(ListPremiumHost) 接口获取 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
3703
+ * @param {AccessProgress} body **参数解释:** 修改域名请求接入进度body **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
3704
+ * @param {*} [options] Override http request option.
3705
+ * @throws {RequiredError}
3706
+ */
3707
+ updatePremiumInstanceProgress(updatePremiumInstanceProgressRequest) {
3708
+ const options = (0, exports.ParamCreater)().updatePremiumInstanceProgress(updatePremiumInstanceProgressRequest);
3709
+ // @ts-ignore
3710
+ options['responseHeaders'] = [''];
3711
+ return this.hcClient.sendRequest(options);
3712
+ }
3398
3713
  /**
3399
3714
  * 更新隐私屏蔽防护规则
3400
3715
  *
@@ -3435,6 +3750,24 @@ class WafClient {
3435
3750
  options['responseHeaders'] = [''];
3436
3751
  return this.hcClient.sendRequest(options);
3437
3752
  }
3753
+ /**
3754
+ * 修改安全报告的订阅
3755
+ *
3756
+ * Please refer to HUAWEI cloud API Explorer for details.
3757
+ *
3758
+ * @summary 修改安全报告的订阅
3759
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
3760
+ * @param {string} subscriptionId **参数解释:** 需要删除的订阅id,从“查询安全报告订阅列表”中获取 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
3761
+ * @param {UpdateSecurityReportSubscriptionRequestBody} updateDemoInfoRequestBody 修改安全报告订阅请求体
3762
+ * @param {*} [options] Override http request option.
3763
+ * @throws {RequiredError}
3764
+ */
3765
+ updateSecurityReportSubscription(updateSecurityReportSubscriptionRequest) {
3766
+ const options = (0, exports.ParamCreater)().updateSecurityReportSubscription(updateSecurityReportSubscriptionRequest);
3767
+ // @ts-ignore
3768
+ options['responseHeaders'] = [''];
3769
+ return this.hcClient.sendRequest(options);
3770
+ }
3438
3771
  /**
3439
3772
  * 修改引用表
3440
3773
  *
@@ -3474,6 +3807,23 @@ class WafClient {
3474
3807
  options['responseHeaders'] = [''];
3475
3808
  return this.hcClient.sendRequest(options);
3476
3809
  }
3810
+ /**
3811
+ * 查询用户托管在云解析上的域名
3812
+ *
3813
+ * Please refer to HUAWEI cloud API Explorer for details.
3814
+ *
3815
+ * @summary 查询用户托管在云解析上的域名
3816
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
3817
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
3818
+ * @param {*} [options] Override http request option.
3819
+ * @throws {RequiredError}
3820
+ */
3821
+ confirmDnsDomain(confirmDnsDomainRequest) {
3822
+ const options = (0, exports.ParamCreater)().confirmDnsDomain(confirmDnsDomainRequest);
3823
+ // @ts-ignore
3824
+ options['responseHeaders'] = [''];
3825
+ return this.hcClient.sendRequest(options);
3826
+ }
3477
3827
  /**
3478
3828
  * 快速接入,直接去修改用户的DNS记录,使域名快速接入WAF
3479
3829
  *
@@ -4093,14 +4443,14 @@ const ParamCreater = function () {
4093
4443
  return options;
4094
4444
  },
4095
4445
  /**
4096
- * 批量删除防护策略
4446
+ * 批量删除租户域名
4097
4447
  *
4098
4448
  * Please refer to HUAWEI cloud API Explorer for details.
4099
4449
  */
4100
- batchDeletePolicies(batchDeletePoliciesRequest) {
4450
+ batchDeleteCompositeHosts(batchDeleteCompositeHostsRequest) {
4101
4451
  const options = {
4102
4452
  method: "POST",
4103
- url: "/v1/{project_id}/waf/policies/batch-delete",
4453
+ url: "/v1/{project_id}/composite-waf/hosts/batch-delete",
4104
4454
  contentType: "application/json",
4105
4455
  queryParams: {},
4106
4456
  pathParams: {},
@@ -4112,16 +4462,16 @@ const ParamCreater = function () {
4112
4462
  let body;
4113
4463
  let contentType;
4114
4464
  let enterpriseProjectId;
4115
- if (batchDeletePoliciesRequest !== null && batchDeletePoliciesRequest !== undefined) {
4116
- if (batchDeletePoliciesRequest instanceof BatchDeletePoliciesRequest_1.BatchDeletePoliciesRequest) {
4117
- contentType = batchDeletePoliciesRequest.contentType;
4118
- body = batchDeletePoliciesRequest.body;
4119
- enterpriseProjectId = batchDeletePoliciesRequest.enterpriseProjectId;
4465
+ if (batchDeleteCompositeHostsRequest !== null && batchDeleteCompositeHostsRequest !== undefined) {
4466
+ if (batchDeleteCompositeHostsRequest instanceof BatchDeleteCompositeHostsRequest_1.BatchDeleteCompositeHostsRequest) {
4467
+ contentType = batchDeleteCompositeHostsRequest.contentType;
4468
+ body = batchDeleteCompositeHostsRequest.body;
4469
+ enterpriseProjectId = batchDeleteCompositeHostsRequest.enterpriseProjectId;
4120
4470
  }
4121
4471
  else {
4122
- contentType = batchDeletePoliciesRequest['Content-Type'];
4123
- body = batchDeletePoliciesRequest['body'];
4124
- enterpriseProjectId = batchDeletePoliciesRequest['enterprise_project_id'];
4472
+ contentType = batchDeleteCompositeHostsRequest['Content-Type'];
4473
+ body = batchDeleteCompositeHostsRequest['body'];
4474
+ enterpriseProjectId = batchDeleteCompositeHostsRequest['enterprise_project_id'];
4125
4475
  }
4126
4476
  }
4127
4477
  if (body === null || body === undefined) {
@@ -4139,6 +4489,420 @@ const ParamCreater = function () {
4139
4489
  options.headers = localVarHeaderParameter;
4140
4490
  return options;
4141
4491
  },
4492
+ /**
4493
+ * 批量删除防护策略
4494
+ *
4495
+ * Please refer to HUAWEI cloud API Explorer for details.
4496
+ */
4497
+ batchDeletePolicies(batchDeletePoliciesRequest) {
4498
+ const options = {
4499
+ method: "POST",
4500
+ url: "/v1/{project_id}/waf/policies/batch-delete",
4501
+ contentType: "application/json",
4502
+ queryParams: {},
4503
+ pathParams: {},
4504
+ headers: {},
4505
+ data: {}
4506
+ };
4507
+ const localVarHeaderParameter = {};
4508
+ const localVarQueryParameter = {};
4509
+ let body;
4510
+ let contentType;
4511
+ let enterpriseProjectId;
4512
+ if (batchDeletePoliciesRequest !== null && batchDeletePoliciesRequest !== undefined) {
4513
+ if (batchDeletePoliciesRequest instanceof BatchDeletePoliciesRequest_1.BatchDeletePoliciesRequest) {
4514
+ contentType = batchDeletePoliciesRequest.contentType;
4515
+ body = batchDeletePoliciesRequest.body;
4516
+ enterpriseProjectId = batchDeletePoliciesRequest.enterpriseProjectId;
4517
+ }
4518
+ else {
4519
+ contentType = batchDeletePoliciesRequest['Content-Type'];
4520
+ body = batchDeletePoliciesRequest['body'];
4521
+ enterpriseProjectId = batchDeletePoliciesRequest['enterprise_project_id'];
4522
+ }
4523
+ }
4524
+ if (body === null || body === undefined) {
4525
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
4526
+ }
4527
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
4528
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
4529
+ }
4530
+ if (contentType !== undefined && contentType !== null) {
4531
+ localVarHeaderParameter['Content-Type'] = String(contentType);
4532
+ }
4533
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4534
+ options.data = body !== undefined ? body : {};
4535
+ options.queryParams = localVarQueryParameter;
4536
+ options.headers = localVarHeaderParameter;
4537
+ return options;
4538
+ },
4539
+ /**
4540
+ * 批量删除规则
4541
+ *
4542
+ * Please refer to HUAWEI cloud API Explorer for details.
4543
+ */
4544
+ batchDeleteRules(batchDeleteRulesRequest) {
4545
+ const options = {
4546
+ method: "POST",
4547
+ url: "/v1/{project_id}/waf/rule/{rule_type}/batch-delete",
4548
+ contentType: "application/json",
4549
+ queryParams: {},
4550
+ pathParams: {},
4551
+ headers: {},
4552
+ data: {}
4553
+ };
4554
+ const localVarHeaderParameter = {};
4555
+ let body;
4556
+ let contentType;
4557
+ let ruleType;
4558
+ if (batchDeleteRulesRequest !== null && batchDeleteRulesRequest !== undefined) {
4559
+ if (batchDeleteRulesRequest instanceof BatchDeleteRulesRequest_1.BatchDeleteRulesRequest) {
4560
+ contentType = batchDeleteRulesRequest.contentType;
4561
+ ruleType = batchDeleteRulesRequest.ruleType;
4562
+ body = batchDeleteRulesRequest.body;
4563
+ }
4564
+ else {
4565
+ contentType = batchDeleteRulesRequest['Content-Type'];
4566
+ ruleType = batchDeleteRulesRequest['rule_type'];
4567
+ body = batchDeleteRulesRequest['body'];
4568
+ }
4569
+ }
4570
+ if (ruleType === null || ruleType === undefined) {
4571
+ throw new RequiredError('ruleType', 'Required parameter ruleType was null or undefined when calling batchDeleteRules.');
4572
+ }
4573
+ if (contentType !== undefined && contentType !== null) {
4574
+ localVarHeaderParameter['Content-Type'] = String(contentType);
4575
+ }
4576
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4577
+ options.data = body !== undefined ? body : {};
4578
+ options.pathParams = { 'rule_type': ruleType, };
4579
+ options.headers = localVarHeaderParameter;
4580
+ return options;
4581
+ },
4582
+ /**
4583
+ * 批量修改防敏感信息泄露规则
4584
+ *
4585
+ * Please refer to HUAWEI cloud API Explorer for details.
4586
+ */
4587
+ batchUpdateAntileakageRules(batchUpdateAntileakageRulesRequest) {
4588
+ const options = {
4589
+ method: "POST",
4590
+ url: "/v1/{project_id}/waf/rule/antileakage/batch-update",
4591
+ contentType: "application/json",
4592
+ queryParams: {},
4593
+ pathParams: {},
4594
+ headers: {},
4595
+ data: {}
4596
+ };
4597
+ const localVarHeaderParameter = {};
4598
+ let body;
4599
+ let contentType;
4600
+ if (batchUpdateAntileakageRulesRequest !== null && batchUpdateAntileakageRulesRequest !== undefined) {
4601
+ if (batchUpdateAntileakageRulesRequest instanceof BatchUpdateAntileakageRulesRequest_1.BatchUpdateAntileakageRulesRequest) {
4602
+ contentType = batchUpdateAntileakageRulesRequest.contentType;
4603
+ body = batchUpdateAntileakageRulesRequest.body;
4604
+ }
4605
+ else {
4606
+ contentType = batchUpdateAntileakageRulesRequest['Content-Type'];
4607
+ body = batchUpdateAntileakageRulesRequest['body'];
4608
+ }
4609
+ }
4610
+ if (contentType !== undefined && contentType !== null) {
4611
+ localVarHeaderParameter['Content-Type'] = String(contentType);
4612
+ }
4613
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4614
+ options.data = body !== undefined ? body : {};
4615
+ options.headers = localVarHeaderParameter;
4616
+ return options;
4617
+ },
4618
+ /**
4619
+ * 批量修改地理位置访问控制规则
4620
+ *
4621
+ * Please refer to HUAWEI cloud API Explorer for details.
4622
+ */
4623
+ batchUpdateAntitamperRules(batchUpdateAntitamperRulesRequest) {
4624
+ const options = {
4625
+ method: "POST",
4626
+ url: "/v1/{project_id}/waf/rule/antitamper/batch-update",
4627
+ contentType: "application/json",
4628
+ queryParams: {},
4629
+ pathParams: {},
4630
+ headers: {},
4631
+ data: {}
4632
+ };
4633
+ const localVarHeaderParameter = {};
4634
+ let body;
4635
+ let contentType;
4636
+ if (batchUpdateAntitamperRulesRequest !== null && batchUpdateAntitamperRulesRequest !== undefined) {
4637
+ if (batchUpdateAntitamperRulesRequest instanceof BatchUpdateAntitamperRulesRequest_1.BatchUpdateAntitamperRulesRequest) {
4638
+ contentType = batchUpdateAntitamperRulesRequest.contentType;
4639
+ body = batchUpdateAntitamperRulesRequest.body;
4640
+ }
4641
+ else {
4642
+ contentType = batchUpdateAntitamperRulesRequest['Content-Type'];
4643
+ body = batchUpdateAntitamperRulesRequest['body'];
4644
+ }
4645
+ }
4646
+ if (contentType !== undefined && contentType !== null) {
4647
+ localVarHeaderParameter['Content-Type'] = String(contentType);
4648
+ }
4649
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4650
+ options.data = body !== undefined ? body : {};
4651
+ options.headers = localVarHeaderParameter;
4652
+ return options;
4653
+ },
4654
+ /**
4655
+ * 批量修改地理位置访问控制规则
4656
+ *
4657
+ * Please refer to HUAWEI cloud API Explorer for details.
4658
+ */
4659
+ batchUpdateCcRules(batchUpdateCcRulesRequest) {
4660
+ const options = {
4661
+ method: "POST",
4662
+ url: "/v1/{project_id}/waf/rule/cc/batch-update",
4663
+ contentType: "application/json",
4664
+ queryParams: {},
4665
+ pathParams: {},
4666
+ headers: {},
4667
+ data: {}
4668
+ };
4669
+ const localVarHeaderParameter = {};
4670
+ let body;
4671
+ let contentType;
4672
+ if (batchUpdateCcRulesRequest !== null && batchUpdateCcRulesRequest !== undefined) {
4673
+ if (batchUpdateCcRulesRequest instanceof BatchUpdateCcRulesRequest_1.BatchUpdateCcRulesRequest) {
4674
+ contentType = batchUpdateCcRulesRequest.contentType;
4675
+ body = batchUpdateCcRulesRequest.body;
4676
+ }
4677
+ else {
4678
+ contentType = batchUpdateCcRulesRequest['Content-Type'];
4679
+ body = batchUpdateCcRulesRequest['body'];
4680
+ }
4681
+ }
4682
+ if (contentType !== undefined && contentType !== null) {
4683
+ localVarHeaderParameter['Content-Type'] = String(contentType);
4684
+ }
4685
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4686
+ options.data = body !== undefined ? body : {};
4687
+ options.headers = localVarHeaderParameter;
4688
+ return options;
4689
+ },
4690
+ /**
4691
+ * 批量修改地理位置访问控制规则
4692
+ *
4693
+ * Please refer to HUAWEI cloud API Explorer for details.
4694
+ */
4695
+ batchUpdateCustomRules(batchUpdateCustomRulesRequest) {
4696
+ const options = {
4697
+ method: "POST",
4698
+ url: "/v1/{project_id}/waf/rule/custom/batch-update",
4699
+ contentType: "application/json",
4700
+ queryParams: {},
4701
+ pathParams: {},
4702
+ headers: {},
4703
+ data: {}
4704
+ };
4705
+ const localVarHeaderParameter = {};
4706
+ let body;
4707
+ let contentType;
4708
+ if (batchUpdateCustomRulesRequest !== null && batchUpdateCustomRulesRequest !== undefined) {
4709
+ if (batchUpdateCustomRulesRequest instanceof BatchUpdateCustomRulesRequest_1.BatchUpdateCustomRulesRequest) {
4710
+ contentType = batchUpdateCustomRulesRequest.contentType;
4711
+ body = batchUpdateCustomRulesRequest.body;
4712
+ }
4713
+ else {
4714
+ contentType = batchUpdateCustomRulesRequest['Content-Type'];
4715
+ body = batchUpdateCustomRulesRequest['body'];
4716
+ }
4717
+ }
4718
+ if (contentType !== undefined && contentType !== null) {
4719
+ localVarHeaderParameter['Content-Type'] = String(contentType);
4720
+ }
4721
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4722
+ options.data = body !== undefined ? body : {};
4723
+ options.headers = localVarHeaderParameter;
4724
+ return options;
4725
+ },
4726
+ /**
4727
+ * 批量修改地理位置访问控制规则
4728
+ *
4729
+ * Please refer to HUAWEI cloud API Explorer for details.
4730
+ */
4731
+ batchUpdateGeoipRules(batchUpdateGeoipRulesRequest) {
4732
+ const options = {
4733
+ method: "POST",
4734
+ url: "/v1/{project_id}/waf/rule/geoip/batch-update",
4735
+ contentType: "application/json",
4736
+ queryParams: {},
4737
+ pathParams: {},
4738
+ headers: {},
4739
+ data: {}
4740
+ };
4741
+ const localVarHeaderParameter = {};
4742
+ let body;
4743
+ let contentType;
4744
+ if (batchUpdateGeoipRulesRequest !== null && batchUpdateGeoipRulesRequest !== undefined) {
4745
+ if (batchUpdateGeoipRulesRequest instanceof BatchUpdateGeoipRulesRequest_1.BatchUpdateGeoipRulesRequest) {
4746
+ contentType = batchUpdateGeoipRulesRequest.contentType;
4747
+ body = batchUpdateGeoipRulesRequest.body;
4748
+ }
4749
+ else {
4750
+ contentType = batchUpdateGeoipRulesRequest['Content-Type'];
4751
+ body = batchUpdateGeoipRulesRequest['body'];
4752
+ }
4753
+ }
4754
+ if (contentType !== undefined && contentType !== null) {
4755
+ localVarHeaderParameter['Content-Type'] = String(contentType);
4756
+ }
4757
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4758
+ options.data = body !== undefined ? body : {};
4759
+ options.headers = localVarHeaderParameter;
4760
+ return options;
4761
+ },
4762
+ /**
4763
+ * 批量修改全局白名单规则
4764
+ *
4765
+ * Please refer to HUAWEI cloud API Explorer for details.
4766
+ */
4767
+ batchUpdateIgnoreRules(batchUpdateIgnoreRulesRequest) {
4768
+ const options = {
4769
+ method: "POST",
4770
+ url: "/v1/{project_id}/waf/rule/ignore/batch-update",
4771
+ contentType: "application/json",
4772
+ queryParams: {},
4773
+ pathParams: {},
4774
+ headers: {},
4775
+ data: {}
4776
+ };
4777
+ const localVarHeaderParameter = {};
4778
+ let body;
4779
+ let contentType;
4780
+ if (batchUpdateIgnoreRulesRequest !== null && batchUpdateIgnoreRulesRequest !== undefined) {
4781
+ if (batchUpdateIgnoreRulesRequest instanceof BatchUpdateIgnoreRulesRequest_1.BatchUpdateIgnoreRulesRequest) {
4782
+ contentType = batchUpdateIgnoreRulesRequest.contentType;
4783
+ body = batchUpdateIgnoreRulesRequest.body;
4784
+ }
4785
+ else {
4786
+ contentType = batchUpdateIgnoreRulesRequest['Content-Type'];
4787
+ body = batchUpdateIgnoreRulesRequest['body'];
4788
+ }
4789
+ }
4790
+ if (contentType !== undefined && contentType !== null) {
4791
+ localVarHeaderParameter['Content-Type'] = String(contentType);
4792
+ }
4793
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4794
+ options.data = body !== undefined ? body : {};
4795
+ options.headers = localVarHeaderParameter;
4796
+ return options;
4797
+ },
4798
+ /**
4799
+ * 批量修改地理位置访问控制规则
4800
+ *
4801
+ * Please refer to HUAWEI cloud API Explorer for details.
4802
+ */
4803
+ batchUpdateIpReputationRules(batchUpdateIpReputationRulesRequest) {
4804
+ const options = {
4805
+ method: "POST",
4806
+ url: "/v1/{project_id}/waf/rule/ip-reputation/batch-update",
4807
+ contentType: "application/json",
4808
+ queryParams: {},
4809
+ pathParams: {},
4810
+ headers: {},
4811
+ data: {}
4812
+ };
4813
+ const localVarHeaderParameter = {};
4814
+ let body;
4815
+ let contentType;
4816
+ if (batchUpdateIpReputationRulesRequest !== null && batchUpdateIpReputationRulesRequest !== undefined) {
4817
+ if (batchUpdateIpReputationRulesRequest instanceof BatchUpdateIpReputationRulesRequest_1.BatchUpdateIpReputationRulesRequest) {
4818
+ contentType = batchUpdateIpReputationRulesRequest.contentType;
4819
+ body = batchUpdateIpReputationRulesRequest.body;
4820
+ }
4821
+ else {
4822
+ contentType = batchUpdateIpReputationRulesRequest['Content-Type'];
4823
+ body = batchUpdateIpReputationRulesRequest['body'];
4824
+ }
4825
+ }
4826
+ if (contentType !== undefined && contentType !== null) {
4827
+ localVarHeaderParameter['Content-Type'] = String(contentType);
4828
+ }
4829
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4830
+ options.data = body !== undefined ? body : {};
4831
+ options.headers = localVarHeaderParameter;
4832
+ return options;
4833
+ },
4834
+ /**
4835
+ * 批量修改全局白名单规则
4836
+ *
4837
+ * Please refer to HUAWEI cloud API Explorer for details.
4838
+ */
4839
+ batchUpdatePrivacyRules(batchUpdatePrivacyRulesRequest) {
4840
+ const options = {
4841
+ method: "POST",
4842
+ url: "/v1/{project_id}/waf/rule/privacy/batch-update",
4843
+ contentType: "application/json",
4844
+ queryParams: {},
4845
+ pathParams: {},
4846
+ headers: {},
4847
+ data: {}
4848
+ };
4849
+ const localVarHeaderParameter = {};
4850
+ let body;
4851
+ let contentType;
4852
+ if (batchUpdatePrivacyRulesRequest !== null && batchUpdatePrivacyRulesRequest !== undefined) {
4853
+ if (batchUpdatePrivacyRulesRequest instanceof BatchUpdatePrivacyRulesRequest_1.BatchUpdatePrivacyRulesRequest) {
4854
+ contentType = batchUpdatePrivacyRulesRequest.contentType;
4855
+ body = batchUpdatePrivacyRulesRequest.body;
4856
+ }
4857
+ else {
4858
+ contentType = batchUpdatePrivacyRulesRequest['Content-Type'];
4859
+ body = batchUpdatePrivacyRulesRequest['body'];
4860
+ }
4861
+ }
4862
+ if (contentType !== undefined && contentType !== null) {
4863
+ localVarHeaderParameter['Content-Type'] = String(contentType);
4864
+ }
4865
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4866
+ options.data = body !== undefined ? body : {};
4867
+ options.headers = localVarHeaderParameter;
4868
+ return options;
4869
+ },
4870
+ /**
4871
+ * 批量修改地理位置访问控制规则
4872
+ *
4873
+ * Please refer to HUAWEI cloud API Explorer for details.
4874
+ */
4875
+ batchUpdateWhiteblackipRules(batchUpdateWhiteblackipRulesRequest) {
4876
+ const options = {
4877
+ method: "POST",
4878
+ url: "/v1/{project_id}/waf/rule/whiteblackip/batch-update",
4879
+ contentType: "application/json",
4880
+ queryParams: {},
4881
+ pathParams: {},
4882
+ headers: {},
4883
+ data: {}
4884
+ };
4885
+ const localVarHeaderParameter = {};
4886
+ let body;
4887
+ let contentType;
4888
+ if (batchUpdateWhiteblackipRulesRequest !== null && batchUpdateWhiteblackipRulesRequest !== undefined) {
4889
+ if (batchUpdateWhiteblackipRulesRequest instanceof BatchUpdateWhiteblackipRulesRequest_1.BatchUpdateWhiteblackipRulesRequest) {
4890
+ contentType = batchUpdateWhiteblackipRulesRequest.contentType;
4891
+ body = batchUpdateWhiteblackipRulesRequest.body;
4892
+ }
4893
+ else {
4894
+ contentType = batchUpdateWhiteblackipRulesRequest['Content-Type'];
4895
+ body = batchUpdateWhiteblackipRulesRequest['body'];
4896
+ }
4897
+ }
4898
+ if (contentType !== undefined && contentType !== null) {
4899
+ localVarHeaderParameter['Content-Type'] = String(contentType);
4900
+ }
4901
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4902
+ options.data = body !== undefined ? body : {};
4903
+ options.headers = localVarHeaderParameter;
4904
+ return options;
4905
+ },
4142
4906
  /**
4143
4907
  * 变更包周期云模式waf规格。注:
4144
4908
  * - 1.变更某产品规格的前提是必须已购买该产品
@@ -4600,6 +5364,60 @@ const ParamCreater = function () {
4600
5364
  options.headers = localVarHeaderParameter;
4601
5365
  return options;
4602
5366
  },
5367
+ /**
5368
+ * 根据Id复制防护策略
5369
+ *
5370
+ * Please refer to HUAWEI cloud API Explorer for details.
5371
+ */
5372
+ copyPolicyById(copyPolicyByIdRequest) {
5373
+ const options = {
5374
+ method: "POST",
5375
+ url: "/v1/{project_id}/waf/policies/{src_policy_id}/copy",
5376
+ contentType: "application/json",
5377
+ queryParams: {},
5378
+ pathParams: {},
5379
+ headers: {}
5380
+ };
5381
+ const localVarHeaderParameter = {};
5382
+ const localVarQueryParameter = {};
5383
+ let contentType;
5384
+ let srcPolicyId;
5385
+ let destPolicyName;
5386
+ let enterpriseProjectId;
5387
+ if (copyPolicyByIdRequest !== null && copyPolicyByIdRequest !== undefined) {
5388
+ if (copyPolicyByIdRequest instanceof CopyPolicyByIdRequest_1.CopyPolicyByIdRequest) {
5389
+ contentType = copyPolicyByIdRequest.contentType;
5390
+ srcPolicyId = copyPolicyByIdRequest.srcPolicyId;
5391
+ destPolicyName = copyPolicyByIdRequest.destPolicyName;
5392
+ enterpriseProjectId = copyPolicyByIdRequest.enterpriseProjectId;
5393
+ }
5394
+ else {
5395
+ contentType = copyPolicyByIdRequest['Content-Type'];
5396
+ srcPolicyId = copyPolicyByIdRequest['src_policy_id'];
5397
+ destPolicyName = copyPolicyByIdRequest['dest_policy_name'];
5398
+ enterpriseProjectId = copyPolicyByIdRequest['enterprise_project_id'];
5399
+ }
5400
+ }
5401
+ if (srcPolicyId === null || srcPolicyId === undefined) {
5402
+ throw new RequiredError('srcPolicyId', 'Required parameter srcPolicyId was null or undefined when calling copyPolicyById.');
5403
+ }
5404
+ if (destPolicyName === null || destPolicyName === undefined) {
5405
+ throw new RequiredError('destPolicyName', 'Required parameter destPolicyName was null or undefined when calling copyPolicyById.');
5406
+ }
5407
+ if (destPolicyName !== null && destPolicyName !== undefined) {
5408
+ localVarQueryParameter['dest_policy_name'] = destPolicyName;
5409
+ }
5410
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
5411
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
5412
+ }
5413
+ if (contentType !== undefined && contentType !== null) {
5414
+ localVarHeaderParameter['Content-Type'] = String(contentType);
5415
+ }
5416
+ options.queryParams = localVarQueryParameter;
5417
+ options.pathParams = { 'src_policy_id': srcPolicyId, };
5418
+ options.headers = localVarHeaderParameter;
5419
+ return options;
5420
+ },
4603
5421
  /**
4604
5422
  * 创建独享引擎的代理
4605
5423
  *
@@ -5068,6 +5886,45 @@ const ParamCreater = function () {
5068
5886
  options.headers = localVarHeaderParameter;
5069
5887
  return options;
5070
5888
  },
5889
+ /**
5890
+ * 下发自定义导出攻击事件的异步任务
5891
+ *
5892
+ * Please refer to HUAWEI cloud API Explorer for details.
5893
+ */
5894
+ createEventExportJob(createEventExportJobRequest) {
5895
+ const options = {
5896
+ method: "POST",
5897
+ url: "/v1/{project_id}/waf/event/job/export",
5898
+ contentType: "application/json",
5899
+ queryParams: {},
5900
+ pathParams: {},
5901
+ headers: {},
5902
+ data: {}
5903
+ };
5904
+ const localVarHeaderParameter = {};
5905
+ let body;
5906
+ let contentType;
5907
+ if (createEventExportJobRequest !== null && createEventExportJobRequest !== undefined) {
5908
+ if (createEventExportJobRequest instanceof CreateEventExportJobRequest_1.CreateEventExportJobRequest) {
5909
+ contentType = createEventExportJobRequest.contentType;
5910
+ body = createEventExportJobRequest.body;
5911
+ }
5912
+ else {
5913
+ contentType = createEventExportJobRequest['Content-Type'];
5914
+ body = createEventExportJobRequest['body'];
5915
+ }
5916
+ }
5917
+ if (body === null || body === undefined) {
5918
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
5919
+ }
5920
+ if (contentType !== undefined && contentType !== null) {
5921
+ localVarHeaderParameter['Content-Type'] = String(contentType);
5922
+ }
5923
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5924
+ options.data = body !== undefined ? body : {};
5925
+ options.headers = localVarHeaderParameter;
5926
+ return options;
5927
+ },
5071
5928
  /**
5072
5929
  * 创建地理位置控制规则
5073
5930
  *
@@ -5617,6 +6474,45 @@ const ParamCreater = function () {
5617
6474
  options.headers = localVarHeaderParameter;
5618
6475
  return options;
5619
6476
  },
6477
+ /**
6478
+ * 创建安全报告订阅
6479
+ *
6480
+ * Please refer to HUAWEI cloud API Explorer for details.
6481
+ */
6482
+ createSecurityReportSubscription(createSecurityReportSubscriptionRequest) {
6483
+ const options = {
6484
+ method: "POST",
6485
+ url: "/v1/{project_id}/waf/security-report/subscriptions",
6486
+ contentType: "application/json",
6487
+ queryParams: {},
6488
+ pathParams: {},
6489
+ headers: {},
6490
+ data: {}
6491
+ };
6492
+ const localVarHeaderParameter = {};
6493
+ let body;
6494
+ let contentType;
6495
+ if (createSecurityReportSubscriptionRequest !== null && createSecurityReportSubscriptionRequest !== undefined) {
6496
+ if (createSecurityReportSubscriptionRequest instanceof CreateSecurityReportSubscriptionRequest_1.CreateSecurityReportSubscriptionRequest) {
6497
+ contentType = createSecurityReportSubscriptionRequest.contentType;
6498
+ body = createSecurityReportSubscriptionRequest.body;
6499
+ }
6500
+ else {
6501
+ contentType = createSecurityReportSubscriptionRequest['Content-Type'];
6502
+ body = createSecurityReportSubscriptionRequest['body'];
6503
+ }
6504
+ }
6505
+ if (body === null || body === undefined) {
6506
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
6507
+ }
6508
+ if (contentType !== undefined && contentType !== null) {
6509
+ localVarHeaderParameter['Content-Type'] = String(contentType);
6510
+ }
6511
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6512
+ options.data = body !== undefined ? body : {};
6513
+ options.headers = localVarHeaderParameter;
6514
+ return options;
6515
+ },
5620
6516
  /**
5621
6517
  * 创建引用表,引用表能够被CC攻击防护规则和精准访问防护中的规则所引用。
5622
6518
  *
@@ -6343,6 +7239,57 @@ const ParamCreater = function () {
6343
7239
  options.headers = localVarHeaderParameter;
6344
7240
  return options;
6345
7241
  },
7242
+ /**
7243
+ * 删除IP情报防护规则
7244
+ *
7245
+ * Please refer to HUAWEI cloud API Explorer for details.
7246
+ */
7247
+ deleteIpReputationRule(deleteIpReputationRuleRequest) {
7248
+ const options = {
7249
+ method: "DELETE",
7250
+ url: "/v1/{project_id}/waf/policy/{policy_id}/ip-reputation/{rule_id}",
7251
+ contentType: "application/json",
7252
+ queryParams: {},
7253
+ pathParams: {},
7254
+ headers: {}
7255
+ };
7256
+ const localVarHeaderParameter = {};
7257
+ const localVarQueryParameter = {};
7258
+ let contentType;
7259
+ let policyId;
7260
+ let ruleId;
7261
+ let enterpriseProjectId;
7262
+ if (deleteIpReputationRuleRequest !== null && deleteIpReputationRuleRequest !== undefined) {
7263
+ if (deleteIpReputationRuleRequest instanceof DeleteIpReputationRuleRequest_1.DeleteIpReputationRuleRequest) {
7264
+ contentType = deleteIpReputationRuleRequest.contentType;
7265
+ policyId = deleteIpReputationRuleRequest.policyId;
7266
+ ruleId = deleteIpReputationRuleRequest.ruleId;
7267
+ enterpriseProjectId = deleteIpReputationRuleRequest.enterpriseProjectId;
7268
+ }
7269
+ else {
7270
+ contentType = deleteIpReputationRuleRequest['Content-Type'];
7271
+ policyId = deleteIpReputationRuleRequest['policy_id'];
7272
+ ruleId = deleteIpReputationRuleRequest['rule_id'];
7273
+ enterpriseProjectId = deleteIpReputationRuleRequest['enterprise_project_id'];
7274
+ }
7275
+ }
7276
+ if (policyId === null || policyId === undefined) {
7277
+ throw new RequiredError('policyId', 'Required parameter policyId was null or undefined when calling deleteIpReputationRule.');
7278
+ }
7279
+ if (ruleId === null || ruleId === undefined) {
7280
+ throw new RequiredError('ruleId', 'Required parameter ruleId was null or undefined when calling deleteIpReputationRule.');
7281
+ }
7282
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
7283
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
7284
+ }
7285
+ if (contentType !== undefined && contentType !== null) {
7286
+ localVarHeaderParameter['Content-Type'] = String(contentType);
7287
+ }
7288
+ options.queryParams = localVarQueryParameter;
7289
+ options.pathParams = { 'policy_id': policyId, 'rule_id': ruleId, };
7290
+ options.headers = localVarHeaderParameter;
7291
+ return options;
7292
+ },
6346
7293
  /**
6347
7294
  * 删除防护策略,若策略正在使用,则需要先接解除域名与策略的绑定关系才能删除策略。
6348
7295
  *
@@ -6541,6 +7488,43 @@ const ParamCreater = function () {
6541
7488
  options.headers = localVarHeaderParameter;
6542
7489
  return options;
6543
7490
  },
7491
+ /**
7492
+ * 删除安全报告订阅
7493
+ *
7494
+ * Please refer to HUAWEI cloud API Explorer for details.
7495
+ */
7496
+ deleteSecurityReportSubscription(deleteSecurityReportSubscriptionRequest) {
7497
+ const options = {
7498
+ method: "DELETE",
7499
+ url: "/v1/{project_id}/waf/security-report/subscriptions/{subscription_id}",
7500
+ contentType: "application/json",
7501
+ queryParams: {},
7502
+ pathParams: {},
7503
+ headers: {}
7504
+ };
7505
+ const localVarHeaderParameter = {};
7506
+ let subscriptionId;
7507
+ let contentType;
7508
+ if (deleteSecurityReportSubscriptionRequest !== null && deleteSecurityReportSubscriptionRequest !== undefined) {
7509
+ if (deleteSecurityReportSubscriptionRequest instanceof DeleteSecurityReportSubscriptionRequest_1.DeleteSecurityReportSubscriptionRequest) {
7510
+ subscriptionId = deleteSecurityReportSubscriptionRequest.subscriptionId;
7511
+ contentType = deleteSecurityReportSubscriptionRequest.contentType;
7512
+ }
7513
+ else {
7514
+ subscriptionId = deleteSecurityReportSubscriptionRequest['subscription_id'];
7515
+ contentType = deleteSecurityReportSubscriptionRequest['Content-Type'];
7516
+ }
7517
+ }
7518
+ if (subscriptionId === null || subscriptionId === undefined) {
7519
+ throw new RequiredError('subscriptionId', 'Required parameter subscriptionId was null or undefined when calling deleteSecurityReportSubscription.');
7520
+ }
7521
+ if (contentType !== undefined && contentType !== null) {
7522
+ localVarHeaderParameter['Content-Type'] = String(contentType);
7523
+ }
7524
+ options.pathParams = { 'subscription_id': subscriptionId, };
7525
+ options.headers = localVarHeaderParameter;
7526
+ return options;
7527
+ },
6544
7528
  /**
6545
7529
  * 删除引用表
6546
7530
  *
@@ -12406,6 +13390,52 @@ const ParamCreater = function () {
12406
13390
  options.headers = localVarHeaderParameter;
12407
13391
  return options;
12408
13392
  },
13393
+ /**
13394
+ * 返回独享接入进度
13395
+ *
13396
+ * Please refer to HUAWEI cloud API Explorer for details.
13397
+ */
13398
+ updatePremiumInstanceProgress(updatePremiumInstanceProgressRequest) {
13399
+ const options = {
13400
+ method: "PUT",
13401
+ url: "/v1/{project_id}/premium-waf/host/{host_id}/access-progress",
13402
+ contentType: "application/json",
13403
+ queryParams: {},
13404
+ pathParams: {},
13405
+ headers: {},
13406
+ data: {}
13407
+ };
13408
+ const localVarHeaderParameter = {};
13409
+ let body;
13410
+ let contentType;
13411
+ let hostId;
13412
+ if (updatePremiumInstanceProgressRequest !== null && updatePremiumInstanceProgressRequest !== undefined) {
13413
+ if (updatePremiumInstanceProgressRequest instanceof UpdatePremiumInstanceProgressRequest_1.UpdatePremiumInstanceProgressRequest) {
13414
+ contentType = updatePremiumInstanceProgressRequest.contentType;
13415
+ hostId = updatePremiumInstanceProgressRequest.hostId;
13416
+ body = updatePremiumInstanceProgressRequest.body;
13417
+ }
13418
+ else {
13419
+ contentType = updatePremiumInstanceProgressRequest['Content-Type'];
13420
+ hostId = updatePremiumInstanceProgressRequest['host_id'];
13421
+ body = updatePremiumInstanceProgressRequest['body'];
13422
+ }
13423
+ }
13424
+ if (hostId === null || hostId === undefined) {
13425
+ throw new RequiredError('hostId', 'Required parameter hostId was null or undefined when calling updatePremiumInstanceProgress.');
13426
+ }
13427
+ if (body === null || body === undefined) {
13428
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
13429
+ }
13430
+ if (contentType !== undefined && contentType !== null) {
13431
+ localVarHeaderParameter['Content-Type'] = String(contentType);
13432
+ }
13433
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13434
+ options.data = body !== undefined ? body : {};
13435
+ options.pathParams = { 'host_id': hostId, };
13436
+ options.headers = localVarHeaderParameter;
13437
+ return options;
13438
+ },
12409
13439
  /**
12410
13440
  * 更新隐私屏蔽防护规则
12411
13441
  *
@@ -12526,6 +13556,52 @@ const ParamCreater = function () {
12526
13556
  options.headers = localVarHeaderParameter;
12527
13557
  return options;
12528
13558
  },
13559
+ /**
13560
+ * 修改安全报告的订阅
13561
+ *
13562
+ * Please refer to HUAWEI cloud API Explorer for details.
13563
+ */
13564
+ updateSecurityReportSubscription(updateSecurityReportSubscriptionRequest) {
13565
+ const options = {
13566
+ method: "PUT",
13567
+ url: "/v1/{project_id}/waf/security-report/subscriptions/{subscription_id}",
13568
+ contentType: "application/json",
13569
+ queryParams: {},
13570
+ pathParams: {},
13571
+ headers: {},
13572
+ data: {}
13573
+ };
13574
+ const localVarHeaderParameter = {};
13575
+ let body;
13576
+ let contentType;
13577
+ let subscriptionId;
13578
+ if (updateSecurityReportSubscriptionRequest !== null && updateSecurityReportSubscriptionRequest !== undefined) {
13579
+ if (updateSecurityReportSubscriptionRequest instanceof UpdateSecurityReportSubscriptionRequest_1.UpdateSecurityReportSubscriptionRequest) {
13580
+ contentType = updateSecurityReportSubscriptionRequest.contentType;
13581
+ subscriptionId = updateSecurityReportSubscriptionRequest.subscriptionId;
13582
+ body = updateSecurityReportSubscriptionRequest.body;
13583
+ }
13584
+ else {
13585
+ contentType = updateSecurityReportSubscriptionRequest['Content-Type'];
13586
+ subscriptionId = updateSecurityReportSubscriptionRequest['subscription_id'];
13587
+ body = updateSecurityReportSubscriptionRequest['body'];
13588
+ }
13589
+ }
13590
+ if (subscriptionId === null || subscriptionId === undefined) {
13591
+ throw new RequiredError('subscriptionId', 'Required parameter subscriptionId was null or undefined when calling updateSecurityReportSubscription.');
13592
+ }
13593
+ if (body === null || body === undefined) {
13594
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
13595
+ }
13596
+ if (contentType !== undefined && contentType !== null) {
13597
+ localVarHeaderParameter['Content-Type'] = String(contentType);
13598
+ }
13599
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13600
+ options.data = body !== undefined ? body : {};
13601
+ options.pathParams = { 'subscription_id': subscriptionId, };
13602
+ options.headers = localVarHeaderParameter;
13603
+ return options;
13604
+ },
12529
13605
  /**
12530
13606
  * 修改引用表
12531
13607
  *
@@ -12637,6 +13713,44 @@ const ParamCreater = function () {
12637
13713
  options.headers = localVarHeaderParameter;
12638
13714
  return options;
12639
13715
  },
13716
+ /**
13717
+ * 查询用户托管在云解析上的域名
13718
+ *
13719
+ * Please refer to HUAWEI cloud API Explorer for details.
13720
+ */
13721
+ confirmDnsDomain(confirmDnsDomainRequest) {
13722
+ const options = {
13723
+ method: "GET",
13724
+ url: "/v1/{project_id}/waf/dns-domain",
13725
+ contentType: "application/json",
13726
+ queryParams: {},
13727
+ pathParams: {},
13728
+ headers: {}
13729
+ };
13730
+ const localVarHeaderParameter = {};
13731
+ const localVarQueryParameter = {};
13732
+ let contentType;
13733
+ let enterpriseProjectId;
13734
+ if (confirmDnsDomainRequest !== null && confirmDnsDomainRequest !== undefined) {
13735
+ if (confirmDnsDomainRequest instanceof ConfirmDnsDomainRequest_1.ConfirmDnsDomainRequest) {
13736
+ contentType = confirmDnsDomainRequest.contentType;
13737
+ enterpriseProjectId = confirmDnsDomainRequest.enterpriseProjectId;
13738
+ }
13739
+ else {
13740
+ contentType = confirmDnsDomainRequest['Content-Type'];
13741
+ enterpriseProjectId = confirmDnsDomainRequest['enterprise_project_id'];
13742
+ }
13743
+ }
13744
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
13745
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
13746
+ }
13747
+ if (contentType !== undefined && contentType !== null) {
13748
+ localVarHeaderParameter['Content-Type'] = String(contentType);
13749
+ }
13750
+ options.queryParams = localVarQueryParameter;
13751
+ options.headers = localVarHeaderParameter;
13752
+ return options;
13753
+ },
12640
13754
  /**
12641
13755
  * 快速接入,直接去修改用户的DNS记录,使域名快速接入WAF
12642
13756
  *