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
@@ -32,13 +32,13 @@ module.exports = class Client extends BaseClient {
32
32
  Action: "CreateInstance"
33
33
  },
34
34
  headers: {
35
- "Content-Type": "application/x-www-form-urlencoded"
35
+ "Content-Type": "application/json"
36
36
  }
37
37
  },
38
38
  paramsType: {
39
39
  InstanceName: "String",
40
40
  EnableModules: "String",
41
- ModuleConfigs: "Array",
41
+ ModuleConfigs: "Filter",
42
42
  AdminUser: "String",
43
43
  AdminPassword: "String",
44
44
  VpcId: "String",
@@ -47,15 +47,16 @@ module.exports = class Client extends BaseClient {
47
47
  Duration: "String",
48
48
  ProductType: "Int",
49
49
  ProjectId: "String",
50
- "BackupConfig.MaxBackups": "Int",
51
- "BackupConfig.MaxReservedHours": "Int",
52
- "BackupConfig.PreferredBackupTime": "String",
53
50
  EnableAutoBackup: "Boolean",
54
51
  Engine: "String",
55
52
  EngineVersion: "String",
56
53
  ClientPort: "Int",
57
54
  Az: "String",
58
- SecurityGroupId: "String"
55
+ SecurityGroupId: "String",
56
+ BackupConfig: "Object",
57
+ backupId: "String",
58
+ backupRestoreInstanceId: "String",
59
+ backupRestoreTime: "String"
59
60
  }
60
61
  },
61
62
  ListInstance: {
@@ -76,7 +77,8 @@ module.exports = class Client extends BaseClient {
76
77
  FuzzySearch: "String",
77
78
  Offset: "Int",
78
79
  Limit: "Int",
79
- OrderBy: "String"
80
+ OrderBy: "String",
81
+ ProductType: "Int"
80
82
  }
81
83
  },
82
84
  DescribeInstance: {
@@ -95,6 +97,22 @@ module.exports = class Client extends BaseClient {
95
97
  InstanceId: "String"
96
98
  }
97
99
  },
100
+ DeleteInstance: {
101
+ url: "/",
102
+ method: "DELETE",
103
+ config: {
104
+ query: {
105
+ Version: "2021-05-20",
106
+ Action: "DeleteInstance"
107
+ },
108
+ headers: {
109
+ "Content-Type": "application/json"
110
+ }
111
+ },
112
+ paramsType: {
113
+ InstanceIds: "String"
114
+ }
115
+ },
98
116
  RenameInstance: {
99
117
  url: "/",
100
118
  method: "POST",
@@ -104,7 +122,7 @@ module.exports = class Client extends BaseClient {
104
122
  Action: "RenameInstance"
105
123
  },
106
124
  headers: {
107
- "Content-Type": "application/x-www-form-urlencoded"
125
+ "Content-Type": "application/json"
108
126
  }
109
127
  },
110
128
  paramsType: {
@@ -121,7 +139,7 @@ module.exports = class Client extends BaseClient {
121
139
  Action: "ListRegion"
122
140
  },
123
141
  headers: {
124
- "Content-Type": "application/json"
142
+ "Content-Type": "application/x-www-form-urlencoded"
125
143
  }
126
144
  },
127
145
  paramsType: {
@@ -137,7 +155,7 @@ module.exports = class Client extends BaseClient {
137
155
  Action: "DescRegion"
138
156
  },
139
157
  headers: {
140
- "Content-Type": "application/json"
158
+ "Content-Type": "application/x-www-form-urlencoded"
141
159
  }
142
160
  },
143
161
  paramsType: {
@@ -154,7 +172,7 @@ module.exports = class Client extends BaseClient {
154
172
  Action: "CreateSecurityGroup"
155
173
  },
156
174
  headers: {
157
- "Content-Type": "application/x-www-form-urlencoded"
175
+ "Content-Type": "application/json"
158
176
  }
159
177
  },
