@alicloud/ddosbgp20180720 3.1.1 → 3.1.2

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 (39) hide show
  1. package/dist/client.d.ts +8 -8
  2. package/dist/client.js +8 -12
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AttachToPolicyRequest.d.ts +3 -2
  5. package/dist/models/AttachToPolicyRequest.js.map +1 -1
  6. package/dist/models/AttachToPolicyResponseBody.d.ts +1 -1
  7. package/dist/models/AttachToPolicyShrinkRequest.d.ts +2 -2
  8. package/dist/models/DescribeInstanceListRequest.d.ts +8 -6
  9. package/dist/models/DescribeInstanceListRequest.js.map +1 -1
  10. package/dist/models/DescribeInstanceListResponseBody.d.ts +13 -6
  11. package/dist/models/DescribeInstanceListResponseBody.js.map +1 -1
  12. package/dist/models/ListPolicyRequest.d.ts +17 -2
  13. package/dist/models/ListPolicyRequest.js.map +1 -1
  14. package/dist/models/ListPolicyResponseBody.d.ts +133 -27
  15. package/dist/models/ListPolicyResponseBody.js +8 -0
  16. package/dist/models/ListPolicyResponseBody.js.map +1 -1
  17. package/dist/models/ModifyPolicyContentRequest.d.ts +112 -26
  18. package/dist/models/ModifyPolicyContentRequest.js +8 -0
  19. package/dist/models/ModifyPolicyContentRequest.js.map +1 -1
  20. package/dist/models/ModifyPolicyContentShrinkRequest.d.ts +4 -0
  21. package/dist/models/ModifyPolicyContentShrinkRequest.js.map +1 -1
  22. package/dist/models/ModifyPolicyRequest.d.ts +155 -32
  23. package/dist/models/ModifyPolicyRequest.js +8 -0
  24. package/dist/models/ModifyPolicyRequest.js.map +1 -1
  25. package/dist/models/ModifyPolicyShrinkRequest.d.ts +29 -2
  26. package/dist/models/ModifyPolicyShrinkRequest.js.map +1 -1
  27. package/package.json +1 -1
  28. package/src/client.ts +8 -12
  29. package/src/models/AttachToPolicyRequest.ts +3 -2
  30. package/src/models/AttachToPolicyResponseBody.ts +1 -1
  31. package/src/models/AttachToPolicyShrinkRequest.ts +2 -2
  32. package/src/models/DescribeInstanceListRequest.ts +8 -6
  33. package/src/models/DescribeInstanceListResponseBody.ts +13 -6
  34. package/src/models/ListPolicyRequest.ts +17 -2
  35. package/src/models/ListPolicyResponseBody.ts +141 -27
  36. package/src/models/ModifyPolicyContentRequest.ts +120 -26
  37. package/src/models/ModifyPolicyContentShrinkRequest.ts +4 -0
  38. package/src/models/ModifyPolicyRequest.ts +163 -32
  39. package/src/models/ModifyPolicyShrinkRequest.ts +29 -2
@@ -5,9 +5,15 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The end value of the destination port range. Valid values: **0** to **65535**.
8
+ * The rule comment.
9
9
  *
10
- * This parameter is required.
10
+ * @example
11
+ * comment
12
+ */
13
+ comment?: string;
14
+ /**
15
+ * @remarks
16
+ * The end value of the destination port range. Valid values: **0** to **65535**.
11
17
  *
12
18
  * @example
13
19
  * 65535
@@ -17,8 +23,6 @@ export class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
17
23
  * @remarks
18
24
  * The start value of the destination port range. Valid values: **0** to **65535**.
19
25
  *
20
- * This parameter is required.
21
- *
22
26
  * @example
23
27
  * 0
24
28
  */
@@ -35,6 +39,11 @@ export class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
35
39
  * @remarks
36
40
  * The match action. Valid values:
37
41
  *
