@huaweicloud/huaweicloud-sdk-waf 3.1.175 → 3.1.176

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 (213) hide show
  1. package/package.json +2 -2
  2. package/v1/WafClient.d.ts +478 -0
  3. package/v1/WafClient.d.ts.map +1 -1
  4. package/v1/WafClient.js +1183 -19
  5. package/v1/WafClient.js.map +1 -1
  6. package/v1/model/AlertNoticeConfig.d.ts +40 -0
  7. package/v1/model/AlertNoticeConfig.d.ts.map +1 -0
  8. package/v1/model/AlertNoticeConfig.js +91 -0
  9. package/v1/model/AlertNoticeConfig.js.map +1 -0
  10. package/v1/model/BacthCreateWhiteBlackIpRuleRequestBody.d.ts +28 -0
  11. package/v1/model/BacthCreateWhiteBlackIpRuleRequestBody.d.ts.map +1 -0
  12. package/v1/model/BacthCreateWhiteBlackIpRuleRequestBody.js +66 -0
  13. package/v1/model/BacthCreateWhiteBlackIpRuleRequestBody.js.map +1 -0
  14. package/v1/model/BatchCreateAntiTamperRuleRequest.d.ts +17 -0
  15. package/v1/model/BatchCreateAntiTamperRuleRequest.d.ts.map +1 -0
  16. package/v1/model/BatchCreateAntiTamperRuleRequest.js +38 -0
  17. package/v1/model/BatchCreateAntiTamperRuleRequest.js.map +1 -0
  18. package/v1/model/BatchCreateAntiTamperRuleResponse.d.ts +17 -0
  19. package/v1/model/BatchCreateAntiTamperRuleResponse.d.ts.map +1 -0
  20. package/v1/model/BatchCreateAntiTamperRuleResponse.js +35 -0
  21. package/v1/model/BatchCreateAntiTamperRuleResponse.js.map +1 -0
  22. package/v1/model/BatchCreateAntiTamperRulesRequestBody.d.ts +14 -0
  23. package/v1/model/BatchCreateAntiTamperRulesRequestBody.d.ts.map +1 -0
  24. package/v1/model/BatchCreateAntiTamperRulesRequestBody.js +34 -0
  25. package/v1/model/BatchCreateAntiTamperRulesRequestBody.js.map +1 -0
  26. package/v1/model/BatchCreateAntileakageRuleRequest.d.ts +17 -0
  27. package/v1/model/BatchCreateAntileakageRuleRequest.d.ts.map +1 -0
  28. package/v1/model/BatchCreateAntileakageRuleRequest.js +38 -0
  29. package/v1/model/BatchCreateAntileakageRuleRequest.js.map +1 -0
  30. package/v1/model/BatchCreateAntileakageRuleRequestBody.d.ts +27 -0
  31. package/v1/model/BatchCreateAntileakageRuleRequestBody.d.ts.map +1 -0
  32. package/v1/model/BatchCreateAntileakageRuleRequestBody.js +52 -0
  33. package/v1/model/BatchCreateAntileakageRuleRequestBody.js.map +1 -0
  34. package/v1/model/BatchCreateAntileakageRuleResponse.d.ts +24 -0
  35. package/v1/model/BatchCreateAntileakageRuleResponse.d.ts.map +1 -0
  36. package/v1/model/BatchCreateAntileakageRuleResponse.js +47 -0
  37. package/v1/model/BatchCreateAntileakageRuleResponse.js.map +1 -0
  38. package/v1/model/BatchCreateCcRuleRequest.d.ts +17 -0
  39. package/v1/model/BatchCreateCcRuleRequest.d.ts.map +1 -0
  40. package/v1/model/BatchCreateCcRuleRequest.js +38 -0
  41. package/v1/model/BatchCreateCcRuleRequest.js.map +1 -0
  42. package/v1/model/BatchCreateCcRuleRequestBody.d.ts +70 -0
  43. package/v1/model/BatchCreateCcRuleRequestBody.d.ts.map +1 -0
  44. package/v1/model/BatchCreateCcRuleRequestBody.js +150 -0
  45. package/v1/model/BatchCreateCcRuleRequestBody.js.map +1 -0
  46. package/v1/model/BatchCreateCcRuleResponse.d.ts +91 -0
  47. package/v1/model/BatchCreateCcRuleResponse.d.ts.map +1 -0
  48. package/v1/model/BatchCreateCcRuleResponse.js +187 -0
  49. package/v1/model/BatchCreateCcRuleResponse.js.map +1 -0
  50. package/v1/model/BatchCreateCustomRuleRequest.d.ts +17 -0
  51. package/v1/model/BatchCreateCustomRuleRequest.d.ts.map +1 -0
  52. package/v1/model/BatchCreateCustomRuleRequest.js +38 -0
  53. package/v1/model/BatchCreateCustomRuleRequest.js.map +1 -0
  54. package/v1/model/BatchCreateCustomRuleRequestBody.d.ts +26 -0
  55. package/v1/model/BatchCreateCustomRuleRequestBody.d.ts.map +1 -0
  56. package/v1/model/BatchCreateCustomRuleRequestBody.js +57 -0
  57. package/v1/model/BatchCreateCustomRuleRequestBody.js.map +1 -0
  58. package/v1/model/BatchCreateCustomRuleResponse.d.ts +37 -0
  59. package/v1/model/BatchCreateCustomRuleResponse.d.ts.map +1 -0
  60. package/v1/model/BatchCreateCustomRuleResponse.js +73 -0
  61. package/v1/model/BatchCreateCustomRuleResponse.js.map +1 -0
  62. package/v1/model/BatchCreateGeoIpRuleRequest.d.ts +15 -0
  63. package/v1/model/BatchCreateGeoIpRuleRequest.d.ts.map +1 -0
  64. package/v1/model/BatchCreateGeoIpRuleRequest.js +34 -0
  65. package/v1/model/BatchCreateGeoIpRuleRequest.js.map +1 -0
  66. package/v1/model/BatchCreateGeoIpRuleRequestBody.d.ts +20 -0
  67. package/v1/model/BatchCreateGeoIpRuleRequestBody.d.ts.map +1 -0
  68. package/v1/model/BatchCreateGeoIpRuleRequestBody.js +49 -0
  69. package/v1/model/BatchCreateGeoIpRuleRequestBody.js.map +1 -0
  70. package/v1/model/BatchCreateGeoIpRuleResponse.d.ts +25 -0
  71. package/v1/model/BatchCreateGeoIpRuleResponse.d.ts.map +1 -0
  72. package/v1/model/BatchCreateGeoIpRuleResponse.js +53 -0
  73. package/v1/model/BatchCreateGeoIpRuleResponse.js.map +1 -0
  74. package/v1/model/BatchCreateIgnoreRuleRequest.d.ts +17 -0
  75. package/v1/model/BatchCreateIgnoreRuleRequest.d.ts.map +1 -0
  76. package/v1/model/BatchCreateIgnoreRuleRequest.js +38 -0
  77. package/v1/model/BatchCreateIgnoreRuleRequest.js.map +1 -0
  78. package/v1/model/BatchCreateIgnoreRuleRequestBody.d.ts +22 -0
  79. package/v1/model/BatchCreateIgnoreRuleRequestBody.d.ts.map +1 -0
  80. package/v1/model/BatchCreateIgnoreRuleRequestBody.js +48 -0
  81. package/v1/model/BatchCreateIgnoreRuleRequestBody.js.map +1 -0
  82. package/v1/model/BatchCreateIgnoreRuleResponse.d.ts +31 -0
  83. package/v1/model/BatchCreateIgnoreRuleResponse.d.ts.map +1 -0
  84. package/v1/model/BatchCreateIgnoreRuleResponse.js +59 -0
  85. package/v1/model/BatchCreateIgnoreRuleResponse.js.map +1 -0
  86. package/v1/model/BatchCreateIpReputationRuleRequest.d.ts +17 -0
  87. package/v1/model/BatchCreateIpReputationRuleRequest.d.ts.map +1 -0
  88. package/v1/model/BatchCreateIpReputationRuleRequest.js +38 -0
  89. package/v1/model/BatchCreateIpReputationRuleRequest.js.map +1 -0
  90. package/v1/model/BatchCreateIpReputationRuleRequestBody.d.ts +19 -0
  91. package/v1/model/BatchCreateIpReputationRuleRequestBody.d.ts.map +1 -0
  92. package/v1/model/BatchCreateIpReputationRuleRequestBody.js +44 -0
  93. package/v1/model/BatchCreateIpReputationRuleRequestBody.js.map +1 -0
  94. package/v1/model/BatchCreateIpReputationRuleResponse.d.ts +26 -0
  95. package/v1/model/BatchCreateIpReputationRuleResponse.d.ts.map +1 -0
  96. package/v1/model/BatchCreateIpReputationRuleResponse.js +51 -0
  97. package/v1/model/BatchCreateIpReputationRuleResponse.js.map +1 -0
  98. package/v1/model/BatchCreatePrivacyRuleRequest.d.ts +17 -0
  99. package/v1/model/BatchCreatePrivacyRuleRequest.d.ts.map +1 -0
  100. package/v1/model/BatchCreatePrivacyRuleRequest.js +38 -0
  101. package/v1/model/BatchCreatePrivacyRuleRequest.js.map +1 -0
  102. package/v1/model/BatchCreatePrivacyRuleRequestBody.d.ts +26 -0
  103. package/v1/model/BatchCreatePrivacyRuleRequestBody.d.ts.map +1 -0
  104. package/v1/model/BatchCreatePrivacyRuleRequestBody.js +50 -0
  105. package/v1/model/BatchCreatePrivacyRuleRequestBody.js.map +1 -0
  106. package/v1/model/BatchCreatePrivacyRuleResponse.d.ts +31 -0
  107. package/v1/model/BatchCreatePrivacyRuleResponse.d.ts.map +1 -0
  108. package/v1/model/BatchCreatePrivacyRuleResponse.js +54 -0
  109. package/v1/model/BatchCreatePrivacyRuleResponse.js.map +1 -0
  110. package/v1/model/BatchCreateWhiteblackipRuleRequest.d.ts +17 -0
  111. package/v1/model/BatchCreateWhiteblackipRuleRequest.d.ts.map +1 -0
  112. package/v1/model/BatchCreateWhiteblackipRuleRequest.js +38 -0
  113. package/v1/model/BatchCreateWhiteblackipRuleRequest.js.map +1 -0
  114. package/v1/model/BatchCreateWhiteblackipRuleResponse.d.ts +34 -0
  115. package/v1/model/BatchCreateWhiteblackipRuleResponse.d.ts.map +1 -0
  116. package/v1/model/BatchCreateWhiteblackipRuleResponse.js +71 -0
  117. package/v1/model/BatchCreateWhiteblackipRuleResponse.js.map +1 -0
  118. package/v1/model/BatchDeleteAlertNoticeConfigBody.d.ts +9 -0
  119. package/v1/model/BatchDeleteAlertNoticeConfigBody.d.ts.map +1 -0
  120. package/v1/model/BatchDeleteAlertNoticeConfigBody.js +20 -0
  121. package/v1/model/BatchDeleteAlertNoticeConfigBody.js.map +1 -0
  122. package/v1/model/BatchDeleteAlertNoticeConfigRequest.d.ts +17 -0
  123. package/v1/model/BatchDeleteAlertNoticeConfigRequest.d.ts.map +1 -0
  124. package/v1/model/BatchDeleteAlertNoticeConfigRequest.js +40 -0
  125. package/v1/model/BatchDeleteAlertNoticeConfigRequest.js.map +1 -0
  126. package/v1/model/BatchDeleteAlertNoticeConfigResponse.d.ts +10 -0
  127. package/v1/model/BatchDeleteAlertNoticeConfigResponse.d.ts.map +1 -0
  128. package/v1/model/BatchDeleteAlertNoticeConfigResponse.js +21 -0
  129. package/v1/model/BatchDeleteAlertNoticeConfigResponse.js.map +1 -0
  130. package/v1/model/CreateAgencyRequest.d.ts +11 -0
  131. package/v1/model/CreateAgencyRequest.d.ts.map +1 -0
  132. package/v1/model/CreateAgencyRequest.js +24 -0
  133. package/v1/model/CreateAgencyRequest.js.map +1 -0
  134. package/v1/model/CreateAgencyResponse.d.ts +21 -0
  135. package/v1/model/CreateAgencyResponse.d.ts.map +1 -0
  136. package/v1/model/CreateAgencyResponse.js +47 -0
  137. package/v1/model/CreateAgencyResponse.js.map +1 -0
  138. package/v1/model/CreateAlertNoticeConfigBody.d.ts +42 -0
  139. package/v1/model/CreateAlertNoticeConfigBody.d.ts.map +1 -0
  140. package/v1/model/CreateAlertNoticeConfigBody.js +104 -0
  141. package/v1/model/CreateAlertNoticeConfigBody.js.map +1 -0
  142. package/v1/model/CreateAlertNoticeConfigRequest.d.ts +17 -0
  143. package/v1/model/CreateAlertNoticeConfigRequest.d.ts.map +1 -0
  144. package/v1/model/CreateAlertNoticeConfigRequest.js +40 -0
  145. package/v1/model/CreateAlertNoticeConfigRequest.js.map +1 -0
  146. package/v1/model/CreateAlertNoticeConfigResponse.d.ts +47 -0
  147. package/v1/model/CreateAlertNoticeConfigResponse.d.ts.map +1 -0
  148. package/v1/model/CreateAlertNoticeConfigResponse.js +109 -0
  149. package/v1/model/CreateAlertNoticeConfigResponse.js.map +1 -0
  150. package/v1/model/CreateCertificateRequest.d.ts +4 -0
  151. package/v1/model/CreateCertificateRequest.d.ts.map +1 -1
  152. package/v1/model/CreateCertificateRequest.js +10 -0
  153. package/v1/model/CreateCertificateRequest.js.map +1 -1
  154. package/v1/model/CreateQuickAccessDomainRequest.d.ts +16 -0
  155. package/v1/model/CreateQuickAccessDomainRequest.d.ts.map +1 -0
  156. package/v1/model/CreateQuickAccessDomainRequest.js +40 -0
  157. package/v1/model/CreateQuickAccessDomainRequest.js.map +1 -0
  158. package/v1/model/CreateQuickAccessDomainResponse.d.ts +13 -0
  159. package/v1/model/CreateQuickAccessDomainResponse.d.ts.map +1 -0
  160. package/v1/model/CreateQuickAccessDomainResponse.js +29 -0
  161. package/v1/model/CreateQuickAccessDomainResponse.js.map +1 -0
  162. package/v1/model/DeleteAgencyRequest.d.ts +14 -0
  163. package/v1/model/DeleteAgencyRequest.d.ts.map +1 -0
  164. package/v1/model/DeleteAgencyRequest.js +34 -0
  165. package/v1/model/DeleteAgencyRequest.js.map +1 -0
  166. package/v1/model/DeleteAgencyResponse.d.ts +21 -0
  167. package/v1/model/DeleteAgencyResponse.d.ts.map +1 -0
  168. package/v1/model/DeleteAgencyResponse.js +47 -0
  169. package/v1/model/DeleteAgencyResponse.js.map +1 -0
  170. package/v1/model/DeleteAlertNoticeConfigBody.d.ts +6 -0
  171. package/v1/model/DeleteAlertNoticeConfigBody.d.ts.map +1 -0
  172. package/v1/model/DeleteAlertNoticeConfigBody.js +13 -0
  173. package/v1/model/DeleteAlertNoticeConfigBody.js.map +1 -0
  174. package/v1/model/ListCcRulesRequest.d.ts +10 -0
  175. package/v1/model/ListCcRulesRequest.d.ts.map +1 -1
  176. package/v1/model/ListCcRulesRequest.js +22 -0
  177. package/v1/model/ListCcRulesRequest.js.map +1 -1
  178. package/v1/model/PremiumWafAgencyRequest.d.ts +8 -0
  179. package/v1/model/PremiumWafAgencyRequest.d.ts.map +1 -0
  180. package/v1/model/PremiumWafAgencyRequest.js +19 -0
  181. package/v1/model/PremiumWafAgencyRequest.js.map +1 -0
  182. package/v1/model/ResourceResponse.d.ts +6 -0
  183. package/v1/model/ResourceResponse.d.ts.map +1 -1
  184. package/v1/model/ResourceResponse.js +12 -0
  185. package/v1/model/ResourceResponse.js.map +1 -1
  186. package/v1/model/UpdateIpReputationRuleRequest.d.ts +23 -0
  187. package/v1/model/UpdateIpReputationRuleRequest.d.ts.map +1 -0
  188. package/v1/model/UpdateIpReputationRuleRequest.js +56 -0
  189. package/v1/model/UpdateIpReputationRuleRequest.js.map +1 -0
  190. package/v1/model/UpdateIpReputationRuleRequestBody.d.ts +17 -0
  191. package/v1/model/UpdateIpReputationRuleRequestBody.d.ts.map +1 -0
  192. package/v1/model/UpdateIpReputationRuleRequestBody.js +37 -0
  193. package/v1/model/UpdateIpReputationRuleRequestBody.js.map +1 -0
  194. package/v1/model/UpdateIpReputationRuleResponse.d.ts +28 -0
  195. package/v1/model/UpdateIpReputationRuleResponse.d.ts.map +1 -0
  196. package/v1/model/UpdateIpReputationRuleResponse.js +55 -0
  197. package/v1/model/UpdateIpReputationRuleResponse.js.map +1 -0
  198. package/v1/model/UpdatePremiumInstanceRequest.d.ts +11 -0
  199. package/v1/model/UpdatePremiumInstanceRequest.d.ts.map +1 -0
  200. package/v1/model/UpdatePremiumInstanceRequest.js +24 -0
  201. package/v1/model/UpdatePremiumInstanceRequest.js.map +1 -0
  202. package/v1/model/UpdatePremiumInstanceRequestBody.d.ts +8 -0
  203. package/v1/model/UpdatePremiumInstanceRequestBody.d.ts.map +1 -0
  204. package/v1/model/UpdatePremiumInstanceRequestBody.js +18 -0
  205. package/v1/model/UpdatePremiumInstanceRequestBody.js.map +1 -0
  206. package/v1/model/UpdatePremiumInstanceResponse.d.ts +82 -0
  207. package/v1/model/UpdatePremiumInstanceResponse.d.ts.map +1 -0
  208. package/v1/model/UpdatePremiumInstanceResponse.js +187 -0
  209. package/v1/model/UpdatePremiumInstanceResponse.js.map +1 -0
  210. package/v1/public-api.d.ts +48 -0
  211. package/v1/public-api.d.ts.map +1 -1
  212. package/v1/public-api.js +48 -0
  213. package/v1/public-api.js.map +1 -1
