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,7 +25,7 @@ module.exports = class Client extends BaseClient {
25
25
  Action: "ListInstance",
26
26
  },
27
27
  headers: {
28
- "Content-Type": "application/json",
28
+ "Content-Type": "application/x-www-form-urlencoded",
29
29
  },
30
30
  },
31
31
  paramsType: {
@@ -47,7 +47,7 @@ module.exports = class Client extends BaseClient {
47
47
  Action: "DescribeInstance",
48
48
  },
49
49
  headers: {
50
- "Content-Type": "application/json",
50
+ "Content-Type": "application/x-www-form-urlencoded",
51
51
  },
52
52
  },
53
53
  paramsType: {
@@ -89,6 +89,7 @@ module.exports = class Client extends BaseClient {
89
89
  NodeNum: "Int",
90
90
  PreferredBackupTime: "String",
91
91
  SecurityGroupId: "String",
92
+ ProductWhat: "Int",
92
93
  },
93
94
  },
94
95
  DeleteInstance: {
@@ -100,7 +101,7 @@ module.exports = class Client extends BaseClient {
100
101
  Action: "DeleteInstance",
101
102
  },
102
103
  headers: {
103
- "Content-Type": "application/json",
104
+ "Content-Type": "application/x-www-form-urlencoded",
104
105
  },
105
106
  },
106
107
  paramsType: {
@@ -108,6 +109,22 @@ module.exports = class Client extends BaseClient {
108
109
  DeleteDirectly: "Boolean",
109
110
  },
110
111
  },
112
+ RestartInstance: {
113
+ url: "/",
114
+ method: "POST",
115
+ config: {
116
+ query: {
117
+ Version: "2021-01-01",
118
+ Action: "RestartInstance",
119
+ },
120
+ headers: {
121
+ "Content-Type": "application/x-www-form-urlencoded",
122
+ },
123
+ },
124
+ paramsType: {
125
+ instanceIds: "String",
126
+ },
127
+ },
111
128
  RenameInstance: {
112
129
  url: "/",
113
130
  method: "POST",
@@ -134,7 +151,7 @@ module.exports = class Client extends BaseClient {
134
151
  Action: "ListSecurityGroup",
135
152
  },
136
153
  headers: {
137
- "Content-Type": "application/json",
154
+ "Content-Type": "application/x-www-form-urlencoded",
138
155
  },
139
156
  },
140
157
  paramsType: {
@@ -150,7 +167,7 @@ module.exports = class Client extends BaseClient {
150
167
  Action: "DescribeSecurityGroup",
151
168
  },
152
169
  headers: {
153
- "Content-Type": "application/json",
170
+ "Content-Type": "application/x-www-form-urlencoded",
154
171
  },
155
172
  },
156
173
  paramsType: {
@@ -185,7 +202,7 @@ module.exports = class Client extends BaseClient {
185
202
  Action: "DeleteSecurityGroup",
186
203
  },
187
204
  headers: {
188
- "Content-Type": "application/json",
205
+ "Content-Type": "application/x-www-form-urlencoded",
189
206
  },
190
207
  },
191
208
  paramsType: {
@@ -294,7 +311,7 @@ module.exports = class Client extends BaseClient {
294
311
  Action: "DeleteSecurityRule",
295
312
  },
296
313
  headers: {
297
- "Content-Type": "application/json",
314
+ "Content-Type": "application/x-www-form-urlencoded",
298
315
  },
299
316
  },
300
317
  paramsType: {
@@ -312,7 +329,7 @@ module.exports = class Client extends BaseClient {
312
329
  Action: "ListSecuredInstance",
313
330
  },
314
331
  headers: {
315
- "Content-Type": "application/json",
332
+ "Content-Type": "application/x-www-form-urlencoded",
316
333
  },
317
334
  },
318
335
  paramsType: {
@@ -333,7 +350,7 @@ module.exports = class Client extends BaseClient {
333
350
  Action: "ListUnsecuredInstance",
334
351
  },
335
352
  headers: {
336
- "Content-Type": "application/json",
353
+ "Content-Type": "application/x-www-form-urlencoded",
337
354
  },
338
355
  },
339
356
  paramsType: {
@@ -352,7 +369,7 @@ module.exports = class Client extends BaseClient {
352
369
  Action: "ListRecycledInstance",
353
370
  },
354
371
  headers: {
355
- "Content-Type": "application/json",
372
+ "Content-Type": "application/x-www-form-urlencoded",
356
373
  },
357
374
  },
358
375
  paramsType: {
@@ -389,7 +406,7 @@ module.exports = class Client extends BaseClient {
389
406
  Action: "DropRecycledInstance",
390
407
  },
391
408
  headers: {
392
- "Content-Type": "application/json",
409
+ "Content-Type": "application/x-www-form-urlencoded",
393
410
  },
394
411
  },
