tencentcloud-sdk-nodejs-dlc 4.0.388 → 4.0.431

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