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
@@ -23,26 +23,6 @@ module.exports = class Client extends BaseClient {
23
23
  }
24
24
  });
25
25
  _defineProperty(this, "_apiList", {
26
- DescribeCluster: {
27
- url: "/",
28
- method: "GET",
29
- config: {
30
- query: {
31
- Version: "2019-08-06",
32
- Action: "DescribeCluster"
33
- },
34
- headers: {
35
- "Content-Type": "application/x-www-form-urlencoded"
36
- }
37
- },
38
- paramsType: {
39
- ClusterId: "String",
40
- Marker: "Int",
41
- MaxResults: "String",
42
- Search: "String",
43
- Filter: "Filter"
44
- }
45
- },
46
26
  DescribeClusterInstance: {
47
27
  url: "/",
48
28
  method: "GET",
@@ -129,9 +109,7 @@ module.exports = class Client extends BaseClient {
129
109
  "Content-Type": "application/x-www-form-urlencoded"
130
110
  }
131
111
  },
132
- paramsType: {
133
- ImageId: "Filter"
134
- }
112
+ paramsType: {}
135
113
  },
136
114
  AddClusterInstances: {
137
115
  url: "/",
@@ -185,7 +163,8 @@ module.exports = class Client extends BaseClient {
185
163
  InstanceId: "Filter",
186
164
  Filter: "Filter",
187
165
  Marker: "Int",
188
- MaxResults: "String"
166
+ MaxResults: "Int",
167
+ OperatorType: "String"
189
168
  }
190
169
  },
191
170
  AddClusterEpcInstances: {
@@ -245,23 +224,6 @@ module.exports = class Client extends BaseClient {
245
224
  ExistedInstanceKecSet: "Filter"
246
225
  }
247
226
  },
248
- ForceRemoveClusterInstance: {
249
- url: "/",
250
- method: "POST",
251
- config: {
252
- query: {
253
- Version: "2019-08-06",
254
- Action: "ForceRemoveClusterInstance"
255
- },
256
- headers: {
257
- "Content-Type": "application/x-www-form-urlencoded"
258
- }
259
- },
260
- paramsType: {
261
- ClusterId: "String",
262
- InstanceId: "Filter"
263
- }
264
- },
265
227
  CreateNodePool: {
266
228
  url: "/",
267
229
  method: "GET",
@@ -283,7 +245,9 @@ module.exports = class Client extends BaseClient {
283
245
  Taint: "Filter",
284
246
  MinSize: "Int",
285
247
  MaxSize: "Int",
286
- DesiredCapacity: "Int"
248
+ DesiredCapacity: "Int",
249
+ EnableDelProtection: "Boolean",
250
+ FailureAutoDelete: "Boolean"
287
251
  }
288
252
  },
289
253
  DescribeNodePool: {
@@ -321,7 +285,7 @@ module.exports = class Client extends BaseClient {
321
285
  paramsType: {
322
286
  ClusterId: "String",
323
287
  NodePoolId: "Filter",
324
- InstanceDeleteMode: "Boolean"
288
+ InstanceDeleteMode: "String"
325
289
  }
326
290
  },
327
291
  ModifyNodePool: {
@@ -476,6 +440,233 @@ module.exports = class Client extends BaseClient {
476
440
  paramsType: {
477
441
  ImageId: "Filter"
478
442
  }
443
+ },
444
+ EditEventCollecting: {
445
+ url: "/",
446
+ method: "GET",
447
+ config: {
448
+ query: {
449
+ Version: "2019-08-06",
450
+ Action: "EditEventCollecting"
451
+ },
452
+ headers: {
453
+ "Content-Type": "application/x-www-form-urlencoded"
454
+ }
455
+ },
456
+ paramsType: {
457
+ ClusterId: "String",
458
+ EnableEventCollecting: "Boolean"
459
+ }
460
+ },
461
+ DescribeNodePoolSummary: {
462
+ url: "/",
463
+ method: "GET",
464
+ config: {
465
+ query: {
466
+ Version: "2019-08-06",
467
+ Action: "DescribeNodePoolSummary"
468
+ },
469
+ headers: {
470
+ "Content-Type": "application/x-www-form-urlencoded"
471
+ }
472
+ },
473
+ paramsType: {
474
+ ClusterId: "String"
475
+ }
476
+ },
477
+ CreateLogRule: {
478
+ url: "/",
479
+ method: "GET",
480
+ config: {
481
+ query: {
482
+ Version: "2019-08-06",
483
+ Action: "CreateLogRule"
484
+ },
485
+ headers: {
486
+ "Content-Type": "application/x-www-form-urlencoded"
487
+ }
488
+ },
489
+ paramsType: {
490
+ ClusterId: "String",
491
+ RuleName: "String",
492
+ InputConfig: "Object",
493
+ OutputConfig: "Object"
494
+ }
495
+ },
496
+ DescribeClusterSummary: {
497
+ url: "/",
498
+ method: "GET",
499
+ config: {
500
+ query: {
501
+ Version: "2019-08-06",
502
+ Action: "DescribeClusterSummary"
503
+ },
504
+ headers: {
505
+ "Content-Type": "application/x-www-form-urlencoded"
506
+ }
507
+ },
508
+ paramsType: {}
509
+ },
510
+ UpdateNodePoolDelProtection: {
511
+ url: "/",
512
+ method: "GET",
513
+ config: {
514
+ query: {
515
+ Version: "2019-08-06",
516
+ Action: "UpdateNodePoolDelProtection"
517
+ },
518
+ headers: {
519
+ "Content-Type": "application/x-www-form-urlencoded"
520
+ }
521
+ },
522
+ paramsType: {
523
+ NodePoolId: "String",
524
+ EnableDelProtection: "Boolean"
525
+ }
526
+ },
527
+ DescribeRelease: {
528
+ url: "/",
529
+ method: "GET",
530
+ config: {
531
+ query: {
532
+ Version: "2019-08-06",
533
+ Action: "DescribeRelease"
534
+ },
535
+ headers: {
536
+ "Content-Type": "application/x-www-form-urlencoded"
537
+ }
538
+ },
539
+ paramsType: {
540
+ ClusterId: "String",
541
+ Filter: "String"
542
+ }
543
+ },
544
+ DescribeReleaseHistory: {
545
+ url: "/",
546
+ method: "GET",
547
+ config: {
548
+ query: {
549
+ Version: "2019-08-06",
550
+ Action: "DescribeReleaseHistory"
551
+ },
552
+ headers: {
553
+ "Content-Type": "application/x-www-form-urlencoded"
554
+ }
555
+ },
556
+ paramsType: {
557
+ ClusterId: "String",
558
+ ReleaseName: "String",
559
+ Namespace: "String"
560
+ }
561
+ },
562
+ DescribeReleaseDetail: {
563
+ url: "/",
564
+ method: "GET",
565
+ config: {
566
+ query: {
567
+ Version: "2019-08-06",
568
+ Action: "DescribeReleaseDetail"
569
+ },
570
+ headers: {
571
+ "Content-Type": "application/x-www-form-urlencoded"
572
+ }
573
+ },
574
+ paramsType: {
575
+ ClusterId: "String",
576
+ ReleaseName: "String",
577
+ Namespace: "String"
578
+ }
579
+ },
580
+ DeleteRelease: {
581
+ url: "/",
582
+ method: "GET",
583
+ config: {
584
+ query: {
585
+ Version: "2019-08-06",
586
+ Action: "DeleteRelease"
587
+ },
588
+ headers: {
589
+ "Content-Type": "application/x-www-form-urlencoded"
590
+ }
591
+ },
592
+ paramsType: {
593
+ ClusterId: "String",
594
+ ReleaseName: "String",
595
+ Namespace: "String"
596
+ }
597
+ },
598
+ RollbackRelease: {
599
+ url: "/",
600
+ method: "GET",
601
+ config: {
602
+ query: {
603
+ Version: "2019-08-06",
604
+ Action: "RollbackRelease"
605
+ },
606
+ headers: {
607
+ "Content-Type": "application/x-www-form-urlencoded"
608
+ }
609
+ },
610
+ paramsType: {
611
+ ClusterId: "String",
612
+ ReleaseName: "String",
613
+ Namespace: "String",
614
+ ReleaseVersion: "Int"
615
+ }
616
+ },
617
+ InstallRelease: {
618
+ url: "/",
619
+ method: "POST",
620
+ config: {
621
+ query: {
622
+ Version: "2019-08-06",
623
+ Action: "InstallRelease"
624
+ },
625
+ headers: {
626
+ "Content-Type": "application/x-www-form-urlencoded"
627
+ }
628
+ },
629
+ paramsType: {
630
+ ClusterId: "String",
631
+ Namespace: "String",
632
+ ReleaseName: "String",
633
+ ChartSource: "String",
634
+ ChartNamespace: "String",
635
+ ChartName: "String",
636
+ ChartVersion: "String",
637
+ ChartUrl: "String",
638
+ ChartRepoType: "String",
639
+ ChartRepoUsername: "String",
640
+ ChartRepoPassword: "String",
641
+ Values: "String"
642
+ }
643
+ },
644
+ UpgradeRelease: {
645
+ url: "/",
646
+ method: "POST",
647
+ config: {
648
+ query: {
649
+ Version: "2019-08-06",
650
+ Action: "UpgradeRelease"
651
+ },
652
+ headers: {
653
+ "Content-Type": "application/x-www-form-urlencoded"
654
+ }
655
+ },
656
+ paramsType: {
657
+ ClusterId: "String",
658
+ Namespace: "String",
659
+ ReleaseName: "String",
660
+ ChartSource: "String",
661
+ ChartNamespace: "String",
662
+ ChartName: "String",
663
+ ChartVersion: "String",
664
+ ChartUrl: "String",
665
+ ChartRepoType: "String",
666
+ ChartRepoUsername: "String",
667
+ ChartRepoPassword: "String",
668
+ Values: "String"
669
+ }
479
670
  }
480
671
  });
481
672
  }