package/v1/WafClient.js CHANGED
@@ -3,6 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RequiredError = exports.ParamCreater = exports.WafClient = void 0;
4
4
  const ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder");
5
5
  const ApplyCertificateToHostRequest_1 = require("./model/ApplyCertificateToHostRequest");
6
+ const BatchCreateAntiTamperRuleRequest_1 = require("./model/BatchCreateAntiTamperRuleRequest");
7
+ const BatchCreateAntileakageRuleRequest_1 = require("./model/BatchCreateAntileakageRuleRequest");
8
+ const BatchCreateCcRuleRequest_1 = require("./model/BatchCreateCcRuleRequest");
9
+ const BatchCreateCustomRuleRequest_1 = require("./model/BatchCreateCustomRuleRequest");
10
+ const BatchCreateGeoIpRuleRequest_1 = require("./model/BatchCreateGeoIpRuleRequest");
11
+ const BatchCreateIgnoreRuleRequest_1 = require("./model/BatchCreateIgnoreRuleRequest");
12
+ const BatchCreateIpReputationRuleRequest_1 = require("./model/BatchCreateIpReputationRuleRequest");
13
+ const BatchCreatePrivacyRuleRequest_1 = require("./model/BatchCreatePrivacyRuleRequest");
14
+ const BatchCreateWhiteblackipRuleRequest_1 = require("./model/BatchCreateWhiteblackipRuleRequest");
15
+ const BatchDeleteAlertNoticeConfigRequest_1 = require("./model/BatchDeleteAlertNoticeConfigRequest");
6
16
  const BatchDeletePoliciesRequest_1 = require("./model/BatchDeletePoliciesRequest");
7
17
  const ChangePrepaidCloudWafRequest_1 = require("./model/ChangePrepaidCloudWafRequest");
8
18
  const CheckAgencyRequest_1 = require("./model/CheckAgencyRequest");
