@alicloud/cms20240330 9.0.0 → 9.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/client.d.ts +90 -0
  2. package/dist/client.js +233 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreatePipelineRequest.d.ts +213 -0
  5. package/dist/models/CreatePipelineRequest.js +291 -0
  6. package/dist/models/CreatePipelineRequest.js.map +1 -0
  7. package/dist/models/CreatePipelineResponse.d.ts +19 -0
  8. package/dist/models/CreatePipelineResponse.js +69 -0
  9. package/dist/models/CreatePipelineResponse.js.map +1 -0
  10. package/dist/models/CreatePipelineResponseBody.d.ts +18 -0
  11. package/dist/models/CreatePipelineResponseBody.js +58 -0
  12. package/dist/models/CreatePipelineResponseBody.js.map +1 -0
  13. package/dist/models/DeletePipelineRequest.d.ts +13 -0
  14. package/dist/models/DeletePipelineRequest.js +54 -0
  15. package/dist/models/DeletePipelineRequest.js.map +1 -0
  16. package/dist/models/DeletePipelineResponse.d.ts +19 -0
  17. package/dist/models/DeletePipelineResponse.js +69 -0
  18. package/dist/models/DeletePipelineResponse.js.map +1 -0
  19. package/dist/models/DeletePipelineResponseBody.d.ts +18 -0
  20. package/dist/models/DeletePipelineResponseBody.js +58 -0
  21. package/dist/models/DeletePipelineResponseBody.js.map +1 -0
  22. package/dist/models/GetPipelineRequest.d.ts +13 -0
  23. package/dist/models/GetPipelineRequest.js +54 -0
  24. package/dist/models/GetPipelineRequest.js.map +1 -0
  25. package/dist/models/GetPipelineResponse.d.ts +19 -0
  26. package/dist/models/GetPipelineResponse.js +69 -0
  27. package/dist/models/GetPipelineResponse.js.map +1 -0
  28. package/dist/models/GetPipelineResponseBody.d.ts +239 -0
  29. package/dist/models/GetPipelineResponseBody.js +299 -0
  30. package/dist/models/GetPipelineResponseBody.js.map +1 -0
  31. package/dist/models/ListPipelinesRequest.d.ts +28 -0
  32. package/dist/models/ListPipelinesRequest.js +62 -0
  33. package/dist/models/ListPipelinesRequest.js.map +1 -0
  34. package/dist/models/ListPipelinesResponse.d.ts +19 -0
  35. package/dist/models/ListPipelinesResponse.js +69 -0
  36. package/dist/models/ListPipelinesResponse.js.map +1 -0
  37. package/dist/models/ListPipelinesResponseBody.d.ts +80 -0
  38. package/dist/models/ListPipelinesResponseBody.js +96 -0
  39. package/dist/models/ListPipelinesResponseBody.js.map +1 -0
  40. package/dist/models/QueryConfigUnified.d.ts +1 -0
  41. package/dist/models/QueryConfigUnified.js +2 -0
  42. package/dist/models/QueryConfigUnified.js.map +1 -1
  43. package/dist/models/UpdatePipelineRequest.d.ts +203 -0
  44. package/dist/models/UpdatePipelineRequest.js +287 -0
  45. package/dist/models/UpdatePipelineRequest.js.map +1 -0
  46. package/dist/models/UpdatePipelineResponse.d.ts +19 -0
  47. package/dist/models/UpdatePipelineResponse.js +69 -0
  48. package/dist/models/UpdatePipelineResponse.js.map +1 -0
  49. package/dist/models/UpdatePipelineResponseBody.d.ts +18 -0
  50. package/dist/models/UpdatePipelineResponseBody.js +58 -0
  51. package/dist/models/UpdatePipelineResponseBody.js.map +1 -0
  52. package/dist/models/model.d.ts +43 -0
  53. package/dist/models/model.js +100 -14
  54. package/dist/models/model.js.map +1 -1
  55. package/package.json +1 -1
  56. package/src/client.ts +257 -0
  57. package/src/models/CreatePipelineRequest.ts +376 -0
  58. package/src/models/CreatePipelineResponse.ts +40 -0
  59. package/src/models/CreatePipelineResponseBody.ts +31 -0
  60. package/src/models/DeletePipelineRequest.ts +24 -0
  61. package/src/models/DeletePipelineResponse.ts +40 -0
  62. package/src/models/DeletePipelineResponseBody.ts +31 -0
  63. package/src/models/GetPipelineRequest.ts +24 -0
  64. package/src/models/GetPipelineResponse.ts +40 -0
  65. package/src/models/GetPipelineResponseBody.ts +410 -0
  66. package/src/models/ListPipelinesRequest.ts +45 -0
  67. package/src/models/ListPipelinesResponse.ts +40 -0
  68. package/src/models/ListPipelinesResponseBody.ts +122 -0
  69. package/src/models/QueryConfigUnified.ts +3 -0
  70. package/src/models/UpdatePipelineRequest.ts +362 -0
  71. package/src/models/UpdatePipelineResponse.ts +40 -0
  72. package/src/models/UpdatePipelineResponseBody.ts +31 -0
  73. package/src/models/model.ts +43 -0
