@alicloud/adb20211201 5.3.0 → 5.5.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 +159 -0
  2. package/dist/client.js +360 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CancelSqlPatternCompareReportRequest.d.ts +43 -0
  5. package/dist/models/CancelSqlPatternCompareReportRequest.js +62 -0
  6. package/dist/models/CancelSqlPatternCompareReportRequest.js.map +1 -0
  7. package/dist/models/CancelSqlPatternCompareReportResponse.d.ts +19 -0
  8. package/dist/models/CancelSqlPatternCompareReportResponse.js +69 -0
  9. package/dist/models/CancelSqlPatternCompareReportResponse.js.map +1 -0
  10. package/dist/models/CancelSqlPatternCompareReportResponseBody.d.ts +45 -0
  11. package/dist/models/CancelSqlPatternCompareReportResponseBody.js +64 -0
  12. package/dist/models/CancelSqlPatternCompareReportResponseBody.js.map +1 -0
  13. package/dist/models/CreateSqlPatternCompareReportRequest.d.ts +86 -0
  14. package/dist/models/CreateSqlPatternCompareReportRequest.js +70 -0
  15. package/dist/models/CreateSqlPatternCompareReportRequest.js.map +1 -0
  16. package/dist/models/CreateSqlPatternCompareReportResponse.d.ts +19 -0
  17. package/dist/models/CreateSqlPatternCompareReportResponse.js +69 -0
  18. package/dist/models/CreateSqlPatternCompareReportResponse.js.map +1 -0
  19. package/dist/models/CreateSqlPatternCompareReportResponseBody.d.ts +29 -0
  20. package/dist/models/CreateSqlPatternCompareReportResponseBody.js +60 -0
  21. package/dist/models/CreateSqlPatternCompareReportResponseBody.js.map +1 -0
  22. package/dist/models/DescribeSqlPatternCompareReportRequest.d.ts +131 -0
  23. package/dist/models/DescribeSqlPatternCompareReportRequest.js +74 -0
  24. package/dist/models/DescribeSqlPatternCompareReportRequest.js.map +1 -0
  25. package/dist/models/DescribeSqlPatternCompareReportResponse.d.ts +19 -0
  26. package/dist/models/DescribeSqlPatternCompareReportResponse.js +69 -0
  27. package/dist/models/DescribeSqlPatternCompareReportResponse.js.map +1 -0
  28. package/dist/models/DescribeSqlPatternCompareReportResponseBody.d.ts +220 -0
  29. package/dist/models/DescribeSqlPatternCompareReportResponseBody.js +124 -0
  30. package/dist/models/DescribeSqlPatternCompareReportResponseBody.js.map +1 -0
  31. package/dist/models/DescribeSqlPatternCompareReportsRequest.d.ts +101 -0
  32. package/dist/models/DescribeSqlPatternCompareReportsRequest.js +70 -0
  33. package/dist/models/DescribeSqlPatternCompareReportsRequest.js.map +1 -0
  34. package/dist/models/DescribeSqlPatternCompareReportsResponse.d.ts +19 -0
  35. package/dist/models/DescribeSqlPatternCompareReportsResponse.js +69 -0
  36. package/dist/models/DescribeSqlPatternCompareReportsResponse.js.map +1 -0
  37. package/dist/models/DescribeSqlPatternCompareReportsResponseBody.d.ts +186 -0
  38. package/dist/models/DescribeSqlPatternCompareReportsResponseBody.js +114 -0
  39. package/dist/models/DescribeSqlPatternCompareReportsResponseBody.js.map +1 -0
  40. package/dist/models/ItemsMetricValuesValue.d.ts +333 -0
  41. package/dist/models/ItemsMetricValuesValue.js +204 -0
  42. package/dist/models/ItemsMetricValuesValue.js.map +1 -0
  43. package/dist/models/ListKnowledgeFilesRequest.d.ts +70 -0
  44. package/dist/models/ListKnowledgeFilesRequest.js +68 -0
  45. package/dist/models/ListKnowledgeFilesRequest.js.map +1 -0
  46. package/dist/models/ListKnowledgeFilesResponse.d.ts +19 -0
  47. package/dist/models/ListKnowledgeFilesResponse.js +69 -0
  48. package/dist/models/ListKnowledgeFilesResponse.js.map +1 -0
  49. package/dist/models/ListKnowledgeFilesResponseBody.d.ts +189 -0
  50. package/dist/models/ListKnowledgeFilesResponseBody.js +134 -0
  51. package/dist/models/ListKnowledgeFilesResponseBody.js.map +1 -0
  52. package/dist/models/model.d.ts +24 -0
  53. package/dist/models/model.js +72 -23
  54. package/dist/models/model.js.map +1 -1
  55. package/package.json +1 -1
  56. package/src/client.ts +402 -0
  57. package/src/models/CancelSqlPatternCompareReportRequest.ts +60 -0
  58. package/src/models/CancelSqlPatternCompareReportResponse.ts +40 -0
  59. package/src/models/CancelSqlPatternCompareReportResponseBody.ts +64 -0
  60. package/src/models/CreateSqlPatternCompareReportRequest.ts +111 -0
  61. package/src/models/CreateSqlPatternCompareReportResponse.ts +40 -0
  62. package/src/models/CreateSqlPatternCompareReportResponseBody.ts +44 -0
  63. package/src/models/DescribeSqlPatternCompareReportRequest.ts +160 -0
  64. package/src/models/DescribeSqlPatternCompareReportResponse.ts +40 -0
  65. package/src/models/DescribeSqlPatternCompareReportResponseBody.ts +287 -0
  66. package/src/models/DescribeSqlPatternCompareReportsRequest.ts +126 -0
  67. package/src/models/DescribeSqlPatternCompareReportsResponse.ts +40 -0
  68. package/src/models/DescribeSqlPatternCompareReportsResponseBody.ts +246 -0
  69. package/src/models/ItemsMetricValuesValue.ts +456 -0
  70. package/src/models/ListKnowledgeFilesRequest.ts +93 -0
  71. package/src/models/ListKnowledgeFilesResponse.ts +40 -0
  72. package/src/models/ListKnowledgeFilesResponseBody.ts +260 -0
  73. package/src/models/model.ts +24 -0