395
412
  paramsType: {
@@ -405,7 +422,7 @@ module.exports = class Client extends BaseClient {
405
422
  Action: "ListRegion",
406
423
  },
407
424
  headers: {
408
- "Content-Type": "application/json",
425
+ "Content-Type": "application/x-www-form-urlencoded",
409
426
  },
410
427
  },
411
428
  paramsType: {
@@ -421,7 +438,7 @@ module.exports = class Client extends BaseClient {
421
438
  Action: "DescRegion",
422
439
  },
423
440
  headers: {
424
- "Content-Type": "application/json",
441
+ "Content-Type": "application/x-www-form-urlencoded",
425
442
  },
426
443
  },
427
444
  paramsType: {
@@ -474,7 +491,7 @@ module.exports = class Client extends BaseClient {
474
491
  Action: "DescribeEngineDefaultParameters",
475
492
  },
476
493
  headers: {
477
- "Content-Type": "application/json",
494
+ "Content-Type": "application/x-www-form-urlencoded",
478
495
  },
479
496
  },
480
497
  paramsType: {
@@ -491,12 +508,12 @@ module.exports = class Client extends BaseClient {
491
508
  Action: "ModifyDBParameterGroup",
492
509
  },
493
510
  headers: {
494
- "Content-Type": "application/x-www-form-urlencoded",
511
+ "Content-Type": "application/json",
495
512
  },
496
513
  },
497
514
  paramsType: {
498
515
  InstanceId: "String",
499
- Parameters: "Filter",
516
+ Parameters: "String",
500
517
  ConfigType: "String",
501
518
  },
502
519
  },
@@ -509,7 +526,7 @@ module.exports = class Client extends BaseClient {
509
526
  Action: "DescribeDBInstanceParameters",
510
527
  },
511
528
  headers: {
512
- "Content-Type": "application/json",
529
+ "Content-Type": "application/x-www-form-urlencoded",
513
530
  },
514
531
  },
515
532
  paramsType: {
@@ -526,7 +543,7 @@ module.exports = class Client extends BaseClient {
526
543
  Action: "ResetDBParameter",
527
544
  },
528
545
  headers: {
529
- "Content-Type": "application/json",
546
+ "Content-Type": "application/x-www-form-urlencoded",
530
547
  },
531
548
  },
532
549
  paramsType: {
@@ -534,5 +551,173 @@ module.exports = class Client extends BaseClient {
534
551
  ConfigType: "String",
535
552
  },
536
553
  },
