@alicloud/ddosbgp20180720 3.0.0 → 3.1.0

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 (148) hide show
  1. package/dist/client.d.ts +89 -53
  2. package/dist/client.js +147 -53
  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/CheckGrantRequest.d.ts +4 -3
  15. package/dist/models/CheckGrantRequest.js.map +1 -1
  16. package/dist/models/CheckGrantResponseBody.d.ts +3 -2
  17. package/dist/models/CheckGrantResponseBody.js.map +1 -1
  18. package/dist/models/CreatePolicyRequest.d.ts +15 -5
  19. package/dist/models/CreatePolicyRequest.js.map +1 -1
  20. package/dist/models/CreatePolicyResponseBody.d.ts +2 -2
  21. package/dist/models/DeleteIpRequest.d.ts +8 -10
  22. package/dist/models/DeleteIpRequest.js.map +1 -1
  23. package/dist/models/DeleteIpResponseBody.d.ts +1 -1
  24. package/dist/models/DescribeAssetGroupRequest.d.ts +4 -3
  25. package/dist/models/DescribeAssetGroupRequest.js.map +1 -1
  26. package/dist/models/DescribeAssetGroupToInstanceRequest.d.ts +5 -4
  27. package/dist/models/DescribeAssetGroupToInstanceRequest.js.map +1 -1
  28. package/dist/models/DescribeDdosOriginInstanceBillRequest.d.ts +12 -14
  29. package/dist/models/DescribeDdosOriginInstanceBillRequest.js.map +1 -1
  30. package/dist/models/DescribeDdosOriginInstanceBillResponseBody.d.ts +72 -85
  31. package/dist/models/DescribeDdosOriginInstanceBillResponseBody.js.map +1 -1
  32. package/dist/models/DescribeInstanceListRequest.d.ts +13 -9
  33. package/dist/models/DescribeInstanceListRequest.js.map +1 -1
  34. package/dist/models/DescribeInstanceListResponseBody.d.ts +28 -18
  35. package/dist/models/DescribeInstanceListResponseBody.js.map +1 -1
  36. package/dist/models/DescribeNetworkLayerInterceptsRequest.d.ts +107 -0
  37. package/dist/models/DescribeNetworkLayerInterceptsRequest.js +78 -0
  38. package/dist/models/DescribeNetworkLayerInterceptsRequest.js.map +1 -0
  39. package/dist/models/DescribeNetworkLayerInterceptsResponse.d.ts +19 -0
  40. package/dist/models/DescribeNetworkLayerInterceptsResponse.js +69 -0
  41. package/dist/models/DescribeNetworkLayerInterceptsResponse.js.map +1 -0
  42. package/dist/models/DescribeNetworkLayerInterceptsResponseBody.d.ts +144 -0
  43. package/dist/models/DescribeNetworkLayerInterceptsResponseBody.js +106 -0
  44. package/dist/models/DescribeNetworkLayerInterceptsResponseBody.js.map +1 -0
  45. package/dist/models/DescribePackIpListRequest.d.ts +14 -11
  46. package/dist/models/DescribePackIpListRequest.js.map +1 -1
  47. package/dist/models/DescribePackIpListResponseBody.d.ts +28 -22
  48. package/dist/models/DescribePackIpListResponseBody.js.map +1 -1
  49. package/dist/models/DescribeRdMemberListRequest.d.ts +1 -1
  50. package/dist/models/DescribeRdMemberListResponseBody.d.ts +2 -2
  51. package/dist/models/DescribeRdStatusResponseBody.d.ts +5 -3
  52. package/dist/models/DescribeRdStatusResponseBody.js.map +1 -1
  53. package/dist/models/DescribeRegionsRequest.d.ts +4 -4
  54. package/dist/models/DescribeRegionsResponseBody.d.ts +5 -6
  55. package/dist/models/DescribeRegionsResponseBody.js.map +1 -1
  56. package/dist/models/DescribeTrafficRequest.d.ts +16 -21
  57. package/dist/models/DescribeTrafficRequest.js.map +1 -1
  58. package/dist/models/DescribeTrafficResponseBody.d.ts +11 -12
  59. package/dist/models/DescribeTrafficResponseBody.js.map +1 -1
  60. package/dist/models/DetachFromPolicyRequest.d.ts +26 -8
  61. package/dist/models/DetachFromPolicyRequest.js.map +1 -1
  62. package/dist/models/DetachFromPolicyResponseBody.d.ts +1 -1
  63. package/dist/models/DetachFromPolicyShrinkRequest.d.ts +16 -6
  64. package/dist/models/DetachFromPolicyShrinkRequest.js.map +1 -1
  65. package/dist/models/DettachAssetGroupToInstanceRequest.d.ts +5 -4
  66. package/dist/models/DettachAssetGroupToInstanceRequest.js.map +1 -1
  67. package/dist/models/DettachAssetGroupToInstanceShrinkRequest.d.ts +2 -2
  68. package/dist/models/ListPolicyAttachmentRequest.d.ts +27 -11
  69. package/dist/models/ListPolicyAttachmentRequest.js.map +1 -1
  70. package/dist/models/ListPolicyAttachmentResponseBody.d.ts +19 -13
  71. package/dist/models/ListPolicyAttachmentResponseBody.js.map +1 -1
  72. package/dist/models/ListPolicyAttachmentShrinkRequest.d.ts +18 -9
  73. package/dist/models/ListPolicyAttachmentShrinkRequest.js.map +1 -1
  74. package/dist/models/ListPolicyRequest.d.ts +5 -16
  75. package/dist/models/ListPolicyRequest.js.map +1 -1
  76. package/dist/models/ListPolicyResponseBody.d.ts +182 -94
  77. package/dist/models/ListPolicyResponseBody.js +41 -1
  78. package/dist/models/ListPolicyResponseBody.js.map +1 -1
  79. package/dist/models/ModifyPolicyContentRequest.d.ts +176 -90
  80. package/dist/models/ModifyPolicyContentRequest.js +41 -1
  81. package/dist/models/ModifyPolicyContentRequest.js.map +1 -1
  82. package/dist/models/ModifyPolicyContentResponseBody.d.ts +1 -1
  83. package/dist/models/ModifyPolicyContentShrinkRequest.d.ts +9 -2
  84. package/dist/models/ModifyPolicyContentShrinkRequest.js.map +1 -1
  85. package/dist/models/ModifyPolicyRequest.d.ts +181 -118
  86. package/dist/models/ModifyPolicyRequest.js +41 -1
  87. package/dist/models/ModifyPolicyRequest.js.map +1 -1
  88. package/dist/models/ModifyPolicyResponseBody.d.ts +1 -1
  89. package/dist/models/ModifyPolicyShrinkRequest.d.ts +10 -26
  90. package/dist/models/ModifyPolicyShrinkRequest.js.map +1 -1
  91. package/dist/models/ModifyRemarkRequest.d.ts +5 -7
  92. package/dist/models/ModifyRemarkRequest.js.map +1 -1
  93. package/dist/models/ReleaseDdosOriginInstanceRequest.d.ts +1 -1
  94. package/dist/models/model.d.ts +7 -0
  95. package/dist/models/model.js +34 -20
  96. package/dist/models/model.js.map +1 -1
  97. package/package.json +2 -2
  98. package/src/client.ts +160 -53
  99. package/src/models/AddIpRequest.ts +11 -10
  100. package/src/models/AddIpResponseBody.ts +1 -1
  101. package/src/models/AttachAssetGroupToInstanceRequest.ts +2 -2
  102. package/src/models/AttachAssetGroupToInstanceShrinkRequest.ts +2 -2
  103. package/src/models/AttachToPolicyRequest.ts +27 -10
  104. package/src/models/AttachToPolicyResponseBody.ts +1 -1
  105. package/src/models/AttachToPolicyShrinkRequest.ts +12 -1
  106. package/src/models/CheckGrantRequest.ts +4 -3
  107. package/src/models/CheckGrantResponseBody.ts +3 -2
  108. package/src/models/CreatePolicyRequest.ts +15 -5
  109. package/src/models/CreatePolicyResponseBody.ts +2 -2
  110. package/src/models/DeleteIpRequest.ts +8 -10
  111. package/src/models/DeleteIpResponseBody.ts +1 -1
  112. package/src/models/DescribeAssetGroupRequest.ts +4 -3
  113. package/src/models/DescribeAssetGroupToInstanceRequest.ts +5 -4
  114. package/src/models/DescribeDdosOriginInstanceBillRequest.ts +12 -14
  115. package/src/models/DescribeDdosOriginInstanceBillResponseBody.ts +72 -85
  116. package/src/models/DescribeInstanceListRequest.ts +13 -9
  117. package/src/models/DescribeInstanceListResponseBody.ts +28 -18
  118. package/src/models/DescribeNetworkLayerInterceptsRequest.ts +140 -0
  119. package/src/models/DescribeNetworkLayerInterceptsResponse.ts +40 -0
  120. package/src/models/DescribeNetworkLayerInterceptsResponseBody.ts +196 -0
  121. package/src/models/DescribePackIpListRequest.ts +14 -11
  122. package/src/models/DescribePackIpListResponseBody.ts +28 -22
  123. package/src/models/DescribeRdMemberListRequest.ts +1 -1
  124. package/src/models/DescribeRdMemberListResponseBody.ts +2 -2
  125. package/src/models/DescribeRdStatusResponseBody.ts +5 -3
  126. package/src/models/DescribeRegionsRequest.ts +4 -4
  127. package/src/models/DescribeRegionsResponseBody.ts +5 -6
  128. package/src/models/DescribeTrafficRequest.ts +16 -21
  129. package/src/models/DescribeTrafficResponseBody.ts +11 -12
  130. package/src/models/DetachFromPolicyRequest.ts +26 -8
  131. package/src/models/DetachFromPolicyResponseBody.ts +1 -1
  132. package/src/models/DetachFromPolicyShrinkRequest.ts +16 -6
  133. package/src/models/DettachAssetGroupToInstanceRequest.ts +5 -4
  134. package/src/models/DettachAssetGroupToInstanceShrinkRequest.ts +2 -2
  135. package/src/models/ListPolicyAttachmentRequest.ts +27 -11
  136. package/src/models/ListPolicyAttachmentResponseBody.ts +19 -13
  137. package/src/models/ListPolicyAttachmentShrinkRequest.ts +18 -9
  138. package/src/models/ListPolicyRequest.ts +5 -16
  139. package/src/models/ListPolicyResponseBody.ts +213 -94
  140. package/src/models/ModifyPolicyContentRequest.ts +207 -90
  141. package/src/models/ModifyPolicyContentResponseBody.ts +1 -1
  142. package/src/models/ModifyPolicyContentShrinkRequest.ts +9 -2
  143. package/src/models/ModifyPolicyRequest.ts +212 -118
  144. package/src/models/ModifyPolicyResponseBody.ts +1 -1
  145. package/src/models/ModifyPolicyShrinkRequest.ts +10 -26
  146. package/src/models/ModifyRemarkRequest.ts +5 -7
  147. package/src/models/ReleaseDdosOriginInstanceRequest.ts +1 -1
  148. package/src/models/model.ts +7 -0
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The end of the destination port range. Valid values: **0** to **65535**.
8
+ * The end value of the destination port range. Valid values: **0** to **65535**.
9
9
  *
