ksyun-sdk-node 1.2.4 → 1.4.9

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 (128) hide show
  1. package/.claude/settings.local.json +12 -0
  2. package/dist/base/BaseClient.js +50 -4
  3. package/dist/service/Actiontrail/v20190401/index.js +31 -31
  4. package/dist/service/Aicp/v20240612/index.js +491 -0
  5. package/dist/service/Aicp/v20251212/index.js +76 -0
  6. package/dist/service/Bill/v20180601/index.js +45 -45
  7. package/dist/service/Bill/v20220601/index.js +35 -35
  8. package/dist/service/Bill_union/v20200101/index.js +139 -103
  9. package/dist/service/Bill_union/v20221222/index.js +93 -93
  10. package/dist/service/Bill_union/v20250801/index.js +66 -0
  11. package/dist/service/Bws/v20160304/index.js +103 -103
  12. package/dist/service/Cdn/v20160901/index.js +52 -19
  13. package/dist/service/Cdn/v20200630/index.js +306 -306
  14. package/dist/service/Cdn/v20200901/index.js +108 -108
  15. package/dist/service/Cdn/v20211201/index.js +45 -0
  16. package/dist/service/Cdn/v20250503/index.js +404 -0
  17. package/dist/service/Cen/v20160304/index.js +321 -321
  18. package/dist/service/Clickhouse/v20210101/index.js +387 -387
  19. package/dist/service/Ebs/v20160304/index.js +262 -262
  20. package/dist/service/Eip/v20160304/index.js +101 -101
  21. package/dist/service/Epc/v20151101/index.js +1822 -766
  22. package/dist/service/Iam/v20151101/index.js +863 -756
  23. package/dist/service/Iam/v20240513/index.js +47 -0
  24. package/dist/service/Iam/v20240703/index.js +44 -0
  25. package/dist/service/Kad/v20161122/index.js +81 -81
  26. package/dist/service/Kce/v20180314/index.js +216 -216
  27. package/dist/service/Kce/v20190806/index.js +343 -343
  28. package/dist/service/Kce/v20201231/index.js +39 -39
  29. package/dist/service/Kcf/v20211215/index.js +141 -141
  30. package/dist/service/Kcm/v20160304/index.js +81 -81
  31. package/dist/service/Kcrs/v20211109/index.js +611 -611
  32. package/dist/service/Kcs/v20160701/index.js +800 -800
  33. package/dist/service/Kcs/v20170401/index.js +47 -47
  34. package/dist/service/Kead/v20200101/index.js +25 -25
  35. package/dist/service/Kec/v20160304/index.js +1697 -1533
  36. package/dist/service/Kes/v20201215/index.js +171 -0
  37. package/dist/service/Ket/v20170101/index.js +92 -92
  38. package/dist/service/Kkms/v20160304/index.js +108 -108
  39. package/dist/service/Klog/v20200731/index.js +232 -705
  40. package/dist/service/Kls/v20170101/index.js +135 -135
  41. package/dist/service/Kmr/v20210902/index.js +422 -0
  42. package/dist/service/Kmr/v20231231/index.js +154 -0
  43. package/dist/service/Kmr/v20240814/index.js +370 -0
  44. package/dist/service/Krds/v20160701/index.js +991 -991
  45. package/dist/service/Krds/v20200825/index.js +115 -115
  46. package/dist/service/Memcached/v20180627/index.js +172 -172
  47. package/dist/service/Mongodb/v20170101/index.js +514 -514
  48. package/dist/service/Monitor/v20100525/index.js +41 -41
  49. package/dist/service/Monitor/v20181114/index.js +25 -25
  50. package/dist/service/Monitor/v20210101/index.js +153 -116
  51. package/dist/service/Monitor/v20220101/index.js +30 -40
  52. package/dist/service/Monitor/v20250101/index.js +71 -0
  53. package/dist/service/Rabbitmq/v20191017/index.js +163 -163
  54. package/dist/service/Resourcemanager/v20210320/index.js +110 -110
  55. package/dist/service/Sks/v20151101/index.js +69 -69
  56. package/dist/service/Slb/v20160304/index.js +1208 -1208
  57. package/dist/service/Sts/v20151101/index.js +23 -23
  58. package/dist/service/Tagv2/v20200901/index.js +115 -115
  59. package/dist/service/Tidb/v20210520/index.js +254 -254
  60. package/dist/service/Trade/v20200114/index.js +20 -20
  61. package/dist/service/Trade/v20200831/index.js +22 -22
  62. package/dist/service/Vpc/v20160304/index.js +1947 -1209
  63. package/dist/service/Waf/v20200707/index.js +174 -174
  64. package/example/iam.js +2 -1
  65. package/example/res.js +2 -1
  66. package/package.json +1 -1
  67. package/src/base/BaseClient.js +51 -4
  68. package/src/service/Actiontrail/v20190401/index.js +42 -42
  69. package/src/service/Aicp/v20240612/index.js +483 -0
  70. package/src/service/Aicp/v20251212/index.js +68 -0
  71. package/src/service/Bill/v20180601/index.js +63 -64
  72. package/src/service/Bill/v20220601/index.js +50 -50
  73. package/src/service/Bill_union/v20200101/index.js +181 -146
  74. package/src/service/Bill_union/v20221222/index.js +124 -124
  75. package/src/service/Bill_union/v20250801/index.js +58 -0
  76. package/src/service/Bws/v20160304/index.js +138 -138
  77. package/src/service/Cdn/v20160901/index.js +62 -30
  78. package/src/service/Cdn/v20200630/index.js +399 -399
  79. package/src/service/Cdn/v20200901/index.js +143 -143
  80. package/src/service/Cdn/v20211201/index.js +37 -0
  81. package/src/service/Cdn/v20250503/index.js +396 -0
  82. package/src/service/Cen/v20160304/index.js +449 -449
  83. package/src/service/Clickhouse/v20210101/index.js +535 -535
  84. package/src/service/Ebs/v20160304/index.js +365 -365
  85. package/src/service/Eip/v20160304/index.js +135 -136
  86. package/src/service/Epc/v20151101/index.js +2065 -1009
  87. package/src/service/Iam/v20151101/index.js +1155 -1050
  88. package/src/service/Iam/v20240513/index.js +39 -0
  89. package/src/service/Iam/v20240703/index.js +36 -0
  90. package/src/service/Kad/v20161122/index.js +112 -112
  91. package/src/service/Kce/v20180314/index.js +309 -309
  92. package/src/service/Kce/v20190806/index.js +471 -471
  93. package/src/service/Kce/v20201231/index.js +50 -50
  94. package/src/service/Kcf/v20211215/index.js +192 -194
  95. package/src/service/Kcm/v20160304/index.js +104 -104
  96. package/src/service/Kcrs/v20211109/index.js +840 -854
  97. package/src/service/Kcs/v20160701/index.js +1095 -1098
  98. package/src/service/Kcs/v20170401/index.js +66 -66
  99. package/src/service/Kead/v20200101/index.js +36 -36
  100. package/src/service/Kec/v20160304/index.js +2061 -1902
  101. package/src/service/Kes/v20201215/index.js +163 -0
  102. package/src/service/Ket/v20170101/index.js +123 -123
  103. package/src/service/Kkms/v20160304/index.js +156 -156
  104. package/src/service/Klog/v20200731/index.js +320 -807
  105. package/src/service/Kls/v20170101/index.js +183 -183
  106. package/src/service/Kmr/v20210902/index.js +414 -0
  107. package/src/service/Kmr/v20231231/index.js +146 -0
  108. package/src/service/Kmr/v20240814/index.js +362 -0
  109. package/src/service/Krds/v20160701/index.js +1291 -1293
  110. package/src/service/Krds/v20200825/index.js +163 -163
  111. package/src/service/Memcached/v20180627/index.js +238 -245
  112. package/src/service/Mongodb/v20170101/index.js +672 -672
  113. package/src/service/Monitor/v20100525/index.js +56 -56
  114. package/src/service/Monitor/v20181114/index.js +36 -36
  115. package/src/service/Monitor/v20210101/index.js +205 -169
  116. package/src/service/Monitor/v20220101/index.js +44 -54
  117. package/src/service/Monitor/v20250101/index.js +63 -0
  118. package/src/service/Rabbitmq/v20191017/index.js +231 -231
  119. package/src/service/Resourcemanager/v20210320/index.js +157 -158
  120. package/src/service/Sks/v20151101/index.js +95 -96
  121. package/src/service/Slb/v20160304/index.js +1471 -1471
  122. package/src/service/Sts/v20151101/index.js +34 -34
  123. package/src/service/Tagv2/v20200901/index.js +163 -163
  124. package/src/service/Tidb/v20210520/index.js +352 -352
  125. package/src/service/Trade/v20200114/index.js +31 -31
  126. package/src/service/Trade/v20200831/index.js +33 -33
  127. package/src/service/Vpc/v20160304/index.js +2404 -1667
  128. package/src/service/Waf/v20200707/index.js +237 -237
@@ -1,1101 +1,1098 @@
1
1
  const BaseClient = require("../../../base/BaseClient.js");
2
2
 