@@ -47,6 +47,7 @@ module.exports = class Client extends BaseClient {
47
47
  K8sVersion: "String",
48
48
  ReserveSubnetId: "String",
49
49
  PublicApiServer: "String",
50
+ ExposePublicApiServer: "Boolean",
50
51
  MaxPodPerNode: "String",
51
52
  MasterEtcdSeparate: "Boolean",
52
53
  ManagedClusterMultiMaster: "Filter",
@@ -54,8 +55,7 @@ module.exports = class Client extends BaseClient {
54
55
  ExistedInstanceForEpc: "Filter",
55
56
  Component: "Filter",
56
57
  ControlPlaneLog: "Object",
57
- ServerlessClusterMaster: "Object",
58
- ExposePublicApiServer: "Boolean"
58
+ EnableDelProtection: "Boolean"
59
59
  }
60
60
  }
61
61
  });
@@ -0,0 +1,193 @@
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: "kce.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: "kce"
22
+ }
23
+ }
24
+ });
25
+ _defineProperty(this, "_apiList", {
26
+ DescribeEventLogs: {
27
+ url: "/",
28
+ method: "POST",
29
+ config: {
30
+ query: {
31
+ Version: "2023-01-01",
32
+ Action: "DescribeEventLogs"
33
+ },
34
+ headers: {
35
+ "Content-Type": "application/x-www-form-urlencoded"
36
+ }
37
+ },
38
+ paramsType: {
39
+ ClusterId: "String",
40
+ ClusterName: "String",
41
+ NodeId: "String",
42
+ NodeName: "String",
43
+ Inner: "Boolean",
44
+ Marker: "Int",
45
+ MaxResults: "Int"
46
+ }
47
+ },
48
+ CreateAddonInstance: {
49
+ url: "/",
50
+ method: "POST",
51
+ config: {
52
+ query: {
53
+ Version: "2023-01-01",
54
+ Action: "CreateAddonInstance"
55
+ },
56
+ headers: {
57
+ "Content-Type": "application/x-www-form-urlencoded"
58
+ }
59
+ },
60
+ paramsType: {}
61
+ },
62
+ DeleteAddonInstance: {
63
+ url: "/",
64
+ method: "POST",
65
+ config: {
66
+ query: {
67
+ Version: "2023-01-01",
68
+ Action: "DeleteAddonInstance"
69
+ },
70
+ headers: {
71
+ "Content-Type": "application/x-www-form-urlencoded"
72
+ }
73
+ },
74
+ paramsType: {
75
+ ClusterName: "String",
76
+ ClusterId: "String",
77
+ AddonId: "String",
78
+ InstanceId: "String"
79
+ }
80
+ },
81
+ DescribeAddonInstances: {
82
+ url: "/",
83
+ method: "POST",
84
+ config: {
85
+ query: {
86
+ Version: "2023-01-01",
87
+ Action: "DescribeAddonInstances"
88
+ },
89
+ headers: {
90
+ "Content-Type": "application/x-www-form-urlencoded"
91
+ }
92
+ },
93
+ paramsType: {
94
+ CulsterId: "String",
95
+ ClusterName: "String",
96
+ Name: "String",
97
+ AddonIds: "Array"
98
+ }
99
+ },
100
+ DescribeAddonList: {
101
+ url: "/",
102
+ method: "POST",
103
+ config: {
104
+ query: {
105
+ Version: "2023-01-01",
106
+ Action: "DescribeAddonList"
107
+ },
108
+ headers: {
109
+ "Content-Type": "application/x-www-form-urlencoded"
110
+ }
111
+ },
112
+ paramsType: {
113
+ Name: "String",
114
+ MaxResults: "Int",
115
+ Marker: "Int"
116
+ }
117
+ },
118
+ DescribeComponentParams: {
119
+ url: "/",
120
+ method: "POST",
121
+ config: {
122
+ query: {
123
+ Version: "2023-01-01",
124
+ Action: "DescribeComponentParams"
125
+ },
126
+ headers: {
127
+ "Content-Type": "application/x-www-form-urlencoded"
128
+ }
129
+ },
130
+ paramsType: {
131
+ ClusterId: "String",
132
+ Components: "Array",
133
+ Marker: "Int",
134
+ MaxResults: "Int"
135
+ }
136
+ },
137
+ DescribeNetwork: {
138
+ url: "/",
139
+ method: "POST",
140
+ config: {
141
+ query: {
142
+ Version: "2023-01-01",
143
+ Action: "DescribeNetwork"
144
+ },
145
+ headers: {
146
+ "Content-Type": "application/x-www-form-urlencoded"
147
+ }
148
+ },
149
+ paramsType: {
150
+ ClusterId: "String",
151
+ ClusterName: "String"
152
+ }
153
+ },
154
+ DescribeNodeComponents: {
155
+ url: "/",
156
+ method: "POST",
157
+ config: {
158
+ query: {
159
+ Version: "2023-01-01",
160
+ Action: "DescribeNodeComponents"
161
+ },
162
+ headers: {
163
+ "Content-Type": "application/x-www-form-urlencoded"
164
+ }
165
+ },
166
+ paramsType: {
167
+ ClusterId: "String",
168
+ ClusterName: "String",
169
+ NodeNames: "Array",
170
+ NodeIds: "String",
171
+ Marker: "Int",
172
+ MaxResults: "Int"
173
+ }
174
+ },
175
+ DescribeComponentList: {
176
+ url: "/",
177
+ method: "GET",
178
+ config: {
179
+ query: {
180
+ Version: "2023-01-01",
181
+ Action: "DescribeComponentList"
182
+ },
183
+ headers: {
184
+ "Content-Type": "application/x-www-form-urlencoded"
185
+ }
186
+ },
187
+ paramsType: {
188
+ K8sVersion: "String"
189
+ }
190
+ }
191
+ });
192
+ }
193
+ };