ksyun-sdk-node 1.2.4 → 1.4.8

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 (126) hide show
  1. package/.claude/settings.local.json +12 -0
  2. package/dist/base/BaseClient.js +50 -4
  3. package/dist/service/Actiontrail/v20190401/index.js +31 -31
  4. package/dist/service/Aicp/v20240612/index.js +511 -0
  5. package/dist/service/Bill/v20180601/index.js +45 -45
  6. package/dist/service/Bill/v20220601/index.js +35 -35
  7. package/dist/service/Bill_union/v20200101/index.js +139 -103
  8. package/dist/service/Bill_union/v20221222/index.js +93 -93
  9. package/dist/service/Bill_union/v20250801/index.js +66 -0
  10. package/dist/service/Bws/v20160304/index.js +103 -103
  11. package/dist/service/Cdn/v20160901/index.js +66 -19
  12. package/dist/service/Cdn/v20200630/index.js +306 -306
  13. package/dist/service/Cdn/v20200901/index.js +108 -108
  14. package/dist/service/Cdn/v20211201/index.js +45 -0
  15. package/dist/service/Cdn/v20250503/index.js +71 -0
  16. package/dist/service/Cen/v20160304/index.js +321 -321
  17. package/dist/service/Clickhouse/v20210101/index.js +387 -387
  18. package/dist/service/Ebs/v20160304/index.js +262 -262
  19. package/dist/service/Eip/v20160304/index.js +101 -101
  20. package/dist/service/Epc/v20151101/index.js +1741 -766
  21. package/dist/service/Iam/v20151101/index.js +863 -756
  22. package/dist/service/Iam/v20240513/index.js +47 -0
  23. package/dist/service/Iam/v20240703/index.js +44 -0
  24. package/dist/service/Kad/v20161122/index.js +81 -81
  25. package/dist/service/Kce/v20180314/index.js +216 -216
  26. package/dist/service/Kce/v20190806/index.js +343 -343
  27. package/dist/service/Kce/v20201231/index.js +39 -39
  28. package/dist/service/Kcf/v20211215/index.js +141 -141
  29. package/dist/service/Kcm/v20160304/index.js +81 -81
  30. package/dist/service/Kcrs/v20211109/index.js +611 -611
  31. package/dist/service/Kcs/v20160701/index.js +800 -800
  32. package/dist/service/Kcs/v20170401/index.js +47 -47
  33. package/dist/service/Kead/v20200101/index.js +25 -25
  34. package/dist/service/Kec/v20160304/index.js +1697 -1533
  35. package/dist/service/Kes/v20201215/index.js +171 -0
  36. package/dist/service/Ket/v20170101/index.js +92 -92
  37. package/dist/service/Kkms/v20160304/index.js +108 -108
  38. package/dist/service/Klog/v20200731/index.js +232 -705
  39. package/dist/service/Kls/v20170101/index.js +135 -135
  40. package/dist/service/Kmr/v20210902/index.js +422 -0
  41. package/dist/service/Kmr/v20231231/index.js +154 -0
  42. package/dist/service/Kmr/v20240814/index.js +370 -0
  43. package/dist/service/Krds/v20160701/index.js +991 -991
  44. package/dist/service/Krds/v20200825/index.js +115 -115
  45. package/dist/service/Memcached/v20180627/index.js +172 -172
  46. package/dist/service/Mongodb/v20170101/index.js +514 -514
  47. package/dist/service/Monitor/v20100525/index.js +41 -41
  48. package/dist/service/Monitor/v20181114/index.js +25 -25
  49. package/dist/service/Monitor/v20210101/index.js +153 -116
  50. package/dist/service/Monitor/v20220101/index.js +30 -40
  51. package/dist/service/Monitor/v20250101/index.js +71 -0
  52. package/dist/service/Rabbitmq/v20191017/index.js +163 -163
  53. package/dist/service/Resourcemanager/v20210320/index.js +110 -110
  54. package/dist/service/Sks/v20151101/index.js +69 -69
  55. package/dist/service/Slb/v20160304/index.js +1208 -1208
  56. package/dist/service/Sts/v20151101/index.js +23 -23
  57. package/dist/service/Tagv2/v20200901/index.js +115 -115
  58. package/dist/service/Tidb/v20210520/index.js +254 -254
  59. package/dist/service/Trade/v20200114/index.js +20 -20
  60. package/dist/service/Trade/v20200831/index.js +22 -22
  61. package/dist/service/Vpc/v20160304/index.js +1947 -1209
  62. package/dist/service/Waf/v20200707/index.js +174 -174
  63. package/example/iam.js +2 -1
  64. package/example/res.js +2 -1
  65. package/package.json +1 -1
  66. package/src/base/BaseClient.js +51 -4
  67. package/src/service/Actiontrail/v20190401/index.js +42 -42
  68. package/src/service/Aicp/v20240612/index.js +503 -0
  69. package/src/service/Bill/v20180601/index.js +63 -64
  70. package/src/service/Bill/v20220601/index.js +50 -50
  71. package/src/service/Bill_union/v20200101/index.js +181 -146
  72. package/src/service/Bill_union/v20221222/index.js +124 -124
  73. package/src/service/Bill_union/v20250801/index.js +58 -0
  74. package/src/service/Bws/v20160304/index.js +138 -138
  75. package/src/service/Cdn/v20160901/index.js +78 -32
  76. package/src/service/Cdn/v20200630/index.js +399 -399
  77. package/src/service/Cdn/v20200901/index.js +143 -143
  78. package/src/service/Cdn/v20211201/index.js +37 -0
  79. package/src/service/Cdn/v20250503/index.js +63 -0
  80. package/src/service/Cen/v20160304/index.js +449 -449
  81. package/src/service/Clickhouse/v20210101/index.js +535 -535
  82. package/src/service/Ebs/v20160304/index.js +365 -365
  83. package/src/service/Eip/v20160304/index.js +135 -136
  84. package/src/service/Epc/v20151101/index.js +1984 -1009
  85. package/src/service/Iam/v20151101/index.js +1155 -1050
  86. package/src/service/Iam/v20240513/index.js +39 -0
  87. package/src/service/Iam/v20240703/index.js +36 -0
  88. package/src/service/Kad/v20161122/index.js +112 -112
  89. package/src/service/Kce/v20180314/index.js +309 -309
  90. package/src/service/Kce/v20190806/index.js +471 -471
  91. package/src/service/Kce/v20201231/index.js +50 -50
  92. package/src/service/Kcf/v20211215/index.js +192 -194
  93. package/src/service/Kcm/v20160304/index.js +104 -104
  94. package/src/service/Kcrs/v20211109/index.js +840 -854
  95. package/src/service/Kcs/v20160701/index.js +1095 -1098
  96. package/src/service/Kcs/v20170401/index.js +66 -66
  97. package/src/service/Kead/v20200101/index.js +36 -36
  98. package/src/service/Kec/v20160304/index.js +2061 -1902
  99. package/src/service/Kes/v20201215/index.js +163 -0
  100. package/src/service/Ket/v20170101/index.js +123 -123
  101. package/src/service/Kkms/v20160304/index.js +156 -156
  102. package/src/service/Klog/v20200731/index.js +320 -807
  103. package/src/service/Kls/v20170101/index.js +183 -183
  104. package/src/service/Kmr/v20210902/index.js +414 -0
  105. package/src/service/Kmr/v20231231/index.js +146 -0
  106. package/src/service/Kmr/v20240814/index.js +362 -0
  107. package/src/service/Krds/v20160701/index.js +1291 -1293
  108. package/src/service/Krds/v20200825/index.js +163 -163
  109. package/src/service/Memcached/v20180627/index.js +238 -245
  110. package/src/service/Mongodb/v20170101/index.js +672 -672
  111. package/src/service/Monitor/v20100525/index.js +56 -56
  112. package/src/service/Monitor/v20181114/index.js +36 -36
  113. package/src/service/Monitor/v20210101/index.js +205 -169
  114. package/src/service/Monitor/v20220101/index.js +44 -54
  115. package/src/service/Monitor/v20250101/index.js +63 -0
  116. package/src/service/Rabbitmq/v20191017/index.js +231 -231
  117. package/src/service/Resourcemanager/v20210320/index.js +157 -158
  118. package/src/service/Sks/v20151101/index.js +95 -96
  119. package/src/service/Slb/v20160304/index.js +1471 -1471
  120. package/src/service/Sts/v20151101/index.js +34 -34
  121. package/src/service/Tagv2/v20200901/index.js +163 -163
  122. package/src/service/Tidb/v20210520/index.js +352 -352
  123. package/src/service/Trade/v20200114/index.js +31 -31
  124. package/src/service/Trade/v20200831/index.js +33 -33
  125. package/src/service/Vpc/v20160304/index.js +2404 -1667
  126. package/src/service/Waf/v20200707/index.js +237 -237