42
+ * - **accept**: Allows traffic that matches the fingerprint.
43
+ * - **drop**: Drops traffic that matches the fingerprint.
44
+ * - **ip_rate**: Rate-limits the source IP address of traffic that matches the fingerprint. Set the rate limit value by using the **RateValue** parameter.
45
+ * - **session_rate**: Rate-limits the source session of traffic that matches the fingerprint. Set the rate limit value by using the **RateValue** parameter.
46
+ *
38
47
  * This parameter is required.
39
48
  *
40
49
  * @example
@@ -45,8 +54,6 @@ export class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
45
54
  * @remarks
46
55
  * The maximum packet length. Valid values: **1** to **1500**.
47
56
  *
48
- * This parameter is required.
49
- *
50
57
  * @example
51
58
  * 1500
52
59
  */
@@ -55,12 +62,18 @@ export class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
55
62
  * @remarks
56
63
  * The minimum packet length. Valid values: **1** to **1500**.
57
64
  *
58
- * This parameter is required.
59
- *
60
65
  * @example
61
66
  * 1
62
67
  */
63
68
  minPktLen?: number;
69
+ /**
70
+ * @remarks
71
+ * The rule mode.
72
+ *
73
+ * @example
74
+ * 1
75
+ */
76
+ mode?: number;
64
77
  /**
65
78
  * @remarks
66
79
  * The offset. Valid values: **0** to **1500**.
@@ -71,7 +84,7 @@ export class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
71
84
  offset?: number;
72
85
  /**
73
86
  * @remarks
74
- * The detection payload. Represented in hexadecimal string format.
87
+ * The detection payload. Expressed in hexadecimal string format.
75
88
  *
76
89
  * @example
77
90
  * abcd
@@ -81,7 +94,8 @@ export class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
81
94
  * @remarks
82
95
  * The protocol type. Valid values:
83
96
  *
84
- * This parameter is required.
97
+ * - **tcp**: Transmission Control Protocol.
98
+ * - **udp**: User Datagram Protocol.
85
99
  *
86
100
  * @example
87
101
  * udp
@@ -91,13 +105,24 @@ export class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
91
105
  * @remarks
92
106
  * The rate limit value. Valid values: **1** to **100000**.
93
107
  *
108
+ * > This parameter is required when the match action is source IP rate limiting or source session rate limiting (**MatchAction** is **ip_rate** or **session_rate**).
109
+ *
94
110
  * @example
95
111
  * 100
96
112
  */
97
113
  rateValue?: number;
98
114
  /**
99
115
  * @remarks
100
- * The priority number, represented as an integer.
116
+ * The rule.
117
+ *
118
+ * @example
119
+ * (ip.version == 4)
120
+ */
121
+ rule?: string;
122
+ /**
123
+ * @remarks
124
+ * The priority number, expressed as an integer.
125
+ * > A smaller number indicates a higher priority.
101
126
  *
102
127
  * This parameter is required.
103
128
  *
@@ -109,8 +134,6 @@ export class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
109
134
  * @remarks
110
135
  * The end value of the source port range. Valid values: **0** to **65535**.
111
136
  *
112
- * This parameter is required.
113
- *
114
137
  * @example
115
138
  * 65535
116
139
  */
@@ -119,45 +142,59 @@ export class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
119
142
  * @remarks
120
143
  * The start value of the source port range. Valid values: **0** to **65535**.
121
144
  *
122
- * This parameter is required.
123
- *
124
145
  * @example
125
146
  * 0
126
147
  */
127
148
  srcPortStart?: number;
149
+ /**
150
+ * @remarks
151
+ * The type.
152
+ *
153
+ * @example
154
+ * 1
155
+ */
156
+ type?: number;
128
157
  static names(): { [key: string]: string } {
129
158
  return {
159
+ comment: 'Comment',
130
160
  dstPortEnd: 'DstPortEnd',
131
161
  dstPortStart: 'DstPortStart',
132
162
  id: 'Id',
133
163
  matchAction: 'MatchAction',
134
164
  maxPktLen: 'MaxPktLen',
135
165
  minPktLen: 'MinPktLen',
166
+ mode: 'Mode',
136
167
  offset: 'Offset',
137
168
  payloadBytes: 'PayloadBytes',
138
169
  protocol: 'Protocol',
139
170
  rateValue: 'RateValue',
171
+ rule: 'Rule',
140
172
  seqNo: 'SeqNo',
141
173
  srcPortEnd: 'SrcPortEnd',
142
174
  srcPortStart: 'SrcPortStart',
175
+ type: 'Type',
143
176
  };
144
177
  }