@@ -15,6 +25,8 @@ const ConfirmProtectionTypesRequest_1 = require("./model/ConfirmProtectionTypesR
15
25
  const ConfirmThreatMapRequest_1 = require("./model/ConfirmThreatMapRequest");
16
26
  const ConfirmTmsResourceInstancesRequest_1 = require("./model/ConfirmTmsResourceInstancesRequest");
17
27
  const ConfirmUserBundleRequest_1 = require("./model/ConfirmUserBundleRequest");
28
+ const CreateAgencyRequest_1 = require("./model/CreateAgencyRequest");
29
+ const CreateAlertNoticeConfigRequest_1 = require("./model/CreateAlertNoticeConfigRequest");
18
30
  const CreateAntiTamperRuleRequest_1 = require("./model/CreateAntiTamperRuleRequest");
19
31
  const CreateAnticrawlerRuleRequest_1 = require("./model/CreateAnticrawlerRuleRequest");
20
32
  const CreateAntileakageRuleRequest_1 = require("./model/CreateAntileakageRuleRequest");
@@ -33,8 +45,10 @@ const CreatePremiumHostRequest_1 = require("./model/CreatePremiumHostRequest");
33
45
  const CreatePrepaidCloudWafRequest_1 = require("./model/CreatePrepaidCloudWafRequest");
34
46
  const CreatePrivacyRuleRequest_1 = require("./model/CreatePrivacyRuleRequest");
35
47
  const CreatePunishmentRuleRequest_1 = require("./model/CreatePunishmentRuleRequest");
48
+ const CreateQuickAccessDomainRequest_1 = require("./model/CreateQuickAccessDomainRequest");
36
49
  const CreateValueListRequest_1 = require("./model/CreateValueListRequest");
37
50
  const CreateWhiteblackipRuleRequest_1 = require("./model/CreateWhiteblackipRuleRequest");
51
+ const DeleteAgencyRequest_1 = require("./model/DeleteAgencyRequest");
38
52
  const DeleteAnticrawlerRuleRequest_1 = require("./model/DeleteAnticrawlerRuleRequest");
39
53
  const DeleteAntileakageRuleRequest_1 = require("./model/DeleteAntileakageRuleRequest");
40
54
  const DeleteAntitamperRuleRequest_1 = require("./model/DeleteAntitamperRuleRequest");
@@ -148,6 +162,7 @@ const UpdateHostRequest_1 = require("./model/UpdateHostRequest");
148
162
  const UpdateIgnoreRuleRequest_1 = require("./model/UpdateIgnoreRuleRequest");
149
163
  const UpdateInstanceRouteRequest_1 = require("./model/UpdateInstanceRouteRequest");
150
164
  const UpdateIpGroupRequest_1 = require("./model/UpdateIpGroupRequest");
165
+ const UpdateIpReputationRuleRequest_1 = require("./model/UpdateIpReputationRuleRequest");
151
166
  const UpdateLtsInfoConfigRequest_1 = require("./model/UpdateLtsInfoConfigRequest");
152
167
  const UpdatePolicyProtectHostRequest_1 = require("./model/UpdatePolicyProtectHostRequest");
153
168
  const UpdatePolicyRequest_1 = require("./model/UpdatePolicyRequest");
@@ -155,6 +170,7 @@ const UpdatePolicyRuleStatusRequest_1 = require("./model/UpdatePolicyRuleStatusR
155
170
  const UpdatePremiumHostAccessStatusRequest_1 = require("./model/UpdatePremiumHostAccessStatusRequest");
156
171
  const UpdatePremiumHostProtectStatusRequest_1 = require("./model/UpdatePremiumHostProtectStatusRequest");
157
172
  const UpdatePremiumHostRequest_1 = require("./model/UpdatePremiumHostRequest");
173
+ const UpdatePremiumInstanceRequest_1 = require("./model/UpdatePremiumInstanceRequest");
158
174
  const UpdatePrivacyRuleRequest_1 = require("./model/UpdatePrivacyRuleRequest");
159
175
  const UpdatePunishmentRuleRequest_1 = require("./model/UpdatePunishmentRuleRequest");
160
176
  const UpdateValueListRequest_1 = require("./model/UpdateValueListRequest");
@@ -189,6 +205,195 @@ class WafClient {
189
205
  options['responseHeaders'] = [''];
190
206
  return this.hcClient.sendRequest(options);
191
207
  }
208
+ /**
209
+ * 选中多个策略为这些策略批量添加网页防篡改规则
210
+ *
211
+ * Please refer to HUAWEI cloud API Explorer for details.
212
+ *
213
+ * @summary 选中多个策略批量添加网页防篡改规则
214
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
215
+ * @param {BatchCreateAntiTamperRulesRequestBody} bacthCreateWhiteblackipRuleRequestBody 批量创建地理位置访问控制规则
216
+ * @param {string} [policyids] **参数解释:** 域名id。 **约束限制:** 不涉及 **取值范围:** 只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
217
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
218
+ * @param {*} [options] Override http request option.
219
+ * @throws {RequiredError}
220
+ */
221
+ batchCreateAntiTamperRule(batchCreateAntiTamperRuleRequest) {
222
+ const options = (0, exports.ParamCreater)().batchCreateAntiTamperRule(batchCreateAntiTamperRuleRequest);
223
+ // @ts-ignore
224
+ options['responseHeaders'] = [''];
225
+ return this.hcClient.sendRequest(options);
226
+ }
227
+ /**
228
+ * 选中多个策略为这些策略批量添加防敏感信息泄漏规则
229
+ *
230
+ * Please refer to HUAWEI cloud API Explorer for details.
231
+ *
232
+ * @summary 选中多个策略批量添加防敏感信息泄漏规则
233
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
234
+ * @param {BatchCreateAntileakageRuleRequestBody} bacthCreateWhiteblackipRuleRequestBody 批量创建防敏感信息泄漏防护规则
235
+ * @param {string} [policyids] **参数解释:** 域名id。 **约束限制:** 不涉及 **取值范围:** 只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
236
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
237
+ * @param {*} [options] Override http request option.
238
+ * @throws {RequiredError}
239
+ */
240
+ batchCreateAntileakageRule(batchCreateAntileakageRuleRequest) {
241
+ const options = (0, exports.ParamCreater)().batchCreateAntileakageRule(batchCreateAntileakageRuleRequest);
242
+ // @ts-ignore
243
+ options['responseHeaders'] = [''];
244
+ return this.hcClient.sendRequest(options);
245
+ }
246
+ /**
247
+ * 选中多个策略为这些策略批量添加cc规则
248
+ *
249
+ * Please refer to HUAWEI cloud API Explorer for details.
250
+ *
251
+ * @summary 选中多个策略为批量添加cc规则
252
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
253
+ * @param {BatchCreateCcRuleRequestBody} bacthCreateCcRuleRequestBody 批量创建cc规则
254
+ * @param {string} [policyids] **参数解释:** 策略id列表。策略id从\"查询防护策略列表\"(ListPolicy)接口获取,多个策略之间用“,”隔开 **约束限制:** 不涉及 **取值范围:** 策略id只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
255
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
256
+ * @param {*} [options] Override http request option.
257
+ * @throws {RequiredError}
258
+ */
259
+ batchCreateCcRule(batchCreateCcRuleRequest) {
260
+ const options = (0, exports.ParamCreater)().batchCreateCcRule(batchCreateCcRuleRequest);
261
+ // @ts-ignore
262
+ options['responseHeaders'] = [''];
263
+ return this.hcClient.sendRequest(options);
264
+ }
265
+ /**
266
+ * 选中多个策略为这些策略批量添加精准防护规则
267
+ *
268
+ * Please refer to HUAWEI cloud API Explorer for details.
269
+ *
270
+ * @summary 选中多个策略批量添加精准防护规则
271
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
272
+ * @param {BatchCreateCustomRuleRequestBody} bacthCreateCustomRuleRequestBody 批量创建精准防护规则
273
+ * @param {string} [policyids] **参数解释:** 策略id列表。策略id从\"查询防护策略列表\"(ListPolicy)接口获取,多个策略之间用“,”隔开 **约束限制:** 不涉及 **取值范围:** 策略id只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
274
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
275
+ * @param {*} [options] Override http request option.
276
+ * @throws {RequiredError}
277
+ */
278
+ batchCreateCustomRule(batchCreateCustomRuleRequest) {
279
+ const options = (0, exports.ParamCreater)().batchCreateCustomRule(batchCreateCustomRuleRequest);
280
+ // @ts-ignore
281
+ options['responseHeaders'] = [''];
282
+ return this.hcClient.sendRequest(options);
283
+ }
284
+ /**
285
+ * 选中多个策略为这些策略批量添加地理位置访问控制规则
286
+ *
287
+ * Please refer to HUAWEI cloud API Explorer for details.
288
+ *
289
+ * @summary 选中多个策略批量添加地理位置访问控制规则
290
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
291
+ * @param {BatchCreateGeoIpRuleRequestBody} batchCreateGeoIpRuleRequestBody 批量创建地理位置访问控制规则
292
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
293
+ * @param {*} [options] Override http request option.
294
+ * @throws {RequiredError}
295
+ */
296
+ batchCreateGeoIpRule(batchCreateGeoIpRuleRequest) {
297
+ const options = (0, exports.ParamCreater)().batchCreateGeoIpRule(batchCreateGeoIpRuleRequest);
298
+ // @ts-ignore
299
+ options['responseHeaders'] = [''];
300
+ return this.hcClient.sendRequest(options);
301
+ }
302
+ /**
303
+ * 选中多个策略为这些策略批量添加全局白名单规则
304
+ *
305
+ * Please refer to HUAWEI cloud API Explorer for details.
306
+ *
307
+ * @summary 选中多个策略批量添加全局白名单规则
308
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
309
+ * @param {BatchCreateIgnoreRuleRequestBody} batchCreateIgnoreRuleRequestBody 批量创建全局白名单防护规则
310
+ * @param {string} [policyids] **参数解释:** 域名id。 **约束限制:** 不涉及 **取值范围:** 只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
311
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
312
+ * @param {*} [options] Override http request option.
313
+ * @throws {RequiredError}
314
+ */
315
+ batchCreateIgnoreRule(batchCreateIgnoreRuleRequest) {
316
+ const options = (0, exports.ParamCreater)().batchCreateIgnoreRule(batchCreateIgnoreRuleRequest);
317
+ // @ts-ignore
318
+ options['responseHeaders'] = [''];
319
+ return this.hcClient.sendRequest(options);
320
+ }
321
+ /**
322
+ * 选中多个策略为这些策略批量添加威胁情报访问控制规则
323
+ *
324
+ * Please refer to HUAWEI cloud API Explorer for details.
325
+ *
326
+ * @summary 为多个策略批量添加威胁情报访问控制规则
327
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
328
+ * @param {BatchCreateIpReputationRuleRequestBody} batchCreateIpReputationRuleRequestBody 批量创建威胁情报访问控制规则
329
+ * @param {string} [policyids] **参数解释:** 域名id。 **约束限制:** 不涉及 **取值范围:** 只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
330
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
331
+ * @param {*} [options] Override http request option.
332
+ * @throws {RequiredError}
333
+ */
334
+ batchCreateIpReputationRule(batchCreateIpReputationRuleRequest) {
335
+ const options = (0, exports.ParamCreater)().batchCreateIpReputationRule(batchCreateIpReputationRuleRequest);
336
+ // @ts-ignore
337
+ options['responseHeaders'] = [''];
338
+ return this.hcClient.sendRequest(options);
339
+ }
340
+ /**
341
+ * 选中多个策略为这些策略批量添加隐私屏蔽防护规则
342
+ *
343
+ * Please refer to HUAWEI cloud API Explorer for details.
344
+ *
345
+ * @summary 选中多个策略批量添加隐私屏蔽防护防护规则
346
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
347
+ * @param {BatchCreatePrivacyRuleRequestBody} batchCreatePrivacyRuleRequestBody 批量创建隐私屏蔽防护规则
348
+ * @param {string} [policyids] **参数解释:** 策略id列表。策略id从\"查询防护策略列表\"(ListPolicy)接口获取,多个策略之间用“,”隔开 **约束限制:** 不涉及 **取值范围:** 策略id只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
349
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
350
+ * @param {*} [options] Override http request option.
351
+ * @throws {RequiredError}
352
+ */
353
+ batchCreatePrivacyRule(batchCreatePrivacyRuleRequest) {
354
+ const options = (0, exports.ParamCreater)().batchCreatePrivacyRule(batchCreatePrivacyRuleRequest);
355
+ // @ts-ignore
356
+ options['responseHeaders'] = [''];
357
+ return this.hcClient.sendRequest(options);
358
+ }
359
+ /**
360
+ * 选中多个策略为这些策略批量添加黑白名单防护规则
361
+ *
362
+ * Please refer to HUAWEI cloud API Explorer for details.
363
+ *
364
+ * @summary 选中多个策略批量添加黑白名单防护规则
365
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
366
+ * @param {BacthCreateWhiteBlackIpRuleRequestBody} bacthCreateWhiteblackipRuleRequestBody 批量创建黑白名单防护规则
367
+ * @param {string} [policyids] **参数解释:** 策略id列表。策略id从\"查询防护策略列表\"(ListPolicy)接口获取,多个策略之间用“,”隔开 **约束限制:** 不涉及 **取值范围:** 策略id只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
368
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
369
+ * @param {*} [options] Override http request option.
370
+ * @throws {RequiredError}
371
+ */
372
+ batchCreateWhiteblackipRule(batchCreateWhiteblackipRuleRequest) {
373
+ const options = (0, exports.ParamCreater)().batchCreateWhiteblackipRule(batchCreateWhiteblackipRuleRequest);
374
+ // @ts-ignore
375
+ options['responseHeaders'] = [''];
376
+ return this.hcClient.sendRequest(options);
377
+ }
378
+ /**
379
+ * 批量删除告警通知
380
+ *
381
+ * Please refer to HUAWEI cloud API Explorer for details.
382
+ *
383
+ * @summary 批量删除告警通知
384
+ * @param {string} enterpriseProjectId **参数解释:** 企业项目ID **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
385
+ * @param {string} xLanguage 语言,默认值为en-us。zh-cn(中文)/en-us(英文)
386
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
387
+ * @param {BatchDeleteAlertNoticeConfigBody} batchDeleteAlertNoticeConfigBody **参数解释:** 待删除的告警通知配置列表 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
388
+ * @param {*} [options] Override http request option.
389
+ * @throws {RequiredError}
390
+ */
391
+ batchDeleteAlertNoticeConfig(batchDeleteAlertNoticeConfigRequest) {
392
+ const options = (0, exports.ParamCreater)().batchDeleteAlertNoticeConfig(batchDeleteAlertNoticeConfigRequest);
393
+ // @ts-ignore
394
+ options['responseHeaders'] = [''];
395
+ return this.hcClient.sendRequest(options);
396
+ }
192
397
  /**
193
398
  * 批量删除防护策略
194
399
  *
@@ -402,6 +607,42 @@ class WafClient {
402
607
  options['responseHeaders'] = [''];
403
608
  return this.hcClient.sendRequest(options);
404
609
  }
610
+ /**
611
+ * 创建独享引擎的代理
612
+ *
613
+ * Please refer to HUAWEI cloud API Explorer for details.
614
+ *
615
+ * @summary 创建代理
616
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
617
+ * @param {PremiumWafAgencyRequest} [premiumWafAgencyRequest] **参数解释:** 独享引擎操作 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
618
+ * @param {*} [options] Override http request option.
619
+ * @throws {RequiredError}
620
+ */
621
+ createAgency(createAgencyRequest) {
622
+ const options = (0, exports.ParamCreater)().createAgency(createAgencyRequest);
623
+ // @ts-ignore
624
+ options['responseHeaders'] = [''];
625
+ return this.hcClient.sendRequest(options);
626
+ }
627
+ /**
628
+ * 创建告警通知
629
+ *
630
+ * Please refer to HUAWEI cloud API Explorer for details.
631
+ *
632
+ * @summary 创建告警通知
633
+ * @param {string} xLanguage **参数解释:** 语言,默认值为en-us。zh-cn(中文)/en-us(英文) **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** zh-cn
634
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
635
+ * @param {string} enterpriseProjectId **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
636
+ * @param {CreateAlertNoticeConfigBody} alertNoticeConfig **参数解释:** 请求Body **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
637
+ * @param {*} [options] Override http request option.
638
+ * @throws {RequiredError}
639
+ */
640
+ createAlertNoticeConfig(createAlertNoticeConfigRequest) {
641
+ const options = (0, exports.ParamCreater)().createAlertNoticeConfig(createAlertNoticeConfigRequest);
642
+ // @ts-ignore
643
+ options['responseHeaders'] = [''];
644
+ return this.hcClient.sendRequest(options);
645
+ }
405
646
  /**
406
647
  * 创建防篡改规则
407
648
  *
@@ -487,6 +728,7 @@ class WafClient {
487
728
  * @param {string} contentType 内容类型
488
729
  * @param {CreateCertificateRequestBody} createCertificateRequestBody requestBody
489
730
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
731
+ * @param {boolean} [verifyCertKey] 是否验证证书和私钥,true为验证,false为不验证
490
732
  * @param {*} [options] Override http request option.
491
733
  * @throws {RequiredError}
492
734
  */
@@ -774,6 +1016,24 @@ class WafClient {
774
1016
  options['responseHeaders'] = [''];
775
1017
  return this.hcClient.sendRequest(options);
776
1018
  }
1019
+ /**
1020
+ * 删除独享引擎的代理
1021
+ *
1022
+ * Please refer to HUAWEI cloud API Explorer for details.
1023
+ *
1024
+ * @summary 删除代理
1025
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1026
+ * @param {boolean} [purged] **参数解释:** purged取值为true时,会同步删除在IAM处创建的premium_waf_svc_trust委托,purged取值为false时,不会同步删除在IAM处创建的premium_waf_svc_trust委托 **约束限制:** 不涉及 **取值范围:** - true - false **默认取值:** 不涉及
1027
+ * @param {Array<string>} [roleIdList] **参数解释:** 待删除的代理id **约束限制:** 不涉及 **取值范围:** 从 “查询独享引擎代理”接口的返回结果中,选取需要删除代理的id值 **默认取值:** 不涉及
1028
+ * @param {*} [options] Override http request option.
1029
+ * @throws {RequiredError}
1030
+ */
1031
+ deleteAgency(deleteAgencyRequest) {
1032
+ const options = (0, exports.ParamCreater)().deleteAgency(deleteAgencyRequest);
1033
+ // @ts-ignore
1034
+ options['responseHeaders'] = [''];
1035
+ return this.hcClient.sendRequest(options);
1036
+ }
777
1037
  /**
778
1038
  * 删除JS脚本反爬虫防护规则
779
1039
  *
@@ -1283,6 +1543,10 @@ class WafClient {
1283
1543
  * @param {number} offset 偏移量,表示查询该偏移量之后的记录。
1284
1544
  * @param {number} limit 查询返回记录的数量限制。
1285
1545
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
1546
+ * @param {string} [name] 规则名称
1547
+ * @param {number} [status] 规则的开启状态,1表示开启,0表示关闭
1548
+ * @param {string} [category] **参数解释:** 防护动作 **取值范围:** - block: 拦截,表示超过“限速频率”将直接拦截。 - log:仅记录,表示超过“限速频率”将只记录不拦截。 - captcha:表示超过“限速频率”后弹出验证码,进行人机验证,完成验证后,请求将不受访问限制。人机验证目前支持英文。 - dynamic_block:上一个限速周期内,请求频率超过“限速频率”将被拦截,那么在下一个限速周期内,请求频率超过“放行频率”将被拦截。 - advanced_captcha:高阶人机验证,表示超过“限速频率”后弹出验证码,进行人机验证。 - js_challenge:要求客户端完成一段脚本的执行或验证,从而验证请求来源的合法性。
1549
+ * @param {string} [tagType] 限速模式: - ip:IP限速,根据IP区分单个Web访问者。 - cookie:用户限速,根据Cookie键值区分单个Web访问者。 - header:用户限速,根据Header区分单个Web访问者。 - other:根据Referer(自定义请求访问的来源)字段区分单个Web访问者。 - policy: 策略限速 - domain: 域名限速 - url: url限速
1286
1550
  * @param {*} [options] Override http request option.
1287
1551
  * @throws {RequiredError}
1288
1552
  */
@@ -2961,6 +3225,26 @@ class WafClient {
2961
3225
  options['responseHeaders'] = [''];
2962
3226
  return this.hcClient.sendRequest(options);
2963
3227
  }
3228
+ /**
3229
+ * 更新IP情报防护规则
3230
+ *
3231
+ * Please refer to HUAWEI cloud API Explorer for details.
3232
+ *
3233
+ * @summary 更新机房IP情报防护规则
3234
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
3235
+ * @param {string} policyId **参数解释:** 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id,响应体的id字段 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
3236
+ * @param {string} ruleId **参数解释:** 机房IP情报访问控制规则id,通过\&quot;查询威胁情报规则列表\&quot;接口获取 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
3237
+ * @param {UpdateIpReputationRuleRequestBody} updateIpReputationRuleRequestBody **参数解释:** body_info **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
3238
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
3239
+ * @param {*} [options] Override http request option.
3240
+ * @throws {RequiredError}
3241
+ */
3242
+ updateIpReputationRule(updateIpReputationRuleRequest) {
3243
+ const options = (0, exports.ParamCreater)().updateIpReputationRule(updateIpReputationRuleRequest);
3244
+ // @ts-ignore
3245
+ options['responseHeaders'] = [''];
3246
+ return this.hcClient.sendRequest(options);
3247
+ }
2964
3248
  /**
2965
3249
  * 配置全量日志lts,该接口可用来开启与关闭waf全量日志以及配置日志组和日志流。日志组id和日志流id可前往云日志服务获取。配置的日志流id要属于所配置的日志组。
2966
3250
  *
@@ -3094,6 +3378,23 @@ class WafClient {
3094
3378
  options['responseHeaders'] = [''];
3095
3379
  return this.hcClient.sendRequest(options);
3096
3380
  }
3381
+ /**
3382
+ * 操作WAF独享引擎
3383
+ *
3384
+ * Please refer to HUAWEI cloud API Explorer for details.
3385
+ *
3386
+ * @summary 操作WAF独享引擎
3387
+ * @param {string} instanceId **参数解释:** 独享引擎ID **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
3388
+ * @param {UpdatePremiumInstanceRequestBody} [updatePremiumInstanceRequestBody] **参数解释:** 独享引擎操作 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
3389
+ * @param {*} [options] Override http request option.
3390
+ * @throws {RequiredError}
3391
+ */
3392
+ updatePremiumInstance(updatePremiumInstanceRequest) {
3393
+ const options = (0, exports.ParamCreater)().updatePremiumInstance(updatePremiumInstanceRequest);
3394
+ // @ts-ignore
3395
+ options['responseHeaders'] = [''];
3396
+ return this.hcClient.sendRequest(options);
3397
+ }
3097
3398
  /**
3098
3399
  * 更新隐私屏蔽防护规则
3099
3400
  *
@@ -3173,6 +3474,25 @@ class WafClient {
3173
3474
  options['responseHeaders'] = [''];
3174
3475
  return this.hcClient.sendRequest(options);
3175
3476
  }
3477
+ /**
3478
+ * 快速接入,直接去修改用户的DNS记录,使域名快速接入WAF
3479
+ *
3480
+ * Please refer to HUAWEI cloud API Explorer for details.
3481
+ *
3482
+ * @summary 域名快速接入WAF
3483
+ * @param {string} projectid **参数解释:** 项目ID,对应控制台用户名-&gt;我的凭证-&gt;项目列表-&gt;项目ID。 **约束限制:** 不涉及 **取值范围:** 只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及**参数解释:** 项目ID,对应控制台用户名-&gt;我的凭证-&gt;项目列表-&gt;项目ID。 **约束限制:** 不涉及 **取值范围:** 只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
3484
+ * @param {string} instanceid **参数解释:** 域名id。 **约束限制:** 不涉及 **取值范围:** 只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
3485
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
3486
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
3487
+ * @param {*} [options] Override http request option.
3488
+ * @throws {RequiredError}
3489
+ */
3490
+ createQuickAccessDomain(createQuickAccessDomainRequest) {
3491
+ const options = (0, exports.ParamCreater)().createQuickAccessDomain(createQuickAccessDomainRequest);
3492
+ // @ts-ignore
3493
+ options['responseHeaders'] = [''];
3494
+ return this.hcClient.sendRequest(options);
3495
+ }
3176
3496
  /**
3177
3497
  * 根据Id查询Web防护规则
3178
3498
  *
@@ -3195,14 +3515,536 @@ exports.WafClient = WafClient;
3195
3515
  const ParamCreater = function () {
3196
3516
  return {
3197
3517
  /**
3198
- * 绑定证书到域名
3518
+ * 绑定证书到域名
3519
+ *
3520
+ * Please refer to HUAWEI cloud API Explorer for details.
3521
+ */
3522
+ applyCertificateToHost(applyCertificateToHostRequest) {
3523
+ const options = {
3524
+ method: "POST",
3525
+ url: "/v1/{project_id}/waf/certificate/{certificate_id}/apply-to-hosts",
3526
+ contentType: "application/json",
3527
+ queryParams: {},
3528
+ pathParams: {},
3529
+ headers: {},
3530
+ data: {}
3531
+ };
3532
+ const localVarHeaderParameter = {};
3533
+ const localVarQueryParameter = {};
3534
+ let body;
3535
+ let contentType;
3536
+ let certificateId;
3537
+ let enterpriseProjectId;
3538
+ if (applyCertificateToHostRequest !== null && applyCertificateToHostRequest !== undefined) {
3539
+ if (applyCertificateToHostRequest instanceof ApplyCertificateToHostRequest_1.ApplyCertificateToHostRequest) {
3540
+ contentType = applyCertificateToHostRequest.contentType;
3541
+ certificateId = applyCertificateToHostRequest.certificateId;
3542
+ enterpriseProjectId = applyCertificateToHostRequest.enterpriseProjectId;
3543
+ body = applyCertificateToHostRequest.body;
3544
+ }
3545
+ else {
3546
+ contentType = applyCertificateToHostRequest['Content-Type'];
3547
+ certificateId = applyCertificateToHostRequest['certificate_id'];
3548
+ enterpriseProjectId = applyCertificateToHostRequest['enterprise_project_id'];
3549
+ body = applyCertificateToHostRequest['body'];
3550
+ }
3551
+ }
3552
+ if (certificateId === null || certificateId === undefined) {
3553
+ throw new RequiredError('certificateId', 'Required parameter certificateId was null or undefined when calling applyCertificateToHost.');
3554
+ }
3555
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
3556
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
3557
+ }
3558
+ if (contentType !== undefined && contentType !== null) {
3559
+ localVarHeaderParameter['Content-Type'] = String(contentType);
3560
+ }
3561
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3562
+ options.data = body !== undefined ? body : {};
3563
+ options.queryParams = localVarQueryParameter;
3564
+ options.pathParams = { 'certificate_id': certificateId, };
3565
+ options.headers = localVarHeaderParameter;
3566
+ return options;
3567
+ },
3568
+ /**
3569
+ * 选中多个策略为这些策略批量添加网页防篡改规则
3570
+ *
3571
+ * Please refer to HUAWEI cloud API Explorer for details.
3572
+ */
3573
+ batchCreateAntiTamperRule(batchCreateAntiTamperRuleRequest) {
3574
+ const options = {
3575
+ method: "POST",
3576
+ url: "/v1/{project_id}/waf/rule/antitamper",
3577
+ contentType: "application/json",
3578
+ queryParams: {},
3579
+ pathParams: {},
3580
+ headers: {},
3581
+ data: {}
3582
+ };
3583
+ const localVarHeaderParameter = {};
3584
+ const localVarQueryParameter = {};
3585
+ let body;
3586
+ let contentType;
3587
+ let policyids;
3588
+ let enterpriseProjectId;
3589
+ if (batchCreateAntiTamperRuleRequest !== null && batchCreateAntiTamperRuleRequest !== undefined) {
3590
+ if (batchCreateAntiTamperRuleRequest instanceof BatchCreateAntiTamperRuleRequest_1.BatchCreateAntiTamperRuleRequest) {
3591
+ contentType = batchCreateAntiTamperRuleRequest.contentType;
3592
+ body = batchCreateAntiTamperRuleRequest.body;
3593
+ policyids = batchCreateAntiTamperRuleRequest.policyids;
3594
+ enterpriseProjectId = batchCreateAntiTamperRuleRequest.enterpriseProjectId;
3595
+ }
3596
+ else {
3597
+ contentType = batchCreateAntiTamperRuleRequest['Content-Type'];
3598
+ body = batchCreateAntiTamperRuleRequest['body'];
3599
+ policyids = batchCreateAntiTamperRuleRequest['policyids'];
3600
+ enterpriseProjectId = batchCreateAntiTamperRuleRequest['enterprise_project_id'];
3601
+ }
3602
+ }
3603
+ if (body === null || body === undefined) {
3604
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
3605
+ }
3606
+ if (policyids !== null && policyids !== undefined) {
3607
+ localVarQueryParameter['policyids'] = policyids;
3608
+ }
3609
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
3610
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
3611
+ }
3612
+ if (contentType !== undefined && contentType !== null) {
3613
+ localVarHeaderParameter['Content-Type'] = String(contentType);
3614
+ }
3615
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3616
+ options.data = body !== undefined ? body : {};
3617
+ options.queryParams = localVarQueryParameter;
3618
+ options.headers = localVarHeaderParameter;
3619
+ return options;
3620
+ },
3621
+ /**
3622
+ * 选中多个策略为这些策略批量添加防敏感信息泄漏规则
3623
+ *
3624
+ * Please refer to HUAWEI cloud API Explorer for details.
3625
+ */
3626
+ batchCreateAntileakageRule(batchCreateAntileakageRuleRequest) {
3627
+ const options = {
3628
+ method: "POST",
3629
+ url: "/v1/{project_id}/waf/rule/antileakage",
3630
+ contentType: "application/json",
3631
+ queryParams: {},
3632
+ pathParams: {},
3633
+ headers: {},
3634
+ data: {}
3635
+ };
3636
+ const localVarHeaderParameter = {};
3637
+ const localVarQueryParameter = {};
3638
+ let body;
3639
+ let contentType;
3640
+ let policyids;
3641
+ let enterpriseProjectId;
3642
+ if (batchCreateAntileakageRuleRequest !== null && batchCreateAntileakageRuleRequest !== undefined) {
3643
+ if (batchCreateAntileakageRuleRequest instanceof BatchCreateAntileakageRuleRequest_1.BatchCreateAntileakageRuleRequest) {
3644
+ contentType = batchCreateAntileakageRuleRequest.contentType;
3645
+ body = batchCreateAntileakageRuleRequest.body;
3646
+ policyids = batchCreateAntileakageRuleRequest.policyids;
3647
+ enterpriseProjectId = batchCreateAntileakageRuleRequest.enterpriseProjectId;
3648
+ }
3649
+ else {
3650
+ contentType = batchCreateAntileakageRuleRequest['Content-Type'];
3651
+ body = batchCreateAntileakageRuleRequest['body'];
3652
+ policyids = batchCreateAntileakageRuleRequest['policyids'];
3653
+ enterpriseProjectId = batchCreateAntileakageRuleRequest['enterprise_project_id'];
3654
+ }
3655
+ }
3656
+ if (body === null || body === undefined) {
3657
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
3658
+ }
3659
+ if (policyids !== null && policyids !== undefined) {
3660
+ localVarQueryParameter['policyids'] = policyids;
3661
+ }
3662
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
3663
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
3664
+ }
3665
+ if (contentType !== undefined && contentType !== null) {
3666
+ localVarHeaderParameter['Content-Type'] = String(contentType);
3667
+ }
3668
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3669
+ options.data = body !== undefined ? body : {};
3670
+ options.queryParams = localVarQueryParameter;
3671
+ options.headers = localVarHeaderParameter;
3672
+ return options;
3673
+ },
3674
+ /**
3675
+ * 选中多个策略为这些策略批量添加cc规则
3676
+ *
3677
+ * Please refer to HUAWEI cloud API Explorer for details.
3678
+ */
3679
+ batchCreateCcRule(batchCreateCcRuleRequest) {
3680
+ const options = {
3681
+ method: "POST",
3682
+ url: "/v1/{project_id}/waf/rule/cc",
3683
+ contentType: "application/json",
3684
+ queryParams: {},
3685
+ pathParams: {},
3686
+ headers: {},
3687
+ data: {}
3688
+ };
3689
+ const localVarHeaderParameter = {};
3690
+ const localVarQueryParameter = {};
3691
+ let body;
3692
+ let contentType;
3693
+ let policyids;
3694
+ let enterpriseProjectId;
3695
+ if (batchCreateCcRuleRequest !== null && batchCreateCcRuleRequest !== undefined) {
3696
+ if (batchCreateCcRuleRequest instanceof BatchCreateCcRuleRequest_1.BatchCreateCcRuleRequest) {
3697
+ contentType = batchCreateCcRuleRequest.contentType;
3698
+ body = batchCreateCcRuleRequest.body;
3699
+ policyids = batchCreateCcRuleRequest.policyids;
3700
+ enterpriseProjectId = batchCreateCcRuleRequest.enterpriseProjectId;
3701
+ }
3702
+ else {
3703
+ contentType = batchCreateCcRuleRequest['Content-Type'];
3704
+ body = batchCreateCcRuleRequest['body'];
3705
+ policyids = batchCreateCcRuleRequest['policyids'];
3706
+ enterpriseProjectId = batchCreateCcRuleRequest['enterprise_project_id'];
3707
+ }
3708
+ }
3709
+ if (body === null || body === undefined) {
3710
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
3711
+ }
3712
+ if (policyids !== null && policyids !== undefined) {
3713
+ localVarQueryParameter['policyids'] = policyids;
3714
+ }
3715
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
3716
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
3717
+ }
3718
+ if (contentType !== undefined && contentType !== null) {
3719
+ localVarHeaderParameter['Content-Type'] = String(contentType);
3720
+ }
3721
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3722
+ options.data = body !== undefined ? body : {};
3723
+ options.queryParams = localVarQueryParameter;
3724
+ options.headers = localVarHeaderParameter;
3725
+ return options;
3726
+ },
3727
+ /**
3728
+ * 选中多个策略为这些策略批量添加精准防护规则
3729
+ *
3730
+ * Please refer to HUAWEI cloud API Explorer for details.
3731
+ */
3732
+ batchCreateCustomRule(batchCreateCustomRuleRequest) {
3733
+ const options = {
3734
+ method: "POST",
3735
+ url: "/v1/{project_id}/waf/rule/custom",
3736
+ contentType: "application/json",
3737
+ queryParams: {},
3738
+ pathParams: {},
3739
+ headers: {},
3740
+ data: {}
3741
+ };
3742
+ const localVarHeaderParameter = {};
3743
+ const localVarQueryParameter = {};
3744
+ let body;
3745
+ let contentType;
3746
+ let policyids;
3747
+ let enterpriseProjectId;
3748
+ if (batchCreateCustomRuleRequest !== null && batchCreateCustomRuleRequest !== undefined) {
3749
+ if (batchCreateCustomRuleRequest instanceof BatchCreateCustomRuleRequest_1.BatchCreateCustomRuleRequest) {
3750
+ contentType = batchCreateCustomRuleRequest.contentType;
3751
+ body = batchCreateCustomRuleRequest.body;
3752
+ policyids = batchCreateCustomRuleRequest.policyids;
3753
+ enterpriseProjectId = batchCreateCustomRuleRequest.enterpriseProjectId;
3754
+ }
3755
+ else {
3756
+ contentType = batchCreateCustomRuleRequest['Content-Type'];
3757
+ body = batchCreateCustomRuleRequest['body'];
3758
+ policyids = batchCreateCustomRuleRequest['policyids'];
3759
+ enterpriseProjectId = batchCreateCustomRuleRequest['enterprise_project_id'];
3760
+ }
3761
+ }
3762
+ if (body === null || body === undefined) {
3763
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
3764
+ }
3765
+ if (policyids !== null && policyids !== undefined) {
3766
+ localVarQueryParameter['policyids'] = policyids;
3767
+ }
3768
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
3769
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
3770
+ }
3771
+ if (contentType !== undefined && contentType !== null) {
3772
+ localVarHeaderParameter['Content-Type'] = String(contentType);
3773
+ }
3774
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3775
+ options.data = body !== undefined ? body : {};
3776
+ options.queryParams = localVarQueryParameter;
3777
+ options.headers = localVarHeaderParameter;
3778
+ return options;
3779
+ },
3780
+ /**
3781
+ * 选中多个策略为这些策略批量添加地理位置访问控制规则
3782
+ *
3783
+ * Please refer to HUAWEI cloud API Explorer for details.
3784
+ */
3785
+ batchCreateGeoIpRule(batchCreateGeoIpRuleRequest) {
3786
+ const options = {
3787
+ method: "POST",
3788
+ url: "/v1/{project_id}/waf/rule/geoip",
3789
+ contentType: "application/json",
3790
+ queryParams: {},
3791
+ pathParams: {},
3792
+ headers: {},
3793
+ data: {}
3794
+ };
3795
+ const localVarHeaderParameter = {};
3796
+ const localVarQueryParameter = {};
3797
+ let body;
3798
+ let contentType;
3799
+ let enterpriseProjectId;
3800
+ if (batchCreateGeoIpRuleRequest !== null && batchCreateGeoIpRuleRequest !== undefined) {
3801
+ if (batchCreateGeoIpRuleRequest instanceof BatchCreateGeoIpRuleRequest_1.BatchCreateGeoIpRuleRequest) {
3802
+ contentType = batchCreateGeoIpRuleRequest.contentType;
3803
+ body = batchCreateGeoIpRuleRequest.body;
3804
+ enterpriseProjectId = batchCreateGeoIpRuleRequest.enterpriseProjectId;
3805
+ }
3806
+ else {
3807
+ contentType = batchCreateGeoIpRuleRequest['Content-Type'];
3808
+ body = batchCreateGeoIpRuleRequest['body'];
3809
+ enterpriseProjectId = batchCreateGeoIpRuleRequest['enterprise_project_id'];
3810
+ }
3811
+ }
3812
+ if (body === null || body === undefined) {
3813
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
3814
+ }
3815
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
3816
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
3817
+ }
3818
+ if (contentType !== undefined && contentType !== null) {
3819
+ localVarHeaderParameter['Content-Type'] = String(contentType);
3820
+ }
3821
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3822
+ options.data = body !== undefined ? body : {};
3823
+ options.queryParams = localVarQueryParameter;
3824
+ options.headers = localVarHeaderParameter;
3825
+ return options;
3826
+ },
3827
+ /**
3828
+ * 选中多个策略为这些策略批量添加全局白名单规则
3829
+ *
3830
+ * Please refer to HUAWEI cloud API Explorer for details.
3831
+ */
3832
+ batchCreateIgnoreRule(batchCreateIgnoreRuleRequest) {
3833
+ const options = {
3834
+ method: "POST",
3835
+ url: "/v1/{project_id}/waf/rule/ignore",
3836
+ contentType: "application/json",
3837
+ queryParams: {},
3838
+ pathParams: {},
3839
+ headers: {},
3840
+ data: {}
3841
+ };
3842
+ const localVarHeaderParameter = {};
3843
+ const localVarQueryParameter = {};
3844
+ let body;
3845
+ let contentType;
3846
+ let policyids;
3847
+ let enterpriseProjectId;
3848
+ if (batchCreateIgnoreRuleRequest !== null && batchCreateIgnoreRuleRequest !== undefined) {
3849
+ if (batchCreateIgnoreRuleRequest instanceof BatchCreateIgnoreRuleRequest_1.BatchCreateIgnoreRuleRequest) {
3850
+ contentType = batchCreateIgnoreRuleRequest.contentType;
3851
+ body = batchCreateIgnoreRuleRequest.body;
3852
+ policyids = batchCreateIgnoreRuleRequest.policyids;
3853
+ enterpriseProjectId = batchCreateIgnoreRuleRequest.enterpriseProjectId;
3854
+ }
3855
+ else {
3856
+ contentType = batchCreateIgnoreRuleRequest['Content-Type'];
3857
+ body = batchCreateIgnoreRuleRequest['body'];
3858
+ policyids = batchCreateIgnoreRuleRequest['policyids'];
3859
+ enterpriseProjectId = batchCreateIgnoreRuleRequest['enterprise_project_id'];
3860
+ }
3861
+ }
3862
+ if (body === null || body === undefined) {
3863
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
3864
+ }
3865
+ if (policyids !== null && policyids !== undefined) {
3866
+ localVarQueryParameter['policyids'] = policyids;
3867
+ }
3868
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
3869
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
3870
+ }
3871
+ if (contentType !== undefined && contentType !== null) {
3872
+ localVarHeaderParameter['Content-Type'] = String(contentType);
3873
+ }
3874
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3875
+ options.data = body !== undefined ? body : {};
3876
+ options.queryParams = localVarQueryParameter;
3877
+ options.headers = localVarHeaderParameter;
3878
+ return options;
3879
+ },
3880
+ /**
3881
+ * 选中多个策略为这些策略批量添加威胁情报访问控制规则
3882
+ *
3883
+ * Please refer to HUAWEI cloud API Explorer for details.
3884
+ */
3885
+ batchCreateIpReputationRule(batchCreateIpReputationRuleRequest) {
3886
+ const options = {
3887
+ method: "POST",
3888
+ url: "/v1/{project_id}/waf/rule/ip-reputation",
3889
+ contentType: "application/json",
3890
+ queryParams: {},
3891
+ pathParams: {},
3892
+ headers: {},
3893
+ data: {}
3894
+ };
3895
+ const localVarHeaderParameter = {};
3896
+ const localVarQueryParameter = {};
3897
+ let body;
3898
+ let contentType;
3899
+ let policyids;
3900
+ let enterpriseProjectId;
3901
+ if (batchCreateIpReputationRuleRequest !== null && batchCreateIpReputationRuleRequest !== undefined) {
3902
+ if (batchCreateIpReputationRuleRequest instanceof BatchCreateIpReputationRuleRequest_1.BatchCreateIpReputationRuleRequest) {
3903
+ contentType = batchCreateIpReputationRuleRequest.contentType;
3904
+ body = batchCreateIpReputationRuleRequest.body;
3905
+ policyids = batchCreateIpReputationRuleRequest.policyids;
3906
+ enterpriseProjectId = batchCreateIpReputationRuleRequest.enterpriseProjectId;
3907
+ }
3908
+ else {
3909
+ contentType = batchCreateIpReputationRuleRequest['Content-Type'];
3910
+ body = batchCreateIpReputationRuleRequest['body'];
3911
+ policyids = batchCreateIpReputationRuleRequest['policyids'];
3912
+ enterpriseProjectId = batchCreateIpReputationRuleRequest['enterprise_project_id'];
3913
+ }
3914
+ }
3915
+ if (body === null || body === undefined) {
3916
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
3917
+ }
3918
+ if (policyids !== null && policyids !== undefined) {
3919
+ localVarQueryParameter['policyids'] = policyids;
3920
+ }
3921
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
3922
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
3923
+ }
3924
+ if (contentType !== undefined && contentType !== null) {
3925
+ localVarHeaderParameter['Content-Type'] = String(contentType);
3926
+ }
3927
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3928
+ options.data = body !== undefined ? body : {};
3929
+ options.queryParams = localVarQueryParameter;
3930
+ options.headers = localVarHeaderParameter;
3931
+ return options;
3932
+ },
3933
+ /**
3934
+ * 选中多个策略为这些策略批量添加隐私屏蔽防护规则
3935
+ *
3936
+ * Please refer to HUAWEI cloud API Explorer for details.
3937
+ */
3938
+ batchCreatePrivacyRule(batchCreatePrivacyRuleRequest) {
3939
+ const options = {
3940
+ method: "POST",
3941
+ url: "/v1/{project_id}/waf/rule/privacy",
3942
+ contentType: "application/json",
3943
+ queryParams: {},
3944
+ pathParams: {},
3945
+ headers: {},
3946
+ data: {}
3947
+ };
3948
+ const localVarHeaderParameter = {};
3949
+ const localVarQueryParameter = {};
3950
+ let body;
3951
+ let contentType;
3952
+ let policyids;
3953
+ let enterpriseProjectId;
3954
+ if (batchCreatePrivacyRuleRequest !== null && batchCreatePrivacyRuleRequest !== undefined) {
3955
+ if (batchCreatePrivacyRuleRequest instanceof BatchCreatePrivacyRuleRequest_1.BatchCreatePrivacyRuleRequest) {
3956
+ contentType = batchCreatePrivacyRuleRequest.contentType;
3957
+ body = batchCreatePrivacyRuleRequest.body;
3958
+ policyids = batchCreatePrivacyRuleRequest.policyids;
3959
+ enterpriseProjectId = batchCreatePrivacyRuleRequest.enterpriseProjectId;
3960
+ }
3961
+ else {
3962
+ contentType = batchCreatePrivacyRuleRequest['Content-Type'];
3963
+ body = batchCreatePrivacyRuleRequest['body'];
3964
+ policyids = batchCreatePrivacyRuleRequest['policyids'];
3965
+ enterpriseProjectId = batchCreatePrivacyRuleRequest['enterprise_project_id'];
3966
+ }
3967
+ }
3968
+ if (body === null || body === undefined) {
3969
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
3970
+ }
3971
+ if (policyids !== null && policyids !== undefined) {
3972
+ localVarQueryParameter['policyids'] = policyids;
3973
+ }
3974
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
3975
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
3976
+ }
3977
+ if (contentType !== undefined && contentType !== null) {
3978
+ localVarHeaderParameter['Content-Type'] = String(contentType);
3979
+ }
3980
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3981
+ options.data = body !== undefined ? body : {};
3982
+ options.queryParams = localVarQueryParameter;
3983
+ options.headers = localVarHeaderParameter;
3984
+ return options;
3985
+ },
3986
+ /**
3987
+ * 选中多个策略为这些策略批量添加黑白名单防护规则
3988
+ *
3989
+ * Please refer to HUAWEI cloud API Explorer for details.
3990
+ */
3991
+ batchCreateWhiteblackipRule(batchCreateWhiteblackipRuleRequest) {
3992
+ const options = {
3993
+ method: "POST",
3994
+ url: "/v1/{project_id}/waf/rule/whiteblackip",
3995
+ contentType: "application/json",
3996
+ queryParams: {},
3997
+ pathParams: {},
3998
+ headers: {},
3999
+ data: {}
4000
+ };
4001
+ const localVarHeaderParameter = {};
4002
+ const localVarQueryParameter = {};
4003
+ let body;
4004
+ let contentType;
4005
+ let policyids;
4006
+ let enterpriseProjectId;
4007
+ if (batchCreateWhiteblackipRuleRequest !== null && batchCreateWhiteblackipRuleRequest !== undefined) {
4008
+ if (batchCreateWhiteblackipRuleRequest instanceof BatchCreateWhiteblackipRuleRequest_1.BatchCreateWhiteblackipRuleRequest) {
4009
+ contentType = batchCreateWhiteblackipRuleRequest.contentType;
4010
+ body = batchCreateWhiteblackipRuleRequest.body;
4011
+ policyids = batchCreateWhiteblackipRuleRequest.policyids;
4012
+ enterpriseProjectId = batchCreateWhiteblackipRuleRequest.enterpriseProjectId;
4013
+ }
4014
+ else {
4015
+ contentType = batchCreateWhiteblackipRuleRequest['Content-Type'];
4016
+ body = batchCreateWhiteblackipRuleRequest['body'];
4017
+ policyids = batchCreateWhiteblackipRuleRequest['policyids'];
4018
+ enterpriseProjectId = batchCreateWhiteblackipRuleRequest['enterprise_project_id'];
4019
+ }
4020
+ }
4021
+ if (body === null || body === undefined) {
4022
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
4023
+ }
4024
+ if (policyids !== null && policyids !== undefined) {
4025
+ localVarQueryParameter['policyids'] = policyids;
4026
+ }
4027
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
4028
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
4029
+ }
4030
+ if (contentType !== undefined && contentType !== null) {
4031
+ localVarHeaderParameter['Content-Type'] = String(contentType);
4032
+ }
4033
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4034
+ options.data = body !== undefined ? body : {};
4035
+ options.queryParams = localVarQueryParameter;
4036
+ options.headers = localVarHeaderParameter;
4037
+ return options;
4038
+ },
4039
+ /**
4040
+ * 批量删除告警通知
3199
4041
  *
3200
4042
  * Please refer to HUAWEI cloud API Explorer for details.
3201
4043
  */
