ksyun-sdk-node 1.0.5 → 1.2.4

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 (99) hide show
  1. package/dist/base/BaseClient.js +90 -55
  2. package/dist/index.js +9 -12
  3. package/dist/lib/fetch.js +4 -5
  4. package/dist/lib/sign.js +31 -33
  5. package/dist/lib/signautreV4.js +167 -0
  6. package/dist/service/Actiontrail/v20190401/index.js +4 -7
  7. package/dist/service/Bill/v20180601/index.js +11 -50
  8. package/dist/service/Bill/v20220601/index.js +64 -0
  9. package/dist/service/Bill_union/v20200101/index.js +48 -10
  10. package/dist/service/Bill_union/v20221222/index.js +142 -0
  11. package/dist/service/Bws/v20160304/index.js +23 -6
  12. package/dist/service/Cdn/v20160901/index.js +42 -0
  13. package/dist/service/Cdn/v20200630/index.js +410 -0
  14. package/dist/service/Cdn/v20200901/index.js +162 -0
  15. package/dist/service/Cen/v20160304/index.js +460 -0
  16. package/dist/service/Clickhouse/v20210101/index.js +546 -0
  17. package/dist/service/Ebs/v20160304/index.js +3 -6
  18. package/dist/service/Eip/v20160304/index.js +3 -6
  19. package/dist/service/Epc/v20151101/index.js +36 -60
  20. package/dist/service/Iam/v20151101/index.js +61 -7
  21. package/dist/service/Kad/v20161122/index.js +3 -6
  22. package/dist/service/Kce/v20180314/index.js +320 -0
  23. package/dist/service/Kce/v20190806/index.js +482 -0
  24. package/dist/service/Kce/v20201231/index.js +63 -0
  25. package/dist/service/Kcf/v20211215/index.js +203 -0
  26. package/dist/service/Kcm/v20160304/index.js +120 -0
  27. package/dist/service/Kcrs/v20211109/index.js +851 -0
  28. package/dist/service/Kcs/v20160701/index.js +1106 -0
  29. package/dist/service/Kcs/v20170401/index.js +81 -0
  30. package/dist/service/Kead/v20200101/index.js +3 -6
  31. package/dist/service/Kec/v20160304/index.js +107 -42
  32. package/dist/service/Ket/v20170101/index.js +141 -0
  33. package/dist/service/Kkms/v20160304/index.js +167 -0
  34. package/dist/service/Klog/v20200731/index.js +804 -0
  35. package/dist/service/Kls/v20170101/index.js +194 -0
  36. package/dist/service/Krds/v20160701/index.js +1302 -0
  37. package/dist/service/Krds/v20200825/index.js +174 -0
  38. package/dist/service/Memcached/v20180627/index.js +249 -0
  39. package/dist/service/Mongodb/v20170101/index.js +22 -7
  40. package/dist/service/Monitor/v20100525/index.js +70 -0
  41. package/dist/service/Monitor/v20181114/index.js +49 -0
  42. package/dist/service/Monitor/v20210101/index.js +179 -0
  43. package/dist/service/Monitor/v20220101/index.js +68 -0
  44. package/dist/service/Rabbitmq/v20191017/index.js +242 -0
  45. package/dist/service/Resourcemanager/v20210320/index.js +3 -6
  46. package/dist/service/Sks/v20151101/index.js +3 -6
  47. package/dist/service/Slb/v20160304/index.js +517 -8
  48. package/dist/service/Sts/v20151101/index.js +4 -7
  49. package/dist/service/Tagv2/v20200901/index.js +174 -0
  50. package/dist/service/Tidb/v20210520/index.js +363 -0
  51. package/dist/service/Trade/v20200114/index.js +3 -6
  52. package/dist/service/Trade/v20200831/index.js +3 -6
  53. package/dist/service/Vpc/v20160304/index.js +239 -7
  54. package/dist/service/Waf/v20200707/index.js +248 -0
  55. package/package.json +1 -1
  56. package/src/base/BaseClient.js +85 -36
  57. package/src/lib/signautreV4.js +166 -0
  58. package/src/service/Actiontrail/v20190401/index.js +1 -1
  59. package/src/service/Bill/v20180601/index.js +6 -46
  60. package/src/service/Bill/v20220601/index.js +56 -0
  61. package/src/service/Bill_union/v20200101/index.js +37 -0
  62. package/src/service/Bill_union/v20221222/index.js +134 -0
  63. package/src/service/Bws/v20160304/index.js +20 -0
  64. package/src/service/{Bill_union/v20211209 → Cdn/v20160901}/index.js +6 -6
  65. package/src/service/Cdn/v20200630/index.js +402 -0
  66. package/src/service/Cdn/v20200901/index.js +154 -0
  67. package/src/service/Cen/v20160304/index.js +452 -0
  68. package/src/service/Clickhouse/v20210101/index.js +538 -0
  69. package/src/service/Ebs/v20160304/index.js +1 -4
  70. package/src/service/Epc/v20151101/index.js +26 -50
  71. package/src/service/Iam/v20151101/index.js +57 -0
  72. package/src/service/Kce/v20180314/index.js +312 -0
  73. package/src/service/Kce/v20190806/index.js +474 -0
  74. package/src/service/Kce/v20201231/index.js +55 -0
  75. package/src/service/Kcf/v20211215/index.js +197 -0
  76. package/src/service/Kcm/v20160304/index.js +112 -0
  77. package/src/service/Kcrs/v20211109/index.js +857 -0
  78. package/src/service/Kcs/v20160701/index.js +1101 -0
  79. package/src/service/Kcs/v20170401/index.js +73 -0
  80. package/src/service/Kec/v20160304/index.js +86 -22
  81. package/src/service/Ket/v20170101/index.js +133 -0
  82. package/src/service/Kkms/v20160304/index.js +159 -0
  83. package/src/service/Klog/v20200731/index.js +810 -0
  84. package/src/service/Kls/v20170101/index.js +186 -0
  85. package/src/service/Krds/v20160701/index.js +1296 -0
  86. package/src/service/Krds/v20200825/index.js +166 -0
  87. package/src/service/Memcached/v20180627/index.js +248 -0
  88. package/src/service/Mongodb/v20170101/index.js +18 -0
  89. package/src/service/Monitor/v20100525/index.js +62 -0
  90. package/src/service/{Slb/v20171210 → Monitor/v20181114}/index.js +13 -11
  91. package/src/service/Monitor/v20210101/index.js +172 -0
  92. package/src/service/Monitor/v20220101/index.js +60 -0
  93. package/src/service/Rabbitmq/v20191017/index.js +234 -0
  94. package/src/service/Slb/v20160304/index.js +512 -0
  95. package/src/service/Sts/v20151101/index.js +1 -1
  96. package/src/service/Tagv2/v20200901/index.js +166 -0
  97. package/src/service/Tidb/v20210520/index.js +355 -0
  98. package/src/service/Vpc/v20160304/index.js +235 -0
  99. package/src/service/Waf/v20200707/index.js +240 -0
