ksyun-sdk-node 1.4.9 → 1.5.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 (108) hide show
  1. package/dist/service/Aicp/v20240612/index.js +24 -0
  2. package/dist/service/Bws/v20160304/index.js +3 -0
  3. package/dist/service/Cdn/v20250503/index.js +0 -333
  4. package/dist/service/Cdn/v3/index.js +600 -0
  5. package/dist/service/Cen/v20160304/index.js +147 -103
  6. package/dist/service/Clickhouse/v20210101/index.js +204 -19
  7. package/dist/service/Cloud_advisor/v20250610/index.js +81 -0
  8. package/dist/service/Dmp/v20240101/index.js +362 -0
  9. package/dist/service/Dts/v20180108/index.js +386 -0
  10. package/dist/service/Ebs/v20160304/index.js +197 -34
  11. package/dist/service/Eip/v20160304/index.js +79 -1
  12. package/dist/service/Influxdb/v20191010/index.js +504 -0
  13. package/dist/service/Kad/v20161122/index.js +32 -0
  14. package/dist/service/Kce/v20190806/index.js +234 -43
  15. package/dist/service/Kce/v20201231/index.js +2 -2
  16. package/dist/service/Kce/v20230101/index.js +193 -0
  17. package/dist/service/Kce/v20230306/index.js +434 -0
  18. package/dist/service/Kce/v20231115/index.js +65 -0
  19. package/dist/service/Kce2/v20230101/index.js +313 -0
  20. package/dist/service/Kci/v20200702/index.js +336 -0
  21. package/dist/service/Kcm/v20160304/index.js +113 -3
  22. package/dist/service/Kcrs/v20211109/index.js +88 -92
  23. package/dist/service/Kcs/v20160701/index.js +165 -23
  24. package/dist/service/Kcs/v20170401/index.js +1 -36
  25. package/dist/service/Kcs/v20240701/index.js +45 -0
  26. package/dist/service/Kead/v20200101/index.js +37 -8
  27. package/dist/service/Ked/v1/index.js +805 -0
  28. package/dist/service/Ket/v20170101/index.js +42 -0
  29. package/dist/service/Kfw/v20160304/index.js +59 -0
  30. package/dist/service/Kingpay/v1/index.js +44 -0
  31. package/dist/service/Knad/v20230323/index.js +333 -0
  32. package/dist/service/Kpfs/v20240930/index.js +181 -0
  33. package/dist/service/Krds/v20160701/index.js +505 -96
  34. package/dist/service/Krds/v20200825/index.js +48 -8
  35. package/dist/service/Milvus/v20231010/index.js +366 -0
  36. package/dist/service/Mongodb/v20170101/index.js +163 -13
  37. package/dist/service/Mongodb/v20250101/index.js +44 -0
  38. package/dist/service/Pdns/v20160304/index.js +636 -0
  39. package/dist/service/Postgresql/v20181225/index.js +950 -0
  40. package/dist/service/Rabbitmq/v20191017/index.js +107 -6
  41. package/dist/service/Relyt/v20240117/index.js +45 -0
  42. package/dist/service/Sks/v20151101/index.js +2 -1
  43. package/dist/service/Slb/v20160304/index.js +426 -53
  44. package/dist/service/Slb/v20250430/index.js +750 -0
  45. package/dist/service/Sqlserver/v20190425/index.js +872 -0
  46. package/dist/service/Sts/v20151101/index.js +19 -0
  47. package/dist/service/Tagv2/v20200901/index.js +42 -6
  48. package/dist/service/Ter/v20240415/index.js +114 -0
  49. package/dist/service/Tidb/v20210520/index.js +415 -21
  50. package/dist/service/Trade/v20250220/index.js +97 -0
  51. package/dist/service/Trade/v20250321/index.js +93 -0
  52. package/dist/service/Trade/v20250828/index.js +56 -0
  53. package/dist/service/Vpc/v20160304/index.js +32 -0
  54. package/dist/service/Waf/v20200707/index.js +188 -5
  55. package/package.json +1 -1
  56. package/src/service/Aicp/v20240612/index.js +24 -0
  57. package/src/service/Bws/v20160304/index.js +3 -0
  58. package/src/service/Cdn/{v20250503 → v3}/index.js +196 -0
  59. package/src/service/Cen/v20160304/index.js +144 -100
  60. package/src/service/Clickhouse/v20210101/index.js +203 -18
  61. package/src/service/Cloud_advisor/v20250610/index.js +73 -0
  62. package/src/service/Dmp/v20240101/index.js +354 -0
  63. package/src/service/Dts/v20180108/index.js +378 -0
  64. package/src/service/Ebs/v20160304/index.js +194 -31
  65. package/src/service/Eip/v20160304/index.js +79 -1
  66. package/src/service/Influxdb/v20191010/index.js +496 -0
  67. package/src/service/Kad/v20161122/index.js +32 -0
  68. package/src/service/Kce/v20190806/index.js +233 -42
  69. package/src/service/Kce/v20201231/index.js +2 -2
  70. package/src/service/Kce/v20230101/index.js +185 -0
  71. package/src/service/Kce/v20230306/index.js +426 -0
  72. package/src/service/Kce/v20231115/index.js +57 -0
  73. package/src/service/Kce2/v20230101/index.js +305 -0
  74. package/src/service/Kci/v20200702/index.js +328 -0
  75. package/src/service/Kcm/v20160304/index.js +110 -0
  76. package/src/service/Kcrs/v20211109/index.js +87 -91
  77. package/src/service/Kcs/v20160701/index.js +164 -22
  78. package/src/service/Kcs/v20170401/index.js +1 -36
  79. package/src/service/Kcs/v20240701/index.js +37 -0
  80. package/src/service/Kead/v20200101/index.js +37 -8
  81. package/src/service/Ked/v1/index.js +797 -0
  82. package/src/service/Ket/v20170101/index.js +42 -0
  83. package/src/service/Kfw/v20160304/index.js +51 -0
  84. package/src/service/Kingpay/v1/index.js +36 -0
  85. package/src/service/Knad/v20230323/index.js +325 -0
  86. package/src/service/Kpfs/v20240930/index.js +173 -0
  87. package/src/service/Krds/v20160701/index.js +502 -93
  88. package/src/service/Krds/v20200825/index.js +48 -8
  89. package/src/service/Milvus/v20231010/index.js +358 -0
  90. package/src/service/Mongodb/v20170101/index.js +162 -12
  91. package/src/service/Mongodb/v20250101/index.js +36 -0
  92. package/src/service/Pdns/v20160304/index.js +628 -0
  93. package/src/service/Postgresql/v20181225/index.js +942 -0
  94. package/src/service/Rabbitmq/v20191017/index.js +107 -6
  95. package/src/service/Relyt/v20240117/index.js +37 -0
  96. package/src/service/Sks/v20151101/index.js +1 -0
  97. package/src/service/Slb/v20160304/index.js +416 -43
  98. package/src/service/Slb/v20250430/index.js +742 -0
  99. package/src/service/Sqlserver/v20190425/index.js +864 -0
  100. package/src/service/Sts/v20151101/index.js +19 -0
  101. package/src/service/Tagv2/v20200901/index.js +42 -6
  102. package/src/service/Ter/v20240415/index.js +106 -0
  103. package/src/service/Tidb/v20210520/index.js +412 -18
  104. package/src/service/Trade/v20250220/index.js +89 -0
  105. package/src/service/Trade/v20250321/index.js +85 -0
  106. package/src/service/Trade/v20250828/index.js +48 -0
  107. package/src/service/Vpc/v20160304/index.js +32 -0
  108. package/src/service/Waf/v20200707/index.js +187 -4
