@alicloud/esa20240910 2.31.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.
Files changed (91) hide show
  1. package/dist/client.d.ts +75 -0
  2. package/dist/client.js +241 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateRecordRequest.d.ts +2 -0
  5. package/dist/models/CreateRecordRequest.js.map +1 -1
  6. package/dist/models/CreateRecordShrinkRequest.d.ts +2 -0
  7. package/dist/models/CreateRecordShrinkRequest.js.map +1 -1
  8. package/dist/models/CreateTransportLayerApplicationRequest.d.ts +170 -0
  9. package/dist/models/CreateTransportLayerApplicationRequest.js +104 -0
  10. package/dist/models/CreateTransportLayerApplicationRequest.js.map +1 -0
  11. package/dist/models/CreateTransportLayerApplicationResponse.d.ts +19 -0
  12. package/dist/models/CreateTransportLayerApplicationResponse.js +69 -0
  13. package/dist/models/CreateTransportLayerApplicationResponse.js.map +1 -0
  14. package/dist/models/CreateTransportLayerApplicationResponseBody.d.ts +29 -0
  15. package/dist/models/CreateTransportLayerApplicationResponseBody.js +60 -0
  16. package/dist/models/CreateTransportLayerApplicationResponseBody.js.map +1 -0
  17. package/dist/models/CreateTransportLayerApplicationShrinkRequest.d.ts +70 -0
  18. package/dist/models/CreateTransportLayerApplicationShrinkRequest.js +70 -0
  19. package/dist/models/CreateTransportLayerApplicationShrinkRequest.js.map +1 -0
  20. package/dist/models/DeleteRecordRequest.d.ts +1 -0
  21. package/dist/models/DeleteRecordRequest.js +2 -0
  22. package/dist/models/DeleteRecordRequest.js.map +1 -1
  23. package/dist/models/DeleteTransportLayerApplicationRequest.d.ts +33 -0
  24. package/dist/models/DeleteTransportLayerApplicationRequest.js +60 -0
  25. package/dist/models/DeleteTransportLayerApplicationRequest.js.map +1 -0
  26. package/dist/models/DeleteTransportLayerApplicationResponse.d.ts +19 -0
  27. package/dist/models/DeleteTransportLayerApplicationResponse.js +69 -0
  28. package/dist/models/DeleteTransportLayerApplicationResponse.js.map +1 -0
  29. package/dist/models/DeleteTransportLayerApplicationResponseBody.d.ts +21 -0
  30. package/dist/models/DeleteTransportLayerApplicationResponseBody.js +58 -0
  31. package/dist/models/DeleteTransportLayerApplicationResponseBody.js.map +1 -0
  32. package/dist/models/GetRoutineResponseBody.d.ts +0 -21
  33. package/dist/models/GetRoutineResponseBody.js +0 -9
  34. package/dist/models/GetRoutineResponseBody.js.map +1 -1
  35. package/dist/models/GetTransportLayerApplicationRequest.d.ts +33 -0
  36. package/dist/models/GetTransportLayerApplicationRequest.js +60 -0
  37. package/dist/models/GetTransportLayerApplicationRequest.js.map +1 -0
  38. package/dist/models/GetTransportLayerApplicationResponse.d.ts +19 -0
  39. package/dist/models/GetTransportLayerApplicationResponse.js +69 -0
  40. package/dist/models/GetTransportLayerApplicationResponse.js.map +1 -0
  41. package/dist/models/GetTransportLayerApplicationResponseBody.d.ts +216 -0
  42. package/dist/models/GetTransportLayerApplicationResponseBody.js +142 -0
  43. package/dist/models/GetTransportLayerApplicationResponseBody.js.map +1 -0
  44. package/dist/models/ListTransportLayerApplicationsRequest.d.ts +60 -0
  45. package/dist/models/ListTransportLayerApplicationsRequest.js +66 -0
  46. package/dist/models/ListTransportLayerApplicationsRequest.js.map +1 -0
  47. package/dist/models/ListTransportLayerApplicationsResponse.d.ts +19 -0
  48. package/dist/models/ListTransportLayerApplicationsResponse.js +69 -0
  49. package/dist/models/ListTransportLayerApplicationsResponse.js.map +1 -0
  50. package/dist/models/ListTransportLayerApplicationsResponseBody.d.ts +262 -0
  51. package/dist/models/ListTransportLayerApplicationsResponseBody.js +170 -0
  52. package/dist/models/ListTransportLayerApplicationsResponseBody.js.map +1 -0
  53. package/dist/models/UpdateTransportLayerApplicationRequest.d.ts +156 -0
  54. package/dist/models/UpdateTransportLayerApplicationRequest.js +104 -0
  55. package/dist/models/UpdateTransportLayerApplicationRequest.js.map +1 -0
  56. package/dist/models/UpdateTransportLayerApplicationResponse.d.ts +19 -0
  57. package/dist/models/UpdateTransportLayerApplicationResponse.js +69 -0
  58. package/dist/models/UpdateTransportLayerApplicationResponse.js.map +1 -0
  59. package/dist/models/UpdateTransportLayerApplicationResponseBody.d.ts +21 -0
  60. package/dist/models/UpdateTransportLayerApplicationResponseBody.js +58 -0
  61. package/dist/models/UpdateTransportLayerApplicationResponseBody.js.map +1 -0
  62. package/dist/models/UpdateTransportLayerApplicationShrinkRequest.d.ts +69 -0
  63. package/dist/models/UpdateTransportLayerApplicationShrinkRequest.js +70 -0
  64. package/dist/models/UpdateTransportLayerApplicationShrinkRequest.js.map +1 -0
  65. package/dist/models/model.d.ts +24 -0
  66. package/dist/models/model.js +76 -27
  67. package/dist/models/model.js.map +1 -1
  68. package/package.json +1 -1
  69. package/src/client.ts +270 -0
  70. package/src/models/CreateRecordRequest.ts +2 -0
  71. package/src/models/CreateRecordShrinkRequest.ts +2 -0
  72. package/src/models/CreateTransportLayerApplicationRequest.ts +220 -0
  73. package/src/models/CreateTransportLayerApplicationResponse.ts +40 -0
  74. package/src/models/CreateTransportLayerApplicationResponseBody.ts +44 -0
  75. package/src/models/CreateTransportLayerApplicationShrinkRequest.ts +95 -0
  76. package/src/models/DeleteRecordRequest.ts +3 -0
  77. package/src/models/DeleteTransportLayerApplicationRequest.ts +48 -0
  78. package/src/models/DeleteTransportLayerApplicationResponse.ts +40 -0
  79. package/src/models/DeleteTransportLayerApplicationResponseBody.ts +34 -0
  80. package/src/models/GetRoutineResponseBody.ts +0 -30
  81. package/src/models/GetTransportLayerApplicationRequest.ts +48 -0
  82. package/src/models/GetTransportLayerApplicationResponse.ts +40 -0
  83. package/src/models/GetTransportLayerApplicationResponseBody.ts +295 -0
  84. package/src/models/ListTransportLayerApplicationsRequest.ts +81 -0
  85. package/src/models/ListTransportLayerApplicationsResponse.ts +40 -0
  86. package/src/models/ListTransportLayerApplicationsResponseBody.ts +360 -0
  87. package/src/models/UpdateTransportLayerApplicationRequest.ts +206 -0
  88. package/src/models/UpdateTransportLayerApplicationResponse.ts +40 -0
  89. package/src/models/UpdateTransportLayerApplicationResponseBody.ts +34 -0
  90. package/src/models/UpdateTransportLayerApplicationShrinkRequest.ts +94 -0
  91. package/src/models/model.ts +24 -0
