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
@@ -0,0 +1,174 @@
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': 'krds.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': 'krds'
22
+ }
23
+ }
24
+ });
25
+ _defineProperty(this, "_apiList", {
26
+ 'CreateSecurityGroup': {
27
+ 'url': '/',
28
+ 'method': 'GET',
29
+ 'config': {
30
+ 'query': {
31
+ 'Version': '2020-08-25',
32
+ 'Action': 'CreateSecurityGroup'
33
+ },
34
+ 'headers': {
35
+ 'Content-Type': 'application/json'
36
+ }
37
+ },
38
+ 'paramsType': {
39
+ 'SecurityGroupName': 'String',
40
+ 'SecurityGroupDescription': 'String',
41
+ 'SecurityGroupType': 'String',
42
+ 'DBInstanceIdentifier': 'Filter',
43
+ 'SecurityGroupRule.SecurityGroupRuleName.N': 'String',
44
+ 'SecurityGroupRule.SecurityGroupRuleCidr.N': 'String'
45
+ }
46
+ },
47
+ 'DescribeSecurityGroup': {
48
+ 'url': '/',
49
+ 'method': 'GET',
50
+ 'config': {
51
+ 'query': {
52
+ 'Version': '2020-08-25',
53
+ 'Action': 'DescribeSecurityGroup'
54
+ },
55
+ 'headers': {
56
+ 'Content-Type': 'application/json'
57
+ }
58
+ },
59
+ 'paramsType': {
60
+ 'SecurityGroupId.N': 'String',
61
+ 'SecurityGroupType': 'String'
62
+ }
63
+ },
64
+ 'DeleteSecurityGroup': {
65
+ 'url': '/',
66
+ 'method': 'GET',
67
+ 'config': {
68
+ 'query': {
69
+ 'Version': '2020-08-25',
70
+ 'Action': 'DeleteSecurityGroup'
71
+ },
72
+ 'headers': {
73
+ 'Content-Type': 'application/json'
74
+ }
75
+ },
76
+ 'paramsType': {
77
+ 'SecurityGroupIds': 'String'
78
+ }
79
+ },
80
+ 'ModifySecurityGroup': {
81
+ 'url': '/',
82
+ 'method': 'GET',
83
+ 'config': {
84
+ 'query': {
85
+ 'Version': '2020-08-25',
86
+ 'Action': 'ModifySecurityGroup'
87
+ },
88
+ 'headers': {
89
+ 'Content-Type': 'application/json'
90
+ }
91
+ },
92
+ 'paramsType': {
93
+ 'SecurityGroupId': 'String',
94
+ 'SecurityGroupName': 'String',
95
+ 'SecurityGroupDescription': 'String'
96
+ }
97
+ },
98
+ 'CloneSecurityGroup': {
99
+ 'url': '/',
100
+ 'method': 'GET',
101
+ 'config': {
102
+ 'query': {
103
+ 'Version': '2020-08-25',
104
+ 'Action': 'CloneSecurityGroup'
105
+ },
106
+ 'headers': {
107
+ 'Content-Type': 'application/json'
108
+ }
109
+ },
110
+ 'paramsType': {
111
+ 'SecurityGroupId': 'String',
112
+ 'SecurityGroupName': 'String',
113
+ 'SecurityGroupDescription': 'String'
114
+ }
115
+ },
116
+ 'ModifySecurityGroupRule': {
117
+ 'url': '/',
118
+ 'method': 'GET',
119
+ 'config': {
120
+ 'query': {
121
+ 'Version': '2020-08-25',
122
+ 'Action': 'ModifySecurityGroupRule'
123
+ },
124
+ 'headers': {
125
+ 'Content-Type': 'application/json'
126
+ }
127
+ },
128
+ 'paramsType': {
129
+ 'SecurityGroupRuleAction': 'String',
130
+ 'SecurityGroupId': 'String',
131
+ 'SecurityGroupRule.SecurityGroupRuleId': 'Filter',
132
+ 'SecurityGroupRule.SecurityGroupRuleName': 'Filter',
133
+ 'SecurityGroupRule.SecurityGroupRuleCidr': 'Filter'
134
+ }
135
+ },
136
+ 'SecurityGroupRelation': {
137
+ 'url': '/',
138
+ 'method': 'GET',
139
+ 'config': {
140
+ 'query': {
141
+ 'Version': '2020-08-25',
142
+ 'Action': 'SecurityGroupRelation'
143
+ },
144
+ 'headers': {
145
+ 'Content-Type': 'application/json'
146
+ }
147
+ },
148
+ 'paramsType': {
149
+ 'RelationAction': 'String',
150
+ 'SecurityGroupId': 'String',
151
+ 'DBInstanceIdentifier': 'String'
152
+ }
153
+ },
154
+ 'ModifySecurityGroupRuleName': {
155
+ 'url': '/',
156
+ 'method': 'GET',
157
+ 'config': {
158
+ 'query': {
159
+ 'Version': '2020-08-25',
160
+ 'Action': 'ModifySecurityGroupRuleName'
161
+ },
162
+ 'headers': {
163
+ 'Content-Type': 'application/json'
164
+ }
165
+ },
166
+ 'paramsType': {
167
+ 'SecurityGroupId': 'String',
168
+ 'SecurityGroupRuleId': 'String',
169
+ 'SecurityGroupRuleName': 'String'
170
+ }
171
+ }
172
+ });
173
+ }
174
+ };
@@ -0,0 +1,249 @@
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': 'memcached.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': 'memcached'
22
+ }
23
+ }
24
+ });
25
+ _defineProperty(this, "_apiList", {
26
+ 'CreateCacheCluster': {
27
+ 'url': '/',
28
+ 'method': 'POST',
29
+ 'config': {
30
+ 'query': {
31
+ 'Version': '2018-06-27',
32
+ 'Action': 'CreateCacheCluster'
33
+ },
34
+ 'headers': {
35
+ 'Content-Type': 'application/x-www-form-urlencoded'
36
+ }
37
+ },
38
+ 'paramsType': {
39
+ 'Name': 'String',
40
+ 'Capacity': 'String',
41
+ 'SlaveNum': 'String',
42
+ 'NetType': 'String',
43
+ 'VpcId': 'String',
44
+ 'VnetId': 'String',
45
+ 'BillType': 'String',
46
+ 'Duration': 'String',
47
+ 'DurationUnit': 'String',
48
+ 'PassWord': 'String',
49
+ 'IamProjectId': 'String',
50
+ 'Engine': 'String'
51
+ }
52
+ },
53
+ 'DeleteCacheCluster': {
54
+ 'url': '/',
55
+ 'method': 'DELETE',
56
+ 'config': {
57
+ 'query': {
58
+ 'Version': '2018-06-27',
59
+ 'Action': 'DeleteCacheCluster'
60
+ },
61
+ 'headers': {
62
+ 'Content-Type': 'application/x-www-form-urlencoded'
63
+ }
64
+ },
65
+ 'paramsType': {}
66
+ },
67
+ 'ResizeCacheCluster': {
68
+ 'url': '/',
69
+ 'method': 'PUT',
70
+ 'config': {
71
+ 'query': {
72
+ 'Version': '2018-06-27',
73
+ 'Action': 'ResizeCacheCluster'
74
+ },
75
+ 'headers': {
76
+ 'Content-Type': 'application/x-www-form-urlencoded'
77
+ }
78
+ },
79
+ 'paramsType': {
80
+ 'CacheId': 'String',
81
+ 'Capacity': 'String',
82
+ 'Engine': 'String'
83
+ }
84
+ },
85
+ 'DescribeCacheClusters': {
86
+ 'url': '/',
87
+ 'method': 'GET',
88
+ 'config': {
89
+ 'query': {
90
+ 'Version': '2018-06-27',
91
+ 'Action': 'DescribeCacheClusters'
92
+ },
93
+ 'headers': {
94
+ 'Content-Type': 'application/x-www-form-urlencoded'
95
+ }
96
+ },
97
+ 'paramsType': {
98
+ 'Engine': 'String',
99
+ 'CacheId': 'String',
100
+ 'Name': 'String',
101
+ 'Vip': 'String',
102
+ 'VpcId': 'String',
103
+ 'VnetId': 'String',
104
+ 'Offset': 'String',
105
+ 'Limit': 'String',
106
+ 'OrderBy': 'String',
107
+ 'IamProjectId': 'String'
108
+ }
109
+ },
110
+ 'DescribeCacheCluster': {
111
+ 'url': '/',
112
+ 'method': 'GET',
113
+ 'config': {
114
+ 'query': {
115
+ 'Version': '2018-06-27',
116
+ 'Action': 'DescribeCacheCluster'
117
+ },
118
+ 'headers': {
119
+ 'Content-Type': 'application/x-www-form-urlencoded'
120
+ }
121
+ },
122
+ 'paramsType': {
123
+ 'CacheId': 'String',
124
+ 'Engine': 'String'
125
+ }
126
+ },
127
+ 'FlushCacheCluster': {
128
+ 'url': '/',
129
+ 'method': 'PUT',
130
+ 'config': {
131
+ 'query': {
132
+ 'Version': '2018-06-27',
133
+ 'Action': 'FlushCacheCluster'
134
+ },
135
+ 'headers': {
136
+ 'Content-Type': 'application/x-www-form-urlencoded'
137
+ }
138
+ },
139
+ 'paramsType': {}
140
+ },
141
+ 'RenameCacheCluster': {
142
+ 'url': '/',
143
+ 'method': 'PUT',
144
+ 'config': {
145
+ 'query': {
146
+ 'Version': '2018-06-27',
147
+ 'Action': 'RenameCacheCluster'
148
+ },
149
+ 'headers': {
150
+ 'Content-Type': 'application/x-www-form-urlencoded'
151
+ }
152
+ },
153
+ 'paramsType': {
154
+ 'CacheId': 'String',
155
+ 'Name': 'String',
156
+ 'Engine': 'String'
157
+ }
158
+ },
159
+ 'UpdatePassword': {
160
+ 'url': '/',
161
+ 'method': 'PUT',
162
+ 'config': {
163
+ 'query': {
164
+ 'Version': '2018-06-27',
165
+ 'Action': 'UpdatePassword'
166
+ },
167
+ 'headers': {
168
+ 'Content-Type': 'application/x-www-form-urlencoded'
169
+ }
170
+ },
171
+ 'paramsType': {
172
+ 'CacheId': 'String',
173
+ 'Password': 'String',
174
+ 'Engine': 'String'
175
+ }
176
+ },
177
+ 'DescribeCacheSecurityRules': {
178
+ 'url': '/',
179
+ 'method': 'GET',
180
+ 'config': {
181
+ 'query': {
182
+ 'Version': '2018-06-27',
183
+ 'Action': 'DescribeCacheSecurityRules'
184
+ },
185
+ 'headers': {
186
+ 'Content-Type': 'application/x-www-form-urlencoded'
187
+ }
188
+ },
189
+ 'paramsType': {}
190
+ },
191
+ 'DeleteCacheSecurityRule': {
192
+ 'url': '/',
193
+ 'method': 'DELETE',
194
+ 'config': {
195
+ 'query': {
196
+ 'Version': '2018-06-27',
197
+ 'Action': 'DeleteCacheSecurityRule'
198
+ },
199
+ 'headers': {
200
+ 'Content-Type': 'application/x-www-form-urlencoded'
201
+ }
202
+ },
203
+ 'paramsType': {}
204
+ },
205
+ 'SetCacheSecurityRules': {
206
+ 'url': '/',
207
+ 'method': 'PUT',
208
+ 'config': {
209
+ 'query': {
210
+ 'Version': '2018-06-27',
211
+ 'Action': 'SetCacheSecurityRules'
212
+ },
213
+ 'headers': {
214
+ 'Content-Type': 'application/x-www-form-urlencoded'
215
+ }
216
+ },
217
+ 'paramsType': {}
218
+ },
219
+ 'DescribeRegions': {
220
+ 'url': '/',
221
+ 'method': 'GET',
222
+ 'config': {
223
+ 'query': {
224
+ 'Version': '2018-06-27',
225
+ 'Action': 'DescribeRegions'
226
+ },
227
+ 'headers': {
228
+ 'Content-Type': 'application/x-www-form-urlencoded'
229
+ }
230
+ },
231
+ 'paramsType': {}
232
+ },
233
+ 'DescribeAvailabilityZones': {
234
+ 'url': '/',
235
+ 'method': 'GET',
236
+ 'config': {
237
+ 'query': {
238
+ 'Version': '2018-06-27',
239
+ 'Action': 'DescribeAvailabilityZones'
240
+ },
241
+ 'headers': {
242
+ 'Content-Type': 'application/x-www-form-urlencoded'
243
+ }
244
+ },
245
+ 'paramsType': {}
246
+ }
247
+ });
248
+ }
249
+ };
@@ -1,13 +1,12 @@
1
1
  "use strict";
