tencentcloud-sdk-nodejs-cdwch 4.0.490

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.
@@ -0,0 +1,314 @@
1
+ /*
2
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing,
11
+ * software distributed under the License is distributed on an
12
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13
+ * KIND, either express or implied. See the License for the
14
+ * specific language governing permissions and limitations
15
+ * under the License.
16
+ */
17
+
18
+ /**
19
+ * DescribeInstanceShards请求参数结构体
20
+ */
21
+ export interface DescribeInstanceShardsRequest {
22
+ /**
23
+ * 集群实例ID
24
+ */
25
+ InstanceId: string
26
+ }
27
+
28
+ /**
29
+ * ModifyUserNewPrivilege请求参数结构体
30
+ */
31
+ export type ModifyUserNewPrivilegeRequest = null
32
+
33
+ /**
34
+ * CreateBackUpSchedule请求参数结构体
35
+ */
36
+ export interface CreateBackUpScheduleRequest {
37
+ /**
38
+ * 编辑时需要传
39
+ */
40
+ ScheduleId?: number
41
+
42
+ /**
43
+ * 选择的星期 逗号分隔
44
+ */
45
+ WeekDays?: string
46
+
47
+ /**
48
+ * 执行小时
49
+ */
50
+ ExecuteHour?: number
51
+
52
+ /**
53
+ * 备份表列表
54
+ */
55
+ BackUpTables?: Array<BackupTableContent>
56
+ }
57
+
58
+ /**
59
+ * DescribeInstanceShards返回参数结构体
60
+ */
61
+ export interface DescribeInstanceShardsResponse {
62
+ /**
63
+ * 实例shard信息
64
+ 注意:此字段可能返回 null,表示取不到有效值。
65
+ */
66
+ InstanceShardsList: string
67
+
68
+ /**
69
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
70
+ */
71
+ RequestId?: string
72
+ }
73
+
74
+ /**
75
+ * OpenBackUp请求参数结构体
76
+ */
77
+ export interface OpenBackUpRequest {
78
+ /**
79
+ * 集群id
80
+ */
81
+ InstanceId: string
82
+
83
+ /**
84
+ * OPEN 或者CLOSE
85
+ */
86
+ OperationType: string
87
+
88
+ /**
89
+ * 桶名字
90
+ */
91
+ CosBucketName: string
92
+ }
93
+
94
+ /**
95
+ * ModifyClusterConfigs返回参数结构体
96
+ */
97
+ export interface ModifyClusterConfigsResponse {
98
+ /**
99
+ * 流程相关信息
100
+ */
101
+ FlowId: number
102
+
103
+ /**
104
+ * 错误信息
105
+ */
106
+ ErrorMsg: string
107
+
108
+ /**
109
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
110
+ */
111
+ RequestId?: string
112
+ }
113
+
114
+ /**
115
+ * 备份表信息
116
+ */
117
+ export interface BackupTableContent {
118
+ /**
119
+ * 数据库
120
+ */
121
+ Database: string
122
+
123
+ /**
124
+ * 表
125
+ */
126
+ Table: string
127
+
128
+ /**
129
+ * 表总字节数
130
+ */
131
+ TotalBytes: number
132
+
133
+ /**
134
+ * 虚拟cluster
135
+ */
136
+ VCluster?: string
137
+
138
+ /**
139
+ * 表ip
140
+ */
141
+ Ips?: string
142
+ }
143
+
144
+ /**
145
+ * OpenBackUp返回参数结构体
146
+ */
147
+ export interface OpenBackUpResponse {
148
+ /**
149
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
150
+ */
151
+ RequestId?: string
152
+ }
153
+
154
+ /**
155
+ * 配置文件修改信息
156
+ */
157
+ export interface ConfigSubmitContext {
158
+ /**
159
+ * 配置文件名称
160
+ */
161
+ FileName: string
162
+
163
+ /**
164
+ * 配置文件旧内容,base64编码
165
+ */
166
+ OldConfValue: string
167
+
168
+ /**
169
+ * 配置文件新内容,base64编码
170
+ */
171
+ NewConfValue: string
172
+
173
+ /**
174
+ * 保存配置文件的路径
175
+ */
176
+ FilePath?: string
177
+ }
178
+
179
+ /**
180
+ * ActionAlterCkUser返回参数结构体
181
+ */
182
+ export interface ActionAlterCkUserResponse {
183
+ /**
184
+ * 错误信息
185
+ 注意:此字段可能返回 null,表示取不到有效值。
186
+ */
187
+ ErrMsg: string
188
+
189
+ /**
190
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
191
+ */
192
+ RequestId?: string
193
+ }
194
+
195
+ /**
196
+ * DescribeCkSqlApis请求参数结构体
197
+ */
198
+ export interface DescribeCkSqlApisRequest {
199
+ /**
200
+ * 实例id
201
+ */
202
+ InstanceId: string
203
+
204
+ /**
205
+ * api接口名称
206
+ */
207
+ ApiType: string
208
+
209
+ /**
210
+ * 集群名称
211
+ */
212
+ Cluster?: string
213
+
214
+ /**
215
+ * 用户名称
216
+ */
217
+ UserName?: string
218
+ }
219
+
220
+ /**
221
+ * ActionAlterCkUser请求参数结构体
222
+ */
223
+ export interface ActionAlterCkUserRequest {
224
+ /**
225
+ * 用户信息
226
+ */
227
+ UserInfo: CkUserAlterInfo
228
+
229
+ /**
230
+ * api接口类型
231
+ */
232
+ ApiType: string
233
+ }
234
+
235
+ /**
236
+ * 新增或是修改ck用户
237
+ */
238
+ export interface CkUserAlterInfo {
239
+ /**
240
+ * 集群实例id
241
+ */
242
+ InstanceId: string
243
+
244
+ /**
245
+ * 用户名
246
+ */
247
+ UserName: string
248
+
249
+ /**
250
+ * 密码
251
+ */
252
+ PassWord: string
253
+
254
+ /**
255
+ * 描述
256
+ */
257
+ Describe?: string
258
+ }
259
+
260
+ /**
261
+ * CreateBackUpSchedule返回参数结构体
262
+ */
263
+ export interface CreateBackUpScheduleResponse {
264
+ /**
265
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
266
+ */
267
+ RequestId?: string
268
+ }
269
+
270
+ /**
271
+ * ModifyClusterConfigs请求参数结构体
272
+ */
273
+ export interface ModifyClusterConfigsRequest {
274
+ /**
275
+ * 集群ID,例如cdwch-xxxx
276
+ */
277
+ InstanceId: string
278
+
279
+ /**
280
+ * 配置文件修改信息
281
+ */
282
+ ModifyConfContext: Array<ConfigSubmitContext>
283
+
284
+ /**
285
+ * 修改原因
286
+ */
287
+ Remark?: string
288
+ }
289
+
290
+ /**
291
+ * DescribeCkSqlApis返回参数结构体
292
+ */
293
+ export interface DescribeCkSqlApisResponse {
294
+ /**
295
+ * 返回的查询数据,大部分情况是list,也可能是bool
296
+ 注意:此字段可能返回 null,表示取不到有效值。
297
+ */
298
+ ReturnData: string
299
+
300
+ /**
301
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
302
+ */
303
+ RequestId?: string
304
+ }
305
+
306
+ /**
307
+ * ModifyUserNewPrivilege返回参数结构体
308
+ */
309
+ export interface ModifyUserNewPrivilegeResponse {
310
+ /**
311
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
312
+ */
313
+ RequestId?: string
314
+ }
@@ -0,0 +1,6 @@
1
+ import * as Models from "./cdwch_models"
2
+ import { Client } from "./cdwch_client"
3
+ export const v20200915 = {
4
+ Client: Client,
5
+ Models: Models,
6
+ }
@@ -0,0 +1 @@
1
+ export { cdwch } from "./cdwch"
@@ -0,0 +1 @@
1
+ export * from "./services";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./services"), exports);
@@ -0,0 +1,6 @@
1
+ export declare const cdwch: {
2
+ v20200915: {
3
+ Client: typeof import("./v20200915/cdwch_client").Client;
4
+ Models: typeof import("./v20200915/cdwch_models");
5
+ };
6
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.cdwch = void 0;
4
+ const v20200915_1 = require("./v20200915");
5
+ exports.cdwch = {
6
+ v20200915: v20200915_1.v20200915,
7
+ };
@@ -0,0 +1,37 @@
1
+ import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
+ import { DescribeInstanceShardsRequest, ModifyUserNewPrivilegeRequest, CreateBackUpScheduleRequest, DescribeInstanceShardsResponse, OpenBackUpRequest, ModifyClusterConfigsResponse, OpenBackUpResponse, ActionAlterCkUserResponse, DescribeCkSqlApisRequest, ActionAlterCkUserRequest, CreateBackUpScheduleResponse, ModifyClusterConfigsRequest, DescribeCkSqlApisResponse, ModifyUserNewPrivilegeResponse } from "./cdwch_models";
3
+ /**
4
+ * cdwch client
5
+ * @class
6
+ */
7
+ export declare class Client extends TencentCloudCommon.AbstractClient {
8
+ constructor(clientConfig: TencentCloudCommon.ClientConfig);
9
+ /**
10
+ * 创建或者修改备份策略
11
+ */
12
+ CreateBackUpSchedule(req: CreateBackUpScheduleRequest, cb?: (error: string, rep: CreateBackUpScheduleResponse) => void): Promise<CreateBackUpScheduleResponse>;
13
+ /**
14
+ * 针对驱动sql命令查询ck集群接口
15
+ */
16
+ DescribeCkSqlApis(req: DescribeCkSqlApisRequest, cb?: (error: string, rep: DescribeCkSqlApisResponse) => void): Promise<DescribeCkSqlApisResponse>;
17
+ /**
18
+ * 新增和修改用户接口
19
+ */
20
+ ActionAlterCkUser(req: ActionAlterCkUserRequest, cb?: (error: string, rep: ActionAlterCkUserResponse) => void): Promise<ActionAlterCkUserResponse>;
21
+ /**
22
+ * 开启或者关闭策略
23
+ */
24
+ OpenBackUp(req: OpenBackUpRequest, cb?: (error: string, rep: OpenBackUpResponse) => void): Promise<OpenBackUpResponse>;
25
+ /**
26
+ * 在集群配置页面修改集群配置文件接口,xml模式
27
+ */
28
+ ModifyClusterConfigs(req: ModifyClusterConfigsRequest, cb?: (error: string, rep: ModifyClusterConfigsResponse) => void): Promise<ModifyClusterConfigsResponse>;
29
+ /**
30
+ * 针对ck账号的权限做管控(新版)
31
+ */
32
+ ModifyUserNewPrivilege(req?: ModifyUserNewPrivilegeRequest, cb?: (error: string, rep: ModifyUserNewPrivilegeResponse) => void): Promise<ModifyUserNewPrivilegeResponse>;
33
+ /**
34
+ * 获取实例shard信息列表
35
+ */
36
+ DescribeInstanceShards(req: DescribeInstanceShardsRequest, cb?: (error: string, rep: DescribeInstanceShardsResponse) => void): Promise<DescribeInstanceShardsResponse>;
37
+ }
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Client = void 0;
4
+ /* eslint-disable @typescript-eslint/no-unused-vars */
5
+ /*
6
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing,
15
+ * software distributed under the License is distributed on an
16
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
+ * KIND, either express or implied. See the License for the
18
+ * specific language governing permissions and limitations
19
+ * under the License.
20
+ */
21
+ const TencentCloudCommon = require("tencentcloud-sdk-nodejs-common");
22
+ /**
23
+ * cdwch client
24
+ * @class
25
+ */
26
+ class Client extends TencentCloudCommon.AbstractClient {
27
+ constructor(clientConfig) {
28
+ super("cdwch.tencentcloudapi.com", "2020-09-15", clientConfig);
29
+ }
30
+ /**
31
+ * 创建或者修改备份策略
32
+ */
33
+ async CreateBackUpSchedule(req, cb) {
34
+ return this.request("CreateBackUpSchedule", req, cb);
35
+ }
36
+ /**
37
+ * 针对驱动sql命令查询ck集群接口
38
+ */
39
+ async DescribeCkSqlApis(req, cb) {
40
+ return this.request("DescribeCkSqlApis", req, cb);
41
+ }
42
+ /**
43
+ * 新增和修改用户接口
44
+ */
45
+ async ActionAlterCkUser(req, cb) {
46
+ return this.request("ActionAlterCkUser", req, cb);
47
+ }
48
+ /**
49
+ * 开启或者关闭策略
50
+ */
51
+ async OpenBackUp(req, cb) {
52
+ return this.request("OpenBackUp", req, cb);
53
+ }
54
+ /**
55
+ * 在集群配置页面修改集群配置文件接口,xml模式
56
+ */
57
+ async ModifyClusterConfigs(req, cb) {
58
+ return this.request("ModifyClusterConfigs", req, cb);
59
+ }
60
+ /**
61
+ * 针对ck账号的权限做管控(新版)
62
+ */
63
+ async ModifyUserNewPrivilege(req, cb) {
64
+ return this.request("ModifyUserNewPrivilege", req, cb);
65
+ }
66
+ /**
67
+ * 获取实例shard信息列表
68
+ */
69
+ async DescribeInstanceShards(req, cb) {
70
+ return this.request("DescribeInstanceShards", req, cb);
71
+ }
72
+ }
73
+ exports.Client = Client;
@@ -0,0 +1,255 @@
1
+ /**
2
+ * DescribeInstanceShards请求参数结构体
3
+ */
4
+ export interface DescribeInstanceShardsRequest {
5
+ /**
6
+ * 集群实例ID
7
+ */
8
+ InstanceId: string;
9
+ }
10
+ /**
11
+ * ModifyUserNewPrivilege请求参数结构体
12
+ */
13
+ export declare type ModifyUserNewPrivilegeRequest = null;
14
+ /**
15
+ * CreateBackUpSchedule请求参数结构体
16
+ */
17
+ export interface CreateBackUpScheduleRequest {
18
+ /**
19
+ * 编辑时需要传
20
+ */
21
+ ScheduleId?: number;
22
+ /**
23
+ * 选择的星期 逗号分隔
24
+ */
25
+ WeekDays?: string;
26
+ /**
27
+ * 执行小时
28
+ */
29
+ ExecuteHour?: number;
30
+ /**
31
+ * 备份表列表
32
+ */
33
+ BackUpTables?: Array<BackupTableContent>;
34
+ }
35
+ /**
36
+ * DescribeInstanceShards返回参数结构体
37
+ */
38
+ export interface DescribeInstanceShardsResponse {
39
+ /**
40
+ * 实例shard信息
41
+ 注意:此字段可能返回 null,表示取不到有效值。
42
+ */
43
+ InstanceShardsList: string;
44
+ /**
45
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
46
+ */
47
+ RequestId?: string;
48
+ }
49
+ /**
50
+ * OpenBackUp请求参数结构体
51
+ */
52
+ export interface OpenBackUpRequest {
53
+ /**
54
+ * 集群id
55
+ */
56
+ InstanceId: string;
57
+ /**
58
+ * OPEN 或者CLOSE
59
+ */
60
+ OperationType: string;
61
+ /**
62
+ * 桶名字
63
+ */
64
+ CosBucketName: string;
65
+ }
66
+ /**
67
+ * ModifyClusterConfigs返回参数结构体
68
+ */
69
+ export interface ModifyClusterConfigsResponse {
70
+ /**
71
+ * 流程相关信息
72
+ */
73
+ FlowId: number;
74
+ /**
75
+ * 错误信息
76
+ */
77
+ ErrorMsg: string;
78
+ /**
79
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
80
+ */
81
+ RequestId?: string;
82
+ }
83
+ /**
84
+ * 备份表信息
85
+ */
86
+ export interface BackupTableContent {
87
+ /**
88
+ * 数据库
89
+ */
90
+ Database: string;
91
+ /**
92
+ * 表
93
+ */
94
+ Table: string;
95
+ /**
96
+ * 表总字节数
97
+ */
98
+ TotalBytes: number;
99
+ /**
100
+ * 虚拟cluster
101
+ */
102
+ VCluster?: string;
103
+ /**
104
+ * 表ip
105
+ */
106
+ Ips?: string;
107
+ }
108
+ /**
109
+ * OpenBackUp返回参数结构体
110
+ */
111
+ export interface OpenBackUpResponse {
112
+ /**
113
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
114
+ */
115
+ RequestId?: string;
116
+ }
117
+ /**
118
+ * 配置文件修改信息
119
+ */
120
+ export interface ConfigSubmitContext {
121
+ /**
122
+ * 配置文件名称
123
+ */
124
+ FileName: string;
125
+ /**
126
+ * 配置文件旧内容,base64编码
127
+ */
128
+ OldConfValue: string;
129
+ /**
130
+ * 配置文件新内容,base64编码
131
+ */
132
+ NewConfValue: string;
133
+ /**
134
+ * 保存配置文件的路径
135
+ */
136
+ FilePath?: string;
137
+ }
138
+ /**
139
+ * ActionAlterCkUser返回参数结构体
140
+ */
141
+ export interface ActionAlterCkUserResponse {
142
+ /**
143
+ * 错误信息
144
+ 注意:此字段可能返回 null,表示取不到有效值。
145
+ */
146
+ ErrMsg: string;
147
+ /**
148
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
149
+ */
150
+ RequestId?: string;
151
+ }
152
+ /**
153
+ * DescribeCkSqlApis请求参数结构体
154
+ */
155
+ export interface DescribeCkSqlApisRequest {
156
+ /**
157
+ * 实例id
158
+ */
159
+ InstanceId: string;
160
+ /**
161
+ * api接口名称
162
+ */
163
+ ApiType: string;
164
+ /**
165
+ * 集群名称
166
+ */
167
+ Cluster?: string;
168
+ /**
169
+ * 用户名称
170
+ */
171
+ UserName?: string;
172
+ }
173
+ /**
174
+ * ActionAlterCkUser请求参数结构体
175
+ */
176
+ export interface ActionAlterCkUserRequest {
177
+ /**
178
+ * 用户信息
179
+ */
180
+ UserInfo: CkUserAlterInfo;
181
+ /**
182
+ * api接口类型
183
+ */
184
+ ApiType: string;
185
+ }
186
+ /**
187
+ * 新增或是修改ck用户
188
+ */
189
+ export interface CkUserAlterInfo {
190
+ /**
191
+ * 集群实例id
192
+ */
193
+ InstanceId: string;
194
+ /**
195
+ * 用户名
196
+ */
197
+ UserName: string;
198
+ /**
199
+ * 密码
200
+ */
201
+ PassWord: string;
202
+ /**
203
+ * 描述
204
+ */
205
+ Describe?: string;
206
+ }
207
+ /**
208
+ * CreateBackUpSchedule返回参数结构体
209
+ */
210
+ export interface CreateBackUpScheduleResponse {
211
+ /**
212
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
213
+ */
214
+ RequestId?: string;
215
+ }
216
+ /**
217
+ * ModifyClusterConfigs请求参数结构体
218
+ */
219
+ export interface ModifyClusterConfigsRequest {
220
+ /**
221
+ * 集群ID,例如cdwch-xxxx
222
+ */
223
+ InstanceId: string;
224
+ /**
225
+ * 配置文件修改信息
226
+ */
227
+ ModifyConfContext: Array<ConfigSubmitContext>;
228
+ /**
229
+ * 修改原因
230
+ */
231
+ Remark?: string;
232
+ }
233
+ /**
234
+ * DescribeCkSqlApis返回参数结构体
235
+ */
236
+ export interface DescribeCkSqlApisResponse {
237
+ /**
238
+ * 返回的查询数据,大部分情况是list,也可能是bool
239
+ 注意:此字段可能返回 null,表示取不到有效值。
240
+ */
241
+ ReturnData: string;
242
+ /**
243
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
244
+ */
245
+ RequestId?: string;
246
+ }
247
+ /**
248
+ * ModifyUserNewPrivilege返回参数结构体
249
+ */
250
+ export interface ModifyUserNewPrivilegeResponse {
251
+ /**
252
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
253
+ */
254
+ RequestId?: string;
255
+ }