160
178
  paramsType: {
@@ -191,12 +209,30 @@ module.exports = class Client extends BaseClient {
191
209
  Version: "2021-05-20",
192
210
  Action: "DescribeSecurityGroup"
193
211
  },
212
+ headers: {
213
+ "Content-Type": "application/x-www-form-urlencoded"
214
+ }
215
+ },
216
+ paramsType: {
217
+ SecurityGroupId: "String",
218
+ RuleFuzzySearch: "String",
219
+ InstanceFuzzySearch: "String"
220
+ }
221
+ },
222
+ DeleteSecurityGroup: {
223
+ url: "/",
224
+ method: "DELETE",
225
+ config: {
226
+ query: {
227
+ Version: "2021-05-20",
228
+ Action: "DeleteSecurityGroup"
229
+ },
194
230
  headers: {
195
231
  "Content-Type": "application/json"
196
232
  }
197
233
  },
198
234
  paramsType: {
199
- SecurityGroupId: "String"
235
+ SecurityGroupIds: "String"
200
236
  }
201
237
  },
202
238
  UpdateSecurityGroup: {
@@ -208,7 +244,7 @@ module.exports = class Client extends BaseClient {
208
244
  Action: "UpdateSecurityGroup"
209
245
  },
210
246
  headers: {
211
- "Content-Type": "application/x-www-form-urlencoded"
247
+ "Content-Type": "application/json"
212
248
  }
213
249
  },
214
250
  paramsType: {
@@ -226,7 +262,7 @@ module.exports = class Client extends BaseClient {
226
262
  Action: "CloneSecurityGroup"
227
263
  },
228
264
  headers: {
229
- "Content-Type": "application/x-www-form-urlencoded"
265
+ "Content-Type": "application/json"
230
266
  }
231
267
  },
232
268
  paramsType: {
@@ -244,7 +280,7 @@ module.exports = class Client extends BaseClient {
244
280
  Action: "BindSecurityGroup"
245
281
  },
246
282
  headers: {
247
- "Content-Type": "application/x-www-form-urlencoded"
283
+ "Content-Type": "application/json"
248
284
  }
249
285
  },
250
286
  paramsType: {
@@ -261,7 +297,7 @@ module.exports = class Client extends BaseClient {
261
297
  Action: "UnbindSecurityGroup"
262
298
  },
263
299
  headers: {
264
- "Content-Type": "application/x-www-form-urlencoded"
300
+ "Content-Type": "application/json"
265
301
  }
266
302
  },
267
303
  paramsType: {
@@ -278,7 +314,7 @@ module.exports = class Client extends BaseClient {
278
314
  Action: "RebindSecurityGroup"
279
315
  },
280
316
  headers: {
281
- "Content-Type": "application/x-www-form-urlencoded"
317
+ "Content-Type": "application/json"
282
318
  }
283
319
  },
284
320
  paramsType: {
@@ -295,12 +331,12 @@ module.exports = class Client extends BaseClient {
295
331
  Action: "CreateSecurityRule"
296
332
  },
297
333
  headers: {
298
- "Content-Type": "application/x-www-form-urlencoded"
334
+ "Content-Type": "application/json"
299
335
  }
300
336
  },
301
337
  paramsType: {
302
- Rules: "Array",
303
- SecurityGroupId: "String"
338
+ SecurityGroupId: "String",
339
+ Rules: "Object"
304
340
  }
305
341
  },
306
342
  UpdateSecurityRule: {
@@ -312,7 +348,7 @@ module.exports = class Client extends BaseClient {
312
348
  Action: "UpdateSecurityRule"
313
349
  },
314
350
  headers: {
315
- "Content-Type": "application/x-www-form-urlencoded"
351
+ "Content-Type": "application/json"
316
352
  }
317
353
  },
318
354
  paramsType: {
@@ -321,6 +357,44 @@ module.exports = class Client extends BaseClient {
321
357
  Cidr: "String"
322
358
  }
323
359
  },
