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
@@ -25,13 +25,13 @@ module.exports = class Client extends BaseClient {
25
25
  Action: "CreateInstance",
26
26
  },
27
27
  headers: {
28
- "Content-Type": "application/x-www-form-urlencoded",
28
+ "Content-Type": "application/json",
29
29
  },
30
30
  },
31
31
  paramsType: {
32
32
  InstanceName: "String",
33
33
  EnableModules: "String",
34
- ModuleConfigs: "Array",
34
+ ModuleConfigs: "Filter",
35
35
  AdminUser: "String",
36
36
  AdminPassword: "String",
37
37
  VpcId: "String",
@@ -40,15 +40,16 @@ module.exports = class Client extends BaseClient {
40
40
  Duration: "String",
41
41
  ProductType: "Int",
42
42
  ProjectId: "String",
43
- "BackupConfig.MaxBackups": "Int",
44
- "BackupConfig.MaxReservedHours": "Int",
45
- "BackupConfig.PreferredBackupTime": "String",
46
43
  EnableAutoBackup: "Boolean",
47
44
  Engine: "String",
48
45
  EngineVersion: "String",
49
46
  ClientPort: "Int",
50
47
  Az: "String",
51
48
  SecurityGroupId: "String",
49
+ BackupConfig: "Object",
50
+ backupId: "String",
51
+ backupRestoreInstanceId: "String",
52
+ backupRestoreTime: "String",
52
53
  },
53
54
  },
54
55
  ListInstance: {
@@ -70,6 +71,7 @@ module.exports = class Client extends BaseClient {
70
71
  Offset: "Int",
71
72
  Limit: "Int",
72
73
  OrderBy: "String",
74
+ ProductType: "Int",
73
75
  },
74
76
  },
75
77
  DescribeInstance: {
@@ -88,6 +90,22 @@ module.exports = class Client extends BaseClient {
88
90
  InstanceId: "String",
89
91
  },
90
92
  },
93
+ DeleteInstance: {
94
+ url: "/",
95
+ method: "DELETE",
96
+ config: {
97
+ query: {
98
+ Version: "2021-05-20",
99
+ Action: "DeleteInstance",
100
+ },
101
+ headers: {
102
+ "Content-Type": "application/json",
103
+ },
104
+ },
105
+ paramsType: {
106
+ InstanceIds: "String",
107
+ },
108
+ },
91
109
  RenameInstance: {
92
110
  url: "/",
93
111
  method: "POST",
@@ -97,7 +115,7 @@ module.exports = class Client extends BaseClient {
97
115
  Action: "RenameInstance",
98
116
  },
99
117
  headers: {
100
- "Content-Type": "application/x-www-form-urlencoded",
118
+ "Content-Type": "application/json",
101
119
  },
102
120
  },
103
121
  paramsType: {
@@ -114,7 +132,7 @@ module.exports = class Client extends BaseClient {
114
132
  Action: "ListRegion",
115
133
  },
116
134
  headers: {
117
- "Content-Type": "application/json",
135
+ "Content-Type": "application/x-www-form-urlencoded",
118
136
  },
119
137
  },
120
138
  paramsType: {
@@ -130,7 +148,7 @@ module.exports = class Client extends BaseClient {
130
148
  Action: "DescRegion",
131
149
  },
132
150
  headers: {
133
- "Content-Type": "application/json",
151
+ "Content-Type": "application/x-www-form-urlencoded",
134
152
  },
135
153
  },
136
154
  paramsType: {
@@ -147,7 +165,7 @@ module.exports = class Client extends BaseClient {
147
165
  Action: "CreateSecurityGroup",
148
166
  },
149
167
  headers: {
150
- "Content-Type": "application/x-www-form-urlencoded",
168
+ "Content-Type": "application/json",
151
169
  },
152
170
  },
153
171
  paramsType: {
@@ -185,11 +203,29 @@ module.exports = class Client extends BaseClient {
185
203
  Action: "DescribeSecurityGroup",
186
204
  },
187
205
  headers: {
188
- "Content-Type": "application/json",
206
+ "Content-Type": "application/x-www-form-urlencoded",
189
207
  },
190
208
  },
