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.
- package/dist/base/BaseClient.js +90 -55
- package/dist/index.js +9 -12
- package/dist/lib/fetch.js +4 -5
- package/dist/lib/sign.js +31 -33
- package/dist/lib/signautreV4.js +167 -0
- package/dist/service/Actiontrail/v20190401/index.js +4 -7
- package/dist/service/Bill/v20180601/index.js +11 -50
- package/dist/service/Bill/v20220601/index.js +64 -0
- package/dist/service/Bill_union/v20200101/index.js +48 -10
- package/dist/service/Bill_union/v20221222/index.js +142 -0
- package/dist/service/Bws/v20160304/index.js +23 -6
- package/dist/service/Cdn/v20160901/index.js +42 -0
- package/dist/service/Cdn/v20200630/index.js +410 -0
- package/dist/service/Cdn/v20200901/index.js +162 -0
- package/dist/service/Cen/v20160304/index.js +460 -0
- package/dist/service/Clickhouse/v20210101/index.js +546 -0
- package/dist/service/Ebs/v20160304/index.js +3 -6
- package/dist/service/Eip/v20160304/index.js +3 -6
- package/dist/service/Epc/v20151101/index.js +36 -60
- package/dist/service/Iam/v20151101/index.js +61 -7
- package/dist/service/Kad/v20161122/index.js +3 -6
- package/dist/service/Kce/v20180314/index.js +320 -0
- package/dist/service/Kce/v20190806/index.js +482 -0
- package/dist/service/Kce/v20201231/index.js +63 -0
- package/dist/service/Kcf/v20211215/index.js +203 -0
- package/dist/service/Kcm/v20160304/index.js +120 -0
- package/dist/service/Kcrs/v20211109/index.js +851 -0
- package/dist/service/Kcs/v20160701/index.js +1106 -0
- package/dist/service/Kcs/v20170401/index.js +81 -0
- package/dist/service/Kead/v20200101/index.js +3 -6
- package/dist/service/Kec/v20160304/index.js +107 -42
- package/dist/service/Ket/v20170101/index.js +141 -0
- package/dist/service/Kkms/v20160304/index.js +167 -0
- package/dist/service/Klog/v20200731/index.js +804 -0
- package/dist/service/Kls/v20170101/index.js +194 -0
- package/dist/service/Krds/v20160701/index.js +1302 -0
- package/dist/service/Krds/v20200825/index.js +174 -0
- package/dist/service/Memcached/v20180627/index.js +249 -0
- package/dist/service/Mongodb/v20170101/index.js +22 -7
- package/dist/service/Monitor/v20100525/index.js +70 -0
- package/dist/service/Monitor/v20181114/index.js +49 -0
- package/dist/service/Monitor/v20210101/index.js +179 -0
- package/dist/service/Monitor/v20220101/index.js +68 -0
- package/dist/service/Rabbitmq/v20191017/index.js +242 -0
- package/dist/service/Resourcemanager/v20210320/index.js +3 -6
- package/dist/service/Sks/v20151101/index.js +3 -6
- package/dist/service/Slb/v20160304/index.js +517 -8
- package/dist/service/Sts/v20151101/index.js +4 -7
- package/dist/service/Tagv2/v20200901/index.js +174 -0
- package/dist/service/Tidb/v20210520/index.js +363 -0
- package/dist/service/Trade/v20200114/index.js +3 -6
- package/dist/service/Trade/v20200831/index.js +3 -6
- package/dist/service/Vpc/v20160304/index.js +239 -7
- package/dist/service/Waf/v20200707/index.js +248 -0
- package/package.json +1 -1
- package/src/base/BaseClient.js +85 -36
- package/src/lib/signautreV4.js +166 -0
- package/src/service/Actiontrail/v20190401/index.js +1 -1
- package/src/service/Bill/v20180601/index.js +6 -46
- package/src/service/Bill/v20220601/index.js +56 -0
- package/src/service/Bill_union/v20200101/index.js +37 -0
- package/src/service/Bill_union/v20221222/index.js +134 -0
- package/src/service/Bws/v20160304/index.js +20 -0
- package/src/service/{Bill_union/v20211209 → Cdn/v20160901}/index.js +6 -6
- package/src/service/Cdn/v20200630/index.js +402 -0
- package/src/service/Cdn/v20200901/index.js +154 -0
- package/src/service/Cen/v20160304/index.js +452 -0
- package/src/service/Clickhouse/v20210101/index.js +538 -0
- package/src/service/Ebs/v20160304/index.js +1 -4
- package/src/service/Epc/v20151101/index.js +26 -50
- package/src/service/Iam/v20151101/index.js +57 -0
- package/src/service/Kce/v20180314/index.js +312 -0
- package/src/service/Kce/v20190806/index.js +474 -0
- package/src/service/Kce/v20201231/index.js +55 -0
- package/src/service/Kcf/v20211215/index.js +197 -0
- package/src/service/Kcm/v20160304/index.js +112 -0
- package/src/service/Kcrs/v20211109/index.js +857 -0
- package/src/service/Kcs/v20160701/index.js +1101 -0
- package/src/service/Kcs/v20170401/index.js +73 -0
- package/src/service/Kec/v20160304/index.js +86 -22
- package/src/service/Ket/v20170101/index.js +133 -0
- package/src/service/Kkms/v20160304/index.js +159 -0
- package/src/service/Klog/v20200731/index.js +810 -0
- package/src/service/Kls/v20170101/index.js +186 -0
- package/src/service/Krds/v20160701/index.js +1296 -0
- package/src/service/Krds/v20200825/index.js +166 -0
- package/src/service/Memcached/v20180627/index.js +248 -0
- package/src/service/Mongodb/v20170101/index.js +18 -0
- package/src/service/Monitor/v20100525/index.js +62 -0
- package/src/service/{Slb/v20171210 → Monitor/v20181114}/index.js +13 -11
- package/src/service/Monitor/v20210101/index.js +172 -0
- package/src/service/Monitor/v20220101/index.js +60 -0
- package/src/service/Rabbitmq/v20191017/index.js +234 -0
- package/src/service/Slb/v20160304/index.js +512 -0
- package/src/service/Sts/v20151101/index.js +1 -1
- package/src/service/Tagv2/v20200901/index.js +166 -0
- package/src/service/Tidb/v20210520/index.js +355 -0
- package/src/service/Vpc/v20160304/index.js +235 -0
- package/src/service/Waf/v20200707/index.js +240 -0
|
@@ -0,0 +1,167 @@
|
|
|
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': 'kkms.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': 'kkms'
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
_defineProperty(this, "_apiList", {
|
|
26
|
+
'CreateKey': {
|
|
27
|
+
'url': '/',
|
|
28
|
+
'method': 'GET',
|
|
29
|
+
'config': {
|
|
30
|
+
'query': {
|
|
31
|
+
'Version': '2016-03-04',
|
|
32
|
+
'Action': 'CreateKey'
|
|
33
|
+
},
|
|
34
|
+
'headers': {
|
|
35
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
'paramsType': {
|
|
39
|
+
'KeyName': 'String',
|
|
40
|
+
'Description': 'String',
|
|
41
|
+
'KeyUsage': 'String',
|
|
42
|
+
'Origin': 'String',
|
|
43
|
+
'ChargeType': 'String'
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
'ModifyKey': {
|
|
47
|
+
'url': '/',
|
|
48
|
+
'method': 'GET',
|
|
49
|
+
'config': {
|
|
50
|
+
'query': {
|
|
51
|
+
'Version': '2016-03-04',
|
|
52
|
+
'Action': 'ModifyKey'
|
|
53
|
+
},
|
|
54
|
+
'headers': {
|
|
55
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
'paramsType': {
|
|
59
|
+
'KeyId': 'String',
|
|
60
|
+
'KeyName': 'String',
|
|
61
|
+
'Description': 'String'
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
'ModifyKeyState': {
|
|
65
|
+
'url': '/',
|
|
66
|
+
'method': 'GET',
|
|
67
|
+
'config': {
|
|
68
|
+
'query': {
|
|
69
|
+
'Version': '2016-03-04',
|
|
70
|
+
'Action': 'ModifyKeyState'
|
|
71
|
+
},
|
|
72
|
+
'headers': {
|
|
73
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
'paramsType': {
|
|
77
|
+
'KeyId': 'String',
|
|
78
|
+
'KeyState': 'String'
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
'DeleteKey': {
|
|
82
|
+
'url': '/',
|
|
83
|
+
'method': 'GET',
|
|
84
|
+
'config': {
|
|
85
|
+
'query': {
|
|
86
|
+
'Version': '2016-03-04',
|
|
87
|
+
'Action': 'DeleteKey'
|
|
88
|
+
},
|
|
89
|
+
'headers': {
|
|
90
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
'paramsType': {
|
|
94
|
+
'KeyId': 'String'
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
'DescribeKeys': {
|
|
98
|
+
'url': '/',
|
|
99
|
+
'method': 'GET',
|
|
100
|
+
'config': {
|
|
101
|
+
'query': {
|
|
102
|
+
'Version': '2016-03-04',
|
|
103
|
+
'Action': 'DescribeKeys'
|
|
104
|
+
},
|
|
105
|
+
'headers': {
|
|
106
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
'paramsType': {
|
|
110
|
+
'KeyId': 'Filter'
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
'Encrypt': {
|
|
114
|
+
'url': '/',
|
|
115
|
+
'method': 'GET',
|
|
116
|
+
'config': {
|
|
117
|
+
'query': {
|
|
118
|
+
'Version': '2016-03-04',
|
|
119
|
+
'Action': 'Encrypt'
|
|
120
|
+
},
|
|
121
|
+
'headers': {
|
|
122
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
'paramsType': {
|
|
126
|
+
'KeyId': 'String',
|
|
127
|
+
'Plaintext': 'String'
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
'Decrypt': {
|
|
131
|
+
'url': '/',
|
|
132
|
+
'method': 'GET',
|
|
133
|
+
'config': {
|
|
134
|
+
'query': {
|
|
135
|
+
'Version': '2016-03-04',
|
|
136
|
+
'Action': 'Decrypt'
|
|
137
|
+
},
|
|
138
|
+
'headers': {
|
|
139
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
'paramsType': {
|
|
143
|
+
'KeyId': 'String',
|
|
144
|
+
'CiphertextBlob': 'String'
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
'GenerateDataKey': {
|
|
148
|
+
'url': '/',
|
|
149
|
+
'method': 'GET',
|
|
150
|
+
'config': {
|
|
151
|
+
'query': {
|
|
152
|
+
'Version': '2016-03-04',
|
|
153
|
+
'Action': 'GenerateDataKey'
|
|
154
|
+
},
|
|
155
|
+
'headers': {
|
|
156
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
'paramsType': {
|
|
160
|
+
'KeyId': 'String',
|
|
161
|
+
'KeySpec': 'String',
|
|
162
|
+
'NumberOfBytes': 'Int'
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
};
|