ksyun-sdk-node 1.0.5 → 1.4.8

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 (133) hide show
  1. package/.claude/settings.local.json +12 -0
  2. package/dist/base/BaseClient.js +133 -52
  3. package/dist/index.js +9 -12
  4. package/dist/lib/fetch.js +4 -5
  5. package/dist/lib/sign.js +31 -33
  6. package/dist/lib/signautreV4.js +167 -0
  7. package/dist/service/Actiontrail/v20190401/index.js +34 -37
  8. package/dist/service/Aicp/v20240612/index.js +511 -0
  9. package/dist/service/Bill/v20180601/index.js +49 -88
  10. package/dist/service/Bill/v20220601/index.js +64 -0
  11. package/dist/service/Bill_union/v20200101/index.js +151 -77
  12. package/dist/service/Bill_union/v20221222/index.js +142 -0
  13. package/dist/service/Bill_union/v20250801/index.js +66 -0
  14. package/dist/service/Bws/v20160304/index.js +111 -94
  15. package/dist/service/Cdn/v20160901/index.js +89 -0
  16. package/dist/service/Cdn/v20200630/index.js +410 -0
  17. package/dist/service/Cdn/v20200901/index.js +162 -0
  18. package/dist/service/Cdn/v20211201/index.js +45 -0
  19. package/dist/service/Cdn/v20250503/index.js +71 -0
  20. package/dist/service/Cen/v20160304/index.js +460 -0
  21. package/dist/service/Clickhouse/v20210101/index.js +546 -0
  22. package/dist/service/Ebs/v20160304/index.js +265 -268
  23. package/dist/service/Eip/v20160304/index.js +104 -107
  24. package/dist/service/Epc/v20151101/index.js +1735 -784
  25. package/dist/service/Iam/v20151101/index.js +872 -711
  26. package/dist/service/Iam/v20240513/index.js +47 -0
  27. package/dist/service/Iam/v20240703/index.js +44 -0
  28. package/dist/service/Kad/v20161122/index.js +84 -87
  29. package/dist/service/Kce/v20180314/index.js +320 -0
  30. package/dist/service/Kce/v20190806/index.js +482 -0
  31. package/dist/service/Kce/v20201231/index.js +63 -0
  32. package/dist/service/Kcf/v20211215/index.js +203 -0
  33. package/dist/service/Kcm/v20160304/index.js +120 -0
  34. package/dist/service/Kcrs/v20211109/index.js +851 -0
  35. package/dist/service/Kcs/v20160701/index.js +1106 -0
  36. package/dist/service/Kcs/v20170401/index.js +81 -0
  37. package/dist/service/Kead/v20200101/index.js +28 -31
  38. package/dist/service/Kec/v20160304/index.js +1695 -1466
  39. package/dist/service/Kes/v20201215/index.js +171 -0
  40. package/dist/service/Ket/v20170101/index.js +141 -0
  41. package/dist/service/Kkms/v20160304/index.js +167 -0
  42. package/dist/service/Klog/v20200731/index.js +331 -0
  43. package/dist/service/Kls/v20170101/index.js +194 -0
  44. package/dist/service/Kmr/v20210902/index.js +422 -0
  45. package/dist/service/Kmr/v20231231/index.js +154 -0
  46. package/dist/service/Kmr/v20240814/index.js +370 -0
  47. package/dist/service/Krds/v20160701/index.js +1302 -0
  48. package/dist/service/Krds/v20200825/index.js +174 -0
  49. package/dist/service/Memcached/v20180627/index.js +249 -0
  50. package/dist/service/Mongodb/v20170101/index.js +516 -501
  51. package/dist/service/Monitor/v20100525/index.js +70 -0
  52. package/dist/service/Monitor/v20181114/index.js +49 -0
  53. package/dist/service/Monitor/v20210101/index.js +216 -0
  54. package/dist/service/Monitor/v20220101/index.js +58 -0
  55. package/dist/service/Monitor/v20250101/index.js +71 -0
  56. package/dist/service/Rabbitmq/v20191017/index.js +242 -0
  57. package/dist/service/Resourcemanager/v20210320/index.js +113 -116
  58. package/dist/service/Sks/v20151101/index.js +72 -75
  59. package/dist/service/Slb/v20160304/index.js +1299 -790
  60. package/dist/service/Sts/v20151101/index.js +26 -29
  61. package/dist/service/Tagv2/v20200901/index.js +174 -0
  62. package/dist/service/Tidb/v20210520/index.js +363 -0
  63. package/dist/service/Trade/v20200114/index.js +23 -26
  64. package/dist/service/Trade/v20200831/index.js +25 -28
  65. package/dist/service/Vpc/v20160304/index.js +2015 -1045
  66. package/dist/service/Waf/v20200707/index.js +248 -0
  67. package/example/iam.js +2 -1
  68. package/example/res.js +2 -1
  69. package/package.json +1 -1
  70. package/src/base/BaseClient.js +131 -35
  71. package/src/lib/signautreV4.js +166 -0
  72. package/src/service/Actiontrail/v20190401/index.js +42 -42
  73. package/src/service/Aicp/v20240612/index.js +503 -0
  74. package/src/service/Bill/v20180601/index.js +61 -102
  75. package/src/service/Bill/v20220601/index.js +56 -0
  76. package/src/service/Bill_union/v20200101/index.js +181 -109
  77. package/src/service/Bill_union/v20221222/index.js +134 -0
  78. package/src/service/Bill_union/v20250801/index.js +58 -0
  79. package/src/service/Bws/v20160304/index.js +139 -119
  80. package/src/service/Cdn/v20160901/index.js +81 -0
  81. package/src/service/Cdn/v20200630/index.js +402 -0
  82. package/src/service/Cdn/v20200901/index.js +154 -0
  83. package/src/service/Cdn/v20211201/index.js +37 -0
  84. package/src/service/Cdn/v20250503/index.js +63 -0
  85. package/src/service/Cen/v20160304/index.js +452 -0
  86. package/src/service/Clickhouse/v20210101/index.js +538 -0
  87. package/src/service/Ebs/v20160304/index.js +365 -368
  88. package/src/service/Eip/v20160304/index.js +135 -136
  89. package/src/service/Epc/v20151101/index.js +1984 -1033
  90. package/src/service/Iam/v20151101/index.js +1155 -993
  91. package/src/service/Iam/v20240513/index.js +39 -0
  92. package/src/service/Iam/v20240703/index.js +36 -0
  93. package/src/service/Kad/v20161122/index.js +112 -112
  94. package/src/service/Kce/v20180314/index.js +312 -0
  95. package/src/service/Kce/v20190806/index.js +474 -0
  96. package/src/service/Kce/v20201231/index.js +55 -0
  97. package/src/service/Kcf/v20211215/index.js +195 -0
  98. package/src/service/Kcm/v20160304/index.js +112 -0
  99. package/src/service/Kcrs/v20211109/index.js +843 -0
  100. package/src/service/Kcs/v20160701/index.js +1098 -0
  101. package/src/service/Kcs/v20170401/index.js +73 -0
  102. package/src/service/Kead/v20200101/index.js +36 -36
  103. package/src/service/Kec/v20160304/index.js +2061 -1838
  104. package/src/service/Kes/v20201215/index.js +163 -0
  105. package/src/service/Ket/v20170101/index.js +133 -0
  106. package/src/service/Kkms/v20160304/index.js +159 -0
  107. package/src/service/Klog/v20200731/index.js +323 -0
  108. package/src/service/Kls/v20170101/index.js +186 -0
  109. package/src/service/Kmr/v20210902/index.js +414 -0
  110. package/src/service/Kmr/v20231231/index.js +146 -0
  111. package/src/service/Kmr/v20240814/index.js +362 -0
  112. package/src/service/Krds/v20160701/index.js +1294 -0
  113. package/src/service/Krds/v20200825/index.js +166 -0
  114. package/src/service/Memcached/v20180627/index.js +241 -0
  115. package/src/service/Mongodb/v20170101/index.js +672 -654
  116. package/src/service/Monitor/v20100525/index.js +62 -0
  117. package/src/service/Monitor/v20181114/index.js +41 -0
  118. package/src/service/Monitor/v20210101/index.js +208 -0
  119. package/src/service/Monitor/v20220101/index.js +50 -0
  120. package/src/service/Monitor/v20250101/index.js +63 -0
  121. package/src/service/Rabbitmq/v20191017/index.js +234 -0
  122. package/src/service/Resourcemanager/v20210320/index.js +157 -158
  123. package/src/service/Sks/v20151101/index.js +95 -96
  124. package/src/service/Slb/v20160304/index.js +1471 -959
  125. package/src/service/Sts/v20151101/index.js +34 -34
  126. package/src/service/Tagv2/v20200901/index.js +166 -0
  127. package/src/service/Tidb/v20210520/index.js +355 -0
  128. package/src/service/Trade/v20200114/index.js +31 -31
  129. package/src/service/Trade/v20200831/index.js +33 -33
  130. package/src/service/Vpc/v20160304/index.js +2404 -1432
  131. package/src/service/Waf/v20200707/index.js +240 -0
  132. package/src/service/Bill_union/v20211209/index.js +0 -35
  133. package/src/service/Slb/v20171210/index.js +0 -39
@@ -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
+ };