@@ -0,0 +1,456 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ItemsMetricValuesValueTime2 extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The sum of metric values across active query minute buckets for Time 2. The unit depends on MetricCode: count for QUERY_COUNT, seconds for CPU_COST, and GB (1 GB = 1024³ bytes) for SHUFFLE_SIZE, PEAK_MEMORY, and SCAN_SIZE.
9
+ *
10
+ * @example
11
+ * 180
12
+ */
13
+ sumValue?: number;
14
+ /**
15
+ * @remarks
16
+ * The display string of the total sum for Time 2, with the unit included.
17
+ *
18
+ * @example
19
+ * 180s
20
+ */
21
+ sumDisplayValue?: string;
22
+ /**
23
+ * @remarks
24
+ * The average value across active query minute buckets for Time 2, calculated as the total sum divided by the number of minute buckets that contain queries for this Pattern. The unit depends on MetricCode: count for QUERY_COUNT, seconds for CPU_COST, and GB (1 GB = 1024³ bytes) for SHUFFLE_SIZE, PEAK_MEMORY, and SCAN_SIZE.
25
+ *
26
+ * @example
27
+ * 3
28
+ */
29
+ avgValue?: number;
30
+ /**
31
+ * @remarks
32
+ * The display string of the average value across active query minute buckets for Time 2, with the unit included.
33
+ *
34
+ * @example
35
+ * 3s
36
+ */
37
+ avgDisplayValue?: string;
38
+ /**
39
+ * @remarks
40
+ * The maximum metric value in a single minute bucket for Time 2. The unit depends on MetricCode: count for QUERY_COUNT, seconds for CPU_COST, and GB (1 GB = 1024³ bytes) for SHUFFLE_SIZE, PEAK_MEMORY, and SCAN_SIZE.
41
+ *
42
+ * @example
43
+ * 9
44
+ */
45
+ maxValue?: number;
46
+ /**
47
+ * @remarks
48
+ * The display string of the peak value in a single minute bucket for Time 2, with the unit included.
49
+ *
50
+ * @example
51
+ * 9s
52
+ */
53
+ maxDisplayValue?: string;
54
+ /**
55
+ * @remarks
56
+ * The percentage of this Pattern\\"s Time 2 total sum relative to the total sum of all results before dimension filtering in the current report. A value of 10 indicates 10%.
57
+ *
58
+ * @example
59
+ * 10
60
+ */
61
+ sumRatioPercent?: number;
62
+ /**
63
+ * @remarks
64
+ * The percentage of this Pattern\\"s Time 2 average value relative to the sum of average values across all Patterns before dimension filtering in the current report. A value of 10 indicates 10%.
65
+ *
66
+ * @example
67
+ * 10
68
+ */
69
+ avgRatioPercent?: number;
70
+ static names(): { [key: string]: string } {
71
+ return {
72
+ sumValue: 'SumValue',
73
+ sumDisplayValue: 'SumDisplayValue',
74
+ avgValue: 'AvgValue',
75
+ avgDisplayValue: 'AvgDisplayValue',
76
+ maxValue: 'MaxValue',
77
+ maxDisplayValue: 'MaxDisplayValue',
78
+ sumRatioPercent: 'SumRatioPercent',
79
+ avgRatioPercent: 'AvgRatioPercent',
80
+ };
81
+ }
82
+
83
+ static types(): { [key: string]: any } {
84
+ return {
85
+ sumValue: 'number',
86
+ sumDisplayValue: 'string',
87
+ avgValue: 'number',
88
+ avgDisplayValue: 'string',
89
+ maxValue: 'number',
90
+ maxDisplayValue: 'string',
91
+ sumRatioPercent: 'number',
92
+ avgRatioPercent: 'number',
93
+ };
94
+ }
95
+
96
+ validate() {
97
+ super.validate();
98
+ }
99
+
100
+ constructor(map?: { [key: string]: any }) {
101
+ super(map);
102
+ }
103
+ }
104
+
105
+ export class ItemsMetricValuesValueAvg extends $dara.Model {
106
+ /**
107
+ * @remarks
108
+ * The change rate of the average value across active query minute buckets, calculated as (Time 2 value − Time 1 value) / Time 1 value × 100. A value of 200 indicates a 200% increase. When the Time 1 value is 0, a finite change rate cannot be calculated. This field may not be returned and must not be treated as 0%.
109
+ *
110
+ * @example
111
+ * 200
112
+ */
113
+ changeRatePercent?: number;
114
+ /**
115
+ * @remarks
116
+ * The average value across active query minute buckets for Time 1. The unit depends on MetricCode: count for QUERY_COUNT, seconds for CPU_COST, and GB (1 GB = 1024³ bytes) for SHUFFLE_SIZE, PEAK_MEMORY, and SCAN_SIZE.
117
+ *
118
+ * @example
119
+ * 1
120
+ */
121
+ time1Value?: number;
122
+ /**
123
+ * @remarks
124
+ * The display string of the average value across active query minute buckets for Time 1, with the unit included.
125
+ *
126
+ * @example
127
+ * 1s
128
+ */
129
+ time1DisplayValue?: string;
130
+ /**
131
+ * @remarks
132
+ * The percentage of this Pattern\\"s Time 1 average value across active query minute buckets relative to the sum of the corresponding statistics for all results before dimension filtering in the current report. A value of 10 indicates 10%.
133
+ *
134
+ * @example
135
+ * 10
136
+ */
137
+ time1RatioPercent?: number;
138
+ /**
139
+ * @remarks
140
+ * The average value across active query minute buckets for Time 2. The unit depends on MetricCode: count for QUERY_COUNT, seconds for CPU_COST, and GB (1 GB = 1024³ bytes) for SHUFFLE_SIZE, PEAK_MEMORY, and SCAN_SIZE.
141
+ *
142
+ * @example
143
+ * 3
144
+ */
145
+ time2Value?: number;
146
+ /**
147
+ * @remarks
148
+ * The display string of the average value across active query minute buckets for Time 2, with the unit included.
149
+ *
150
+ * @example
151
+ * 3s
152
+ */
153
+ time2DisplayValue?: string;
154
+ /**
155
+ * @remarks
156
+ * The percentage of this Pattern\\"s Time 2 average value across active query minute buckets relative to the sum of the corresponding statistics for all results before dimension filtering in the current report. A value of 10 indicates 10%.
157
+ *
158
+ * @example
159
+ * 10
160
+ */
161
+ time2RatioPercent?: number;
162
+ static names(): { [key: string]: string } {
163
+ return {
164
+ changeRatePercent: 'ChangeRatePercent',
165
+ time1Value: 'Time1Value',
166
+ time1DisplayValue: 'Time1DisplayValue',
167
+ time1RatioPercent: 'Time1RatioPercent',
168
+ time2Value: 'Time2Value',
169
+ time2DisplayValue: 'Time2DisplayValue',
170
+ time2RatioPercent: 'Time2RatioPercent',
171
+ };
172
+ }
173
+
174
+ static types(): { [key: string]: any } {
175
+ return {
176
+ changeRatePercent: 'number',
177
+ time1Value: 'number',
178
+ time1DisplayValue: 'string',
179
+ time1RatioPercent: 'number',
180
+ time2Value: 'number',
181
+ time2DisplayValue: 'string',
182
+ time2RatioPercent: 'number',
183
+ };
184
+ }
185
+
186
+ validate() {
187
+ super.validate();
188
+ }
189
+
190
+ constructor(map?: { [key: string]: any }) {
191
+ super(map);
192
+ }
193
+ }
194
+
195
+ export class ItemsMetricValuesValueSum extends $dara.Model {
196
+ /**
197
+ * @remarks
198
+ * The change rate of the sum of metric values across active query minute buckets, calculated as (Time 2 value − Time 1 value) / Time 1 value × 100. A value of 200 indicates a 200% increase. When the Time 1 value is 0, a finite change rate cannot be calculated. This field may not be returned and must not be treated as 0%.
199
+ *
200
+ * @example
201
+ * 200
202
+ */
203
+ changeRatePercent?: number;
204
+ /**
205
+ * @remarks
206
+ * The sum of metric values across active query minute buckets for Time 1. The unit depends on MetricCode: count for QUERY_COUNT, seconds for CPU_COST, and GB (1 GB = 1024³ bytes) for SHUFFLE_SIZE, PEAK_MEMORY, and SCAN_SIZE.
207
+ *
208
+ * @example
209
+ * 60
210
+ */
211
+ time1Value?: number;
212
+ /**
213
+ * @remarks
214
+ * The display string of the sum of metric values across active query minute buckets for Time 1, with the unit included.
215
+ *
216
+ * @example
217
+ * 60s
218
+ */
219
+ time1DisplayValue?: string;
220
+ /**
221
+ * @remarks
222
+ * The percentage of this Pattern\\"s Time 1 sum of metric values across active query minute buckets relative to the sum of the corresponding statistics for all results before dimension filtering in the current report. A value of 10 indicates 10%.
223
+ *
224
+ * @example
225
+ * 10
226
+ */
227
+ time1RatioPercent?: number;
228
+ /**
229
+ * @remarks
230
+ * The sum of metric values across active query minute buckets for Time 2. The unit depends on MetricCode: count for QUERY_COUNT, seconds for CPU_COST, and GB (1 GB = 1024³ bytes) for SHUFFLE_SIZE, PEAK_MEMORY, and SCAN_SIZE.
231
+ *
232
+ * @example
233
+ * 180
234
+ */
235
+ time2Value?: number;
236
+ /**
237
+ * @remarks
238
+ * The display string of the sum of metric values across active query minute buckets for Time 2, with the unit included.
239
+ *
240
+ * @example
241
+ * 180s
242
+ */
243
+ time2DisplayValue?: string;
244
+ /**
245
+ * @remarks
246
+ * The percentage of this Pattern\\"s Time 2 sum of metric values across active query minute buckets relative to the sum of the corresponding statistics for all results before dimension filtering in the current report. A value of 10 indicates 10%.
247
+ *
248
+ * @example
249
+ * 10
250
+ */
251
+ time2RatioPercent?: number;
252
+ static names(): { [key: string]: string } {
253
+ return {
254
+ changeRatePercent: 'ChangeRatePercent',
255
+ time1Value: 'Time1Value',
256
+ time1DisplayValue: 'Time1DisplayValue',
257
+ time1RatioPercent: 'Time1RatioPercent',
258
+ time2Value: 'Time2Value',
259
+ time2DisplayValue: 'Time2DisplayValue',
260
+ time2RatioPercent: 'Time2RatioPercent',
261
+ };
262
+ }
263
+
264
+ static types(): { [key: string]: any } {
265
+ return {
266
+ changeRatePercent: 'number',
267
+ time1Value: 'number',
268
+ time1DisplayValue: 'string',
269
+ time1RatioPercent: 'number',
270
+ time2Value: 'number',
271
+ time2DisplayValue: 'string',
272
+ time2RatioPercent: 'number',
273
+ };
274
+ }
275
+
276
+ validate() {
277
+ super.validate();
278
+ }
279
+
280
+ constructor(map?: { [key: string]: any }) {
281
+ super(map);
282
+ }
283
+ }
284
+
285
+ export class ItemsMetricValuesValueMax extends $dara.Model {
286
+ /**
287
+ * @remarks
288
+ * The change rate of the peak value in a single minute bucket, calculated as (Time 2 value − Time 1 value) / Time 1 value × 100. A value of 200 indicates a 200% increase. When the Time 1 value is 0, a finite change rate cannot be calculated. This field may not be returned and must not be treated as 0%.
289
+ *
290
+ * @example
291
+ * 200
292
+ */
293
+ changeRatePercent?: number;
294
+ /**
295
+ * @remarks
296
+ * The peak value in a single minute bucket for Time 1. The unit depends on MetricCode: count for QUERY_COUNT, seconds for CPU_COST, and GB (1 GB = 1024³ bytes) for SHUFFLE_SIZE, PEAK_MEMORY, and SCAN_SIZE.
297
+ *
298
+ * @example
299
+ * 3
300
+ */
301
+ time1Value?: number;
302
+ /**
303
+ * @remarks
304
+ * The display string of the peak value in a single minute bucket for Time 1, with the unit included.
305
+ *
306
+ * @example
307
+ * 3s
308
+ */
309
+ time1DisplayValue?: string;
310
+ /**
311
+ * @remarks
312
+ * The peak value in a single minute bucket for Time 2. The unit depends on MetricCode: count for QUERY_COUNT, seconds for CPU_COST, and GB (1 GB = 1024³ bytes) for SHUFFLE_SIZE, PEAK_MEMORY, and SCAN_SIZE.
313
+ *
314
+ * @example
315
+ * 9
316
+ */
317
+ time2Value?: number;
318
+ /**
319
+ * @remarks
320
+ * The display string of the peak value in a single minute bucket for Time 2, with the unit included.
321
+ *
322
+ * @example
323
+ * 9s
324
+ */
325
+ time2DisplayValue?: string;
326
+ static names(): { [key: string]: string } {
327
+ return {
328
+ changeRatePercent: 'ChangeRatePercent',
329
+ time1Value: 'Time1Value',
330
+ time1DisplayValue: 'Time1DisplayValue',
331
+ time2Value: 'Time2Value',
332
+ time2DisplayValue: 'Time2DisplayValue',
333
+ };
334
+ }
335
+
336
+ static types(): { [key: string]: any } {
337
+ return {
338
+ changeRatePercent: 'number',
339
+ time1Value: 'number',
340
+ time1DisplayValue: 'string',
341
+ time2Value: 'number',
342
+ time2DisplayValue: 'string',
343
+ };
344
+ }
345
+
346
+ validate() {
347
+ super.validate();
348
+ }
349
+
350
+ constructor(map?: { [key: string]: any }) {
351
+ super(map);
352
+ }
353
+ }
354
+
355
+ export class ItemsMetricValuesValue extends $dara.Model {
356
+ /**
357
+ * @remarks
358
+ * The primary metric code, which matches the key in `MetricValues` and the `MetricType` request parameter. Valid values:
359
+ *
360
+ * - `QUERY_COUNT`: the number of query executions.
361
+ * - `CPU_COST`: the CPU consumption.
362
+ * - `SHUFFLE_SIZE`: the shuffle data volume.
363
+ * - `PEAK_MEMORY`: the peak memory consumption.
364
+ * - `SCAN_SIZE`: the scan data volume.
365
+ *
366
+ * @example
367
+ * CPU_COST
368
+ */
369
+ metricCode?: string;
370
+ /**
371
+ * @remarks
372
+ * The primary metric name. The mapping is as follows:
373
+ *
374
+ * - `QUERY_COUNT`: `QueryCount`.
375
+ * - `CPU_COST`: `OperatorCost`.
376
+ * - `SHUFFLE_SIZE`: `ShuffleSize`.
377
+ * - `PEAK_MEMORY`: `PeakMemory`.
378
+ * - `SCAN_SIZE`: `ScanSize`.
379
+ *
380
+ * @example
381
+ * OperatorCost
382
+ */
383
+ metricName?: string;
384
+ /**
385
+ * @remarks
386
+ * Indicates whether this is the primary metric for the current analysis dimension. The current value is true.
387
+ *
388
+ * @example
389
+ * true
390
+ */
391
+ primary?: boolean;
392
+ /**
393
+ * @remarks
394
+ * The aggregated result for Time 2 in the NEW report. This field is returned only for NEW reports.
395
+ */
396
+ time2?: ItemsMetricValuesValueTime2;
397
+ /**
398
+ * @remarks
399
+ * The dual-window comparison of the average value across active query minute buckets for the CHANGED report. This field is returned only for CHANGED reports.
400
+ */
401
+ avg?: ItemsMetricValuesValueAvg;
402
+ /**
403
+ * @remarks
404
+ * The dual-window comparison of the sum of metric values across active query minute buckets for the CHANGED report. This field is returned only for CHANGED reports.
405
+ */
406
+ sum?: ItemsMetricValuesValueSum;
407
+ /**
408
+ * @remarks
409
+ * The dual-window comparison of the peak value in a single minute bucket for the CHANGED report. This field is returned only for CHANGED reports.
410
+ */
411
+ max?: ItemsMetricValuesValueMax;
412
+ static names(): { [key: string]: string } {
413
+ return {
414
+ metricCode: 'MetricCode',
415
+ metricName: 'MetricName',
416
+ primary: 'Primary',
417
+ time2: 'Time2',
418
+ avg: 'Avg',
419
+ sum: 'Sum',
420
+ max: 'Max',
421
+ };
422
+ }
423
+
424
+ static types(): { [key: string]: any } {
425
+ return {
426
+ metricCode: 'string',
427
+ metricName: 'string',
428
+ primary: 'boolean',
429
+ time2: ItemsMetricValuesValueTime2,
430
+ avg: ItemsMetricValuesValueAvg,
431
+ sum: ItemsMetricValuesValueSum,
432
+ max: ItemsMetricValuesValueMax,
433
+ };
434
+ }
435
+
436
+ validate() {
437
+ if(this.time2 && typeof (this.time2 as any).validate === 'function') {
438
+ (this.time2 as any).validate();
439
+ }
440
+ if(this.avg && typeof (this.avg as any).validate === 'function') {
441
+ (this.avg as any).validate();
442
+ }
443
+ if(this.sum && typeof (this.sum as any).validate === 'function') {
444
+ (this.sum as any).validate();
445
+ }
446
+ if(this.max && typeof (this.max as any).validate === 'function') {
447
+ (this.max as any).validate();
448
+ }
449
+ super.validate();
450
+ }
451
+
452
+ constructor(map?: { [key: string]: any }) {
453
+ super(map);
454
+ }
455
+ }
456
+
@@ -0,0 +1,93 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListKnowledgeFilesRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The ID of the AnalyticDB for MySQL instance.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * am-bp19aaaaaa****
14
+ */
15
+ DBClusterId?: string;
16
+ /**
17
+ * @remarks
18
+ * The JSON string of the file ID array. A maximum of 200 positive integers are supported.
19
+ *
20
+ * @example
21
+ * [1001,1002,1003]
22
+ */
23
+ fileIds?: string;
24
+ /**
25
+ * @remarks
26
+ * The page number, starting from 1. If this parameter is not specified, Ray uses a default value of 1.
27
+ *
28
+ * @example
29
+ * 1
30
+ */
31
+ page?: string;
32
+ /**
33
+ * @remarks
34
+ * The number of entries per page. Valid values: 1 to 100. If this parameter is not specified, Ray uses a default value of 20.
35
+ *
36
+ * @example
37
+ * 20
38
+ */
39
+ pageSize?: string;
40
+ /**
41
+ * @remarks
42
+ * The processing status. Valid values:
43
+ *
44
+ * - PENDING
45
+ * - PROCESSING
46
+ * - COMPLETED
47
+ * - FAILED
48
+ * - DUPLICATED
49
+ * - SKIPPED
50
+ *
51
+ * @example
52
+ * FAILED
53
+ */
54
+ status?: string;
55
+ /**
56
+ * @remarks
57
+ * The stable ID of the authorized user. If this parameter is not specified, all files in the knowledge base can be queried.
58
+ *
59
+ * @example
60
+ * u123
61
+ */
62
+ user?: string;
63
+ static names(): { [key: string]: string } {
64
+ return {
65
+ DBClusterId: 'DBClusterId',
66
+ fileIds: 'FileIds',
67
+ page: 'Page',
68
+ pageSize: 'PageSize',
69
+ status: 'Status',
70
+ user: 'User',
71
+ };
72
+ }
73
+
74
+ static types(): { [key: string]: any } {
75
+ return {
76
+ DBClusterId: 'string',
77
+ fileIds: 'string',
78
+ page: 'string',
79
+ pageSize: 'string',
80
+ status: 'string',
81
+ user: 'string',
82
+ };
83
+ }
84
+
85
+ validate() {
86
+ super.validate();
87
+ }
88
+
89
+ constructor(map?: { [key: string]: any }) {
90
+ super(map);
91
+ }
92
+ }
93
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ListKnowledgeFilesResponseBody } from "./ListKnowledgeFilesResponseBody";
4
+
5
+
6
+ export class ListKnowledgeFilesResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ListKnowledgeFilesResponseBody;
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: ListKnowledgeFilesResponseBody,
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
+