3
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
- 'CreateCacheCluster': {
20
- 'url': '/',
21
- 'method': 'POST',
22
- 'config': {
23
- 'query': {
24
- 'Version': '2016-07-01',
25
- 'Action': 'CreateCacheCluster',
26
- },
27
- 'headers': {
28
- 'Content-Type': 'application/x-www-form-urlencoded'
29
- },
30
- },
31
- 'paramsType': {
32
- 'AvailableZone': 'String',
33
- 'Name': 'String',
34
- 'PassWord': 'String',
35
- 'Mode': 'Int',
36
- 'Vip': 'String',
37
- 'Capacity': 'Int',
38
- 'VpcId': 'String',
39
- 'VnetId': 'String',
40
- 'BillType': 'Int',
41
- 'Duration': 'Int',
42
- 'IamProjectId': 'String',
43
- 'Protocol': 'String',
44
- 'BackupTimezone': 'String',
45
- 'SecurityGroupId': 'String',
46
- 'SlaveNum': 'Int',
47
- 'SlaveVip': 'String',
48
- 'PrepareAzName': 'String',
49
- 'RrAzName': 'String',
50
- 'ShardNum': 'Int',
51
- 'ShardSize': 'Int',
52
- 'Separation': 'Int',
53
- }
54
- },
55
- 'DeleteCacheCluster': {
56
- 'url': '/',
57
- 'method': 'DELETE',
58
- 'config': {
59
- 'query': {
60
- 'Version': '2016-07-01',
61
- 'Action': 'DeleteCacheCluster',
62
- },
63
- 'headers': {
64
- 'Content-Type': 'application/json'
65
- },
66
- },
67
- 'paramsType': {
68
- 'AvailableZone': 'String',
69
- 'CacheId': 'String',
70
- }
71
- },
72
- 'DescribeCacheCluster': {
73
- 'url': '/',
74
- 'method': 'GET',
75
- 'config': {
76
- 'query': {
77
- 'Version': '2016-07-01',
78
- 'Action': 'DescribeCacheCluster',
79
- },
80
- 'headers': {
81
- 'Content-Type': 'application/json'
82
- },
83
- },
84
- 'paramsType': {
85
- 'CacheId': 'String',
86
- 'AvailableZone': 'String',
87
- }
88
- },
89
- 'DescribeCacheClusters': {
90
- 'url': '/',
91
- 'method': 'GET',
92
- 'config': {
93
- 'query': {
94
- 'Version': '2016-07-01',
95
- 'Action': 'DescribeCacheClusters',
96
- },
97
- 'headers': {
98
- 'Content-Type': 'application/json'
99
- },
100
- },
101
- 'paramsType': {
102
- 'AvailableZone': 'String',
103
- 'CacheId': 'String',
104
- 'Name': 'String',
105
- 'Vip': 'String',
106
- 'VpcId': 'String',
107
- 'VnetId': 'String',
108
- 'Offset': 'String',
109
- 'Limit': 'String',
110
- 'OrderBy': 'String',
111
- 'IamProjectId': 'String',
112
- 'FuzzySearch': 'String',
113
- 'Protocol': 'String',
114
- 'TagKey': 'String',
115
- 'TagValue': 'String',
116
- 'Mode': 'String',
117
- }
118
- },
119
- 'FlushCacheCluster': {
120
- 'url': '/',
121
- 'method': 'PUT',
122
- 'config': {
123
- 'query': {
124
- 'Version': '2016-07-01',
125
- 'Action': 'FlushCacheCluster',
126
- },
127
- 'headers': {
128
- 'Content-Type': 'application/json'
129
- },
130
- },
131
- 'paramsType': {
132
- 'AvailableZone': 'String',
133
- 'CacheId': 'String',
134
- 'DatabaseNo': 'String',
135
- }
136
- },
137
- 'RenameCacheCluster': {
138
- 'url': '/',
139
- 'method': 'PUT',
140
- 'config': {
141
- 'query': {
142
- 'Version': '2016-07-01',
143
- 'Action': 'RenameCacheCluster',
144
- },
145
- 'headers': {
146
- 'Content-Type': 'application/json'
147
- },
148
- },
149
- 'paramsType': {
150
- 'AvailableZone': 'String',
151
- 'CacheId': 'String',
152
- 'Name': 'String',
153
- }
154
- },
155
- 'ResizeCacheCluster': {
156
- 'url': '/',
157
- 'method': 'PUT',
158
- 'config': {
159
- 'query': {
160
- 'Version': '2016-07-01',
161
- 'Action': 'ResizeCacheCluster',
162
- },
163
- 'headers': {
164
- 'Content-Type': 'application/json'
165
- },
166
- },
167
- 'paramsType': {
168
- 'AvailableZone': 'String',
169
- 'CacheId': 'String',
170
- 'Capacity': 'Int',
171
- 'ShardSize': 'Int',
172
- 'ShardNum': 'Int',
173
- }
174
- },
175
- 'DescribeCacheParameters': {
176
- 'url': '/',
177
- 'method': 'GET',
178
- 'config': {
179
- 'query': {
180
- 'Version': '2016-07-01',
181
- 'Action': 'DescribeCacheParameters',
182
- },
183
- 'headers': {
184
- 'Content-Type': 'application/json'
185
- },
186
- },
187
- 'paramsType': {
188
- 'AvailableZone': 'String',
189
- 'CacheId': 'String',
190
- }
191
- },
192
- 'SetCacheParameters': {
193
- 'url': '/',
194
- 'method': 'PUT',
195
- 'config': {
196
- 'query': {
197
- 'Version': '2016-07-01',
198
- 'Action': 'SetCacheParameters',
199
- },
200
- 'headers': {
201
- 'Content-Type': 'application/json'
202
- },
203
- },
204
- 'paramsType': {
205
- 'AvailableZone': 'String',
206
- 'CacheId': 'String',
207
- 'Protocol': 'String',
208
- 'Parameters.ParameterName': 'Filter',
209
- 'Parameters.ParameterValue': 'Filter',
210
- 'ResetAllParameters': 'Boolean',
211
- }
212
- },
213
- 'DescribeCacheDefaultParameters': {
214
- 'url': '/',
215
- 'method': 'GET',
216
- 'config': {
217
- 'query': {
218
- 'Version': '2016-07-01',
219
- 'Action': 'DescribeCacheDefaultParameters',
220
- },
221
- 'headers': {
222
- 'Content-Type': 'application/json'
223
- },
224
- },
225
- 'paramsType': {
226
- 'AvailableZone': 'String',
227
- 'ParamVersion': 'String',
228
- }
229
- },
230
- 'SetCacheParameterGroup': {
231
- 'url': '/',
232
- 'method': 'PUT',
233
- 'config': {
234
- 'query': {
235
- 'Version': '2016-07-01',
236
- 'Action': 'SetCacheParameterGroup',
237
- },
238
- 'headers': {
239
- 'Content-Type': 'application/json'
240
- },
241
- },
242
- 'paramsType': {
243
- 'AvailableZone': 'String',
244
- 'CacheParameterGroupId': 'String',
245
- 'CacheId': 'String',
246
- }
247
- },
248
- 'CreateCacheParameterGroup': {
249
- 'url': '/',
250
- 'method': 'POST',
251
- 'config': {
252
- 'query': {
253
- 'Version': '2016-07-01',
254
- 'Action': 'CreateCacheParameterGroup',
255
- },
256
- 'headers': {
257
- 'Content-Type': 'application/x-www-form-urlencoded'
258
- },
259
- },
260
- 'paramsType': {
261
- 'AvailableZone': 'String',
262
- 'Name': 'String',
263
- 'Description': 'String',
264
- 'ParamVersion': 'String',
265
- 'Parameters': 'Filter',
266
- }
267
- },
268
- 'DeleteCacheParameterGroup': {
269
- 'url': '/',
270
- 'method': 'DELETE',
271
- 'config': {
272
- 'query': {
273
- 'Version': '2016-07-01',
274
- 'Action': 'DeleteCacheParameterGroup',
275
- },
276
- 'headers': {
277
- 'Content-Type': 'application/json'
278
- },
279
- },
280
- 'paramsType': {
281
- 'AvailableZone': 'String',
282
- 'CacheParameterGroupId': 'String',
283
- }
284
- },
285
- 'ModifyCacheParameterGroup': {
286
- 'url': '/',
287
- 'method': 'PUT',
288
- 'config': {
289
- 'query': {
290
- 'Version': '2016-07-01',
291
- 'Action': 'ModifyCacheParameterGroup',
292
- },
293
- 'headers': {
294
- 'Content-Type': 'application/json'
295
- },
296
- },
297
- 'paramsType': {
298
- 'AvailableZone': 'String',
299
- 'Name': 'String',
300
- 'Description': 'String',
301
- 'ParamVersion': 'String',
302
- 'CacheParameterGroupId': 'String',
303
- 'Parameters': 'Filter',
304
- }
305
- },
306
- 'DescribeCacheParameterGroups': {
307
- 'url': '/',
308
- 'method': 'GET',
309
- 'config': {
310
- 'query': {
311
- 'Version': '2016-07-01',
312
- 'Action': 'DescribeCacheParameterGroups',
313
- },
314
- 'headers': {
315
- 'Content-Type': 'application/json'
316
- },
317
- },
318
- 'paramsType': {
319
- 'AvailableZone': 'String',
320
- 'Name': 'String',
321
- 'CacheParameterGroupId': 'String',
322
- 'ParamVersion': 'String',
323
- 'Offset': 'String',
324
- 'Limit': 'String',
325
- }
326
- },
327
- 'DescribeCacheParameterGroup': {
328
- 'url': '/',
329
- 'method': 'GET',
330
- 'config': {
331
- 'query': {
332
- 'Version': '2016-07-01',
333
- 'Action': 'DescribeCacheParameterGroup',
334
- },
335
- 'headers': {
336
- 'Content-Type': 'application/json'
337
- },
338
- },
339
- 'paramsType': {
340
- 'AvailableZone': 'String',
341
- 'CacheParameterGroupId': 'String',
342
- }
343
- },
344
- 'SetTimingSnapshot': {
345
- 'url': '/',
346
- 'method': 'PUT',
347
- 'config': {
348
- 'query': {
349
- 'Version': '2016-07-01',
350
- 'Action': 'SetTimingSnapshot',
351
- },
352
- 'headers': {
353
- 'Content-Type': 'application/json'
354
- },
355
- },
356
- 'paramsType': {
357
- 'AvailableZone': 'String',
358
- 'TimingSwitch': 'String',
359
- 'CacheId': 'String',
360
- 'Timezone': 'String',
361
- 'Bigkey': 'Boolean',
362
- }
363
- },
364
- 'DeleteSnapshot': {
365
- 'url': '/',
366
- 'method': 'DELETE',
367
- 'config': {
368
- 'query': {
369
- 'Version': '2016-07-01',
370
- 'Action': 'DeleteSnapshot',
371
- },
372
- 'headers': {
373
- 'Content-Type': 'application/json'
374
- },
375
- },
376
- 'paramsType': {
377
- 'AvailableZone': 'String',
378
- 'SnapshotId': 'String',
379
- }
380
- },
381
- 'RenameSnapshot': {
382
- 'url': '/',
383
- 'method': 'PUT',
384
- 'config': {
385
- 'query': {
386
- 'Version': '2016-07-01',
387
- 'Action': 'RenameSnapshot',
388
- },
389
- 'headers': {
390
- 'Content-Type': 'application/json'
391
- },
392
- },
393
- 'paramsType': {
394
- 'AvailableZone': 'String',
395
- 'Name': 'String',
396
- 'SnapshotId': 'String',
397
- }
398
- },
399
- 'RestoreSnapshot': {
400
- 'url': '/',
401
- 'method': 'PUT',
402
- 'config': {
403
- 'query': {
404
- 'Version': '2016-07-01',
405
- 'Action': 'RestoreSnapshot',
406
- },
407
- 'headers': {
408
- 'Content-Type': 'application/json'
409
- },
410
- },
411
- 'paramsType': {
412
- 'AvailableZone': 'String',
413
- 'Cacheld': 'String',
414
- 'Type': 'String',
415
- 'SnapshotId': 'String',
416
- 'BucketName': 'String',
417
- 'ObjectName': 'String',
418
- }
419
- },
420
- 'DescribeSnapshots': {
421
- 'url': '/',
422
- 'method': 'GET',
423
- 'config': {
424
- 'query': {
425
- 'Version': '2016-07-01',
426
- 'Action': 'DescribeSnapshots',
427
- },
428
- 'headers': {
429
- 'Content-Type': 'application/json'
430
- },
431
- },
432
- 'paramsType': {
433
- 'AvailableZone': 'String',
434
- 'CacheId': 'String',
435
- }
436
- },
437
- 'DownloadSnapshot': {
438
- 'url': '/',
439
- 'method': 'GET',
440
- 'config': {
441
- 'query': {
442
- 'Version': '2016-07-01',
443
- 'Action': 'DownloadSnapshot',
444
- },
445
- 'headers': {
446
- 'Content-Type': 'application/json'
447
- },
448
- },
449
- 'paramsType': {
450
- 'AvailableZone': 'String',
451
- 'SnapshotId': 'String',
452
- }
453
- },
454
- 'ExportSnapshot': {
455
- 'url': '/',
456
- 'method': 'GET',
457
- 'config': {
458
- 'query': {
459
- 'Version': '2016-07-01',
460
- 'Action': 'ExportSnapshot',
461
- },
462
- 'headers': {
463
- 'Content-Type': 'application/json'
464
- },
465
- },
466
- 'paramsType': {
467
- 'AvailableZone': 'String',
468
- 'SnapshotId': 'String',
469
- 'BucketName': 'String',
470
- 'ObjectName': 'String',
471
- }
472
- },
473
- 'DescribeRegions': {
474
- 'url': '/',
475
- 'method': 'GET',
476
- 'config': {
477
- 'query': {
478
- 'Version': '2016-07-01',
479
- 'Action': 'DescribeRegions',
480
- },
481
- 'headers': {
482
- 'Content-Type': 'application/json'
483
- },
484
- },
485
- 'paramsType': {
486
- }
487
- },
488
- 'DescribeAvailabilityZones': {
489
- 'url': '/',
490
- 'method': 'GET',
491
- 'config': {
492
- 'query': {
493
- 'Version': '2016-07-01',
494
- 'Action': 'DescribeAvailabilityZones',
495
- },
496
- 'headers': {
497
- 'Content-Type': 'application/json'
498
- },
499
- },
500
- 'paramsType': {
501
- }
502
- },
503
- 'DescribeCacheByRole': {
504
- 'url': '/',
505
- 'method': 'GET',
506
- 'config': {
507
- 'query': {
508
- 'Version': '2016-07-01',
509
- 'Action': 'DescribeCacheByRole',
510
- },
511
- 'headers': {
512
- 'Content-Type': 'application/json'
513
- },
514
- },
515
- 'paramsType': {
516
- 'AvailableZone': 'String',
517
- 'CacheId': 'String',
518
- 'Proxy': 'String',
519
- }
520
- },
521
- 'StatisticDBInstances': {
522
- 'url': '/',
523
- 'method': 'GET',
524
- 'config': {
525
- 'query': {
526
- 'Version': '2016-07-01',
527
- 'Action': 'StatisticDBInstances',
528
- },
529
- 'headers': {
530
- 'Content-Type': 'application/json'
531
- },
532
- },
533
- 'paramsType': {
534
- }
535
- },
536
- 'UpdatePassword': {
537
- 'url': '/',
538
- 'method': 'PUT',
539
- 'config': {
540
- 'query': {
541
- 'Version': '2016-07-01',
542
- 'Action': 'UpdatePassword',
543
- },
544
- 'headers': {
545
- 'Content-Type': 'application/json'
546
- },
547
- },
548
- 'paramsType': {
549
- 'AvailableZone': 'String',
550
- 'CacheId': 'String',
551
- 'Password': 'String',
552
- }
553
- },
554
- 'RestartCacheCluster': {
555
- 'url': '/',
556
- 'method': 'POST',
557
- 'config': {
558
- 'query': {
559
- 'Version': '2016-07-01',
560
- 'Action': 'RestartCacheCluster',
561
- },
562
- 'headers': {
563
- 'Content-Type': 'application/x-www-form-urlencoded'
564
- },
565
- },
566
- 'paramsType': {
567
- 'AvailableZone': 'String',
568
- 'CacheId': 'String',
569
- }
570
- },
571
- 'AllocateEip': {
572
- 'url': '/',
573
- 'method': 'POST',
574
- 'config': {
575
- 'query': {
576
- 'Version': '2016-07-01',
577
- 'Action': 'AllocateEip',
578
- },
579
- 'headers': {
580
- 'Content-Type': 'application/x-www-form-urlencoded'
581
- },
582
- },
583
- 'paramsType': {
584
- 'AvailableZone': 'String',
585
- 'CacheId': 'String',
586
- 'InsType': 'String',
587
- }
588
- },
589
- 'DeallocateEip': {
590
- 'url': '/',
591
- 'method': 'POST',
592
- 'config': {
593
- 'query': {
594
- 'Version': '2016-07-01',
595
- 'Action': 'DeallocateEip',
596
- },
597
- 'headers': {
598
- 'Content-Type': 'application/x-www-form-urlencoded'
599
- },
600
- },
601
- 'paramsType': {
602
- 'AvailableZone': 'String',
603
- 'CacheId': 'String',
604
- 'InsType': 'String',
605
- }
606
- },
607
- 'DescribeInstances': {
608
- 'url': '/',
609
- 'method': 'GET',
610
- 'config': {
611
- 'query': {
612
- 'Version': '2016-07-01',
613
- 'Action': 'DescribeInstances',
614
- },
615
- 'headers': {
616
- 'Content-Type': 'application/json'
617
- },
618
- },
619
- 'paramsType': {
620
- 'AvailableZone': 'String',
621
- 'SecurityGroupId': 'String',
622
- 'Offset': 'Int',
623
- 'Limit': 'Int',
624
- 'FilterCache': 'Boolean',
625
- 'SearchKey': 'String',
626
- }
627
- },
628
- 'DeleteSecurityGroupRule': {
629
- 'url': '/',
630
- 'method': 'POST',
631
- 'config': {
632
- 'query': {
633
- 'Version': '2016-07-01',
634
- 'Action': 'DeleteSecurityGroupRule',
635
- },
636
- 'headers': {
637
- 'Content-Type': 'application/x-www-form-urlencoded'
638
- },
639
- },
640
- 'paramsType': {
641
- 'AvailableZone': 'String',
642
- 'SecurityGroupId': 'String',
643
- 'SecurityGroupRuleId': 'Filter',
644
- }
645
- },
646
- 'CreateSecurityGroupRule': {
647
- 'url': '/',
648
- 'method': 'POST',
649
- 'config': {
650
- 'query': {
651
- 'Version': '2016-07-01',
652
- 'Action': 'CreateSecurityGroupRule',
653
- },
654
- 'headers': {
655
- 'Content-Type': 'application/x-www-form-urlencoded'
656
- },
657
- },
658
- 'paramsType': {
659
- 'AvailableZone': 'String',
660
- 'Cidrs': 'Filter',
661
- 'SecurityGroupId': 'String',
662
- }
663
- },
664
- 'DeallocateSecurityGroup': {
665
- 'url': '/',
666
- 'method': 'POST',
667
- 'config': {
668
- 'query': {
669
- 'Version': '2016-07-01',
670
- 'Action': 'DeallocateSecurityGroup',
671
- },
672
- 'headers': {
673
- 'Content-Type': 'application/x-www-form-urlencoded'
674
- },
675
- },
676
- 'paramsType': {
677
- 'AvailableZone': 'String',
678
- 'CacheId': 'Filter',
679
- 'SecurityGroupId': 'String',
680
- }
681
- },
682
- 'AllocateSecurityGroup': {
683
- 'url': '/',
684
- 'method': 'POST',
685
- 'config': {
686
- 'query': {
687
- 'Version': '2016-07-01',
688
- 'Action': 'AllocateSecurityGroup',
689
- },
690
- 'headers': {
691
- 'Content-Type': 'application/x-www-form-urlencoded'
692
- },
693
- },
694
- 'paramsType': {
695
- 'AvailableZone': 'String',
696
- 'CacheId': 'Filter',
697
- 'SecurityGroupId': 'Filter',
698
- }
699
- },
700
- 'DescribeSecurityGroup': {
701
- 'url': '/',
702
- 'method': 'GET',
703
- 'config': {
704
- 'query': {
705
- 'Version': '2016-07-01',
706
- 'Action': 'DescribeSecurityGroup',
707
- },
708
- 'headers': {
709
- 'Content-Type': 'application/json'
710
- },
711
- },
712
- 'paramsType': {
713
- 'AvailableZone': 'String',
714
- 'SecurityGroupId': 'String',
715
- 'SearchKey': 'String',
716
- 'Offset': 'String',
717
- 'Limit': 'Int',
718
- }
719
- },
720
- 'DescribeSecurityGroups': {
721
- 'url': '/',
722
- 'method': 'GET',
723
- 'config': {
724
- 'query': {
725
- 'Version': '2016-07-01',
726
- 'Action': 'DescribeSecurityGroups',
727
- },
728
- 'headers': {
729
- 'Content-Type': 'application/json'
730
- },
731
- },
732
- 'paramsType': {
733
- 'AvailableZone': 'String',
734
- 'Offset': 'String',
735
- 'Limit': 'Int',
736
- 'CacheId': 'String',
737
- 'FilterCache': 'Boolean',
738
- 'SearchKey': 'String',
739
- }
740
- },
741
- 'ModifySecurityGroup': {
742
- 'url': '/',
743
- 'method': 'POST',
744
- 'config': {
745
- 'query': {
746
- 'Version': '2016-07-01',
747
- 'Action': 'ModifySecurityGroup',
748
- },
749
- 'headers': {
750
- 'Content-Type': 'application/x-www-form-urlencoded'
751
- },
752
- },
753
- 'paramsType': {
754
- 'AvailableZone': 'String',
755
- 'Name': 'String',
756
- 'Description': 'String',
757
- 'SecurityGroupId': 'String',
758
- }
759
- },
760
- 'DeleteSecurityGroup': {
761
- 'url': '/',
762
- 'method': 'POST',
763
- 'config': {
764
- 'query': {
765
- 'Version': '2016-07-01',
766
- 'Action': 'DeleteSecurityGroup',
767
- },
768
- 'headers': {
769
- 'Content-Type': 'application/x-www-form-urlencoded'
770
- },
771
- },
772
- 'paramsType': {
773
- 'AvailableZone': 'String',
774
- 'SecurityGroupId': 'Filter',
775
- }
776
- },
777
- 'CloneSecurityGroup': {
778
- 'url': '/',
779
- 'method': 'POST',
780
- 'config': {
781
- 'query': {
782
- 'Version': '2016-07-01',
783
- 'Action': 'CloneSecurityGroup',
784
- },
785
- 'headers': {
786
- 'Content-Type': 'application/x-www-form-urlencoded'
787
- },
788
- },
789
- 'paramsType': {
790
- 'AvailableZone': 'String',
791
- 'Name': 'String',
792
- 'Description': 'String',
793
- 'SrcSecurityGroupId': 'String',
794
- }
795
- },
796
- 'CreateSecurityGroup': {
797
- 'url': '/',
798
- 'method': 'POST',
799
- 'config': {
800
- 'query': {
801
- 'Version': '2016-07-01',
802
- 'Action': 'CreateSecurityGroup',
803
- },
804
- 'headers': {
805
- 'Content-Type': 'application/x-www-form-urlencoded'
806
- },
807
- },
808
- 'paramsType': {
809
- 'AvailableZone': 'String',
810
- 'Name': 'String',
811
- 'Description': 'String',
812
- }
813
- },
814
- 'DescribeHotKeys': {
815
- 'url': '/',
816
- 'method': 'GET',
817
- 'config': {
818
- 'query': {
819
- 'Version': '2016-07-01',
820
- 'Action': 'DescribeHotKeys',
821
- },
822
- 'headers': {
823
- 'Content-Type': 'application/json'
824
- },
825
- },
826
- 'paramsType': {
827
- 'AvailableZone': 'String',
828
- 'CacheId': 'String',
829
- 'Limit': 'Int',
830
- 'Offset': 'Int',
831
- 'SortKey': 'String',
832
- 'SortDir': 'String',
833
- }
834
- },
835
- 'AnalyzeHotKeys': {
836
- 'url': '/',
837
- 'method': 'GET',
838
- 'config': {
839
- 'query': {
840
- 'Version': '2016-07-01',
841
- 'Action': 'AnalyzeHotKeys',
842
- },
843
- 'headers': {
844
- 'Content-Type': 'application/json'
845
- },
846
- },
847
- 'paramsType': {
848
- 'AvailableZone': 'String',
849
- 'CacheId': 'String',
850
- }
851
- },
852
- 'CloseDirectAccessToCluster': {
853
- 'url': '/',
854
- 'method': 'GET',
855
- 'config': {
856
- 'query': {
857
- 'Version': '2016-07-01',
858
- 'Action': 'CloseDirectAccessToCluster',
859
- },
860
- 'headers': {
861
- 'Content-Type': 'application/json'
862
- },
863
- },
864
- 'paramsType': {
865
- 'AvailableZone': 'String',
866
- 'CacheId': 'String',
867
- }
868
- },
869
- 'OpenDirectAccessToCluster': {
870
- 'url': '/',
871
- 'method': 'GET',
872
- 'config': {
873
- 'query': {
874
- 'Version': '2016-07-01',
875
- 'Action': 'OpenDirectAccessToCluster',
876
- },
877
- 'headers': {
878
- 'Content-Type': 'application/json'
879
- },
880
- },
881
- 'paramsType': {
882
- 'AvailableZone': 'String',
883
- 'CacheId': 'String',
884
- 'SubnetId': 'String',
885
- 'VpcId': 'String',
886
- }
887
- },
888
- 'DescribeParentBackUpsSnapshots': {
889
- 'url': '/',
890
- 'method': 'GET',
891
- 'config': {
892
- 'query': {
893
- 'Version': '2016-07-01',
894
- 'Action': 'DescribeParentBackUpsSnapshots',
895
- },
896
- 'headers': {
897
- 'Content-Type': 'application/json'
898
- },
899
- },
900
- 'paramsType': {
901
- 'CacheId': 'String',
902
- }
903
- },
904
- 'DescribeBackUpsSnapshotsDetail': {
905
- 'url': '/',
906
- 'method': 'GET',
907
- 'config': {
908
- 'query': {
909
- 'Version': '2016-07-01',
910
- 'Action': 'DescribeBackUpsSnapshotsDetail',
911
- },
912
- 'headers': {
913
- 'Content-Type': 'application/json'
914
- },
915
- },
916
- 'paramsType': {
917
- 'CacheId': 'String',
918
- 'SnapshotId': 'String',
919
- }
920
- },
921
- 'DeleteLevelSnapshots': {
922
- 'url': '/',
923
- 'method': 'DELETE',
924
- 'config': {
925
- 'query': {
926
- 'Version': '2016-07-01',
927
- 'Action': 'DeleteLevelSnapshots',
928
- },
929
- 'headers': {
930
- 'Content-Type': 'application/json'
931
- },
932
- },
933
- 'paramsType': {
934
- 'CacheId': 'String',
935
- 'SnapshotId': 'String',
936
- }
937
- },
938
- 'DownloadLevelSnapshot': {
939
- 'url': '/',
940
- 'method': 'POST',
941
- 'config': {
942
- 'query': {
943
- 'Version': '2016-07-01',
944
- 'Action': 'DownloadLevelSnapshot',
945
- },
946
- 'headers': {
947
- 'Content-Type': 'application/x-www-form-urlencoded'
948
- },
949
- },
950
- 'paramsType': {
951
- 'CacheId': 'String',
952
- 'SnapshotId': 'String',
953
- }
954
- },
955
- 'DescribeBigKeys': {
956
- 'url': '/',
957
- 'method': 'GET',
958
- 'config': {
959
- 'query': {
960
- 'Version': '2016-07-01',
961
- 'Action': 'DescribeBigKeys',
962
- },
963
- 'headers': {
964
- 'Content-Type': 'application/json'
965
- },
966
- },
967
- 'paramsType': {
968
- 'CacheId': 'String',
969
- }
970
- },
971
- 'DeleteBigKeysAnalyseResult': {
972
- 'url': '/',
973
- 'method': 'DELETE',
974
- 'config': {
975
- 'query': {
976
- 'Version': '2016-07-01',
977
- 'Action': 'DeleteBigKeysAnalyseResult',
978
- },
979
- 'headers': {
980
- 'Content-Type': 'application/json'
981
- },
982
- },
983
- 'paramsType': {
984
- 'CacheId': 'String',
985
- 'TaskId': 'String',
986
- }
987
- },
988
- 'AnalyzeBigKeys': {
989
- 'url': '/',
990
- 'method': 'GET',
991
- 'config': {
992
- 'query': {
993
- 'Version': '2016-07-01',
994
- 'Action': 'AnalyzeBigKeys',
995
- },
996
- 'headers': {
997
- 'Content-Type': 'application/json'
998
- },
999
- },
1000
- 'paramsType': {
1001
- 'TaskId': 'String',
1002
- 'QueryType': 'Int',
1003
- }
1004
- },
1005
- 'DescribeCreateSnapshotStatus': {
1006
- 'url': '/',
1007
- 'method': 'GET',
1008
- 'config': {
1009
- 'query': {
1010
- 'Version': '2016-07-01',
1011
- 'Action': 'DescribeCreateSnapshotStatus',
1012
- },
1013
- 'headers': {
1014
- 'Content-Type': 'application/json'
1015
- },
1016
- },
1017
- 'paramsType': {
1018
- 'CacheId': 'String',
1019
- }
1020
- },
1021
- 'GetDailyAnalyzeSwitchState': {
1022
- 'url': '/',
1023
- 'method': 'POST',
1024
- 'config': {
1025
- 'query': {
1026
- 'Version': '2016-07-01',
1027
- 'Action': 'GetDailyAnalyzeSwitchState',
1028
- },
1029
- 'headers': {
1030
- 'Content-Type': 'application/x-www-form-urlencoded'
1031
- },
1032
- },
1033
- 'paramsType': {
1034
- 'CacheId': 'String',
1035
- }
1036
- },
1037
- 'AnalyzeDaily': {
1038
- 'url': '/',
1039
- 'method': 'POST',
1040
- 'config': {
1041
- 'query': {
1042
- 'Version': '2016-07-01',
1043
- 'Action': 'AnalyzeDaily',
1044
- },
1045
- 'headers': {
1046
- 'Content-Type': 'application/x-www-form-urlencoded'
1047
- },
1048
- },
1049
- 'paramsType': {
1050
- 'CacheId': 'String',
1051
- 'StartQueryTime': 'String',
1052
- 'EndQueryTime': 'String',
1053
- 'PageNum': 'String',
1054
- 'PageSize': 'String',
1055
- 'ShardId': 'String',
1056
- 'OperationType': 'String',
1057
- }
1058
- },
1059
- 'AnalyzeSlowDaily': {
1060
- 'url': '/',
1061
- 'method': 'POST',
1062
- 'config': {
1063
- 'query': {
1064
- 'Version': '2016-07-01',
1065
- 'Action': 'AnalyzeSlowDaily',
1066
- },
1067
- 'headers': {
1068
- 'Content-Type': 'application/x-www-form-urlencoded'
1069
- },
1070
- },
1071
- 'paramsType': {
1072
- 'CacheId': 'String',
1073
- 'StartQueryTime': 'String',
1074
- 'EndQueryTime': 'String',
1075
- 'PageNum': 'Int',
1076
- 'PageSize': 'Int',
1077
- 'ShardId': 'String',
1078
- 'IsProxy': 'Boolean',
1079
- 'OperationType': 'String',
1080
- }
1081
- },
1082
- 'AnalyzeDailySwitch': {
1083
- 'url': '/',
1084
- 'method': 'POST',
1085
- 'config': {
1086
- 'query': {
1087
- 'Version': '2016-07-01',
1088
- 'Action': 'AnalyzeDailySwitch',
1089
- },
1090
- 'headers': {
1091
- 'Content-Type': 'application/x-www-form-urlencoded'
1092
- },
1093
- },
1094
- 'paramsType': {
1095
- 'CacheId': 'String',
1096
- 'ServiceLog': 'Boolean',
1097
- 'SlowLog': 'Boolean',
1098
- }
1099
- },
1100
- }
1101
- }
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
+ CreateCacheCluster: {
20
+ url: "/",
21
+ method: "POST",
22
+ config: {
23
+ query: {
24
+ Version: "2016-07-01",
25
+ Action: "CreateCacheCluster",
26
+ },
27
+ headers: {
28
+ "Content-Type": "application/x-www-form-urlencoded",
29
+ },
30
+ },
31
+ paramsType: {
32
+ AvailableZone: "String",
33
+ Name: "String",
34
+ PassWord: "String",
35
+ Mode: "Int",
36
+ Vip: "String",
37
+ Capacity: "Int",
38
+ VpcId: "String",
39
+ VnetId: "String",
40
+ BillType: "Int",
41
+ Duration: "Int",
42
+ IamProjectId: "String",
43
+ Protocol: "String",
44
+ BackupTimezone: "String",
45
+ SecurityGroupId: "String",
46
+ SlaveNum: "Int",
47
+ SlaveVip: "String",
48
+ PrepareAzName: "String",
49
+ RrAzName: "String",
50
+ ShardNum: "Int",
51
+ ShardSize: "Int",
52
+ Separation: "Int",
53
+ },
54
+ },
55
+ DeleteCacheCluster: {
56
+ url: "/",
57
+ method: "DELETE",
58
+ config: {
59
+ query: {
60
+ Version: "2016-07-01",
61
+ Action: "DeleteCacheCluster",
62
+ },
63
+ headers: {
64
+ "Content-Type": "application/json",
65
+ },
66
+ },
67
+ paramsType: {
68
+ AvailableZone: "String",
69
+ CacheId: "String",
70
+ },
71
+ },
72
+ DescribeCacheCluster: {
73
+ url: "/",
74
+ method: "GET",
75
+ config: {
76
+ query: {
77
+ Version: "2016-07-01",
78
+ Action: "DescribeCacheCluster",
79
+ },
80
+ headers: {
81
+ "Content-Type": "application/json",
82
+ },
83
+ },
84
+ paramsType: {
85
+ CacheId: "String",
86
+ AvailableZone: "String",
87
+ },
88
+ },
89
+ DescribeCacheClusters: {
90
+ url: "/",
91
+ method: "GET",
92
+ config: {
93
+ query: {
94
+ Version: "2016-07-01",
95
+ Action: "DescribeCacheClusters",
96
+ },
97
+ headers: {
98
+ "Content-Type": "application/json",
99
+ },
100
+ },
101
+ paramsType: {
102
+ AvailableZone: "String",
103
+ CacheId: "String",
104
+ Name: "String",
105
+ Vip: "String",
106
+ VpcId: "String",
107
+ VnetId: "String",
108
+ Offset: "String",
109
+ Limit: "String",
110
+ OrderBy: "String",
111
+ IamProjectId: "String",
112
+ FuzzySearch: "String",
113
+ Protocol: "String",
114
+ TagKey: "String",
115
+ TagValue: "String",
116
+ Mode: "String",
117
+ },
118
+ },
119
+ FlushCacheCluster: {
120
+ url: "/",
121
+ method: "PUT",
122
+ config: {
123
+ query: {
124
+ Version: "2016-07-01",
125
+ Action: "FlushCacheCluster",
126
+ },
127
+ headers: {
128
+ "Content-Type": "application/json",
129
+ },
130
+ },
131
+ paramsType: {
132
+ AvailableZone: "String",
133
+ CacheId: "String",
134
+ DatabaseNo: "String",
135
+ },
136
+ },
137
+ RenameCacheCluster: {
138
+ url: "/",
139
+ method: "PUT",
140
+ config: {
141
+ query: {
142
+ Version: "2016-07-01",
143
+ Action: "RenameCacheCluster",
144
+ },
145
+ headers: {
146
+ "Content-Type": "application/json",
147
+ },
148
+ },
149
+ paramsType: {
150
+ AvailableZone: "String",
151
+ CacheId: "String",
152
+ Name: "String",
153
+ },
154
+ },
155
+ ResizeCacheCluster: {
156
+ url: "/",
157
+ method: "PUT",
158
+ config: {
159
+ query: {
160
+ Version: "2016-07-01",
161
+ Action: "ResizeCacheCluster",
162
+ },
163
+ headers: {
164
+ "Content-Type": "application/json",
165
+ },
166
+ },
167
+ paramsType: {
168
+ AvailableZone: "String",
169
+ CacheId: "String",
170
+ Capacity: "Int",
171
+ ShardSize: "Int",
172
+ ShardNum: "Int",
173
+ },
174
+ },
175
+ DescribeCacheParameters: {
176
+ url: "/",
177
+ method: "GET",
178
+ config: {
179
+ query: {
180
+ Version: "2016-07-01",
181
+ Action: "DescribeCacheParameters",
182
+ },
183
+ headers: {
184
+ "Content-Type": "application/json",
185
+ },
186
+ },
187
+ paramsType: {
188
+ AvailableZone: "String",
189
+ CacheId: "String",
190
+ },
191
+ },
192
+ SetCacheParameters: {
193
+ url: "/",
194
+ method: "PUT",
195
+ config: {
196
+ query: {
197
+ Version: "2016-07-01",
198
+ Action: "SetCacheParameters",
199
+ },
200
+ headers: {
201
+ "Content-Type": "application/json",
202
+ },
203
+ },
204
+ paramsType: {
205
+ AvailableZone: "String",
206
+ CacheId: "String",
207
+ Protocol: "String",
208
+ "Parameters.ParameterName": "Filter",
209
+ "Parameters.ParameterValue": "Filter",
210
+ ResetAllParameters: "Boolean",
211
+ },
212
+ },
213
+ DescribeCacheDefaultParameters: {
214
+ url: "/",
215
+ method: "GET",
216
+ config: {
217
+ query: {
218
+ Version: "2016-07-01",
219
+ Action: "DescribeCacheDefaultParameters",
220
+ },
221
+ headers: {
222
+ "Content-Type": "application/json",
223
+ },
224
+ },
225
+ paramsType: {
226
+ AvailableZone: "String",
227
+ ParamVersion: "String",
228
+ },
229
+ },
230
+ SetCacheParameterGroup: {
231
+ url: "/",
232
+ method: "PUT",
233
+ config: {
234
+ query: {
235
+ Version: "2016-07-01",
236
+ Action: "SetCacheParameterGroup",
237
+ },
238
+ headers: {
239
+ "Content-Type": "application/json",
240
+ },
241
+ },
242
+ paramsType: {
243
+ AvailableZone: "String",
244
+ CacheParameterGroupId: "String",
245
+ CacheId: "String",
246
+ },
247
+ },
248
+ CreateCacheParameterGroup: {
249
+ url: "/",
250
+ method: "POST",
251
+ config: {
252
+ query: {
253
+ Version: "2016-07-01",
254
+ Action: "CreateCacheParameterGroup",
255
+ },
256
+ headers: {
257
+ "Content-Type": "application/x-www-form-urlencoded",
258
+ },
259
+ },
260
+ paramsType: {
261
+ AvailableZone: "String",
262
+ Name: "String",
263
+ Description: "String",
264
+ ParamVersion: "String",
265
+ Parameters: "Filter",
266
+ },
267
+ },
268
+ DeleteCacheParameterGroup: {
269
+ url: "/",
270
+ method: "DELETE",
271
+ config: {
272
+ query: {
273
+ Version: "2016-07-01",
274
+ Action: "DeleteCacheParameterGroup",
275
+ },
276
+ headers: {
277
+ "Content-Type": "application/json",
278
+ },
279
+ },
280
+ paramsType: {
281
+ AvailableZone: "String",
282
+ CacheParameterGroupId: "String",
283
+ },
284
+ },
285
+ ModifyCacheParameterGroup: {
286
+ url: "/",
287
+ method: "PUT",
288
+ config: {
289
+ query: {
290
+ Version: "2016-07-01",
291
+ Action: "ModifyCacheParameterGroup",
292
+ },
293
+ headers: {
294
+ "Content-Type": "application/json",
295
+ },
296
+ },
297
+ paramsType: {
298
+ AvailableZone: "String",
299
+ Name: "String",
300
+ Description: "String",
301
+ ParamVersion: "String",
302
+ CacheParameterGroupId: "String",
303
+ Parameters: "Filter",
304
+ },
305
+ },
306
+ DescribeCacheParameterGroups: {
307
+ url: "/",
308
+ method: "GET",
309
+ config: {
310
+ query: {
311
+ Version: "2016-07-01",
312
+ Action: "DescribeCacheParameterGroups",
313
+ },
314
+ headers: {
315
+ "Content-Type": "application/json",
316
+ },
317
+ },
318
+ paramsType: {
319
+ AvailableZone: "String",
320
+ Name: "String",
321
+ CacheParameterGroupId: "String",
322
+ ParamVersion: "String",
323
+ Offset: "String",
324
+ Limit: "String",
325
+ },
326
+ },
327
+ DescribeCacheParameterGroup: {
328
+ url: "/",
329
+ method: "GET",
330
+ config: {
331
+ query: {
332
+ Version: "2016-07-01",
333
+ Action: "DescribeCacheParameterGroup",
334
+ },
335
+ headers: {
336
+ "Content-Type": "application/json",
337
+ },
338
+ },
339
+ paramsType: {
340
+ AvailableZone: "String",
341
+ CacheParameterGroupId: "String",
342
+ },
343
+ },
344
+ SetTimingSnapshot: {
345
+ url: "/",
346
+ method: "PUT",
347
+ config: {
348
+ query: {
349
+ Version: "2016-07-01",
350
+ Action: "SetTimingSnapshot",
351
+ },
352
+ headers: {
353
+ "Content-Type": "application/json",
354
+ },
355
+ },
356
+ paramsType: {
357
+ AvailableZone: "String",
358
+ TimingSwitch: "String",
359
+ CacheId: "String",
360
+ Timezone: "String",
361
+ Bigkey: "Boolean",
362
+ },
363
+ },
364
+ DeleteSnapshot: {
365
+ url: "/",
366
+ method: "DELETE",
367
+ config: {
368
+ query: {
369
+ Version: "2016-07-01",
370
+ Action: "DeleteSnapshot",
371
+ },
372
+ headers: {
373
+ "Content-Type": "application/json",
374
+ },
375
+ },
376
+ paramsType: {
377
+ AvailableZone: "String",
378
+ SnapshotId: "String",
379
+ },
380
+ },
381
+ RenameSnapshot: {
382
+ url: "/",
383
+ method: "PUT",
384
+ config: {
385
+ query: {
386
+ Version: "2016-07-01",
387
+ Action: "RenameSnapshot",
388
+ },
389
+ headers: {
390
+ "Content-Type": "application/json",
391
+ },
392
+ },
393
+ paramsType: {
394
+ AvailableZone: "String",
395
+ Name: "String",
396
+ SnapshotId: "String",
397
+ },
398
+ },
399
+ RestoreSnapshot: {
400
+ url: "/",
401
+ method: "PUT",
402
+ config: {
403
+ query: {
404
+ Version: "2016-07-01",
405
+ Action: "RestoreSnapshot",
406
+ },
407
+ headers: {
408
+ "Content-Type": "application/json",
409
+ },
410
+ },
411
+ paramsType: {
412
+ AvailableZone: "String",
413
+ Cacheld: "String",
414
+ Type: "String",
415
+ SnapshotId: "String",
416
+ BucketName: "String",
417
+ ObjectName: "String",
418
+ },
419
+ },
420
+ DescribeSnapshots: {
421
+ url: "/",
422
+ method: "GET",
423
+ config: {
424
+ query: {
425
+ Version: "2016-07-01",
426
+ Action: "DescribeSnapshots",
427
+ },
428
+ headers: {
429
+ "Content-Type": "application/json",
430
+ },
431
+ },
432
+ paramsType: {
433
+ AvailableZone: "String",
434
+ CacheId: "String",
435
+ },
436
+ },
437
+ DownloadSnapshot: {
438
+ url: "/",
439
+ method: "GET",
440
+ config: {
441
+ query: {
442
+ Version: "2016-07-01",
443
+ Action: "DownloadSnapshot",
444
+ },
445
+ headers: {
446
+ "Content-Type": "application/json",
447
+ },
448
+ },
449
+ paramsType: {
450
+ AvailableZone: "String",
451
+ SnapshotId: "String",
452
+ },
453
+ },
454
+ ExportSnapshot: {
455
+ url: "/",
456
+ method: "GET",
457
+ config: {
458
+ query: {
459
+ Version: "2016-07-01",
460
+ Action: "ExportSnapshot",
461
+ },
462
+ headers: {
463
+ "Content-Type": "application/json",
464
+ },
465
+ },
466
+ paramsType: {
467
+ AvailableZone: "String",
468
+ SnapshotId: "String",
469
+ BucketName: "String",
470
+ ObjectName: "String",
471
+ },
472
+ },
473
+ DescribeRegions: {
474
+ url: "/",
475
+ method: "GET",
476
+ config: {
477
+ query: {
478
+ Version: "2016-07-01",
479
+ Action: "DescribeRegions",
480
+ },
481
+ headers: {
482
+ "Content-Type": "application/json",
483
+ },
484
+ },
485
+ paramsType: {},
486
+ },
487
+ DescribeAvailabilityZones: {
488
+ url: "/",
489
+ method: "GET",
490
+ config: {
491
+ query: {
492
+ Version: "2016-07-01",
493
+ Action: "DescribeAvailabilityZones",
494
+ },
495
+ headers: {
496
+ "Content-Type": "application/json",
497
+ },
498
+ },
499
+ paramsType: {},
500
+ },
501
+ DescribeCacheByRole: {
502
+ url: "/",
503
+ method: "GET",
504
+ config: {
505
+ query: {
506
+ Version: "2016-07-01",
507
+ Action: "DescribeCacheByRole",
508
+ },
509
+ headers: {
510
+ "Content-Type": "application/json",
511
+ },
512
+ },
513
+ paramsType: {
514
+ AvailableZone: "String",
515
+ CacheId: "String",
516
+ Proxy: "String",
517
+ },
518
+ },
519
+ StatisticDBInstances: {
520
+ url: "/",
521
+ method: "GET",
522
+ config: {
523
+ query: {
524
+ Version: "2016-07-01",
525
+ Action: "StatisticDBInstances",
526
+ },
527
+ headers: {
528
+ "Content-Type": "application/json",
529
+ },
530
+ },
531
+ paramsType: {},
532
+ },
533
+ UpdatePassword: {
534
+ url: "/",
535
+ method: "PUT",
536
+ config: {
537
+ query: {
538
+ Version: "2016-07-01",
539
+ Action: "UpdatePassword",
540
+ },
541
+ headers: {
542
+ "Content-Type": "application/json",
543
+ },
544
+ },
545
+ paramsType: {
546
+ AvailableZone: "String",
547
+ CacheId: "String",
548
+ Password: "String",
549
+ },
550
+ },
551
+ RestartCacheCluster: {
552
+ url: "/",
553
+ method: "POST",
554
+ config: {
555
+ query: {
556
+ Version: "2016-07-01",
557
+ Action: "RestartCacheCluster",
558
+ },
559
+ headers: {
560
+ "Content-Type": "application/x-www-form-urlencoded",
561
+ },
562
+ },
563
+ paramsType: {
564
+ AvailableZone: "String",
565
+ CacheId: "String",
566
+ },
567
+ },
568
+ AllocateEip: {
569
+ url: "/",
570
+ method: "POST",
571
+ config: {
572
+ query: {
573
+ Version: "2016-07-01",
574
+ Action: "AllocateEip",
575
+ },
576
+ headers: {
577
+ "Content-Type": "application/x-www-form-urlencoded",
578
+ },
579
+ },
580
+ paramsType: {
581
+ AvailableZone: "String",
582
+ CacheId: "String",
583
+ InsType: "String",
584
+ },
585
+ },
586
+ DeallocateEip: {
587
+ url: "/",
588
+ method: "POST",
589
+ config: {
590
+ query: {
591
+ Version: "2016-07-01",
592
+ Action: "DeallocateEip",
593
+ },
594
+ headers: {
595
+ "Content-Type": "application/x-www-form-urlencoded",
596
+ },
597
+ },
598
+ paramsType: {
599
+ AvailableZone: "String",
600
+ CacheId: "String",
601
+ InsType: "String",
602
+ },
603
+ },
604
+ DescribeInstances: {
605
+ url: "/",
606
+ method: "GET",
607
+ config: {
608
+ query: {
609
+ Version: "2016-07-01",
610
+ Action: "DescribeInstances",
611
+ },
612
+ headers: {
613
+ "Content-Type": "application/json",
614
+ },
615
+ },
616
+ paramsType: {
617
+ AvailableZone: "String",
618
+ SecurityGroupId: "String",
619
+ Offset: "Int",
620
+ Limit: "Int",
621
+ FilterCache: "Boolean",
622
+ SearchKey: "String",
623
+ },
624
+ },
625
+ DeleteSecurityGroupRule: {
626
+ url: "/",
627
+ method: "POST",
628
+ config: {
629
+ query: {
630
+ Version: "2016-07-01",
631
+ Action: "DeleteSecurityGroupRule",
632
+ },
633
+ headers: {
634
+ "Content-Type": "application/x-www-form-urlencoded",
635
+ },
636
+ },
637
+ paramsType: {
638
+ AvailableZone: "String",
639
+ SecurityGroupId: "String",
640
+ SecurityGroupRuleId: "Filter",
641
+ },
642
+ },
643
+ CreateSecurityGroupRule: {
644
+ url: "/",
645
+ method: "POST",
646
+ config: {
647
+ query: {
648
+ Version: "2016-07-01",
649
+ Action: "CreateSecurityGroupRule",
650
+ },
651
+ headers: {
652
+ "Content-Type": "application/x-www-form-urlencoded",
653
+ },
654
+ },
655
+ paramsType: {
656
+ AvailableZone: "String",
657
+ Cidrs: "Filter",
658
+ SecurityGroupId: "String",
659
+ },
660
+ },
661
+ DeallocateSecurityGroup: {
662
+ url: "/",
663
+ method: "POST",
664
+ config: {
665
+ query: {
666
+ Version: "2016-07-01",
667
+ Action: "DeallocateSecurityGroup",
668
+ },
669
+ headers: {
670
+ "Content-Type": "application/x-www-form-urlencoded",
671
+ },
672
+ },
673
+ paramsType: {
674
+ AvailableZone: "String",
675
+ CacheId: "Filter",
676
+ SecurityGroupId: "String",
677
+ },
678
+ },
679
+ AllocateSecurityGroup: {
680
+ url: "/",
681
+ method: "POST",
682
+ config: {
683
+ query: {
684
+ Version: "2016-07-01",
685
+ Action: "AllocateSecurityGroup",
686
+ },
687
+ headers: {
688
+ "Content-Type": "application/x-www-form-urlencoded",
689
+ },
690
+ },
691
+ paramsType: {
692
+ AvailableZone: "String",
693
+ CacheId: "Filter",
694
+ SecurityGroupId: "Filter",
695
+ },
696
+ },
697
+ DescribeSecurityGroup: {
698
+ url: "/",
699
+ method: "GET",
700
+ config: {
701
+ query: {
702
+ Version: "2016-07-01",
703
+ Action: "DescribeSecurityGroup",
704
+ },
705
+ headers: {
706
+ "Content-Type": "application/json",
707
+ },
708
+ },
709
+ paramsType: {
710
+ AvailableZone: "String",
711
+ SecurityGroupId: "String",
712
+ SearchKey: "String",
713
+ Offset: "String",
714
+ Limit: "Int",
715
+ },
716
+ },
717
+ DescribeSecurityGroups: {
718
+ url: "/",
719
+ method: "GET",
720
+ config: {
721
+ query: {
722
+ Version: "2016-07-01",
723
+ Action: "DescribeSecurityGroups",
724
+ },
725
+ headers: {
726
+ "Content-Type": "application/json",
727
+ },
728
+ },
729
+ paramsType: {
730
+ AvailableZone: "String",
731
+ Offset: "String",
732
+ Limit: "Int",
733
+ CacheId: "String",
734
+ FilterCache: "Boolean",
735
+ SearchKey: "String",
736
+ },
737
+ },
738
+ ModifySecurityGroup: {
739
+ url: "/",
740
+ method: "POST",
741
+ config: {
742
+ query: {
743
+ Version: "2016-07-01",
744
+ Action: "ModifySecurityGroup",
745
+ },
746
+ headers: {
747
+ "Content-Type": "application/x-www-form-urlencoded",
748
+ },
749
+ },
750
+ paramsType: {
751
+ AvailableZone: "String",
752
+ Name: "String",
753
+ Description: "String",
754
+ SecurityGroupId: "String",
755
+ },
756
+ },
757
+ DeleteSecurityGroup: {
758
+ url: "/",
759
+ method: "POST",
760
+ config: {
761
+ query: {
762
+ Version: "2016-07-01",
763
+ Action: "DeleteSecurityGroup",
764
+ },
765
+ headers: {
766
+ "Content-Type": "application/x-www-form-urlencoded",
767
+ },
768
+ },
769
+ paramsType: {
770
+ AvailableZone: "String",
771
+ SecurityGroupId: "Filter",
772
+ },
773
+ },
774
+ CloneSecurityGroup: {
775
+ url: "/",
776
+ method: "POST",
777
+ config: {
778
+ query: {
779
+ Version: "2016-07-01",
780
+ Action: "CloneSecurityGroup",
781
+ },
782
+ headers: {
783
+ "Content-Type": "application/x-www-form-urlencoded",
784
+ },
785
+ },
786
+ paramsType: {
787
+ AvailableZone: "String",
788
+ Name: "String",
789
+ Description: "String",
790
+ SrcSecurityGroupId: "String",
791
+ },
792
+ },
793
+ CreateSecurityGroup: {
794
+ url: "/",
795
+ method: "POST",
796
+ config: {
797
+ query: {
798
+ Version: "2016-07-01",
799
+ Action: "CreateSecurityGroup",
800
+ },
801
+ headers: {
802
+ "Content-Type": "application/x-www-form-urlencoded",
803
+ },
804
+ },
805
+ paramsType: {
806
+ AvailableZone: "String",
807
+ Name: "String",
808
+ Description: "String",
809
+ },
810
+ },
811
+ DescribeHotKeys: {
812
+ url: "/",
813
+ method: "GET",
814
+ config: {
815
+ query: {
816
+ Version: "2016-07-01",
817
+ Action: "DescribeHotKeys",
818
+ },
819
+ headers: {
820
+ "Content-Type": "application/json",
821
+ },
822
+ },
823
+ paramsType: {
824
+ AvailableZone: "String",
825
+ CacheId: "String",
826
+ Limit: "Int",
827
+ Offset: "Int",
828
+ SortKey: "String",
829
+ SortDir: "String",
830
+ },
831
+ },
832
+ AnalyzeHotKeys: {
833
+ url: "/",
834
+ method: "GET",
835
+ config: {
836
+ query: {
837
+ Version: "2016-07-01",
838
+ Action: "AnalyzeHotKeys",
839
+ },
840
+ headers: {
841
+ "Content-Type": "application/json",
842
+ },
843
+ },
844
+ paramsType: {
845
+ AvailableZone: "String",
846
+ CacheId: "String",
847
+ },
848
+ },
849
+ CloseDirectAccessToCluster: {
850
+ url: "/",
851
+ method: "GET",
852
+ config: {
853
+ query: {
854
+ Version: "2016-07-01",
855
+ Action: "CloseDirectAccessToCluster",
856
+ },
857
+ headers: {
858
+ "Content-Type": "application/json",
859
+ },
860
+ },
861
+ paramsType: {
862
+ AvailableZone: "String",
863
+ CacheId: "String",
864
+ },
865
+ },
866
+ OpenDirectAccessToCluster: {
867
+ url: "/",
868
+ method: "GET",
869
+ config: {
870
+ query: {
871
+ Version: "2016-07-01",
872
+ Action: "OpenDirectAccessToCluster",
873
+ },
874
+ headers: {
875
+ "Content-Type": "application/json",
876
+ },
877
+ },
878
+ paramsType: {
879
+ AvailableZone: "String",
880
+ CacheId: "String",
881
+ SubnetId: "String",
882
+ VpcId: "String",
883
+ },
884
+ },
885
+ DescribeParentBackUpsSnapshots: {
886
+ url: "/",
887
+ method: "GET",
888
+ config: {
889
+ query: {
890
+ Version: "2016-07-01",
891
+ Action: "DescribeParentBackUpsSnapshots",
892
+ },
893
+ headers: {
894
+ "Content-Type": "application/json",
895
+ },
896
+ },
897
+ paramsType: {
898
+ CacheId: "String",
899
+ },
900
+ },
901
+ DescribeBackUpsSnapshotsDetail: {
902
+ url: "/",
903
+ method: "GET",
904
+ config: {
905
+ query: {
906
+ Version: "2016-07-01",
907
+ Action: "DescribeBackUpsSnapshotsDetail",
908
+ },
909
+ headers: {
910
+ "Content-Type": "application/json",
911
+ },
912
+ },
913
+ paramsType: {
914
+ CacheId: "String",
915
+ SnapshotId: "String",
916
+ },
917
+ },
918
+ DeleteLevelSnapshots: {
919
+ url: "/",
920
+ method: "DELETE",
921
+ config: {
922
+ query: {
923
+ Version: "2016-07-01",
924
+ Action: "DeleteLevelSnapshots",
925
+ },
926
+ headers: {
927
+ "Content-Type": "application/json",
928
+ },
929
+ },
930
+ paramsType: {
931
+ CacheId: "String",
932
+ SnapshotId: "String",
933
+ },
934
+ },
935
+ DownloadLevelSnapshot: {
936
+ url: "/",
937
+ method: "POST",
938
+ config: {
939
+ query: {
940
+ Version: "2016-07-01",
941
+ Action: "DownloadLevelSnapshot",
942
+ },
943
+ headers: {
944
+ "Content-Type": "application/x-www-form-urlencoded",
945
+ },
946
+ },
947
+ paramsType: {
948
+ CacheId: "String",
949
+ SnapshotId: "String",
950
+ },
951
+ },
952
+ DescribeBigKeys: {
953
+ url: "/",
954
+ method: "GET",
955
+ config: {
956
+ query: {
957
+ Version: "2016-07-01",
958
+ Action: "DescribeBigKeys",
959
+ },
960
+ headers: {
961
+ "Content-Type": "application/json",
962
+ },
963
+ },
964
+ paramsType: {
965
+ CacheId: "String",
966
+ },
967
+ },
968
+ DeleteBigKeysAnalyseResult: {
969
+ url: "/",
970
+ method: "DELETE",
971
+ config: {
972
+ query: {
973
+ Version: "2016-07-01",
974
+ Action: "DeleteBigKeysAnalyseResult",
975
+ },
976
+ headers: {
977
+ "Content-Type": "application/json",
978
+ },
979
+ },
980
+ paramsType: {
981
+ CacheId: "String",
982
+ TaskId: "String",
983
+ },
984
+ },
985
+ AnalyzeBigKeys: {
986
+ url: "/",
987
+ method: "GET",
988
+ config: {
989
+ query: {
990
+ Version: "2016-07-01",
991
+ Action: "AnalyzeBigKeys",
992
+ },
993
+ headers: {
994
+ "Content-Type": "application/json",
995
+ },
996
+ },
997
+ paramsType: {
998
+ TaskId: "String",
999
+ QueryType: "Int",
1000
+ },
1001
+ },
1002
+ DescribeCreateSnapshotStatus: {
1003
+ url: "/",
1004
+ method: "GET",
1005
+ config: {
1006
+ query: {
1007
+ Version: "2016-07-01",
1008
+ Action: "DescribeCreateSnapshotStatus",
1009
+ },
1010
+ headers: {
1011
+ "Content-Type": "application/json",
1012
+ },
1013
+ },
1014
+ paramsType: {
1015
+ CacheId: "String",
1016
+ },
1017
+ },
1018
+ GetDailyAnalyzeSwitchState: {
1019
+ url: "/",
1020
+ method: "POST",
1021
+ config: {
1022
+ query: {
1023
+ Version: "2016-07-01",
1024
+ Action: "GetDailyAnalyzeSwitchState",
1025
+ },
1026
+ headers: {
1027
+ "Content-Type": "application/x-www-form-urlencoded",
1028
+ },
1029
+ },
1030
+ paramsType: {
1031
+ CacheId: "String",
1032
+ },
1033
+ },
1034
+ AnalyzeDaily: {
1035
+ url: "/",
1036
+ method: "POST",
1037
+ config: {
1038
+ query: {
1039
+ Version: "2016-07-01",
1040
+ Action: "AnalyzeDaily",
1041
+ },
1042
+ headers: {
1043
+ "Content-Type": "application/x-www-form-urlencoded",
1044
+ },
1045
+ },
1046
+ paramsType: {
1047
+ CacheId: "String",
1048
+ StartQueryTime: "String",
1049
+ EndQueryTime: "String",
1050
+ PageNum: "String",
1051
+ PageSize: "String",
1052
+ ShardId: "String",
1053
+ OperationType: "String",
1054
+ },
1055
+ },
1056
+ AnalyzeSlowDaily: {
1057
+ url: "/",
1058
+ method: "POST",
1059
+ config: {
1060
+ query: {
1061
+ Version: "2016-07-01",
1062
+ Action: "AnalyzeSlowDaily",
1063
+ },
1064
+ headers: {
1065
+ "Content-Type": "application/x-www-form-urlencoded",
1066
+ },
1067
+ },
1068
+ paramsType: {
1069
+ CacheId: "String",
1070
+ StartQueryTime: "String",
1071
+ EndQueryTime: "String",
1072
+ PageNum: "Int",
1073
+ PageSize: "Int",
1074
+ ShardId: "String",
1075
+ IsProxy: "Boolean",
1076
+ OperationType: "String",
1077
+ },
1078
+ },
1079
+ AnalyzeDailySwitch: {
1080
+ url: "/",
1081
+ method: "POST",
1082
+ config: {
1083
+ query: {
1084
+ Version: "2016-07-01",
1085
+ Action: "AnalyzeDailySwitch",
1086
+ },
1087
+ headers: {
1088
+ "Content-Type": "application/x-www-form-urlencoded",
1089
+ },
1090
+ },
1091
+ paramsType: {
1092
+ CacheId: "String",
1093
+ ServiceLog: "Boolean",
1094
+ SlowLog: "Boolean",
1095
+ },
1096
+ },
1097
+ };
1098
+ };