@@ -0,0 +1,295 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetTransportLayerApplicationResponseBodyRules extends $dara.Model {
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
+ *
14
+ * @example
15
+ * off
16
+ */
17
+ clientIPPassThroughMode?: string;
18
+ /**
19
+ * @remarks
20
+ * Comment information of the rule.
21
+ *
22
+ * @example
23
+ * 测试
24
+ */
25
+ comment?: string;
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
+ *
34
+ * @example
35
+ * 80
36
+ */
37
+ edgePort?: string;
38
+ /**
39
+ * @remarks
40
+ * Forwarding rule protocol, with values:
41
+ *
42
+ * - TCP: TCP protocol.
43
+ * - UDP: UDP protocol.
44
+ *
45
+ * @example
46
+ * TCP
47
+ */
48
+ protocol?: string;
49
+ /**
50
+ * @remarks
51
+ * Rule ID.
52
+ *
53
+ * @example
54
+ * 1234323***
55
+ */
56
+ ruleId?: number;
57
+ /**
58
+ * @remarks
59
+ * Specific value of the origin, which needs to match the type of the origin.
60
+ *
61
+ * @example
62
+ * 1.1.1.1
63
+ */
64
+ source?: string;
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
+ *
72
+ * @example
73
+ * 80
74
+ */
75
+ sourcePort?: string;
76
+ /**
77
+ * @remarks
78
+ * Origin type, supporting:
79
+ * - **ip**: IP.
80
+ * - **domain**: Domain name.
81
+ * - **OP**: Origin pool.
82
+ * - **LB**: Load balancer.
83
+ *
84
+ * @example
85
+ * domain
86
+ */
87
+ sourceType?: string;
88
+ static names(): { [key: string]: string } {
89
+ return {
90
+ clientIPPassThroughMode: 'ClientIPPassThroughMode',
91
+ comment: 'Comment',
92
+ edgePort: 'EdgePort',
93
+ protocol: 'Protocol',
94
+ ruleId: 'RuleId',
95
+ source: 'Source',
96
+ sourcePort: 'SourcePort',
97
+ sourceType: 'SourceType',
98
+ };
99
+ }
100
+
101
+ static types(): { [key: string]: any } {
102
+ return {
103
+ clientIPPassThroughMode: 'string',
104
+ comment: 'string',
105
+ edgePort: 'string',
106
+ protocol: 'string',
107
+ ruleId: 'number',
108
+ source: 'string',
109
+ sourcePort: 'string',
110
+ sourceType: 'string',
111
+ };
112
+ }
113
+
114
+ validate() {
115
+ super.validate();
116
+ }
117
+
118
+ constructor(map?: { [key: string]: any }) {
119
+ super(map);
120
+ }
121
+ }
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
+
149
+ export class GetTransportLayerApplicationResponseBody extends $dara.Model {
150
+ /**
151
+ * @remarks
152
+ * Transport layer application ID.
153
+ *
154
+ * @example
155
+ * 17099311410****
156
+ */
157
+ applicationId?: number;
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
+ *
162
+ * @example
163
+ * example.com.ialicdn.com
164
+ */
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
+ */
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
+ */
186
+ ipAccessRule?: string;
187
+ /**
188
+ * @remarks
189
+ * IPv6 switch.
190
+ *
191
+ * @example
192
+ * on
193
+ */
194
+ ipv6?: string;
195
+ /**
196
+ * @remarks
197
+ * The domain name of the transport layer application.
198
+ *
199
+ * @example
200
+ * test.example.com
201
+ */
202
+ recordName?: string;
203
+ /**
204
+ * @remarks
205
+ * Id of the request
206
+ *
207
+ * @example
208
+ * EB635996-1FD6-5DFD-BA57-27A849599940
209
+ */
210
+ requestId?: string;
211
+ /**
212
+ * @remarks
213
+ * List of forwarding rules.
214
+ */
215
+ rules?: GetTransportLayerApplicationResponseBodyRules[];
216
+ /**
217
+ * @remarks
218
+ * Number of forwarding rules contained in the transport layer acceleration application.
219
+ *
220
+ * @example
221
+ * 1
222
+ */
223
+ rulesCount?: number;
224
+ /**
225
+ * @remarks
226
+ * Site ID.
227
+ *
228
+ * @example
229
+ * 123456****
230
+ */
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
+ */
244
+ status?: string;
245
+ static names(): { [key: string]: string } {
246
+ return {
247
+ applicationId: 'ApplicationId',
248
+ cname: 'Cname',
249
+ crossBorderOptimization: 'CrossBorderOptimization',
250
+ ipAccessRule: 'IpAccessRule',
251
+ ipv6: 'Ipv6',
252
+ recordName: 'RecordName',
253
+ requestId: 'RequestId',
254
+ rules: 'Rules',
255
+ rulesCount: 'RulesCount',
256
+ siteId: 'SiteId',
257
+ staticIp: 'StaticIp',
258
+ staticIpV4List: 'StaticIpV4List',
259
+ status: 'Status',
260
+ };
261
+ }
262
+
263
+ static types(): { [key: string]: any } {
264
+ return {
265
+ applicationId: 'number',
266
+ cname: 'string',
267
+ crossBorderOptimization: 'string',
268
+ ipAccessRule: 'string',
269
+ ipv6: 'string',
270
+ recordName: 'string',
271
+ requestId: 'string',
272
+ rules: { 'type': 'array', 'itemType': GetTransportLayerApplicationResponseBodyRules },
273
+ rulesCount: 'number',
274
+ siteId: 'number',
275
+ staticIp: 'string',
276
+ staticIpV4List: { 'type': 'array', 'itemType': GetTransportLayerApplicationResponseBodyStaticIpV4List },
277
+ status: 'string',
278
+ };
279
+ }
280
+
281
+ validate() {
282
+ if(Array.isArray(this.rules)) {
283
+ $dara.Model.validateArray(this.rules);
284
+ }
285
+ if(Array.isArray(this.staticIpV4List)) {
286
+ $dara.Model.validateArray(this.staticIpV4List);
287
+ }
288
+ super.validate();
289
+ }
290
+
291
+ constructor(map?: { [key: string]: any }) {
292
+ super(map);
293
+ }
294
+ }
295
+
@@ -0,0 +1,81 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListTransportLayerApplicationsRequest extends $dara.Model {
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
+ *
15
+ * @example
16
+ * fuzzy
17
+ */
18
+ matchType?: string;
19
+ /**
20
+ * @remarks
21
+ * Page number set for pagination. Starting value: 1. Default value: 1.
22
+ *
23
+ * @example
24
+ * 1
25
+ */
26
+ pageNumber?: number;
27
+ /**
28
+ * @remarks
29
+ * Page size. The maximum value is 500.
30
+ *
31
+ * @example
32
+ * 500
33
+ */
34
+ pageSize?: number;
35
+ /**
36
+ * @remarks
37
+ * Host record of the transport layer application.
38
+ *
39
+ * @example
40
+ * www.example.com
41
+ */
42
+ recordName?: string;
43
+ /**
44
+ * @remarks
45
+ * Site ID, which can be obtained by calling the [ListSites](https://help.aliyun.com/document_detail/2850189.html) API.
46
+ *
47
+ * This parameter is required.
48
+ *
49
+ * @example
50
+ * 123456******
51
+ */
52
+ siteId?: number;
53
+ static names(): { [key: string]: string } {
54
+ return {
55
+ matchType: 'MatchType',
56
+ pageNumber: 'PageNumber',
57
+ pageSize: 'PageSize',
58
+ recordName: 'RecordName',
59
+ siteId: 'SiteId',
60
+ };
61
+ }
62
+
63
+ static types(): { [key: string]: any } {
64
+ return {
65
+ matchType: 'string',
66
+ pageNumber: 'number',
67
+ pageSize: 'number',
68
+ recordName: 'string',
69
+ siteId: 'number',
70
+ };
71
+ }
72
+
73
+ validate() {
74
+ super.validate();
75
+ }
76
+
77
+ constructor(map?: { [key: string]: any }) {
78
+ super(map);
79
+ }
80
+ }
81
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ListTransportLayerApplicationsResponseBody } from "./ListTransportLayerApplicationsResponseBody";
4
+
5
+
6
+ export class ListTransportLayerApplicationsResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ListTransportLayerApplicationsResponseBody;
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: ListTransportLayerApplicationsResponseBody,
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
+