@@ -113,6 +113,23 @@ module.exports = class Client extends BaseClient {
113
113
  'UserName': 'String',
114
114
  }
115
115
  },
116
+ 'DetachUserPolicy': {
117
+ 'url': '/',
118
+ 'method': 'GET',
119
+ 'config': {
120
+ 'query': {
121
+ 'Version': '2015-11-01',
122
+ 'Action': 'DetachUserPolicy',
123
+ },
124
+ 'headers': {
125
+ 'Content-Type': 'application/x-www-form-urlencoded'
126
+ },
127
+ },
128
+ 'paramsType': {
129
+ 'PolicyKrn': 'String',
130
+ 'UserName': 'String',
131
+ }
132
+ },
116
133
  'ListAttachedUserPolicies': {
117
134
  'url': '/',
118
135
  'method': 'GET',
@@ -357,6 +374,7 @@ module.exports = class Client extends BaseClient {
357
374
  },
358
375
  'paramsType': {
359
376
  'UserName': 'String',
377
+ 'NotCheckPassword': 'Int',
360
378
  }
361
379
  },
362
380
  'CreateAccessKey': {
@@ -992,5 +1010,44 @@ module.exports = class Client extends BaseClient {
992
1010
  'paramsType': {
993
1011
  }
994
1012
  },
1013
+ 'InsertInstanceToES': {
1014
+ 'url': '/',
1015
+ 'method': 'POST',
1016
+ 'config': {
1017
+ 'query': {
1018
+ 'Version': '2015-11-01',
1019
+ 'Action': 'InsertInstanceToES',
1020
+ },
1021
+ 'headers': {
1022
+ 'Content-Type': 'application/x-www-form-urlencoded'
1023
+ },
1024
+ },
1025
+ 'paramsType': {
1026
+ 'ProjectId': 'Int',
1027
+ 'ProductLine': 'String',
1028
+ 'ProductGroup': 'Int',
1029
+ 'ResourceType': 'String',
1030
+ 'InstanceId': 'String',
1031
+ 'RegionEn': 'String',
1032
+ 'InstanceName': 'String',
1033
+ }
1034
+ },
1035
+ 'DelInstanceFromES': {
1036
+ 'url': '/',
1037
+ 'method': 'POST',
1038
+ 'config': {
1039
+ 'query': {
1040
+ 'Version': '2015-11-01',
1041
+ 'Action': 'DelInstanceFromES',
1042
+ },
1043
+ 'headers': {
1044
+ 'Content-Type': 'application/x-www-form-urlencoded'
1045
+ },
1046
+ },
1047
+ 'paramsType': {
1048
+ 'ProductLine': 'String',
1049
+ 'InstanceId': 'String',
1050
+ }
1051
+ },
995
1052
  }