145
178
 
146
179
  static types(): { [key: string]: any } {
147
180
  return {
181
+ comment: 'string',
148
182
  dstPortEnd: 'number',
149
183
  dstPortStart: 'number',
150
184
  id: 'string',
151
185
  matchAction: 'string',
152
186
  maxPktLen: 'number',
153
187
  minPktLen: 'number',
188
+ mode: 'number',
154
189
  offset: 'number',
155
190
  payloadBytes: 'string',
156
191
  protocol: 'string',
157
192
  rateValue: 'number',
193
+ rule: 'string',
158
194
  seqNo: 'number',
159
195
  srcPortEnd: 'number',
160
196
  srcPortStart: 'number',
197
+ type: 'number',
161
198
  };
162
199
  }
163
200
 
@@ -175,6 +212,8 @@ export class ModifyPolicyRequestContentL4RuleListConditionListOffset extends $da
175
212
  * @remarks
176
213
  * The end position. Valid values: **0** to **1499**.
177
214
  *
215
+ * > The end position must be greater than or equal to the start position.
216
+ *
178
217
  * @example
179
218
  * 1499
180
219
  */
@@ -214,6 +253,7 @@ export class ModifyPolicyRequestContentL4RuleListConditionList extends $dara.Mod
214
253
  /**
215
254
  * @remarks
216
255
  * The detection content.
256
+ * > If the rule type is **char**, the value must be an ASCII string. If the rule type is **hex**, the value must be a hexadecimal string. Maximum length: 2048.
217
257
  *
218
258
  * @example
219
259
  * abcd
@@ -223,6 +263,22 @@ export class ModifyPolicyRequestContentL4RuleListConditionList extends $dara.Mod
223
263
  * @remarks
224
264
  * The matching content.
225
265
  *
266
+ * 1. When **Encode** is set to **str**, the following requirements must be met:
267
+ *
268
+ * - The length of **Content** must not exceed 1500.
269
+ *
270
+ * - **End** - **Start** >= the length of **Content**.
271
+ *
272
+ * 2. When **Encode** is set to **hex**, the following requirements must be met:
273
+ *
274
+ * - **Content** must be hexadecimal characters.
275
+ *
276
+ * - The length of **Content** must be an even number.
277
+ *
278
+ * - The length of **Content** must not exceed 3000.
279
+ *
280
+ * - **End** - **Start** + 1 >= the length of **Content** / 2.
281
+ *
226
282
  * @example
227
283
  * test**
228
284
  */
@@ -239,6 +295,10 @@ export class ModifyPolicyRequestContentL4RuleListConditionList extends $dara.Mod
239
295
  * @remarks
240
296
  * The character type. Valid values:
241
297
  *
298
+ * - **str**: string.
299
+ *
300
+ * - **hex**: hexadecimal.
301
+ *
242
302
  * @example
243
303
  * str
244
304
  */
@@ -250,7 +310,20 @@ export class ModifyPolicyRequestContentL4RuleListConditionList extends $dara.Mod
250
310
  offset?: ModifyPolicyRequestContentL4RuleListConditionListOffset;
251
311
  /**
252
312
  * @remarks
253
- * The matching pattern.
313
+ * The matching pattern. Valid values vary depending on the value of the **Encode** field:
314
+ *
315
+ * (1) When **Encode** is set to **str**, valid values:
316
+ * - **contain**: contains.
317
+ *
318
+ * - **not_contain**: does not contain.
319
+ *
320
+ * - **regex**: regular expression.
321
+ *
322
+ * (2) When **Encode** is set to **hex**, valid values:
323
+ *
324
+ * - **contain**: contains.
325
+ *
326
+ * - **not_contain**: does not contain.
254
327
  *
255
328
  * @example
256
329
  * contain
@@ -306,7 +379,7 @@ export class ModifyPolicyRequestContentL4RuleList extends $dara.Model {
306
379
  * The action.
307
380
  *
308
381
  * @example
309
- * 2
382
+ * block
310
383
  */