191
209
  paramsType: {
192
210
  SecurityGroupId: "String",
211
+ RuleFuzzySearch: "String",
212
+ InstanceFuzzySearch: "String",
213
+ },
214
+ },
215
+ DeleteSecurityGroup: {
216
+ url: "/",
217
+ method: "DELETE",
218
+ config: {
219
+ query: {
220
+ Version: "2021-05-20",
221
+ Action: "DeleteSecurityGroup",
222
+ },
223
+ headers: {
224
+ "Content-Type": "application/json",
225
+ },
226
+ },
227
+ paramsType: {
228
+ SecurityGroupIds: "String",
193
229
  },
194
230
  },
195
231
  UpdateSecurityGroup: {
@@ -201,7 +237,7 @@ module.exports = class Client extends BaseClient {
201
237
  Action: "UpdateSecurityGroup",
202
238
  },
203
239
  headers: {
204
- "Content-Type": "application/x-www-form-urlencoded",
240
+ "Content-Type": "application/json",
205
241
  },
206
242
  },
207
243
  paramsType: {
@@ -219,7 +255,7 @@ module.exports = class Client extends BaseClient {
219
255
  Action: "CloneSecurityGroup",
220
256
  },
221
257
  headers: {
222
- "Content-Type": "application/x-www-form-urlencoded",
258
+ "Content-Type": "application/json",
223
259
  },
224
260
  },
225
261
  paramsType: {
@@ -237,7 +273,7 @@ module.exports = class Client extends BaseClient {
237
273
  Action: "BindSecurityGroup",
238
274
  },
239
275
  headers: {
240
- "Content-Type": "application/x-www-form-urlencoded",
276
+ "Content-Type": "application/json",
241
277
  },
242
278
  },
243
279
  paramsType: {
@@ -254,7 +290,7 @@ module.exports = class Client extends BaseClient {
254
290
  Action: "UnbindSecurityGroup",
255
291
  },
256
292
  headers: {
257
- "Content-Type": "application/x-www-form-urlencoded",
293
+ "Content-Type": "application/json",
258
294
  },
259
295
  },
260
296
  paramsType: {
@@ -271,7 +307,7 @@ module.exports = class Client extends BaseClient {
271
307
  Action: "RebindSecurityGroup",
272
308
  },
273
309
  headers: {
274
- "Content-Type": "application/x-www-form-urlencoded",
310
+ "Content-Type": "application/json",
275
311
  },
276
312
  },
277
313
  paramsType: {
@@ -288,12 +324,12 @@ module.exports = class Client extends BaseClient {
288
324
  Action: "CreateSecurityRule",
289
325
  },
290
326
  headers: {
291
- "Content-Type": "application/x-www-form-urlencoded",
327
+ "Content-Type": "application/json",
292
328
  },
293
329
  },
294
330
  paramsType: {
295
- Rules: "Array",
296
331
  SecurityGroupId: "String",
332
+ Rules: "Object",
297
333
  },
298
334
  },
299
335
  UpdateSecurityRule: {
@@ -305,7 +341,7 @@ module.exports = class Client extends BaseClient {
305
341
  Action: "UpdateSecurityRule",
306
342
  },
307
343
  headers: {
308
- "Content-Type": "application/x-www-form-urlencoded",
344
+ "Content-Type": "application/json",
309
345
  },
310
346
  },
311
347
  paramsType: {
@@ -314,6 +350,44 @@ module.exports = class Client extends BaseClient {
314
350
  Cidr: "String",
315
351
  },
316
352
  },