10
10
  * This parameter is required.
11
11
  *
@@ -15,7 +15,7 @@ export class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
15
15
  dstPortEnd?: number;
16
16
  /**
17
17
  * @remarks
18
- * The start of the destination port range. Valid values: **0** to **65535**.
18
+ * The start value of the destination port range. Valid values: **0** to **65535**.
19
19
  *
20
20
  * This parameter is required.
21
21
  *
@@ -25,7 +25,7 @@ export class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
25
25
  dstPortStart?: number;
26
26
  /**
27
27
  * @remarks
28
- * The ID of the rule.
28
+ * The rule ID.
29
29
  *
30
30
  * @example
31
31
  * 5fbe941f-a0cf-4a49-9c7c-8fac********
@@ -33,12 +33,7 @@ export class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
33
33
  id?: string;
34
34
  /**
35
35
  * @remarks
36
- * The action triggered if the rule is matched. Valid values:
37
- *
38
- * * **accept**: allows the traffic that matches the conditions in the byte-match filter rule.
39
- * * **drop**: discards the traffic that matches the conditions in the byte-match filter rule.
40
- * * **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**.
41
- * * **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**.
36
+ * The match action. Valid values:
42
37
  *
43
38
  * This parameter is required.
44
39
  *
@@ -76,7 +71,7 @@ export class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
76
71
  offset?: number;
77
72
  /**
78
73
  * @remarks
79
- * The payload. The value is a hexadecimal string.
74
+ * The detection payload. Represented in hexadecimal string format.
80
75
  *
81
76
  * @example
82
77
  * abcd
@@ -84,10 +79,7 @@ export class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
84
79
  payloadBytes?: string;
85
80
  /**
86
81
  * @remarks
87
- * The type of the protocol. Valid values:
88
- *
89
- * * **tcp**
90
- * * **udp**
82
+ * The protocol type. Valid values:
91
83
  *
92
84
  * This parameter is required.
93
85
  *
@@ -97,9 +89,7 @@ export class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
97
89
  protocol?: string;
98
90
  /**
99
91
  * @remarks
100
- * The rate limit. Valid values: **1** to **100000**.
101
- *
102
- * > This parameter is required when **MatchAction** is set to **ip_rate** or **session_rate**.
92
+ * The rate limit value. Valid values: **1** to **100000**.
103
93
  *
104
94
  * @example
105
95
  * 100
@@ -107,9 +97,7 @@ export class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
107
97
  rateValue?: number;
108
98
  /**
109
99
  * @remarks
110
- * The sequence number that indicates the order for the rule to take effect. The value is an integer.
111
- *
112
- * > A smaller number indicates a higher priority.
100
+ * The priority number, represented as an integer.
113
101
  *
114
102
  * This parameter is required.
115
103
  *
@@ -119,7 +107,7 @@ export class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
119
107
  seqNo?: number;
120
108
  /**
121
109
  * @remarks
122
- * The end of the source port range. Valid values: **0** to **65535**.
110
+ * The end value of the source port range. Valid values: **0** to **65535**.
123
111
  *
124
112
  * This parameter is required.
125
113
  *
@@ -129,7 +117,7 @@ export class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
129
117
  srcPortEnd?: number;
130
118
  /**
131
119
  * @remarks
132
- * The start of the source port range. Valid values: **0** to **65535**.
120
+ * The start value of the source port range. Valid values: **0** to **65535**.
133
121
  *
134
122
  * This parameter is required.
135
123
  *
@@ -183,7 +171,21 @@ export class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
183
171
  }
184
172
 
185
173
  export class ModifyPolicyRequestContentL4RuleListConditionListOffset extends $dara.Model {
174
+ /**
175
+ * @remarks
176
+ * The end position. Valid values: **0** to **1499**.
177
+ *
178
+ * @example
179
+ * 1499
180
+ */
186
181
  end?: number;