311
384
  action?: string;
312
385
  /**
@@ -326,6 +399,10 @@ export class ModifyPolicyRequestContentL4RuleList extends $dara.Model {
326
399
  * @remarks
327
400
  * The logical operator. Valid values:
328
401
  *
402
+ * - **0**: The action is executed when the condition is met.
403
+ *
404
+ * - **1**: The action is executed when the condition is not met.
405
+ *
329
406
  * @example
330
407
  * 0
331
408
  */
@@ -334,6 +411,10 @@ export class ModifyPolicyRequestContentL4RuleList extends $dara.Model {
334
411
  * @remarks
335
412
  * The rule type. Valid values:
336
413
  *
414
+ * - **hex**: hexadecimal match.
415
+ *
416
+ * - **char**: string match.
417
+ *
337
418
  * @example
338
419
  * char
339
420
  */
@@ -352,6 +433,8 @@ export class ModifyPolicyRequestContentL4RuleList extends $dara.Model {
352
433
  * @remarks
353
434
  * The rule priority. Valid values: **1** to **100**.
354
435
  *
436
+ * > A smaller value indicates a higher priority.
437
+ *
355
438
  * @example
356
439
  * 1
357
440
  */
@@ -425,6 +508,8 @@ export class ModifyPolicyRequestContentPortRuleList extends $dara.Model {
425
508
  * @remarks
426
509
  * The match action. Valid values:
427
510
  *
511
+ * - **drop**: Drops the traffic.
512
+ *
428
513
  * This parameter is required.
429
514
  *
430
515
  * @example
@@ -435,6 +520,9 @@ export class ModifyPolicyRequestContentPortRuleList extends $dara.Model {
435
520
  * @remarks
436
521
  * The protocol type. Valid values:
437
522
  *
523
+ * - **tcp**: Transmission Control Protocol.
524
+ * - **udp**: User Datagram Protocol.
525
+ *
438
526
  * This parameter is required.
439
527
  *
440
528
  * @example
@@ -443,7 +531,8 @@ export class ModifyPolicyRequestContentPortRuleList extends $dara.Model {
443
531
  protocol?: string;
444
532
  /**
445
533
  * @remarks
446
- * The priority number, represented as an integer.
534
+ * The priority number, expressed as an integer.
535
+ * > A smaller number indicates a higher priority.
447
536
  *
448
537
  * This parameter is required.
449
538
  *
@@ -509,7 +598,10 @@ export class ModifyPolicyRequestContentPortRuleList extends $dara.Model {
509
598
  export class ModifyPolicyRequestContentSipDefense extends $dara.Model {
510
599
  /**
511
600
  * @remarks
512
- * Specifies whether to enable SIP protection. Valid values:
601
+ * Specifies whether SIP protection is enabled. Valid values:
602
+ *
603
+ * - **true**: Enabled.
604
+ * - **false**: Disabled.
513
605
  *
514
606
  * @example
515
607
  * true
@@ -642,6 +734,14 @@ export class ModifyPolicyRequestContentSourceBlockList extends $dara.Model {
642
734
  * @remarks
643
735
  * The source rate limiting type. Valid values:
644
736
  *
737
+ * - **3**: source PPS rate limiting.
738
+ *
739
+ * - **4**: source bandwidth throttling.
740
+ *
741
+ * - **5**: source SYN PPS rate limiting.
742
+ *
743
+ * - **6**: source SYN bandwidth throttling.
744
+ *
645
745
  * This parameter is required.
646
746
  *
647
747
  * @example
@@ -678,7 +778,7 @@ export class ModifyPolicyRequestContentSourceBlockList extends $dara.Model {
678
778
  export class ModifyPolicyRequestContentSourceLimit extends $dara.Model {
679
779
  /**
680
780
  * @remarks
681
- * The source bandwidth throttling. Unit: Byte/s.
781
+ * The source bandwidth throttling value. Unit: bytes per second.
682
782
  *
683
783
  * @example
684
784
  * 2048
@@ -686,7 +786,7 @@ export class ModifyPolicyRequestContentSourceLimit extends $dara.Model {
686
786
  bps?: number;
687
787
  /**
688
788
  * @remarks
689
- * The source PPS rate limit. Unit: Packet/s.
789
+ * The source PPS rate limit. Unit: packets per second.
690
790
  *
691
791
  * @example
692
792
  * 64
@@ -694,7 +794,7 @@ export class ModifyPolicyRequestContentSourceLimit extends $dara.Model {
694
794
  pps?: number;
695
795
  /**
696
796
  * @remarks
697
- * The source SYN bandwidth throttling. Unit: Byte/s.
797
+ * The source SYN bandwidth throttling value. Unit: bytes per second.
698
798
  *
699
799
  * @example
700
800
  * 2048
@@ -702,7 +802,7 @@ export class ModifyPolicyRequestContentSourceLimit extends $dara.Model {
702
802
  synBps?: number;
703
803
  /**
704
804
  * @remarks
705
- * The source SYN PPS rate limit. Unit: Packet/s.
805
+ * The source SYN PPS rate limit. Unit: packets per second.
706
806
  *
707
807
  * @example
708
808
  * 64
@@ -743,7 +843,7 @@ export class ModifyPolicyRequestContent extends $dara.Model {
743
843
  blackIpList?: string[];
744
844
  /**
745
845
  * @remarks
746
- * The expiration time of the IP blacklist (UNIX timestamp).
846
+ * The timeout period of the IP blacklist (UNIX timestamp).
747
847
  *
748
848
  * @example
749
849
  * 1716878000
@@ -767,7 +867,7 @@ export class ModifyPolicyRequestContent extends $dara.Model {
767
867
  enableIntelligence?: boolean;
768
868
  /**
769
869
  * @remarks
770
- * Specifies whether to enable port protection.
870
+ * Specifies whether to enable port-specific mitigation.
771
871
  *
772
872
  * @example
773
873
  * true
@@ -782,13 +882,17 @@ export class ModifyPolicyRequestContent extends $dara.Model {
782
882
  * @remarks
783
883
  * The protection level of AI-based intelligent protection. Valid values:
784
884
  *
885
+ * - **default**: Normal.
886
+ * - **weak**: Loose.
887
+ * - **hard**: Strict.
888
+ *
785
889
  * @example
786
890
  * default
787
891
  */
788
892
  intelligenceLevel?: string;
789
893
  /**
790
894
  * @remarks
791
- * The list of port-specific mitigation rules.
895
+ * The list of port forwarding rules.
792
896
  */
793
897
  l4RuleList?: ModifyPolicyRequestContentL4RuleList[];
794
898
  /**
@@ -798,17 +902,17 @@ export class ModifyPolicyRequestContent extends $dara.Model {
798
902
  portRuleList?: ModifyPolicyRequestContentPortRuleList[];
799
903
  /**
800
904
  * @remarks
801
- * The list of ports filtered by reflection attack prevention.
905
+ * The list of ports filtered by Reflection Attack Filtering.
802
906
  */
803
907
  reflectBlockUdpPortList?: number[];
804
908
  /**
805
909
  * @remarks
806
- * The list of countries for location blacklist.
910
+ * The list of countries for the location blacklist.
807
911
  */
808
912
  regionBlockCountryList?: number[];
809
913
  /**
810
914
  * @remarks
811
- * The list of provinces for location blacklist.
915
+ * The list of provinces for the location blacklist.
812
916
  */
813
917
  regionBlockProvinceList?: number[];
814
918
  /**
@@ -833,7 +937,7 @@ export class ModifyPolicyRequestContent extends $dara.Model {
833
937
  whiteIpList?: string[];
834
938
  /**
835
939
  * @remarks
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).
940
+ * Specifies whether to enable whitelisting of back-to-origin IP addresses for Anti-DDoS Pro and Anti-DDoS Premium (the Chinese mainland and outside the Chinese mainland).
837
941
  *
838
942
  * @example
839
943
  * false
@@ -928,7 +1032,30 @@ export class ModifyPolicyRequestContent extends $dara.Model {
928
1032
  export class ModifyPolicyRequest extends $dara.Model {
929
1033
  /**
930
1034
  * @remarks
931
- * The action type.
1035
+ * The action type. Valid values:
1036
+ *
1037
+ * - **10**: Modifies the name (Name is required).
1038
+ * - **11**: Modifies the blacklist timeout period (BlackIpListExpireAt is required). Only IP-specific mitigation policies are supported.
1039
+ * - **12**: Modifies the switch for whitelisting back-to-origin IP addresses of Anti-DDoS Pro and Anti-DDoS Premium (WhitenGfbrNets is required). Only IP-specific mitigation policies are supported.
1040
+ * - **13**: Modifies the switch for ICMP Blocking (EnableDropIcmp is required). Only IP-specific mitigation policies are supported.
1041
+ * - **20**: Adds blacklist and whitelist entries (WhiteIpList and BlackIpList are optional). Only IP-specific mitigation policies are supported.
1042
+ * - **21**: Deletes blacklist and whitelist entries (WhiteIpList and BlackIpList are optional). Only IP-specific mitigation policies are supported.
1043
+ * - **22**: Clears the whitelist. Only IP-specific mitigation policies are supported.
1044
+ * - **23**: Clears the blacklist. Only IP-specific mitigation policies are supported.
1045
+ * - **30**: Modifies the AI-based intelligent protection switch and level (EnableIntelligence and IntelligenceLevel are required). Only IP-specific mitigation policies are supported.
1046
+ * - **31**: Modifies the Location Blacklist configuration (RegionBlockCountryList and RegionBlockProvinceList are optional). Only IP-specific mitigation policies are supported.
1047
+ * - **32**: Modifies the Source Rate Limiting configuration (SourceLimit and SourceBlockList are required). Only IP-specific mitigation policies are supported.
1048
+ * - **33**: Modifies the Reflection Attack Filtering (ReflectBlockUdpPortList is required). Only IP-specific mitigation policies are supported.
1049
+ * - **40**: Creates a Port Blocking rule (PortRuleList is required). Only IP-specific mitigation policies are supported.
1050
+ * - **41**: Modifies a Port Blocking rule (PortRuleList is required). Only IP-specific mitigation policies are supported.
1051
+ * - **42**: Deletes a Port Blocking rule (PortRuleList is required). Only IP-specific mitigation policies are supported.
1052
+ * - **50**: Creates a Byte-Match Filter rule (FingerPrintRuleList is required). Only IP-specific mitigation policies are supported.
1053
+ * - **51**: Modifies a Byte-Match Filter rule (FingerPrintRuleList is required). Only IP-specific mitigation policies are supported.
1054
+ * - **52**: Deletes a Byte-Match Filter rule (FingerPrintRuleList is required). Only IP-specific mitigation policies are supported.
1055
+ * - **60**: Modifies the port-specific mitigation switch (EnableL4Defense is required). Only port-specific mitigation policies are supported.
1056
+ * - **61**: Creates a port-specific mitigation rule (L4RuleList is required). Only port-specific mitigation policies are supported.
1057
+ * - **62**: Modifies a port-specific mitigation rule (L4RuleList is required). Only port-specific mitigation policies are supported.
1058
+ * - **63**: Deletes a port-specific mitigation rule (L4RuleList is required). Only port-specific mitigation policies are supported.
932
1059
  *
933
1060
  * This parameter is required.
934
1061
  *
@@ -961,7 +1088,11 @@ export class ModifyPolicyRequest extends $dara.Model {
961
1088
  name?: string;
962
1089
  /**
963
1090
  * @remarks
964
- * The version of the port-specific mitigation policy. Valid values:
1091
+ * The port-specific mitigation policy version. Valid values:
1092
+ *
1093
+ * - **Empty**: Modifies the default surf DPI engine policy.
1094
+ * - **2**: Modifies the new stream DPI engine policy.
1095
+ * > Only port-specific mitigation policies are supported.
965
1096
  *
966
1097
  * @example
967
1098
  * 2
@@ -5,7 +5,30 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ModifyPolicyShrinkRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The action type.
8
+ * The action type. Valid values:
9
+ *
10
+ * - **10**: Modifies the name (Name is required).
11
+ * - **11**: Modifies the blacklist timeout period (BlackIpListExpireAt is required). Only IP-specific mitigation policies are supported.
12
+ * - **12**: Modifies the switch for whitelisting back-to-origin IP addresses of Anti-DDoS Pro and Anti-DDoS Premium (WhitenGfbrNets is required). Only IP-specific mitigation policies are supported.
13
+ * - **13**: Modifies the switch for ICMP Blocking (EnableDropIcmp is required). Only IP-specific mitigation policies are supported.
14
+ * - **20**: Adds blacklist and whitelist entries (WhiteIpList and BlackIpList are optional). Only IP-specific mitigation policies are supported.
15
+ * - **21**: Deletes blacklist and whitelist entries (WhiteIpList and BlackIpList are optional). Only IP-specific mitigation policies are supported.
16
+ * - **22**: Clears the whitelist. Only IP-specific mitigation policies are supported.
17
+ * - **23**: Clears the blacklist. Only IP-specific mitigation policies are supported.
18
+ * - **30**: Modifies the AI-based intelligent protection switch and level (EnableIntelligence and IntelligenceLevel are required). Only IP-specific mitigation policies are supported.
19
+ * - **31**: Modifies the Location Blacklist configuration (RegionBlockCountryList and RegionBlockProvinceList are optional). Only IP-specific mitigation policies are supported.
20
+ * - **32**: Modifies the Source Rate Limiting configuration (SourceLimit and SourceBlockList are required). Only IP-specific mitigation policies are supported.
21
+ * - **33**: Modifies the Reflection Attack Filtering (ReflectBlockUdpPortList is required). Only IP-specific mitigation policies are supported.
22
+ * - **40**: Creates a Port Blocking rule (PortRuleList is required). Only IP-specific mitigation policies are supported.
23
+ * - **41**: Modifies a Port Blocking rule (PortRuleList is required). Only IP-specific mitigation policies are supported.
24
+ * - **42**: Deletes a Port Blocking rule (PortRuleList is required). Only IP-specific mitigation policies are supported.
25
+ * - **50**: Creates a Byte-Match Filter rule (FingerPrintRuleList is required). Only IP-specific mitigation policies are supported.
26
+ * - **51**: Modifies a Byte-Match Filter rule (FingerPrintRuleList is required). Only IP-specific mitigation policies are supported.
27
+ * - **52**: Deletes a Byte-Match Filter rule (FingerPrintRuleList is required). Only IP-specific mitigation policies are supported.
28
+ * - **60**: Modifies the port-specific mitigation switch (EnableL4Defense is required). Only port-specific mitigation policies are supported.
29
+ * - **61**: Creates a port-specific mitigation rule (L4RuleList is required). Only port-specific mitigation policies are supported.
30
+ * - **62**: Modifies a port-specific mitigation rule (L4RuleList is required). Only port-specific mitigation policies are supported.
31
+ * - **63**: Deletes a port-specific mitigation rule (L4RuleList is required). Only port-specific mitigation policies are supported.
9
32
  *
10
33
  * This parameter is required.
11
34
  *
@@ -38,7 +61,11 @@ export class ModifyPolicyShrinkRequest extends $dara.Model {
38
61
  name?: string;
39
62
  /**
40
63
  * @remarks
41
- * The version of the port-specific mitigation policy. Valid values:
64
+ * The port-specific mitigation policy version. Valid values:
65
+ *
66
+ * - **Empty**: Modifies the default surf DPI engine policy.
67
+ * - **2**: Modifies the new stream DPI engine policy.
68
+ * > Only port-specific mitigation policies are supported.
42
69
  *
43
70
  * @example
44
71
  * 2