@@ -1,810 +1,323 @@
1
1
  const BaseClient = require("../../../base/BaseClient.js");
2
2
 
3
3
  module.exports = class Client extends BaseClient {
4
- _baseConfig = {
5
- 'protocol': 'http://',
6
- 'endpoint': 'klog.api.ksyun.com',
7
- 'config': {
8
- 'timeout': 60, //设置timeout
9
- 'headers': {
10
- 'Accept': 'application/json'
11
- },
12
- 'credentials': {
13
- 'region': 'cn-shanghai-3',
14
- 'service': 'klog',
15
- },
16
- },
17
- }
18
- _apiList = {
19
- 'CreateProject': {
20
- 'url': '/',
21
- 'method': 'POST',
22
- 'config': {
23
- 'query': {
24
- 'Version': '2020-07-31',
25
- 'Action': 'CreateProject',
26
- },
27
- 'headers': {
28
- 'Content-Type': 'application/json'
29
- },
30
- },
31
- 'paramsType': {
32
- 'ProjectName': 'String',
33
- 'Description': 'String',
34
- 'Region': 'String',
35
- 'IamProjectId': 'Int',
36
- 'IamProjectName': 'String',
37
- }
38
- },
39
- 'DescribeProject': {
40
- 'url': '/',
41
- 'method': 'POST',
42
- 'config': {
43
- 'query': {
44
- 'Version': '2020-07-31',
45
- 'Action': 'DescribeProject',
46
- },
47
- 'headers': {
48
- 'Content-Type': 'application/json'
49
- },
50
- },
51
- 'paramsType': {
52
- 'ProjectName': 'String',
53
- }
54
- },
55
- 'UpdateProject': {
56
- 'url': '/',
57
- 'method': 'POST',
58
- 'config': {
59
- 'query': {
60
- 'Version': '2020-07-31',
61
- 'Action': 'UpdateProject',
62
- },
63
- 'headers': {
64
- 'Content-Type': 'application/json'
65
- },
66
- },
67
- 'paramsType': {
68
- 'ProjectName': 'String',
69
- 'Description': 'String',
70
- 'IamProjectId': 'Int',
71
- }
72
- },
73
- 'DeleteProject': {
74
- 'url': '/',
75
- 'method': 'POST',
76
- 'config': {
77
- 'query': {
78
- 'Version': '2020-07-31',
79
- 'Action': 'DeleteProject',
80
- },
81
- 'headers': {
82
- 'Content-Type': 'application/json'
83
- },
84
- },
85
- 'paramsType': {
86
- 'ProjectName': 'String',
87
- }
88
- },
89
- 'ListProjects': {
90
- 'url': '/',
91
- 'method': 'POST',
92
- 'config': {
93
- 'query': {
94
- 'Version': '2020-07-31',
95
- 'Action': 'ListProjects',
96
- },
97
- 'headers': {
98
- 'Content-Type': 'application/json'
99
- },
100
- },
101
- 'paramsType': {
102
- 'Page': 'Int',
103
- 'Size': 'Int',
104
- }
105
- },
106
- 'CreateLogPool': {
107
- 'url': '/',
108
- 'method': 'POST',
109
- 'config': {
110
- 'query': {
111
- 'Version': '2020-07-31',
112
- 'Action': 'CreateLogPool',
113
- },
114
- 'headers': {
115
- 'Content-Type': 'application/json'
116
- },
117
- },
118
- 'paramsType': {
119
- 'ProjectName': 'String',
120
- 'LogPoolName': 'String',
121
- 'RetentionDays': 'Int',
122
- 'Partitions': 'Int',
123
- 'Description': 'String',
124
- }
125
- },
126
- 'DescribeLogPool': {
127
- 'url': '/',
128
- 'method': 'POST',
129
- 'config': {
130
- 'query': {
131
- 'Version': '2020-07-31',
132
- 'Action': 'DescribeLogPool',
133
- },
134
- 'headers': {
135
- 'Content-Type': 'application/json'
136
- },
137
- },
138
- 'paramsType': {
139
- 'ProjectName': 'String',
140
- 'LogPoolName': 'String',
141
- }
142
- },
143
- 'UpdateLogPool': {
144
- 'url': '/',
145
- 'method': 'POST',
146
- 'config': {
147
- 'query': {
148
- 'Version': '2020-07-31',
149
- 'Action': 'UpdateLogPool',
150
- },
151
- 'headers': {
152
- 'Content-Type': 'application/json'
153
- },
154
- },
155
- 'paramsType': {
156
- 'ProjectName': 'String',
157
- 'LogPoolName': 'String',
158
- 'RetentionDays': 'Int',
159
- 'Partitions': 'Int',
160
- 'Description': 'String',
161
- }
162
- },
163
- 'DeleteLogPool': {
164
- 'url': '/',
165
- 'method': 'POST',
166
- 'config': {
167
- 'query': {
168
- 'Version': '2020-07-31',
169
- 'Action': 'DeleteLogPool',
170
- },
171
- 'headers': {
172
- 'Content-Type': 'application/json'
173
- },
174
- },
175
- 'paramsType': {
176
- 'ProjectName': 'String',
177
- 'LogPoolName': 'String',
178
- }
179
- },
180
- 'ListLogPools': {
181
- 'url': '/',
182
- 'method': 'POST',
183
- 'config': {
184
- 'query': {
185
- 'Version': '2020-07-31',
186
- 'Action': 'ListLogPools',
187
- },
188
- 'headers': {
189
- 'Content-Type': 'application/json'
190
- },
191
- },
192
- 'paramsType': {
193
- 'ProjectName': 'String',
194
- 'Page': 'Int',
195
- 'Size': 'Int',
196
- 'LogPoolName': 'String',
197
- }
198
- },
199
- 'PutLogs': {
200
- 'url': '/',
201
- 'method': 'POST',
202
- 'config': {
203
- 'query': {
204
- 'Version': '2020-07-31',
205
- 'Action': 'PutLogs',
206
- },
207
- 'headers': {
208
- 'Content-Type': 'application/json'
209
- },
210
- },
211
- 'paramsType': {
212
- 'ProjectName': 'String',
213
- 'LogPoolName': 'String',
214
- 'Time': 'String',
215
- 'Contents': 'String',
216
- 'Key': 'String',
217
- 'Value': 'String',
218
- 'Logs': 'String',
219
- 'Filename': 'String',
220
- 'Source': 'String',
221
- }
222
- },
223
- 'GetLogs': {
224
- 'url': '/',
225
- 'method': 'POST',
226
- 'config': {
227
- 'query': {
228
- 'Version': '2020-07-31',
229
- 'Action': 'GetLogs',
230
- },
231
- 'headers': {
232
- 'Content-Type': 'application/json'
233
- },
234
- },
235
- 'paramsType': {
236
- 'ProjectName': 'String',
237
- 'LogPoolName': 'String',
238
- 'From': 'Int',
239
- 'To': 'Int',
240
- 'Query': 'String',
241
- 'LogPoolId': 'String',
242
- 'HitsOpen': 'Boolean',
243
- 'Interval': 'String',
244
- 'SortBy': 'String',
245
- 'Offset': 'Int',
246
- 'Size': 'Int',
247
- }
248
- },
249
- 'CreateQuickSearch': {
250
- 'url': '/',
251
- 'method': 'POST',
252
- 'config': {
253
- 'query': {
254
- 'Version': '2020-07-31',
255
- 'Action': 'CreateQuickSearch',
256
- },
257
- 'headers': {
258
- 'Content-Type': 'application/json'
259
- },
260
- },
261
- 'paramsType': {
262
- 'ProjectName': 'String',
263
- 'LogPoolName': 'String',
264
- 'QuickSearchName': 'String',
265
- 'Description': 'String',
266
- 'TimeRange': 'String',
267
- 'Query': 'String',
268
- }
269
- },
270
- 'ListQuickSearchs': {
271
- 'url': '/',
272
- 'method': 'POST',
273
- 'config': {
274
- 'query': {
275
- 'Version': '2020-07-31',
276
- 'Action': 'ListQuickSearchs',
277
- },
278
- 'headers': {
279
- 'Content-Type': 'application/json'
280
- },
281
- },
282
- 'paramsType': {
283
- 'ProjectName': 'String',
284
- 'LogPoolName': 'String',
285
- 'Filter': 'String',
286
- 'Page': 'Int',
287
- 'Size': 'Int',
288
- }
289
- },
290
- 'GetQuickSearch': {
291
- 'url': '/',
292
- 'method': 'POST',
293
- 'config': {
294
- 'query': {
295
- 'Version': '2020-07-31',
296
- 'Action': 'GetQuickSearch',
297
- },
298
- 'headers': {
299
- 'Content-Type': 'application/json'
300
- },
301
- },
302
- 'paramsType': {
303
- 'ProjectName': 'String',
304
- 'LogPoolName': 'String',
305
- 'QuickSearchName': 'String',
306
- }
307
- },
308
- 'DeleteQuickSearchs': {
309
- 'url': '/',
310
- 'method': 'POST',
311
- 'config': {
312
- 'query': {
313
- 'Version': '2020-07-31',
314
- 'Action': 'DeleteQuickSearchs',
315
- },
316
- 'headers': {
317
- 'Content-Type': 'application/json'
318
- },
319
- },
320
- 'paramsType': {
321
- 'ProjectName': 'String',
322
- 'LogPoolName': 'String',
323
- 'QuickSearchName': 'String',
324
- }
325
- },
326
- 'CreateDashboard': {
327
- 'url': '/',
328
- 'method': 'POST',
329
- 'config': {
330
- 'query': {
331
- 'Version': '2020-07-31',
332
- 'Action': 'CreateDashboard',
333
- },
334
- 'headers': {
335
- 'Content-Type': 'application/json'
336
- },
337
- },
338
- 'paramsType': {
339
- 'ProjectName': 'String',
340
- 'DashboardName': 'String',
341
- }
342
- },
343
- 'DeleteDashboard': {
344
- 'url': '/',
345
- 'method': 'POST',
346
- 'config': {
347
- 'query': {
348
- 'Version': '2020-07-31',
349
- 'Action': 'DeleteDashboard',
350
- },
351
- 'headers': {
352
- 'Content-Type': 'application/json'
353
- },
354
- },
355
- 'paramsType': {
356
- 'DashboardId': 'String',
357
- }
358
- },
359
- 'DescribeDashboard': {
360
- 'url': '/',
361
- 'method': 'POST',
362
- 'config': {
363
- 'query': {
364
- 'Version': '2020-07-31',
365
- 'Action': 'DescribeDashboard',
366
- },
367
- 'headers': {
368
- 'Content-Type': 'application/json'
369
- },
370
- },
371
- 'paramsType': {
372
- 'DashboardId': 'String',
373
- }
374
- },
375
- 'ListDashboards': {
376
- 'url': '/',
377
- 'method': 'POST',
378
- 'config': {
379
- 'query': {
380
- 'Version': '2020-07-31',
381
- 'Action': 'ListDashboards',
382
- },
383
- 'headers': {
384
- 'Content-Type': 'application/json'
385
- },
386
- },
387
- 'paramsType': {
388
- 'ProjectName': 'String',
389
- 'Page': 'Int',
390
- 'Size': 'Int',
391
- }
392
- },
393
- 'CreateChart': {
394
- 'url': '/',
395
- 'method': 'POST',
396
- 'config': {
397
- 'query': {
398
- 'Version': '2020-07-31',
399
- 'Action': 'CreateChart',
400
- },
401
- 'headers': {
402
- 'Content-Type': 'application/json'
403
- },
404
- },
405
- 'paramsType': {
406
- 'DashboardId': 'String',
407
- 'ChartName': 'String',
408
- 'ChartType': 'String',
409
- 'Search': 'String',
410
- 'Display': 'String',
411
- 'LogPoolName': 'String',
412
- 'TimeRange': 'String',
413
- 'Query': 'String',
414
- }
415
- },
416
- 'DeleteChart': {
417
- 'url': '/',
418
- 'method': 'POST',
419
- 'config': {
420
- 'query': {
421
- 'Version': '2020-07-31',
422
- 'Action': 'DeleteChart',
423
- },
424
- 'headers': {
425
- 'Content-Type': 'application/json'
426
- },
427
- },
428
- 'paramsType': {
429
- 'ChartId': 'String',
430
- }
431
- },
432
- 'GetDashboardNamesByIds': {
433
- 'url': '/',
434
- 'method': 'POST',
435
- 'config': {
436
- 'query': {
437
- 'Version': '2020-07-31',
438
- 'Action': 'GetDashboardNamesByIds',
439
- },
440
- 'headers': {
441
- 'Content-Type': 'application/json'
442
- },
443
- },
444
- 'paramsType': {
445
- 'ProjectName': 'String',
446
- 'DashboardIds': 'String',
447
- }
448
- },
449
- 'GetChartNamesByIds': {
450
- 'url': '/',
451
- 'method': 'POST',
452
- 'config': {
453
- 'query': {
454
- 'Version': '2020-07-31',
455
- 'Action': 'GetChartNamesByIds',
456
- },
457
- 'headers': {
458
- 'Content-Type': 'application/json'
459
- },
460
- },
461
- 'paramsType': {
462
- 'ProjectName': 'String',
463
- 'ChartIds': 'String',
464
- }
465
- },
466
- 'UpdateDashboard': {
467
- 'url': '/',
468
- 'method': 'POST',
469
- 'config': {
470
- 'query': {
471
- 'Version': '2020-07-31',
472
- 'Action': 'UpdateDashboard',
473
- },
474
- 'headers': {
475
- 'Content-Type': 'application/json'
476
- },
477
- },
478
- 'paramsType': {
479
- 'DashboardId': 'String',
480
- 'DashboardName': 'String',
481
- }
482
- },
483
- 'GetUsage': {
484
- 'url': '/',
485
- 'method': 'POST',
486
- 'config': {
487
- 'query': {
488
- 'Version': '2020-07-31',
489
- 'Action': 'GetUsage',
490
- },
491
- 'headers': {
492
- 'Content-Type': 'application/json'
493
- },
494
- },
495
- 'paramsType': {
496
- 'Projects': 'String',
497
- 'Metrics': 'String',
498
- 'From': 'String',
499
- 'To': 'String',
500
- }
501
- },
502
- 'SetIndexTemplate': {
503
- 'url': '/',
504
- 'method': 'POST',
505
- 'config': {
506
- 'query': {
507
- 'Version': '2020-07-31',
508
- 'Action': 'SetIndexTemplate',
509
- },
510
- 'headers': {
511
- 'Content-Type': 'application/json'
512
- },
513
- },
514
- 'paramsType': {
515
- 'ProjectName': 'String',
516
- 'LogPoolName': 'String',
517
- 'IndexStatus': 'Boolean',
518
- 'FullTextIndex': 'String',
519
- 'IndexFields': 'String',
520
- 'Lowercase': 'Boolean',
521
- 'Separator': 'String',
522
- 'FieldName': 'String',
523
- 'FieldType': 'String',
524
- 'FieldAlias': 'String',
525
- 'SeparatorStatus': 'Boolean',
526
- }
527
- },
528
- 'GetIndexTemplate': {
529
- 'url': '/',
530
- 'method': 'POST',
531
- 'config': {
532
- 'query': {
533
- 'Version': '2020-07-31',
534
- 'Action': 'GetIndexTemplate',
535
- },
536
- 'headers': {
537
- 'Content-Type': 'application/json'
538
- },
539
- },
540
- 'paramsType': {
541
- 'ProjectName': 'String',
542
- 'LogPoolName': 'String',
543
- }
544
- },
545
- 'CreateDownloadTask': {
546
- 'url': '/',
547
- 'method': 'POST',
548
- 'config': {
549
- 'query': {
550
- 'Version': '2020-07-31',
551
- 'Action': 'CreateDownloadTask',
552
- },
553
- 'headers': {
554
- 'Content-Type': 'application/json'
555
- },
556
- },
557
- 'paramsType': {
558
- 'From': 'String',
559
- 'To': 'String',
560
- 'LogPoolName': 'String',
561
- 'ProjectName': 'String',
562
- }
563
- },
564
- 'ListDownloadTasks': {
565
- 'url': '/',
566
- 'method': 'POST',
567
- 'config': {
568
- 'query': {
569
- 'Version': '2020-07-31',
570
- 'Action': 'ListDownloadTasks',
571
- },
572
- 'headers': {
573
- 'Content-Type': 'application/json'
574
- },
575
- },
576
- 'paramsType': {
577
- 'Page': 'String',
578
- 'Size': 'String',
579
- 'ProjectName': 'String',
580
- }
581
- },
582
- 'GetDownloadUrls': {
583
- 'url': '/',
584
- 'method': 'POST',
585
- 'config': {
586
- 'query': {
587
- 'Version': '2020-07-31',
588
- 'Action': 'GetDownloadUrls',
589
- },
590
- 'headers': {
591
- 'Content-Type': 'application/json'
592
- },
593
- },
594
- 'paramsType': {
595
- 'DownloadID': 'String',
596
- 'ProjectName': 'String',
597
- }
598
- },
599
- 'GetMonitorData': {
600
- 'url': '/',
601
- 'method': 'POST',
602
- 'config': {
603
- 'query': {
604
- 'Version': '2020-07-31',
605
- 'Action': 'GetMonitorData',
606
- },
607
- 'headers': {
608
- 'Content-Type': 'application/json'
609
- },
610
- },
611
- 'paramsType': {
612
- }
613
- },
614
- 'DescribeLogErrorReason': {
615
- 'url': '/',
616
- 'method': 'POST',
617
- 'config': {
618
- 'query': {
619
- 'Version': '2020-07-31',
620
- 'Action': 'DescribeLogErrorReason',
621
- },
622
- 'headers': {
623
- 'Content-Type': 'application/json'
624
- },
625
- },
626
- 'paramsType': {
627
- }
628
- },
629
- 'DeleteEtlTask': {
630
- 'url': '/',
631
- 'method': 'POST',
632
- 'config': {
633
- 'query': {
634
- 'Version': '2020-07-31',
635
- 'Action': 'DeleteEtlTask',
636
- },
637
- 'headers': {
638
- 'Content-Type': 'application/x-www-form-urlencoded'
639
- },
640
- },
641
- 'paramsType': {
642
- }
643
- },
644
- 'StopEtlTask': {
645
- 'url': '/',
646
- 'method': 'POST',
647
- 'config': {
648
- 'query': {
649
- 'Version': '2020-07-31',
650
- 'Action': 'StopEtlTask',
651
- },
652
- 'headers': {
653
- 'Content-Type': 'application/x-www-form-urlencoded'
654
- },
655
- },
656
- 'paramsType': {
657
- }
658
- },
659
- 'StartEtlTask': {
660
- 'url': '/',
661
- 'method': 'POST',
662
- 'config': {
663
- 'query': {
664
- 'Version': '2020-07-31',
665
- 'Action': 'StartEtlTask',
666
- },
667
- 'headers': {
668
- 'Content-Type': 'application/x-www-form-urlencoded'
669
- },
670
- },
671
- 'paramsType': {
672
- }
673
- },
674
- 'ListEtlTasks': {
675
- 'url': '/',
676
- 'method': 'POST',
677
- 'config': {
678
- 'query': {
679
- 'Version': '2020-07-31',
680
- 'Action': 'ListEtlTasks',
681
- },
682
- 'headers': {
683
- 'Content-Type': 'application/x-www-form-urlencoded'
684
- },
685
- },
686
- 'paramsType': {
687
- }
688
- },
689
- 'DescribeEtlTask': {
690
- 'url': '/',
691
- 'method': 'POST',
692
- 'config': {
693
- 'query': {
694
- 'Version': '2020-07-31',
695
- 'Action': 'DescribeEtlTask',
696
- },
697
- 'headers': {
698
- 'Content-Type': 'application/x-www-form-urlencoded'
699
- },
700
- },
701
- 'paramsType': {
702
- }
703
- },
704
- 'ModifyEtlTask': {
705
- 'url': '/',
706
- 'method': 'POST',
707
- 'config': {
708
- 'query': {
709
- 'Version': '2020-07-31',
710
- 'Action': 'ModifyEtlTask',
711
- },
712
- 'headers': {
713
- 'Content-Type': 'application/x-www-form-urlencoded'
714
- },
715
- },
716
- 'paramsType': {
717
- }
718
- },
719
- 'CreateEtlTask': {
720
- 'url': '/',
721
- 'method': 'POST',
722
- 'config': {
723
- 'query': {
724
- 'Version': '2020-07-31',
725
- 'Action': 'CreateEtlTask',
726
- },
727
- 'headers': {
728
- 'Content-Type': 'application/x-www-form-urlencoded'
729
- },
730
- },
731
- 'paramsType': {
732
- }
733
- },
734
- 'DescribeEtlException': {
735
- 'url': '/',
736
- 'method': 'POST',
737
- 'config': {
738
- 'query': {
739
- 'Version': '2020-07-31',
740
- 'Action': 'DescribeEtlException',
741
- },
742
- 'headers': {
743
- 'Content-Type': 'application/x-www-form-urlencoded'
744
- },
745
- },
746
- 'paramsType': {
747
- }
748
- },
749
- 'DescribeEtlStats': {
750
- 'url': '/',
751
- 'method': 'POST',
752
- 'config': {
753
- 'query': {
754
- 'Version': '2020-07-31',
755
- 'Action': 'DescribeEtlStats',
756
- },
757
- 'headers': {
758
- 'Content-Type': 'application/x-www-form-urlencoded'
759
- },
760
- },
761
- 'paramsType': {
762
- }
763
- },
764
- 'ExecuteEtlDemo': {
765
- 'url': '/',
766
- 'method': 'POST',
767
- 'config': {
768
- 'query': {
769
- 'Version': '2020-07-31',
770
- 'Action': 'ExecuteEtlDemo',
771
- },
772
- 'headers': {
773
- 'Content-Type': 'application/x-www-form-urlencoded'
774
- },
775
- },
776
- 'paramsType': {
777
- }
778
- },
779
- 'GetUserRegion': {
780
- 'url': '/',
781
- 'method': 'POST',
782
- 'config': {
783
- 'query': {
784
- 'Version': '2020-07-31',
785
- 'Action': 'GetUserRegion',
786
- },
787
- 'headers': {
788
- 'Content-Type': 'application/x-www-form-urlencoded'
789
- },
790
- },
791
- 'paramsType': {
792
- }
793
- },
794
- 'GetClustersByType': {
795
- 'url': '/',
796
- 'method': 'POST',
797
- 'config': {
798
- 'query': {
799
- 'Version': '2020-07-31',
800
- 'Action': 'GetClustersByType',
801
- },
802
- 'headers': {
803
- 'Content-Type': 'application/x-www-form-urlencoded'
804
- },
805
- },
806
- 'paramsType': {
807
- }
808
- },
809
- }
810
- }
4
+ _baseConfig = {
5
+ protocol: "http://",
6
+ endpoint: "klog.api.ksyun.com",
7
+ config: {
8
+ timeout: 60, //设置timeout
9
+ headers: {
10
+ Accept: "application/json",
11
+ },
12
+ credentials: {
13
+ region: "cn-shanghai-3",
14
+ service: "klog",
15
+ },
16
+ },
17
+ };
18
+ _apiList = {
19
+ CreateProject: {
20
+ url: "/",
21
+ method: "POST",
22
+ config: {
23
+ query: {
24
+ Version: "2020-07-31",
25
+ Action: "CreateProject",
26
+ },
27
+ headers: {
28
+ "Content-Type": "application/json",
29
+ },
30
+ },
31
+ paramsType: {
32
+ ProjectName: "String",
33
+ Description: "String",
34
+ IamProjectId: "Int",
35
+ },
36
+ },
37
+ DescribeProject: {
38
+ url: "/",
39
+ method: "POST",
40
+ config: {
41
+ query: {
42
+ Version: "2020-07-31",
43
+ Action: "DescribeProject",
44
+ },
45
+ headers: {
46
+ "Content-Type": "application/json",
47
+ },
48
+ },
49
+ paramsType: {
50
+ ProjectName: "String",
51
+ },
52
+ },
53
+ UpdateProject: {
54
+ url: "/",
55
+ method: "POST",
56
+ config: {
57
+ query: {
58
+ Version: "2020-07-31",
59
+ Action: "UpdateProject",
60
+ },
61
+ headers: {
62
+ "Content-Type": "application/json",
63
+ },
64
+ },
65
+ paramsType: {
66
+ ProjectName: "String",
67
+ Description: "String",
68
+ IamProjectId: "Int",
69
+ },
70
+ },
71
+ DeleteProject: {
72
+ url: "/",
73
+ method: "POST",
74
+ config: {
75
+ query: {
76
+ Version: "2020-07-31",
77
+ Action: "DeleteProject",
78
+ },
79
+ headers: {
80
+ "Content-Type": "application/json",
81
+ },
82
+ },
83
+ paramsType: {
84
+ ProjectName: "String",
85
+ },
86
+ },
87
+ ListProjects: {
88
+ url: "/",
89
+ method: "POST",
90
+ config: {
91
+ query: {
92
+ Version: "2020-07-31",
93
+ Action: "ListProjects",
94
+ },
95
+ headers: {
96
+ "Content-Type": "application/json",
97
+ },
98
+ },
99
+ paramsType: {
100
+ ProjectName: "String",
101
+ Description: "String",
102
+ Page: "Int",
103
+ Size: "Int",
104
+ },
105
+ },
106
+ CreateLogPool: {
107
+ url: "/",
108
+ method: "POST",
109
+ config: {
110
+ query: {
111
+ Version: "2020-07-31",
112
+ Action: "CreateLogPool",
113
+ },
114
+ headers: {
115
+ "Content-Type": "application/json",
116
+ },
117
+ },
118
+ paramsType: {
119
+ ProjectName: "String",
120
+ LogPoolName: "String",
121
+ RetentionDays: "Int",
122
+ Partitions: "Int",
123
+ Description: "String",
124
+ },
125
+ },
126
+ DescribeLogPool: {
127
+ url: "/",
128
+ method: "POST",
129
+ config: {
130
+ query: {
131
+ Version: "2020-07-31",
132
+ Action: "DescribeLogPool",
133
+ },
134
+ headers: {
135
+ "Content-Type": "application/json",
136
+ },
137
+ },
138
+ paramsType: {
139
+ ProjectName: "String",
140
+ LogPoolName: "String",
141
+ },
142
+ },
143
+ UpdateLogPool: {
144
+ url: "/",
145
+ method: "POST",
146
+ config: {
147
+ query: {
148
+ Version: "2020-07-31",
149
+ Action: "UpdateLogPool",
150
+ },
151
+ headers: {
152
+ "Content-Type": "application/json",
153
+ },
154
+ },
155
+ paramsType: {
156
+ ProjectName: "String",
157
+ LogPoolName: "String",
158
+ LogPoolId: "String",
159
+ RetentionDays: "Int",
160
+ Partitions: "Int",
161
+ Description: "String",
162
+ Config: "Object",
163
+ },
164
+ },
165
+ DeleteLogPool: {
166
+ url: "/",
167
+ method: "POST",
168
+ config: {
169
+ query: {
170
+ Version: "2020-07-31",
171
+ Action: "DeleteLogPool",
172
+ },
173
+ headers: {
174
+ "Content-Type": "application/json",
175
+ },
176
+ },
177
+ paramsType: {
178
+ ProjectName: "String",
179
+ LogPoolId: "String",
180
+ },
181
+ },
182
+ ListLogPools: {
183
+ url: "/",
184
+ method: "POST",
185
+ config: {
186
+ query: {
187
+ Version: "2020-07-31",
188
+ Action: "ListLogPools",
189
+ },
190
+ headers: {
191
+ "Content-Type": "application/json",
192
+ },
193
+ },
194
+ paramsType: {
195
+ ProjectName: "String",
196
+ LogPoolName: "String",
197
+ Page: "Int",
198
+ Size: "Int",
199
+ Tags: "Object",
200
+ },
201
+ },
202
+ GetLogs: {
203
+ url: "/",
204
+ method: "POST",
205
+ config: {
206
+ query: {
207
+ Version: "2020-07-31",
208
+ Action: "GetLogs",
209
+ },
210
+ headers: {
211
+ "Content-Type": "application/json",
212
+ },
213
+ },
214
+ paramsType: {
215
+ ProjectName: "String",
216
+ LogPoolName: "String",
217
+ LogPoolId: "String",
218
+ From: "Int",
219
+ To: "Int",
220
+ Query: "String",
221
+ Offset: "Int",
222
+ Size: "Int",
223
+ HitsOpen: "Boolean",
224
+ Interval: "String",
225
+ },
226
+ },
227
+ CreateQuickSearch: {
228
+ url: "/",
229
+ method: "POST",
230
+ config: {
231
+ query: {
232
+ Version: "2020-07-31",
233
+ Action: "CreateQuickSearch",
234
+ },
235
+ headers: {
236
+ "Content-Type": "application/json",
237
+ },
238
+ },
239
+ paramsType: {
240
+ ProjectName: "String",
241
+ LogPoolName: "String",
242
+ QuickSearchName: "String",
243
+ Query: "String",
244
+ Description: "String",
245
+ TimeRange: "String",
246
+ },
247
+ },
248
+ ListQuickSearchs: {
249
+ url: "/",
250
+ method: "POST",
251
+ config: {
252
+ query: {
253
+ Version: "2020-07-31",
254
+ Action: "ListQuickSearchs",
255
+ },
256
+ headers: {
257
+ "Content-Type": "application/json",
258
+ },
259
+ },
260
+ paramsType: {
261
+ ProjectName: "String",
262
+ LogPoolName: "String",
263
+ Filter: "String",
264
+ Page: "Int",
265
+ Size: "Int",
266
+ },
267
+ },
268
+ DeleteQuickSearchs: {
269
+ url: "/",
270
+ method: "POST",
271
+ config: {
272
+ query: {
273
+ Version: "2020-07-31",
274
+ Action: "DeleteQuickSearchs",
275
+ },
276
+ headers: {
277
+ "Content-Type": "application/json",
278
+ },
279
+ },
280
+ paramsType: {
281
+ ProjectName: "String",
282
+ LogPoolName: "String",
283
+ QuickSearchName: "String",
284
+ },
285
+ },
286
+ CreateDownloadTask: {
287
+ url: "/",
288
+ method: "POST",
289
+ config: {
290
+ query: {
291
+ Version: "2020-07-31",
292
+ Action: "CreateDownloadTask",
293
+ },
294
+ headers: {
295
+ "Content-Type": "application/json",
296
+ },
297
+ },
298
+ paramsType: {
299
+ ProjectName: "String",
300
+ LogPoolNames: "String",
301
+ Config: "Object",
302
+ },
303
+ },
304
+ ListDownloadTasks: {
305
+ url: "/",
306
+ method: "POST",
307
+ config: {
308
+ query: {
309
+ Version: "2020-07-31",
310
+ Action: "ListDownloadTasks",
311
+ },
312
+ headers: {
313
+ "Content-Type": "application/json",
314
+ },
315
+ },
316
+ paramsType: {
317
+ ProjectName: "String",
318
+ Page: "String",
319
+ Size: "String",
320
+ },
321
+ },
322
+ };
323
+ };