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