554
+ DescribeBuckets: {
555
+ url: "/",
556
+ method: "GET",
557
+ config: {
558
+ query: {
559
+ Version: "2021-01-01",
560
+ Action: "DescribeBuckets",
561
+ },
562
+ headers: {
563
+ "Content-Type": "application/json",
564
+ },
565
+ },
566
+ paramsType: {},
567
+ },
568
+ OperateHotAndColdSeparation: {
569
+ url: "/",
570
+ method: "GET",
571
+ config: {
572
+ query: {
573
+ Version: "2021-01-01",
574
+ Action: "OperateHotAndColdSeparation",
575
+ },
576
+ headers: {
577
+ "Content-Type": "application/json",
578
+ },
579
+ },
580
+ paramsType: {},
581
+ },
582
+ CreateInstanceAccount: {
583
+ url: "/",
584
+ method: "POST",
585
+ config: {
586
+ query: {
587
+ Version: "2021-01-01",
588
+ Action: "CreateInstanceAccount",
589
+ },
590
+ headers: {
591
+ "Content-Type": "application/json",
592
+ },
593
+ },
594
+ paramsType: {
595
+ Name: "String",
596
+ Password: "String",
597
+ InstanceId: "String",
598
+ Description: "String",
599
+ },
600
+ },
601
+ ModifyInstanceAccountPrivileges: {
602
+ url: "/",
603
+ method: "POST",
604
+ config: {
605
+ query: {
606
+ Version: "2021-01-01",
607
+ Action: "ModifyInstanceAccountPrivileges",
608
+ },
609
+ headers: {
610
+ "Content-Type": "application/json",
611
+ },
612
+ },
613
+ paramsType: {
614
+ InstanceId: "String",
615
+ InstanceAccountName: "String",
616
+ InstanceAccountPrivileges: "Filter",
617
+ },
618
+ },
619
+ DeleteInstanceAccount: {
620
+ url: "/",
621
+ method: "GET",
622
+ config: {
623
+ query: {
624
+ Version: "2021-01-01",
625
+ Action: "DeleteInstanceAccount",
626
+ },
627
+ headers: {
628
+ "Content-Type": "application/json",
629
+ },
630
+ },
631
+ paramsType: {
632
+ InstanceId: "String",
633
+ InstanceAccountName: "String",
634
+ },
635
+ },
636
+ DescribeInstanceAccounts: {
637
+ url: "/",
638
+ method: "GET",
639
+ config: {
640
+ query: {
641
+ Version: "2021-01-01",
642
+ Action: "DescribeInstanceAccounts",
643
+ },
644
+ headers: {
645
+ "Content-Type": "application/json",
646
+ },
647
+ },
648
+ paramsType: {
649
+ InstanceId: "String",
650
+ },
651
+ },
652
+ DescribeInstanceDatabases: {
653
+ url: "/",
654
+ method: "GET",
655
+ config: {
656
+ query: {
657
+ Version: "2021-01-01",
658
+ Action: "DescribeInstanceDatabases",
659
+ },
660
+ headers: {
661
+ "Content-Type": "application/json",
662
+ },
663
+ },
664
+ paramsType: {
665
+ InstanceId: "String",
666
+ },
667
+ },
668
+ ModifyInstanceAccountInfo: {
669
+ url: "/",
670
+ method: "POST",
671
+ config: {
672
+ query: {
673
+ Version: "2021-01-01",
674
+ Action: "ModifyInstanceAccountInfo",
675
+ },
676
+ headers: {
677
+ "Content-Type": "application/json",
678
+ },
679
+ },
680
+ paramsType: {
681
+ InstanceId: "String",
682
+ InstanceAccountName: "String",
683
+ InstanceAccountPassword: "String",
684
+ InstanceAccountDescription: "String",
685
+ },
686
+ },
687
+ DescribeInstanceShardInfo: {
688
+ url: "/",
689
+ method: "GET",
690
+ config: {
691
+ query: {
692
+ Version: "2021-01-01",
693
+ Action: "DescribeInstanceShardInfo",
694
+ },
695
+ headers: {
696
+ "Content-Type": "application/x-www-form-urlencoded",
697
+ },
698
+ },
699
+ paramsType: {
700
+ InstanceId: "String",
701
+ },
702
+ },
703
+ UpdateInstanceTrialOrder: {
704
+ url: "/",
705
+ method: "GET",
706
+ config: {
707
+ query: {
708
+ Version: "2021-01-01",
709
+ Action: "UpdateInstanceTrialOrder",
710
+ },
711
+ headers: {
712
+ "Content-Type": "application/x-www-form-urlencoded",
713
+ },
714
+ },
715
+ paramsType: {
716
+ InstanceId: "String",
717
+ OperateType: "String",
718
+ Duration: "Int",
719
+ BillType: "Int",
720
+ },
721
+ },
537
722
  };
538
723
  };
@@ -0,0 +1,73 @@
1
+ const BaseClient = require("../../../base/BaseClient.js");
2
+
3
+ module.exports = class Client extends BaseClient {
4
+ _baseConfig = {
5
+ protocol: "http://",
6
+ endpoint: "cloud-advisor.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: "cloud-advisor",
15
+ },
16
+ },
17
+ };
18
+ _apiList = {
19
+ GetReport: {
20
+ url: "/",
21
+ method: "POST",
22
+ config: {
23
+ query: {
24
+ Version: "2025-06-10",
25
+ Action: "GetReport",
26
+ },
27
+ headers: {
28
+ "Content-Type": "application/json",
29
+ },
30
+ },
31
+ paramsType: {
32
+ taskIDs: "Array",
33
+ startTime: "String",
34
+ endTime: "String",
35
+ },
36
+ },
37
+ CreateTask: {
38
+ url: "/",
39
+ method: "POST",
40
+ config: {
41
+ query: {
42
+ Version: "2025-06-10",
43
+ Action: "CreateTask",
44
+ },
45
+ headers: {
46
+ "Content-Type": "application/json",
47
+ },
48
+ },
49
+ paramsType: {
50
+ inspectionItemIDs: "Array",
51
+ productGroupIds: "Array",
52
+ inspectionItemTypes: "Array",
53
+ },
54
+ },
55
+ ListInspectionItem: {
56
+ url: "/",
57
+ method: "POST",
58
+ config: {
59
+ query: {
60
+ Version: "2025-06-10",
61
+ Action: "ListInspectionItem",
62
+ },
63
+ headers: {
64
+ "Content-Type": "application/json",
65
+ },
66
+ },
67
+ paramsType: {
68
+ pageNum: "Int",
69
+ pageSize: "Int",
70
+ },
71
+ },
72
+ };
73
+ };