353
+ DeleteSecurityRule: {
354
+ url: "/",
355
+ method: "DELETE",
356
+ config: {
357
+ query: {
358
+ Version: "2021-05-20",
359
+ Action: "DeleteSecurityRule",
360
+ },
361
+ headers: {
362
+ "Content-Type": "application/json",
363
+ },
364
+ },
365
+ paramsType: {
366
+ SecurityGroupId: "String",
367
+ RuleIds: "String",
368
+ },
369
+ },
370
+ ListSecuredInstance: {
371
+ url: "/",
372
+ method: "GET",
373
+ config: {
374
+ query: {
375
+ Version: "2021-05-20",
376
+ Action: "ListSecuredInstance",
377
+ },
378
+ headers: {
379
+ "Content-Type": "application/json",
380
+ },
381
+ },
382
+ paramsType: {
383
+ SecurityGroupId: "String",
384
+ ProjectIds: "String",
385
+ FuzzySearch: "String",
386
+ Offset: "Int",
387
+ Limit: "Int",
388
+ OrderBy: "String",
389
+ },
390
+ },
317
391
  ListUnsecuredInstance: {
318
392
  url: "/",
319
393
  method: "GET",
@@ -351,5 +425,325 @@ module.exports = class Client extends BaseClient {
351
425
  Keyword: "String",
352
426
  },
353
427
  },
