@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,360 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListTransportLayerApplicationsResponseBodyApplicationsRules extends $dara.Model {
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
+ *
14
+ * @example
15
+ * off
16
+ */
17
+ clientIPPassThroughMode?: string;
18
+ /**
19
+ * @remarks
20
+ * Comment information for the rule.
21
+ *
22
+ * @example
23
+ * 测试
24
+ */
25
+ comment?: string;
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
+ *
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
+ * Layer 4 acceleration rule ID.
52
+ *
53
+ * @example
54
+ * 20258028****
55
+ */
56
+ ruleId?: number;
57
+ /**
58
+ * @remarks
59
+ * Specific value of the source, which needs to match the source type.
60
+ *
61
+ * @example
62
+ * 1.1.1.1
63
+ */
64
+ source?: string;
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
+ *
72
+ * @example
73
+ * 80
74
+ */
75
+ sourcePort?: string;
76
+ /**
77
+ * @remarks
78
+ * Source type, supports:
79
+ * - **ip**: IP.
80
+ * - **domain**: Domain name.
81
+ * - **OP**: Origin pool.
82
+ * - **LB**: Load balancer.
83
+ *
84
+ * @example
85
+ * ip
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 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
+
149
+ export class ListTransportLayerApplicationsResponseBodyApplications extends $dara.Model {
150
+ /**
151
+ * @remarks
152
+ * Layer 4 application ID.
153
+ *
154
+ * @example
155
+ * 170997271816****
156
+ */
157
+ applicationId?: number;
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
+ *
162
+ * @example
163
+ * example.com.ialicdn.com
164
+ */
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
+ */
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
+ */
187
+ ipAccessRule?: string;
188
+ /**
189
+ * @remarks
190
+ * IPv6 switch.
191
+ *
192
+ * @example
193
+ * on
194
+ */
195
+ ipv6?: string;
196
+ /**
197
+ * @remarks
198
+ * Domain name of the Layer 4 application.
199
+ *
200
+ * @example
201
+ * test.example.com
202
+ */
203
+ recordName?: string;
204
+ /**
205
+ * @remarks
206
+ * List of forwarding rules.
207
+ */
208
+ rules?: ListTransportLayerApplicationsResponseBodyApplicationsRules[];
209
+ /**
210
+ * @remarks
211
+ * Number of forwarding rules contained in the Layer 4 acceleration application.
212
+ *
213
+ * @example
214
+ * 1
215
+ */
216
+ rulesCount?: number;
217
+ /**
218
+ * @remarks
219
+ * Site ID.
220
+ *
221
+ * @example
222
+ * 36556540048****
223
+ */
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
+ */
241
+ status?: string;
242
+ static names(): { [key: string]: string } {
243
+ return {
244
+ applicationId: 'ApplicationId',
245
+ cname: 'Cname',
246
+ crossBorderOptimization: 'CrossBorderOptimization',
247
+ ipAccessRule: 'IpAccessRule',
248
+ ipv6: 'Ipv6',
249
+ recordName: 'RecordName',
250
+ rules: 'Rules',
251
+ rulesCount: 'RulesCount',
252
+ siteId: 'SiteId',
253
+ staticIp: 'StaticIp',
254
+ staticIpV4List: 'StaticIpV4List',
255
+ status: 'Status',
256
+ };
257
+ }
258
+
259
+ static types(): { [key: string]: any } {
260
+ return {
261
+ applicationId: 'number',
262
+ cname: 'string',
263
+ crossBorderOptimization: 'string',
264
+ ipAccessRule: 'string',
265
+ ipv6: 'string',
266
+ recordName: 'string',
267
+ rules: { 'type': 'array', 'itemType': ListTransportLayerApplicationsResponseBodyApplicationsRules },
268
+ rulesCount: 'number',
269
+ siteId: 'number',
270
+ staticIp: 'string',
271
+ staticIpV4List: { 'type': 'array', 'itemType': ListTransportLayerApplicationsResponseBodyApplicationsStaticIpV4List },
272
+ status: 'string',
273
+ };
274
+ }
275
+
276
+ validate() {
277
+ if(Array.isArray(this.rules)) {
278
+ $dara.Model.validateArray(this.rules);
279
+ }
280
+ if(Array.isArray(this.staticIpV4List)) {
281
+ $dara.Model.validateArray(this.staticIpV4List);
282
+ }
283
+ super.validate();
284
+ }
285
+
286
+ constructor(map?: { [key: string]: any }) {
287
+ super(map);
288
+ }
289
+ }
290
+
291
+ export class ListTransportLayerApplicationsResponseBody extends $dara.Model {
292
+ /**
293
+ * @remarks
294
+ * List of transport layer applications.
295
+ */
296
+ applications?: ListTransportLayerApplicationsResponseBodyApplications[];
297
+ /**
298
+ * @remarks
299
+ * Current page number.
300
+ *
301
+ * @example
302
+ * 1
303
+ */
304
+ pageNumber?: number;
305
+ /**
306
+ * @remarks
307
+ * Page size.
308
+ *
309
+ * @example
310
+ * 1
311
+ */
312
+ pageSize?: number;
313
+ /**
314
+ * @remarks
315
+ * Request ID.
316
+ *
317
+ * @example
318
+ * CB1A380B-09F0-41BB-A198-72F8FD6DA2FE
319
+ */
320
+ requestId?: string;
321
+ /**
322
+ * @remarks
323
+ * Total number of transport layer applications.
324
+ *
325
+ * @example
326
+ * 1
327
+ */
328
+ totalCount?: number;
329
+ static names(): { [key: string]: string } {
330
+ return {
331
+ applications: 'Applications',
332
+ pageNumber: 'PageNumber',
333
+ pageSize: 'PageSize',
334
+ requestId: 'RequestId',
335
+ totalCount: 'TotalCount',
336
+ };
337
+ }
338
+
339
+ static types(): { [key: string]: any } {
340
+ return {
341
+ applications: { 'type': 'array', 'itemType': ListTransportLayerApplicationsResponseBodyApplications },
342
+ pageNumber: 'number',
343
+ pageSize: 'number',
344
+ requestId: 'string',
345
+ totalCount: 'number',
346
+ };
347
+ }
348
+
349
+ validate() {
350
+ if(Array.isArray(this.applications)) {
351
+ $dara.Model.validateArray(this.applications);
352
+ }
353
+ super.validate();
354
+ }
355
+
356
+ constructor(map?: { [key: string]: any }) {
357
+ super(map);
358
+ }
359
+ }
360
+
@@ -0,0 +1,206 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class UpdateTransportLayerApplicationRequestRules extends $dara.Model {
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
+ *
14
+ * @example
15
+ * SPP
16
+ */
17
+ clientIPPassThroughMode?: string;
18
+ /**
19
+ * @remarks
20
+ * Comment information for the rule.
21
+ *
22
+ * @example
23
+ * 123
24
+ */
25
+ comment?: string;
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
+ * - Edge ports within a single rule and between multiple rules must not overlap.
34
+ *
35
+ * @example
36
+ * 80
37
+ */
38
+ edgePort?: string;
39
+ /**
40
+ * @remarks
41
+ * Forwarding rule protocol, supports:
42
+ *
43
+ * - TCP: TCP protocol.
44
+ * - UDP: UDP protocol.
45
+ *
46
+ * @example
47
+ * TCP
48
+ */
49
+ protocol?: string;
50
+ /**
51
+ * @remarks
52
+ * Specific value of the source.
53
+ *
54
+ * @example
55
+ * 1.1.1.1
56
+ */
57
+ source?: string;
58
+ /**
59
+ * @remarks
60
+ * Source port. Supports:
61
+ *
62
+ * - A single port, when the source port is a single port, any valid edge port combination is supported.
63
+ * - Port range, only when the edge port is a port range, the source port can be set as a port range, and the size of the range must match that of 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 do not match.
64
+ *
65
+ * @example
66
+ * 80
67
+ */
68
+ sourcePort?: string;
69
+ /**
70
+ * @remarks
71
+ * Source type, supports:
72
+ * - **ip**: IP address.
73
+ * - **domain**: Domain name.
74
+ * - **OP**: Origin pool.
75
+ * - **LB**: Load balancer.
76
+ *
77
+ * @example
78
+ * ip
79
+ */
80
+ sourceType?: string;
81
+ static names(): { [key: string]: string } {
82
+ return {
83
+ clientIPPassThroughMode: 'ClientIPPassThroughMode',
84
+ comment: 'Comment',
85
+ edgePort: 'EdgePort',
86
+ protocol: 'Protocol',
87
+ source: 'Source',
88
+ sourcePort: 'SourcePort',
89
+ sourceType: 'SourceType',
90
+ };
91
+ }
92
+
93
+ static types(): { [key: string]: any } {
94
+ return {
95
+ clientIPPassThroughMode: 'string',
96
+ comment: 'string',
97
+ edgePort: 'string',
98
+ protocol: 'string',
99
+ source: 'string',
100
+ sourcePort: 'string',
101
+ sourceType: 'string',
102
+ };
103
+ }
104
+
105
+ validate() {
106
+ super.validate();
107
+ }
108
+
109
+ constructor(map?: { [key: string]: any }) {
110
+ super(map);
111
+ }
112
+ }
113
+
114
+ export class UpdateTransportLayerApplicationRequest extends $dara.Model {
115
+ /**
116
+ * @remarks
117
+ * Transport layer application ID, which can be obtained by calling the [ListTransportLayerApplications](~~ListTransportLayerApplications~~) interface.
118
+ *
119
+ * This parameter is required.
120
+ *
121
+ * @example
122
+ * 165503967****
123
+ */
124
+ applicationId?: number;
125
+ /**
126
+ * @remarks
127
+ * Whether to enable China mainland network access optimization, default is disabled. Value range:
128
+ *
129
+ * - on: Enabled.
130
+ * - off: Disabled.
131
+ *
132
+ * @example
133
+ * on
134
+ */
135
+ crossBorderOptimization?: string;
136
+ /**
137
+ * @remarks
138
+ * IP access rule switch. When enabled, the IP access rules in WAF will take effect on the transport layer application.
139
+ *
140
+ * - on: Enabled.
141
+ * - off: Disabled.
142
+ *
143
+ * @example
144
+ * on
145
+ */
146
+ ipAccessRule?: string;
147
+ /**
148
+ * @remarks
149
+ * IPv6 switch.
150
+ *
151
+ * @example
152
+ * on
153
+ */
154
+ ipv6?: string;
155
+ /**
156
+ * @remarks
157
+ * Forwarding rule list. Details of each rule. Except for the comment, all other parameters are required.
158
+ */
159
+ rules?: UpdateTransportLayerApplicationRequestRules[];
160
+ /**
161
+ * @remarks
162
+ * Site ID, which can be obtained by calling the [ListSites](~~ListSites~~) interface.
163
+ *
164
+ * This parameter is required.
165
+ *
166
+ * @example
167
+ * 123456****
168
+ */
169
+ siteId?: number;
170
+ staticIp?: string;
171
+ static names(): { [key: string]: string } {
172
+ return {
173
+ applicationId: 'ApplicationId',
174
+ crossBorderOptimization: 'CrossBorderOptimization',
175
+ ipAccessRule: 'IpAccessRule',
176
+ ipv6: 'Ipv6',
177
+ rules: 'Rules',
178
+ siteId: 'SiteId',
179
+ staticIp: 'StaticIp',
180
+ };
181
+ }
182
+
183
+ static types(): { [key: string]: any } {
184
+ return {
185
+ applicationId: 'number',
186
+ crossBorderOptimization: 'string',
187
+ ipAccessRule: 'string',
188
+ ipv6: 'string',
189
+ rules: { 'type': 'array', 'itemType': UpdateTransportLayerApplicationRequestRules },
190
+ siteId: 'number',
191
+ staticIp: 'string',
192
+ };
193
+ }
194
+
195
+ validate() {
196
+ if(Array.isArray(this.rules)) {
197
+ $dara.Model.validateArray(this.rules);
198
+ }
199
+ super.validate();
200
+ }
201
+
202
+ constructor(map?: { [key: string]: any }) {
203
+ super(map);
204
+ }
205
+ }
206
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { UpdateTransportLayerApplicationResponseBody } from "./UpdateTransportLayerApplicationResponseBody";
4
+
5
+
6
+ export class UpdateTransportLayerApplicationResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: UpdateTransportLayerApplicationResponseBody;
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: UpdateTransportLayerApplicationResponseBody,
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 UpdateTransportLayerApplicationResponseBody extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Request ID.
9
+ *
10
+ * @example
11
+ * 9e5448c7-edaf-49aa-9887-0fcd0832306c
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
+