tencentcloud-sdk-nodejs-dlc 4.0.431 → 4.0.432

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.
@@ -17,170 +17,169 @@
17
17
  */
18
18
  import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common"
19
19
  import {
20
- DescribeTaskResultResponse,
21
- AlterDMSTableResponse,
22
- DescribeDatabasesRequest,
23
- WorkGroupMessage,
24
- DeleteUserRequest,
25
- ListTaskJobLogDetailResponse,
26
- DescribeSparkAppJobRequest,
27
- CreateDMSDatabaseResponse,
28
- CreateStoreLocationResponse,
29
- ReportHeartbeatMetaDataRequest,
30
- DescribeDMSDatabaseResponse,
31
- DropDMSDatabaseRequest,
32
- CreateScriptResponse,
33
- CreateTasksInOrderResponse,
34
- DescribeTablesResponse,
35
- SparkJobInfo,
36
- DeleteSparkAppRequest,
37
- ModifyUserResponse,
38
- DeleteScriptResponse,
39
- TableInfo,
40
- Task,
41
- DetachUserPolicyRequest,
42
- DescribeSparkAppTasksResponse,
43
- DescribeTasksResponse,
44
- DescribeDMSTableResponse,
45
- DropDMSPartitionsRequest,
46
- CreateTasksInOrderRequest,
47
- AddDMSPartitionsResponse,
48
- DetachWorkGroupPolicyResponse,
49
- CSVSerde,
50
- ModifySparkAppRequest,
51
- StreamingStatistics,
52
- CreateDatabaseRequest,
53
- DescribeDMSTablesResponse,
54
- UserIdSetOfWorkGroupId,
55
- AlterDMSPartitionRequest,
56
- ViewBaseInfo,
57
- CheckLockMetaDataRequest,
58
- Asset,
59
- CreateDatabaseResponse,
60
- DescribeTasksRequest,
61
- CreateSparkAppTaskRequest,
62
- DeleteWorkGroupRequest,
63
- KVPair,
64
- TableBaseInfo,
65
- UnlockMetaDataRequest,
66
- AttachUserPolicyRequest,
67
- ListTaskJobLogDetailRequest,
68
- TasksInfo,
69
- AttachWorkGroupPolicyRequest,
70
- CreateUserResponse,
71
- DeleteUserResponse,
72
- CreateStoreLocationRequest,
73
- LockComponentInfo,
74
- DescribeDMSPartitionsRequest,
75
- DescribeSparkAppJobsRequest,
76
- CreateDMSTableResponse,
77
- Partition,
78
- CreateTaskRequest,
79
- ModifySparkAppResponse,
80
- CSV,
81
- CreateTableRequest,
82
- DescribeWorkGroupsResponse,
83
- CreateImportTaskRequest,
84
- DescribeScriptsRequest,
85
- DescribeSparkAppJobResponse,
86
- DeleteUsersFromWorkGroupResponse,
87
- AddUsersToWorkGroupRequest,
88
- DescribeStoreLocationRequest,
89
- AddUsersToWorkGroupResponse,
90
- UserInfo,
91
- CreateExportTaskRequest,
92
- ReportHeartbeatMetaDataResponse,
93
- CreateDMSTableRequest,
94
- DropDMSTableRequest,
95
- DMSTable,
96
- AttachWorkGroupPolicyResponse,
97
- ModifyWorkGroupResponse,
98
- DescribeDMSTablesRequest,
99
- ModifyUserRequest,
100
- DMSSds,
101
- CreateSparkAppTaskResponse,
102
- CancelTaskRequest,
103
- TaskResponseInfo,
104
- TextFile,
105
- BindWorkGroupsToUserResponse,
106
- DescribeStoreLocationResponse,
107
- DeleteScriptRequest,
108
- AddDMSPartitionsRequest,
109
- Script,
110
- AlterDMSTableRequest,
111
- CreateImportTaskResponse,
112
- Execution,
113
- CreateTableResponse,
114
- WorkGroupInfo,
115
- CreateScriptRequest,
116
- BindWorkGroupsToUserRequest,
117
- Column,
118
- DescribeTaskResultRequest,
119
- Filter,
120
- DescribeUsersResponse,
121
- DescribeScriptsResponse,
122
- ViewResponseInfo,
123
- CreateUserRequest,
124
- ModifyWorkGroupRequest,
125
- CancelTaskResponse,
126
- UnlockMetaDataResponse,
127
- DeleteWorkGroupResponse,
128
- DropDMSTableResponse,
129
- WorkGroupIdSetOfUserId,
130
- CreateWorkGroupResponse,
131
- TaskResultInfo,
132
- DescribeTablesRequest,
133
- DescribeDatabasesResponse,
134
- DMSTableInfo,
135
- DMSPartition,
136
- DatabaseInfo,
137
- DescribeDMSPartitionsResponse,
138
- CreateExportTaskResponse,
139
- UnbindWorkGroupsFromUserRequest,
140
- DescribeDMSDatabaseRequest,
141
- DescribeTableRequest,
142
- Policy,
143
- JobLogResult,
144
- Other,
145
- DropDMSDatabaseResponse,
146
- DescribeUsersRequest,
147
- DeleteUsersFromWorkGroupRequest,
148
- DMSColumnOrder,
149
- CreateSparkAppResponse,
150
- CreateTaskResponse,
151
- DeleteSparkAppResponse,
152
- AlterDMSPartitionResponse,
153
- CreateTasksRequest,
154
- DescribeTableResponse,
155
- DescribeSparkAppJobsResponse,
156
- TableResponseInfo,
157
- DescribeViewsRequest,
158
- LockMetaDataRequest,
159
- DetachUserPolicyResponse,
160
- DescribeWorkGroupsRequest,
161
- TasksOverview,
162
- CreateTasksResponse,
163
- CreateSparkAppRequest,
164
- UnbindWorkGroupsFromUserResponse,
165
- DropDMSPartitionsResponse,
166
- AlterDMSDatabaseResponse,
167
- CreateWorkGroupRequest,
168
- DescribeSparkAppTasksRequest,
169
- LockMetaDataResponse,
170
- CheckLockMetaDataResponse,
171
- AlterDMSDatabaseRequest,
172
- SQLTask,
173
- UserMessage,
174
- Property,
175
- AttachUserPolicyResponse,
176
- CreateDMSDatabaseRequest,
177
- DetachWorkGroupPolicyRequest,
178
- DescribeDMSTableRequest,
179
- DescribeViewsResponse,
180
- DataFormat,
181
- DatabaseResponseInfo,
182
- DMSColumn,
183
-
20
+ DescribeTaskResultResponse,
21
+ AlterDMSTableResponse,
22
+ DescribeDatabasesRequest,
23
+ WorkGroupMessage,
24
+ DeleteUserRequest,
25
+ ListTaskJobLogDetailResponse,
26
+ DescribeSparkAppJobRequest,
27
+ CreateDMSDatabaseResponse,
28
+ CreateStoreLocationResponse,
29
+ ReportHeartbeatMetaDataRequest,
30
+ DescribeDMSDatabaseResponse,
31
+ DropDMSDatabaseRequest,
32
+ CreateScriptResponse,
33
+ CreateTasksInOrderResponse,
34
+ DescribeTablesResponse,
35
+ SparkJobInfo,
36
+ DeleteSparkAppRequest,
37
+ ModifyUserResponse,
38
+ DeleteScriptResponse,
39
+ TableInfo,
40
+ Task,
41
+ DetachUserPolicyRequest,
42
+ DescribeSparkAppTasksResponse,
43
+ DescribeTasksResponse,
44
+ DescribeDMSTableResponse,
45
+ DropDMSPartitionsRequest,
46
+ CreateTasksInOrderRequest,
47
+ AddDMSPartitionsResponse,
48
+ DetachWorkGroupPolicyResponse,
49
+ CSVSerde,
50
+ ModifySparkAppRequest,
51
+ StreamingStatistics,
52
+ CreateDatabaseRequest,
53
+ DescribeDMSTablesResponse,
54
+ UserIdSetOfWorkGroupId,
55
+ AlterDMSPartitionRequest,
56
+ ViewBaseInfo,
57
+ CheckLockMetaDataRequest,
58
+ Asset,
59
+ CreateDatabaseResponse,
60
+ DescribeTasksRequest,
61
+ CreateSparkAppTaskRequest,
62
+ DeleteWorkGroupRequest,
63
+ KVPair,
64
+ TableBaseInfo,
65
+ UnlockMetaDataRequest,
66
+ AttachUserPolicyRequest,
67
+ ListTaskJobLogDetailRequest,
68
+ TasksInfo,
69
+ AttachWorkGroupPolicyRequest,
70
+ CreateUserResponse,
71
+ DeleteUserResponse,
72
+ CreateStoreLocationRequest,
73
+ LockComponentInfo,
74
+ DescribeDMSPartitionsRequest,
75
+ DescribeSparkAppJobsRequest,
76
+ CreateDMSTableResponse,
77
+ Partition,
78
+ CreateTaskRequest,
79
+ ModifySparkAppResponse,
80
+ CSV,
81
+ CreateTableRequest,
82
+ DescribeWorkGroupsResponse,
83
+ CreateImportTaskRequest,
84
+ DescribeScriptsRequest,
85
+ DescribeSparkAppJobResponse,
86
+ DeleteUsersFromWorkGroupResponse,
87
+ AddUsersToWorkGroupRequest,
88
+ DescribeStoreLocationRequest,
89
+ AddUsersToWorkGroupResponse,
90
+ UserInfo,
91
+ CreateExportTaskRequest,
92
+ ReportHeartbeatMetaDataResponse,
93
+ CreateDMSTableRequest,
94
+ DropDMSTableRequest,
95
+ DMSTable,
96
+ AttachWorkGroupPolicyResponse,
97
+ ModifyWorkGroupResponse,
98
+ DescribeDMSTablesRequest,
99
+ ModifyUserRequest,
100
+ DMSSds,
101
+ CreateSparkAppTaskResponse,
102
+ CancelTaskRequest,
103
+ TaskResponseInfo,
104
+ TextFile,
105
+ BindWorkGroupsToUserResponse,
106
+ DescribeStoreLocationResponse,
107
+ DeleteScriptRequest,
108
+ AddDMSPartitionsRequest,
109
+ Script,
110
+ AlterDMSTableRequest,
111
+ CreateImportTaskResponse,
112
+ Execution,
113
+ CreateTableResponse,
114
+ WorkGroupInfo,
115
+ CreateScriptRequest,
116
+ BindWorkGroupsToUserRequest,
117
+ Column,
118
+ DescribeTaskResultRequest,
119
+ Filter,
120
+ DescribeUsersResponse,
121
+ DescribeScriptsResponse,
122
+ ViewResponseInfo,
123
+ CreateUserRequest,
124
+ ModifyWorkGroupRequest,
125
+ CancelTaskResponse,
126
+ UnlockMetaDataResponse,
127
+ DeleteWorkGroupResponse,
128
+ DropDMSTableResponse,
129
+ WorkGroupIdSetOfUserId,
130
+ CreateWorkGroupResponse,
131
+ TaskResultInfo,
132
+ DescribeTablesRequest,
133
+ DescribeDatabasesResponse,
134
+ DMSTableInfo,
135
+ DMSPartition,
136
+ DatabaseInfo,
137
+ DescribeDMSPartitionsResponse,
138
+ CreateExportTaskResponse,
139
+ UnbindWorkGroupsFromUserRequest,
140
+ DescribeDMSDatabaseRequest,
141
+ DescribeTableRequest,
142
+ Policy,
143
+ JobLogResult,
144
+ Other,
145
+ DropDMSDatabaseResponse,
146
+ DescribeUsersRequest,
147
+ DeleteUsersFromWorkGroupRequest,
148
+ DMSColumnOrder,
149
+ CreateSparkAppResponse,
150
+ CreateTaskResponse,
151
+ DeleteSparkAppResponse,
152
+ AlterDMSPartitionResponse,
153
+ CreateTasksRequest,
154
+ DescribeTableResponse,
155
+ DescribeSparkAppJobsResponse,
156
+ TableResponseInfo,
157
+ DescribeViewsRequest,
158
+ LockMetaDataRequest,
159
+ DetachUserPolicyResponse,
160
+ DescribeWorkGroupsRequest,
161
+ TasksOverview,
162
+ CreateTasksResponse,
163
+ CreateSparkAppRequest,
164
+ UnbindWorkGroupsFromUserResponse,
165
+ DropDMSPartitionsResponse,
166
+ AlterDMSDatabaseResponse,
167
+ CreateWorkGroupRequest,
168
+ DescribeSparkAppTasksRequest,
169
+ LockMetaDataResponse,
170
+ CheckLockMetaDataResponse,
171
+ AlterDMSDatabaseRequest,
172
+ SQLTask,
173
+ UserMessage,
174
+ Property,
175
+ AttachUserPolicyResponse,
176
+ CreateDMSDatabaseRequest,
177
+ DetachWorkGroupPolicyRequest,
178
+ DescribeDMSTableRequest,
179
+ DescribeViewsResponse,
180
+ DataFormat,
181
+ DatabaseResponseInfo,
182
+ DMSColumn,
184
183
  } from "./dlc_models"
