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
@@ -78,7 +78,7 @@ module.exports = class Client extends BaseClient {
78
78
  Action: "DescribeCacheCluster",
79
79
  },
80
80
  headers: {
81
- "Content-Type": "application/json",
81
+ "Content-Type": "application/x-www-form-urlencoded",
82
82
  },
83
83
  },
84
84
  paramsType: {
@@ -95,7 +95,7 @@ module.exports = class Client extends BaseClient {
95
95
  Action: "DescribeCacheClusters",
96
96
  },
97
97
  headers: {
98
- "Content-Type": "application/json",
98
+ "Content-Type": "application/x-www-form-urlencoded",
99
99
  },
100
100
  },
101
101
  paramsType: {
@@ -147,7 +147,6 @@ module.exports = class Client extends BaseClient {
147
147
  },
148
148
  },
149
149
  paramsType: {
150
- AvailableZone: "String",
151
150
  CacheId: "String",
152
151
  Name: "String",
153
152
  },
@@ -219,7 +218,7 @@ module.exports = class Client extends BaseClient {
219
218
  Action: "DescribeCacheDefaultParameters",
220
219
  },
221
220
  headers: {
222
- "Content-Type": "application/json",
221
+ "Content-Type": "application/x-www-form-urlencoded",
223
222
  },
224
223
  },
225
224
  paramsType: {
@@ -241,7 +240,7 @@ module.exports = class Client extends BaseClient {
241
240
  },
242
241
  paramsType: {
243
242
  AvailableZone: "String",
244
- CacheParameterGroupId: "String",
243
+ CacheParameterGroupIds: "String",
245
244
  CacheId: "String",
246
245
  },
247
246
  },
@@ -468,6 +467,7 @@ module.exports = class Client extends BaseClient {
468
467
  SnapshotId: "String",
469
468
  BucketName: "String",
470
469
  ObjectName: "String",
470
+ CacheId: "String",
471
471
  },
472
472
  },
473
473
  DescribeRegions: {
@@ -610,7 +610,7 @@ module.exports = class Client extends BaseClient {
610
610
  Action: "DescribeInstances",
611
611
  },
612
612
  headers: {
613
- "Content-Type": "application/json",
613
+ "Content-Type": "application/x-www-form-urlencoded",
614
614
  },
615
615
  },
616
616
  paramsType: {
@@ -703,7 +703,7 @@ module.exports = class Client extends BaseClient {
703
703
  Action: "DescribeSecurityGroup",
704
704
  },
705
705
  headers: {
706
- "Content-Type": "application/json",
706
+ "Content-Type": "application/x-www-form-urlencoded",
707
707
  },
708
708
  },
709
709
  paramsType: {
@@ -723,7 +723,7 @@ module.exports = class Client extends BaseClient {
723
723
  Action: "DescribeSecurityGroups",
724
724
  },
725
725
  headers: {
726
- "Content-Type": "application/json",
726
+ "Content-Type": "application/x-www-form-urlencoded",
727
727
  },
728
728
  },
729
729
  paramsType: {
@@ -808,6 +808,39 @@ module.exports = class Client extends BaseClient {
808
808
  Description: "String",
809
809
  },
810
810
  },
811
+ DescribeCacheReadonlyNode: {
812
+ url: "/",
813
+ method: "GET",
814
+ config: {
815
+ query: {
816
+ Version: "2016-07-01",
817
+ Action: "DescribeCacheReadonlyNode",
818
+ },
819
+ headers: {
820
+ "Content-Type": "application/json",
821
+ },
822
+ },
823
+ paramsType: {
824
+ CacheId: "String",
825
+ },
826
+ },
827
+ AddCacheSlaveNode: {
828
+ url: "/",
829
+ method: "PUT",
830
+ config: {
831
+ query: {
832
+ Version: "2016-07-01",
833
+ Action: "AddCacheSlaveNode",
834
+ },
835
+ headers: {
836
+ "Content-Type": "application/json",
837
+ },
838
+ },
839
+ paramsType: {
840
+ CacheId: "String",
841
+ SlaveVip: "String",
842
+ },
843
+ },
811
844
  DescribeHotKeys: {
812
845
  url: "/",
813
846
  method: "GET",
@@ -817,7 +850,7 @@ module.exports = class Client extends BaseClient {
817
850
  Action: "DescribeHotKeys",
818
851
  },
819
852
  headers: {
820
- "Content-Type": "application/json",
853
+ "Content-Type": "application/x-www-form-urlencoded",
821
854
  },
822
855
  },