996
1053
  }
@@ -0,0 +1,312 @@
1
+ const BaseClient = require("../../../base/BaseClient.js");
2
+
3
+ module.exports = class Client extends BaseClient {
4
+ _baseConfig = {
5
+ 'protocol': 'http://',
6
+ 'endpoint': 'kce.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': 'kce',
15
+ },
16
+ },
17
+ }
18
+ _apiList = {
19
+ 'CreateRepoNamespace': {
20
+ 'url': '/',
21
+ 'method': 'GET',
22
+ 'config': {
23
+ 'query': {
24
+ 'Version': '2018-03-14',
25
+ 'Action': 'CreateRepoNamespace',
26
+ },
27
+ 'headers': {
28
+ 'Content-Type': 'application/x-www-form-urlencoded'
29
+ },
30
+ },
31
+ 'paramsType': {
32
+ 'Namespace': 'String',
33
+ 'Public': 'String',
34
+ }
35
+ },
36
+ 'DescribeRepoNamespace': {
37
+ 'url': '/',
38
+ 'method': 'GET',
39
+ 'config': {
40
+ 'query': {
41
+ 'Version': '2018-03-14',
42
+ 'Action': 'DescribeRepoNamespace',
43
+ },
44
+ 'headers': {
45
+ 'Content-Type': 'application/x-www-form-urlencoded'
46
+ },
47
+ },
48
+ 'paramsType': {
49
+ 'Namespace': 'String',
50
+ 'MaxResults': 'String',
51
+ 'Marker': 'String',
52
+ 'Filter': 'Filter',
53
+ }
54
+ },
55
+ 'ModifyRepoNamespaceType': {
56
+ 'url': '/',
57
+ 'method': 'GET',
58
+ 'config': {
59
+ 'query': {
60
+ 'Version': '2018-03-14',
61
+ 'Action': 'ModifyRepoNamespaceType',
62
+ },
63
+ 'headers': {
64
+ 'Content-Type': 'application/x-www-form-urlencoded'
65
+ },
66
+ },
67
+ 'paramsType': {
68
+ 'Namespace': 'String',
69
+ 'Public': 'Boolean',
70
+ }
71
+ },
72
+ 'RepoNamespaceExist': {
73
+ 'url': '/',
74
+ 'method': 'GET',
75
+ 'config': {
76
+ 'query': {
77
+ 'Version': '2018-03-14',
78
+ 'Action': 'RepoNamespaceExist',
79
+ },
80
+ 'headers': {
81
+ 'Content-Type': 'application/x-www-form-urlencoded'
82
+ },
83
+ },
84
+ 'paramsType': {
85
+ 'Namespace': 'String',
86
+ }
87
+ },
88
+ 'CreateRepository': {
89
+ 'url': '/',
90
+ 'method': 'GET',
91
+ 'config': {
92
+ 'query': {
93
+ 'Version': '2018-03-14',
94
+ 'Action': 'CreateRepository',
95
+ },
96
+ 'headers': {
97
+ 'Content-Type': 'application/x-www-form-urlencoded'
98
+ },
99
+ },
100
+ 'paramsType': {
101
+ 'RepoName': 'String',
102
+ 'Description': 'String',
103
+ }
104
+ },
105
+ 'DeleteRepository': {
106
+ 'url': '/',
107
+ 'method': 'GET',
108
+ 'config': {
109
+ 'query': {
110
+ 'Version': '2018-03-14',
111
+ 'Action': 'DeleteRepository',
112
+ },
113
+ 'headers': {
114
+ 'Content-Type': 'application/x-www-form-urlencoded'
115
+ },
116
+ },
117
+ 'paramsType': {
118
+ 'RepoName': 'String',
119
+ }
120
+ },
121
+ 'DescribeRepository': {
122
+ 'url': '/',
123
+ 'method': 'GET',
124
+ 'config': {
125
+ 'query': {
126
+ 'Version': '2018-03-14',
127
+ 'Action': 'DescribeRepository',
128
+ },
129
+ 'headers': {
130
+ 'Content-Type': 'application/x-www-form-urlencoded'
131
+ },
132
+ },
133
+ 'paramsType': {
134
+ 'RepoName': 'Filter',
135
+ 'MaxResults': 'Int',
136
+ 'Marker': 'Int',
137
+ 'Filter': 'Filter',
138
+ }
139
+ },
140
+ 'DescribePublicRepository': {
141
+ 'url': '/',
142
+ 'method': 'GET',
143
+ 'config': {
144
+ 'query': {
145
+ 'Version': '2018-03-14',
146
+ 'Action': 'DescribePublicRepository',
147
+ },
148
+ 'headers': {
149
+ 'Content-Type': 'application/x-www-form-urlencoded'
150
+ },
151
+ },
152
+ 'paramsType': {
153
+ 'RepoName': 'Filter',
154
+ 'MaxResults': 'Int',
155
+ 'Marker': 'Int',
156
+ 'Filter': 'Filter',
157
+ }
158
+ },
159
+ 'UpdateRepoDesc': {
160
+ 'url': '/',
161
+ 'method': 'GET',
162
+ 'config': {
163
+ 'query': {
164
+ 'Version': '2018-03-14',
165
+ 'Action': 'UpdateRepoDesc',
166
+ },
167
+ 'headers': {
168
+ 'Content-Type': 'application/x-www-form-urlencoded'
169
+ },
170
+ },
171
+ 'paramsType': {
172
+ 'RepoName': 'String',
173
+ 'Description': 'String',
174
+ }
175
+ },
176
+ 'DescribeTag': {
177
+ 'url': '/',
178
+ 'method': 'GET',
179
+ 'config': {
180
+ 'query': {
181
+ 'Version': '2018-03-14',
182
+ 'Action': 'DescribeTag',
183
+ },
184
+ 'headers': {
185
+ 'Content-Type': 'application/x-www-form-urlencoded'
186
+ },
187
+ },
188
+ 'paramsType': {
189
+ 'RepoName': 'String',
190
+ 'MaxResults': 'String',
191
+ 'Marker': 'String',
192
+ 'Filter': 'Filter',
193
+ }
194
+ },
195
+ 'DeleteTags': {
196
+ 'url': '/',
197
+ 'method': 'GET',
198
+ 'config': {
199
+ 'query': {
200
+ 'Version': '2018-03-14',
201
+ 'Action': 'DeleteTags',
202
+ },
203
+ 'headers': {
204
+ 'Content-Type': 'application/x-www-form-urlencoded'
205
+ },
206
+ },
207
+ 'paramsType': {
208
+ 'RepoName': 'String',
209
+ 'Tag': 'Filter',
210
+ }
211
+ },
212
+ 'AddFavor': {
213
+ 'url': '/',
214
+ 'method': 'GET',
215
+ 'config': {
216
+ 'query': {
217
+ 'Version': '2018-03-14',
218
+ 'Action': 'AddFavor',
219
+ },
220
+ 'headers': {
221
+ 'Content-Type': 'application/x-www-form-urlencoded'
222
+ },
223
+ },
224
+ 'paramsType': {
225
+ 'RepoName': 'String',
226
+ 'RepoType': 'String',
227
+ }
228
+ },
229
+ 'DeleteFavor': {
230
+ 'url': '/',
231
+ 'method': 'GET',
232
+ 'config': {
233
+ 'query': {
234
+ 'Version': '2018-03-14',
235
+ 'Action': 'DeleteFavor',
236
+ },
237
+ 'headers': {
238
+ 'Content-Type': 'application/x-www-form-urlencoded'
239
+ },
240
+ },
241
+ 'paramsType': {
242
+ 'RepoName': 'String',
243
+ }
244
+ },
245
+ 'GetFavor': {
246
+ 'url': '/',
247
+ 'method': 'GET',
248
+ 'config': {
249
+ 'query': {
250
+ 'Version': '2018-03-14',
251
+ 'Action': 'GetFavor',
252
+ },
253
+ 'headers': {
254
+ 'Content-Type': 'application/x-www-form-urlencoded'
255
+ },
256
+ },
257
+ 'paramsType': {
258
+ 'MaxResults': 'Int',
259
+ 'Marker': 'Int',
260
+ 'Keyword': 'String',
261
+ }
262
+ },
263
+ 'RegisterRepositoryAccount': {
264
+ 'url': '/',
265
+ 'method': 'GET',
266
+ 'config': {
267
+ 'query': {
268
+ 'Version': '2018-03-14',
269
+ 'Action': 'RegisterRepositoryAccount',
270
+ },
271
+ 'headers': {
272
+ 'Content-Type': 'application/x-www-form-urlencoded'
273
+ },
274
+ },
275
+ 'paramsType': {
276
+ 'Password': 'String',
277
+ }
278
+ },
279
+ 'ModifyPassword': {
280
+ 'url': '/',
281
+ 'method': 'GET',
282
+ 'config': {
283
+ 'query': {
284
+ 'Version': '2018-03-14',
285
+ 'Action': 'ModifyPassword',
286
+ },
287
+ 'headers': {
288
+ 'Content-Type': 'application/x-www-form-urlencoded'
289
+ },
290
+ },
291
+ 'paramsType': {
292
+ 'Password': 'String',
293
+ }
294
+ },
295
+ 'DeleteRepoNamespace': {
296
+ 'url': '/',
297
+ 'method': 'GET',
298
+ 'config': {
299
+ 'query': {
300
+ 'Version': '2018-03-14',
301
+ 'Action': 'DeleteRepoNamespace',
302
+ },
303
+ 'headers': {
304
+ 'Content-Type': 'application/x-www-form-urlencoded'
305
+ },
306
+ },
307
+ 'paramsType': {
308
+ 'Namespace': 'String',
309
+ }
310
+ },
311
+ }
312
+ }