@ucloud-sdks/ucloud-sdk-js 0.2.7 → 0.2.8
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/lib/services/index.d.ts +3 -0
- package/lib/services/index.js +21 -0
- package/lib/services/uclickhouse/index.d.ts +877 -0
- package/lib/services/uclickhouse/index.js +88 -0
- package/lib/services/ues/index.d.ts +635 -0
- package/lib/services/ues/index.js +106 -0
- package/lib/services/ukafka/index.d.ts +797 -0
- package/lib/services/ukafka/index.js +133 -0
- package/package.json +1 -1
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const client_1 = __importDefault(require("../../core/client"));
|
|
7
|
+
const request_1 = __importDefault(require("../../core/request"));
|
|
8
|
+
/**
|
|
9
|
+
* This client is used to call actions of **ues** service
|
|
10
|
+
*/
|
|
11
|
+
class UESClient extends client_1.default {
|
|
12
|
+
constructor({ config, credential, }) {
|
|
13
|
+
super({ config, credential });
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* CreateUESInstance - 创建实例
|
|
17
|
+
*
|
|
18
|
+
* See also: https://docs.ucloud.cn/api/ues-api/create_ues_instance
|
|
19
|
+
*/
|
|
20
|
+
createUESInstance(request) {
|
|
21
|
+
const args = Object.assign({ Action: 'CreateUESInstance' }, (request || {}));
|
|
22
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* DeleteUESInstance - 删除实例
|
|
26
|
+
*
|
|
27
|
+
* See also: https://docs.ucloud.cn/api/ues-api/delete_ues_instance
|
|
28
|
+
*/
|
|
29
|
+
deleteUESInstance(request) {
|
|
30
|
+
const args = Object.assign({ Action: 'DeleteUESInstance' }, (request || {}));
|
|
31
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* DescribeUESInstanceV2 - 查询指定实例详细信息
|
|
35
|
+
*
|
|
36
|
+
* See also: https://docs.ucloud.cn/api/ues-api/describe_ues_instance_v2
|
|
37
|
+
*/
|
|
38
|
+
describeUESInstanceV2(request) {
|
|
39
|
+
const args = Object.assign({ Action: 'DescribeUESInstanceV2' }, (request || {}));
|
|
40
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* ExpandUESInstance - 扩容实例节点
|
|
44
|
+
*
|
|
45
|
+
* See also: https://docs.ucloud.cn/api/ues-api/expand_ues_instance
|
|
46
|
+
*/
|
|
47
|
+
expandUESInstance(request) {
|
|
48
|
+
const args = Object.assign({ Action: 'ExpandUESInstance' }, (request || {}));
|
|
49
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* GetUESAppVersion - 获取服务应用版本列表
|
|
53
|
+
*
|
|
54
|
+
* See also: https://docs.ucloud.cn/api/ues-api/get_ues_app_version
|
|
55
|
+
*/
|
|
56
|
+
getUESAppVersion(request) {
|
|
57
|
+
const args = Object.assign({ Action: 'GetUESAppVersion' }, (request || {}));
|
|
58
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* GetUESDiskSizeLimitation - 获取磁盘容量限制
|
|
62
|
+
*
|
|
63
|
+
* See also: https://docs.ucloud.cn/api/ues-api/get_ues_disk_size_limitation
|
|
64
|
+
*/
|
|
65
|
+
getUESDiskSizeLimitation(request) {
|
|
66
|
+
const args = Object.assign({ Action: 'GetUESDiskSizeLimitation' }, (request || {}));
|
|
67
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* GetUESNodeConf - 获取节点配置列表
|
|
71
|
+
*
|
|
72
|
+
* See also: https://docs.ucloud.cn/api/ues-api/get_ues_node_conf
|
|
73
|
+
*/
|
|
74
|
+
getUESNodeConf(request) {
|
|
75
|
+
const args = Object.assign({ Action: 'GetUESNodeConf' }, (request || {}));
|
|
76
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* ListUESInstance - 获取实例列表
|
|
80
|
+
*
|
|
81
|
+
* See also: https://docs.ucloud.cn/api/ues-api/list_ues_instance
|
|
82
|
+
*/
|
|
83
|
+
listUESInstance(request) {
|
|
84
|
+
const args = Object.assign({ Action: 'ListUESInstance' }, (request || {}));
|
|
85
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* ResizeUESInstance - 改配实例节点配置
|
|
89
|
+
*
|
|
90
|
+
* See also: https://docs.ucloud.cn/api/ues-api/resize_ues_instance
|
|
91
|
+
*/
|
|
92
|
+
resizeUESInstance(request) {
|
|
93
|
+
const args = Object.assign({ Action: 'ResizeUESInstance' }, (request || {}));
|
|
94
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* RestartUESInstance - 重启实例
|
|
98
|
+
*
|
|
99
|
+
* See also: https://docs.ucloud.cn/api/ues-api/restart_ues_instance
|
|
100
|
+
*/
|
|
101
|
+
restartUESInstance(request) {
|
|
102
|
+
const args = Object.assign({ Action: 'RestartUESInstance' }, (request || {}));
|
|
103
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
exports.default = UESClient;
|