3202
- applyCertificateToHost(applyCertificateToHostRequest) {
4044
+ batchDeleteAlertNoticeConfig(batchDeleteAlertNoticeConfigRequest) {
3203
4045
  const options = {
3204
4046
  method: "POST",
3205
- url: "/v1/{project_id}/waf/certificate/{certificate_id}/apply-to-hosts",
4047
+ url: "/v2/{project_id}/waf/alert/batch-delete",
3206
4048
  contentType: "application/json",
3207
4049
  queryParams: {},
3208
4050
  pathParams: {},
@@ -3212,28 +4054,34 @@ const ParamCreater = function () {
3212
4054
  const localVarHeaderParameter = {};
3213
4055
  const localVarQueryParameter = {};
3214
4056
  let body;
3215
- let contentType;
3216
- let certificateId;
3217
4057
  let enterpriseProjectId;
3218
- if (applyCertificateToHostRequest !== null && applyCertificateToHostRequest !== undefined) {
3219
- if (applyCertificateToHostRequest instanceof ApplyCertificateToHostRequest_1.ApplyCertificateToHostRequest) {
3220
- contentType = applyCertificateToHostRequest.contentType;
3221
- certificateId = applyCertificateToHostRequest.certificateId;
3222
- enterpriseProjectId = applyCertificateToHostRequest.enterpriseProjectId;
3223
- body = applyCertificateToHostRequest.body;
4058
+ let xLanguage;
4059
+ let contentType;
4060
+ if (batchDeleteAlertNoticeConfigRequest !== null && batchDeleteAlertNoticeConfigRequest !== undefined) {
4061
+ if (batchDeleteAlertNoticeConfigRequest instanceof BatchDeleteAlertNoticeConfigRequest_1.BatchDeleteAlertNoticeConfigRequest) {
4062
+ enterpriseProjectId = batchDeleteAlertNoticeConfigRequest.enterpriseProjectId;
4063
+ xLanguage = batchDeleteAlertNoticeConfigRequest.xLanguage;
4064
+ contentType = batchDeleteAlertNoticeConfigRequest.contentType;
4065
+ body = batchDeleteAlertNoticeConfigRequest.body;
3224
4066
  }
3225
4067
  else {
3226
- contentType = applyCertificateToHostRequest['Content-Type'];
3227
- certificateId = applyCertificateToHostRequest['certificate_id'];
3228
- enterpriseProjectId = applyCertificateToHostRequest['enterprise_project_id'];
3229
- body = applyCertificateToHostRequest['body'];
4068
+ enterpriseProjectId = batchDeleteAlertNoticeConfigRequest['enterpriseProjectId'];
4069
+ xLanguage = batchDeleteAlertNoticeConfigRequest['X-Language'];
4070
+ contentType = batchDeleteAlertNoticeConfigRequest['Content-Type'];
4071
+ body = batchDeleteAlertNoticeConfigRequest['body'];
3230
4072
  }
3231
4073
  }
3232
- if (certificateId === null || certificateId === undefined) {
3233
- throw new RequiredError('certificateId', 'Required parameter certificateId was null or undefined when calling applyCertificateToHost.');
4074
+ if (enterpriseProjectId === null || enterpriseProjectId === undefined) {
4075
+ throw new RequiredError('enterpriseProjectId', 'Required parameter enterpriseProjectId was null or undefined when calling batchDeleteAlertNoticeConfig.');
3234
4076
  }
3235
4077
  if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
3236
- localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
4078
+ localVarQueryParameter['enterpriseProjectId'] = enterpriseProjectId;
4079
+ }
4080
+ if (body === null || body === undefined) {
4081
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
4082
+ }
4083
+ if (xLanguage !== undefined && xLanguage !== null) {
4084
+ localVarHeaderParameter['X-Language'] = String(xLanguage);
3237
4085
  }
3238
4086
  if (contentType !== undefined && contentType !== null) {
3239
4087
  localVarHeaderParameter['Content-Type'] = String(contentType);
@@ -3241,7 +4089,6 @@ const ParamCreater = function () {
3241
4089
  localVarHeaderParameter['Content-Type'] = 'application/json';
3242
4090
  options.data = body !== undefined ? body : {};
3243
4091
  options.queryParams = localVarQueryParameter;
3244
- options.pathParams = { 'certificate_id': certificateId, };
3245
4092
  options.headers = localVarHeaderParameter;
3246
4093
  return options;
3247
4094
  },
@@ -3753,6 +4600,101 @@ const ParamCreater = function () {
3753
4600
  options.headers = localVarHeaderParameter;
3754
4601
  return options;
3755
4602
  },
4603
+ /**
4604
+ * 创建独享引擎的代理
4605
+ *
4606
+ * Please refer to HUAWEI cloud API Explorer for details.
4607
+ */
4608
+ createAgency(createAgencyRequest) {
4609
+ const options = {
4610
+ method: "POST",
4611
+ url: "/v1/{project_id}/premium-waf/agency",
4612
+ contentType: "application/json",
4613
+ queryParams: {},
4614
+ pathParams: {},
4615
+ headers: {},
4616
+ data: {}
4617
+ };
4618
+ const localVarHeaderParameter = {};
4619
+ let body;
4620
+ let contentType;
4621
+ if (createAgencyRequest !== null && createAgencyRequest !== undefined) {
4622
+ if (createAgencyRequest instanceof CreateAgencyRequest_1.CreateAgencyRequest) {
4623
+ contentType = createAgencyRequest.contentType;
4624
+ body = createAgencyRequest.body;
4625
+ }
4626
+ else {
4627
+ contentType = createAgencyRequest['Content-Type'];
4628
+ body = createAgencyRequest['body'];
4629
+ }
4630
+ }
4631
+ if (contentType !== undefined && contentType !== null) {
4632
+ localVarHeaderParameter['Content-Type'] = String(contentType);
4633
+ }
4634
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4635
+ options.data = body !== undefined ? body : {};
4636
+ options.headers = localVarHeaderParameter;
4637
+ return options;
4638
+ },
4639
+ /**
4640
+ * 创建告警通知
4641
+ *
4642
+ * Please refer to HUAWEI cloud API Explorer for details.
4643
+ */
4644
+ createAlertNoticeConfig(createAlertNoticeConfigRequest) {
4645
+ const options = {
4646
+ method: "POST",
4647
+ url: "/v2/{project_id}/waf/alert",
4648
+ contentType: "application/json",
4649
+ queryParams: {},
4650
+ pathParams: {},
4651
+ headers: {},
4652
+ data: {}
4653
+ };
4654
+ const localVarHeaderParameter = {};
4655
+ const localVarQueryParameter = {};
4656
+ let body;
4657
+ let xLanguage;
4658
+ let contentType;
4659
+ let enterpriseProjectId;
4660
+ if (createAlertNoticeConfigRequest !== null && createAlertNoticeConfigRequest !== undefined) {
4661
+ if (createAlertNoticeConfigRequest instanceof CreateAlertNoticeConfigRequest_1.CreateAlertNoticeConfigRequest) {
4662
+ xLanguage = createAlertNoticeConfigRequest.xLanguage;
4663
+ contentType = createAlertNoticeConfigRequest.contentType;
4664
+ enterpriseProjectId = createAlertNoticeConfigRequest.enterpriseProjectId;
4665
+ body = createAlertNoticeConfigRequest.body;
4666
+ }
4667
+ else {
4668
+ xLanguage = createAlertNoticeConfigRequest['X-Language'];
4669
+ contentType = createAlertNoticeConfigRequest['Content-Type'];
4670
+ enterpriseProjectId = createAlertNoticeConfigRequest['enterpriseProjectId'];
4671
+ body = createAlertNoticeConfigRequest['body'];
4672
+ }
4673
+ }
4674
+ if (contentType === null || contentType === undefined) {
4675
+ throw new RequiredError('contentType', 'Required parameter contentType was null or undefined when calling createAlertNoticeConfig.');
4676
+ }
4677
+ if (contentType !== null && contentType !== undefined) {
4678
+ localVarQueryParameter['Content-Type'] = contentType;
4679
+ }
4680
+ if (enterpriseProjectId === null || enterpriseProjectId === undefined) {
4681
+ throw new RequiredError('enterpriseProjectId', 'Required parameter enterpriseProjectId was null or undefined when calling createAlertNoticeConfig.');
4682
+ }
4683
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
4684
+ localVarQueryParameter['enterpriseProjectId'] = enterpriseProjectId;
4685
+ }
4686
+ if (body === null || body === undefined) {
4687
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
4688
+ }
4689
+ if (xLanguage !== undefined && xLanguage !== null) {
4690
+ localVarHeaderParameter['X-Language'] = String(xLanguage);
4691
+ }
4692
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4693
+ options.data = body !== undefined ? body : {};
4694
+ options.queryParams = localVarQueryParameter;
4695
+ options.headers = localVarHeaderParameter;
4696
+ return options;
4697
+ },
3756
4698
  /**
3757
4699
  * 创建防篡改规则
3758
4700
  *
@@ -3986,16 +4928,19 @@ const ParamCreater = function () {
3986
4928
  let body;
3987
4929
  let contentType;
3988
4930
  let enterpriseProjectId;
4931
+ let verifyCertKey;
3989
4932
  if (createCertificateRequest !== null && createCertificateRequest !== undefined) {
3990
4933
  if (createCertificateRequest instanceof CreateCertificateRequest_1.CreateCertificateRequest) {
3991
4934
  contentType = createCertificateRequest.contentType;
3992
4935
  body = createCertificateRequest.body;
3993
4936
  enterpriseProjectId = createCertificateRequest.enterpriseProjectId;
4937
+ verifyCertKey = createCertificateRequest.verifyCertKey;
3994
4938
  }
3995
4939
  else {
3996
4940
  contentType = createCertificateRequest['Content-Type'];
3997
4941
  body = createCertificateRequest['body'];
3998
4942
  enterpriseProjectId = createCertificateRequest['enterprise_project_id'];
4943
+ verifyCertKey = createCertificateRequest['verify_cert_key'];
3999
4944
  }
4000
4945
  }
4001
4946
  if (body === null || body === undefined) {
@@ -4004,6 +4949,9 @@ const ParamCreater = function () {
4004
4949
  if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
4005
4950
  localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
4006
4951
  }
4952
+ if (verifyCertKey !== null && verifyCertKey !== undefined) {
4953
+ localVarQueryParameter['verify_cert_key'] = verifyCertKey;
4954
+ }
4007
4955
  if (contentType !== undefined && contentType !== null) {
4008
4956
  localVarHeaderParameter['Content-Type'] = String(contentType);
4009
4957
  }
@@ -4770,6 +5718,50 @@ const ParamCreater = function () {
4770
5718
  options.headers = localVarHeaderParameter;
4771
5719
  return options;
4772
5720
  },
5721
+ /**
5722
+ * 删除独享引擎的代理
5723
+ *
5724
+ * Please refer to HUAWEI cloud API Explorer for details.
5725
+ */
5726
+ deleteAgency(deleteAgencyRequest) {
5727
+ const options = {
5728
+ method: "DELETE",
5729
+ url: "/v1/{project_id}/premium-waf/agency",
5730
+ contentType: "application/json",
5731
+ queryParams: {},
5732
+ pathParams: {},
5733
+ headers: {}
5734
+ };
5735
+ const localVarHeaderParameter = {};
5736
+ const localVarQueryParameter = {};
5737
+ let contentType;
5738
+ let purged;
5739
+ let roleIdList;
5740
+ if (deleteAgencyRequest !== null && deleteAgencyRequest !== undefined) {
5741
+ if (deleteAgencyRequest instanceof DeleteAgencyRequest_1.DeleteAgencyRequest) {
5742
+ contentType = deleteAgencyRequest.contentType;
5743
+ purged = deleteAgencyRequest.purged;
5744
+ roleIdList = deleteAgencyRequest.roleIdList;
5745
+ }
5746
+ else {
5747
+ contentType = deleteAgencyRequest['Content-Type'];
5748
+ purged = deleteAgencyRequest['purged'];
5749
+ roleIdList = deleteAgencyRequest['role_id_list'];
5750
+ }
5751
+ }
5752
+ if (purged !== null && purged !== undefined) {
5753
+ localVarQueryParameter['purged'] = purged;
5754
+ }
5755
+ if (roleIdList !== null && roleIdList !== undefined) {
5756
+ localVarQueryParameter['role_id_list'] = roleIdList;
5757
+ }
5758
+ if (contentType !== undefined && contentType !== null) {
5759
+ localVarHeaderParameter['Content-Type'] = String(contentType);
5760
+ }
5761
+ options.queryParams = localVarQueryParameter;
5762
+ options.headers = localVarHeaderParameter;
5763
+ return options;
5764
+ },
4773
5765
  /**
4774
5766
  * 删除JS脚本反爬虫防护规则
4775
5767
  *
@@ -6159,6 +7151,10 @@ const ParamCreater = function () {
6159
7151
  let offset;
6160
7152
  let limit;
6161
7153
  let enterpriseProjectId;
7154
+ let name;
7155
+ let status;
7156
+ let category;
7157
+ let tagType;
6162
7158
  if (listCcRulesRequest !== null && listCcRulesRequest !== undefined) {
6163
7159
  if (listCcRulesRequest instanceof ListCcRulesRequest_1.ListCcRulesRequest) {
6164
7160
  contentType = listCcRulesRequest.contentType;
@@ -6166,6 +7162,10 @@ const ParamCreater = function () {
6166
7162
  offset = listCcRulesRequest.offset;
6167
7163
  limit = listCcRulesRequest.limit;
6168
7164
  enterpriseProjectId = listCcRulesRequest.enterpriseProjectId;
7165
+ name = listCcRulesRequest.name;
7166
+ status = listCcRulesRequest.status;
7167
+ category = listCcRulesRequest.category;
7168
+ tagType = listCcRulesRequest.tagType;
6169
7169
  }
6170
7170
  else {
6171
7171
  contentType = listCcRulesRequest['Content-Type'];
@@ -6173,6 +7173,10 @@ const ParamCreater = function () {
6173
7173
  offset = listCcRulesRequest['offset'];
6174
7174
  limit = listCcRulesRequest['limit'];
6175
7175
  enterpriseProjectId = listCcRulesRequest['enterprise_project_id'];
7176
+ name = listCcRulesRequest['name'];
7177
+ status = listCcRulesRequest['status'];
7178
+ category = listCcRulesRequest['category'];
7179
+ tagType = listCcRulesRequest['tag_type'];
6176
7180
  }
6177
7181
  }
6178
7182
  if (policyId === null || policyId === undefined) {
@@ -6193,6 +7197,18 @@ const ParamCreater = function () {
6193
7197
  if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
6194
7198
  localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
6195
7199
  }
7200
+ if (name !== null && name !== undefined) {
7201
+ localVarQueryParameter['name'] = name;
7202
+ }
7203
+ if (status !== null && status !== undefined) {
7204
+ localVarQueryParameter['status'] = status;
7205
+ }
7206
+ if (category !== null && category !== undefined) {
7207
+ localVarQueryParameter['category'] = category;
7208
+ }
7209
+ if (tagType !== null && tagType !== undefined) {
7210
+ localVarQueryParameter['tag_type'] = tagType;
7211
+ }
6196
7212
  if (contentType !== undefined && contentType !== null) {
6197
7213
  localVarHeaderParameter['Content-Type'] = String(contentType);
6198
7214
  }
@@ -10926,6 +11942,66 @@ const ParamCreater = function () {
10926
11942
  options.headers = localVarHeaderParameter;
10927
11943
  return options;
10928
11944
  },
11945
+ /**
11946
+ * 更新IP情报防护规则
11947
+ *
11948
+ * Please refer to HUAWEI cloud API Explorer for details.
11949
+ */
11950
+ updateIpReputationRule(updateIpReputationRuleRequest) {
11951
+ const options = {
11952
+ method: "PUT",
11953
+ url: "/v1/{project_id}/waf/policy/{policy_id}/ip-reputation/{rule_id}",
11954
+ contentType: "application/json",
11955
+ queryParams: {},
11956
+ pathParams: {},
11957
+ headers: {},
11958
+ data: {}
11959
+ };
11960
+ const localVarHeaderParameter = {};
11961
+ const localVarQueryParameter = {};
11962
+ let body;
11963
+ let contentType;
11964
+ let policyId;
11965
+ let ruleId;
11966
+ let enterpriseProjectId;
11967
+ if (updateIpReputationRuleRequest !== null && updateIpReputationRuleRequest !== undefined) {
11968
+ if (updateIpReputationRuleRequest instanceof UpdateIpReputationRuleRequest_1.UpdateIpReputationRuleRequest) {
11969
+ contentType = updateIpReputationRuleRequest.contentType;
11970
+ policyId = updateIpReputationRuleRequest.policyId;
11971
+ ruleId = updateIpReputationRuleRequest.ruleId;
11972
+ body = updateIpReputationRuleRequest.body;
11973
+ enterpriseProjectId = updateIpReputationRuleRequest.enterpriseProjectId;
11974
+ }
11975
+ else {
11976
+ contentType = updateIpReputationRuleRequest['Content-Type'];
11977
+ policyId = updateIpReputationRuleRequest['policy_id'];
11978
+ ruleId = updateIpReputationRuleRequest['rule_id'];
11979
+ body = updateIpReputationRuleRequest['body'];
11980
+ enterpriseProjectId = updateIpReputationRuleRequest['enterprise_project_id'];
11981
+ }
11982
+ }
11983
+ if (policyId === null || policyId === undefined) {
11984
+ throw new RequiredError('policyId', 'Required parameter policyId was null or undefined when calling updateIpReputationRule.');
11985
+ }
11986
+ if (ruleId === null || ruleId === undefined) {
11987
+ throw new RequiredError('ruleId', 'Required parameter ruleId was null or undefined when calling updateIpReputationRule.');
11988
+ }
11989
+ if (body === null || body === undefined) {
11990
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
11991
+ }
11992
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
11993
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
11994
+ }
11995
+ if (contentType !== undefined && contentType !== null) {
11996
+ localVarHeaderParameter['Content-Type'] = String(contentType);
11997
+ }
11998
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11999
+ options.data = body !== undefined ? body : {};
12000
+ options.queryParams = localVarQueryParameter;
12001
+ options.pathParams = { 'policy_id': policyId, 'rule_id': ruleId, };
12002
+ options.headers = localVarHeaderParameter;
12003
+ return options;
12004
+ },
10929
12005
  /**
10930
12006
  * 配置全量日志lts,该接口可用来开启与关闭waf全量日志以及配置日志组和日志流。日志组id和日志流id可前往云日志服务获取。配置的日志流id要属于所配置的日志组。
10931
12007
  *
@@ -11293,6 +12369,43 @@ const ParamCreater = function () {
11293
12369
  options.headers = localVarHeaderParameter;
11294
12370
  return options;
11295
12371
  },
12372
+ /**
12373
+ * 操作WAF独享引擎
12374
+ *
12375
+ * Please refer to HUAWEI cloud API Explorer for details.
12376
+ */
12377
+ updatePremiumInstance(updatePremiumInstanceRequest) {
12378
+ const options = {
12379
+ method: "POST",
12380
+ url: "/v1/{project_id}/premium-waf/instance/{instance_id}/action",
12381
+ contentType: "application/json",
12382
+ queryParams: {},
12383
+ pathParams: {},
12384
+ headers: {},
12385
+ data: {}
12386
+ };
12387
+ const localVarHeaderParameter = {};
12388
+ let body;
12389
+ let instanceId;
12390
+ if (updatePremiumInstanceRequest !== null && updatePremiumInstanceRequest !== undefined) {
12391
+ if (updatePremiumInstanceRequest instanceof UpdatePremiumInstanceRequest_1.UpdatePremiumInstanceRequest) {
12392
+ instanceId = updatePremiumInstanceRequest.instanceId;
12393
+ body = updatePremiumInstanceRequest.body;
12394
+ }
12395
+ else {
12396
+ instanceId = updatePremiumInstanceRequest['instance_id'];
12397
+ body = updatePremiumInstanceRequest['body'];
12398
+ }
12399
+ }
12400
+ if (instanceId === null || instanceId === undefined) {
12401
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling updatePremiumInstance.');
12402
+ }
12403
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12404
+ options.data = body !== undefined ? body : {};
12405
+ options.pathParams = { 'instance_id': instanceId, };
12406
+ options.headers = localVarHeaderParameter;
12407
+ return options;
12408
+ },
11296
12409
  /**
11297
12410
  * 更新隐私屏蔽防护规则
11298
12411
  *
@@ -11524,6 +12637,57 @@ const ParamCreater = function () {
11524
12637
  options.headers = localVarHeaderParameter;
11525
12638
  return options;
11526
12639
  },
12640
+ /**
12641
+ * 快速接入,直接去修改用户的DNS记录,使域名快速接入WAF
12642
+ *
12643
+ * Please refer to HUAWEI cloud API Explorer for details.
12644
+ */
12645
+ createQuickAccessDomain(createQuickAccessDomainRequest) {
12646
+ const options = {
12647
+ method: "POST",
12648
+ url: "/v1/{projectid}/waf/dns-domain/{instanceid}/access",
12649
+ contentType: "application/json",
12650
+ queryParams: {},
12651
+ pathParams: {},
12652
+ headers: {}
12653
+ };
12654
+ const localVarHeaderParameter = {};
12655
+ const localVarQueryParameter = {};
12656
+ let projectid;
12657
+ let instanceid;
12658
+ let contentType;
12659
+ let enterpriseProjectId;
12660
+ if (createQuickAccessDomainRequest !== null && createQuickAccessDomainRequest !== undefined) {
12661
+ if (createQuickAccessDomainRequest instanceof CreateQuickAccessDomainRequest_1.CreateQuickAccessDomainRequest) {
12662
+ projectid = createQuickAccessDomainRequest.projectid;
12663
+ instanceid = createQuickAccessDomainRequest.instanceid;
12664
+ contentType = createQuickAccessDomainRequest.contentType;
12665
+ enterpriseProjectId = createQuickAccessDomainRequest.enterpriseProjectId;
12666
+ }
12667
+ else {
12668
+ projectid = createQuickAccessDomainRequest['projectid'];
12669
+ instanceid = createQuickAccessDomainRequest['instanceid'];
12670
+ contentType = createQuickAccessDomainRequest['Content-Type'];
12671
+ enterpriseProjectId = createQuickAccessDomainRequest['enterprise_project_id'];
12672
+ }
12673
+ }
12674
+ if (projectid === null || projectid === undefined) {
12675
+ throw new RequiredError('projectid', 'Required parameter projectid was null or undefined when calling createQuickAccessDomain.');
12676
+ }
12677
+ if (instanceid === null || instanceid === undefined) {
12678
+ throw new RequiredError('instanceid', 'Required parameter instanceid was null or undefined when calling createQuickAccessDomain.');
12679
+ }
12680
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
12681
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
12682
+ }
12683
+ if (contentType !== undefined && contentType !== null) {
12684
+ localVarHeaderParameter['Content-Type'] = String(contentType);
12685
+ }
12686
+ options.queryParams = localVarQueryParameter;
12687
+ options.pathParams = { 'projectid': projectid, 'instanceid': instanceid, };
12688
+ options.headers = localVarHeaderParameter;
12689
+ return options;
12690
+ },
11527
12691
  /**
11528
12692
  * 根据Id查询Web防护规则
11529
12693
  *