428
+ CreateBackup: {
429
+ url: "/",
430
+ method: "POST",
431
+ config: {
432
+ query: {
433
+ Version: "2021-05-20",
434
+ Action: "CreateBackup",
435
+ },
436
+ headers: {
437
+ "Content-Type": "application/json",
438
+ },
439
+ },
440
+ paramsType: {
441
+ InstanceId: "String",
442
+ BackupName: "String",
443
+ },
444
+ },
445
+ UpdateBackupRule: {
446
+ url: "/",
447
+ method: "POST",
448
+ config: {
449
+ query: {
450
+ Version: "2021-05-20",
451
+ Action: "UpdateBackupRule",
452
+ },
453
+ headers: {
454
+ "Content-Type": "application/json",
455
+ },
456
+ },
457
+ paramsType: {
458
+ InstanceId: "String",
459
+ PreferredBackupTime: "String",
460
+ EnableAutobackup: "Boolean",
461
+ EnableIncremental: "Boolean",
462
+ },
463
+ },
464
+ DeleteBackup: {
465
+ url: "/",
466
+ method: "DELETE",
467
+ config: {
468
+ query: {
469
+ Version: "2021-05-20",
470
+ Action: "DeleteBackup",
471
+ },
472
+ headers: {
473
+ "Content-Type": "application/json",
474
+ },
475
+ },
476
+ paramsType: {
477
+ InstanceId: "String",
478
+ BackupIds: "String",
479
+ },
480
+ },
481
+ CreateRestore: {
482
+ url: "/",
483
+ method: "POST",
484
+ config: {
485
+ query: {
486
+ Version: "2021-05-20",
487
+ Action: "CreateRestore",
488
+ },
489
+ headers: {
490
+ "Content-Type": "application/json",
491
+ },
492
+ },
493
+ paramsType: {
494
+ InstanceId: "String",
495
+ BackupId: "String",
496
+ },
497
+ },
498
+ OpenTiMonitor: {
499
+ url: "/",
500
+ method: "POST",
501
+ config: {
502
+ query: {
503
+ Version: "2021-05-20",
504
+ Action: "OpenTiMonitor",
505
+ },
506
+ headers: {
507
+ "Content-Type": "application/json",
508
+ },
509
+ },
510
+ paramsType: {
511
+ InstanceId: "String",
512
+ },
513
+ },
514
+ CreateTask: {
515
+ url: "/",
516
+ method: "POST",
517
+ config: {
518
+ query: {
519
+ Version: "2021-05-20",
520
+ Action: "CreateTask",
521
+ },
522
+ headers: {
523
+ "Content-Type": "application/json",
524
+ },
525
+ },
526
+ paramsType: {
527
+ InstanceId: "String",
528
+ TaskName: "String",
529
+ TargetId: "String",
530
+ VpcId: "String",
531
+ VnetId: "String",
532
+ TargetType: "String",
533
+ TargetMySQL: "Object",
534
+ TargetKafka: "Object",
535
+ },
536
+ },
537
+ OperationTasks: {
538
+ url: "/",
539
+ method: "POST",
540
+ config: {
541
+ query: {
542
+ Version: "2021-05-20",
543
+ Action: "OperationTasks",
544
+ },
545
+ headers: {
546
+ "Content-Type": "application/json",
547
+ },
548
+ },
549
+ paramsType: {
550
+ InstanceId: "String",
551
+ TaskList: "String",
552
+ Operation: "String",
553
+ },
554
+ },
555
+ CheckTaskName: {
556
+ url: "/",
557
+ method: "GET",
558
+ config: {
559
+ query: {
560
+ Version: "2021-05-20",
561
+ Action: "CheckTaskName",
562
+ },
563
+ headers: {
564
+ "Content-Type": "application/json",
565
+ },
566
+ },
567
+ paramsType: {
568
+ InstanceId: "String",
569
+ },
570
+ },
571
+ DescribeTask: {
572
+ url: "/",
573
+ method: "GET",
574
+ config: {
575
+ query: {
576
+ Version: "2021-05-20",
577
+ Action: "DescribeTask",
578
+ },
579
+ headers: {
580
+ "Content-Type": "application/json",
581
+ },
582
+ },
583
+ paramsType: {
584
+ InstanceId: "String",
585
+ TaskName: "String",
586
+ },
587
+ },
588
+ ListTasks: {
589
+ url: "/",
590
+ method: "POST",
591
+ config: {
592
+ query: {
593
+ Version: "2021-05-20",
594
+ Action: "ListTasks",
595
+ },
596
+ headers: {
597
+ "Content-Type": "application/json",
598
+ },
599
+ },
600
+ paramsType: {
601
+ InstanceId: "String",
602
+ },
603
+ },
604
+ DescribeDatabases: {
605
+ url: "/",
606
+ method: "GET",
607
+ config: {
608
+ query: {
609
+ Version: "2021-05-20",
610
+ Action: "DescribeDatabases",
611
+ },
612
+ headers: {
613
+ "Content-Type": "application/json",
614
+ },
615
+ },
616
+ paramsType: {
617
+ InstanceId: "String",
618
+ },
619
+ },
620
+ DescribeAccounts: {
621
+ url: "/",
622
+ method: "GET",
623
+ config: {
624
+ query: {
625
+ Version: "2021-05-20",
626
+ Action: "DescribeAccounts",
627
+ },
628
+ headers: {
629
+ "Content-Type": "application/json",
630
+ },
631
+ },
632
+ paramsType: {
633
+ InstanceId: "String",
634
+ },
635
+ },
636
+ CreateAccount: {
637
+ url: "/",
638
+ method: "POST",
639
+ config: {
640
+ query: {
641
+ Version: "2021-05-20",
642
+ Action: "CreateAccount",
643
+ },
644
+ headers: {
645
+ "Content-Type": "application/json",
646
+ },
647
+ },
648
+ paramsType: {
649
+ InstanceId: "String",
650
+ AccountName: "String",
651
+ AccountPassword: "String",
652
+ Describe: "String",
653
+ Privileges: "String",
654
+ },
655
+ },
656
+ DeleteAccount: {
657
+ url: "/",
658
+ method: "POST",
659
+ config: {
660
+ query: {
661
+ Version: "2021-05-20",
662
+ Action: "DeleteAccount",
663
+ },
664
+ headers: {
665
+ "Content-Type": "application/json",
666
+ },
667
+ },
668
+ paramsType: {
669
+ InstanceId: "String",
670
+ AccountName: "String",
671
+ },
672
+ },
673
+ ModifyAccountInfo: {
674
+ url: "/",
675
+ method: "POST",
676
+ config: {
677
+ query: {
678
+ Version: "2021-05-20",
679
+ Action: "ModifyAccountInfo",
680
+ },
681
+ headers: {
682
+ "Content-Type": "application/json",
683
+ },
684
+ },
685
+ paramsType: {
686
+ InstanceId: "String",
687
+ AccountName: "String",
688
+ AccountPassword: "String",
689
+ AccountType: "String",
690
+ },
691
+ },
692
+ ModifyAccountPrivileges: {
693
+ url: "/",
694
+ method: "POST",
695
+ config: {
696
+ query: {
697
+ Version: "2021-05-20",
698
+ Action: "ModifyAccountPrivileges",
699
+ },
700
+ headers: {
701
+ "Content-Type": "application/json",
702
+ },
703
+ },
704
+ paramsType: {
705
+ InstanceId: "String",
706
+ AccountName: "String",
707
+ OldPrivileges: "String",
708
+ NewPrivileges: "String",
709
+ },
710
+ },
711
+ ConfigurationInstanceEip: {
712
+ url: "/",
713
+ method: "GET",
714
+ config: {
715
+ query: {
716
+ Version: "2021-05-20",
717
+ Action: "ConfigurationInstanceEip",
718
+ },
719
+ headers: {
720
+ "Content-Type": "application/json",
721
+ },
722
+ },
723
+ paramsType: {
724
+ InstanceId: "String",
725
+ Operation: "String",
726
+ EipPort: "Int",
727
+ },
728
+ },
729
+ UpdateInstanceTrialOrder: {
730
+ url: "/",
731
+ method: "GET",
732
+ config: {
733
+ query: {
734
+ Version: "2021-05-20",
735
+ Action: "UpdateInstanceTrialOrder",
736
+ },
737
+ headers: {
738
+ "Content-Type": "application/json",
739
+ },
740
+ },
741
+ paramsType: {
742
+ InstanceId: "String",
743
+ OperateType: "String",
744
+ BillType: "Int",
745
+ Duration: "Int",
746
+ },
747
+ },
354
748
  };