@@ -0,0 +1,504 @@
1
+ "use strict";
2
+
3
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
5
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
+ const BaseClient = require("../../../base/BaseClient.js");
7
+ module.exports = class Client extends BaseClient {
8
+ constructor(...args) {
9
+ super(...args);
10
+ _defineProperty(this, "_baseConfig", {
11
+ protocol: "http://",
12
+ endpoint: "Influxdb.api.ksyun.com",
13
+ config: {
14
+ timeout: 60,
15
+ //设置timeout
16
+ headers: {
17
+ Accept: "application/json"
18
+ },
19
+ credentials: {
20
+ region: "cn-shanghai-3",
21
+ service: "Influxdb"
22
+ }
23
+ }
24
+ });
25
+ _defineProperty(this, "_apiList", {
26
+ CreateInstance: {
27
+ url: "/",
28
+ method: "POST",
29
+ config: {
30
+ query: {
31
+ Version: "2019-10-10",
32
+ Action: "CreateInstance"
33
+ },
34
+ headers: {
35
+ "Content-Type": "application/x-www-form-urlencoded"
36
+ }
37
+ },
38
+ paramsType: {
39
+ ProjectId: "String",
40
+ InstanceName: "String",
41
+ ProductType: "String",
42
+ EngineVersion: "String",
43
+ InstanceType: "String",
44
+ EbsType: "String",
45
+ EbsSize: "Int",
46
+ VpcId: "String",
47
+ SubnetId: "String",
48
+ BillType: "Int"
49
+ }
50
+ },
51
+ DeleteInstance: {
52
+ url: "/",
53
+ method: "POST",
54
+ config: {
55
+ query: {
56
+ Version: "2019-10-10",
57
+ Action: "DeleteInstance"
58
+ },
59
+ headers: {
60
+ "Content-Type": "application/x-www-form-urlencoded"
61
+ }
62
+ },
63
+ paramsType: {
64
+ InstanceIds: "String"
65
+ }
66
+ },
67
+ DescribeInstance: {
68
+ url: "/",
69
+ method: "GET",
70
+ config: {
71
+ query: {
72
+ Version: "2019-10-10",
73
+ Action: "DescribeInstance"
74
+ },
75
+ headers: {
76
+ "Content-Type": "application/json"
77
+ }
78
+ },
79
+ paramsType: {
80
+ InstanceId: "String"
81
+ }
82
+ },
83
+ DescribeInstances: {
84
+ url: "/",
85
+ method: "GET",
86
+ config: {
87
+ query: {
88
+ Version: "2019-10-10",
89
+ Action: "DescribeInstances"
90
+ },
91
+ headers: {
92
+ "Content-Type": "application/json"
93
+ }
94
+ },
95
+ paramsType: {
96
+ InstanceId: "String",
97
+ InstanceName: "String",
98
+ Vip: "String",
99
+ VpcId: "String",
100
+ FuzzySearch: "String"
101
+ }
102
+ },
103
+ DescribeInstanceNode: {
104
+ url: "/",
105
+ method: "GET",
106
+ config: {
107
+ query: {
108
+ Version: "2019-10-10",
109
+ Action: "DescribeInstanceNode"
110
+ },
111
+ headers: {
112
+ "Content-Type": "application/json"
113
+ }
114
+ },
115
+ paramsType: {
116
+ InstanceId: "String"
117
+ }
118
+ },
119
+ RenameInstance: {
120
+ url: "/",
121
+ method: "POST",
122
+ config: {
123
+ query: {
124
+ Version: "2019-10-10",
125
+ Action: "RenameInstance"
126
+ },
127
+ headers: {
128
+ "Content-Type": "application/x-www-form-urlencoded"
129
+ }
130
+ },
131
+ paramsType: {
132
+ InstanceId: "String",
133
+ InstanceName: "String"
134
+ }
135
+ },
136
+ DescribeValidRegions: {
137
+ url: "/",
138
+ method: "GET",
139
+ config: {
140
+ query: {
141
+ Version: "2019-10-10",
142
+ Action: "DescribeValidRegions"
143
+ },
144
+ headers: {
145
+ "Content-Type": "application/json"
146
+ }
147
+ },
148
+ paramsType: {
149
+ Action: "String"
150
+ }
151
+ },
152
+ DescribeSecurityGroup: {
153
+ url: "/",
154
+ method: "GET",
155
+ config: {
156
+ query: {
157
+ Version: "2019-10-10",
158
+ Action: "DescribeSecurityGroup"
159
+ },
160
+ headers: {
161
+ "Content-Type": "application/json"
162
+ }
163
+ },
164
+ paramsType: {
165
+ InstanceId: "String"
166
+ }
167
+ },
168
+ CreateSecurityRule: {
169
+ url: "/",
170
+ method: "POST",
171
+ config: {
172
+ query: {
173
+ Version: "2019-10-10",
174
+ Action: "CreateSecurityRule"
175
+ },
176
+ headers: {
177
+ "Content-Type": "application/x-www-form-urlencoded"
178
+ }
179
+ },
180
+ paramsType: {
181
+ InstanceId: "String",
182
+ SecurityRuleCidrs: "String"
183
+ }
184
+ },
185
+ DeleteSecurityRule: {
186
+ url: "/",
187
+ method: "POST",
188
+ config: {
189
+ query: {
190
+ Version: "2019-10-10",
191
+ Action: "DeleteSecurityRule"
192
+ },
193
+ headers: {
194
+ "Content-Type": "application/x-www-form-urlencoded"
195
+ }
196
+ },
197
+ paramsType: {
198
+ InstanceId: "String",
199
+ SecurityRuleIds: "String"
200
+ }
201
+ },
202
+ DescribeDatabases: {
203
+ url: "/",
204
+ method: "GET",
205
+ config: {
206
+ query: {
207
+ Version: "2019-10-10",
208
+ Action: "DescribeDatabases"
209
+ },
210
+ headers: {
211
+ "Content-Type": "application/json"
212
+ }
213
+ },
214
+ paramsType: {
215
+ InstanceId: "String",
216
+ Offset: "Int",
217
+ Limit: "Int"
218
+ }
219
+ },
220
+ CreateDatabase: {
221
+ url: "/",
222
+ method: "POST",
223
+ config: {
224
+ query: {
225
+ Version: "2019-10-10",
226
+ Action: "CreateDatabase"
227
+ },
228
+ headers: {
229
+ "Content-Type": "application/x-www-form-urlencoded"
230
+ }
231
+ },
232
+ paramsType: {
233
+ InstanceId: "String",
234
+ DatabaseName: "String"
235
+ }
236
+ },
237
+ DeleteDatabase: {
238
+ url: "/",
239
+ method: "POST",
240
+ config: {
241
+ query: {
242
+ Version: "2019-10-10",
243
+ Action: "DeleteDatabase"
244
+ },
245
+ headers: {
246
+ "Content-Type": "application/x-www-form-urlencoded"
247
+ }
248
+ },
249
+ paramsType: {
250
+ InstanceId: "String",
251
+ DatabaseName: "String"
252
+ }
253
+ },
254
+ DescribeRetentionPolicyList: {
255
+ url: "/",
256
+ method: "GET",
257
+ config: {
258
+ query: {
259
+ Version: "2019-10-10",
260
+ Action: "DescribeRetentionPolicyList"
261
+ },
262
+ headers: {
263
+ "Content-Type": "application/json"
264
+ }
265
+ },
266
+ paramsType: {
267
+ InstanceId: "String",
268
+ DatabaseName: "String"
269
+ }
270
+ },
271
+ CreateRetentionPolicy: {
272
+ url: "/",
273
+ method: "POST",
274
+ config: {
275
+ query: {
276
+ Version: "2019-10-10",
277
+ Action: "CreateRetentionPolicy"
278
+ },
279
+ headers: {
280
+ "Content-Type": "application/x-www-form-urlencoded"
281
+ }
282
+ },
283
+ paramsType: {
284
+ InstanceId: "String",
285
+ DatabaseName: "String",
286
+ PolicyName: "String",
287
+ Duration: "String",
288
+ DefaultPolicy: "String"
289
+ }
290
+ },
291
+ DeleteRetentionPolicy: {
292
+ url: "/",
293
+ method: "POST",
294
+ config: {
295
+ query: {
296
+ Version: "2019-10-10",
297
+ Action: "DeleteRetentionPolicy"
298
+ },
299
+ headers: {
300
+ "Content-Type": "application/x-www-form-urlencoded"
301
+ }
302
+ },
303
+ paramsType: {
304
+ InstanceId: "String",
305
+ DatabaseName: "String",
306
+ PolicyName: "String"
307
+ }
308
+ },
309
+ ModifyRetentionPolicy: {
310
+ url: "/",
311
+ method: "POST",
312
+ config: {
313
+ query: {
314
+ Version: "2019-10-10",
315
+ Action: "ModifyRetentionPolicy"
316
+ },
317
+ headers: {
318
+ "Content-Type": "application/x-www-form-urlencoded"
319
+ }
320
+ },
321
+ paramsType: {
322
+ InstanceId: "String",
323
+ DatabaseName: "String",
324
+ PolicyName: "String",
325
+ Duration: "String"
326
+ }
327
+ },
328
+ DescribeMeasurements: {
329
+ url: "/",
330
+ method: "GET",
331
+ config: {
332
+ query: {
333
+ Version: "2019-10-10",
334
+ Action: "DescribeMeasurements"
335
+ },
336
+ headers: {
337
+ "Content-Type": "application/json"
338
+ }
339
+ },
340
+ paramsType: {
341
+ InstanceId: "String",
342
+ DatabaseName: "String"
343
+ }
344
+ },
345
+ DeleteMeasurement: {
346
+ url: "/",
347
+ method: "POST",
348
+ config: {
349
+ query: {
350
+ Version: "2019-10-10",
351
+ Action: "DeleteMeasurement"
352
+ },
353
+ headers: {
354
+ "Content-Type": "application/x-www-form-urlencoded"
355
+ }
356
+ },
357
+ paramsType: {
358
+ InstanceId: "String",
359
+ DatabaseName: "String",
360
+ MeasurementName: "String"
361
+ }
362
+ },
363
+ DescribeAccounts: {
364
+ url: "/",
365
+ method: "GET",
366
+ config: {
367
+ query: {
368
+ Version: "2019-10-10",
369
+ Action: "DescribeAccounts"
370
+ },
371
+ headers: {
372
+ "Content-Type": "application/json"
373
+ }
374
+ },
375
+ paramsType: {
376
+ InstanceId: "String"
377
+ }
378
+ },
379
+ CreateAccount: {
380
+ url: "/",
381
+ method: "POST",
382
+ config: {
383
+ query: {
384
+ Version: "2019-10-10",
385
+ Action: "CreateAccount"
386
+ },
387
+ headers: {
388
+ "Content-Type": "application/x-www-form-urlencoded"
389
+ }
390
+ },
391
+ paramsType: {
392
+ InstanceId: "String",
393
+ AccountName: "String",
394
+ AccountPassword: "String"
395
+ }
396
+ },
397
+ DeleteAccount: {
398
+ url: "/",
399
+ method: "POST",
400
+ config: {
401
+ query: {
402
+ Version: "2019-10-10",
403
+ Action: "DeleteAccount"
404
+ },
405
+ headers: {
406
+ "Content-Type": "application/x-www-form-urlencoded"
407
+ }
408
+ },
409
+ paramsType: {
410
+ InstanceId: "String",
411
+ AccountName: "String"
412
+ }
413
+ },
414
+ DescribeAccountPrivileges: {
415
+ url: "/",
416
+ method: "GET",
417
+ config: {
418
+ query: {
419
+ Version: "2019-10-10",
420
+ Action: "DescribeAccountPrivileges"
421
+ },
422
+ headers: {
423
+ "Content-Type": "application/json"
424
+ }
425
+ },
426
+ paramsType: {
427
+ InstanceId: "String",
428
+ AccountName: "String"
429
+ }
430
+ },
431
+ GrantAccountPrivilege: {
432
+ url: "/",
433
+ method: "POST",
434
+ config: {
435
+ query: {
436
+ Version: "2019-10-10",
437
+ Action: "GrantAccountPrivilege"
438
+ },
439
+ headers: {
440
+ "Content-Type": "application/x-www-form-urlencoded"
441
+ }
442
+ },
443
+ paramsType: {
444
+ InstanceId: "String",
445
+ AccountName: "String",
446
+ DatabaseName: "String",
447
+ AccountPrivilege: "String"
448
+ }
449
+ },
450
+ RevokeAccountPrivilege: {
451
+ url: "/",
452
+ method: "POST",
453
+ config: {
454
+ query: {
455
+ Version: "2019-10-10",
456
+ Action: "RevokeAccountPrivilege"
457
+ },
458
+ headers: {
459
+ "Content-Type": "application/x-www-form-urlencoded"
460
+ }
461
+ },
462
+ paramsType: {
463
+ InstanceId: "String",
464
+ AccountName: "String",
465
+ DatabaseName: "String"
466
+ }
467
+ },
468
+ ResetAccountPassword: {
469
+ url: "/",
470
+ method: "POST",
471
+ config: {
472
+ query: {
473
+ Version: "2019-10-10",
474
+ Action: "ResetAccountPassword"
475
+ },
476
+ headers: {
477
+ "Content-Type": "application/x-www-form-urlencoded"
478
+ }
479
+ },
480
+ paramsType: {
481
+ InstanceId: "String",
482
+ AccountName: "String",
483
+ AccountPassword: "String"
484
+ }
485
+ },
486
+ DescribeAccountDetailList: {
487
+ url: "/",
488
+ method: "GET",
489
+ config: {
490
+ query: {
491
+ Version: "2019-10-10",
492
+ Action: "DescribeAccountDetailList"
493
+ },
494
+ headers: {
495
+ "Content-Type": "application/json"
496
+ }
497
+ },
498
+ paramsType: {
499
+ Action: "String"
500
+ }
501
+ }
502
+ });
503
+ }
504
+ };
@@ -124,6 +124,38 @@ module.exports = class Client extends BaseClient {
124
124
  ForwardConfId: "String",
125
125
  ForwardSourceId: "Filter"
126
126
  }
127
+ },
128
+ GetAttackLog: {
129
+ url: "/",
130
+ method: "GET",
131
+ config: {
132
+ query: {
133
+ Version: "2016-11-22",
134
+ Action: "GetAttackLog"
135
+ },
136
+ headers: {
137
+ "Content-Type": "application/json"
138
+ }
139
+ },
140
+ paramsType: {}
141
+ },
142
+ DescribeOverview: {
143
+ url: "/",
144
+ method: "GET",
145
+ config: {
146
+ query: {
147
+ Version: "2016-11-22",
148
+ Action: "DescribeOverview"
149
+ },
150
+ headers: {
151
+ "Content-Type": "application/json"
152
+ }
153
+ },
154
+ paramsType: {
155
+ KadId: "String",
156
+ StartTime: "String",
157
+ EndTime: "String"
158
+ }
127
159
  }
128
160
  });
129
161
  }