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,81 @@
|
|
|
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': 'kcs.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': 'kcs'
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
_defineProperty(this, "_apiList", {
|
|
26
|
+
'DescribeCacheReadonlyNode': {
|
|
27
|
+
'url': '/',
|
|
28
|
+
'method': 'GET',
|
|
29
|
+
'config': {
|
|
30
|
+
'query': {
|
|
31
|
+
'Version': '2017-04-01',
|
|
32
|
+
'Action': 'DescribeCacheReadonlyNode'
|
|
33
|
+
},
|
|
34
|
+
'headers': {
|
|
35
|
+
'Content-Type': 'application/json'
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
'paramsType': {
|
|
39
|
+
'CacheId': 'String',
|
|
40
|
+
'AvailableZone': 'String'
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
'AddCacheSlaveNode': {
|
|
44
|
+
'url': '/',
|
|
45
|
+
'method': 'PUT',
|
|
46
|
+
'config': {
|
|
47
|
+
'query': {
|
|
48
|
+
'Version': '2017-04-01',
|
|
49
|
+
'Action': 'AddCacheSlaveNode'
|
|
50
|
+
},
|
|
51
|
+
'headers': {
|
|
52
|
+
'Content-Type': 'application/json'
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
'paramsType': {
|
|
56
|
+
'AvailableZone': 'String',
|
|
57
|
+
'CacheId': 'String',
|
|
58
|
+
'SlaveVip': 'String'
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
'DeleteCacheSlaveNode': {
|
|
62
|
+
'url': '/',
|
|
63
|
+
'method': 'PUT',
|
|
64
|
+
'config': {
|
|
65
|
+
'query': {
|
|
66
|
+
'Version': '2017-04-01',
|
|
67
|
+
'Action': 'DeleteCacheSlaveNode'
|
|
68
|
+
},
|
|
69
|
+
'headers': {
|
|
70
|
+
'Content-Type': 'application/json'
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
'paramsType': {
|
|
74
|
+
'AvailableZone': 'String',
|
|
75
|
+
'CacheId': 'String',
|
|
76
|
+
'NodeId': 'String'
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _defineProperty(
|
|
4
|
-
|
|
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); }
|
|
5
6
|
const BaseClient = require("../../../base/BaseClient.js");
|
|
6
|
-
|
|
7
7
|
module.exports = class Client extends BaseClient {
|
|
8
8
|
constructor(...args) {
|
|
9
9
|
super(...args);
|
|
10
|
-
|
|
11
10
|
_defineProperty(this, "_baseConfig", {
|
|
12
11
|
'protocol': 'http://',
|
|
13
12
|
'endpoint': 'kead.api.ksyun.com',
|
|
@@ -23,7 +22,6 @@ module.exports = class Client extends BaseClient {
|
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
24
|
});
|
|
26
|
-
|
|
27
25
|
_defineProperty(this, "_apiList", {
|
|
28
26
|
'DescribeBlockIp': {
|
|
29
27
|
'url': '/',
|
|
@@ -48,5 +46,4 @@ module.exports = class Client extends BaseClient {
|
|
|
48
46
|
}
|
|
49
47
|
});
|
|
50
48
|
}
|
|
51
|
-
|
|
52
49
|
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _defineProperty(
|
|
4
|
-
|
|
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); }
|
|
5
6
|
const BaseClient = require("../../../base/BaseClient.js");
|
|
6
|
-
|
|
7
7
|
module.exports = class Client extends BaseClient {
|
|
8
8
|
constructor(...args) {
|
|
9
9
|
super(...args);
|
|
10
|
-
|
|
11
10
|
_defineProperty(this, "_baseConfig", {
|
|
12
11
|
'protocol': 'http://',
|
|
13
12
|
'endpoint': 'kec.api.ksyun.com',
|
|
@@ -23,7 +22,6 @@ module.exports = class Client extends BaseClient {
|
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
24
|
});
|
|
26
|
-
|
|
27
25
|
_defineProperty(this, "_apiList", {
|
|
28
26
|
'DescribeInstances': {
|
|
29
27
|
'url': '/',
|
|
@@ -79,9 +77,26 @@ module.exports = class Client extends BaseClient {
|
|
|
79
77
|
'ProjectId': 'Int',
|
|
80
78
|
'DataDisk': 'Filter',
|
|
81
79
|
'NetworkInterface': 'Filter',
|
|
82
|
-
'
|
|
80
|
+
'UserData': 'String',
|
|
83
81
|
'SystemDisk.DiskType': 'String',
|
|
84
|
-
'SystemDisk.DiskSize': 'Int'
|
|
82
|
+
'SystemDisk.DiskSize': 'Int',
|
|
83
|
+
'ModelId': 'String',
|
|
84
|
+
'ModelVersion': 'Int',
|
|
85
|
+
'AssembledImageDataDiskType': 'String',
|
|
86
|
+
'AutoCreateEbs': 'Boolean',
|
|
87
|
+
'LineId': 'String',
|
|
88
|
+
'AddressBandWidth': 'Int',
|
|
89
|
+
'AddressChargeType': 'String',
|
|
90
|
+
'AddressProjectId': 'String',
|
|
91
|
+
'AddressPurchaseTime': 'Int',
|
|
92
|
+
'KeyId': 'Filter',
|
|
93
|
+
'keepImageLogin': 'Boolean',
|
|
94
|
+
'HostName': 'String',
|
|
95
|
+
'HostNameSuffix': 'Int',
|
|
96
|
+
'Password': 'String',
|
|
97
|
+
'FailureAutoDelete': 'Boolean',
|
|
98
|
+
'Tag': 'Filter',
|
|
99
|
+
'DataGuardId': 'String'
|
|
85
100
|
}
|
|
86
101
|
},
|
|
87
102
|
'StartInstances': {
|
|
@@ -179,7 +194,8 @@ module.exports = class Client extends BaseClient {
|
|
|
179
194
|
'StopInstance': 'Boolean',
|
|
180
195
|
'AutoRestart': 'Boolean',
|
|
181
196
|
'SystemDisk.DiskSize': 'Int',
|
|
182
|
-
'SystemDisk.ResizeType': 'String'
|
|
197
|
+
'SystemDisk.ResizeType': 'String',
|
|
198
|
+
'InstantAccess': 'Boolean'
|
|
183
199
|
}
|
|
184
200
|
},
|
|
185
201
|
'TerminateInstances': {
|
|
@@ -255,7 +271,8 @@ module.exports = class Client extends BaseClient {
|
|
|
255
271
|
'KeyId': 'Filter',
|
|
256
272
|
'KeepImageLogin': 'Boolean',
|
|
257
273
|
'SystemDisk.DiskType': 'String',
|
|
258
|
-
'SystemDisk.ResizeType': 'String'
|
|
274
|
+
'SystemDisk.ResizeType': 'String',
|
|
275
|
+
'UserData': 'String'
|
|
259
276
|
}
|
|
260
277
|
},
|
|
261
278
|
'CreateImage': {
|
|
@@ -275,7 +292,8 @@ module.exports = class Client extends BaseClient {
|
|
|
275
292
|
'Name': 'String',
|
|
276
293
|
'Type': 'String',
|
|
277
294
|
'DataDiskIds': 'Filter',
|
|
278
|
-
'SnapshotIds': 'Filter'
|
|
295
|
+
'SnapshotIds': 'Filter',
|
|
296
|
+
'InstantAccess': 'Boolean'
|
|
279
297
|
}
|
|
280
298
|
},
|
|
281
299
|
'RemoveImages': {
|
|
@@ -369,7 +387,16 @@ module.exports = class Client extends BaseClient {
|
|
|
369
387
|
}
|
|
370
388
|
},
|
|
371
389
|
'paramsType': {
|
|
372
|
-
'InstanceName': 'String'
|
|
390
|
+
'InstanceName': 'String',
|
|
391
|
+
'Marker': 'Int',
|
|
392
|
+
'MaxResults': 'Int',
|
|
393
|
+
'LocalVolumeId': 'String',
|
|
394
|
+
'InstanceState': 'String',
|
|
395
|
+
'LocalVolumeCategory': 'String',
|
|
396
|
+
'LocalVolumeSize': 'Int',
|
|
397
|
+
'BindSnapshotPolicy': 'Boolean',
|
|
398
|
+
'AutoSnapshotPolicyId': 'String',
|
|
399
|
+
'InstanceId': 'String'
|
|
373
400
|
}
|
|
374
401
|
},
|
|
375
402
|
'CreateLocalVolumeSnapshot': {
|
|
@@ -387,7 +414,8 @@ module.exports = class Client extends BaseClient {
|
|
|
387
414
|
'paramsType': {
|
|
388
415
|
'LocalVolumeId': 'String',
|
|
389
416
|
'LocalVolumeSnapshotName': 'String',
|
|
390
|
-
'LocalVolumeSnapshotDesc': 'String'
|
|
417
|
+
'LocalVolumeSnapshotDesc': 'String',
|
|
418
|
+
'InstantAccess': 'Boolean'
|
|
391
419
|
}
|
|
392
420
|
},
|
|
393
421
|
'DescribeLocalVolumeSnapshots': {
|
|
@@ -561,21 +589,21 @@ module.exports = class Client extends BaseClient {
|
|
|
561
589
|
'Tag': 'Filter'
|
|
562
590
|
}
|
|
563
591
|
},
|
|
564
|
-
'
|
|
592
|
+
'DeleteDedicatedHost': {
|
|
565
593
|
'url': '/',
|
|
566
594
|
'method': 'GET',
|
|
567
595
|
'config': {
|
|
568
596
|
'query': {
|
|
569
597
|
'Version': '2016-03-04',
|
|
570
|
-
'Action': '
|
|
598
|
+
'Action': 'DeleteDedicatedHost'
|
|
571
599
|
},
|
|
572
600
|
'headers': {
|
|
573
601
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
574
602
|
}
|
|
575
603
|
},
|
|
576
604
|
'paramsType': {
|
|
577
|
-
'DedicatedHostId': '
|
|
578
|
-
'
|
|
605
|
+
'DedicatedHostId': 'Filter',
|
|
606
|
+
'IsRefund': 'Boolean'
|
|
579
607
|
}
|
|
580
608
|
},
|
|
581
609
|
'DescribeDedicatedHosts': {
|
|
@@ -1245,7 +1273,9 @@ module.exports = class Client extends BaseClient {
|
|
|
1245
1273
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
1246
1274
|
}
|
|
1247
1275
|
},
|
|
1248
|
-
'paramsType': {
|
|
1276
|
+
'paramsType': {
|
|
1277
|
+
'Filter': 'Filter'
|
|
1278
|
+
}
|
|
1249
1279
|
},
|
|
1250
1280
|
'DescribeInstanceFamilys': {
|
|
1251
1281
|
'url': '/',
|
|
@@ -1295,7 +1325,8 @@ module.exports = class Client extends BaseClient {
|
|
|
1295
1325
|
'VpcId': 'String',
|
|
1296
1326
|
'StorageType': 'String',
|
|
1297
1327
|
'ProtocolType': 'String',
|
|
1298
|
-
'FileSystemName': 'String'
|
|
1328
|
+
'FileSystemName': 'String',
|
|
1329
|
+
'ProjectId': 'Int'
|
|
1299
1330
|
}
|
|
1300
1331
|
},
|
|
1301
1332
|
'DeleteFileSystem': {
|
|
@@ -1327,9 +1358,12 @@ module.exports = class Client extends BaseClient {
|
|
|
1327
1358
|
}
|
|
1328
1359
|
},
|
|
1329
1360
|
'paramsType': {
|
|
1330
|
-
'FileSystemId': '
|
|
1361
|
+
'FileSystemId': 'Filter',
|
|
1331
1362
|
'MaxResults': 'Int',
|
|
1332
|
-
'Marker': 'Int'
|
|
1363
|
+
'Marker': 'Int',
|
|
1364
|
+
'ProjectId': 'Filter',
|
|
1365
|
+
'IncludeDel': 'Boolean',
|
|
1366
|
+
'Filter': 'Filter'
|
|
1333
1367
|
}
|
|
1334
1368
|
},
|
|
1335
1369
|
'ModifyFileSystem': {
|
|
@@ -1439,7 +1473,9 @@ module.exports = class Client extends BaseClient {
|
|
|
1439
1473
|
'AddressProjectId': 'String',
|
|
1440
1474
|
'ModelName': 'String',
|
|
1441
1475
|
'SystemDisk.DiskType': 'String',
|
|
1442
|
-
'SystemDisk.ResizeType': 'String'
|
|
1476
|
+
'SystemDisk.ResizeType': 'String',
|
|
1477
|
+
'VersionDetail': 'String',
|
|
1478
|
+
'FailureAutoDelete': 'Boolean'
|
|
1443
1479
|
}
|
|
1444
1480
|
},
|
|
1445
1481
|
'TerminateModels': {
|
|
@@ -1455,7 +1491,8 @@ module.exports = class Client extends BaseClient {
|
|
|
1455
1491
|
}
|
|
1456
1492
|
},
|
|
1457
1493
|
'paramsType': {
|
|
1458
|
-
'ModelId': '
|
|
1494
|
+
'ModelId': 'String',
|
|
1495
|
+
'ModelVersion': 'Int'
|
|
1459
1496
|
}
|
|
1460
1497
|
},
|
|
1461
1498
|
'DescribeModels': {
|
|
@@ -1577,6 +1614,25 @@ module.exports = class Client extends BaseClient {
|
|
|
1577
1614
|
'DedicatedClusterName': 'String'
|
|
1578
1615
|
}
|
|
1579
1616
|
},
|
|
1617
|
+
'InstanceMigrate': {
|
|
1618
|
+
'url': '/',
|
|
1619
|
+
'method': 'GET',
|
|
1620
|
+
'config': {
|
|
1621
|
+
'query': {
|
|
1622
|
+
'Version': '2016-03-04',
|
|
1623
|
+
'Action': 'InstanceMigrate'
|
|
1624
|
+
},
|
|
1625
|
+
'headers': {
|
|
1626
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
1627
|
+
}
|
|
1628
|
+
},
|
|
1629
|
+
'paramsType': {
|
|
1630
|
+
'DedicatedHostId': 'String',
|
|
1631
|
+
'InstanceId': 'String',
|
|
1632
|
+
'InstanceType': 'String',
|
|
1633
|
+
'DataDisk': 'Filter'
|
|
1634
|
+
}
|
|
1635
|
+
},
|
|
1580
1636
|
'ModifyInstanceAutoDeleteTime': {
|
|
1581
1637
|
'url': '/',
|
|
1582
1638
|
'method': 'GET',
|
|
@@ -1760,84 +1816,93 @@ module.exports = class Client extends BaseClient {
|
|
|
1760
1816
|
'InstanceId': 'Filter'
|
|
1761
1817
|
}
|
|
1762
1818
|
},
|
|
1763
|
-
'
|
|
1819
|
+
'CopySnapshot': {
|
|
1764
1820
|
'url': '/',
|
|
1765
1821
|
'method': 'GET',
|
|
1766
1822
|
'config': {
|
|
1767
1823
|
'query': {
|
|
1768
1824
|
'Version': '2016-03-04',
|
|
1769
|
-
'Action': '
|
|
1825
|
+
'Action': 'CopySnapshot'
|
|
1770
1826
|
},
|
|
1771
1827
|
'headers': {
|
|
1772
1828
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
1773
1829
|
}
|
|
1774
1830
|
},
|
|
1775
1831
|
'paramsType': {
|
|
1776
|
-
'
|
|
1777
|
-
'
|
|
1778
|
-
'
|
|
1779
|
-
'
|
|
1832
|
+
'SnapshotId': 'Filter',
|
|
1833
|
+
'DestinationRegion': 'Filter',
|
|
1834
|
+
'DestinationSnapshotName': 'String',
|
|
1835
|
+
'DestinationSnapshotDesc': 'String'
|
|
1780
1836
|
}
|
|
1781
1837
|
},
|
|
1782
|
-
'
|
|
1838
|
+
'PreMigrateInstance': {
|
|
1783
1839
|
'url': '/',
|
|
1784
1840
|
'method': 'GET',
|
|
1785
1841
|
'config': {
|
|
1786
1842
|
'query': {
|
|
1787
1843
|
'Version': '2016-03-04',
|
|
1788
|
-
'Action': '
|
|
1844
|
+
'Action': 'PreMigrateInstance'
|
|
1789
1845
|
},
|
|
1790
1846
|
'headers': {
|
|
1791
1847
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
1792
1848
|
}
|
|
1793
1849
|
},
|
|
1794
1850
|
'paramsType': {
|
|
1795
|
-
'InstanceId': 'String'
|
|
1851
|
+
'InstanceId': 'String',
|
|
1852
|
+
'InstanceType': 'String',
|
|
1853
|
+
'SystemDiskType': 'String',
|
|
1854
|
+
'DataDiskType': 'String',
|
|
1855
|
+
'InstantAccess': 'Boolean'
|
|
1796
1856
|
}
|
|
1797
1857
|
},
|
|
1798
|
-
'
|
|
1858
|
+
'CancelPreMigrateInstance': {
|
|
1799
1859
|
'url': '/',
|
|
1800
1860
|
'method': 'GET',
|
|
1801
1861
|
'config': {
|
|
1802
1862
|
'query': {
|
|
1803
1863
|
'Version': '2016-03-04',
|
|
1804
|
-
'Action': '
|
|
1864
|
+
'Action': 'CancelPreMigrateInstance'
|
|
1805
1865
|
},
|
|
1806
1866
|
'headers': {
|
|
1807
|
-
'Content-Type': 'application/
|
|
1867
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
1808
1868
|
}
|
|
1809
1869
|
},
|
|
1810
|
-
'paramsType': {
|
|
1870
|
+
'paramsType': {
|
|
1871
|
+
'InstanceId': 'String'
|
|
1872
|
+
}
|
|
1811
1873
|
},
|
|
1812
|
-
'
|
|
1874
|
+
'GetVNCAddress': {
|
|
1813
1875
|
'url': '/',
|
|
1814
1876
|
'method': 'GET',
|
|
1815
1877
|
'config': {
|
|
1816
1878
|
'query': {
|
|
1817
1879
|
'Version': '2016-03-04',
|
|
1818
|
-
'Action': '
|
|
1880
|
+
'Action': 'GetVNCAddress'
|
|
1819
1881
|
},
|
|
1820
1882
|
'headers': {
|
|
1821
1883
|
'Content-Type': 'application/json'
|
|
1822
1884
|
}
|
|
1823
1885
|
},
|
|
1824
|
-
'paramsType': {
|
|
1886
|
+
'paramsType': {
|
|
1887
|
+
'InstanceId': 'String'
|
|
1888
|
+
}
|
|
1825
1889
|
},
|
|
1826
|
-
'
|
|
1890
|
+
'SwitchImageType': {
|
|
1827
1891
|
'url': '/',
|
|
1828
1892
|
'method': 'GET',
|
|
1829
1893
|
'config': {
|
|
1830
1894
|
'query': {
|
|
1831
1895
|
'Version': '2016-03-04',
|
|
1832
|
-
'Action': '
|
|
1896
|
+
'Action': 'SwitchImageType'
|
|
1833
1897
|
},
|
|
1834
1898
|
'headers': {
|
|
1835
1899
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
1836
1900
|
}
|
|
1837
1901
|
},
|
|
1838
|
-
'paramsType': {
|
|
1902
|
+
'paramsType': {
|
|
1903
|
+
'ImageId': 'Filter'
|
|
1904
|
+
}
|
|
1839
1905
|
}
|
|
1840
1906
|
});
|
|
1841
1907
|
}
|
|
1842
|
-
|
|
1843
1908
|
};
|
|
@@ -0,0 +1,141 @@
|
|
|
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': 'ket.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': 'ket'
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
_defineProperty(this, "_apiList", {
|
|
26
|
+
'Preset': {
|
|
27
|
+
'url': '/',
|
|
28
|
+
'method': 'POST',
|
|
29
|
+
'config': {
|
|
30
|
+
'query': {
|
|
31
|
+
'Version': '2017-01-01',
|
|
32
|
+
'Action': 'Preset'
|
|
33
|
+
},
|
|
34
|
+
'headers': {
|
|
35
|
+
'Content-Type': 'application/json'
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
'paramsType': {
|
|
39
|
+
'UniqName': 'String',
|
|
40
|
+
'App': 'String',
|
|
41
|
+
'Preset': 'String',
|
|
42
|
+
'Description': 'String',
|
|
43
|
+
'Output': 'String',
|
|
44
|
+
'Video': 'String'
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
'UpdatePreset': {
|
|
48
|
+
'url': '/',
|
|
49
|
+
'method': 'POST',
|
|
50
|
+
'config': {
|
|
51
|
+
'query': {
|
|
52
|
+
'Version': '2017-01-01',
|
|
53
|
+
'Action': 'UpdatePreset'
|
|
54
|
+
},
|
|
55
|
+
'headers': {
|
|
56
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
'paramsType': {
|
|
60
|
+
'UniqName': 'String',
|
|
61
|
+
'App': 'String',
|
|
62
|
+
'Preset': 'String',
|
|
63
|
+
'Description': 'String',
|
|
64
|
+
'Output': 'String',
|
|
65
|
+
'Video': 'String'
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
'DelPreset': {
|
|
69
|
+
'url': '/',
|
|
70
|
+
'method': 'GET',
|
|
71
|
+
'config': {
|
|
72
|
+
'query': {
|
|
73
|
+
'Version': '2017-01-01',
|
|
74
|
+
'Action': 'DelPreset'
|
|
75
|
+
},
|
|
76
|
+
'headers': {
|
|
77
|
+
'Content-Type': 'application/json'
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
'paramsType': {
|
|
81
|
+
'UniqName': 'String',
|
|
82
|
+
'App': 'String',
|
|
83
|
+
'Preset': 'String'
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
'GetPresetList': {
|
|
87
|
+
'url': '/',
|
|
88
|
+
'method': 'GET',
|
|
89
|
+
'config': {
|
|
90
|
+
'query': {
|
|
91
|
+
'Version': '2017-01-01',
|
|
92
|
+
'Action': 'GetPresetList'
|
|
93
|
+
},
|
|
94
|
+
'headers': {
|
|
95
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
'paramsType': {
|
|
99
|
+
'UniqName': 'String',
|
|
100
|
+
'App': 'String'
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
'GetPresetDetail': {
|
|
104
|
+
'url': '/',
|
|
105
|
+
'method': 'GET',
|
|
106
|
+
'config': {
|
|
107
|
+
'query': {
|
|
108
|
+
'Version': '2017-01-01',
|
|
109
|
+
'Action': 'GetPresetDetail'
|
|
110
|
+
},
|
|
111
|
+
'headers': {
|
|
112
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
'paramsType': {
|
|
116
|
+
'UniqName': 'String',
|
|
117
|
+
'App': 'String',
|
|
118
|
+
'Preset': 'String'
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
'GetStreamTranList': {
|
|
122
|
+
'url': '/',
|
|
123
|
+
'method': 'GET',
|
|
124
|
+
'config': {
|
|
125
|
+
'query': {
|
|
126
|
+
'Version': '2017-01-01',
|
|
127
|
+
'Action': 'GetStreamTranList'
|
|
128
|
+
},
|
|
129
|
+
'headers': {
|
|
130
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
'paramsType': {
|
|
134
|
+
'UniqName': 'String',
|
|
135
|
+
'App': 'String',
|
|
136
|
+
'StreamID': 'String'
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
};
|