355
749
  };
@@ -0,0 +1,89 @@
1
+ const BaseClient = require("../../../base/BaseClient.js");
2
+
3
+ module.exports = class Client extends BaseClient {
4
+ _baseConfig = {
5
+ protocol: "http://",
6
+ endpoint: "trade.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: "trade",
15
+ },
16
+ },
17
+ };
18
+ _apiList = {
19
+ ListInstanceSupportBillTypes: {
20
+ url: "/",
21
+ method: "GET",
22
+ config: {
23
+ query: {
24
+ Version: "2025-02-20",
25
+ Action: "ListInstanceSupportBillTypes",
26
+ },
27
+ headers: {
28
+ "Content-Type": "application/json",
29
+ },
30
+ },
31
+ paramsType: {
32
+ instanceId: "String",
33
+ },
34
+ },
35
+ AddTrialToBuyTask: {
36
+ url: "/",
37
+ method: "POST",
38
+ config: {
39
+ query: {
40
+ Version: "2025-02-20",
41
+ Action: "AddTrialToBuyTask",
42
+ },
43
+ headers: {
44
+ "Content-Type": "application/json",
45
+ },
46
+ },
47
+ paramsType: {
48
+ instanceId: "String",
49
+ billType: "Int",
50
+ duration: "Int",
51
+ autoTrialToBuyDate: "String",
52
+ },
53
+ },
54
+ DeleteTrialToBuyTask: {
55
+ url: "/",
56
+ method: "POST",
57
+ config: {
58
+ query: {
59
+ Version: "2025-02-20",
60
+ Action: "DeleteTrialToBuyTask",
61
+ },
62
+ headers: {
63
+ "Content-Type": "application/json",
64
+ },
65
+ },
66
+ paramsType: {
67
+ instanceId: "String",
68
+ },
69
+ },
70
+ CreateTrialToBuyNow: {
71
+ url: "/",
72
+ method: "POST",
73
+ config: {
74
+ query: {
75
+ Version: "2025-02-20",
76
+ Action: "CreateTrialToBuyNow",
77
+ },
78
+ headers: {
79
+ "Content-Type": "application/json",
80
+ },
81
+ },
82
+ paramsType: {
83
+ instanceId: "String",
84
+ billType: "Int",
85
+ duration: "Int",
86
+ },
87
+ },
88
+ };
89
+ };