ksyun-sdk-node 1.0.4 → 1.0.5
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/service/Bws/v20160304/index.js +140 -0
- package/dist/service/Eip/v20160304/index.js +157 -0
- package/dist/service/Epc/v20151101/index.js +1044 -0
- package/dist/service/Kec/v20160304/index.js +39 -35
- package/dist/service/Mongodb/v20170101/index.js +668 -0
- package/dist/service/Sks/v20151101/index.js +115 -0
- package/dist/service/Slb/v20160304/index.js +973 -0
- package/dist/service/Slb/v20171210/index.js +50 -0
- package/dist/service/Vpc/v20160304/index.js +1445 -0
- package/package.json +1 -1
- package/src/service/Bws/v20160304/index.js +129 -0
- package/src/service/Eip/v20160304/index.js +147 -0
- package/src/service/Epc/v20151101/index.js +1036 -0
- package/src/service/Kec/v20160304/index.js +31 -29
- package/src/service/Mongodb/v20170101/index.js +657 -0
- package/src/service/Sks/v20151101/index.js +105 -0
- package/src/service/Slb/v20160304/index.js +962 -0
- package/src/service/Slb/v20171210/index.js +39 -0
- package/src/service/Vpc/v20160304/index.js +1435 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
const BaseClient = require("../../../base/BaseClient.js");
|
|
2
|
+
|
|
3
|
+
module.exports = class Client extends BaseClient {
|
|
4
|
+
_baseConfig = {
|
|
5
|
+
'protocol': 'http://',
|
|
6
|
+
'endpoint': 'sks.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': 'sks',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
}
|
|
18
|
+
_apiList = {
|
|
19
|
+
'CreateKey': {
|
|
20
|
+
'url': '/',
|
|
21
|
+
'method': 'GET',
|
|
22
|
+
'config': {
|
|
23
|
+
'query': {
|
|
24
|
+
'Version': '2015-11-01',
|
|
25
|
+
'Action': 'CreateKey',
|
|
26
|
+
},
|
|
27
|
+
'headers': {
|
|
28
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
'paramsType': {
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
'ImportKey': {
|
|
35
|
+
'url': '/',
|
|
36
|
+
'method': 'GET',
|
|
37
|
+
'config': {
|
|
38
|
+
'query': {
|
|
39
|
+
'Version': '2015-11-01',
|
|
40
|
+
'Action': 'ImportKey',
|
|
41
|
+
},
|
|
42
|
+
'headers': {
|
|
43
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
'paramsType': {
|
|
47
|
+
'KeyName': 'String',
|
|
48
|
+
'PublicKey': 'String',
|
|
49
|
+
'Description': 'String',
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
'DeleteKey': {
|
|
53
|
+
'url': '/',
|
|
54
|
+
'method': 'GET',
|
|
55
|
+
'config': {
|
|
56
|
+
'query': {
|
|
57
|
+
'Version': '2015-11-01',
|
|
58
|
+
'Action': 'DeleteKey',
|
|
59
|
+
},
|
|
60
|
+
'headers': {
|
|
61
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
'paramsType': {
|
|
65
|
+
'KeyId': 'String',
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
'ModifyKey': {
|
|
69
|
+
'url': '/',
|
|
70
|
+
'method': 'GET',
|
|
71
|
+
'config': {
|
|
72
|
+
'query': {
|
|
73
|
+
'Version': '2015-11-01',
|
|
74
|
+
'Action': 'ModifyKey',
|
|
75
|
+
},
|
|
76
|
+
'headers': {
|
|
77
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
'paramsType': {
|
|
81
|
+
'KeyName': 'String',
|
|
82
|
+
'KeyId': 'String',
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
'DescribeKeys': {
|
|
86
|
+
'url': '/',
|
|
87
|
+
'method': 'GET',
|
|
88
|
+
'config': {
|
|
89
|
+
'query': {
|
|
90
|
+
'Version': '2015-11-01',
|
|
91
|
+
'Action': 'DescribeKeys',
|
|
92
|
+
},
|
|
93
|
+
'headers': {
|
|
94
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
'paramsType': {
|
|
98
|
+
'MaxResults': 'Int',
|
|
99
|
+
'NextToken': 'String',
|
|
100
|
+
'KeyId': 'Filter',
|
|
101
|
+
'Filter': 'Filter',
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
}
|
|
105
|
+
}
|