@alicloud/ddosbgp20180720 3.0.0 → 3.1.1

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 (162) hide show
  1. package/dist/client.d.ts +97 -57
  2. package/dist/client.js +155 -57
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AddIpRequest.d.ts +11 -10
  5. package/dist/models/AddIpRequest.js.map +1 -1
  6. package/dist/models/AddIpResponseBody.d.ts +1 -1
  7. package/dist/models/AttachAssetGroupToInstanceRequest.d.ts +2 -2
  8. package/dist/models/AttachAssetGroupToInstanceShrinkRequest.d.ts +2 -2
  9. package/dist/models/AttachToPolicyRequest.d.ts +27 -10
  10. package/dist/models/AttachToPolicyRequest.js.map +1 -1
  11. package/dist/models/AttachToPolicyResponseBody.d.ts +1 -1
  12. package/dist/models/AttachToPolicyShrinkRequest.d.ts +12 -1
  13. package/dist/models/AttachToPolicyShrinkRequest.js.map +1 -1
  14. package/dist/models/CheckAccessLogAuthRequest.d.ts +2 -2
  15. package/dist/models/CheckAccessLogAuthResponseBody.d.ts +4 -5
  16. package/dist/models/CheckAccessLogAuthResponseBody.js.map +1 -1
  17. package/dist/models/CheckGrantRequest.d.ts +4 -3
  18. package/dist/models/CheckGrantRequest.js.map +1 -1
  19. package/dist/models/CheckGrantResponseBody.d.ts +3 -2
  20. package/dist/models/CheckGrantResponseBody.js.map +1 -1
  21. package/dist/models/CreatePolicyRequest.d.ts +15 -5
  22. package/dist/models/CreatePolicyRequest.js.map +1 -1
  23. package/dist/models/CreatePolicyResponseBody.d.ts +2 -2
  24. package/dist/models/DeleteIpRequest.d.ts +8 -10
  25. package/dist/models/DeleteIpRequest.js.map +1 -1
  26. package/dist/models/DeleteIpResponseBody.d.ts +1 -1
  27. package/dist/models/DescribeAssetGroupRequest.d.ts +4 -3
  28. package/dist/models/DescribeAssetGroupRequest.js.map +1 -1
  29. package/dist/models/DescribeAssetGroupToInstanceRequest.d.ts +5 -4
  30. package/dist/models/DescribeAssetGroupToInstanceRequest.js.map +1 -1
  31. package/dist/models/DescribeDdosOriginInstanceBillRequest.d.ts +12 -14
  32. package/dist/models/DescribeDdosOriginInstanceBillRequest.js.map +1 -1
  33. package/dist/models/DescribeDdosOriginInstanceBillResponseBody.d.ts +72 -85
  34. package/dist/models/DescribeDdosOriginInstanceBillResponseBody.js.map +1 -1
  35. package/dist/models/DescribeInstanceListRequest.d.ts +28 -29
  36. package/dist/models/DescribeInstanceListRequest.js.map +1 -1
  37. package/dist/models/DescribeInstanceListResponseBody.d.ts +46 -42
  38. package/dist/models/DescribeInstanceListResponseBody.js +2 -0
  39. package/dist/models/DescribeInstanceListResponseBody.js.map +1 -1
  40. package/dist/models/DescribeNetworkLayerInterceptsRequest.d.ts +107 -0
  41. package/dist/models/DescribeNetworkLayerInterceptsRequest.js +78 -0
  42. package/dist/models/DescribeNetworkLayerInterceptsRequest.js.map +1 -0
  43. package/dist/models/DescribeNetworkLayerInterceptsResponse.d.ts +19 -0
  44. package/dist/models/DescribeNetworkLayerInterceptsResponse.js +69 -0
  45. package/dist/models/DescribeNetworkLayerInterceptsResponse.js.map +1 -0
  46. package/dist/models/DescribeNetworkLayerInterceptsResponseBody.d.ts +144 -0
  47. package/dist/models/DescribeNetworkLayerInterceptsResponseBody.js +106 -0
  48. package/dist/models/DescribeNetworkLayerInterceptsResponseBody.js.map +1 -0
  49. package/dist/models/DescribePackIpListRequest.d.ts +14 -11
  50. package/dist/models/DescribePackIpListRequest.js.map +1 -1
  51. package/dist/models/DescribePackIpListResponseBody.d.ts +28 -22
  52. package/dist/models/DescribePackIpListResponseBody.js.map +1 -1
  53. package/dist/models/DescribeRdMemberListRequest.d.ts +1 -1
  54. package/dist/models/DescribeRdMemberListResponseBody.d.ts +2 -2
  55. package/dist/models/DescribeRdStatusResponseBody.d.ts +5 -3
  56. package/dist/models/DescribeRdStatusResponseBody.js.map +1 -1
  57. package/dist/models/DescribeRegionsRequest.d.ts +4 -4
  58. package/dist/models/DescribeRegionsResponseBody.d.ts +5 -6
  59. package/dist/models/DescribeRegionsResponseBody.js.map +1 -1
  60. package/dist/models/DescribeTrafficRequest.d.ts +16 -21
  61. package/dist/models/DescribeTrafficRequest.js.map +1 -1
  62. package/dist/models/DescribeTrafficResponseBody.d.ts +11 -12
  63. package/dist/models/DescribeTrafficResponseBody.js.map +1 -1
  64. package/dist/models/DetachFromPolicyRequest.d.ts +26 -8
  65. package/dist/models/DetachFromPolicyRequest.js.map +1 -1
  66. package/dist/models/DetachFromPolicyResponseBody.d.ts +1 -1
  67. package/dist/models/DetachFromPolicyShrinkRequest.d.ts +16 -6
  68. package/dist/models/DetachFromPolicyShrinkRequest.js.map +1 -1
  69. package/dist/models/DettachAssetGroupToInstanceRequest.d.ts +5 -4
  70. package/dist/models/DettachAssetGroupToInstanceRequest.js.map +1 -1
  71. package/dist/models/DettachAssetGroupToInstanceShrinkRequest.d.ts +2 -2
  72. package/dist/models/GetSlsOpenStatusRequest.d.ts +1 -1
  73. package/dist/models/GetSlsOpenStatusResponseBody.d.ts +4 -4
  74. package/dist/models/ListOpenedAccessLogInstancesRequest.d.ts +3 -3
  75. package/dist/models/ListOpenedAccessLogInstancesResponseBody.d.ts +7 -7
  76. package/dist/models/ListPolicyAttachmentRequest.d.ts +27 -11
  77. package/dist/models/ListPolicyAttachmentRequest.js.map +1 -1
  78. package/dist/models/ListPolicyAttachmentResponseBody.d.ts +19 -13
  79. package/dist/models/ListPolicyAttachmentResponseBody.js.map +1 -1
  80. package/dist/models/ListPolicyAttachmentShrinkRequest.d.ts +18 -9
  81. package/dist/models/ListPolicyAttachmentShrinkRequest.js.map +1 -1
  82. package/dist/models/ListPolicyRequest.d.ts +5 -16
  83. package/dist/models/ListPolicyRequest.js.map +1 -1
  84. package/dist/models/ListPolicyResponseBody.d.ts +182 -94
  85. package/dist/models/ListPolicyResponseBody.js +41 -1
  86. package/dist/models/ListPolicyResponseBody.js.map +1 -1
  87. package/dist/models/ModifyPolicyContentRequest.d.ts +176 -90
  88. package/dist/models/ModifyPolicyContentRequest.js +41 -1
  89. package/dist/models/ModifyPolicyContentRequest.js.map +1 -1
  90. package/dist/models/ModifyPolicyContentResponseBody.d.ts +1 -1
  91. package/dist/models/ModifyPolicyContentShrinkRequest.d.ts +9 -2
  92. package/dist/models/ModifyPolicyContentShrinkRequest.js.map +1 -1
  93. package/dist/models/ModifyPolicyRequest.d.ts +181 -118
  94. package/dist/models/ModifyPolicyRequest.js +41 -1
  95. package/dist/models/ModifyPolicyRequest.js.map +1 -1
  96. package/dist/models/ModifyPolicyResponseBody.d.ts +1 -1
  97. package/dist/models/ModifyPolicyShrinkRequest.d.ts +10 -26
  98. package/dist/models/ModifyPolicyShrinkRequest.js.map +1 -1
  99. package/dist/models/ModifyRemarkRequest.d.ts +5 -7
  100. package/dist/models/ModifyRemarkRequest.js.map +1 -1
  101. package/dist/models/ReleaseDdosOriginInstanceRequest.d.ts +1 -1
  102. package/dist/models/model.d.ts +7 -0
  103. package/dist/models/model.js +34 -20
  104. package/dist/models/model.js.map +1 -1
  105. package/package.json +2 -2
  106. package/src/client.ts +168 -57
  107. package/src/models/AddIpRequest.ts +11 -10
  108. package/src/models/AddIpResponseBody.ts +1 -1
  109. package/src/models/AttachAssetGroupToInstanceRequest.ts +2 -2
  110. package/src/models/AttachAssetGroupToInstanceShrinkRequest.ts +2 -2
  111. package/src/models/AttachToPolicyRequest.ts +27 -10
  112. package/src/models/AttachToPolicyResponseBody.ts +1 -1
  113. package/src/models/AttachToPolicyShrinkRequest.ts +12 -1
  114. package/src/models/CheckAccessLogAuthRequest.ts +2 -2
  115. package/src/models/CheckAccessLogAuthResponseBody.ts +4 -5
  116. package/src/models/CheckGrantRequest.ts +4 -3
  117. package/src/models/CheckGrantResponseBody.ts +3 -2
  118. package/src/models/CreatePolicyRequest.ts +15 -5
  119. package/src/models/CreatePolicyResponseBody.ts +2 -2
  120. package/src/models/DeleteIpRequest.ts +8 -10
  121. package/src/models/DeleteIpResponseBody.ts +1 -1
  122. package/src/models/DescribeAssetGroupRequest.ts +4 -3
  123. package/src/models/DescribeAssetGroupToInstanceRequest.ts +5 -4
  124. package/src/models/DescribeDdosOriginInstanceBillRequest.ts +12 -14
  125. package/src/models/DescribeDdosOriginInstanceBillResponseBody.ts +72 -85
  126. package/src/models/DescribeInstanceListRequest.ts +28 -29
  127. package/src/models/DescribeInstanceListResponseBody.ts +48 -42
  128. package/src/models/DescribeNetworkLayerInterceptsRequest.ts +140 -0
  129. package/src/models/DescribeNetworkLayerInterceptsResponse.ts +40 -0
  130. package/src/models/DescribeNetworkLayerInterceptsResponseBody.ts +196 -0
  131. package/src/models/DescribePackIpListRequest.ts +14 -11
  132. package/src/models/DescribePackIpListResponseBody.ts +28 -22
  133. package/src/models/DescribeRdMemberListRequest.ts +1 -1
  134. package/src/models/DescribeRdMemberListResponseBody.ts +2 -2
  135. package/src/models/DescribeRdStatusResponseBody.ts +5 -3
  136. package/src/models/DescribeRegionsRequest.ts +4 -4
  137. package/src/models/DescribeRegionsResponseBody.ts +5 -6
  138. package/src/models/DescribeTrafficRequest.ts +16 -21
  139. package/src/models/DescribeTrafficResponseBody.ts +11 -12
  140. package/src/models/DetachFromPolicyRequest.ts +26 -8
  141. package/src/models/DetachFromPolicyResponseBody.ts +1 -1
  142. package/src/models/DetachFromPolicyShrinkRequest.ts +16 -6
  143. package/src/models/DettachAssetGroupToInstanceRequest.ts +5 -4
  144. package/src/models/DettachAssetGroupToInstanceShrinkRequest.ts +2 -2
  145. package/src/models/GetSlsOpenStatusRequest.ts +1 -1
  146. package/src/models/GetSlsOpenStatusResponseBody.ts +4 -4
  147. package/src/models/ListOpenedAccessLogInstancesRequest.ts +3 -3
  148. package/src/models/ListOpenedAccessLogInstancesResponseBody.ts +7 -7
  149. package/src/models/ListPolicyAttachmentRequest.ts +27 -11
  150. package/src/models/ListPolicyAttachmentResponseBody.ts +19 -13
  151. package/src/models/ListPolicyAttachmentShrinkRequest.ts +18 -9
  152. package/src/models/ListPolicyRequest.ts +5 -16
  153. package/src/models/ListPolicyResponseBody.ts +213 -94
  154. package/src/models/ModifyPolicyContentRequest.ts +207 -90
  155. package/src/models/ModifyPolicyContentResponseBody.ts +1 -1
  156. package/src/models/ModifyPolicyContentShrinkRequest.ts +9 -2
  157. package/src/models/ModifyPolicyRequest.ts +212 -118
  158. package/src/models/ModifyPolicyResponseBody.ts +1 -1
  159. package/src/models/ModifyPolicyShrinkRequest.ts +10 -26
  160. package/src/models/ModifyRemarkRequest.ts +5 -7
  161. package/src/models/ReleaseDdosOriginInstanceRequest.ts +1 -1
  162. package/src/models/model.ts +7 -0
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class ModifyPolicyContentRequestContentFingerPrintRuleList extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * The end of the destination port range. Valid values: **0** to **65535**.
5
+ * The end value of the destination port range. Valid values: **0** to **65535**.
6
6
  *