182
+ /**
183
+ * @remarks
184
+ * The start position. Valid values: **0** to **1499**.
185
+ *
186
+ * @example
187
+ * 0
188
+ */
187
189
  start?: number;
188
190
  static names(): { [key: string]: string } {
189
191
  return {
@@ -211,29 +213,52 @@ export class ModifyPolicyRequestContentL4RuleListConditionListOffset extends $da
211
213
  export class ModifyPolicyRequestContentL4RuleListConditionList extends $dara.Model {
212
214
  /**
213
215
  * @remarks
214
- * The term that is used for matching.
215
- *
216
- * > 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.
216
+ * The detection content.
217
217
  *
218
218
  * @example
219
219
  * abcd
220
220
  */
221
221
  arg?: string;
222
+ /**
223
+ * @remarks
224
+ * The matching content.
225
+ *
226
+ * @example
227
+ * test**
228
+ */
222
229
  content?: string;
223
230
  /**
224
231
  * @remarks
225
- * The number of bytes from the start position for matching. Valid values: **1** to **2048**.
232
+ * The detection window length. Valid values: **1** to **2048**.
226
233
  *
227
234
  * @example
228
235
  * 1200
229
236
  */
230
237
  depth?: number;
238
+ /**
239
+ * @remarks
240
+ * The character type. Valid values:
241
+ *
242
+ * @example
243
+ * str
244
+ */
231
245
  encode?: string;
246
+ /**
247
+ * @remarks
248
+ * The matching range.
249
+ */
232
250
  offset?: ModifyPolicyRequestContentL4RuleListConditionListOffset;
251
+ /**
252
+ * @remarks
253
+ * The matching pattern.
254
+ *
255
+ * @example
256
+ * contain
257
+ */
233
258
  pattern?: string;
234
259
  /**
235
260
  * @remarks
236
- * The start position for matching. Valid values: **0** to **2047**.
261
+ * The detection start position. Valid values: **0** to **2047**.
237
262
  *
238
263
  * @example
239
264
  * 0
@@ -278,9 +303,7 @@ export class ModifyPolicyRequestContentL4RuleListConditionList extends $dara.Mod
278
303
  export class ModifyPolicyRequestContentL4RuleList extends $dara.Model {
279
304
  /**
280
305
  * @remarks
281
- * The action that is specified in the rule. Valid value:
282
- *
283
- * * **2**: The traffic is discarded.
306
+ * The action.
284
307
  *
285
308
  * @example
286
309
  * 2
@@ -288,12 +311,12 @@ export class ModifyPolicyRequestContentL4RuleList extends $dara.Model {
288
311
  action?: string;
289
312
  /**
290
313
  * @remarks
291
- * The match conditions.
314
+ * The list of detection conditions.
292
315
  */
293
316
  conditionList?: ModifyPolicyRequestContentL4RuleListConditionList[];
294
317
  /**
295
318
  * @remarks
296
- * The minimum number of bytes in a session to trigger matching. Valid values: **0** to **2048**.
319
+ * The minimum number of bytes in a session flow that triggers rule matching. Valid values: **0** to **2048**.
297
320
  *
298
321
  * @example
299
322
  * 0
@@ -301,10 +324,7 @@ export class ModifyPolicyRequestContentL4RuleList extends $dara.Model {
301
324
  limited?: number;
302
325
  /**
303
326
  * @remarks
304
- * The condition based on which an action is performed. Valid values:
305
- *
306
- * * **0**: If the rule is matched, the action specified in the rule is performed.
307
- * * **1**: If the rule is not matched, the action specified in the rule is performed.
327
+ * The logical operator. Valid values:
308
328
  *
309
329
  * @example
310
330
  * 0
@@ -312,10 +332,7 @@ export class ModifyPolicyRequestContentL4RuleList extends $dara.Model {
312
332
  match?: string;
313
333
  /**
314
334
  * @remarks
315
- * The type of the rule. Valid values:
316
- *
317
- * * **char**: string match.
318
- * * **hex**: hexadecimal string match.
335
+ * The rule type. Valid values:
319
336
  *
320
337
  * @example
321
338
  * char
@@ -323,7 +340,7 @@ export class ModifyPolicyRequestContentL4RuleList extends $dara.Model {
323
340
  method?: string;
324
341
  /**
325
342
  * @remarks
326
- * The name of the rule.
343
+ * The rule name.
327
344
  *
328
345
  * This parameter is required.
329
346
  *
@@ -333,9 +350,7 @@ export class ModifyPolicyRequestContentL4RuleList extends $dara.Model {
333
350
  name?: string;
334
351
  /**
335
352
  * @remarks
336
- * The priority of the rule. Valid values: **1** to **100**.
337
- *
338
- * > A smaller value indicates a higher priority.
353
+ * The rule priority. Valid values: **1** to **100**.
339
354
  *
340
355
  * @example
341
356
  * 1
@@ -380,7 +395,7 @@ export class ModifyPolicyRequestContentL4RuleList extends $dara.Model {
380
395
  export class ModifyPolicyRequestContentPortRuleList extends $dara.Model {
381
396
  /**
382
397
  * @remarks
383
- * The end of the destination port range. Valid values: **0** to **65535**.
398
+ * The end value of the destination port range. Valid values: **0** to **65535**.
384
399
  *
385
400
  * This parameter is required.
386
401
  *
@@ -390,7 +405,7 @@ export class ModifyPolicyRequestContentPortRuleList extends $dara.Model {
390
405
  dstPortEnd?: number;
391
406
  /**
392
407
  * @remarks
393
- * The start of the destination port range. Valid values: **0** to **65535**.
408
+ * The start value of the destination port range. Valid values: **0** to **65535**.
394
409
  *
395
410
  * This parameter is required.
396
411
  *
@@ -400,7 +415,7 @@ export class ModifyPolicyRequestContentPortRuleList extends $dara.Model {
400
415
  dstPortStart?: number;
401
416
  /**
402
417
  * @remarks
403
- * The ID of the rule.
418
+ * The rule ID.
404
419
  *
405
420
  * @example
406
421
  * c52c2fa6-fdac-40c4-8753-be7c*********
@@ -408,9 +423,7 @@ export class ModifyPolicyRequestContentPortRuleList extends $dara.Model {
408
423
  id?: string;
409
424
  /**
410
425
  * @remarks
411
- * The action triggered if the rule is matched. Valid values:
412
- *
413
- * * **drop**: The traffic is discarded.
426
+ * The match action. Valid values:
414
427
  *
415
428
  * This parameter is required.
416
429
  *
@@ -420,10 +433,7 @@ export class ModifyPolicyRequestContentPortRuleList extends $dara.Model {
420
433
  matchAction?: string;
421
434
  /**
422
435
  * @remarks
423
- * The type of the protocol. Valid values:
424
- *
425
- * * **tcp**
426
- * * **udp**
436
+ * The protocol type. Valid values:
427
437
  *
428
438
  * This parameter is required.
429
439
  *
@@ -433,9 +443,7 @@ export class ModifyPolicyRequestContentPortRuleList extends $dara.Model {
433
443
  protocol?: string;
434
444
  /**
435
445
  * @remarks
436
- * The sequence number that indicates the order for the rule to take effect. The value is an integer.
437
- *
438
- * > A smaller number indicates a higher priority.
446
+ * The priority number, represented as an integer.
439
447
  *
440
448
  * This parameter is required.
441
449
  *
@@ -445,7 +453,7 @@ export class ModifyPolicyRequestContentPortRuleList extends $dara.Model {
445
453
  seqNo?: number;
446
454
  /**
447
455
  * @remarks
448
- * The end of the source port range. Valid values: **0** to **65535**.
456
+ * The end value of the source port range. Valid values: **0** to **65535**.
449
457
  *
450
458
  * This parameter is required.
451
459
  *
@@ -455,7 +463,7 @@ export class ModifyPolicyRequestContentPortRuleList extends $dara.Model {
455
463
  srcPortEnd?: number;
456
464
  /**
457
465
  * @remarks
458
- * The start of the source port range. Valid values: **0** to **65535**.
466
+ * The start value of the source port range. Valid values: **0** to **65535**.
459
467
  *
460
468
  * This parameter is required.
461
469
  *
@@ -498,10 +506,111 @@ export class ModifyPolicyRequestContentPortRuleList extends $dara.Model {
498
506
  }
499
507
  }
500
508
 
509
+ export class ModifyPolicyRequestContentSipDefense extends $dara.Model {
510
+ /**
511
+ * @remarks
512
+ * Specifies whether to enable SIP protection. Valid values:
513
+ *
514
+ * @example
515
+ * true
516
+ */
517
+ enable?: boolean;
518
+ /**
519
+ * @remarks
520
+ * The SIP protection level.
521
+ *
522
+ * @example
523
+ * normal
524
+ */
525
+ level?: string;
526
+ /**
527
+ * @remarks
528
+ * Specifies whether to enable SIP defense mode.
529
+ */
530
+ sipDefend?: boolean;
531
+ /**
532
+ * @remarks
533
+ * Specifies whether to enable SIP learning mode.
534
+ */
535
+ sipLearn?: boolean;
536
+ /**
537
+ * @remarks
538
+ * Specifies whether to enable the SIP source rate limiting module.
539
+ */
540
+ sipModule?: boolean;
541
+ /**
542
+ * @remarks
543
+ * The SIP protection port. Valid values: **1** to **65535**.
544
+ *
545
+ * @example
546
+ * 5060
547
+ */
548
+ sipPort?: string;
549
+ /**
550
+ * @remarks
551
+ * The SIP source rate limit value in PPS.
552
+ *
553
+ * @example
554
+ * 1000
555
+ */
556
+ sipRate?: number;
557
+ /**
558
+ * @remarks
559
+ * The SIP activation threshold in Mbit/s.
560
+ *
561
+ * @example
562
+ * 100
563
+ */
564
+ sipStartMbps?: number;
565
+ /**
566
+ * @remarks
567
+ * The SIP activation threshold in PPS.
568
+ *
569
+ * @example
570
+ * 500
571
+ */
572
+ sipStartPps?: number;
573
+ static names(): { [key: string]: string } {
574
+ return {
575
+ enable: 'Enable',
576
+ level: 'Level',
577
+ sipDefend: 'SipDefend',
578
+ sipLearn: 'SipLearn',
579
+ sipModule: 'SipModule',
580
+ sipPort: 'SipPort',
581
+ sipRate: 'SipRate',
582
+ sipStartMbps: 'SipStartMbps',
583
+ sipStartPps: 'SipStartPps',
584
+ };
585
+ }
586
+
587
+ static types(): { [key: string]: any } {
588
+ return {
589
+ enable: 'boolean',
590
+ level: 'string',
591
+ sipDefend: 'boolean',
592
+ sipLearn: 'boolean',
593
+ sipModule: 'boolean',
594
+ sipPort: 'string',
595
+ sipRate: 'number',
596
+ sipStartMbps: 'number',
597
+ sipStartPps: 'number',
598
+ };
599
+ }
600
+
601
+ validate() {
602
+ super.validate();
603
+ }
604
+
605
+ constructor(map?: { [key: string]: any }) {
606
+ super(map);
607
+ }
608
+ }
609
+
501
610
  export class ModifyPolicyRequestContentSourceBlockList extends $dara.Model {
502
611
  /**
503
612
  * @remarks
504
- * The validity period of the blacklist to which the source IP address is added. Unit: seconds.
613
+ * The duration for which the source IP address is added to the blacklist. Unit: seconds.
505
614
  *
506
615
  * This parameter is required.
507
616
  *
@@ -511,7 +620,7 @@ export class ModifyPolicyRequestContentSourceBlockList extends $dara.Model {
511
620
  blockExpireSeconds?: number;
512
621
  /**
513
622
  * @remarks
514
- * 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.
623
+ * The statistical period for source rate limiting blacklisting. Unit: seconds.
515
624
  *
516
625
  * This parameter is required.
517
626
  *
@@ -521,7 +630,7 @@ export class ModifyPolicyRequestContentSourceBlockList extends $dara.Model {
521
630
  everySeconds?: number;
522
631
  /**
523
632
  * @remarks
524
- * The number of times that the source IP address exceeds a limit in a statistical period.
633
+ * The number of times the source IP address exceeds the rate limit within one statistical period.
525
634
  *
526
635
  * This parameter is required.
527
636
  *
@@ -531,12 +640,7 @@ export class ModifyPolicyRequestContentSourceBlockList extends $dara.Model {
531
640
  exceedLimitTimes?: number;
532
641
  /**
533
642
  * @remarks
534
- * The type of the source rate limit. Valid values:
535
- *
536
- * * **3**: the pps limit on source IP addresses.
537
- * * **4**: the bandwidth limit on source IP addresses.
538
- * * **5**: the pps limit on source SYN packets.
539
- * * **6**: the bandwidth limit on source SYN packets.
643
+ * The source rate limiting type. Valid values:
540
644
  *
541
645
  * This parameter is required.
542
646
  *
@@ -574,7 +678,7 @@ export class ModifyPolicyRequestContentSourceBlockList extends $dara.Model {
574
678
  export class ModifyPolicyRequestContentSourceLimit extends $dara.Model {
575
679
  /**
576
680
  * @remarks
577
- * The bandwidth limit on source IP addresses. Unit: bytes per second.
681
+ * The source bandwidth throttling. Unit: Byte/s.
578
682
  *
579
683
  * @example
580
684
  * 2048
@@ -582,7 +686,7 @@ export class ModifyPolicyRequestContentSourceLimit extends $dara.Model {
582
686
  bps?: number;
583
687
  /**
584
688
  * @remarks
585
- * The packets per second (pps) limit on source IP addresses.
689
+ * The source PPS rate limit. Unit: Packet/s.
586
690
  *
587
691
  * @example
588
692
  * 64
@@ -590,7 +694,7 @@ export class ModifyPolicyRequestContentSourceLimit extends $dara.Model {
590
694
  pps?: number;
591
695
  /**
592
696
  * @remarks
593
- * The bandwidth limit on source SYN packets. Unit: bytes per second.
697
+ * The source SYN bandwidth throttling. Unit: Byte/s.
594
698
  *
595
699
  * @example
596
700
  * 2048
@@ -598,7 +702,7 @@ export class ModifyPolicyRequestContentSourceLimit extends $dara.Model {
598
702
  synBps?: number;
599
703
  /**
600
704
  * @remarks
601
- * The pps limit on source SYN packets.
705
+ * The source SYN PPS rate limit. Unit: Packet/s.
602
706
  *
603
707
  * @example
604
708
  * 64
@@ -634,12 +738,12 @@ export class ModifyPolicyRequestContentSourceLimit extends $dara.Model {
634
738
  export class ModifyPolicyRequestContent extends $dara.Model {
635
739
  /**
636
740
  * @remarks
637
- * The IP addresses in the blacklist.
741
+ * The IP blacklist.
638
742
  */
639
743
  blackIpList?: string[];
640
744
  /**
641
745
  * @remarks
642
- * The validity period of the IP address blacklist. The value is a UNIX timestamp.
746
+ * The expiration time of the IP blacklist (UNIX timestamp).
643
747
  *
644
748
  * @example
645
749
  * 1716878000
@@ -647,7 +751,7 @@ export class ModifyPolicyRequestContent extends $dara.Model {
647
751
  blackIpListExpireAt?: number;
648
752
  /**
649
753
  * @remarks
650
- * Specifies whether to enable ICMP blocking.
754
+ * Specifies whether to disable the ICMP protocol.
651
755
  *
652
756
  * @example
653
757
  * true
@@ -655,7 +759,7 @@ export class ModifyPolicyRequestContent extends $dara.Model {
655
759
  enableDropIcmp?: boolean;
656
760
  /**
657
761
  * @remarks
658
- * Specifies whether to enable intelligent protection.
762
+ * Specifies whether to enable AI-based intelligent protection.
659
763
  *
660
764
  * @example
661
765
  * true
@@ -663,7 +767,7 @@ export class ModifyPolicyRequestContent extends $dara.Model {
663
767
  enableIntelligence?: boolean;
664
768
  /**
665
769
  * @remarks
666
- * Specifies whether to enable port-specific mitigation.
770
+ * Specifies whether to enable port protection.
667
771
  *
668
772
  * @example
669
773
  * true
@@ -671,16 +775,12 @@ export class ModifyPolicyRequestContent extends $dara.Model {
671
775
  enableL4Defense?: boolean;
672
776
  /**
673
777
  * @remarks
674
- * The byte-match filter rules.
778
+ * The list of byte-match filter rules.
675
779
  */
676
780
  fingerPrintRuleList?: ModifyPolicyRequestContentFingerPrintRuleList[];
677
781
  /**
678
782
  * @remarks
679
- * The level of intelligent protection. Valid values:
680
- *
681
- * * **default**: normal.
682
- * * **hard**: strict.
683
- * * **weak**: loose.
783
+ * The protection level of AI-based intelligent protection. Valid values:
684
784
  *
685
785
  * @example
686
786
  * default
@@ -688,47 +788,52 @@ export class ModifyPolicyRequestContent extends $dara.Model {
688
788
  intelligenceLevel?: string;
689
789
  /**
690
790
  * @remarks
691
- * The port-specific mitigation rules.
791
+ * The list of port-specific mitigation rules.
692
792
  */
693
793
  l4RuleList?: ModifyPolicyRequestContentL4RuleList[];
694
794
  /**
695
795
  * @remarks
696
- * The port blocking rules.
796
+ * The list of port blocking rules.
697
797
  */
698
798
  portRuleList?: ModifyPolicyRequestContentPortRuleList[];
699
799
  /**
700
800
  * @remarks
701
- * The ports whose traffic is filtered out by the filtering policies for UDP reflection attacks.
801
+ * The list of ports filtered by reflection attack prevention.
702
802
  */
703
803
  reflectBlockUdpPortList?: number[];
704
804
  /**
705
805
  * @remarks
706
- * The countries in the location blacklist.
806
+ * The list of countries for location blacklist.
707
807
  */
708
808
  regionBlockCountryList?: number[];
709
809
  /**
710
810
  * @remarks
711
- * The provinces in the location blacklist.
811
+ * The list of provinces for location blacklist.
712
812
  */
713
813
  regionBlockProvinceList?: number[];
714
814
  /**
715
815
  * @remarks
716
- * The source IP addresses that are added to the blacklist.
816
+ * The SIP protection settings.
817
+ */
818
+ sipDefense?: ModifyPolicyRequestContentSipDefense;
819
+ /**
820
+ * @remarks
821
+ * The source rate limiting blacklist.
717
822
  */
718
823
  sourceBlockList?: ModifyPolicyRequestContentSourceBlockList[];
719
824
  /**
720
825
  * @remarks
721
- * The settings for source rate limiting.
826
+ * The source rate limiting configuration.
722
827
  */
723
828
  sourceLimit?: ModifyPolicyRequestContentSourceLimit;
724
829
  /**
725
830
  * @remarks
726
- * The IP addresses in the whitelist.
831
+ * The IP whitelist.
727
832
  */
728
833
  whiteIpList?: string[];
729
834
  /**
730
835
  * @remarks
731
- * Specifies whether to add back-to-origin CIDR blocks of Anti-DDoS Proxy to the whitelist.
836
+ * 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).
732
837
  *
733
838
  * @example
734
839
  * false
@@ -748,6 +853,7 @@ export class ModifyPolicyRequestContent extends $dara.Model {
748
853
  reflectBlockUdpPortList: 'ReflectBlockUdpPortList',
749
854
  regionBlockCountryList: 'RegionBlockCountryList',
750
855
  regionBlockProvinceList: 'RegionBlockProvinceList',
856
+ sipDefense: 'SipDefense',
751
857
  sourceBlockList: 'SourceBlockList',
752
858
  sourceLimit: 'SourceLimit',
753
859
  whiteIpList: 'WhiteIpList',
@@ -769,6 +875,7 @@ export class ModifyPolicyRequestContent extends $dara.Model {
769
875
  reflectBlockUdpPortList: { 'type': 'array', 'itemType': 'number' },
770
876
  regionBlockCountryList: { 'type': 'array', 'itemType': 'number' },
771
877
  regionBlockProvinceList: { 'type': 'array', 'itemType': 'number' },
878
+ sipDefense: ModifyPolicyRequestContentSipDefense,
772
879
  sourceBlockList: { 'type': 'array', 'itemType': ModifyPolicyRequestContentSourceBlockList },
773
880
  sourceLimit: ModifyPolicyRequestContentSourceLimit,
774
881
  whiteIpList: { 'type': 'array', 'itemType': 'string' },
@@ -798,6 +905,9 @@ export class ModifyPolicyRequestContent extends $dara.Model {
798
905
  if(Array.isArray(this.regionBlockProvinceList)) {
799
906
  $dara.Model.validateArray(this.regionBlockProvinceList);
800
907
  }
908
+ if(this.sipDefense && typeof (this.sipDefense as any).validate === 'function') {
909
+ (this.sipDefense as any).validate();
910
+ }
801
911
  if(Array.isArray(this.sourceBlockList)) {
802
912
  $dara.Model.validateArray(this.sourceBlockList);
803
913
  }
@@ -818,30 +928,7 @@ export class ModifyPolicyRequestContent extends $dara.Model {
818
928
  export class ModifyPolicyRequest extends $dara.Model {
819
929
  /**
820
930
  * @remarks
821
- * The type of the action. Valid values:
822
- *
823
- * * **10**: modifies the name. If you specify this value, `Name` is required.
824
- * * **11**: modifies the blacklist validity period. If you specify this value, `BlackIpListExpireAt` is required. Only IP-specific mitigation policies support this value.
825
- * * **12**: changes the status of the feature of adding back-to-origin CIDR blocks of Anti-DDoS Proxy to the whitelist. If you specify this value, `WhitenGfbrNets` is required. Only IP-specific mitigation policies support this value.
826
- * * **13**: changes the status of the ICMP blocking feature. If you specify this value, `EnableDropIcmp` is required. Only IP-specific mitigation policies support this value.
827
- * * **20**: adds IP addresses to the blacklist or the whitelist. If you specify this value, you must specify at least one of `WhiteIpList` and `BlackIpList`. Only IP-specific mitigation policies support this value.
828
- * * **21**: removes IP addresses from the blacklist or the whitelist. If you specify this value, at least one of `WhiteIpList` and `BlackIpList` is required. Only IP-specific mitigation policies support this value.
829
- * * **22**: clears the whitelist. Only IP-specific mitigation policies support this value.
830
- * * **23**: clears the blacklist. Only IP-specific mitigation policies support this value.
831
- * * **30**: modifies the status and level of intelligent protection. If you specify this value, `EnableIntelligence` and `IntelligenceLevel` are required. Only IP-specific mitigation policies support this value.
832
- * * **31**: modifies the location blacklist settings. If you specify this value, one of `RegionBlockCountryList` and `RegionBlockProvinceList` is required. Only IP-specific mitigation policies support this value.
833
- * * **32**: modifies the settings for source rate limiting. If you specify this value, `SourceLimit` and `SourceBlockList` are required. Only IP-specific mitigation policies support this value.
834
- * * **33**: modifies the settings for reflection attack filtering. If you specify this value, `ReflectBlockUdpPortList` is required. Only IP-specific mitigation policies support this value.
835
- * * **40**: creates a port blocking rule. If you specify this value, `PortRuleList` is required. Only IP-specific mitigation policies support this value.
836
- * * **41**: modifies the port blocking rule. If you specify this value, `PortRuleList` is required. Only IP-specific mitigation policies support this value.
837
- * * **42**: deletes the port blocking rule. If you specify this value, `PortRuleList` is required. Only IP-specific mitigation policies support this value.
838
- * * **50**: creates a byte-match filter rule. If you specify this value, `FingerPrintRuleList` is required. Only IP-specific mitigation policies support this value.
839
- * * **51**: modifies the byte-match filter rule. If you specify this value, `FingerPrintRuleList` is required. Only IP-specific mitigation policies support this value.
840
- * * **52**: deletes the byte-match filter rule. If you specify this value, `FingerPrintRuleList` is required. Only IP-specific mitigation policies support this value.
841
- * * **60**: changes the status of the port-specific mitigation feature. If you specify this value, `EnableL4Defense` is required. Only port-specific mitigation policies support this value.
842
- * * **61**: creates a port-specific mitigation rule. If you specify this value, `L4RuleList` is required. Only port-specific mitigation policies support this value.
843
- * * **62**: modifies the port-specific mitigation rule. If you specify this value, `L4RuleList` is required. Only port-specific mitigation policies support this value.
844
- * * **63**: deletes the port-specific mitigation rule. If you specify this value, `L4RuleList` is required. Only port-specific mitigation policies support this value.
931
+ * The action type.
845
932
  *
846
933
  * This parameter is required.
847
934
  *
@@ -856,7 +943,7 @@ export class ModifyPolicyRequest extends $dara.Model {
856
943
  content?: ModifyPolicyRequestContent;
857
944
  /**
858
945
  * @remarks
859
- * The ID of the policy.
946
+ * The policy ID.
860
947
  *
861
948
  * This parameter is required.
862
949
  *
@@ -866,12 +953,19 @@ export class ModifyPolicyRequest extends $dara.Model {
866
953
  id?: string;
867
954
  /**
868
955
  * @remarks
869
- * The name of the policy.
956
+ * The policy name.
870
957
  *
871
958
  * @example
872
959
  * demo**
873
960
  */
874
961
  name?: string;
962
+ /**
963
+ * @remarks
964
+ * The version of the port-specific mitigation policy. Valid values:
965
+ *
966
+ * @example
967
+ * 2
968
+ */
875
969
  portVersion?: string;
876
970
  static names(): { [key: string]: string } {
877
971
  return {