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,179 @@
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
+ 'ListAlarmPolicy': {
27
+ 'url': '/',
28
+ 'method': 'GET',
29
+ 'config': {
30
+ 'query': {
31
+ 'Version': '2021-01-01',
32
+ 'Action': 'ListAlarmPolicy'
33
+ },
34
+ 'headers': {
35
+ 'Content-Type': 'application/json'
36
+ }
37
+ },
38
+ 'paramsType': {
39
+ 'PageIndex': 'Int',
40
+ 'PageSize': 'Int'
41
+ }
42
+ },
43
+ 'DescribeAlarmPolicy': {
44
+ 'url': '/',
45
+ 'method': 'GET',
46
+ 'config': {
47
+ 'query': {
48
+ 'Version': '2021-01-01',
49
+ 'Action': 'DescribeAlarmPolicy'
50
+ },
51
+ 'headers': {
52
+ 'Content-Type': 'application/json'
53
+ }
54
+ },
55
+ 'paramsType': {
56
+ 'PolicyId': 'Int'
57
+ }
58
+ },
59
+ 'DescribePolicyObject': {
60
+ 'url': '/',
61
+ 'method': 'GET',
62
+ 'config': {
63
+ 'query': {
64
+ 'Version': '2021-01-01',
65
+ 'Action': 'DescribePolicyObject'
66
+ },
67
+ 'headers': {
68
+ 'Content-Type': 'application/json'
69
+ }
70
+ },
71
+ 'paramsType': {
72
+ 'PolicyId': 'Int',
73
+ 'PageIndex': 'Int',
74
+ 'PageSize': 'Int'
75
+ }
76
+ },
77
+ 'DescribeAlarmReceives': {
78
+ 'url': '/',
79
+ 'method': 'GET',
80
+ 'config': {
81
+ 'query': {
82
+ 'Version': '2021-01-01',
83
+ 'Action': 'DescribeAlarmReceives'
84
+ },
85
+ 'headers': {
86
+ 'Content-Type': 'application/json'
87
+ }
88
+ },
89
+ 'paramsType': {
90
+ 'PolicyId': 'Int'
91
+ }
92
+ },
93
+ 'AddAlarmReceives': {
94
+ 'url': '/',
95
+ 'method': 'POST',
96
+ 'config': {
97
+ 'query': {
98
+ 'Version': '2021-01-01',
99
+ 'Action': 'AddAlarmReceives'
100
+ },
101
+ 'headers': {
102
+ 'Content-Type': 'application/x-www-form-urlencoded'
103
+ }
104
+ },
105
+ 'paramsType': {
106
+ 'PolicyId': 'Int',
107
+ 'ContactFlag': 'Int',
108
+ 'ContactWay': 'Int',
109
+ 'ContactId': 'Array'
110
+ }
111
+ },
112
+ 'DeleteAlarmReceives': {
113
+ 'url': '/',
114
+ 'method': 'POST',
115
+ 'config': {
116
+ 'query': {
117
+ 'Version': '2021-01-01',
118
+ 'Action': 'DeleteAlarmReceives'
119
+ },
120
+ 'headers': {
121
+ 'Content-Type': 'application/x-www-form-urlencoded'
122
+ }
123
+ },
124
+ 'paramsType': {
125
+ 'PolicyId': 'Int',
126
+ 'ContactFlag': 'Int',
127
+ 'ContactId': 'Array'
128
+ }
129
+ },
130
+ 'GetUserGroup': {
131
+ 'url': '/',
132
+ 'method': 'GET',
133
+ 'config': {
134
+ 'query': {
135
+ 'Version': '2021-01-01',
136
+ 'Action': 'GetUserGroup'
137
+ },
138
+ 'headers': {
139
+ 'Content-Type': 'application/json'
140
+ }
141
+ },
142
+ 'paramsType': {}
143
+ },
144
+ 'GetAlertUser': {
145
+ 'url': '/',
146
+ 'method': 'GET',
147
+ 'config': {
148
+ 'query': {
149
+ 'Version': '2021-01-01',
150
+ 'Action': 'GetAlertUser'
151
+ },
152
+ 'headers': {
153
+ 'Content-Type': 'application/json'
154
+ }
155
+ },
156
+ 'paramsType': {
157
+ 'UserGrpId': 'Filter'
158
+ }
159
+ },
160
+ 'UpdateAlertUserStatus': {
161
+ 'url': '/',
162
+ 'method': 'POST',
163
+ 'config': {
164
+ 'query': {
165
+ 'Version': '2021-01-01',
166
+ 'Action': 'UpdateAlertUserStatus'
167
+ },
168
+ 'headers': {
169
+ 'Content-Type': 'application/x-www-form-urlencoded'
170
+ }
171
+ },
172
+ 'paramsType': {
173
+ 'UserId': 'Array',
174
+ 'UserStatus': 'Int'
175
+ }
176
+ }
177
+ });
178
+ }
179
+ };
@@ -0,0 +1,68 @@
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
+ 'CreateAlarmPolicy': {
27
+ 'url': '/',
28
+ 'method': 'POST',
29
+ 'config': {
30
+ 'query': {
31
+ 'Version': '2022-01-01',
32
+ 'Action': 'CreateAlarmPolicy'
33
+ },
34
+ 'headers': {
35
+ 'Content-Type': 'application/x-www-form-urlencoded'
36
+ }
37
+ },
38
+ 'paramsType': {
39
+ 'PolicyName': 'String',
40
+ 'ProductType': 'Int',
41
+ 'PolicyType': 'Int',
42
+ 'ResourceBindType': 'Int',
43
+ 'ProjectId': 'Int',
44
+ 'InstanceIds': 'Array',
45
+ 'TriggerRules': 'Array',
46
+ 'UserNotice': 'Array',
47
+ 'URLNotice': 'Array'
48
+ }
49
+ },
50
+ 'DeleteAlarmPolicy': {
51
+ 'url': '/',
52
+ 'method': 'POST',
53
+ 'config': {
54
+ 'query': {
55
+ 'Version': '2022-01-01',
56
+ 'Action': 'DeleteAlarmPolicy'
57
+ },
58
+ 'headers': {
59
+ 'Content-Type': 'application/json'
60
+ }
61
+ },
62
+ 'paramsType': {
63
+ 'PolicyIds': 'Array'
64
+ }
65
+ }
66
+ });
67
+ }
68
+ };
@@ -0,0 +1,242 @@
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': 'rabbitmq.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': 'rabbitmq'
22
+ }
23
+ }
24
+ });
25
+ _defineProperty(this, "_apiList", {
26
+ 'CreateInstance': {
27
+ 'url': '/',
28
+ 'method': 'POST',
29
+ 'config': {
30
+ 'query': {
31
+ 'Version': '2019-10-17',
32
+ 'Action': 'CreateInstance'
33
+ },
34
+ 'headers': {
35
+ 'Content-Type': 'application/x-www-form-urlencoded'
36
+ }
37
+ },
38
+ 'paramsType': {
39
+ 'ProjectId': 'String',
40
+ 'InstanceName': 'String',
41
+ 'InstancePassword': 'String',
42
+ 'VpcId': 'String',
43
+ 'SubnetId': 'String',
44
+ 'EngineVersion': 'String',
45
+ 'BillType': 'Int',
46
+ 'Duration': 'Int',
47
+ 'Mode': 'String',
48
+ 'InstanceType': 'String',
49
+ 'SsdDisk': 'Int',
50
+ 'NodeNum': 'Int'
51
+ }
52
+ },
53
+ 'DeleteInstance': {
54
+ 'url': '/',
55
+ 'method': 'POST',
56
+ 'config': {
57
+ 'query': {
58
+ 'Version': '2019-10-17',
59
+ 'Action': 'DeleteInstance'
60
+ },
61
+ 'headers': {
62
+ 'Content-Type': 'application/x-www-form-urlencoded'
63
+ }
64
+ },
65
+ 'paramsType': {
66
+ 'InstanceId': 'String'
67
+ }
68
+ },
69
+ 'DescribeInstances': {
70
+ 'url': '/',
71
+ 'method': 'GET',
72
+ 'config': {
73
+ 'query': {
74
+ 'Version': '2019-10-17',
75
+ 'Action': 'DescribeInstances'
76
+ },
77
+ 'headers': {
78
+ 'Content-Type': 'application/json'
79
+ }
80
+ },
81
+ 'paramsType': {
82
+ 'InstanceId': 'String',
83
+ 'InstanceName': 'String',
84
+ 'VpcId': 'String',
85
+ 'SubnetId': 'String',
86
+ 'Offset': 'Int',
87
+ 'Limit': 'Int',
88
+ 'OrderBy': 'String',
89
+ 'ProjectId': 'String'
90
+ }
91
+ },
92
+ 'DescribeInstance': {
93
+ 'url': '/',
94
+ 'method': 'GET',
95
+ 'config': {
96
+ 'query': {
97
+ 'Version': '2019-10-17',
98
+ 'Action': 'DescribeInstance'
99
+ },
100
+ 'headers': {
101
+ 'Content-Type': 'application/json'
102
+ }
103
+ },
104
+ 'paramsType': {
105
+ 'InstanceId': 'String'
106
+ }
107
+ },
108
+ 'DescribeInstanceNodes': {
109
+ 'url': '/',
110
+ 'method': 'GET',
111
+ 'config': {
112
+ 'query': {
113
+ 'Version': '2019-10-17',
114
+ 'Action': 'DescribeInstanceNodes'
115
+ },
116
+ 'headers': {
117
+ 'Content-Type': 'application/json'
118
+ }
119
+ },
120
+ 'paramsType': {
121
+ 'InstanceId': 'String'
122
+ }
123
+ },
124
+ 'DescribeValidRegion': {
125
+ 'url': '/',
126
+ 'method': 'GET',
127
+ 'config': {
128
+ 'query': {
129
+ 'Version': '2019-10-17',
130
+ 'Action': 'DescribeValidRegion'
131
+ },
132
+ 'headers': {
133
+ 'Content-Type': 'application/json'
134
+ }
135
+ },
136
+ 'paramsType': {
137
+ 'Action': 'String'
138
+ }
139
+ },
140
+ 'DescribeRegions': {
141
+ 'url': '/',
142
+ 'method': 'GET',
143
+ 'config': {
144
+ 'query': {
145
+ 'Version': '2019-10-17',
146
+ 'Action': 'DescribeRegions'
147
+ },
148
+ 'headers': {
149
+ 'Content-Type': 'application/json'
150
+ }
151
+ },
152
+ 'paramsType': {
153
+ 'Action': 'String'
154
+ }
155
+ },
156
+ 'DescribeSecurityGroupRules': {
157
+ 'url': '/',
158
+ 'method': 'GET',
159
+ 'config': {
160
+ 'query': {
161
+ 'Version': '2019-10-17',
162
+ 'Action': 'DescribeSecurityGroupRules'
163
+ },
164
+ 'headers': {
165
+ 'Content-Type': 'application/json'
166
+ }
167
+ },
168
+ 'paramsType': {
169
+ 'InstanceId': 'String'
170
+ }
171
+ },
172
+ 'AddSecurityGroupRule': {
173
+ 'url': '/',
174
+ 'method': 'POST',
175
+ 'config': {
176
+ 'query': {
177
+ 'Version': '2019-10-17',
178
+ 'Action': 'AddSecurityGroupRule'
179
+ },
180
+ 'headers': {
181
+ 'Content-Type': 'application/x-www-form-urlencoded'
182
+ }
183
+ },
184
+ 'paramsType': {
185
+ 'InstanceId': 'String',
186
+ 'Cidrs': 'String'
187
+ }
188
+ },
189
+ 'DeleteSecurityGroupRules': {
190
+ 'url': '/',
191
+ 'method': 'POST',
192
+ 'config': {
193
+ 'query': {
194
+ 'Version': '2019-10-17',
195
+ 'Action': 'DeleteSecurityGroupRules'
196
+ },
197
+ 'headers': {
198
+ 'Content-Type': 'application/x-www-form-urlencoded'
199
+ }
200
+ },
201
+ 'paramsType': {
202
+ 'InstanceId': 'String',
203
+ 'Cidrs': 'String'
204
+ }
205
+ },
206
+ 'ResetPassword': {
207
+ 'url': '/',
208
+ 'method': 'POST',
209
+ 'config': {
210
+ 'query': {
211
+ 'Version': '2019-10-17',
212
+ 'Action': 'ResetPassword'
213
+ },
214
+ 'headers': {
215
+ 'Content-Type': 'application/x-www-form-urlencoded'
216
+ }
217
+ },
218
+ 'paramsType': {
219
+ 'InstanceId': 'String',
220
+ 'InstancePassword': 'String'
221
+ }
222
+ },
223
+ 'Rename': {
224
+ 'url': '/',
225
+ 'method': 'POST',
226
+ 'config': {
227
+ 'query': {
228
+ 'Version': '2019-10-17',
229
+ 'Action': 'Rename'
230
+ },
231
+ 'headers': {
232
+ 'Content-Type': 'application/x-www-form-urlencoded'
233
+ }
234
+ },
235
+ 'paramsType': {
236
+ 'InstanceId': 'String',
237
+ 'InstanceName': 'String'
238
+ }
239
+ }
240
+ });
241
+ }
242
+ };
@@ -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': 'resourcemanager.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
  'CreateFolder': {
29
27
  'url': '/',
@@ -167,5 +165,4 @@ module.exports = class Client extends BaseClient {
167
165
  }
168
166
  });
169
167
  }
170
-
171
168
  };
@@ -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': 'sks.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
  'CreateKey': {
29
27
  'url': '/',
@@ -111,5 +109,4 @@ module.exports = class Client extends BaseClient {
111
109
  }
112
110
  });
113
111
  }
114
-
115
112
  };