@@ -0,0 +1,376 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CreatePipelineRequestExecutePolicyRunOnce extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * 1772519013
9
+ */
10
+ fromTime?: number;
11
+ /**
12
+ * @example
13
+ * 1772519013
14
+ */
15
+ toTime?: number;
16
+ static names(): { [key: string]: string } {
17
+ return {
18
+ fromTime: 'fromTime',
19
+ toTime: 'toTime',
20
+ };
21
+ }
22
+
23
+ static types(): { [key: string]: any } {
24
+ return {
25
+ fromTime: 'number',
26
+ toTime: 'number',
27
+ };
28
+ }
29
+
30
+ validate() {
31
+ super.validate();
32
+ }
33
+
34
+ constructor(map?: { [key: string]: any }) {
35
+ super(map);
36
+ }
37
+ }
38
+
39
+ export class CreatePipelineRequestExecutePolicyScheduled extends $dara.Model {
40
+ /**
41
+ * @example
42
+ * 1772519013
43
+ */
44
+ fromTime?: number;
45
+ /**
46
+ * @example
47
+ * 86400
48
+ */
49
+ interval?: string;
50
+ static names(): { [key: string]: string } {
51
+ return {
52
+ fromTime: 'fromTime',
53
+ interval: 'interval',
54
+ };
55
+ }
56
+
57
+ static types(): { [key: string]: any } {
58
+ return {
59
+ fromTime: 'number',
60
+ interval: 'string',
61
+ };
62
+ }
63
+
64
+ validate() {
65
+ super.validate();
66
+ }
67
+
68
+ constructor(map?: { [key: string]: any }) {
69
+ super(map);
70
+ }
71
+ }
72
+
73
+ export class CreatePipelineRequestExecutePolicy extends $dara.Model {
74
+ /**
75
+ * @example
76
+ * runOnce
77
+ */
78
+ mode?: string;
79
+ runOnce?: CreatePipelineRequestExecutePolicyRunOnce;
80
+ scheduled?: CreatePipelineRequestExecutePolicyScheduled;
81
+ static names(): { [key: string]: string } {
82
+ return {
83
+ mode: 'mode',
84
+ runOnce: 'runOnce',
85
+ scheduled: 'scheduled',
86
+ };
87
+ }
88
+
89
+ static types(): { [key: string]: any } {
90
+ return {
91
+ mode: 'string',
92
+ runOnce: CreatePipelineRequestExecutePolicyRunOnce,
93
+ scheduled: CreatePipelineRequestExecutePolicyScheduled,
94
+ };
95
+ }
96
+
97
+ validate() {
98
+ if(this.runOnce && typeof (this.runOnce as any).validate === 'function') {
99
+ (this.runOnce as any).validate();
100
+ }
101
+ if(this.scheduled && typeof (this.scheduled as any).validate === 'function') {
102
+ (this.scheduled as any).validate();
103
+ }
104
+ super.validate();
105
+ }
106
+
107
+ constructor(map?: { [key: string]: any }) {
108
+ super(map);
109
+ }
110
+ }
111
+
112
+ export class CreatePipelineRequestPipelineNodes extends $dara.Model {
113
+ /**
114
+ * @example
115
+ * node_1
116
+ */
117
+ id?: string;
118
+ parameters?: { [key: string]: any };
119
+ /**
120
+ * @example
121
+ * dedup-fuzzy
122
+ */
123
+ type?: string;
124
+ static names(): { [key: string]: string } {
125
+ return {
126
+ id: 'id',
127
+ parameters: 'parameters',
128
+ type: 'type',
129
+ };
130
+ }
131
+
132
+ static types(): { [key: string]: any } {
133
+ return {
134
+ id: 'string',
135
+ parameters: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
136
+ type: 'string',
137
+ };
138
+ }
139
+
140
+ validate() {
141
+ if(this.parameters) {
142
+ $dara.Model.validateMap(this.parameters);
143
+ }
144
+ super.validate();
145
+ }
146
+
147
+ constructor(map?: { [key: string]: any }) {
148
+ super(map);
149
+ }
150
+ }
151
+
152
+ export class CreatePipelineRequestPipeline extends $dara.Model {
153
+ nodes?: CreatePipelineRequestPipelineNodes[];
154
+ static names(): { [key: string]: string } {
155
+ return {
156
+ nodes: 'nodes',
157
+ };
158
+ }
159
+
160
+ static types(): { [key: string]: any } {
161
+ return {
162
+ nodes: { 'type': 'array', 'itemType': CreatePipelineRequestPipelineNodes },
163
+ };
164
+ }
165
+
166
+ validate() {
167
+ if(Array.isArray(this.nodes)) {
168
+ $dara.Model.validateArray(this.nodes);
169
+ }
170
+ super.validate();
171
+ }
172
+
173
+ constructor(map?: { [key: string]: any }) {
174
+ super(map);
175
+ }
176
+ }
177
+
178
+ export class CreatePipelineRequestSinkDataset extends $dara.Model {
179
+ /**
180
+ * @example
181
+ * dataset_1
182
+ */
183
+ dataset?: string;
184
+ /**
185
+ * @example
186
+ * workspace-test
187
+ */
188
+ workspace?: string;
189
+ static names(): { [key: string]: string } {
190
+ return {
191
+ dataset: 'dataset',
192
+ workspace: 'workspace',
193
+ };
194
+ }
195
+
196
+ static types(): { [key: string]: any } {
197
+ return {
198
+ dataset: 'string',
199
+ workspace: 'string',
200
+ };
201
+ }
202
+
203
+ validate() {
204
+ super.validate();
205
+ }
206
+
207
+ constructor(map?: { [key: string]: any }) {
208
+ super(map);
209
+ }
210
+ }
211
+
212
+ export class CreatePipelineRequestSink extends $dara.Model {
213
+ dataset?: CreatePipelineRequestSinkDataset;
214
+ /**
215
+ * @example
216
+ * dataset
217
+ */
218
+ type?: string;
219
+ static names(): { [key: string]: string } {
220
+ return {
221
+ dataset: 'dataset',
222
+ type: 'type',
223
+ };
224
+ }
225
+
226
+ static types(): { [key: string]: any } {
227
+ return {
228
+ dataset: CreatePipelineRequestSinkDataset,
229
+ type: 'string',
230
+ };
231
+ }
232
+
233
+ validate() {
234
+ if(this.dataset && typeof (this.dataset as any).validate === 'function') {
235
+ (this.dataset as any).validate();
236
+ }
237
+ super.validate();
238
+ }
239
+
240
+ constructor(map?: { [key: string]: any }) {
241
+ super(map);
242
+ }
243
+ }
244
+
245
+ export class CreatePipelineRequestSourceLogstore extends $dara.Model {
246
+ /**
247
+ * @example
248
+ * test-logstore
249
+ */
250
+ logstore?: string;
251
+ /**
252
+ * @example
253
+ * test-project
254
+ */
255
+ project?: string;
256
+ /**
257
+ * @example
258
+ * status:500 and method:GET
259
+ */
260
+ query?: string;
261
+ static names(): { [key: string]: string } {
262
+ return {
263
+ logstore: 'logstore',
264
+ project: 'project',
265
+ query: 'query',
266
+ };
267
+ }
268
+
269
+ static types(): { [key: string]: any } {
270
+ return {
271
+ logstore: 'string',
272
+ project: 'string',
273
+ query: 'string',
274
+ };
275
+ }
276
+
277
+ validate() {
278
+ super.validate();
279
+ }
280
+
281
+ constructor(map?: { [key: string]: any }) {
282
+ super(map);
283
+ }
284
+ }
285
+
286
+ export class CreatePipelineRequestSource extends $dara.Model {
287
+ logstore?: CreatePipelineRequestSourceLogstore;
288
+ /**
289
+ * @example
290
+ * logstore
291
+ */
292
+ type?: string;
293
+ static names(): { [key: string]: string } {
294
+ return {
295
+ logstore: 'logstore',
296
+ type: 'type',
297
+ };
298
+ }
299
+
300
+ static types(): { [key: string]: any } {
301
+ return {
302
+ logstore: CreatePipelineRequestSourceLogstore,
303
+ type: 'string',
304
+ };
305
+ }
306
+
307
+ validate() {
308
+ if(this.logstore && typeof (this.logstore as any).validate === 'function') {
309
+ (this.logstore as any).validate();
310
+ }
311
+ super.validate();
312
+ }
313
+
314
+ constructor(map?: { [key: string]: any }) {
315
+ super(map);
316
+ }
317
+ }
318
+
319
+ export class CreatePipelineRequest extends $dara.Model {
320
+ /**
321
+ * @example
322
+ * test
323
+ */
324
+ description?: string;
325
+ executePolicy?: CreatePipelineRequestExecutePolicy;
326
+ pipeline?: CreatePipelineRequestPipeline;
327
+ /**
328
+ * @example
329
+ * pipeline-name-1
330
+ */
331
+ pipelineName?: string;
332
+ sink?: CreatePipelineRequestSink;
333
+ source?: CreatePipelineRequestSource;
334
+ static names(): { [key: string]: string } {
335
+ return {
336
+ description: 'description',
337
+ executePolicy: 'executePolicy',
338
+ pipeline: 'pipeline',
339
+ pipelineName: 'pipelineName',
340
+ sink: 'sink',
341
+ source: 'source',
342
+ };
343
+ }
344
+
345
+ static types(): { [key: string]: any } {
346
+ return {
347
+ description: 'string',
348
+ executePolicy: CreatePipelineRequestExecutePolicy,
349
+ pipeline: CreatePipelineRequestPipeline,
350
+ pipelineName: 'string',
351
+ sink: CreatePipelineRequestSink,
352
+ source: CreatePipelineRequestSource,
353
+ };
354
+ }
355
+
356
+ validate() {
357
+ if(this.executePolicy && typeof (this.executePolicy as any).validate === 'function') {
358
+ (this.executePolicy as any).validate();
359
+ }
360
+ if(this.pipeline && typeof (this.pipeline as any).validate === 'function') {
361
+ (this.pipeline as any).validate();
362
+ }
363
+ if(this.sink && typeof (this.sink as any).validate === 'function') {
364
+ (this.sink as any).validate();
365
+ }
366
+ if(this.source && typeof (this.source as any).validate === 'function') {
367
+ (this.source as any).validate();
368
+ }
369
+ super.validate();
370
+ }
371
+
372
+ constructor(map?: { [key: string]: any }) {
373
+ super(map);
374
+ }
375
+ }
376
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { CreatePipelineResponseBody } from "./CreatePipelineResponseBody";
4
+
5
+
6
+ export class CreatePipelineResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: CreatePipelineResponseBody;
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: CreatePipelineResponseBody,
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,31 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CreatePipelineResponseBody extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * 0CEC5375-C554-562B-A65F-***
9
+ */
10
+ requestId?: string;
11
+ static names(): { [key: string]: string } {
12
+ return {
13
+ requestId: 'requestId',
14
+ };
15
+ }
16
+
17
+ static types(): { [key: string]: any } {
18
+ return {
19
+ requestId: 'string',
20
+ };
21
+ }
22
+
23
+ validate() {
24
+ super.validate();
25
+ }
26
+
27
+ constructor(map?: { [key: string]: any }) {
28
+ super(map);
29
+ }
30
+ }
31
+
@@ -0,0 +1,24 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DeletePipelineRequest extends $dara.Model {
6
+ static names(): { [key: string]: string } {
7
+ return {
8
+ };
9
+ }
10
+
11
+ static types(): { [key: string]: any } {
12
+ return {
13
+ };
14
+ }
15
+
16
+ validate() {
17
+ super.validate();
18
+ }
19
+
20
+ constructor(map?: { [key: string]: any }) {
21
+ super(map);
22
+ }
23
+ }
24
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { DeletePipelineResponseBody } from "./DeletePipelineResponseBody";
4
+
5
+
6
+ export class DeletePipelineResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: DeletePipelineResponseBody;
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: DeletePipelineResponseBody,
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,31 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DeletePipelineResponseBody extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * CD8BA7D6-995D-578D-9941-78B0FECD14B5
9
+ */
10
+ requestId?: string;
11
+ static names(): { [key: string]: string } {
12
+ return {
13
+ requestId: 'requestId',
14
+ };
15
+ }
16
+
17
+ static types(): { [key: string]: any } {
18
+ return {
19
+ requestId: 'string',
20
+ };
21
+ }
22
+
23
+ validate() {
24
+ super.validate();
25
+ }
26
+
27
+ constructor(map?: { [key: string]: any }) {
28
+ super(map);
29
+ }
30
+ }
31
+
@@ -0,0 +1,24 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetPipelineRequest extends $dara.Model {
6
+ static names(): { [key: string]: string } {
7
+ return {
8
+ };
9
+ }
10
+
11
+ static types(): { [key: string]: any } {
12
+ return {
13
+ };
14
+ }
15
+
16
+ validate() {
17
+ super.validate();
18
+ }
19
+
20
+ constructor(map?: { [key: string]: any }) {
21
+ super(map);
22
+ }
23
+ }
24
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { GetPipelineResponseBody } from "./GetPipelineResponseBody";
4
+
5
+
6
+ export class GetPipelineResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: GetPipelineResponseBody;
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: GetPipelineResponseBody,
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
+