823
856
  paramsType: {
@@ -838,7 +871,7 @@ module.exports = class Client extends BaseClient {
838
871
  Action: "AnalyzeHotKeys",
839
872
  },
840
873
  headers: {
841
- "Content-Type": "application/json",
874
+ "Content-Type": "application/x-www-form-urlencoded",
842
875
  },
843
876
  },
844
877
  paramsType: {
@@ -855,7 +888,7 @@ module.exports = class Client extends BaseClient {
855
888
  Action: "CloseDirectAccessToCluster",
856
889
  },
857
890
  headers: {
858
- "Content-Type": "application/json",
891
+ "Content-Type": "application/x-www-form-urlencoded",
859
892
  },
860
893
  },
861
894
  paramsType: {
@@ -872,7 +905,7 @@ module.exports = class Client extends BaseClient {
872
905
  Action: "OpenDirectAccessToCluster",
873
906
  },
874
907
  headers: {
875
- "Content-Type": "application/json",
908
+ "Content-Type": "application/x-www-form-urlencoded",
876
909
  },
877
910
  },
878
911
  paramsType: {
@@ -891,7 +924,7 @@ module.exports = class Client extends BaseClient {
891
924
  Action: "DescribeParentBackUpsSnapshots",
892
925
  },
893
926
  headers: {
894
- "Content-Type": "application/json",
927
+ "Content-Type": "application/x-www-form-urlencoded",
895
928
  },
896
929
  },
897
930
  paramsType: {
@@ -907,7 +940,7 @@ module.exports = class Client extends BaseClient {
907
940
  Action: "DescribeBackUpsSnapshotsDetail",
908
941
  },
909
942
  headers: {
910
- "Content-Type": "application/json",
943
+ "Content-Type": "application/x-www-form-urlencoded",
911
944
  },
912
945
  },
913
946
  paramsType: {
@@ -924,7 +957,7 @@ module.exports = class Client extends BaseClient {
924
957
  Action: "DeleteLevelSnapshots",
925
958
  },
926
959
  headers: {
927
- "Content-Type": "application/json",
960
+ "Content-Type": "application/x-www-form-urlencoded",
928
961
  },
929
962
  },
930
963
  paramsType: {
@@ -958,7 +991,7 @@ module.exports = class Client extends BaseClient {
958
991
  Action: "DescribeBigKeys",
959
992
  },
960
993
  headers: {
961
- "Content-Type": "application/json",
994
+ "Content-Type": "application/x-www-form-urlencoded",
962
995
  },
963
996
  },
964
997
  paramsType: {
@@ -974,7 +1007,7 @@ module.exports = class Client extends BaseClient {
974
1007
  Action: "DeleteBigKeysAnalyseResult",
975
1008
  },
976
1009
  headers: {
977
- "Content-Type": "application/json",
1010
+ "Content-Type": "application/x-www-form-urlencoded",
978
1011
  },
979
1012
  },
980
1013
  paramsType: {
@@ -991,7 +1024,7 @@ module.exports = class Client extends BaseClient {
991
1024
  Action: "AnalyzeBigKeys",
992
1025
  },
993
1026
  headers: {
994
- "Content-Type": "application/json",
1027
+ "Content-Type": "application/x-www-form-urlencoded",
995
1028
  },
996
1029
  },
997
1030
  paramsType: {
@@ -1008,12 +1041,10 @@ module.exports = class Client extends BaseClient {
1008
1041
  Action: "DescribeCreateSnapshotStatus",
1009
1042
  },
1010
1043
  headers: {
1011
- "Content-Type": "application/json",
1044
+ "Content-Type": "application/x-www-form-urlencoded",
1012
1045
  },
1013
1046
  },
