ksyun-sdk-node 1.0.2 → 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/Ebs/v20160304/index.js +20 -0
- package/dist/service/Eip/v20160304/index.js +157 -0
- package/dist/service/Epc/v20151101/index.js +1044 -0
- package/dist/service/Iam/v20151101/index.js +175 -57
- package/dist/service/Kec/v20160304/index.js +1843 -0
- 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/Ebs/v20160304/index.js +24 -1
- package/src/service/Eip/v20160304/index.js +147 -0
- package/src/service/Epc/v20151101/index.js +1036 -0
- package/src/service/Iam/v20151101/index.js +177 -57
- package/src/service/Kec/v20160304/index.js +1841 -0
- 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,140 @@
|
|
|
1
|
+
"use strict";
|
|
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
|
+
|
|
5
|
+
const BaseClient = require("../../../base/BaseClient.js");
|
|
6
|
+
|
|
7
|
+
module.exports = class Client extends BaseClient {
|
|
8
|
+
constructor(...args) {
|
|
9
|
+
super(...args);
|
|
10
|
+
|
|
11
|
+
_defineProperty(this, "_baseConfig", {
|
|
12
|
+
'protocol': 'http://',
|
|
13
|
+
'endpoint': 'bws.api.ksyun.com',
|
|
14
|
+
'config': {
|
|
15
|
+
'timeout': 60,
|
|
16
|
+
//设置timeout
|
|
17
|
+
'headers': {
|
|
18
|
+
'Accept': 'application/json'
|
|
19
|
+
},
|
|
20
|
+
'credentials': {
|
|
21
|
+
'region': 'cn-shanghai-3',
|
|
22
|
+
'service': 'bws'
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
_defineProperty(this, "_apiList", {
|
|
28
|
+
'CreateBandWidthShare': {
|
|
29
|
+
'url': '/',
|
|
30
|
+
'method': 'GET',
|
|
31
|
+
'config': {
|
|
32
|
+
'query': {
|
|
33
|
+
'Version': '2016-03-04',
|
|
34
|
+
'Action': 'CreateBandWidthShare'
|
|
35
|
+
},
|
|
36
|
+
'headers': {
|
|
37
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
'paramsType': {
|
|
41
|
+
'LineId': 'String',
|
|
42
|
+
'BandWidth': 'Int',
|
|
43
|
+
'BandWidthShareName': 'String',
|
|
44
|
+
'ProjectId': 'String',
|
|
45
|
+
'ChargeType': 'String'
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
'DescribeBandWidthShares': {
|
|
49
|
+
'url': '/',
|
|
50
|
+
'method': 'GET',
|
|
51
|
+
'config': {
|
|
52
|
+
'query': {
|
|
53
|
+
'Version': '2016-03-04',
|
|
54
|
+
'Action': 'DescribeBandWidthShares'
|
|
55
|
+
},
|
|
56
|
+
'headers': {
|
|
57
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
'paramsType': {
|
|
61
|
+
'ProjectId': 'Filter',
|
|
62
|
+
'BandWidthShareId': 'Filter',
|
|
63
|
+
'Filter': 'Filter',
|
|
64
|
+
'MaxResults': 'Int',
|
|
65
|
+
'NextToken': 'String'
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
'AssociateBandWidthShare': {
|
|
69
|
+
'url': '/',
|
|
70
|
+
'method': 'GET',
|
|
71
|
+
'config': {
|
|
72
|
+
'query': {
|
|
73
|
+
'Version': '2016-03-04',
|
|
74
|
+
'Action': 'AssociateBandWidthShare'
|
|
75
|
+
},
|
|
76
|
+
'headers': {
|
|
77
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
'paramsType': {
|
|
81
|
+
'BandWidthShareId': 'String',
|
|
82
|
+
'AllocationId': 'String'
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
'DisassociateBandWidthShare': {
|
|
86
|
+
'url': '/',
|
|
87
|
+
'method': 'GET',
|
|
88
|
+
'config': {
|
|
89
|
+
'query': {
|
|
90
|
+
'Version': '2016-03-04',
|
|
91
|
+
'Action': 'DisassociateBandWidthShare'
|
|
92
|
+
},
|
|
93
|
+
'headers': {
|
|
94
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
'paramsType': {
|
|
98
|
+
'BandWidthShareId': 'String',
|
|
99
|
+
'AllocationId': 'String',
|
|
100
|
+
'BandWidth': 'Int'
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
'ModifyBandWidthShare': {
|
|
104
|
+
'url': '/',
|
|
105
|
+
'method': 'GET',
|
|
106
|
+
'config': {
|
|
107
|
+
'query': {
|
|
108
|
+
'Version': '2016-03-04',
|
|
109
|
+
'Action': 'ModifyBandWidthShare'
|
|
110
|
+
},
|
|
111
|
+
'headers': {
|
|
112
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
'paramsType': {
|
|
116
|
+
'BandWidthShareId': 'String',
|
|
117
|
+
'BandWidth': 'Int',
|
|
118
|
+
'BandWidthShareName': 'String'
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
'DeleteBandWidthShare': {
|
|
122
|
+
'url': '/',
|
|
123
|
+
'method': 'GET',
|
|
124
|
+
'config': {
|
|
125
|
+
'query': {
|
|
126
|
+
'Version': '2016-03-04',
|
|
127
|
+
'Action': 'DeleteBandWidthShare'
|
|
128
|
+
},
|
|
129
|
+
'headers': {
|
|
130
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
'paramsType': {
|
|
134
|
+
'BandWidthShareId': 'String'
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
};
|
|
@@ -352,6 +352,26 @@ module.exports = class Client extends BaseClient {
|
|
|
352
352
|
'VolumeType': 'String',
|
|
353
353
|
'InstanceId': 'String'
|
|
354
354
|
}
|
|
355
|
+
},
|
|
356
|
+
'DescribeCreateVolumePrice': {
|
|
357
|
+
'url': '/',
|
|
358
|
+
'method': 'GET',
|
|
359
|
+
'config': {
|
|
360
|
+
'query': {
|
|
361
|
+
'Version': '2016-03-04',
|
|
362
|
+
'Action': 'DescribeCreateVolumePrice'
|
|
363
|
+
},
|
|
364
|
+
'headers': {
|
|
365
|
+
'Content-Type': 'application/json'
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
'paramsType': {
|
|
369
|
+
'VolumeType': 'String',
|
|
370
|
+
'Size': 'Int',
|
|
371
|
+
'AvailabilityZone': 'String',
|
|
372
|
+
'ChargeType': 'String',
|
|
373
|
+
'PurchaseTime': 'Int'
|
|
374
|
+
}
|
|
355
375
|
}
|
|
356
376
|
});
|
|
357
377
|
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
"use strict";
|
|
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
|
+
|
|
5
|
+
const BaseClient = require("../../../base/BaseClient.js");
|
|
6
|
+
|
|
7
|
+
module.exports = class Client extends BaseClient {
|
|
8
|
+
constructor(...args) {
|
|
9
|
+
super(...args);
|
|
10
|
+
|
|
11
|
+
_defineProperty(this, "_baseConfig", {
|
|
12
|
+
'protocol': 'http://',
|
|
13
|
+
'endpoint': 'eip.api.ksyun.com',
|
|
14
|
+
'config': {
|
|
15
|
+
'timeout': 60,
|
|
16
|
+
//设置timeout
|
|
17
|
+
'headers': {
|
|
18
|
+
'Accept': 'application/json'
|
|
19
|
+
},
|
|
20
|
+
'credentials': {
|
|
21
|
+
'region': 'cn-shanghai-3',
|
|
22
|
+
'service': 'eip'
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
_defineProperty(this, "_apiList", {
|
|
28
|
+
'GetLines': {
|
|
29
|
+
'url': '/',
|
|
30
|
+
'method': 'GET',
|
|
31
|
+
'config': {
|
|
32
|
+
'query': {
|
|
33
|
+
'Version': '2016-03-04',
|
|
34
|
+
'Action': 'GetLines'
|
|
35
|
+
},
|
|
36
|
+
'headers': {
|
|
37
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
'paramsType': {}
|
|
41
|
+
},
|
|
42
|
+
'DescribeAddresses': {
|
|
43
|
+
'url': '/',
|
|
44
|
+
'method': 'GET',
|
|
45
|
+
'config': {
|
|
46
|
+
'query': {
|
|
47
|
+
'Version': '2016-03-04',
|
|
48
|
+
'Action': 'DescribeAddresses'
|
|
49
|
+
},
|
|
50
|
+
'headers': {
|
|
51
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
'paramsType': {
|
|
55
|
+
'ProjectId': 'Filter',
|
|
56
|
+
'AllocationId': 'Filter',
|
|
57
|
+
'Filter': 'Filter',
|
|
58
|
+
'MaxResults': 'Int',
|
|
59
|
+
'NextToken': 'String',
|
|
60
|
+
'State': 'String',
|
|
61
|
+
'IpVersion': 'String'
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
'AllocateAddress': {
|
|
65
|
+
'url': '/',
|
|
66
|
+
'method': 'GET',
|
|
67
|
+
'config': {
|
|
68
|
+
'query': {
|
|
69
|
+
'Version': '2016-03-04',
|
|
70
|
+
'Action': 'AllocateAddress'
|
|
71
|
+
},
|
|
72
|
+
'headers': {
|
|
73
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
'paramsType': {
|
|
77
|
+
'LineId': 'String',
|
|
78
|
+
'BandWidth': 'Int',
|
|
79
|
+
'ProjectId': 'String',
|
|
80
|
+
'ChargeType': 'String',
|
|
81
|
+
'PurchaseTime': 'Int'
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
'ReleaseAddress': {
|
|
85
|
+
'url': '/',
|
|
86
|
+
'method': 'GET',
|
|
87
|
+
'config': {
|
|
88
|
+
'query': {
|
|
89
|
+
'Version': '2016-03-04',
|
|
90
|
+
'Action': 'ReleaseAddress'
|
|
91
|
+
},
|
|
92
|
+
'headers': {
|
|
93
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
'paramsType': {
|
|
97
|
+
'AllocationId': 'String'
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
'AssociateAddress': {
|
|
101
|
+
'url': '/',
|
|
102
|
+
'method': 'GET',
|
|
103
|
+
'config': {
|
|
104
|
+
'query': {
|
|
105
|
+
'Version': '2016-03-04',
|
|
106
|
+
'Action': 'AssociateAddress'
|
|
107
|
+
},
|
|
108
|
+
'headers': {
|
|
109
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
'paramsType': {
|
|
113
|
+
'AllocationId': 'String',
|
|
114
|
+
'InstanceType': 'String',
|
|
115
|
+
'InstanceId': 'String',
|
|
116
|
+
'NetworkInterfaceId': 'String',
|
|
117
|
+
'Mode': 'String',
|
|
118
|
+
'PrivateIpAddress': 'String'
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
'DisassociateAddress': {
|
|
122
|
+
'url': '/',
|
|
123
|
+
'method': 'GET',
|
|
124
|
+
'config': {
|
|
125
|
+
'query': {
|
|
126
|
+
'Version': '2016-03-04',
|
|
127
|
+
'Action': 'DisassociateAddress'
|
|
128
|
+
},
|
|
129
|
+
'headers': {
|
|
130
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
'paramsType': {
|
|
134
|
+
'AllocationId': 'String'
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
'ModifyAddress': {
|
|
138
|
+
'url': '/',
|
|
139
|
+
'method': 'GET',
|
|
140
|
+
'config': {
|
|
141
|
+
'query': {
|
|
142
|
+
'Version': '2016-03-04',
|
|
143
|
+
'Action': 'ModifyAddress'
|
|
144
|
+
},
|
|
145
|
+
'headers': {
|
|
146
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
'paramsType': {
|
|
150
|
+
'AllocationId': 'String',
|
|
151
|
+
'BandWidth': 'Int'
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
};
|