2
2
 
3
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
-
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); }
5
6
  const BaseClient = require("../../../base/BaseClient.js");
6
-
7
7
  module.exports = class Client extends BaseClient {
8
8
  constructor(...args) {
9
9
  super(...args);
10
-
11
10
  _defineProperty(this, "_baseConfig", {
12
11
  'protocol': 'http://',
13
12
  'endpoint': 'mongodb.api.ksyun.com',
@@ -23,7 +22,6 @@ module.exports = class Client extends BaseClient {
23
22
  }
24
23
  }
25
24
  });
26
-
27
25
  _defineProperty(this, "_apiList", {
28
26
  'CreateMongoDBInstance': {
29
27
  'url': '/',
@@ -128,7 +126,8 @@ module.exports = class Client extends BaseClient {
128
126
  }
129
127
  },
130
128
  'paramsType': {
131
- 'InstanceId': 'String'
129
+ 'InstanceId': 'String',
130
+ 'NodeId': 'String'
132
131
  }
133
132
  },
134
133
  'RenameMongoDBInstance': {
@@ -661,8 +660,24 @@ module.exports = class Client extends BaseClient {
661
660
  'NodeId': 'String',
662
661
  'Storage': 'Int'
663
662
  }
663
+ },
664
+ 'DescribeClusterForRestore': {
665
+ 'url': '/',
666
+ 'method': 'GET',
667
+ 'config': {
668
+ 'query': {
669
+ 'Version': '2017-01-01',
670
+ 'Action': 'DescribeClusterForRestore'
671
+ },
672
+ 'headers': {
673
+ 'Content-Type': 'application/json'
674
+ }
675
+ },
676
+ 'paramsType': {
677
+ 'InstanceId': 'String',
678
+ 'ResetTimePoint': 'String'
679
+ }
664
680
  }
665
681
  });