185
184
 
186
185
  /**
@@ -188,430 +187,607 @@ import {
188
187
  * @class
189
188
  */
190
189
  export class Client extends TencentCloudCommon.AbstractClient {
191
-
192
- constructor(clientConfig: TencentCloudCommon.ClientConfig) {
193
- super("dlc.tencentcloudapi.com", "2021-01-25", clientConfig);
194
- }
195
-
196
- /**
197
- * 解绑工作组鉴权策略
198
- */
199
- async DetachWorkGroupPolicy(req: DetachWorkGroupPolicyRequest, cb?: (error: string, rep: DetachWorkGroupPolicyResponse) => void): Promise<DetachWorkGroupPolicyResponse> {
200
- return this.request("DetachWorkGroupPolicy", req, cb);
201
- }
202
-
203
- /**
204
- * 本接口(CreateTask)用于创建sql查询任务。(推荐使用CreateTasks接口)
205
- */
206
- async CreateTask(req: CreateTaskRequest, cb?: (error: string, rep: CreateTaskResponse) => void): Promise<CreateTaskResponse> {
207
- return this.request("CreateTask", req, cb);
208
- }
209
-
210
- /**
211
- * 按顺序创建任务(已经废弃,后期不再维护,请使用接口CreateTasks)
212
- */
213
- async CreateTasksInOrder(req: CreateTasksInOrderRequest, cb?: (error: string, rep: CreateTasksInOrderResponse) => void): Promise<CreateTasksInOrderResponse> {
214
- return this.request("CreateTasksInOrder", req, cb);
215
- }
216
-
217
- /**
218
- * 元数据锁检查
219
- */
220
- async CheckLockMetaData(req: CheckLockMetaDataRequest, cb?: (error: string, rep: CheckLockMetaDataResponse) => void): Promise<CheckLockMetaDataResponse> {
221
- return this.request("CheckLockMetaData", req, cb);
222
- }
223
-
224
- /**
225
- * 该接口(CreateImportTask)用于创建导入任务
226
- */
227
- async CreateImportTask(req: CreateImportTaskRequest, cb?: (error: string, rep: CreateImportTaskResponse) => void): Promise<CreateImportTaskResponse> {
228
- return this.request("CreateImportTask", req, cb);
229
- }
230
-
231
- /**
232
- * DMS元数据更新表
233
- */
234
- async AlterDMSTable(req: AlterDMSTableRequest, cb?: (error: string, rep: AlterDMSTableResponse) => void): Promise<AlterDMSTableResponse> {
235
- return this.request("AlterDMSTable", req, cb);
236
- }
237
-
238
- /**
239
- * DMS元数据删除库
240
- */
241
- async DropDMSDatabase(req: DropDMSDatabaseRequest, cb?: (error: string, rep: DropDMSDatabaseResponse) => void): Promise<DropDMSDatabaseResponse> {
242
- return this.request("DropDMSDatabase", req, cb);
243
- }
244
-
245
- /**
246
- * DMS元数据新增分区
247
- */
248
- async AddDMSPartitions(req: AddDMSPartitionsRequest, cb?: (error: string, rep: AddDMSPartitionsResponse) => void): Promise<AddDMSPartitionsResponse> {
249
- return this.request("AddDMSPartitions", req, cb);
250
- }
251
-
252
- /**
253
- * 该接口(DeleteScript)用于删除sql脚本。
254
- */
255
- async DeleteScript(req: DeleteScriptRequest, cb?: (error: string, rep: DeleteScriptResponse) => void): Promise<DeleteScriptResponse> {
256
- return this.request("DeleteScript", req, cb);
257
- }
258
-
259
- /**
260
- * 元数据锁
261
- */
262
- async LockMetaData(req: LockMetaDataRequest, cb?: (error: string, rep: LockMetaDataResponse) => void): Promise<LockMetaDataResponse> {
263
- return this.request("LockMetaData", req, cb);
264
- }
265
-
266
- /**
267
- * 本接口(CreateTable)用于生成建表SQL。
268
- */
269
- async CreateTable(req: CreateTableRequest, cb?: (error: string, rep: CreateTableResponse) => void): Promise<CreateTableResponse> {
270
- return this.request("CreateTable", req, cb);
271
- }
272
-
273
- /**
274
- * 查询任务结果
275
- */
276
- async DescribeTaskResult(req: DescribeTaskResultRequest, cb?: (error: string, rep: DescribeTaskResultResponse) => void): Promise<DescribeTaskResultResponse> {
277
- return this.request("DescribeTaskResult", req, cb);
278
- }
279
-
280
- /**
281
- * 该接口(CreateExportTask)用于创建导出任务
282
- */
283
- async CreateExportTask(req: CreateExportTaskRequest, cb?: (error: string, rep: CreateExportTaskResponse) => void): Promise<CreateExportTaskResponse> {
284
- return this.request("CreateExportTask", req, cb);
285
- }
286
-
287
- /**
288
- * 删除spark应用
289
- */
290
- async DeleteSparkApp(req: DeleteSparkAppRequest, cb?: (error: string, rep: DeleteSparkAppResponse) => void): Promise<DeleteSparkAppResponse> {
291
- return this.request("DeleteSparkApp", req, cb);
292
- }
293
-
294
- /**
295
- * 获取用户列表信息
296
- */
297
- async DescribeUsers(req: DescribeUsersRequest, cb?: (error: string, rep: DescribeUsersResponse) => void): Promise<DescribeUsersResponse> {
298
- return this.request("DescribeUsers", req, cb);
299
- }
300
-
301
- /**
302
- * 本接口(CreateTasks),用于批量创建任务
303
- */
304
- async CreateTasks(req: CreateTasksRequest, cb?: (error: string, rep: CreateTasksResponse) => void): Promise<CreateTasksResponse> {
305
- return this.request("CreateTasks", req, cb);
306
- }
307
-
308
- /**
309
- * 该接口(DescribeScripts)用于获取所有SQL查询。
310
- */
311
- async DescribeScripts(req: DescribeScriptsRequest, cb?: (error: string, rep: DescribeScriptsResponse) => void): Promise<DescribeScriptsResponse> {
312
- return this.request("DescribeScripts", req, cb);
313
- }
314
-
315
- /**
316
- * 删除工作组
317
- */
318
- async DeleteWorkGroup(req: DeleteWorkGroupRequest, cb?: (error: string, rep: DeleteWorkGroupResponse) => void): Promise<DeleteWorkGroupResponse> {
319
- return this.request("DeleteWorkGroup", req, cb);
320
- }
321
-
322
- /**
323
- * 元数据解锁
324
- */
325
- async UnlockMetaData(req: UnlockMetaDataRequest, cb?: (error: string, rep: UnlockMetaDataResponse) => void): Promise<UnlockMetaDataResponse> {
326
- return this.request("UnlockMetaData", req, cb);
327
- }
328
-
329
- /**
330
- * 该接口(CreateStoreLocation)新增或覆盖计算结果存储位置。
331
- */
332
- async CreateStoreLocation(req: CreateStoreLocationRequest, cb?: (error: string, rep: CreateStoreLocationResponse) => void): Promise<CreateStoreLocationResponse> {
333
- return this.request("CreateStoreLocation", req, cb);
334
- }
335
-
336
- /**
337
- * DMS元数据获取表
338
- */
339
- async DescribeDMSTable(req: DescribeDMSTableRequest, cb?: (error: string, rep: DescribeDMSTableResponse) => void): Promise<DescribeDMSTableResponse> {
340
- return this.request("DescribeDMSTable", req, cb);
341
- }
342
-
343
- /**
344
- * 从工作组中删除用户
345
- */
346
- async DeleteUsersFromWorkGroup(req: DeleteUsersFromWorkGroupRequest, cb?: (error: string, rep: DeleteUsersFromWorkGroupResponse) => void): Promise<DeleteUsersFromWorkGroupResponse> {
347
- return this.request("DeleteUsersFromWorkGroup", req, cb);
348
- }
349
-
350
- /**
351
- * 上报元数据心跳
352
- */
353
- async ReportHeartbeatMetaData(req: ReportHeartbeatMetaDataRequest, cb?: (error: string, rep: ReportHeartbeatMetaDataResponse) => void): Promise<ReportHeartbeatMetaDataResponse> {
354
- return this.request("ReportHeartbeatMetaData", req, cb);
355
- }
356
-
357
- /**
358
- * 创建工作组
359
- */
360
- async CreateWorkGroup(req: CreateWorkGroupRequest, cb?: (error: string, rep: CreateWorkGroupResponse) => void): Promise<CreateWorkGroupResponse> {
361
- return this.request("CreateWorkGroup", req, cb);
362
- }
363
-
364
- /**
365
- * 本接口(ListTaskJobLogDetail)用于获取spark-jar日志列表
366
- */
367
- async ListTaskJobLogDetail(req: ListTaskJobLogDetailRequest, cb?: (error: string, rep: ListTaskJobLogDetailResponse) => void): Promise<ListTaskJobLogDetailResponse> {
368
- return this.request("ListTaskJobLogDetail", req, cb);
369
- }
370
-
371
- /**
372
- * DMS元数据更新库
373
- */
374
- async AlterDMSDatabase(req: AlterDMSDatabaseRequest, cb?: (error: string, rep: AlterDMSDatabaseResponse) => void): Promise<AlterDMSDatabaseResponse> {
375
- return this.request("AlterDMSDatabase", req, cb);
376
- }
377
-
378
- /**
379
- * 解绑用户上的用户组
380
- */
381
- async UnbindWorkGroupsFromUser(req: UnbindWorkGroupsFromUserRequest, cb?: (error: string, rep: UnbindWorkGroupsFromUserResponse) => void): Promise<UnbindWorkGroupsFromUserResponse> {
382
- return this.request("UnbindWorkGroupsFromUser", req, cb);
383
- }
384
-
385
- /**
386
- * 绑定鉴权策略到工作组
387
- */
388
- async AttachWorkGroupPolicy(req: AttachWorkGroupPolicyRequest, cb?: (error: string, rep: AttachWorkGroupPolicyResponse) => void): Promise<AttachWorkGroupPolicyResponse> {
389
- return this.request("AttachWorkGroupPolicy", req, cb);
390
- }
391
-
392
- /**
393
- * DMS元数据获取分区
394
- */
395
- async DescribeDMSPartitions(req: DescribeDMSPartitionsRequest, cb?: (error: string, rep: DescribeDMSPartitionsResponse) => void): Promise<DescribeDMSPartitionsResponse> {
396
- return this.request("DescribeDMSPartitions", req, cb);
397
- }
398
-
399
- /**
400
- * 创建spark应用
401
- */
402
- async CreateSparkApp(req: CreateSparkAppRequest, cb?: (error: string, rep: CreateSparkAppResponse) => void): Promise<CreateSparkAppResponse> {
403
- return this.request("CreateSparkApp", req, cb);
404
- }
405
-
406
- /**
407
- * 本接口(CancelTask),用于取消任务执行
408
- */
409
- async CancelTask(req: CancelTaskRequest, cb?: (error: string, rep: CancelTaskResponse) => void): Promise<CancelTaskResponse> {
410
- return this.request("CancelTask", req, cb);
411
- }
412
-
413
- /**
414
- * DMS元数据删除表
415
- */
416
- async DropDMSTable(req: DropDMSTableRequest, cb?: (error: string, rep: DropDMSTableResponse) => void): Promise<DropDMSTableResponse> {
417
- return this.request("DropDMSTable", req, cb);
418
- }
419
-
420
- /**
421
- * 该接口(CreateScript)用于创建sql脚本。
422
- */
423
- async CreateScript(req: CreateScriptRequest, cb?: (error: string, rep: CreateScriptResponse) => void): Promise<CreateScriptResponse> {
424
- return this.request("CreateScript", req, cb);
425
- }
426
-
427
- /**
428
- * DMS元数据获取表列表
429
- */
430
- async DescribeDMSTables(req: DescribeDMSTablesRequest, cb?: (error: string, rep: DescribeDMSTablesResponse) => void): Promise<DescribeDMSTablesResponse> {
431
- return this.request("DescribeDMSTables", req, cb);
432
- }
433
-
434
- /**
435
- * 本接口(CreateDatabase)用于生成建库SQL语句。
436
- */
437
- async CreateDatabase(req: CreateDatabaseRequest, cb?: (error: string, rep: CreateDatabaseResponse) => void): Promise<CreateDatabaseResponse> {
438
- return this.request("CreateDatabase", req, cb);
439
- }
440
-
441
- /**
442
- * 获取工作组列表
443
- */
444
- async DescribeWorkGroups(req: DescribeWorkGroupsRequest, cb?: (error: string, rep: DescribeWorkGroupsResponse) => void): Promise<DescribeWorkGroupsResponse> {
445
- return this.request("DescribeWorkGroups", req, cb);
446
- }
447
-
448
- /**
449
- * 修改工作组信息
450
- */
451
- async ModifyWorkGroup(req: ModifyWorkGroupRequest, cb?: (error: string, rep: ModifyWorkGroupResponse) => void): Promise<ModifyWorkGroupResponse> {
452
- return this.request("ModifyWorkGroup", req, cb);
453
- }
454
-
455
- /**
456
- * 更新spark应用
457
- */
458
- async ModifySparkApp(req: ModifySparkAppRequest, cb?: (error: string, rep: ModifySparkAppResponse) => void): Promise<ModifySparkAppResponse> {
459
- return this.request("ModifySparkApp", req, cb);
460
- }
461
-
462
- /**
463
- * 本接口(DescribeViews)用于查询数据视图列表。
464
- */
465
- async DescribeViews(req: DescribeViewsRequest, cb?: (error: string, rep: DescribeViewsResponse) => void): Promise<DescribeViewsResponse> {
466
- return this.request("DescribeViews", req, cb);
467
- }
468
-
469
- /**
470
- * 本接口(DescribeTable),用于查询单个表的详细信息。
471
- */
472
- async DescribeTable(req: DescribeTableRequest, cb?: (error: string, rep: DescribeTableResponse) => void): Promise<DescribeTableResponse> {
473
- return this.request("DescribeTable", req, cb);
474
- }
475
-
476
- /**
477
- * DMS元数据获取库
478
- */
479
- async DescribeDMSDatabase(req: DescribeDMSDatabaseRequest, cb?: (error: string, rep: DescribeDMSDatabaseResponse) => void): Promise<DescribeDMSDatabaseResponse> {
480
- return this.request("DescribeDMSDatabase", req, cb);
481
- }
482
-
483
- /**
484
- * 该接口(DescribleTasks)用于查询任务列表
485
- */
486
- async DescribeTasks(req: DescribeTasksRequest, cb?: (error: string, rep: DescribeTasksResponse) => void): Promise<DescribeTasksResponse> {
487
- return this.request("DescribeTasks", req, cb);
488
- }
489
-
490
- /**
491
- * 绑定工作组到用户
492
- */
493
- async BindWorkGroupsToUser(req: BindWorkGroupsToUserRequest, cb?: (error: string, rep: BindWorkGroupsToUserResponse) => void): Promise<BindWorkGroupsToUserResponse> {
494
- return this.request("BindWorkGroupsToUser", req, cb);
495
- }
496
-
497
- /**
498
- * 创建spark任务
499
- */
500
- async CreateSparkAppTask(req: CreateSparkAppTaskRequest, cb?: (error: string, rep: CreateSparkAppTaskResponse) => void): Promise<CreateSparkAppTaskResponse> {
501
- return this.request("CreateSparkAppTask", req, cb);
502
- }
503
-
504
- /**
505
- * DMS元数据删除分区
506
- */
507
- async DropDMSPartitions(req: DropDMSPartitionsRequest, cb?: (error: string, rep: DropDMSPartitionsResponse) => void): Promise<DropDMSPartitionsResponse> {
508
- return this.request("DropDMSPartitions", req, cb);
509
- }
510
-
511
- /**
512
- * 修改用户信息
513
- */
514
- async ModifyUser(req: ModifyUserRequest, cb?: (error: string, rep: ModifyUserResponse) => void): Promise<ModifyUserResponse> {
515
- return this.request("ModifyUser", req, cb);
516
- }
517
-
518
- /**
519
- * 删除用户
520
- */
521
- async DeleteUser(req: DeleteUserRequest, cb?: (error: string, rep: DeleteUserResponse) => void): Promise<DeleteUserResponse> {
522
- return this.request("DeleteUser", req, cb);
523
- }
524
-
525
- /**
526
- * 本接口(DescribeDatabases)用于查询数据库列表。
527
- */
528
- async DescribeDatabases(req: DescribeDatabasesRequest, cb?: (error: string, rep: DescribeDatabasesResponse) => void): Promise<DescribeDatabasesResponse> {
529
- return this.request("DescribeDatabases", req, cb);
530
- }
531
-
532
- /**
533
- * 添加用户到工作组
534
- */
535
- async AddUsersToWorkGroup(req: AddUsersToWorkGroupRequest, cb?: (error: string, rep: AddUsersToWorkGroupResponse) => void): Promise<AddUsersToWorkGroupResponse> {
536
- return this.request("AddUsersToWorkGroup", req, cb);
537
- }
538
-
539
- /**
540
- * 查询计算结果存储位置。
541
- */
542
- async DescribeStoreLocation(req?: DescribeStoreLocationRequest, cb?: (error: string, rep: DescribeStoreLocationResponse) => void): Promise<DescribeStoreLocationResponse> {
543
- return this.request("DescribeStoreLocation", req, cb);
544
- }
545
-
546
- /**
547
- * DMS元数据创建库
548
- */
549
- async CreateDMSDatabase(req: CreateDMSDatabaseRequest, cb?: (error: string, rep: CreateDMSDatabaseResponse) => void): Promise<CreateDMSDatabaseResponse> {
550
- return this.request("CreateDMSDatabase", req, cb);
551
- }
552
-
553
- /**
554
- * DMS元数据更新分区
555
- */
556
- async AlterDMSPartition(req: AlterDMSPartitionRequest, cb?: (error: string, rep: AlterDMSPartitionResponse) => void): Promise<AlterDMSPartitionResponse> {
557
- return this.request("AlterDMSPartition", req, cb);
558
- }
559
-
560
- /**
561
- * 绑定鉴权策略到用户
562
- */
563
- async AttachUserPolicy(req: AttachUserPolicyRequest, cb?: (error: string, rep: AttachUserPolicyResponse) => void): Promise<AttachUserPolicyResponse> {
564
- return this.request("AttachUserPolicy", req, cb);
565
- }
566
-
567
- /**
568
- * DMS元数据创建表
569
- */
570
- async CreateDMSTable(req: CreateDMSTableRequest, cb?: (error: string, rep: CreateDMSTableResponse) => void): Promise<CreateDMSTableResponse> {
571
- return this.request("CreateDMSTable", req, cb);
572
- }
573
-
574
- /**
575
- * 查询具体的spark应用
576
- */
577
- async DescribeSparkAppJob(req: DescribeSparkAppJobRequest, cb?: (error: string, rep: DescribeSparkAppJobResponse) => void): Promise<DescribeSparkAppJobResponse> {
578
- return this.request("DescribeSparkAppJob", req, cb);
579
- }
580
-
581
- /**
582
- * 查询spark应用的运行任务实例列表
583
- */
584
- async DescribeSparkAppTasks(req: DescribeSparkAppTasksRequest, cb?: (error: string, rep: DescribeSparkAppTasksResponse) => void): Promise<DescribeSparkAppTasksResponse> {
585
- return this.request("DescribeSparkAppTasks", req, cb);
586
- }
587
-
588
- /**
589
- * 获取spark应用列表
590
- */
591
- async DescribeSparkAppJobs(req: DescribeSparkAppJobsRequest, cb?: (error: string, rep: DescribeSparkAppJobsResponse) => void): Promise<DescribeSparkAppJobsResponse> {
592
- return this.request("DescribeSparkAppJobs", req, cb);
593
- }
594
-
595
- /**
596
- * 创建用户
597
- */
598
- async CreateUser(req: CreateUserRequest, cb?: (error: string, rep: CreateUserResponse) => void): Promise<CreateUserResponse> {
599
- return this.request("CreateUser", req, cb);
600
- }
601
-
602
- /**
603
- * 解绑用户鉴权策略
604
- */
605
- async DetachUserPolicy(req: DetachUserPolicyRequest, cb?: (error: string, rep: DetachUserPolicyResponse) => void): Promise<DetachUserPolicyResponse> {
606
- return this.request("DetachUserPolicy", req, cb);
607
- }
608
-
609
- /**
610
- * 本接口(DescribeTables)用于查询数据表列表。
611
- */
612
- async DescribeTables(req: DescribeTablesRequest, cb?: (error: string, rep: DescribeTablesResponse) => void): Promise<DescribeTablesResponse> {
613
- return this.request("DescribeTables", req, cb);
614
- }
615
-
616
-
190
+ constructor(clientConfig: TencentCloudCommon.ClientConfig) {
191
+ super("dlc.tencentcloudapi.com", "2021-01-25", clientConfig)
192
+ }
193
+
194
+ /**
195
+ * 解绑工作组鉴权策略
196
+ */
197
+ async DetachWorkGroupPolicy(
198
+ req: DetachWorkGroupPolicyRequest,
199
+ cb?: (error: string, rep: DetachWorkGroupPolicyResponse) => void
200
+ ): Promise<DetachWorkGroupPolicyResponse> {
201
+ return this.request("DetachWorkGroupPolicy", req, cb)
202
+ }
203
+
204
+ /**
205
+ * 本接口(CreateTask)用于创建sql查询任务。(推荐使用CreateTasks接口)
206
+ */
207
+ async CreateTask(
208
+ req: CreateTaskRequest,
209
+ cb?: (error: string, rep: CreateTaskResponse) => void
210
+ ): Promise<CreateTaskResponse> {
211
+ return this.request("CreateTask", req, cb)
212
+ }
213
+
214
+ /**
215
+ * 按顺序创建任务(已经废弃,后期不再维护,请使用接口CreateTasks)
216
+ */
217
+ async CreateTasksInOrder(
218
+ req: CreateTasksInOrderRequest,
219
+ cb?: (error: string, rep: CreateTasksInOrderResponse) => void
220
+ ): Promise<CreateTasksInOrderResponse> {
221
+ return this.request("CreateTasksInOrder", req, cb)
222
+ }
223
+
224
+ /**
225
+ * 元数据锁检查
226
+ */
227
+ async CheckLockMetaData(
228
+ req: CheckLockMetaDataRequest,
229
+ cb?: (error: string, rep: CheckLockMetaDataResponse) => void
230
+ ): Promise<CheckLockMetaDataResponse> {
231
+ return this.request("CheckLockMetaData", req, cb)
232
+ }
233
+
234
+ /**
235
+ * 该接口(CreateImportTask)用于创建导入任务
236
+ */
237
+ async CreateImportTask(
238
+ req: CreateImportTaskRequest,
239
+ cb?: (error: string, rep: CreateImportTaskResponse) => void
240
+ ): Promise<CreateImportTaskResponse> {
241
+ return this.request("CreateImportTask", req, cb)
242
+ }
243
+
244
+ /**
245
+ * DMS元数据更新表
246
+ */
247
+ async AlterDMSTable(
248
+ req: AlterDMSTableRequest,
249
+ cb?: (error: string, rep: AlterDMSTableResponse) => void
250
+ ): Promise<AlterDMSTableResponse> {
251
+ return this.request("AlterDMSTable", req, cb)
252
+ }
253
+
254
+ /**
255
+ * DMS元数据删除库
256
+ */
257
+ async DropDMSDatabase(
258
+ req: DropDMSDatabaseRequest,
259
+ cb?: (error: string, rep: DropDMSDatabaseResponse) => void
260
+ ): Promise<DropDMSDatabaseResponse> {
261
+ return this.request("DropDMSDatabase", req, cb)
262
+ }
263
+
264
+ /**
265
+ * DMS元数据新增分区
266
+ */
267
+ async AddDMSPartitions(
268
+ req: AddDMSPartitionsRequest,
269
+ cb?: (error: string, rep: AddDMSPartitionsResponse) => void
270
+ ): Promise<AddDMSPartitionsResponse> {
271
+ return this.request("AddDMSPartitions", req, cb)
272
+ }
273
+
274
+ /**
275
+ * 该接口(DeleteScript)用于删除sql脚本。
276
+ */
277
+ async DeleteScript(
278
+ req: DeleteScriptRequest,
279
+ cb?: (error: string, rep: DeleteScriptResponse) => void
280
+ ): Promise<DeleteScriptResponse> {
281
+ return this.request("DeleteScript", req, cb)
282
+ }
283
+
284
+ /**
285
+ * 元数据锁
286
+ */
287
+ async LockMetaData(
288
+ req: LockMetaDataRequest,
289
+ cb?: (error: string, rep: LockMetaDataResponse) => void
290
+ ): Promise<LockMetaDataResponse> {
291
+ return this.request("LockMetaData", req, cb)
292
+ }
293
+
294
+ /**
295
+ * 本接口(CreateTable)用于生成建表SQL。
296
+ */
297
+ async CreateTable(
298
+ req: CreateTableRequest,
299
+ cb?: (error: string, rep: CreateTableResponse) => void
300
+ ): Promise<CreateTableResponse> {
301
+ return this.request("CreateTable", req, cb)
302
+ }
303
+
304
+ /**
305
+ * 查询任务结果
306
+ */
307
+ async DescribeTaskResult(
308
+ req: DescribeTaskResultRequest,
309
+ cb?: (error: string, rep: DescribeTaskResultResponse) => void
310
+ ): Promise<DescribeTaskResultResponse> {
311
+ return this.request("DescribeTaskResult", req, cb)
312
+ }
313
+
314
+ /**
315
+ * 该接口(CreateExportTask)用于创建导出任务
316
+ */
317
+ async CreateExportTask(
318
+ req: CreateExportTaskRequest,
319
+ cb?: (error: string, rep: CreateExportTaskResponse) => void
320
+ ): Promise<CreateExportTaskResponse> {
321
+ return this.request("CreateExportTask", req, cb)
322
+ }
323
+
324
+ /**
325
+ * 删除spark应用
326
+ */
327
+ async DeleteSparkApp(
328
+ req: DeleteSparkAppRequest,
329
+ cb?: (error: string, rep: DeleteSparkAppResponse) => void
330
+ ): Promise<DeleteSparkAppResponse> {
331
+ return this.request("DeleteSparkApp", req, cb)
332
+ }
333
+
334
+ /**
335
+ * 获取用户列表信息
336
+ */
337
+ async DescribeUsers(
338
+ req: DescribeUsersRequest,
339
+ cb?: (error: string, rep: DescribeUsersResponse) => void
340
+ ): Promise<DescribeUsersResponse> {
341
+ return this.request("DescribeUsers", req, cb)
342
+ }
343
+
344
+ /**
345
+ * 本接口(CreateTasks),用于批量创建任务
346
+ */
347
+ async CreateTasks(
348
+ req: CreateTasksRequest,
349
+ cb?: (error: string, rep: CreateTasksResponse) => void
350
+ ): Promise<CreateTasksResponse> {
351
+ return this.request("CreateTasks", req, cb)
352
+ }
353
+
354
+ /**
355
+ * 该接口(DescribeScripts)用于获取所有SQL查询。
356
+ */
357
+ async DescribeScripts(
358
+ req: DescribeScriptsRequest,
359
+ cb?: (error: string, rep: DescribeScriptsResponse) => void
360
+ ): Promise<DescribeScriptsResponse> {
361
+ return this.request("DescribeScripts", req, cb)
362
+ }
363
+
364
+ /**
365
+ * 删除工作组
366
+ */
367
+ async DeleteWorkGroup(
368
+ req: DeleteWorkGroupRequest,
369
+ cb?: (error: string, rep: DeleteWorkGroupResponse) => void
370
+ ): Promise<DeleteWorkGroupResponse> {
371
+ return this.request("DeleteWorkGroup", req, cb)
372
+ }
373
+
374
+ /**
375
+ * 元数据解锁
376
+ */
377
+ async UnlockMetaData(
378
+ req: UnlockMetaDataRequest,
379
+ cb?: (error: string, rep: UnlockMetaDataResponse) => void
380
+ ): Promise<UnlockMetaDataResponse> {
381
+ return this.request("UnlockMetaData", req, cb)
382
+ }
383
+
384
+ /**
385
+ * 该接口(CreateStoreLocation)新增或覆盖计算结果存储位置。
386
+ */
387
+ async CreateStoreLocation(
388
+ req: CreateStoreLocationRequest,
389
+ cb?: (error: string, rep: CreateStoreLocationResponse) => void
390
+ ): Promise<CreateStoreLocationResponse> {
391
+ return this.request("CreateStoreLocation", req, cb)
392
+ }
393
+
394
+ /**
395
+ * DMS元数据获取表
396
+ */
397
+ async DescribeDMSTable(
398
+ req: DescribeDMSTableRequest,
399
+ cb?: (error: string, rep: DescribeDMSTableResponse) => void
400
+ ): Promise<DescribeDMSTableResponse> {
401
+ return this.request("DescribeDMSTable", req, cb)
402
+ }
403
+
404
+ /**
405
+ * 从工作组中删除用户
406
+ */
407
+ async DeleteUsersFromWorkGroup(
408
+ req: DeleteUsersFromWorkGroupRequest,
409
+ cb?: (error: string, rep: DeleteUsersFromWorkGroupResponse) => void
410
+ ): Promise<DeleteUsersFromWorkGroupResponse> {
411
+ return this.request("DeleteUsersFromWorkGroup", req, cb)
412
+ }
413
+
414
+ /**
415
+ * 上报元数据心跳
416
+ */
417
+ async ReportHeartbeatMetaData(
418
+ req: ReportHeartbeatMetaDataRequest,
419
+ cb?: (error: string, rep: ReportHeartbeatMetaDataResponse) => void
420
+ ): Promise<ReportHeartbeatMetaDataResponse> {
421
+ return this.request("ReportHeartbeatMetaData", req, cb)
422
+ }
423
+
424
+ /**
425
+ * 创建工作组
426
+ */
427
+ async CreateWorkGroup(
428
+ req: CreateWorkGroupRequest,
429
+ cb?: (error: string, rep: CreateWorkGroupResponse) => void
430
+ ): Promise<CreateWorkGroupResponse> {
431
+ return this.request("CreateWorkGroup", req, cb)
432
+ }
433
+
434
+ /**
435
+ * 本接口(ListTaskJobLogDetail)用于获取spark-jar日志列表
436
+ */
437
+ async ListTaskJobLogDetail(
438
+ req: ListTaskJobLogDetailRequest,
439
+ cb?: (error: string, rep: ListTaskJobLogDetailResponse) => void
440
+ ): Promise<ListTaskJobLogDetailResponse> {
441
+ return this.request("ListTaskJobLogDetail", req, cb)
442
+ }
443
+
444
+ /**
445
+ * DMS元数据更新库
446
+ */
447
+ async AlterDMSDatabase(
448
+ req: AlterDMSDatabaseRequest,
449
+ cb?: (error: string, rep: AlterDMSDatabaseResponse) => void
450
+ ): Promise<AlterDMSDatabaseResponse> {
451
+ return this.request("AlterDMSDatabase", req, cb)
452
+ }
453
+
454
+ /**
455
+ * 解绑用户上的用户组
456
+ */
457
+ async UnbindWorkGroupsFromUser(
458
+ req: UnbindWorkGroupsFromUserRequest,
459
+ cb?: (error: string, rep: UnbindWorkGroupsFromUserResponse) => void
460
+ ): Promise<UnbindWorkGroupsFromUserResponse> {
461
+ return this.request("UnbindWorkGroupsFromUser", req, cb)
462
+ }
463
+
464
+ /**
465
+ * 绑定鉴权策略到工作组
466
+ */
467
+ async AttachWorkGroupPolicy(
468
+ req: AttachWorkGroupPolicyRequest,
469
+ cb?: (error: string, rep: AttachWorkGroupPolicyResponse) => void
470
+ ): Promise<AttachWorkGroupPolicyResponse> {
471
+ return this.request("AttachWorkGroupPolicy", req, cb)
472
+ }
473
+
474
+ /**
475
+ * DMS元数据获取分区
476
+ */
477
+ async DescribeDMSPartitions(
478
+ req: DescribeDMSPartitionsRequest,
479
+ cb?: (error: string, rep: DescribeDMSPartitionsResponse) => void
480
+ ): Promise<DescribeDMSPartitionsResponse> {
481
+ return this.request("DescribeDMSPartitions", req, cb)
482
+ }
483
+
484
+ /**
485
+ * 创建spark应用
486
+ */
487
+ async CreateSparkApp(
488
+ req: CreateSparkAppRequest,
489
+ cb?: (error: string, rep: CreateSparkAppResponse) => void
490
+ ): Promise<CreateSparkAppResponse> {
491
+ return this.request("CreateSparkApp", req, cb)
492
+ }
493
+
494
+ /**
495
+ * 本接口(CancelTask),用于取消任务执行
496
+ */
497
+ async CancelTask(
498
+ req: CancelTaskRequest,
499
+ cb?: (error: string, rep: CancelTaskResponse) => void
500
+ ): Promise<CancelTaskResponse> {
501
+ return this.request("CancelTask", req, cb)
502
+ }
503
+
504
+ /**
505
+ * DMS元数据删除表
506
+ */
507
+ async DropDMSTable(
508
+ req: DropDMSTableRequest,
509
+ cb?: (error: string, rep: DropDMSTableResponse) => void
510
+ ): Promise<DropDMSTableResponse> {
511
+ return this.request("DropDMSTable", req, cb)
512
+ }
513
+
514
+ /**
515
+ * 该接口(CreateScript)用于创建sql脚本。
516
+ */
517
+ async CreateScript(
518
+ req: CreateScriptRequest,
519
+ cb?: (error: string, rep: CreateScriptResponse) => void
520
+ ): Promise<CreateScriptResponse> {
521
+ return this.request("CreateScript", req, cb)
522
+ }
523
+
524
+ /**
525
+ * DMS元数据获取表列表
526
+ */
527
+ async DescribeDMSTables(
528
+ req: DescribeDMSTablesRequest,
529
+ cb?: (error: string, rep: DescribeDMSTablesResponse) => void
530
+ ): Promise<DescribeDMSTablesResponse> {
531
+ return this.request("DescribeDMSTables", req, cb)
532
+ }
533
+
534
+ /**
535
+ * 本接口(CreateDatabase)用于生成建库SQL语句。
536
+ */
537
+ async CreateDatabase(
538
+ req: CreateDatabaseRequest,
539
+ cb?: (error: string, rep: CreateDatabaseResponse) => void
540
+ ): Promise<CreateDatabaseResponse> {
541
+ return this.request("CreateDatabase", req, cb)
542
+ }
543
+
544
+ /**
545
+ * 获取工作组列表
546
+ */
547
+ async DescribeWorkGroups(
548
+ req: DescribeWorkGroupsRequest,
549
+ cb?: (error: string, rep: DescribeWorkGroupsResponse) => void
550
+ ): Promise<DescribeWorkGroupsResponse> {
551
+ return this.request("DescribeWorkGroups", req, cb)
552
+ }
553
+
554
+ /**
555
+ * 修改工作组信息
556
+ */
557
+ async ModifyWorkGroup(
558
+ req: ModifyWorkGroupRequest,
559
+ cb?: (error: string, rep: ModifyWorkGroupResponse) => void
560
+ ): Promise<ModifyWorkGroupResponse> {
561
+ return this.request("ModifyWorkGroup", req, cb)
562
+ }
563
+
564
+ /**
565
+ * 更新spark应用
566
+ */
567
+ async ModifySparkApp(
568
+ req: ModifySparkAppRequest,
569
+ cb?: (error: string, rep: ModifySparkAppResponse) => void
570
+ ): Promise<ModifySparkAppResponse> {
571
+ return this.request("ModifySparkApp", req, cb)
572
+ }
573
+
574
+ /**
575
+ * 本接口(DescribeViews)用于查询数据视图列表。
576
+ */
577
+ async DescribeViews(
578
+ req: DescribeViewsRequest,
579
+ cb?: (error: string, rep: DescribeViewsResponse) => void
580
+ ): Promise<DescribeViewsResponse> {
581
+ return this.request("DescribeViews", req, cb)
582
+ }
583
+
584
+ /**
585
+ * 本接口(DescribeTable),用于查询单个表的详细信息。
586
+ */
587
+ async DescribeTable(
588
+ req: DescribeTableRequest,
589
+ cb?: (error: string, rep: DescribeTableResponse) => void
590
+ ): Promise<DescribeTableResponse> {
591
+ return this.request("DescribeTable", req, cb)
592
+ }
593
+
594
+ /**
595
+ * DMS元数据获取库
596
+ */
597
+ async DescribeDMSDatabase(
598
+ req: DescribeDMSDatabaseRequest,
599
+ cb?: (error: string, rep: DescribeDMSDatabaseResponse) => void
600
+ ): Promise<DescribeDMSDatabaseResponse> {
601
+ return this.request("DescribeDMSDatabase", req, cb)
602
+ }
603
+
604
+ /**
605
+ * 该接口(DescribleTasks)用于查询任务列表
606
+ */
607
+ async DescribeTasks(
608
+ req: DescribeTasksRequest,
609
+ cb?: (error: string, rep: DescribeTasksResponse) => void
610
+ ): Promise<DescribeTasksResponse> {
611
+ return this.request("DescribeTasks", req, cb)
612
+ }
613
+
614
+ /**
615
+ * 绑定工作组到用户
616
+ */
617
+ async BindWorkGroupsToUser(
618
+ req: BindWorkGroupsToUserRequest,
619
+ cb?: (error: string, rep: BindWorkGroupsToUserResponse) => void
620
+ ): Promise<BindWorkGroupsToUserResponse> {
621
+ return this.request("BindWorkGroupsToUser", req, cb)
622
+ }
623
+
624
+ /**
625
+ * 创建spark任务
626
+ */
627
+ async CreateSparkAppTask(
628
+ req: CreateSparkAppTaskRequest,
629
+ cb?: (error: string, rep: CreateSparkAppTaskResponse) => void
630
+ ): Promise<CreateSparkAppTaskResponse> {
631
+ return this.request("CreateSparkAppTask", req, cb)
632
+ }
633
+
634
+ /**
635
+ * DMS元数据删除分区
636
+ */
637
+ async DropDMSPartitions(
638
+ req: DropDMSPartitionsRequest,
639
+ cb?: (error: string, rep: DropDMSPartitionsResponse) => void
640
+ ): Promise<DropDMSPartitionsResponse> {
641
+ return this.request("DropDMSPartitions", req, cb)
642
+ }
643
+
644
+ /**
645
+ * 修改用户信息
646
+ */
647
+ async ModifyUser(
648
+ req: ModifyUserRequest,
649
+ cb?: (error: string, rep: ModifyUserResponse) => void
650
+ ): Promise<ModifyUserResponse> {
651
+ return this.request("ModifyUser", req, cb)
652
+ }
653
+
654
+ /**
655
+ * 删除用户
656
+ */
657
+ async DeleteUser(
658
+ req: DeleteUserRequest,
659
+ cb?: (error: string, rep: DeleteUserResponse) => void
660
+ ): Promise<DeleteUserResponse> {
661
+ return this.request("DeleteUser", req, cb)
662
+ }
663
+
664
+ /**
665
+ * 本接口(DescribeDatabases)用于查询数据库列表。
666
+ */
667
+ async DescribeDatabases(
668
+ req: DescribeDatabasesRequest,
669
+ cb?: (error: string, rep: DescribeDatabasesResponse) => void
670
+ ): Promise<DescribeDatabasesResponse> {
671
+ return this.request("DescribeDatabases", req, cb)
672
+ }
673
+
674
+ /**
675
+ * 添加用户到工作组
676
+ */
677
+ async AddUsersToWorkGroup(
678
+ req: AddUsersToWorkGroupRequest,
679
+ cb?: (error: string, rep: AddUsersToWorkGroupResponse) => void
680
+ ): Promise<AddUsersToWorkGroupResponse> {
681
+ return this.request("AddUsersToWorkGroup", req, cb)
682
+ }
683
+
684
+ /**
685
+ * 查询计算结果存储位置。
686
+ */
687
+ async DescribeStoreLocation(
688
+ req?: DescribeStoreLocationRequest,
689
+ cb?: (error: string, rep: DescribeStoreLocationResponse) => void
690
+ ): Promise<DescribeStoreLocationResponse> {
691
+ return this.request("DescribeStoreLocation", req, cb)
692
+ }
693
+
694
+ /**
695
+ * DMS元数据创建库
696
+ */
697
+ async CreateDMSDatabase(
698
+ req: CreateDMSDatabaseRequest,
699
+ cb?: (error: string, rep: CreateDMSDatabaseResponse) => void
700
+ ): Promise<CreateDMSDatabaseResponse> {
701
+ return this.request("CreateDMSDatabase", req, cb)
702
+ }
703
+
704
+ /**
705
+ * DMS元数据更新分区
706
+ */
707
+ async AlterDMSPartition(
708
+ req: AlterDMSPartitionRequest,
709
+ cb?: (error: string, rep: AlterDMSPartitionResponse) => void
710
+ ): Promise<AlterDMSPartitionResponse> {
711
+ return this.request("AlterDMSPartition", req, cb)
712
+ }
713
+
714
+ /**
715
+ * 绑定鉴权策略到用户
716
+ */
717
+ async AttachUserPolicy(
718
+ req: AttachUserPolicyRequest,
719
+ cb?: (error: string, rep: AttachUserPolicyResponse) => void
720
+ ): Promise<AttachUserPolicyResponse> {
721
+ return this.request("AttachUserPolicy", req, cb)
722
+ }
723
+
724
+ /**
725
+ * DMS元数据创建表
726
+ */
727
+ async CreateDMSTable(
728
+ req: CreateDMSTableRequest,
729
+ cb?: (error: string, rep: CreateDMSTableResponse) => void
730
+ ): Promise<CreateDMSTableResponse> {
731
+ return this.request("CreateDMSTable", req, cb)
732
+ }
733
+
734
+ /**
735
+ * 查询具体的spark应用
736
+ */
737
+ async DescribeSparkAppJob(
738
+ req: DescribeSparkAppJobRequest,
739
+ cb?: (error: string, rep: DescribeSparkAppJobResponse) => void
740
+ ): Promise<DescribeSparkAppJobResponse> {
741
+ return this.request("DescribeSparkAppJob", req, cb)
742
+ }
743
+
744
+ /**
745
+ * 查询spark应用的运行任务实例列表
746
+ */
747
+ async DescribeSparkAppTasks(
748
+ req: DescribeSparkAppTasksRequest,
749
+ cb?: (error: string, rep: DescribeSparkAppTasksResponse) => void
750
+ ): Promise<DescribeSparkAppTasksResponse> {
751
+ return this.request("DescribeSparkAppTasks", req, cb)
752
+ }
753
+
754
+ /**
755
+ * 获取spark应用列表
756
+ */
757
+ async DescribeSparkAppJobs(
758
+ req: DescribeSparkAppJobsRequest,
759
+ cb?: (error: string, rep: DescribeSparkAppJobsResponse) => void
760
+ ): Promise<DescribeSparkAppJobsResponse> {
761
+ return this.request("DescribeSparkAppJobs", req, cb)
762
+ }
763
+
764
+ /**
765
+ * 创建用户
766
+ */
767
+ async CreateUser(
768
+ req: CreateUserRequest,
769
+ cb?: (error: string, rep: CreateUserResponse) => void
770
+ ): Promise<CreateUserResponse> {
771
+ return this.request("CreateUser", req, cb)
772
+ }
773
+
774
+ /**
775
+ * 解绑用户鉴权策略
776
+ */
777
+ async DetachUserPolicy(
778
+ req: DetachUserPolicyRequest,
779
+ cb?: (error: string, rep: DetachUserPolicyResponse) => void
780
+ ): Promise<DetachUserPolicyResponse> {
781
+ return this.request("DetachUserPolicy", req, cb)
782
+ }
783
+
784
+ /**
785
+ * 本接口(DescribeTables)用于查询数据表列表。
786
+ */
787
+ async DescribeTables(
788
+ req: DescribeTablesRequest,
789
+ cb?: (error: string, rep: DescribeTablesResponse) => void
790
+ ): Promise<DescribeTablesResponse> {
791
+ return this.request("DescribeTables", req, cb)
792
+ }
617
793
  }