7
7
  * This parameter is required.
8
8
  *
@@ -12,7 +12,7 @@ export declare class ModifyPolicyContentRequestContentFingerPrintRuleList extend
12
12
  dstPortEnd?: number;
13
13
  /**
14
14
  * @remarks
15
- * The start of the destination port range. Valid values: **0** to **65535**.
15
+ * The start value of the destination port range. Valid values: **0** to **65535**.
16
16
  *
17
17
  * This parameter is required.
18
18
  *
@@ -22,7 +22,7 @@ export declare class ModifyPolicyContentRequestContentFingerPrintRuleList extend
22
22
  dstPortStart?: number;
23
23
  /**
24
24
  * @remarks
25
- * The ID of the rule.
25
+ * The rule ID.
26
26
  *
27
27
  * @example
28
28
  * 83967609-7ea5-4f6d-a6ea-380b09e****
@@ -30,12 +30,7 @@ export declare class ModifyPolicyContentRequestContentFingerPrintRuleList extend
30
30
  id?: string;
31
31
  /**
32
32
  * @remarks
33
- * The action triggered if the rule is matched. Valid values:
34
- *
35
- * * **permit**: allows the traffic that matches the conditions in the byte-match filter rule.
36
- * * **drop**: discards the traffic that matches the conditions in the byte-match filter rule.
37
- * * **ip_rate**: limits rates on the source IP address whose traffic matches the conditions in the byte-match filter rule. The rate limit is specified by **RateValue**.
38
- * * **session_rate**: limits the number of sessions from the source IP address whose traffic matches the conditions in the byte-match filter rule. The rate limit is specified by **RateValue**.
33
+ * The action to take when a fingerprint match is found. Valid values:
39
34
  *
40
35
  * This parameter is required.
41
36
  *
@@ -73,7 +68,7 @@ export declare class ModifyPolicyContentRequestContentFingerPrintRuleList extend
73
68
  offset?: number;
74
69
  /**
75
70
  * @remarks
76
- * The payload. The value is a hexadecimal string.
71
+ * The detection payload, expressed in hexadecimal string format.
77
72
  *
78
73
  * @example
79
74
  * abcd
@@ -83,9 +78,6 @@ export declare class ModifyPolicyContentRequestContentFingerPrintRuleList extend
83
78
  * @remarks
84
79
  * The protocol type. Valid values:
85
80
  *
86
- * * **tcp**
87
- * * **udp**
88
- *
89
81
  * This parameter is required.
90
82
  *
91
83
  * @example
@@ -94,9 +86,7 @@ export declare class ModifyPolicyContentRequestContentFingerPrintRuleList extend
94
86
  protocol?: string;
95
87
  /**
96
88
  * @remarks
97
- * The rate limit. Valid values: **1** to **100000**.
98
- *
99
- * > This parameter is required when **MatchAction** is set to **ip_rate** or **session_rate**.
89
+ * The rate limit value. Valid values: **1** to **100000**.
100
90
  *
101
91
  * @example
102
92
  * 100
@@ -104,9 +94,7 @@ export declare class ModifyPolicyContentRequestContentFingerPrintRuleList extend
104
94
  rateValue?: number;
105
95
  /**
106
96
  * @remarks
107
- * The sequence number that indicates the order for the rule to take effect. The value is an integer.
108
- *
109
- * > A smaller number indicates a higher priority.
97
+ * The priority number, expressed as an integer.
110
98
  *
111
99
  * This parameter is required.
112
100
  *
@@ -116,7 +104,7 @@ export declare class ModifyPolicyContentRequestContentFingerPrintRuleList extend
116
104
  seqNo?: number;
117
105
  /**
118
106
  * @remarks
119
- * The end of the source port range. Valid values: **0** to **65535**.
107
+ * The end value of the source port range. Valid values: **0** to **65535**.
120
108
  *
121
109
  * This parameter is required.
122
110
  *
@@ -126,7 +114,7 @@ export declare class ModifyPolicyContentRequestContentFingerPrintRuleList extend
126
114
  srcPortEnd?: number;
127
115
  /**
128
116
  * @remarks
129
- * The start of the source port range. Valid values: **0** to **65535**.
117
+ * The start value of the source port range. Valid values: **0** to **65535**.
130
118
  *
131
119
  * This parameter is required.
132
120
  *
@@ -146,7 +134,21 @@ export declare class ModifyPolicyContentRequestContentFingerPrintRuleList extend
146
134
  });
147
135
  }
148
136
  export declare class ModifyPolicyContentRequestContentL4RuleListConditionListOffset extends $dara.Model {
137
+ /**
138
+ * @remarks
139
+ * The end position. Valid values: **0** to **1499**.
140
+ *
141
+ * @example
142
+ * 1499
143
+ */
149
144
  end?: number;
