-
Notifications
You must be signed in to change notification settings - Fork 96
/
cdwdoris_client.js
133 lines (133 loc) · 3.8 KB
/
cdwdoris_client.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Client = void 0;
/* eslint-disable @typescript-eslint/no-unused-vars */
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
const abstract_client_1 = require("../../../common/abstract_client");
/**
* cdwdoris client
* @class
*/
class Client extends abstract_client_1.AbstractClient {
constructor(clientConfig) {
super("cdwdoris.tencentcloudapi.com", "2021-12-28", clientConfig);
}
/**
* 计算资源垂直变配
*/
async ScaleUpInstance(req, cb) {
return this.request("ScaleUpInstance", req, cb);
}
/**
* 获取集群列表
*/
async DescribeInstances(req, cb) {
return this.request("DescribeInstances", req, cb);
}
/**
* 销毁集群
*/
async DestroyInstance(req, cb) {
return this.request("DestroyInstance", req, cb);
}
/**
* 集群详情页中显示集群状态、流程进度等
*/
async DescribeInstanceState(req, cb) {
return this.request("DescribeInstanceState", req, cb);
}
/**
* 获取数据库审计记录
*/
async DescribeDatabaseAuditRecords(req, cb) {
return this.request("DescribeDatabaseAuditRecords", req, cb);
}
/**
* 获取集群的最新的几个配置文件(config.xml、metrika.xml、user.xml)的内容,显示给用户
*/
async DescribeClusterConfigs(req, cb) {
return this.request("DescribeClusterConfigs", req, cb);
}
/**
* 扩容云盘
*/
async ResizeDisk(req, cb) {
return this.request("ResizeDisk", req, cb);
}
/**
* 下载数据库审计日志
*/
async DescribeDatabaseAuditDownload(req, cb) {
return this.request("DescribeDatabaseAuditDownload", req, cb);
}
/**
* 根据集群ID查询某个集群的具体信息
*/
async DescribeInstance(req, cb) {
return this.request("DescribeInstance", req, cb);
}
/**
* 集群滚动重启
*/
async RestartClusterForNode(req, cb) {
return this.request("RestartClusterForNode", req, cb);
}
/**
* 获取集群节点信息列表
*/
async DescribeInstanceNodes(req, cb) {
return this.request("DescribeInstanceNodes", req, cb);
}
/**
* 下载慢查询文件
*/
async DescribeSlowQueryRecordsDownload(req, cb) {
return this.request("DescribeSlowQueryRecordsDownload", req, cb);
}
/**
* 获取BE/FE节点角色
*/
async DescribeInstanceNodesInfo(req, cb) {
return this.request("DescribeInstanceNodesInfo", req, cb);
}
/**
* 通过API创建集群
*/
async CreateInstanceNew(req, cb) {
return this.request("CreateInstanceNew", req, cb);
}
/**
* 水平扩容节点
*/
async ScaleOutInstance(req, cb) {
return this.request("ScaleOutInstance", req, cb);
}
/**
* 修改集群名称
*/
async ModifyInstance(req, cb) {
return this.request("ModifyInstance", req, cb);
}
/**
* 获取慢查询列表
*/
async DescribeSlowQueryRecords(req, cb) {
return this.request("DescribeSlowQueryRecords", req, cb);
}
}
exports.Client = Client;