@alicloud/esa20240910 2.32.0 → 2.32.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.
- package/dist/client.d.ts +10 -10
- package/dist/client.js +16 -10
- package/dist/client.js.map +1 -1
- package/dist/models/CreateTransportLayerApplicationRequest.d.ts +73 -1
- package/dist/models/CreateTransportLayerApplicationRequest.js +2 -0
- package/dist/models/CreateTransportLayerApplicationRequest.js.map +1 -1
- package/dist/models/CreateTransportLayerApplicationResponseBody.d.ts +6 -0
- package/dist/models/CreateTransportLayerApplicationResponseBody.js.map +1 -1
- package/dist/models/CreateTransportLayerApplicationShrinkRequest.d.ts +33 -0
- package/dist/models/CreateTransportLayerApplicationShrinkRequest.js +2 -0
- package/dist/models/CreateTransportLayerApplicationShrinkRequest.js.map +1 -1
- package/dist/models/DeleteTransportLayerApplicationRequest.d.ts +4 -0
- package/dist/models/DeleteTransportLayerApplicationRequest.js.map +1 -1
- package/dist/models/DeleteTransportLayerApplicationResponseBody.d.ts +3 -0
- package/dist/models/DeleteTransportLayerApplicationResponseBody.js.map +1 -1
- package/dist/models/GetRoutineResponseBody.d.ts +0 -21
- package/dist/models/GetRoutineResponseBody.js +0 -9
- package/dist/models/GetRoutineResponseBody.js.map +1 -1
- package/dist/models/GetTransportLayerApplicationRequest.d.ts +4 -0
- package/dist/models/GetTransportLayerApplicationRequest.js.map +1 -1
- package/dist/models/GetTransportLayerApplicationResponseBody.d.ts +117 -0
- package/dist/models/GetTransportLayerApplicationResponseBody.js +29 -1
- package/dist/models/GetTransportLayerApplicationResponseBody.js.map +1 -1
- package/dist/models/ListTransportLayerApplicationsRequest.d.ts +19 -0
- package/dist/models/ListTransportLayerApplicationsRequest.js.map +1 -1
- package/dist/models/ListTransportLayerApplicationsResponseBody.d.ts +138 -0
- package/dist/models/ListTransportLayerApplicationsResponseBody.js +29 -1
- package/dist/models/ListTransportLayerApplicationsResponseBody.js.map +1 -1
- package/dist/models/UpdateTransportLayerApplicationRequest.d.ts +77 -1
- package/dist/models/UpdateTransportLayerApplicationRequest.js +2 -0
- package/dist/models/UpdateTransportLayerApplicationRequest.js.map +1 -1
- package/dist/models/UpdateTransportLayerApplicationResponseBody.d.ts +3 -0
- package/dist/models/UpdateTransportLayerApplicationResponseBody.js.map +1 -1
- package/dist/models/UpdateTransportLayerApplicationShrinkRequest.d.ts +36 -0
- package/dist/models/UpdateTransportLayerApplicationShrinkRequest.js +2 -0
- package/dist/models/UpdateTransportLayerApplicationShrinkRequest.js.map +1 -1
- package/dist/models/model.d.ts +2 -0
- package/dist/models/model.js +35 -31
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +18 -10
- package/src/models/CreateTransportLayerApplicationRequest.ts +75 -1
- package/src/models/CreateTransportLayerApplicationResponseBody.ts +6 -0
- package/src/models/CreateTransportLayerApplicationShrinkRequest.ts +35 -0
- package/src/models/DeleteTransportLayerApplicationRequest.ts +4 -0
- package/src/models/DeleteTransportLayerApplicationResponseBody.ts +3 -0
- package/src/models/GetRoutineResponseBody.ts +0 -30
- package/src/models/GetTransportLayerApplicationRequest.ts +4 -0
- package/src/models/GetTransportLayerApplicationResponseBody.ts +136 -0
- package/src/models/ListTransportLayerApplicationsRequest.ts +19 -0
- package/src/models/ListTransportLayerApplicationsResponseBody.ts +157 -0
- package/src/models/UpdateTransportLayerApplicationRequest.ts +79 -1
- package/src/models/UpdateTransportLayerApplicationResponseBody.ts +3 -0
- package/src/models/UpdateTransportLayerApplicationShrinkRequest.ts +38 -0
- package/src/models/model.ts +2 -0
|
@@ -70,28 +70,7 @@ export class GetRoutineResponseBodyEnvsCodeDeploy extends $dara.Model {
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
export class GetRoutineResponseBodyEnvs extends $dara.Model {
|
|
73
|
-
/**
|
|
74
|
-
* @remarks
|
|
75
|
-
* The regions for canary release.
|
|
76
|
-
*/
|
|
77
|
-
canaryAreaList?: string[];
|
|
78
|
-
/**
|
|
79
|
-
* @remarks
|
|
80
|
-
* The version number for canary release.
|
|
81
|
-
*
|
|
82
|
-
* @example
|
|
83
|
-
* 1710120201067577628
|
|
84
|
-
*/
|
|
85
|
-
canaryCodeVersion?: string;
|
|
86
73
|
codeDeploy?: GetRoutineResponseBodyEnvsCodeDeploy;
|
|
87
|
-
/**
|
|
88
|
-
* @remarks
|
|
89
|
-
* The version number of the code in the environment.
|
|
90
|
-
*
|
|
91
|
-
* @example
|
|
92
|
-
* 1710120201067577628
|
|
93
|
-
*/
|
|
94
|
-
codeVersion?: string;
|
|
95
74
|
/**
|
|
96
75
|
* @remarks
|
|
97
76
|
* The environment type.
|
|
@@ -102,28 +81,19 @@ export class GetRoutineResponseBodyEnvs extends $dara.Model {
|
|
|
102
81
|
env?: string;
|
|
103
82
|
static names(): { [key: string]: string } {
|
|
104
83
|
return {
|
|
105
|
-
canaryAreaList: 'CanaryAreaList',
|
|
106
|
-
canaryCodeVersion: 'CanaryCodeVersion',
|
|
107
84
|
codeDeploy: 'CodeDeploy',
|
|
108
|
-
codeVersion: 'CodeVersion',
|
|
109
85
|
env: 'Env',
|
|
110
86
|
};
|
|
111
87
|
}
|
|
112
88
|
|
|
113
89
|
static types(): { [key: string]: any } {
|
|
114
90
|
return {
|
|
115
|
-
canaryAreaList: { 'type': 'array', 'itemType': 'string' },
|
|
116
|
-
canaryCodeVersion: 'string',
|
|
117
91
|
codeDeploy: GetRoutineResponseBodyEnvsCodeDeploy,
|
|
118
|
-
codeVersion: 'string',
|
|
119
92
|
env: 'string',
|
|
120
93
|
};
|
|
121
94
|
}
|
|
122
95
|
|
|
123
96
|
validate() {
|
|
124
|
-
if(Array.isArray(this.canaryAreaList)) {
|
|
125
|
-
$dara.Model.validateArray(this.canaryAreaList);
|
|
126
|
-
}
|
|
127
97
|
if(this.codeDeploy && typeof (this.codeDeploy as any).validate === 'function') {
|
|
128
98
|
(this.codeDeploy as any).validate();
|
|
129
99
|
}
|
|
@@ -5,6 +5,8 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class GetTransportLayerApplicationRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
+
* Application ID, which can be obtained by calling the [ListTransportLayerApplications](~~ListTransportLayerApplications~~) interface.
|
|
9
|
+
*
|
|
8
10
|
* This parameter is required.
|
|
9
11
|
*
|
|
10
12
|
* @example
|
|
@@ -13,6 +15,8 @@ export class GetTransportLayerApplicationRequest extends $dara.Model {
|
|
|
13
15
|
applicationId?: number;
|
|
14
16
|
/**
|
|
15
17
|
* @remarks
|
|
18
|
+
* Site ID, which can be obtained by calling the [ListSites](~~ListSites~~) interface.
|
|
19
|
+
*
|
|
16
20
|
* This parameter is required.
|
|
17
21
|
*
|
|
18
22
|
* @example
|
|
@@ -4,37 +4,83 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class GetTransportLayerApplicationResponseBodyRules extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Client IP pass-through protocol, supporting:
|
|
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.
|
|
13
|
+
*
|
|
7
14
|
* @example
|
|
8
15
|
* off
|
|
9
16
|
*/
|
|
10
17
|
clientIPPassThroughMode?: string;
|
|
18
|
+
/**
|
|
19
|
+
* @remarks
|
|
20
|
+
* Comment information of the rule.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* 测试
|
|
24
|
+
*/
|
|
11
25
|
comment?: string;
|
|
12
26
|
/**
|
|
27
|
+
* @remarks
|
|
28
|
+
* Edge port. Supports:
|
|
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.
|
|
33
|
+
*
|
|
13
34
|
* @example
|
|
14
35
|
* 80
|
|
15
36
|
*/
|
|
16
37
|
edgePort?: string;
|
|
17
38
|
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* Forwarding rule protocol, with values:
|
|
41
|
+
*
|
|
42
|
+
* - TCP: TCP protocol.
|
|
43
|
+
* - UDP: UDP protocol.
|
|
44
|
+
*
|
|
18
45
|
* @example
|
|
19
46
|
* TCP
|
|
20
47
|
*/
|
|
21
48
|
protocol?: string;
|
|
22
49
|
/**
|
|
50
|
+
* @remarks
|
|
51
|
+
* Rule ID.
|
|
52
|
+
*
|
|
23
53
|
* @example
|
|
24
54
|
* 1234323***
|
|
25
55
|
*/
|
|
26
56
|
ruleId?: number;
|
|
27
57
|
/**
|
|
58
|
+
* @remarks
|
|
59
|
+
* Specific value of the origin, which needs to match the type of the origin.
|
|
60
|
+
*
|
|
28
61
|
* @example
|
|
29
62
|
* 1.1.1.1
|
|
30
63
|
*/
|
|
31
64
|
source?: string;
|
|
32
65
|
/**
|
|
66
|
+
* @remarks
|
|
67
|
+
* Origin port. Supports:
|
|
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.
|
|
71
|
+
*
|
|
33
72
|
* @example
|
|
34
73
|
* 80
|
|
35
74
|
*/
|
|
36
75
|
sourcePort?: string;
|
|
37
76
|
/**
|
|
77
|
+
* @remarks
|
|
78
|
+
* Origin type, supporting:
|
|
79
|
+
* - **ip**: IP.
|
|
80
|
+
* - **domain**: Domain name.
|
|
81
|
+
* - **OP**: Origin pool.
|
|
82
|
+
* - **LB**: Load balancer.
|
|
83
|
+
*
|
|
38
84
|
* @example
|
|
39
85
|
* domain
|
|
40
86
|
*/
|
|
@@ -74,21 +120,82 @@ export class GetTransportLayerApplicationResponseBodyRules extends $dara.Model {
|
|
|
74
120
|
}
|
|
75
121
|
}
|
|
76
122
|
|
|
123
|
+
export class GetTransportLayerApplicationResponseBodyStaticIpV4List extends $dara.Model {
|
|
124
|
+
address?: string;
|
|
125
|
+
status?: string;
|
|
126
|
+
static names(): { [key: string]: string } {
|
|
127
|
+
return {
|
|
128
|
+
address: 'Address',
|
|
129
|
+
status: 'Status',
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
static types(): { [key: string]: any } {
|
|
134
|
+
return {
|
|
135
|
+
address: 'string',
|
|
136
|
+
status: 'string',
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
validate() {
|
|
141
|
+
super.validate();
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
constructor(map?: { [key: string]: any }) {
|
|
145
|
+
super(map);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
77
149
|
export class GetTransportLayerApplicationResponseBody extends $dara.Model {
|
|
78
150
|
/**
|
|
151
|
+
* @remarks
|
|
152
|
+
* Transport layer application ID.
|
|
153
|
+
*
|
|
79
154
|
* @example
|
|
80
155
|
* 17099311410****
|
|
81
156
|
*/
|
|
82
157
|
applicationId?: number;
|
|
83
158
|
/**
|
|
159
|
+
* @remarks
|
|
160
|
+
* The CNAME domain corresponding to the transport layer acceleration application. This field is not empty only when the site is accessed via CNAME.
|
|
161
|
+
*
|
|
84
162
|
* @example
|
|
85
163
|
* example.com.ialicdn.com
|
|
86
164
|
*/
|
|
87
165
|
cname?: string;
|
|
166
|
+
/**
|
|
167
|
+
* @remarks
|
|
168
|
+
* Whether to enable China mainland network access optimization, default is off. Value range:
|
|
169
|
+
* - on: Enabled.
|
|
170
|
+
* - off: Disabled.
|
|
171
|
+
*
|
|
172
|
+
* @example
|
|
173
|
+
* on
|
|
174
|
+
*/
|
|
88
175
|
crossBorderOptimization?: string;
|
|
176
|
+
/**
|
|
177
|
+
* @remarks
|
|
178
|
+
* Switch for IP access rules. When turned on, the IP access rules in WAF take effect on the transport layer application.
|
|
179
|
+
*
|
|
180
|
+
* - on: Turned on.
|
|
181
|
+
* - off: Turned off.
|
|
182
|
+
*
|
|
183
|
+
* @example
|
|
184
|
+
* on
|
|
185
|
+
*/
|
|
89
186
|
ipAccessRule?: string;
|
|
187
|
+
/**
|
|
188
|
+
* @remarks
|
|
189
|
+
* IPv6 switch.
|
|
190
|
+
*
|
|
191
|
+
* @example
|
|
192
|
+
* on
|
|
193
|
+
*/
|
|
90
194
|
ipv6?: string;
|
|
91
195
|
/**
|
|
196
|
+
* @remarks
|
|
197
|
+
* The domain name of the transport layer application.
|
|
198
|
+
*
|
|
92
199
|
* @example
|
|
93
200
|
* test.example.com
|
|
94
201
|
*/
|
|
@@ -101,17 +208,39 @@ export class GetTransportLayerApplicationResponseBody extends $dara.Model {
|
|
|
101
208
|
* EB635996-1FD6-5DFD-BA57-27A849599940
|
|
102
209
|
*/
|
|
103
210
|
requestId?: string;
|
|
211
|
+
/**
|
|
212
|
+
* @remarks
|
|
213
|
+
* List of forwarding rules.
|
|
214
|
+
*/
|
|
104
215
|
rules?: GetTransportLayerApplicationResponseBodyRules[];
|
|
105
216
|
/**
|
|
217
|
+
* @remarks
|
|
218
|
+
* Number of forwarding rules contained in the transport layer acceleration application.
|
|
219
|
+
*
|
|
106
220
|
* @example
|
|
107
221
|
* 1
|
|
108
222
|
*/
|
|
109
223
|
rulesCount?: number;
|
|
110
224
|
/**
|
|
225
|
+
* @remarks
|
|
226
|
+
* Site ID.
|
|
227
|
+
*
|
|
111
228
|
* @example
|
|
112
229
|
* 123456****
|
|
113
230
|
*/
|
|
114
231
|
siteId?: number;
|
|
232
|
+
staticIp?: string;
|
|
233
|
+
staticIpV4List?: GetTransportLayerApplicationResponseBodyStaticIpV4List[];
|
|
234
|
+
/**
|
|
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
|
+
* @example
|
|
242
|
+
* active
|
|
243
|
+
*/
|
|
115
244
|
status?: string;
|
|
116
245
|
static names(): { [key: string]: string } {
|
|
117
246
|
return {
|
|
@@ -125,6 +254,8 @@ export class GetTransportLayerApplicationResponseBody extends $dara.Model {
|
|
|
125
254
|
rules: 'Rules',
|
|
126
255
|
rulesCount: 'RulesCount',
|
|
127
256
|
siteId: 'SiteId',
|
|
257
|
+
staticIp: 'StaticIp',
|
|
258
|
+
staticIpV4List: 'StaticIpV4List',
|
|
128
259
|
status: 'Status',
|
|
129
260
|
};
|
|
130
261
|
}
|
|
@@ -141,6 +272,8 @@ export class GetTransportLayerApplicationResponseBody extends $dara.Model {
|
|
|
141
272
|
rules: { 'type': 'array', 'itemType': GetTransportLayerApplicationResponseBodyRules },
|
|
142
273
|
rulesCount: 'number',
|
|
143
274
|
siteId: 'number',
|
|
275
|
+
staticIp: 'string',
|
|
276
|
+
staticIpV4List: { 'type': 'array', 'itemType': GetTransportLayerApplicationResponseBodyStaticIpV4List },
|
|
144
277
|
status: 'string',
|
|
145
278
|
};
|
|
146
279
|
}
|
|
@@ -149,6 +282,9 @@ export class GetTransportLayerApplicationResponseBody extends $dara.Model {
|
|
|
149
282
|
if(Array.isArray(this.rules)) {
|
|
150
283
|
$dara.Model.validateArray(this.rules);
|
|
151
284
|
}
|
|
285
|
+
if(Array.isArray(this.staticIpV4List)) {
|
|
286
|
+
$dara.Model.validateArray(this.staticIpV4List);
|
|
287
|
+
}
|
|
152
288
|
super.validate();
|
|
153
289
|
}
|
|
154
290
|
|
|
@@ -4,27 +4,46 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class ListTransportLayerApplicationsRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Query type for the transport layer application host record, supporting the following 4 types, with exact query as the default.
|
|
9
|
+
*
|
|
10
|
+
* - fuzzy: Fuzzy query.
|
|
11
|
+
* - exact: Exact query.
|
|
12
|
+
* - prefix: Prefix match query.
|
|
13
|
+
* - suffix: Suffix match query.
|
|
14
|
+
*
|
|
7
15
|
* @example
|
|
8
16
|
* fuzzy
|
|
9
17
|
*/
|
|
10
18
|
matchType?: string;
|
|
11
19
|
/**
|
|
20
|
+
* @remarks
|
|
21
|
+
* Page number set for pagination. Starting value: 1. Default value: 1.
|
|
22
|
+
*
|
|
12
23
|
* @example
|
|
13
24
|
* 1
|
|
14
25
|
*/
|
|
15
26
|
pageNumber?: number;
|
|
16
27
|
/**
|
|
28
|
+
* @remarks
|
|
29
|
+
* Page size. The maximum value is 500.
|
|
30
|
+
*
|
|
17
31
|
* @example
|
|
18
32
|
* 500
|
|
19
33
|
*/
|
|
20
34
|
pageSize?: number;
|
|
21
35
|
/**
|
|
36
|
+
* @remarks
|
|
37
|
+
* Host record of the transport layer application.
|
|
38
|
+
*
|
|
22
39
|
* @example
|
|
23
40
|
* www.example.com
|
|
24
41
|
*/
|
|
25
42
|
recordName?: string;
|
|
26
43
|
/**
|
|
27
44
|
* @remarks
|
|
45
|
+
* Site ID, which can be obtained by calling the [ListSites](https://help.aliyun.com/document_detail/2850189.html) API.
|
|
46
|
+
*
|
|
28
47
|
* This parameter is required.
|
|
29
48
|
*
|
|
30
49
|
* @example
|
|
@@ -4,37 +4,83 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class ListTransportLayerApplicationsResponseBodyApplicationsRules extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Client IP pass-through protocol, supports:
|
|
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.
|
|
13
|
+
*
|
|
7
14
|
* @example
|
|
8
15
|
* off
|
|
9
16
|
*/
|
|
10
17
|
clientIPPassThroughMode?: string;
|
|
18
|
+
/**
|
|
19
|
+
* @remarks
|
|
20
|
+
* Comment information for the rule.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* 测试
|
|
24
|
+
*/
|
|
11
25
|
comment?: string;
|
|
12
26
|
/**
|
|
27
|
+
* @remarks
|
|
28
|
+
* Edge port. Supports:
|
|
29
|
+
*
|
|
30
|
+
* - A single port, e.g., 80.
|
|
31
|
+
* - Port range, e.g., 81-85, representing ports 81, 82, 83, 84, 85.
|
|
32
|
+
* - Combination of ports and port ranges, separated by commas, e.g., 80,81-85,90, representing ports 80, 81, 82, 83, 84, 85, 90.
|
|
33
|
+
*
|
|
13
34
|
* @example
|
|
14
35
|
* 80
|
|
15
36
|
*/
|
|
16
37
|
edgePort?: string;
|
|
17
38
|
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* Forwarding rule protocol, with values:
|
|
41
|
+
*
|
|
42
|
+
* - TCP: TCP protocol.
|
|
43
|
+
* - UDP: UDP protocol.
|
|
44
|
+
*
|
|
18
45
|
* @example
|
|
19
46
|
* TCP
|
|
20
47
|
*/
|
|
21
48
|
protocol?: string;
|
|
22
49
|
/**
|
|
50
|
+
* @remarks
|
|
51
|
+
* Layer 4 acceleration rule ID.
|
|
52
|
+
*
|
|
23
53
|
* @example
|
|
24
54
|
* 20258028****
|
|
25
55
|
*/
|
|
26
56
|
ruleId?: number;
|
|
27
57
|
/**
|
|
58
|
+
* @remarks
|
|
59
|
+
* Specific value of the source, which needs to match the source type.
|
|
60
|
+
*
|
|
28
61
|
* @example
|
|
29
62
|
* 1.1.1.1
|
|
30
63
|
*/
|
|
31
64
|
source?: string;
|
|
32
65
|
/**
|
|
66
|
+
* @remarks
|
|
67
|
+
* Source port. Supports:
|
|
68
|
+
*
|
|
69
|
+
* - A single port, when the source port is a single port, any valid combination of edge ports is supported.
|
|
70
|
+
* - Port range, only when the edge port is a port range, the source port can be set to a port range, and the range size must be consistent with the edge port. For example, if the edge port is 90-93, the source port cannot be set to 81-85 because the source port range is 5 and the edge port range is 3, which are inconsistent.
|
|
71
|
+
*
|
|
33
72
|
* @example
|
|
34
73
|
* 80
|
|
35
74
|
*/
|
|
36
75
|
sourcePort?: string;
|
|
37
76
|
/**
|
|
77
|
+
* @remarks
|
|
78
|
+
* Source type, supports:
|
|
79
|
+
* - **ip**: IP.
|
|
80
|
+
* - **domain**: Domain name.
|
|
81
|
+
* - **OP**: Origin pool.
|
|
82
|
+
* - **LB**: Load balancer.
|
|
83
|
+
*
|
|
38
84
|
* @example
|
|
39
85
|
* ip
|
|
40
86
|
*/
|
|
@@ -74,36 +120,124 @@ export class ListTransportLayerApplicationsResponseBodyApplicationsRules extends
|
|
|
74
120
|
}
|
|
75
121
|
}
|
|
76
122
|
|
|
123
|
+
export class ListTransportLayerApplicationsResponseBodyApplicationsStaticIpV4List extends $dara.Model {
|
|
124
|
+
address?: string;
|
|
125
|
+
status?: string;
|
|
126
|
+
static names(): { [key: string]: string } {
|
|
127
|
+
return {
|
|
128
|
+
address: 'Address',
|
|
129
|
+
status: 'Status',
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
static types(): { [key: string]: any } {
|
|
134
|
+
return {
|
|
135
|
+
address: 'string',
|
|
136
|
+
status: 'string',
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
validate() {
|
|
141
|
+
super.validate();
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
constructor(map?: { [key: string]: any }) {
|
|
145
|
+
super(map);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
77
149
|
export class ListTransportLayerApplicationsResponseBodyApplications extends $dara.Model {
|
|
78
150
|
/**
|
|
151
|
+
* @remarks
|
|
152
|
+
* Layer 4 application ID.
|
|
153
|
+
*
|
|
79
154
|
* @example
|
|
80
155
|
* 170997271816****
|
|
81
156
|
*/
|
|
82
157
|
applicationId?: number;
|
|
83
158
|
/**
|
|
159
|
+
* @remarks
|
|
160
|
+
* CNAME domain name corresponding to the Layer 4 acceleration application. This field is not empty only when the site is accessed via CNAME.
|
|
161
|
+
*
|
|
84
162
|
* @example
|
|
85
163
|
* example.com.ialicdn.com
|
|
86
164
|
*/
|
|
87
165
|
cname?: string;
|
|
166
|
+
/**
|
|
167
|
+
* @remarks
|
|
168
|
+
* Whether to enable China mainland network access optimization. It is disabled by default. The value range is:
|
|
169
|
+
*
|
|
170
|
+
* - on: Enabled.
|
|
171
|
+
* - off: Disabled.
|
|
172
|
+
*
|
|
173
|
+
* @example
|
|
174
|
+
* on
|
|
175
|
+
*/
|
|
88
176
|
crossBorderOptimization?: string;
|
|
177
|
+
/**
|
|
178
|
+
* @remarks
|
|
179
|
+
* IP access rule switch. When enabled, the IP access rules in WAF take effect on the Layer 4 application.
|
|
180
|
+
*
|
|
181
|
+
* - on: Enabled.
|
|
182
|
+
* - off: Disabled.
|
|
183
|
+
*
|
|
184
|
+
* @example
|
|
185
|
+
* on
|
|
186
|
+
*/
|
|
89
187
|
ipAccessRule?: string;
|
|
188
|
+
/**
|
|
189
|
+
* @remarks
|
|
190
|
+
* IPv6 switch.
|
|
191
|
+
*
|
|
192
|
+
* @example
|
|
193
|
+
* on
|
|
194
|
+
*/
|
|
90
195
|
ipv6?: string;
|
|
91
196
|
/**
|
|
197
|
+
* @remarks
|
|
198
|
+
* Domain name of the Layer 4 application.
|
|
199
|
+
*
|
|
92
200
|
* @example
|
|
93
201
|
* test.example.com
|
|
94
202
|
*/
|
|
95
203
|
recordName?: string;
|
|
204
|
+
/**
|
|
205
|
+
* @remarks
|
|
206
|
+
* List of forwarding rules.
|
|
207
|
+
*/
|
|
96
208
|
rules?: ListTransportLayerApplicationsResponseBodyApplicationsRules[];
|
|
97
209
|
/**
|
|
210
|
+
* @remarks
|
|
211
|
+
* Number of forwarding rules contained in the Layer 4 acceleration application.
|
|
212
|
+
*
|
|
98
213
|
* @example
|
|
99
214
|
* 1
|
|
100
215
|
*/
|
|
101
216
|
rulesCount?: number;
|
|
102
217
|
/**
|
|
218
|
+
* @remarks
|
|
219
|
+
* Site ID.
|
|
220
|
+
*
|
|
103
221
|
* @example
|
|
104
222
|
* 36556540048****
|
|
105
223
|
*/
|
|
106
224
|
siteId?: number;
|
|
225
|
+
staticIp?: string;
|
|
226
|
+
/**
|
|
227
|
+
* @remarks
|
|
228
|
+
* This parameter is required.
|
|
229
|
+
*/
|
|
230
|
+
staticIpV4List?: ListTransportLayerApplicationsResponseBodyApplicationsStaticIpV4List[];
|
|
231
|
+
/**
|
|
232
|
+
* @remarks
|
|
233
|
+
* Status of the Layer 4 application
|
|
234
|
+
*
|
|
235
|
+
* - **deploying**: Deploying. In this state, modification and deletion are not allowed.
|
|
236
|
+
* - **active**: Active.
|
|
237
|
+
*
|
|
238
|
+
* @example
|
|
239
|
+
* active
|
|
240
|
+
*/
|
|
107
241
|
status?: string;
|
|
108
242
|
static names(): { [key: string]: string } {
|
|
109
243
|
return {
|
|
@@ -116,6 +250,8 @@ export class ListTransportLayerApplicationsResponseBodyApplications extends $dar
|
|
|
116
250
|
rules: 'Rules',
|
|
117
251
|
rulesCount: 'RulesCount',
|
|
118
252
|
siteId: 'SiteId',
|
|
253
|
+
staticIp: 'StaticIp',
|
|
254
|
+
staticIpV4List: 'StaticIpV4List',
|
|
119
255
|
status: 'Status',
|
|
120
256
|
};
|
|
121
257
|
}
|
|
@@ -131,6 +267,8 @@ export class ListTransportLayerApplicationsResponseBodyApplications extends $dar
|
|
|
131
267
|
rules: { 'type': 'array', 'itemType': ListTransportLayerApplicationsResponseBodyApplicationsRules },
|
|
132
268
|
rulesCount: 'number',
|
|
133
269
|
siteId: 'number',
|
|
270
|
+
staticIp: 'string',
|
|
271
|
+
staticIpV4List: { 'type': 'array', 'itemType': ListTransportLayerApplicationsResponseBodyApplicationsStaticIpV4List },
|
|
134
272
|
status: 'string',
|
|
135
273
|
};
|
|
136
274
|
}
|
|
@@ -139,6 +277,9 @@ export class ListTransportLayerApplicationsResponseBodyApplications extends $dar
|
|
|
139
277
|
if(Array.isArray(this.rules)) {
|
|
140
278
|
$dara.Model.validateArray(this.rules);
|
|
141
279
|
}
|
|
280
|
+
if(Array.isArray(this.staticIpV4List)) {
|
|
281
|
+
$dara.Model.validateArray(this.staticIpV4List);
|
|
282
|
+
}
|
|
142
283
|
super.validate();
|
|
143
284
|
}
|
|
144
285
|
|
|
@@ -148,23 +289,39 @@ export class ListTransportLayerApplicationsResponseBodyApplications extends $dar
|
|
|
148
289
|
}
|
|
149
290
|
|
|
150
291
|
export class ListTransportLayerApplicationsResponseBody extends $dara.Model {
|
|
292
|
+
/**
|
|
293
|
+
* @remarks
|
|
294
|
+
* List of transport layer applications.
|
|
295
|
+
*/
|
|
151
296
|
applications?: ListTransportLayerApplicationsResponseBodyApplications[];
|
|
152
297
|
/**
|
|
298
|
+
* @remarks
|
|
299
|
+
* Current page number.
|
|
300
|
+
*
|
|
153
301
|
* @example
|
|
154
302
|
* 1
|
|
155
303
|
*/
|
|
156
304
|
pageNumber?: number;
|
|
157
305
|
/**
|
|
306
|
+
* @remarks
|
|
307
|
+
* Page size.
|
|
308
|
+
*
|
|
158
309
|
* @example
|
|
159
310
|
* 1
|
|
160
311
|
*/
|
|
161
312
|
pageSize?: number;
|
|
162
313
|
/**
|
|
314
|
+
* @remarks
|
|
315
|
+
* Request ID.
|
|
316
|
+
*
|
|
163
317
|
* @example
|
|
164
318
|
* CB1A380B-09F0-41BB-A198-72F8FD6DA2FE
|
|
165
319
|
*/
|
|
166
320
|
requestId?: string;
|
|
167
321
|
/**
|
|
322
|
+
* @remarks
|
|
323
|
+
* Total number of transport layer applications.
|
|
324
|
+
*
|
|
168
325
|
* @example
|
|
169
326
|
* 1
|
|
170
327
|
*/
|