360
+ DeleteSecurityRule: {
361
+ url: "/",
362
+ method: "DELETE",
363
+ config: {
364
+ query: {
365
+ Version: "2021-05-20",
366
+ Action: "DeleteSecurityRule"
367
+ },
368
+ headers: {
369
+ "Content-Type": "application/json"
370
+ }
371
+ },
372
+ paramsType: {
373
+ SecurityGroupId: "String",
374
+ RuleIds: "String"
375
+ }
376
+ },
377
+ ListSecuredInstance: {
378
+ url: "/",
379
+ method: "GET",
380
+ config: {
381
+ query: {
382
+ Version: "2021-05-20",
383
+ Action: "ListSecuredInstance"
384
+ },
385
+ headers: {
386
+ "Content-Type": "application/json"
387
+ }
388
+ },
389
+ paramsType: {
390
+ SecurityGroupId: "String",
391
+ ProjectIds: "String",
392
+ FuzzySearch: "String",
393
+ Offset: "Int",
394
+ Limit: "Int",
395
+ OrderBy: "String"
396
+ }
397
+ },
324
398
  ListUnsecuredInstance: {
325
399
  url: "/",
326
400
  method: "GET",
@@ -357,6 +431,326 @@ module.exports = class Client extends BaseClient {
357
431
  InstanceId: "String",
358
432
  Keyword: "String"
359
433
  }
434
+ },
435
+ CreateBackup: {
436
+ url: "/",
437
+ method: "POST",
438
+ config: {
439
+ query: {
440
+ Version: "2021-05-20",
441
+ Action: "CreateBackup"
442
+ },
443
+ headers: {
444
+ "Content-Type": "application/json"
445
+ }
446
+ },
447
+ paramsType: {
448
+ InstanceId: "String",
449
+ BackupName: "String"
450
+ }
451
+ },
452
+ UpdateBackupRule: {
453
+ url: "/",
454
+ method: "POST",
455
+ config: {
456
+ query: {
457
+ Version: "2021-05-20",
458
+ Action: "UpdateBackupRule"
459
+ },
460
+ headers: {
461
+ "Content-Type": "application/json"
462
+ }
463
+ },
464
+ paramsType: {
465
+ InstanceId: "String",
466
+ PreferredBackupTime: "String",
467
+ EnableAutobackup: "Boolean",
468
+ EnableIncremental: "Boolean"
469
+ }
470
+ },
471
+ DeleteBackup: {
472
+ url: "/",
473
+ method: "DELETE",
474
+ config: {
475
+ query: {
476
+ Version: "2021-05-20",
477
+ Action: "DeleteBackup"
478
+ },
479
+ headers: {
480
+ "Content-Type": "application/json"
481
+ }
482
+ },
483
+ paramsType: {
484
+ InstanceId: "String",
485
+ BackupIds: "String"
486
+ }
487
+ },
488
+ CreateRestore: {
489
+ url: "/",
490
+ method: "POST",
491
+ config: {
492
+ query: {
493
+ Version: "2021-05-20",
494
+ Action: "CreateRestore"
495
+ },
496
+ headers: {
497
+ "Content-Type": "application/json"
498
+ }
499
+ },
500
+ paramsType: {
501
+ InstanceId: "String",
502
+ BackupId: "String"
503
+ }
504
+ },
505
+ OpenTiMonitor: {
506
+ url: "/",
507
+ method: "POST",
508
+ config: {
509
+ query: {
510
+ Version: "2021-05-20",
511
+ Action: "OpenTiMonitor"
512
+ },
513
+ headers: {
514
+ "Content-Type": "application/json"
515
+ }
516
+ },
517
+ paramsType: {
518
+ InstanceId: "String"
519
+ }
520
+ },
521
+ CreateTask: {
522
+ url: "/",
523
+ method: "POST",
524
+ config: {
525
+ query: {
526
+ Version: "2021-05-20",
527
+ Action: "CreateTask"
528
+ },
529
+ headers: {
530
+ "Content-Type": "application/json"
531
+ }
532
+ },
533
+ paramsType: {
534
+ InstanceId: "String",
535
+ TaskName: "String",
536
+ TargetId: "String",
537
+ VpcId: "String",
538
+ VnetId: "String",
539
+ TargetType: "String",
540
+ TargetMySQL: "Object",
541
+ TargetKafka: "Object"
542
+ }
543
+ },
544
+ OperationTasks: {
545
+ url: "/",
546
+ method: "POST",
547
+ config: {
548
+ query: {
549
+ Version: "2021-05-20",
550
+ Action: "OperationTasks"
551
+ },
552
+ headers: {
553
+ "Content-Type": "application/json"
554
+ }
555
+ },
556
+ paramsType: {
557
+ InstanceId: "String",
558
+ TaskList: "String",
559
+ Operation: "String"
560
+ }
561
+ },
562
+ CheckTaskName: {
563
+ url: "/",
564
+ method: "GET",
565
+ config: {
566
+ query: {
567
+ Version: "2021-05-20",
568
+ Action: "CheckTaskName"
569
+ },
570
+ headers: {
571
+ "Content-Type": "application/json"
572
+ }
573
+ },
574
+ paramsType: {
575
+ InstanceId: "String"
576
+ }
577
+ },
578
+ DescribeTask: {
579
+ url: "/",
580
+ method: "GET",
581
+ config: {
582
+ query: {
583
+ Version: "2021-05-20",
584
+ Action: "DescribeTask"
585
+ },
586
+ headers: {
587
+ "Content-Type": "application/json"
588
+ }
589
+ },
590
+ paramsType: {
591
+ InstanceId: "String",
592
+ TaskName: "String"
593
+ }
594
+ },
595
+ ListTasks: {
596
+ url: "/",
597
+ method: "POST",
598
+ config: {
599
+ query: {
600
+ Version: "2021-05-20",
601
+ Action: "ListTasks"
602
+ },
603
+ headers: {
604
+ "Content-Type": "application/json"
605
+ }
606
+ },
607
+ paramsType: {
608
+ InstanceId: "String"
609
+ }
610
+ },
611
+ DescribeDatabases: {
612
+ url: "/",
613
+ method: "GET",
614
+ config: {
615
+ query: {
616
+ Version: "2021-05-20",
617
+ Action: "DescribeDatabases"
618
+ },
619
+ headers: {
620
+ "Content-Type": "application/json"
621
+ }
622
+ },
623
+ paramsType: {
624
+ InstanceId: "String"
625
+ }
626
+ },
627
+ DescribeAccounts: {
628
+ url: "/",
629
+ method: "GET",
630
+ config: {
631
+ query: {
632
+ Version: "2021-05-20",
633
+ Action: "DescribeAccounts"
634
+ },
635
+ headers: {
636
+ "Content-Type": "application/json"
637
+ }
638
+ },
639
+ paramsType: {
640
+ InstanceId: "String"
641
+ }
642
+ },
643
+ CreateAccount: {
644
+ url: "/",
645
+ method: "POST",
646
+ config: {
647
+ query: {
648
+ Version: "2021-05-20",
649
+ Action: "CreateAccount"
650
+ },
651
+ headers: {
652
+ "Content-Type": "application/json"
653
+ }
654
+ },
655
+ paramsType: {
656
+ InstanceId: "String",
657
+ AccountName: "String",
658
+ AccountPassword: "String",
659
+ Describe: "String",
660
+ Privileges: "String"
661
+ }
662
+ },
663
+ DeleteAccount: {
664
+ url: "/",
665
+ method: "POST",
666
+ config: {
667
+ query: {
668
+ Version: "2021-05-20",
669
+ Action: "DeleteAccount"
670
+ },
671
+ headers: {
672
+ "Content-Type": "application/json"
673
+ }
674
+ },
675
+ paramsType: {
676
+ InstanceId: "String",
677
+ AccountName: "String"
678
+ }
679
+ },
680
+ ModifyAccountInfo: {
681
+ url: "/",
682
+ method: "POST",
683
+ config: {
684
+ query: {
685
+ Version: "2021-05-20",
686
+ Action: "ModifyAccountInfo"
687
+ },
688
+ headers: {
689
+ "Content-Type": "application/json"
690
+ }
691
+ },
692
+ paramsType: {
693
+ InstanceId: "String",
694
+ AccountName: "String",
695
+ AccountPassword: "String",
696
+ AccountType: "String"
697
+ }
698
+ },
699
+ ModifyAccountPrivileges: {
700
+ url: "/",
701
+ method: "POST",
702
+ config: {
703
+ query: {
704
+ Version: "2021-05-20",
705
+ Action: "ModifyAccountPrivileges"
706
+ },
707
+ headers: {
708
+ "Content-Type": "application/json"
709
+ }
710
+ },
711
+ paramsType: {
712
+ InstanceId: "String",
713
+ AccountName: "String",
714
+ OldPrivileges: "String",
715
+ NewPrivileges: "String"
716
+ }
717
+ },
718
+ ConfigurationInstanceEip: {
719
+ url: "/",
720
+ method: "GET",
721
+ config: {
722
+ query: {
723
+ Version: "2021-05-20",
724
+ Action: "ConfigurationInstanceEip"
725
+ },
726
+ headers: {
727
+ "Content-Type": "application/json"
728
+ }
729
+ },
730
+ paramsType: {
731
+ InstanceId: "String",
732
+ Operation: "String",
733
+ EipPort: "Int"
734
+ }
735
+ },
736
+ UpdateInstanceTrialOrder: {
737
+ url: "/",
738
+ method: "GET",
739
+ config: {
740
+ query: {
741
+ Version: "2021-05-20",
742
+ Action: "UpdateInstanceTrialOrder"
743
+ },
744
+ headers: {
745
+ "Content-Type": "application/json"
746
+ }
747
+ },
748
+ paramsType: {
749
+ InstanceId: "String",
750
+ OperateType: "String",
751
+ BillType: "Int",
752
+ Duration: "Int"
753
+ }
360
754
  }