1014
- paramsType: {
1015
- CacheId: "String",
1016
- },
1047
+ paramsType: {},
1017
1048
  },
1018
1049
  GetDailyAnalyzeSwitchState: {
1019
1050
  url: "/",
@@ -1094,5 +1125,116 @@ module.exports = class Client extends BaseClient {
1094
1125
  SlowLog: "Boolean",
1095
1126
  },
1096
1127
  },
1128
+ RestoreByTimePointSwitch: {
1129
+ url: "/",
1130
+ method: "POST",
1131
+ config: {
1132
+ query: {
1133
+ Version: "2016-07-01",
1134
+ Action: "RestoreByTimePointSwitch",
1135
+ },
1136
+ headers: {
1137
+ "Content-Type": "application/x-www-form-urlencoded",
1138
+ },
1139
+ },
1140
+ paramsType: {
1141
+ CacheId: "String",
1142
+ RestoreSwitch: "String",
1143
+ },
1144
+ },
1145
+ DescribeRestoreTimePoints: {
1146
+ url: "/",
1147
+ method: "GET",
1148
+ config: {
1149
+ query: {
1150
+ Version: "2016-07-01",
1151
+ Action: "DescribeRestoreTimePoints",
1152
+ },
1153
+ headers: {
1154
+ "Content-Type": "application/x-www-form-urlencoded",
1155
+ },
1156
+ },
1157
+ paramsType: {
1158
+ CacheId: "String",
1159
+ },
1160
+ },
1161
+ DescribeBigHotKeys: {
1162
+ url: "/",
1163
+ method: "GET",
1164
+ config: {
1165
+ query: {
1166
+ Version: "2016-07-01",
1167
+ Action: "DescribeBigHotKeys",
1168
+ },
1169
+ headers: {
1170
+ "Content-Type": "application/x-www-form-urlencoded",
1171
+ },
1172
+ },
1173
+ paramsType: {
1174
+ CacheId: "String",
1175
+ NodeId: "String",
1176
+ QueryType: "String",
1177
+ KeyType: "Int",
1178
+ KeyName: "String",
1179
+ StartQueryTime: "String",
1180
+ EndQueryTime: "String",
1181
+ PageSize: "Int",
1182
+ PageNum: "Int",
1183
+ },
1184
+ },
1185
+ DescribePlugins: {
1186
+ url: "/",
1187
+ method: "GET",
1188
+ config: {
1189
+ query: {
1190
+ Version: "2016-07-01",
1191
+ Action: "DescribePlugins",
1192
+ },
1193
+ headers: {
1194
+ "Content-Type": "application/x-www-form-urlencoded",
1195
+ },
1196
+ },
1197
+ paramsType: {
1198
+ CacheId: "String",
1199
+ Installed: "Boolean",
1200
+ FuzzySearch: "String",
1201
+ Offset: "Int",
1202
+ Limit: "Int",
1203
+ },
1204
+ },
1205
+ InstallPlugins: {
1206
+ url: "/",
1207
+ method: "POST",
1208
+ config: {
1209
+ query: {
1210
+ Version: "2016-07-01",
1211
+ Action: "InstallPlugins",
1212
+ },
1213
+ headers: {
1214
+ "Content-Type": "application/json",
1215
+ },
1216
+ },
1217
+ paramsType: {
1218
+ CacheId: "String",
1219
+ Plugins: "Array",
1220
+ },
1221
+ },
1222
+ UninstallPlugins: {
1223
+ url: "/",
1224
+ method: "POST",
1225
+ config: {
1226
+ query: {
1227
+ Version: "2016-07-01",
1228
+ Action: "UninstallPlugins",
1229
+ },
1230
+ headers: {
1231
+ "Content-Type": "application/json",
1232
+ },
1233
+ },
1234
+ paramsType: {
1235
+ CacheId: "String",
1236
+ PluginNames: "Array",
1237
+ },
1238
+ },
1097
1239
  };
1098
1240
  };
@@ -16,41 +16,6 @@ module.exports = class Client extends BaseClient {
16
16
  },
17
17
  };