145
+ /**
146
+ * @remarks
147
+ * The start position. Valid values: **0** to **1499**.
148
+ *
149
+ * @example
150
+ * 0
151
+ */
150
152
  start?: number;
151
153
  static names(): {
152
154
  [key: string]: string;
@@ -162,29 +164,52 @@ export declare class ModifyPolicyContentRequestContentL4RuleListConditionListOff
162
164
  export declare class ModifyPolicyContentRequestContentL4RuleListConditionList extends $dara.Model {
163
165
  /**
164
166
  * @remarks
165
- * The term that is used for matching.
166
- *
167
- * > If Method is set to **char**, the value of this parameter must be ASCII strings. If Method is set to **hex**, the value of this parameter must be hexadecimal strings. Maximum length: 2,048.
167
+ * The detection content.
168
168
  *
169
169
  * @example
170
170
  * abcd
171
171
  */
172
172
  arg?: string;
173
+ /**
174
+ * @remarks
175
+ * The matching content.
176
+ *
177
+ * @example
178
+ * test**
179
+ */
173
180
  content?: string;
174
181
  /**
175
182
  * @remarks
176
- * The number of bytes from the start position for matching. Valid values: **1** to **2048**.
183
+ * The detection window length. Valid values: **1** to **2048**.
177
184
  *
178
185
  * @example
179
186
  * 1200
180
187
  */
181
188
  depth?: number;
189
+ /**
190
+ * @remarks
191
+ * The character type. Valid values:
192
+ *
193
+ * @example
194
+ * str
195
+ */
182
196
  encode?: string;
197
+ /**
198
+ * @remarks
199
+ * The matching range.
200
+ */
183
201
  offset?: ModifyPolicyContentRequestContentL4RuleListConditionListOffset;
202
+ /**
203
+ * @remarks
204
+ * The matching pattern. Valid values:
205
+ *
206
+ * @example
207
+ * contain
208
+ */
184
209
  pattern?: string;
185
210
  /**
186
211
  * @remarks
187
- * The start position for matching. Valid values: **0** to **2047**.
212
+ * The detection start position. Valid values: **0** to **2047**.
188
213
  *
189
214
  * @example
190
215
  * 0
@@ -204,9 +229,7 @@ export declare class ModifyPolicyContentRequestContentL4RuleListConditionList ex
204
229
  export declare class ModifyPolicyContentRequestContentL4RuleList extends $dara.Model {
205
230
  /**
206
231
  * @remarks
207
- * The action that is specified in the rule. Valid value:
208
- *
209
- * * **2**: The traffic is discarded.
232
+ * The action.
210
233
  *
211
234
  * @example
212
235
  * 2
@@ -214,12 +237,12 @@ export declare class ModifyPolicyContentRequestContentL4RuleList extends $dara.M
214
237
  action?: string;
215
238
  /**
216
239
  * @remarks
217
- * The match conditions.
240
+ * The list of detection conditions.
218
241
  */
219
242
  conditionList?: ModifyPolicyContentRequestContentL4RuleListConditionList[];
220
243
  /**
221
244
  * @remarks
222
- * The minimum number of bytes in a session to trigger matching. Valid values: **0** to **2048**.
245
+ * The minimum number of bytes in a session flow that triggers rule matching. Valid values: **0** to **2048**.
223
246
  *
224
247
  * @example
225
248
  * 0
@@ -227,10 +250,7 @@ export declare class ModifyPolicyContentRequestContentL4RuleList extends $dara.M
227
250
  limited?: number;
228
251
  /**
229
252
  * @remarks
230
- * The condition based on which an action is performed. Valid values:
231
- *
232
- * * **0**: If the rule is matched, the action specified in the rule is performed.
233
- * * **1**: If the rule is not matched, the action specified in the rule is performed.
253
+ * The logical operator. Valid values:
234
254
  *
235
255
  * @example
236
256
  * 0
@@ -238,10 +258,7 @@ export declare class ModifyPolicyContentRequestContentL4RuleList extends $dara.M
238
258
  match?: string;
239
259
  /**
240
260
  * @remarks
241
- * The type of the rule. Valid values:
242
- *
243
- * * **char**: string match.
244
- * * **hex**: hexadecimal string match.
261
+ * The rule type. Valid values:
245
262
  *
246
263
  * @example
247
264
  * char
@@ -249,7 +266,7 @@ export declare class ModifyPolicyContentRequestContentL4RuleList extends $dara.M
249
266
  method?: string;
250
267
  /**
251
268
  * @remarks
252
- * The name of the rule.
269
+ * The rule name.
253
270
  *
254
271
  * This parameter is required.
255
272
  *
@@ -259,9 +276,7 @@ export declare class ModifyPolicyContentRequestContentL4RuleList extends $dara.M
259
276
  name?: string;
260
277
  /**
261
278
  * @remarks
262
- * The priority of the rule. Valid values: 1 to 100.
263
- *
264
- * > A smaller value indicates a higher priority.
279
+ * The rule priority. Valid values: 1 to 100.
265
280
  *
266
281
  * @example
267
282
  * 1
@@ -281,7 +296,7 @@ export declare class ModifyPolicyContentRequestContentL4RuleList extends $dara.M
281
296
  export declare class ModifyPolicyContentRequestContentPortRuleList extends $dara.Model {
282
297
  /**
283
298
  * @remarks
284
- * The end of the destination port range. Valid values: **0** to **65535**.
299
+ * The end value of the destination port range. Valid values: **0** to **65535**.
285
300
  *
286
301
  * This parameter is required.
287
302
  *
@@ -291,7 +306,7 @@ export declare class ModifyPolicyContentRequestContentPortRuleList extends $dara
291
306
  dstPortEnd?: number;
292
307
  /**
293
308
  * @remarks
294
- * The start of the destination port range. Valid values: **0** to **65535**.
309
+ * The start value of the destination port range. Valid values: **0** to **65535**.
295
310
  *
296
311
  * This parameter is required.
297
312
  *
@@ -301,7 +316,7 @@ export declare class ModifyPolicyContentRequestContentPortRuleList extends $dara
301
316
  dstPortStart?: number;
302
317
  /**
303
318
  * @remarks
304
- * The ID of the rule.
319
+ * The rule ID.
305
320
  *
306
321
  * @example
307
322
  * 412a7312-58ff-4e32-a202-0ab0*******
@@ -309,9 +324,7 @@ export declare class ModifyPolicyContentRequestContentPortRuleList extends $dara
309
324
  id?: string;
310
325
  /**
311
326
  * @remarks
312
- * The action triggered if the rule is matched. Valid values:
313
- *
314
- * * **drop**: The traffic is discarded.
327
+ * The match action. Valid values:
315
328
  *
316
329
  * This parameter is required.
317
330
  *
@@ -323,9 +336,6 @@ export declare class ModifyPolicyContentRequestContentPortRuleList extends $dara
323
336
  * @remarks
324
337
  * The protocol type. Valid values:
325
338
  *
326
- * * **tcp**
327
- * * **udp**
328
- *
329
339
  * This parameter is required.
330
340
  *
331
341
  * @example
@@ -334,9 +344,7 @@ export declare class ModifyPolicyContentRequestContentPortRuleList extends $dara
334
344
  protocol?: string;
335
345
  /**
336
346
  * @remarks
337
- * The sequence number that indicates the order for the rule to take effect. The value is an integer.
338
- *
339
- * > A smaller number indicates a higher priority.
347
+ * The priority number, expressed as an integer.
340
348
  *
341
349
  * This parameter is required.
342
350
  *
@@ -346,7 +354,7 @@ export declare class ModifyPolicyContentRequestContentPortRuleList extends $dara
346
354
  seqNo?: number;
347
355
  /**
348
356
  * @remarks
349
- * The end of the source port range. Valid values: **0** to **65535**.
357
+ * The end value of the source port range. Valid values: **0** to **65535**.
350
358
  *
351
359
  * This parameter is required.
352
360
  *
@@ -356,7 +364,7 @@ export declare class ModifyPolicyContentRequestContentPortRuleList extends $dara
356
364
  srcPortEnd?: number;
357
365
  /**
358
366
  * @remarks
359
- * The start of the source port range. Valid values: **0** to **65535**.
367
+ * The start value of the source port range. Valid values: **0** to **65535**.
360
368
  *
361
369
  * This parameter is required.
362
370
  *
@@ -375,10 +383,85 @@ export declare class ModifyPolicyContentRequestContentPortRuleList extends $dara
375
383
  [key: string]: any;
376
384
  });
377
385
  }
386
+ export declare class ModifyPolicyContentRequestContentSipDefense extends $dara.Model {
387
+ /**
388
+ * @remarks
389
+ * Specifies whether to enable SIP protection. Valid values:
390
+ *
391
+ * @example
392
+ * true
393
+ */
394
+ enable?: boolean;
395
+ /**
396
+ * @remarks
397
+ * The SIP protection level.
398
+ *
399
+ * @example
400
+ * normal
401
+ */
402
+ level?: string;
403
+ /**
404
+ * @remarks
405
+ * Specifies whether to enable SIP defense mode.
406
+ */
407
+ sipDefend?: boolean;
408
+ /**
409
+ * @remarks
410
+ * Specifies whether to enable SIP learning mode.
411
+ */
412
+ sipLearn?: boolean;
413
+ /**
414
+ * @remarks
415
+ * Specifies whether to enable the SIP source rate limiting module.
416
+ */
417
+ sipModule?: boolean;
418
+ /**
419
+ * @remarks
420
+ * The SIP protection port. Valid values: **1** to **65535**.
421
+ *
422
+ * @example
423
+ * 5060
424
+ */
425
+ sipPort?: string;
426
+ /**
427
+ * @remarks
428
+ * The SIP source rate limit value in PPS.
429
+ *
430
+ * @example
431
+ * 1000
432
+ */
433
+ sipRate?: number;
434
+ /**
435
+ * @remarks
436
+ * The SIP activation threshold in Mbit/s.
437
+ *
438
+ * @example
439
+ * 100
440
+ */
441
+ sipStartMbps?: number;
442
+ /**
443
+ * @remarks
444
+ * The SIP activation threshold in PPS.
445
+ *
446
+ * @example
447
+ * 500
448
+ */
449
+ sipStartPps?: number;
450
+ static names(): {
451
+ [key: string]: string;
452
+ };
453
+ static types(): {
454
+ [key: string]: any;
455
+ };
456
+ validate(): void;
457
+ constructor(map?: {
458
+ [key: string]: any;
459
+ });
460
+ }
378
461
  export declare class ModifyPolicyContentRequestContentSourceBlockList extends $dara.Model {
379
462
  /**
380
463
  * @remarks
381
- * The validity period of the blacklist to which the source IP address is added. Unit: seconds.
464
+ * The duration for which the source IP address is added to the blacklist. Unit: seconds.
382
465
  *
383
466
  * This parameter is required.
384
467
  *
@@ -388,7 +471,7 @@ export declare class ModifyPolicyContentRequestContentSourceBlockList extends $d
388
471
  blockExpireSeconds?: number;
389
472
  /**
390
473
  * @remarks
391
- * The statistical period during which the system collects data on source IP addresses to determine whether to add the source IP addresses to the blacklist. Unit: seconds.
474
+ * The statistical period for source rate limiting blacklisting. Unit: seconds.
392
475
  *
393
476
  * This parameter is required.
394
477
  *
@@ -398,7 +481,7 @@ export declare class ModifyPolicyContentRequestContentSourceBlockList extends $d
398
481
  everySeconds?: number;
399
482
  /**
400
483
  * @remarks
401
- * The number of times that the source IP address exceeds a limit in a statistical period.
484
+ * The number of times the source IP address exceeds the rate limit within one statistical period.
402
485
  *
403
486
  * This parameter is required.
404
487
  *
@@ -408,12 +491,7 @@ export declare class ModifyPolicyContentRequestContentSourceBlockList extends $d
408
491
  exceedLimitTimes?: number;
409
492
  /**
410
493
  * @remarks
411
- * The type of the source rate limit. Valid values:
412
- *
413
- * * **3**: the pps limit on source IP addresses.
414
- * * **4**: the bandwidth limit on source IP addresses.
415
- * * **5**: the pps limit on source SYN packets.
416
- * * **6**: the bandwidth limit on source SYN packets.
494
+ * The source rate limiting type. Valid values:
417
495
  *
418
496
  * This parameter is required.
419
497
  *
@@ -435,7 +513,7 @@ export declare class ModifyPolicyContentRequestContentSourceBlockList extends $d
435
513
  export declare class ModifyPolicyContentRequestContentSourceLimit extends $dara.Model {
436
514
  /**
437
515
  * @remarks
438
- * The bandwidth limit on source IP addresses. Unit: bytes per second.
516
+ * The source bandwidth throttling value, in bytes per second.
439
517
  *
440
518
  * @example
441
519
  * 2048
@@ -443,7 +521,7 @@ export declare class ModifyPolicyContentRequestContentSourceLimit extends $dara.
443
521
  bps?: number;
444
522
  /**
445
523
  * @remarks
446
- * The packets per second (pps) limit on source IP addresses.
524
+ * The source PPS rate limit, in packets per second.
447
525
  *
448
526
  * @example
449
527
  * 64
@@ -451,7 +529,7 @@ export declare class ModifyPolicyContentRequestContentSourceLimit extends $dara.
451
529
  pps?: number;
452
530
  /**
453
531
  * @remarks
454
- * The bandwidth limit on source SYN packets. Unit: bytes per second.
532
+ * The source SYN bandwidth throttling value, in bytes per second.
455
533
  *
456
534
  * @example
457
535
  * 2048
@@ -459,7 +537,7 @@ export declare class ModifyPolicyContentRequestContentSourceLimit extends $dara.
459
537
  synBps?: number;
460
538
  /**
461
539
  * @remarks
462
- * The pps limit on source SYN packets.
540
+ * The source SYN PPS rate limit, in packets per second.
463
541
  *
464
542
  * @example
465
543
  * 64
@@ -479,7 +557,7 @@ export declare class ModifyPolicyContentRequestContentSourceLimit extends $dara.
479
557
  export declare class ModifyPolicyContentRequestContent extends $dara.Model {
480
558
  /**
481
559
  * @remarks
482
- * The validity period of the IP address blacklist. The value is a UNIX timestamp.
560
+ * The expiration time of the IP blacklist (UNIX timestamp).
483
561
  *
484
562
  * @example
485
563
  * 1716878000
@@ -487,7 +565,7 @@ export declare class ModifyPolicyContentRequestContent extends $dara.Model {
487
565
  blackIpListExpireAt?: number;
488
566
  /**
489
567
  * @remarks
490
- * Specifies whether to enable ICMP blocking.
568
+ * Specifies whether to disable the ICMP protocol.
491
569
  *
492
570
  * @example
493
571
  * true
@@ -495,7 +573,7 @@ export declare class ModifyPolicyContentRequestContent extends $dara.Model {
495
573
  enableDropIcmp?: boolean;
496
574
  /**
497
575
  * @remarks
498
- * Specifies whether to enable intelligent protection.
576
+ * Specifies whether to enable AI-based intelligent protection.
499
577
  *
500
578
  * @example
501
579
  * true
@@ -503,7 +581,7 @@ export declare class ModifyPolicyContentRequestContent extends $dara.Model {
503
581
  enableIntelligence?: boolean;
504
582
  /**
505
583
  * @remarks
506
- * Specifies whether to enable port-specific mitigation.
584
+ * Specifies whether to enable port protection.
507
585
  *
508
586
  * @example
509
587
  * true
@@ -511,16 +589,12 @@ export declare class ModifyPolicyContentRequestContent extends $dara.Model {
511
589
  enableL4Defense?: boolean;
512
590
  /**
513
591
  * @remarks
514
- * The byte-match filter rules.
592
+ * The list of byte-match filter rules.
515
593
  */
516
594
  fingerPrintRuleList?: ModifyPolicyContentRequestContentFingerPrintRuleList[];
517
595
  /**
518
596
  * @remarks
519
- * The level of intelligent protection. Valid values:
520
- *
521
- * * **default**: normal.
522
- * * **hard**: strict.
523
- * * **weak**: loose.
597
+ * The protection level of AI-based intelligent protection. Valid values:
524
598
  *
525
599
  * @example
526
600
  * default
@@ -528,42 +602,47 @@ export declare class ModifyPolicyContentRequestContent extends $dara.Model {
528
602
  intelligenceLevel?: string;
529
603
  /**
530
604
  * @remarks
531
- * The port-specific mitigation rules.
605
+ * The list of port-specific mitigation rules.
532
606
  */
533
607
  l4RuleList?: ModifyPolicyContentRequestContentL4RuleList[];
534
608
  /**
535
609
  * @remarks
536
- * The port blocking rules.
610
+ * The list of port blocking rules.
537
611
  */
538
612
  portRuleList?: ModifyPolicyContentRequestContentPortRuleList[];
539
613
  /**
540
614
  * @remarks
541
- * The ports whose traffic is filtered out by the filtering policies for UDP reflection attacks.
615
+ * The list of ports filtered by reflection attack prevention.
542
616
  */
543
617
  reflectBlockUdpPortList?: number[];
544
618
  /**
545
619
  * @remarks
546
- * The countries in the location blacklist.
620
+ * The list of countries for location blacklist.
547
621
  */
548
622
  regionBlockCountryList?: number[];
549
623
  /**
550
624
  * @remarks
551
- * The provinces in the location blacklist.
625
+ * The list of provinces for location blacklist.
552
626
  */
553
627
  regionBlockProvinceList?: number[];
554
628
  /**
555
629
  * @remarks
556
- * The source IP addresses that are added to the blacklist.
630
+ * The SIP Protection Settings.
631
+ */
632
+ sipDefense?: ModifyPolicyContentRequestContentSipDefense;
633
+ /**
634
+ * @remarks
635
+ * The source rate limiting blacklist.
557
636
  */
558
637
  sourceBlockList?: ModifyPolicyContentRequestContentSourceBlockList[];
559
638
  /**
560
639
  * @remarks
561
- * The settings for source rate limiting.
640
+ * The source rate limiting configuration.
562
641
  */
563
642
  sourceLimit?: ModifyPolicyContentRequestContentSourceLimit;
564
643
  /**
565
644
  * @remarks
566
- * Specifies whether to add back-to-origin CIDR blocks of Anti-DDoS Proxy to the whitelist.
645
+ * Specifies whether to whitelist the back-to-origin IP addresses of Anti-DDoS Pro and Anti-DDoS Premium (the Chinese mainland & outside the Chinese mainland).
567
646
  *
568
647
  * @example
569
648
  * false
@@ -588,7 +667,7 @@ export declare class ModifyPolicyContentRequest extends $dara.Model {
588
667
  content?: ModifyPolicyContentRequestContent;
589
668
  /**
590
669
  * @remarks
591
- * The ID of the policy.
670
+ * The policy ID.
592
671
  *
593
672
  * This parameter is required.
594
673
  *
@@ -598,12 +677,19 @@ export declare class ModifyPolicyContentRequest extends $dara.Model {
598
677
  id?: string;
599
678
  /**
600
679
  * @remarks
601
- * The name of the policy.
680
+ * The policy name.
602
681
  *
603
682
  * @example
604
683
  * demo**
605
684
  */
606
685
  name?: string;
686
+ /**
687
+ * @remarks
688
+ * The version of the port-specific mitigation policy. Valid values:
689
+ *
690
+ * @example
691
+ * 2
692
+ */
607
693
  portVersion?: string;
608
694
  static names(): {
609
695
  [key: string]: string;
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.ModifyPolicyContentRequest = exports.ModifyPolicyContentRequestContent = exports.ModifyPolicyContentRequestContentSourceLimit = exports.ModifyPolicyContentRequestContentSourceBlockList = exports.ModifyPolicyContentRequestContentPortRuleList = exports.ModifyPolicyContentRequestContentL4RuleList = exports.ModifyPolicyContentRequestContentL4RuleListConditionList = exports.ModifyPolicyContentRequestContentL4RuleListConditionListOffset = exports.ModifyPolicyContentRequestContentFingerPrintRuleList = void 0;
36
+ exports.ModifyPolicyContentRequest = exports.ModifyPolicyContentRequestContent = exports.ModifyPolicyContentRequestContentSourceLimit = exports.ModifyPolicyContentRequestContentSourceBlockList = exports.ModifyPolicyContentRequestContentSipDefense = exports.ModifyPolicyContentRequestContentPortRuleList = exports.ModifyPolicyContentRequestContentL4RuleList = exports.ModifyPolicyContentRequestContentL4RuleListConditionList = exports.ModifyPolicyContentRequestContentL4RuleListConditionListOffset = exports.ModifyPolicyContentRequestContentFingerPrintRuleList = void 0;
37
37
  // This file is auto-generated, don't edit it
38
38
  const $dara = __importStar(require("@darabonba/typescript"));
39
39
  class ModifyPolicyContentRequestContentFingerPrintRuleList extends $dara.Model {
@@ -201,6 +201,41 @@ class ModifyPolicyContentRequestContentPortRuleList extends $dara.Model {
201
201
  }
202
202
  }
203
203
  exports.ModifyPolicyContentRequestContentPortRuleList = ModifyPolicyContentRequestContentPortRuleList;
204
+ class ModifyPolicyContentRequestContentSipDefense extends $dara.Model {
205
+ static names() {
206
+ return {
207
+ enable: 'Enable',
208
+ level: 'Level',
209
+ sipDefend: 'SipDefend',
210
+ sipLearn: 'SipLearn',
211
+ sipModule: 'SipModule',
212
+ sipPort: 'SipPort',
213
+ sipRate: 'SipRate',
214
+ sipStartMbps: 'SipStartMbps',
215
+ sipStartPps: 'SipStartPps',
216
+ };
217
+ }
218
+ static types() {
219
+ return {
220
+ enable: 'boolean',
221
+ level: 'string',
222
+ sipDefend: 'boolean',
223
+ sipLearn: 'boolean',
224
+ sipModule: 'boolean',
225
+ sipPort: 'string',
226
+ sipRate: 'number',
227
+ sipStartMbps: 'number',
228
+ sipStartPps: 'number',
229
+ };
230
+ }
231
+ validate() {
232
+ super.validate();
233
+ }
234
+ constructor(map) {
235
+ super(map);
236
+ }
237
+ }
238
+ exports.ModifyPolicyContentRequestContentSipDefense = ModifyPolicyContentRequestContentSipDefense;
204
239
  class ModifyPolicyContentRequestContentSourceBlockList extends $dara.Model {
205
240
  static names() {
206
241
  return {
@@ -265,6 +300,7 @@ class ModifyPolicyContentRequestContent extends $dara.Model {
265
300
  reflectBlockUdpPortList: 'ReflectBlockUdpPortList',
266
301
  regionBlockCountryList: 'RegionBlockCountryList',
267
302
  regionBlockProvinceList: 'RegionBlockProvinceList',
303
+ sipDefense: 'SipDefense',
268
304
  sourceBlockList: 'SourceBlockList',
269
305
  sourceLimit: 'SourceLimit',
270
306
  whitenGfbrNets: 'WhitenGfbrNets',
@@ -283,6 +319,7 @@ class ModifyPolicyContentRequestContent extends $dara.Model {
283
319
  reflectBlockUdpPortList: { 'type': 'array', 'itemType': 'number' },
284
320
  regionBlockCountryList: { 'type': 'array', 'itemType': 'number' },
285
321
  regionBlockProvinceList: { 'type': 'array', 'itemType': 'number' },
322
+ sipDefense: ModifyPolicyContentRequestContentSipDefense,
286
323
  sourceBlockList: { 'type': 'array', 'itemType': ModifyPolicyContentRequestContentSourceBlockList },
287
324
  sourceLimit: ModifyPolicyContentRequestContentSourceLimit,
288
325
  whitenGfbrNets: 'boolean',
@@ -307,6 +344,9 @@ class ModifyPolicyContentRequestContent extends $dara.Model {
307
344
  if (Array.isArray(this.regionBlockProvinceList)) {
308
345
  $dara.Model.validateArray(this.regionBlockProvinceList);
309
346
  }
347
+ if (this.sipDefense && typeof this.sipDefense.validate === 'function') {
348
+ this.sipDefense.validate();
349
+ }
310
350
  if (Array.isArray(this.sourceBlockList)) {
311
351
  $dara.Model.validateArray(this.sourceBlockList);
312
352
  }