361
755
  });
362
756
  }
@@ -0,0 +1,97 @@
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: "trade.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: "trade"
22
+ }
23
+ }
24
+ });
25
+ _defineProperty(this, "_apiList", {
26
+ ListInstanceSupportBillTypes: {
27
+ url: "/",
28
+ method: "GET",
29
+ config: {
30
+ query: {
31
+ Version: "2025-02-20",
32
+ Action: "ListInstanceSupportBillTypes"
33
+ },
34
+ headers: {
35
+ "Content-Type": "application/json"
36
+ }
37
+ },
38
+ paramsType: {
39
+ instanceId: "String"
40
+ }
41
+ },
42
+ AddTrialToBuyTask: {
43
+ url: "/",
44
+ method: "POST",
45
+ config: {
46
+ query: {
47
+ Version: "2025-02-20",
48
+ Action: "AddTrialToBuyTask"
49
+ },
50
+ headers: {
51
+ "Content-Type": "application/json"
52
+ }
53
+ },
54
+ paramsType: {
55
+ instanceId: "String",
56
+ billType: "Int",
57
+ duration: "Int",
58
+ autoTrialToBuyDate: "String"
59
+ }
60
+ },
61
+ DeleteTrialToBuyTask: {
62
+ url: "/",
63
+ method: "POST",
64
+ config: {
65
+ query: {
66
+ Version: "2025-02-20",
67
+ Action: "DeleteTrialToBuyTask"
68
+ },
69
+ headers: {
70
+ "Content-Type": "application/json"
71
+ }
72
+ },
73
+ paramsType: {
74
+ instanceId: "String"
75
+ }
76
+ },
77
+ CreateTrialToBuyNow: {
78
+ url: "/",
79
+ method: "POST",
80
+ config: {
81
+ query: {
82
+ Version: "2025-02-20",
83
+ Action: "CreateTrialToBuyNow"
84
+ },
85
+ headers: {
86
+ "Content-Type": "application/json"
87
+ }
88
+ },
89
+ paramsType: {
90
+ instanceId: "String",
91
+ billType: "Int",
92
+ duration: "Int"
93
+ }
94
+ }
95
+ });
96
+ }
97
+ };