@alicloud/esa20240910 2.36.0 → 2.37.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.
- package/dist/client.d.ts +47 -2
- package/dist/client.js +137 -2
- package/dist/client.js.map +1 -1
- package/dist/models/DeleteHttpDdoSintelligentRuleRequest.d.ts +37 -0
- package/dist/models/DeleteHttpDdoSintelligentRuleRequest.js +62 -0
- package/dist/models/DeleteHttpDdoSintelligentRuleRequest.js.map +1 -0
- package/dist/models/DeleteHttpDdoSintelligentRuleResponse.d.ts +19 -0
- package/dist/models/DeleteHttpDdoSintelligentRuleResponse.js +69 -0
- package/dist/models/DeleteHttpDdoSintelligentRuleResponse.js.map +1 -0
- package/dist/models/DeleteHttpDdoSintelligentRuleResponseBody.d.ts +36 -0
- package/dist/models/DeleteHttpDdoSintelligentRuleResponseBody.js +64 -0
- package/dist/models/DeleteHttpDdoSintelligentRuleResponseBody.js.map +1 -0
- package/dist/models/GetOriginRuleRequest.d.ts +2 -2
- package/dist/models/GetOriginRuleResponseBody.d.ts +99 -32
- package/dist/models/GetOriginRuleResponseBody.js.map +1 -1
- package/dist/models/GetTransportLayerApplicationRequest.d.ts +2 -2
- package/dist/models/GetTransportLayerApplicationResponseBody.d.ts +39 -49
- package/dist/models/GetTransportLayerApplicationResponseBody.js.map +1 -1
- package/dist/models/ListListsResponseBody.d.ts +1 -0
- package/dist/models/ListListsResponseBody.js +2 -0
- package/dist/models/ListListsResponseBody.js.map +1 -1
- package/dist/models/SetHttpDdoSattackRuleActionRequest.d.ts +37 -0
- package/dist/models/SetHttpDdoSattackRuleActionRequest.js +62 -0
- package/dist/models/SetHttpDdoSattackRuleActionRequest.js.map +1 -0
- package/dist/models/SetHttpDdoSattackRuleActionResponse.d.ts +19 -0
- package/dist/models/SetHttpDdoSattackRuleActionResponse.js +69 -0
- package/dist/models/SetHttpDdoSattackRuleActionResponse.js.map +1 -0
- package/dist/models/SetHttpDdoSattackRuleActionResponseBody.d.ts +21 -0
- package/dist/models/SetHttpDdoSattackRuleActionResponseBody.js +58 -0
- package/dist/models/SetHttpDdoSattackRuleActionResponseBody.js.map +1 -0
- package/dist/models/SetHttpDdoSattackRuleStatusRequest.d.ts +37 -0
- package/dist/models/SetHttpDdoSattackRuleStatusRequest.js +62 -0
- package/dist/models/SetHttpDdoSattackRuleStatusRequest.js.map +1 -0
- package/dist/models/SetHttpDdoSattackRuleStatusResponse.d.ts +19 -0
- package/dist/models/SetHttpDdoSattackRuleStatusResponse.js +69 -0
- package/dist/models/SetHttpDdoSattackRuleStatusResponse.js.map +1 -0
- package/dist/models/SetHttpDdoSattackRuleStatusResponseBody.d.ts +21 -0
- package/dist/models/SetHttpDdoSattackRuleStatusResponseBody.js +58 -0
- package/dist/models/SetHttpDdoSattackRuleStatusResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +9 -0
- package/dist/models/model.js +37 -19
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +152 -2
- package/src/models/DeleteHttpDdoSintelligentRuleRequest.ts +54 -0
- package/src/models/DeleteHttpDdoSintelligentRuleResponse.ts +40 -0
- package/src/models/DeleteHttpDdoSintelligentRuleResponseBody.ts +55 -0
- package/src/models/GetOriginRuleRequest.ts +2 -2
- package/src/models/GetOriginRuleResponseBody.ts +99 -32
- package/src/models/GetTransportLayerApplicationRequest.ts +2 -2
- package/src/models/GetTransportLayerApplicationResponseBody.ts +39 -49
- package/src/models/ListListsResponseBody.ts +3 -0
- package/src/models/SetHttpDdoSattackRuleActionRequest.ts +54 -0
- package/src/models/SetHttpDdoSattackRuleActionResponse.ts +40 -0
- package/src/models/SetHttpDdoSattackRuleActionResponseBody.ts +34 -0
- package/src/models/SetHttpDdoSattackRuleStatusRequest.ts +54 -0
- package/src/models/SetHttpDdoSattackRuleStatusResponse.ts +40 -0
- package/src/models/SetHttpDdoSattackRuleStatusResponseBody.ts +34 -0
- package/src/models/model.ts +9 -0
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class GetOriginRuleResponseBody extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
*
|
|
8
|
+
* The configuration ID.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* 352816096987136
|
|
@@ -13,10 +13,10 @@ export class GetOriginRuleResponseBody extends $dara.Model {
|
|
|
13
13
|
configId?: number;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
*
|
|
16
|
+
* The configuration type to query. Valid values:
|
|
17
17
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* * global: global configurations.
|
|
19
|
+
* * rule: rule configurations.
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
22
|
* rule
|
|
@@ -24,20 +24,64 @@ export class GetOriginRuleResponseBody extends $dara.Model {
|
|
|
24
24
|
configType?: string;
|
|
25
25
|
/**
|
|
26
26
|
* @remarks
|
|
27
|
-
*
|
|
27
|
+
* The hostname that overrides the resolved hostname of an incoming request.
|
|
28
28
|
*
|
|
29
29
|
* @example
|
|
30
30
|
* test.example.com
|
|
31
31
|
*/
|
|
32
32
|
dnsRecord?: string;
|
|
33
|
+
/**
|
|
34
|
+
* @remarks
|
|
35
|
+
* 302 follow switch. Valid values:
|
|
36
|
+
*
|
|
37
|
+
* * on
|
|
38
|
+
* * off
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* on
|
|
42
|
+
*/
|
|
33
43
|
follow302Enable?: string;
|
|
44
|
+
/**
|
|
45
|
+
* @remarks
|
|
46
|
+
* The maximum number of 302 follow times. Valid values: 1 to 5.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* 1
|
|
50
|
+
*/
|
|
34
51
|
follow302MaxTries?: string;
|
|
52
|
+
/**
|
|
53
|
+
* @remarks
|
|
54
|
+
* Retains the original request parameters switch. Valid values:
|
|
55
|
+
*
|
|
56
|
+
* * on
|
|
57
|
+
* * off
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* on
|
|
61
|
+
*/
|
|
35
62
|
follow302RetainArgs?: string;
|
|
63
|
+
/**
|
|
64
|
+
* @remarks
|
|
65
|
+
* Retain the original request header switch. Valid values:
|
|
66
|
+
*
|
|
67
|
+
* * on
|
|
68
|
+
* * off
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* on
|
|
72
|
+
*/
|
|
36
73
|
follow302RetainHeader?: string;
|
|
74
|
+
/**
|
|
75
|
+
* @remarks
|
|
76
|
+
* Target Host
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* test.com
|
|
80
|
+
*/
|
|
37
81
|
follow302TargetHost?: string;
|
|
38
82
|
/**
|
|
39
83
|
* @remarks
|
|
40
|
-
*
|
|
84
|
+
* The Host header in origin requests.
|
|
41
85
|
*
|
|
42
86
|
* @example
|
|
43
87
|
* origin.example.com
|
|
@@ -45,7 +89,7 @@ export class GetOriginRuleResponseBody extends $dara.Model {
|
|
|
45
89
|
originHost?: string;
|
|
46
90
|
/**
|
|
47
91
|
* @remarks
|
|
48
|
-
*
|
|
92
|
+
* The origin port that is accessed when the HTTP protocol is used to back to the origin.
|
|
49
93
|
*
|
|
50
94
|
* @example
|
|
51
95
|
* 8080
|
|
@@ -53,7 +97,7 @@ export class GetOriginRuleResponseBody extends $dara.Model {
|
|
|
53
97
|
originHttpPort?: string;
|
|
54
98
|
/**
|
|
55
99
|
* @remarks
|
|
56
|
-
*
|
|
100
|
+
* The origin port that is accessed when the HTTPS protocol is used to back to the origin.
|
|
57
101
|
*
|
|
58
102
|
* @example
|
|
59
103
|
* 4433
|
|
@@ -61,22 +105,30 @@ export class GetOriginRuleResponseBody extends $dara.Model {
|
|
|
61
105
|
originHttpsPort?: string;
|
|
62
106
|
/**
|
|
63
107
|
* @remarks
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
108
|
+
* The MTLS switch. Valid values:
|
|
109
|
+
*
|
|
110
|
+
* * on
|
|
111
|
+
* * off
|
|
67
112
|
*
|
|
68
113
|
* @example
|
|
69
114
|
* on
|
|
70
115
|
*/
|
|
71
116
|
originMtls?: string;
|
|
117
|
+
/**
|
|
118
|
+
* @remarks
|
|
119
|
+
* The read timeout period (in seconds) on the origin.
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* 10
|
|
123
|
+
*/
|
|
72
124
|
originReadTimeout?: string;
|
|
73
125
|
/**
|
|
74
126
|
* @remarks
|
|
75
|
-
*
|
|
127
|
+
* The protocol used for origin requests. Valid values:
|
|
76
128
|
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
129
|
+
* * http: HTTP.
|
|
130
|
+
* * https: HTTPS.
|
|
131
|
+
* * follow: follows the protocol used by the client.
|
|
80
132
|
*
|
|
81
133
|
* @example
|
|
82
134
|
* http
|
|
@@ -84,7 +136,7 @@ export class GetOriginRuleResponseBody extends $dara.Model {
|
|
|
84
136
|
originScheme?: string;
|
|
85
137
|
/**
|
|
86
138
|
* @remarks
|
|
87
|
-
* SNI
|
|
139
|
+
* The SNI in origin requests.
|
|
88
140
|
*
|
|
89
141
|
* @example
|
|
90
142
|
* origin.example.com
|
|
@@ -92,9 +144,10 @@ export class GetOriginRuleResponseBody extends $dara.Model {
|
|
|
92
144
|
originSni?: string;
|
|
93
145
|
/**
|
|
94
146
|
* @remarks
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
147
|
+
* The origin certificate verification switch. Valid values:
|
|
148
|
+
*
|
|
149
|
+
* * on
|
|
150
|
+
* * off
|
|
98
151
|
*
|
|
99
152
|
* @example
|
|
100
153
|
* on
|
|
@@ -102,16 +155,28 @@ export class GetOriginRuleResponseBody extends $dara.Model {
|
|
|
102
155
|
originVerify?: string;
|
|
103
156
|
/**
|
|
104
157
|
* @remarks
|
|
105
|
-
* Use
|
|
158
|
+
* Use range requests to download an object from the source. Valid values:
|
|
106
159
|
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
160
|
+
* * on
|
|
161
|
+
* * off
|
|
162
|
+
* * force: enables range origin fetch by force.
|
|
110
163
|
*
|
|
111
164
|
* @example
|
|
112
165
|
* on
|
|
113
166
|
*/
|
|
114
167
|
range?: string;
|
|
168
|
+
/**
|
|
169
|
+
* @remarks
|
|
170
|
+
* The size of the range part. Valid values:
|
|
171
|
+
*
|
|
172
|
+
* * 512KB
|
|
173
|
+
* * 1MB
|
|
174
|
+
* * 2MB
|
|
175
|
+
* * 4MB
|
|
176
|
+
*
|
|
177
|
+
* @example
|
|
178
|
+
* 1MB
|
|
179
|
+
*/
|
|
115
180
|
rangeChunkSize?: string;
|
|
116
181
|
/**
|
|
117
182
|
* @remarks
|
|
@@ -123,9 +188,10 @@ export class GetOriginRuleResponseBody extends $dara.Model {
|
|
|
123
188
|
requestId?: string;
|
|
124
189
|
/**
|
|
125
190
|
* @remarks
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
191
|
+
* The content of the rule. A conditional expression is used to match a user request. You do not need to set this parameter when you add global configuration. Use cases:
|
|
192
|
+
*
|
|
193
|
+
* * true: Match all incoming requests.
|
|
194
|
+
* * Set the value to a custom expression, for example, (http.host eq "video.example.com"): Match the specified request.
|
|
129
195
|
*
|
|
130
196
|
* @example
|
|
131
197
|
* (http.host eq \\"video.example.com\\")
|
|
@@ -133,9 +199,10 @@ export class GetOriginRuleResponseBody extends $dara.Model {
|
|
|
133
199
|
rule?: string;
|
|
134
200
|
/**
|
|
135
201
|
* @remarks
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
*
|
|
202
|
+
* Specifies whether to enable the rule. Valid values: You do not need to set this parameter when you add global configuration. Valid values:
|
|
203
|
+
*
|
|
204
|
+
* * on
|
|
205
|
+
* * off
|
|
139
206
|
*
|
|
140
207
|
* @example
|
|
141
208
|
* on
|
|
@@ -143,7 +210,7 @@ export class GetOriginRuleResponseBody extends $dara.Model {
|
|
|
143
210
|
ruleEnable?: string;
|
|
144
211
|
/**
|
|
145
212
|
* @remarks
|
|
146
|
-
*
|
|
213
|
+
* The rule name. You do not need to set this parameter when you add global configurations.
|
|
147
214
|
*
|
|
148
215
|
* @example
|
|
149
216
|
* rule_example
|
|
@@ -151,7 +218,7 @@ export class GetOriginRuleResponseBody extends $dara.Model {
|
|
|
151
218
|
ruleName?: string;
|
|
152
219
|
/**
|
|
153
220
|
* @remarks
|
|
154
|
-
*
|
|
221
|
+
* The rule execution order. The smaller the value, the higher the priority.
|
|
155
222
|
*
|
|
156
223
|
* @example
|
|
157
224
|
* 1
|
|
@@ -159,7 +226,7 @@ export class GetOriginRuleResponseBody extends $dara.Model {
|
|
|
159
226
|
sequence?: number;
|
|
160
227
|
/**
|
|
161
228
|
* @remarks
|
|
162
|
-
*
|
|
229
|
+
* The version number of the configurations. You can use this parameter to specify a version of your website to apply the feature settings. By default, version 0 is used.
|
|
163
230
|
*
|
|
164
231
|
* @example
|
|
165
232
|
* 1
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class GetTransportLayerApplicationRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
*
|
|
8
|
+
* Number of forwarding rules contained in the transport layer acceleration application.
|
|
9
9
|
*
|
|
10
10
|
* This parameter is required.
|
|
11
11
|
*
|
|
@@ -15,7 +15,7 @@ export class GetTransportLayerApplicationRequest extends $dara.Model {
|
|
|
15
15
|
applicationId?: number;
|
|
16
16
|
/**
|
|
17
17
|
* @remarks
|
|
18
|
-
*
|
|
18
|
+
* Transport layer application ID.
|
|
19
19
|
*
|
|
20
20
|
* This parameter is required.
|
|
21
21
|
*
|
|
@@ -5,11 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class GetTransportLayerApplicationResponseBodyRules extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
*
|
|
9
|
-
* - **off**: No pass-through.
|
|
10
|
-
* - **PPv1**: PROXY Protocol v1, supports client IP pass-through for TCP protocol.
|
|
11
|
-
* - **PPv2**: PROXY Protocol v2, supports client IP pass-through for TCP and UDP protocols.
|
|
12
|
-
* - **SPP**: Simple Proxy Protocol, supports client IP pass-through for UDP protocol.
|
|
8
|
+
* The domain name of the transport layer application.
|
|
13
9
|
*
|
|
14
10
|
* @example
|
|
15
11
|
* off
|
|
@@ -17,19 +13,18 @@ export class GetTransportLayerApplicationResponseBodyRules extends $dara.Model {
|
|
|
17
13
|
clientIPPassThroughMode?: string;
|
|
18
14
|
/**
|
|
19
15
|
* @remarks
|
|
20
|
-
*
|
|
16
|
+
* Switch for IP access rules. When turned on, the IP access rules in WAF take effect on the transport layer application.
|
|
17
|
+
*
|
|
18
|
+
* - on: Turned on.
|
|
19
|
+
* - off: Turned off.
|
|
21
20
|
*
|
|
22
21
|
* @example
|
|
23
|
-
*
|
|
22
|
+
* IPv6 switch.
|
|
24
23
|
*/
|
|
25
24
|
comment?: string;
|
|
26
25
|
/**
|
|
27
26
|
* @remarks
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* - A single port, such as 80.
|
|
31
|
-
* - Port range, such as 81-85, representing ports 81, 82, 83, 84, 85.
|
|
32
|
-
* - Combination of ports and port ranges, separated by commas, for example 80,81-85,90, representing ports 80, 81, 82, 83, 84, 85, 90.
|
|
27
|
+
* Comment information of the rule.
|
|
33
28
|
*
|
|
34
29
|
* @example
|
|
35
30
|
* 80
|
|
@@ -37,10 +32,11 @@ export class GetTransportLayerApplicationResponseBodyRules extends $dara.Model {
|
|
|
37
32
|
edgePort?: string;
|
|
38
33
|
/**
|
|
39
34
|
* @remarks
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
* -
|
|
43
|
-
* -
|
|
35
|
+
* Client IP pass-through protocol, supporting:
|
|
36
|
+
* - **off**: No pass-through.
|
|
37
|
+
* - **PPv1**: PROXY Protocol v1, supports client IP pass-through for TCP protocol.
|
|
38
|
+
* - **PPv2**: PROXY Protocol v2, supports client IP pass-through for TCP and UDP protocols.
|
|
39
|
+
* - **SPP**: Simple Proxy Protocol, supports client IP pass-through for UDP protocol.
|
|
44
40
|
*
|
|
45
41
|
* @example
|
|
46
42
|
* TCP
|
|
@@ -48,7 +44,10 @@ export class GetTransportLayerApplicationResponseBodyRules extends $dara.Model {
|
|
|
48
44
|
protocol?: string;
|
|
49
45
|
/**
|
|
50
46
|
* @remarks
|
|
51
|
-
*
|
|
47
|
+
* Status of the transport layer application
|
|
48
|
+
*
|
|
49
|
+
* - **deploying**: Deploying. In this state, modification and deletion are not allowed.
|
|
50
|
+
* - **active**: Active.
|
|
52
51
|
*
|
|
53
52
|
* @example
|
|
54
53
|
* 1234323***
|
|
@@ -56,7 +55,10 @@ export class GetTransportLayerApplicationResponseBodyRules extends $dara.Model {
|
|
|
56
55
|
ruleId?: number;
|
|
57
56
|
/**
|
|
58
57
|
* @remarks
|
|
59
|
-
*
|
|
58
|
+
* Origin port. Supports:
|
|
59
|
+
*
|
|
60
|
+
* - A single port, when the origin port is a single port, any valid edge port combination is supported.
|
|
61
|
+
* - Port range, only when the edge port is a port range, the origin port can be set as a port range and the size of the range must be consistent with the edge port. For example, if the edge port is 90-93, the origin port cannot be set to 81-85 because the origin port range is 5 and the edge port range is 3, which are inconsistent.
|
|
60
62
|
*
|
|
61
63
|
* @example
|
|
62
64
|
* 1.1.1.1
|
|
@@ -64,10 +66,7 @@ export class GetTransportLayerApplicationResponseBodyRules extends $dara.Model {
|
|
|
64
66
|
source?: string;
|
|
65
67
|
/**
|
|
66
68
|
* @remarks
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* - A single port, when the origin port is a single port, any valid edge port combination is supported.
|
|
70
|
-
* - Port range, only when the edge port is a port range, the origin port can be set as a port range and the size of the range must be consistent with the edge port. For example, if the edge port is 90-93, the origin port cannot be set to 81-85 because the origin port range is 5 and the edge port range is 3, which are inconsistent.
|
|
69
|
+
* The CNAME domain corresponding to the transport layer acceleration application. This field is not empty only when the site is accessed via CNAME.
|
|
71
70
|
*
|
|
72
71
|
* @example
|
|
73
72
|
* 80
|
|
@@ -75,11 +74,7 @@ export class GetTransportLayerApplicationResponseBodyRules extends $dara.Model {
|
|
|
75
74
|
sourcePort?: string;
|
|
76
75
|
/**
|
|
77
76
|
* @remarks
|
|
78
|
-
*
|
|
79
|
-
* - **ip**: IP.
|
|
80
|
-
* - **domain**: Domain name.
|
|
81
|
-
* - **OP**: Origin pool.
|
|
82
|
-
* - **LB**: Load balancer.
|
|
77
|
+
* Rule ID.
|
|
83
78
|
*
|
|
84
79
|
* @example
|
|
85
80
|
* domain
|
|
@@ -149,7 +144,7 @@ export class GetTransportLayerApplicationResponseBodyStaticIpV4List extends $dar
|
|
|
149
144
|
export class GetTransportLayerApplicationResponseBody extends $dara.Model {
|
|
150
145
|
/**
|
|
151
146
|
* @remarks
|
|
152
|
-
*
|
|
147
|
+
* Specific value of the origin, which needs to match the type of the origin.
|
|
153
148
|
*
|
|
154
149
|
* @example
|
|
155
150
|
* 17099311410****
|
|
@@ -157,28 +152,22 @@ export class GetTransportLayerApplicationResponseBody extends $dara.Model {
|
|
|
157
152
|
applicationId?: number;
|
|
158
153
|
/**
|
|
159
154
|
* @remarks
|
|
160
|
-
*
|
|
155
|
+
* Whether to enable China mainland network access optimization, default is off. Value range:
|
|
156
|
+
* - on: Enabled.
|
|
157
|
+
* - off: Disabled.
|
|
161
158
|
*
|
|
162
159
|
* @example
|
|
163
160
|
* example.com.ialicdn.com
|
|
164
161
|
*/
|
|
165
162
|
cname?: string;
|
|
166
163
|
/**
|
|
167
|
-
* @remarks
|
|
168
|
-
* Whether to enable China mainland network access optimization, default is off. Value range:
|
|
169
|
-
* - on: Enabled.
|
|
170
|
-
* - off: Disabled.
|
|
171
|
-
*
|
|
172
164
|
* @example
|
|
173
165
|
* on
|
|
174
166
|
*/
|
|
175
167
|
crossBorderOptimization?: string;
|
|
176
168
|
/**
|
|
177
169
|
* @remarks
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
* - on: Turned on.
|
|
181
|
-
* - off: Turned off.
|
|
170
|
+
* #/components/schemas/WafRuleMatch2
|
|
182
171
|
*
|
|
183
172
|
* @example
|
|
184
173
|
* on
|
|
@@ -186,7 +175,7 @@ export class GetTransportLayerApplicationResponseBody extends $dara.Model {
|
|
|
186
175
|
ipAccessRule?: string;
|
|
187
176
|
/**
|
|
188
177
|
* @remarks
|
|
189
|
-
*
|
|
178
|
+
* Ipv6 switch
|
|
190
179
|
*
|
|
191
180
|
* @example
|
|
192
181
|
* on
|
|
@@ -194,7 +183,7 @@ export class GetTransportLayerApplicationResponseBody extends $dara.Model {
|
|
|
194
183
|
ipv6?: string;
|
|
195
184
|
/**
|
|
196
185
|
* @remarks
|
|
197
|
-
*
|
|
186
|
+
* Query Transport Layer Acceleration Application
|
|
198
187
|
*
|
|
199
188
|
* @example
|
|
200
189
|
* test.example.com
|
|
@@ -210,12 +199,19 @@ export class GetTransportLayerApplicationResponseBody extends $dara.Model {
|
|
|
210
199
|
requestId?: string;
|
|
211
200
|
/**
|
|
212
201
|
* @remarks
|
|
213
|
-
*
|
|
202
|
+
* Edge port. Supports:
|
|
203
|
+
*
|
|
204
|
+
* - A single port, such as 80.
|
|
205
|
+
* - Port range, such as 81-85, representing ports 81, 82, 83, 84, 85.
|
|
206
|
+
* - Combination of ports and port ranges, separated by commas, for example 80,81-85,90, representing ports 80, 81, 82, 83, 84, 85, 90.
|
|
214
207
|
*/
|
|
215
208
|
rules?: GetTransportLayerApplicationResponseBodyRules[];
|
|
216
209
|
/**
|
|
217
210
|
* @remarks
|
|
218
|
-
*
|
|
211
|
+
* Forwarding rule protocol, with values:
|
|
212
|
+
*
|
|
213
|
+
* - TCP: TCP protocol.
|
|
214
|
+
* - UDP: UDP protocol.
|
|
219
215
|
*
|
|
220
216
|
* @example
|
|
221
217
|
* 1
|
|
@@ -223,7 +219,7 @@ export class GetTransportLayerApplicationResponseBody extends $dara.Model {
|
|
|
223
219
|
rulesCount?: number;
|
|
224
220
|
/**
|
|
225
221
|
* @remarks
|
|
226
|
-
*
|
|
222
|
+
* Details of the forwarding rule.
|
|
227
223
|
*
|
|
228
224
|
* @example
|
|
229
225
|
* 123456****
|
|
@@ -232,12 +228,6 @@ export class GetTransportLayerApplicationResponseBody extends $dara.Model {
|
|
|
232
228
|
staticIp?: string;
|
|
233
229
|
staticIpV4List?: GetTransportLayerApplicationResponseBodyStaticIpV4List[];
|
|
234
230
|
/**
|
|
235
|
-
* @remarks
|
|
236
|
-
* Status of the transport layer application
|
|
237
|
-
*
|
|
238
|
-
* - **deploying**: Deploying. In this state, modification and deletion are not allowed.
|
|
239
|
-
* - **active**: Active.
|
|
240
|
-
*
|
|
241
231
|
* @example
|
|
242
232
|
* active
|
|
243
233
|
*/
|
|
@@ -83,6 +83,7 @@ export class ListListsResponseBodyLists extends $dara.Model {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
export class ListListsResponseBody extends $dara.Model {
|
|
86
|
+
itemsUsage?: number;
|
|
86
87
|
/**
|
|
87
88
|
* @remarks
|
|
88
89
|
* The array that contains list information, including list data after paging.
|
|
@@ -130,6 +131,7 @@ export class ListListsResponseBody extends $dara.Model {
|
|
|
130
131
|
usage?: number;
|
|
131
132
|
static names(): { [key: string]: string } {
|
|
132
133
|
return {
|
|
134
|
+
itemsUsage: 'ItemsUsage',
|
|
133
135
|
lists: 'Lists',
|
|
134
136
|
pageNumber: 'PageNumber',
|
|
135
137
|
pageSize: 'PageSize',
|
|
@@ -141,6 +143,7 @@ export class ListListsResponseBody extends $dara.Model {
|
|
|
141
143
|
|
|
142
144
|
static types(): { [key: string]: any } {
|
|
143
145
|
return {
|
|
146
|
+
itemsUsage: 'number',
|
|
144
147
|
lists: { 'type': 'array', 'itemType': ListListsResponseBodyLists },
|
|
145
148
|
pageNumber: 'number',
|
|
146
149
|
pageSize: 'number',
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class SetHttpDDoSAttackRuleActionRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* js
|
|
12
|
+
*/
|
|
13
|
+
ruleAction?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* This parameter is required.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* 100000
|
|
20
|
+
*/
|
|
21
|
+
ruleIds?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* This parameter is required.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* 123456****
|
|
28
|
+
*/
|
|
29
|
+
siteId?: number;
|
|
30
|
+
static names(): { [key: string]: string } {
|
|
31
|
+
return {
|
|
32
|
+
ruleAction: 'RuleAction',
|
|
33
|
+
ruleIds: 'RuleIds',
|
|
34
|
+
siteId: 'SiteId',
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
static types(): { [key: string]: any } {
|
|
39
|
+
return {
|
|
40
|
+
ruleAction: 'string',
|
|
41
|
+
ruleIds: 'string',
|
|
42
|
+
siteId: 'number',
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
validate() {
|
|
47
|
+
super.validate();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
constructor(map?: { [key: string]: any }) {
|
|
51
|
+
super(map);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { SetHttpDDoSAttackRuleActionResponseBody } from "./SetHttpDdoSattackRuleActionResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class SetHttpDDoSAttackRuleActionResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: SetHttpDDoSAttackRuleActionResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: SetHttpDDoSAttackRuleActionResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class SetHttpDDoSAttackRuleActionResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Id of the request
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* C370DAF1-C838-4288-A1A0-9A87633D2***
|
|
12
|
+
*/
|
|
13
|
+
requestId?: string;
|
|
14
|
+
static names(): { [key: string]: string } {
|
|
15
|
+
return {
|
|
16
|
+
requestId: 'RequestId',
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
static types(): { [key: string]: any } {
|
|
21
|
+
return {
|
|
22
|
+
requestId: 'string',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
super.validate();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
constructor(map?: { [key: string]: any }) {
|
|
31
|
+
super(map);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class SetHttpDDoSAttackRuleStatusRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 87570
|
|
12
|
+
*/
|
|
13
|
+
ruleIds?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* This parameter is required.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* 123456****
|
|
20
|
+
*/
|
|
21
|
+
siteId?: number;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* This parameter is required.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* on
|
|
28
|
+
*/
|
|
29
|
+
status?: string;
|
|
30
|
+
static names(): { [key: string]: string } {
|
|
31
|
+
return {
|
|
32
|
+
ruleIds: 'RuleIds',
|
|
33
|
+
siteId: 'SiteId',
|
|
34
|
+
status: 'Status',
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
static types(): { [key: string]: any } {
|
|
39
|
+
return {
|
|
40
|
+
ruleIds: 'string',
|
|
41
|
+
siteId: 'number',
|
|
42
|
+
status: 'string',
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
validate() {
|
|
47
|
+
super.validate();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
constructor(map?: { [key: string]: any }) {
|
|
51
|
+
super(map);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|