666
682
  }
667
-
668
683
  };
@@ -0,0 +1,70 @@
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': 'monitor.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': 'monitor'
22
+ }
23
+ }
24
+ });
25
+ _defineProperty(this, "_apiList", {
26
+ 'GetMetricStatistics': {
27
+ 'url': '/',
28
+ 'method': 'GET',
29
+ 'config': {
30
+ 'query': {
31
+ 'Version': '2010-05-25',
32
+ 'Action': 'GetMetricStatistics'
33
+ },
34
+ 'headers': {
35
+ 'Content-Type': 'application/json'
36
+ }
37
+ },
38
+ 'paramsType': {
39
+ 'Namespace': 'String',
40
+ 'InstanceID': 'String',
41
+ 'MetricName': 'String',
42
+ 'StartTime': 'String',
43
+ 'EndTime': 'String',
44
+ 'Aggregate': 'String',
45
+ 'Period': 'Int'
46
+ }
47
+ },
48
+ 'ListMetrics': {
49
+ 'url': '/',
50
+ 'method': 'GET',
51
+ 'config': {
52
+ 'query': {
53
+ 'Version': '2010-05-25',
54
+ 'Action': 'ListMetrics'
55
+ },
56
+ 'headers': {
57
+ 'Content-Type': 'application/json'
58
+ }
59
+ },
60
+ 'paramsType': {
61
+ 'Namespace': 'String',
62
+ 'InstanceID': 'String',
63
+ 'MetricName': 'String',
64
+ 'PageIndex': 'Int',
65
+ 'PageSize': 'Int'
66
+ }
67
+ }
68
+ });
69
+ }
70
+ };
@@ -0,0 +1,49 @@
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': 'monitor.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': 'monitor'
22
+ }
23
+ }
24
+ });
25
+ _defineProperty(this, "_apiList", {
26
+ 'GetMetricStatisticsBatch': {
27
+ 'url': '/',
28
+ 'method': 'POST',
29
+ 'config': {
30
+ 'query': {
31
+ 'Version': '2018-11-14',
32
+ 'Action': 'GetMetricStatisticsBatch'
33
+ },
34
+ 'headers': {
35
+ 'Content-Type': 'application/json'
36
+ }
37
+ },
38
+ 'paramsType': {
39
+ 'Namespace': 'String',
40
+ 'StartTime': 'String',
41
+ 'EndTime': 'String',
42
+ 'Aggregate': 'Array',
43
+ 'Period': 'Int',
44
+ 'Metrics': 'Array'
45
+ }
46
+ }
47
+ });
48
+ }
49
+ };