18
18
  _apiList = {
19
- DescribeCacheReadonlyNode: {
20
- url: "/",
21
- method: "GET",
22
- config: {
23
- query: {
24
- Version: "2017-04-01",
25
- Action: "DescribeCacheReadonlyNode",
26
- },
27
- headers: {
28
- "Content-Type": "application/json",
29
- },
30
- },
31
- paramsType: {
32
- CacheId: "String",
33
- AvailableZone: "String",
34
- },
35
- },
36
- AddCacheSlaveNode: {
37
- url: "/",
38
- method: "PUT",
39
- config: {
40
- query: {
41
- Version: "2017-04-01",
42
- Action: "AddCacheSlaveNode",
43
- },
44
- headers: {
45
- "Content-Type": "application/json",
46
- },
47
- },
48
- paramsType: {
49
- AvailableZone: "String",
50
- CacheId: "String",
51
- SlaveVip: "String",
52
- },
53
- },
54
19
  DeleteCacheSlaveNode: {
55
20
  url: "/",
56
21
  method: "PUT",
@@ -60,7 +25,7 @@ module.exports = class Client extends BaseClient {
60
25
  Action: "DeleteCacheSlaveNode",
61
26
  },
62
27
  headers: {
63
- "Content-Type": "application/json",
28
+ "Content-Type": "application/x-www-form-urlencoded",
64
29
  },
65
30
  },
66
31
  paramsType: {
@@ -0,0 +1,37 @@
1
+ const BaseClient = require("../../../base/BaseClient.js");
2
+
3
+ module.exports = class Client extends BaseClient {
4
+ _baseConfig = {
5
+ protocol: "http://",
6
+ endpoint: "kcs.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: "kcs",
15
+ },
16
+ },
17
+ };
18
+ _apiList = {
19
+ DescribeCacheByRole: {
20
+ url: "/",
21
+ method: "GET",
22
+ config: {
23
+ query: {
24
+ Version: "2024-07-01",
25
+ Action: "DescribeCacheByRole",
26
+ },
27
+ headers: {
28
+ "Content-Type": "application/x-www-form-urlencoded",
29
+ },
30
+ },
31
+ paramsType: {
32
+ CacheId: "String",
33
+ Role: "String",
34
+ },
35
+ },
36
+ };
37
+ };
@@ -16,26 +16,55 @@ module.exports = class Client extends BaseClient {
16
16
  },
17
17
  };
18
18
  _apiList = {
19
- DescribeBlockIp: {
19
+ DescribeKead: {
20
20
  url: "/",
21
21
  method: "GET",
22
22
  config: {
23
23
  query: {
24
24
  Version: "2020-01-01",
25
- Action: "DescribeBlockIp",
25
+ Action: "DescribeKead",
26
+ },
27
+ headers: {
28
+ "Content-Type": "application/json",
29
+ },
30
+ },
31
+ paramsType: {
32
+ KeadId: "Filter",
33
+ ProjectId: "Filter",
34
+ },
35
+ },
36
+ DescribeKeadIp: {
37
+ url: "/",
38
+ method: "GET",
39
+ config: {
40
+ query: {
41
+ Version: "2020-01-01",
42
+ Action: "DescribeKeadIp",
26
43
  },
27
44
  headers: {
28
45
  "Content-Type": "application/json",
29
46
  },
30
47
  },
31
48
  paramsType: {
32
- SearchStr: "String",
33
- Status: "String",
34
- InstanceType: "String",
35
- RegionCode: "String",
36
- StartTime: "String",
37
- endTime: "String",
49
+ Ip: "String",
50
+ ProjectId: "Filter",
51
+ PageSize: "Int",
52
+ OffSet: "Int",
53
+ },
54
+ },
55
+ DescribeBlockIp: {
56
+ url: "/",
57
+ method: "GET",
58
+ config: {
59
+ query: {
60
+ Version: "2020-01-01",
61
+ Action: "DescribeBlockIp",
62
+ },
63
+ headers: {
64
+ "Content-Type": "application/json",
65
+ },
38
66
  },
67
+ paramsType: {},
39
68
  },
40
69
  };
41
70
  };