@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,262 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class ListTransportLayerApplicationsResponseBodyApplicationsRules extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * Client IP pass-through protocol, supports:
6
+ * - **off**: No pass-through.
7
+ * - **PPv1**: PROXY Protocol v1, supports client IP pass-through for TCP protocol.
8
+ * - **PPv2**: PROXY Protocol v2, supports client IP pass-through for TCP and UDP protocols.
9
+ * - **SPP**: Simple Proxy Protocol, supports client IP pass-through for UDP protocol.
10
+ *
11
+ * @example
12
+ * off
13
+ */
14
+ clientIPPassThroughMode?: string;
15
+ /**
16
+ * @remarks
17
+ * Comment information for the rule.
18
+ *
19
+ * @example
20
+ * 测试
21
+ */
22
+ comment?: string;
23
+ /**
24
+ * @remarks
25
+ * Edge port. Supports:
26
+ *
27
+ * - A single port, e.g., 80.
28
+ * - Port range, e.g., 81-85, representing ports 81, 82, 83, 84, 85.
29
+ * - Combination of ports and port ranges, separated by commas, e.g., 80,81-85,90, representing ports 80, 81, 82, 83, 84, 85, 90.
30
+ *
31
+ * @example
32
+ * 80
33
+ */
34
+ edgePort?: string;
35
+ /**
36
+ * @remarks
37
+ * Forwarding rule protocol, with values:
38
+ *
39
+ * - TCP: TCP protocol.
40
+ * - UDP: UDP protocol.
41
+ *
42
+ * @example
43
+ * TCP
44
+ */
45
+ protocol?: string;
46
+ /**
47
+ * @remarks
48
+ * Layer 4 acceleration rule ID.
49
+ *
50
+ * @example
51
+ * 20258028****
52
+ */
53
+ ruleId?: number;
54
+ /**
55
+ * @remarks
56
+ * Specific value of the source, which needs to match the source type.
57
+ *
58
+ * @example
59
+ * 1.1.1.1
60
+ */
61
+ source?: string;
62
+ /**
63
+ * @remarks
64
+ * Source port. Supports:
65
+ *
66
+ * - A single port, when the source port is a single port, any valid combination of edge ports is supported.
67
+ * - 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.
68
+ *
69
+ * @example
70
+ * 80
71
+ */
72
+ sourcePort?: string;
73
+ /**
74
+ * @remarks
75
+ * Source type, supports:
76
+ * - **ip**: IP.
77
+ * - **domain**: Domain name.
78
+ * - **OP**: Origin pool.
79
+ * - **LB**: Load balancer.
80
+ *
81
+ * @example
82
+ * ip
83
+ */
84
+ sourceType?: string;
85
+ static names(): {
86
+ [key: string]: string;
87
+ };
88
+ static types(): {
89
+ [key: string]: any;
90
+ };
91
+ validate(): void;
92
+ constructor(map?: {
93
+ [key: string]: any;
94
+ });
95
+ }
96
+ export declare class ListTransportLayerApplicationsResponseBodyApplicationsStaticIpV4List extends $dara.Model {
97
+ address?: string;
98
+ status?: string;
99
+ static names(): {
100
+ [key: string]: string;
101
+ };
102
+ static types(): {
103
+ [key: string]: any;
104
+ };
105
+ validate(): void;
106
+ constructor(map?: {
107
+ [key: string]: any;
108
+ });
109
+ }
110
+ export declare class ListTransportLayerApplicationsResponseBodyApplications extends $dara.Model {
111
+ /**
112
+ * @remarks
113
+ * Layer 4 application ID.
114
+ *
115
+ * @example
116
+ * 170997271816****
117
+ */
118
+ applicationId?: number;
119
+ /**
120
+ * @remarks
121
+ * CNAME domain name corresponding to the Layer 4 acceleration application. This field is not empty only when the site is accessed via CNAME.
122
+ *
123
+ * @example
124
+ * example.com.ialicdn.com
125
+ */
126
+ cname?: string;
127
+ /**
128
+ * @remarks
129
+ * Whether to enable China mainland network access optimization. It is disabled by default. The value range is:
130
+ *
131
+ * - on: Enabled.
132
+ * - off: Disabled.
133
+ *
134
+ * @example
135
+ * on
136
+ */
137
+ crossBorderOptimization?: string;
138
+ /**
139
+ * @remarks
140
+ * IP access rule switch. When enabled, the IP access rules in WAF take effect on the Layer 4 application.
141
+ *
142
+ * - on: Enabled.
143
+ * - off: Disabled.
144
+ *
145
+ * @example
146
+ * on
147
+ */
148
+ ipAccessRule?: string;
149
+ /**
150
+ * @remarks
151
+ * IPv6 switch.
152
+ *
153
+ * @example
154
+ * on
155
+ */
156
+ ipv6?: string;
157
+ /**
158
+ * @remarks
159
+ * Domain name of the Layer 4 application.
160
+ *
161
+ * @example
162
+ * test.example.com
163
+ */
164
+ recordName?: string;
165
+ /**
166
+ * @remarks
167
+ * List of forwarding rules.
168
+ */
169
+ rules?: ListTransportLayerApplicationsResponseBodyApplicationsRules[];
170
+ /**
171
+ * @remarks
172
+ * Number of forwarding rules contained in the Layer 4 acceleration application.
173
+ *
174
+ * @example
175
+ * 1
176
+ */
177
+ rulesCount?: number;
178
+ /**
179
+ * @remarks
180
+ * Site ID.
181
+ *
182
+ * @example
183
+ * 36556540048****
184
+ */
185
+ siteId?: number;
186
+ staticIp?: string;
187
+ /**
188
+ * @remarks
189
+ * This parameter is required.
190
+ */
191
+ staticIpV4List?: ListTransportLayerApplicationsResponseBodyApplicationsStaticIpV4List[];
192
+ /**
193
+ * @remarks
194
+ * Status of the Layer 4 application
195
+ *
196
+ * - **deploying**: Deploying. In this state, modification and deletion are not allowed.
197
+ * - **active**: Active.
198
+ *
199
+ * @example
200
+ * active
201
+ */
202
+ status?: string;
203
+ static names(): {
204
+ [key: string]: string;
205
+ };
206
+ static types(): {
207
+ [key: string]: any;
208
+ };
209
+ validate(): void;
210
+ constructor(map?: {
211
+ [key: string]: any;
212
+ });
213
+ }
214
+ export declare class ListTransportLayerApplicationsResponseBody extends $dara.Model {
215
+ /**
216
+ * @remarks
217
+ * List of transport layer applications.
218
+ */
219
+ applications?: ListTransportLayerApplicationsResponseBodyApplications[];
220
+ /**
221
+ * @remarks
222
+ * Current page number.
223
+ *
224
+ * @example
225
+ * 1
226
+ */
227
+ pageNumber?: number;
228
+ /**
229
+ * @remarks
230
+ * Page size.
231
+ *
232
+ * @example
233
+ * 1
234
+ */
235
+ pageSize?: number;
236
+ /**
237
+ * @remarks
238
+ * Request ID.
239
+ *
240
+ * @example
241
+ * CB1A380B-09F0-41BB-A198-72F8FD6DA2FE
242
+ */
243
+ requestId?: string;
244
+ /**
245
+ * @remarks
246
+ * Total number of transport layer applications.
247
+ *
248
+ * @example
249
+ * 1
250
+ */
251
+ totalCount?: number;
252
+ static names(): {
253
+ [key: string]: string;
254
+ };
255
+ static types(): {
256
+ [key: string]: any;
257
+ };
258
+ validate(): void;
259
+ constructor(map?: {
260
+ [key: string]: any;
261
+ });
262
+ }
@@ -0,0 +1,170 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.ListTransportLayerApplicationsResponseBody = exports.ListTransportLayerApplicationsResponseBodyApplications = exports.ListTransportLayerApplicationsResponseBodyApplicationsStaticIpV4List = exports.ListTransportLayerApplicationsResponseBodyApplicationsRules = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class ListTransportLayerApplicationsResponseBodyApplicationsRules extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ clientIPPassThroughMode: 'ClientIPPassThroughMode',
43
+ comment: 'Comment',
44
+ edgePort: 'EdgePort',
45
+ protocol: 'Protocol',
46
+ ruleId: 'RuleId',
47
+ source: 'Source',
48
+ sourcePort: 'SourcePort',
49
+ sourceType: 'SourceType',
50
+ };
51
+ }
52
+ static types() {
53
+ return {
54
+ clientIPPassThroughMode: 'string',
55
+ comment: 'string',
56
+ edgePort: 'string',
57
+ protocol: 'string',
58
+ ruleId: 'number',
59
+ source: 'string',
60
+ sourcePort: 'string',
61
+ sourceType: 'string',
62
+ };
63
+ }
64
+ validate() {
65
+ super.validate();
66
+ }
67
+ constructor(map) {
68
+ super(map);
69
+ }
70
+ }
71
+ exports.ListTransportLayerApplicationsResponseBodyApplicationsRules = ListTransportLayerApplicationsResponseBodyApplicationsRules;
72
+ class ListTransportLayerApplicationsResponseBodyApplicationsStaticIpV4List extends $dara.Model {
73
+ static names() {
74
+ return {
75
+ address: 'Address',
76
+ status: 'Status',
77
+ };
78
+ }
79
+ static types() {
80
+ return {
81
+ address: 'string',
82
+ status: 'string',
83
+ };
84
+ }
85
+ validate() {
86
+ super.validate();
87
+ }
88
+ constructor(map) {
89
+ super(map);
90
+ }
91
+ }
92
+ exports.ListTransportLayerApplicationsResponseBodyApplicationsStaticIpV4List = ListTransportLayerApplicationsResponseBodyApplicationsStaticIpV4List;
93
+ class ListTransportLayerApplicationsResponseBodyApplications extends $dara.Model {
94
+ static names() {
95
+ return {
96
+ applicationId: 'ApplicationId',
97
+ cname: 'Cname',
98
+ crossBorderOptimization: 'CrossBorderOptimization',
99
+ ipAccessRule: 'IpAccessRule',
100
+ ipv6: 'Ipv6',
101
+ recordName: 'RecordName',
102
+ rules: 'Rules',
103
+ rulesCount: 'RulesCount',
104
+ siteId: 'SiteId',
105
+ staticIp: 'StaticIp',
106
+ staticIpV4List: 'StaticIpV4List',
107
+ status: 'Status',
108
+ };
109
+ }
110
+ static types() {
111
+ return {
112
+ applicationId: 'number',
113
+ cname: 'string',
114
+ crossBorderOptimization: 'string',
115
+ ipAccessRule: 'string',
116
+ ipv6: 'string',
117
+ recordName: 'string',
118
+ rules: { 'type': 'array', 'itemType': ListTransportLayerApplicationsResponseBodyApplicationsRules },
119
+ rulesCount: 'number',
120
+ siteId: 'number',
121
+ staticIp: 'string',
122
+ staticIpV4List: { 'type': 'array', 'itemType': ListTransportLayerApplicationsResponseBodyApplicationsStaticIpV4List },
123
+ status: 'string',
124
+ };
125
+ }
126
+ validate() {
127
+ if (Array.isArray(this.rules)) {
128
+ $dara.Model.validateArray(this.rules);
129
+ }
130
+ if (Array.isArray(this.staticIpV4List)) {
131
+ $dara.Model.validateArray(this.staticIpV4List);
132
+ }
133
+ super.validate();
134
+ }
135
+ constructor(map) {
136
+ super(map);
137
+ }
138
+ }
139
+ exports.ListTransportLayerApplicationsResponseBodyApplications = ListTransportLayerApplicationsResponseBodyApplications;
140
+ class ListTransportLayerApplicationsResponseBody extends $dara.Model {
141
+ static names() {
142
+ return {
143
+ applications: 'Applications',
144
+ pageNumber: 'PageNumber',
145
+ pageSize: 'PageSize',
146
+ requestId: 'RequestId',
147
+ totalCount: 'TotalCount',
148
+ };
149
+ }
150
+ static types() {
151
+ return {
152
+ applications: { 'type': 'array', 'itemType': ListTransportLayerApplicationsResponseBodyApplications },
153
+ pageNumber: 'number',
154
+ pageSize: 'number',
155
+ requestId: 'string',
156
+ totalCount: 'number',
157
+ };
158
+ }
159
+ validate() {
160
+ if (Array.isArray(this.applications)) {
161
+ $dara.Model.validateArray(this.applications);
162
+ }
163
+ super.validate();
164
+ }
165
+ constructor(map) {
166
+ super(map);
167
+ }
168
+ }
169
+ exports.ListTransportLayerApplicationsResponseBody = ListTransportLayerApplicationsResponseBody;
170
+ //# sourceMappingURL=ListTransportLayerApplicationsResponseBody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListTransportLayerApplicationsResponseBody.js","sourceRoot":"","sources":["../../src/models/ListTransportLayerApplicationsResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,2DAA4D,SAAQ,KAAK,CAAC,KAAK;IAmF1F,MAAM,CAAC,KAAK;QACV,OAAO;YACL,uBAAuB,EAAE,yBAAyB;YAClD,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,YAAY;YACxB,UAAU,EAAE,YAAY;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,uBAAuB,EAAE,QAAQ;YACjC,OAAO,EAAE,QAAQ;YACjB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,QAAQ;YACpB,UAAU,EAAE,QAAQ;SACrB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApHD,kIAoHC;AAED,MAAa,oEAAqE,SAAQ,KAAK,CAAC,KAAK;IAGnG,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;I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Aa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC;YACtC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACjD,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5ID,wHA4IC;AAED,MAAa,0CAA2C,SAAQ,KAAK,CAAC,KAAK;IAsCzE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,cAAc;YAC5B,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;YACtB,UAAU,EAAE,YAAY;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,sDAAsD,EAAE;YACrG,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;YACnB,UAAU,EAAE,QAAQ;SACrB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;YACpC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC/C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApED,gGAoEC"}
@@ -0,0 +1,156 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class UpdateTransportLayerApplicationRequestRules extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * Client IP pass-through protocol, supports:
6
+ * - **off**: No pass-through.
7
+ * - **PPv1**: PROXY Protocol v1, supports client IP pass-through for TCP protocol.
8
+ * - **PPv2**: PROXY Protocol v2, supports client IP pass-through for TCP and UDP protocols.
9
+ * - **SPP**: Simple Proxy Protocol, supports client IP pass-through for UDP protocol.
10
+ *
11
+ * @example
12
+ * SPP
13
+ */
14
+ clientIPPassThroughMode?: string;
15
+ /**
16
+ * @remarks
17
+ * Comment information for the rule.
18
+ *
19
+ * @example
20
+ * 123
21
+ */
22
+ comment?: string;
23
+ /**
24
+ * @remarks
25
+ * Edge port. Supports:
26
+ *
27
+ * - A single port, e.g., 80.
28
+ * - Port range, e.g., 81-85, representing ports 81, 82, 83, 84, 85.
29
+ * - Combination of ports and port ranges, separated by commas, e.g., 80,81-85,90, representing ports 80, 81, 82, 83, 84, 85, 90.
30
+ * - Edge ports within a single rule and between multiple rules must not overlap.
31
+ *
32
+ * @example
33
+ * 80
34
+ */
35
+ edgePort?: string;
36
+ /**
37
+ * @remarks
38
+ * Forwarding rule protocol, supports:
39
+ *
40
+ * - TCP: TCP protocol.
41
+ * - UDP: UDP protocol.
42
+ *
43
+ * @example
44
+ * TCP
45
+ */
46
+ protocol?: string;
47
+ /**
48
+ * @remarks
49
+ * Specific value of the source.
50
+ *
51
+ * @example
52
+ * 1.1.1.1
53
+ */
54
+ source?: string;
55
+ /**
56
+ * @remarks
57
+ * Source port. Supports:
58
+ *
59
+ * - A single port, when the source port is a single port, any valid edge port combination is supported.
60
+ * - 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.
61
+ *
62
+ * @example
63
+ * 80
64
+ */
65
+ sourcePort?: string;
66
+ /**
67
+ * @remarks
68
+ * Source type, supports:
69
+ * - **ip**: IP address.
70
+ * - **domain**: Domain name.
71
+ * - **OP**: Origin pool.
72
+ * - **LB**: Load balancer.
73
+ *
74
+ * @example
75
+ * ip
76
+ */
77
+ sourceType?: string;
78
+ static names(): {
79
+ [key: string]: string;
80
+ };
81
+ static types(): {
82
+ [key: string]: any;
83
+ };
84
+ validate(): void;
85
+ constructor(map?: {
86
+ [key: string]: any;
87
+ });
88
+ }
89
+ export declare class UpdateTransportLayerApplicationRequest extends $dara.Model {
90
+ /**
91
+ * @remarks
92
+ * Transport layer application ID, which can be obtained by calling the [ListTransportLayerApplications](~~ListTransportLayerApplications~~) interface.
93
+ *
94
+ * This parameter is required.
95
+ *
96
+ * @example
97
+ * 165503967****
98
+ */
99
+ applicationId?: number;
100
+ /**
101
+ * @remarks
102
+ * Whether to enable China mainland network access optimization, default is disabled. Value range:
103
+ *
104
+ * - on: Enabled.
105
+ * - off: Disabled.
106
+ *
107
+ * @example
108
+ * on
109
+ */
110
+ crossBorderOptimization?: string;
111
+ /**
112
+ * @remarks
113
+ * IP access rule switch. When enabled, the IP access rules in WAF will take effect on the transport layer application.
114
+ *
115
+ * - on: Enabled.
116
+ * - off: Disabled.
117
+ *
118
+ * @example
119
+ * on
120
+ */
121
+ ipAccessRule?: string;
122
+ /**
123
+ * @remarks
124
+ * IPv6 switch.
125
+ *
126
+ * @example
127
+ * on
128
+ */
129
+ ipv6?: string;
130
+ /**
131
+ * @remarks
132
+ * Forwarding rule list. Details of each rule. Except for the comment, all other parameters are required.
133
+ */
134
+ rules?: UpdateTransportLayerApplicationRequestRules[];
135
+ /**
136
+ * @remarks
137
+ * Site ID, which can be obtained by calling the [ListSites](~~ListSites~~) interface.
138
+ *
139
+ * This parameter is required.
140
+ *
141
+ * @example
142
+ * 123456****
143
+ */
144
+ siteId?: number;
145
+ staticIp?: string;
146
+ static names(): {
147
+ [key: string]: string;
148
+ };
149
+ static types(): {
150
+ [key: string]: any;
151
+ };
152
+ validate(): void;
153
+ constructor(map?: {
154
+ [key: string]: any;
155
+ });
156
+ }
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.UpdateTransportLayerApplicationRequest = exports.UpdateTransportLayerApplicationRequestRules = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class UpdateTransportLayerApplicationRequestRules extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ clientIPPassThroughMode: 'ClientIPPassThroughMode',
43
+ comment: 'Comment',
44
+ edgePort: 'EdgePort',
45
+ protocol: 'Protocol',
46
+ source: 'Source',
47
+ sourcePort: 'SourcePort',
48
+ sourceType: 'SourceType',
49
+ };
50
+ }
51
+ static types() {
52
+ return {
53
+ clientIPPassThroughMode: 'string',
54
+ comment: 'string',
55
+ edgePort: 'string',
56
+ protocol: 'string',
57
+ source: 'string',
58
+ sourcePort: 'string',
59
+ sourceType: 'string',
60
+ };
61
+ }
62
+ validate() {
63
+ super.validate();
64
+ }
65
+ constructor(map) {
66
+ super(map);
67
+ }
68
+ }
69
+ exports.UpdateTransportLayerApplicationRequestRules = UpdateTransportLayerApplicationRequestRules;
70
+ class UpdateTransportLayerApplicationRequest extends $dara.Model {
71
+ static names() {
72
+ return {
73
+ applicationId: 'ApplicationId',
74
+ crossBorderOptimization: 'CrossBorderOptimization',
75
+ ipAccessRule: 'IpAccessRule',
76
+ ipv6: 'Ipv6',
77
+ rules: 'Rules',
78
+ siteId: 'SiteId',
79
+ staticIp: 'StaticIp',
80
+ };
81
+ }
82
+ static types() {
83
+ return {
84
+ applicationId: 'number',
85
+ crossBorderOptimization: 'string',
86
+ ipAccessRule: 'string',
87
+ ipv6: 'string',
88
+ rules: { 'type': 'array', 'itemType': UpdateTransportLayerApplicationRequestRules },
89
+ siteId: 'number',
90
+ staticIp: 'string',
91
+ };
92
+ }
93
+ validate() {
94
+ if (Array.isArray(this.rules)) {
95
+ $dara.Model.validateArray(this.rules);
96
+ }
97
+ super.validate();
98
+ }
99
+ constructor(map) {
100
+ super(map);
101
+ }
102
+ }
103
+ exports.UpdateTransportLayerApplicationRequest = UpdateTransportLayerApplicationRequest;
104
+ //# sourceMappingURL=UpdateTransportLayerApplicationRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UpdateTransportLayerApplicationRequest.js","sourceRoot":"","sources":["../../src/models/UpdateTransportLayerApplicationRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,2CAA4C,SAAQ,KAAK,CAAC,KAAK;IA4E1E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,uBAAuB,EAAE,yBAAyB;YAClD,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,UAAU;Y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