tencentcloud-sdk-nodejs-dlc 4.0.530 → 4.0.532
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +137 -0
- package/SERVICE_CHANGELOG.md +185 -159
- package/package.json +1 -1
- package/products.md +20 -20
- package/src/services/dlc/v20210125/dlc_client.ts +35 -10
- package/src/services/dlc/v20210125/dlc_models.ts +275 -30
- package/tencentcloud/services/dlc/v20210125/dlc_client.d.ts +11 -3
- package/tencentcloud/services/dlc/v20210125/dlc_client.js +15 -3
- package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +232 -28
|
@@ -63,6 +63,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
63
63
|
async AlterDMSTable(req, cb) {
|
|
64
64
|
return this.request("AlterDMSTable", req, cb);
|
|
65
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* 本接口(DescribeNotebookSession)用于获取notebook livy session详情信息
|
|
68
|
+
*/
|
|
69
|
+
async DescribeNotebookSession(req, cb) {
|
|
70
|
+
return this.request("DescribeNotebookSession", req, cb);
|
|
71
|
+
}
|
|
66
72
|
/**
|
|
67
73
|
* DMS元数据删除库
|
|
68
74
|
*/
|
|
@@ -112,10 +118,10 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
112
118
|
return this.request("DeleteSparkApp", req, cb);
|
|
113
119
|
}
|
|
114
120
|
/**
|
|
115
|
-
*
|
|
121
|
+
* 本接口(CreateNotebookSession)用于创建notebook livy session
|
|
116
122
|
*/
|
|
117
|
-
async
|
|
118
|
-
return this.request("
|
|
123
|
+
async CreateNotebookSession(req, cb) {
|
|
124
|
+
return this.request("CreateNotebookSession", req, cb);
|
|
119
125
|
}
|
|
120
126
|
/**
|
|
121
127
|
* 本接口(CreateTasks),用于批量创建任务
|
|
@@ -201,6 +207,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
201
207
|
async UnbindWorkGroupsFromUser(req, cb) {
|
|
202
208
|
return this.request("UnbindWorkGroupsFromUser", req, cb);
|
|
203
209
|
}
|
|
210
|
+
/**
|
|
211
|
+
* 获取用户列表信息
|
|
212
|
+
*/
|
|
213
|
+
async DescribeUsers(req, cb) {
|
|
214
|
+
return this.request("DescribeUsers", req, cb);
|
|
215
|
+
}
|
|
204
216
|
/**
|
|
205
217
|
* 绑定鉴权策略到工作组
|
|
206
218
|
*/
|
|
@@ -244,21 +244,17 @@ export interface CreateStoreLocationResponse {
|
|
|
244
244
|
RequestId?: string;
|
|
245
245
|
}
|
|
246
246
|
/**
|
|
247
|
-
*
|
|
247
|
+
* DescribeNotebookSession返回参数结构体
|
|
248
248
|
*/
|
|
249
|
-
export interface
|
|
250
|
-
/**
|
|
251
|
-
* 数据源名称
|
|
252
|
-
*/
|
|
253
|
-
DatasourceConnectionName?: string;
|
|
249
|
+
export interface DescribeNotebookSessionResponse {
|
|
254
250
|
/**
|
|
255
|
-
*
|
|
251
|
+
* Session详情信息
|
|
256
252
|
*/
|
|
257
|
-
|
|
253
|
+
Session?: NotebookSessionInfo;
|
|
258
254
|
/**
|
|
259
|
-
*
|
|
255
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
260
256
|
*/
|
|
261
|
-
|
|
257
|
+
RequestId?: string;
|
|
262
258
|
}
|
|
263
259
|
/**
|
|
264
260
|
* DescribeDMSDatabase返回参数结构体
|
|
@@ -1350,13 +1346,21 @@ export interface DeleteUserResponse {
|
|
|
1350
1346
|
RequestId?: string;
|
|
1351
1347
|
}
|
|
1352
1348
|
/**
|
|
1353
|
-
*
|
|
1349
|
+
* DescribeDatabases返回参数结构体
|
|
1354
1350
|
*/
|
|
1355
|
-
export interface
|
|
1351
|
+
export interface DescribeDatabasesResponse {
|
|
1356
1352
|
/**
|
|
1357
|
-
*
|
|
1353
|
+
* 数据库对象列表。
|
|
1358
1354
|
*/
|
|
1359
|
-
|
|
1355
|
+
DatabaseList: Array<DatabaseResponseInfo>;
|
|
1356
|
+
/**
|
|
1357
|
+
* 实例总数。
|
|
1358
|
+
*/
|
|
1359
|
+
TotalCount: number;
|
|
1360
|
+
/**
|
|
1361
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1362
|
+
*/
|
|
1363
|
+
RequestId?: string;
|
|
1360
1364
|
}
|
|
1361
1365
|
/**
|
|
1362
1366
|
* 元数据加锁内容
|
|
@@ -1490,6 +1494,67 @@ export interface CreateDMSTableResponse {
|
|
|
1490
1494
|
*/
|
|
1491
1495
|
RequestId?: string;
|
|
1492
1496
|
}
|
|
1497
|
+
/**
|
|
1498
|
+
* CreateNotebookSession请求参数结构体
|
|
1499
|
+
*/
|
|
1500
|
+
export interface CreateNotebookSessionRequest {
|
|
1501
|
+
/**
|
|
1502
|
+
* Session名称
|
|
1503
|
+
*/
|
|
1504
|
+
Name: string;
|
|
1505
|
+
/**
|
|
1506
|
+
* 类型,当前支持:spark、pyspark、sparkr、sql
|
|
1507
|
+
*/
|
|
1508
|
+
Kind: string;
|
|
1509
|
+
/**
|
|
1510
|
+
* DLC Spark作业引擎名称
|
|
1511
|
+
*/
|
|
1512
|
+
DataEngineName: string;
|
|
1513
|
+
/**
|
|
1514
|
+
* session文件地址,当前支持:cosn://和lakefs://两种路径
|
|
1515
|
+
*/
|
|
1516
|
+
ProgramDependentFiles?: Array<string>;
|
|
1517
|
+
/**
|
|
1518
|
+
* 依赖的jar程序地址,当前支持:cosn://和lakefs://两种路径
|
|
1519
|
+
*/
|
|
1520
|
+
ProgramDependentJars?: Array<string>;
|
|
1521
|
+
/**
|
|
1522
|
+
* 依赖的python程序地址,当前支持:cosn://和lakefs://两种路径
|
|
1523
|
+
*/
|
|
1524
|
+
ProgramDependentPython?: Array<string>;
|
|
1525
|
+
/**
|
|
1526
|
+
* 依赖的pyspark虚拟环境地址,当前支持:cosn://和lakefs://两种路径
|
|
1527
|
+
*/
|
|
1528
|
+
ProgramArchives?: Array<string>;
|
|
1529
|
+
/**
|
|
1530
|
+
* 指定的Driver规格,当前支持:small(默认,1cu)、medium(2cu)、large(4cu)、xlarge(8cu)
|
|
1531
|
+
*/
|
|
1532
|
+
DriverSize?: string;
|
|
1533
|
+
/**
|
|
1534
|
+
* 指定的Executor规格,当前支持:small(默认,1cu)、medium(2cu)、large(4cu)、xlarge(8cu)
|
|
1535
|
+
*/
|
|
1536
|
+
ExecutorSize?: string;
|
|
1537
|
+
/**
|
|
1538
|
+
* 指定的Executor数量,默认为1
|
|
1539
|
+
*/
|
|
1540
|
+
ExecutorNumbers?: number;
|
|
1541
|
+
/**
|
|
1542
|
+
* Session相关配置,当前支持:dlc.eni、dlc.role.arn、dlc.sql.set.config以及用户指定的配置,注:roleArn必填;
|
|
1543
|
+
*/
|
|
1544
|
+
Arguments?: Array<KVPair>;
|
|
1545
|
+
/**
|
|
1546
|
+
* 代理用户,默认为root
|
|
1547
|
+
*/
|
|
1548
|
+
ProxyUser?: string;
|
|
1549
|
+
/**
|
|
1550
|
+
* 指定的Session超时时间,单位秒,默认3600秒
|
|
1551
|
+
*/
|
|
1552
|
+
TimeoutInSecond?: number;
|
|
1553
|
+
/**
|
|
1554
|
+
* 指定的Executor数量(最大值),默认为1,当开启动态分配有效,若未开启,则该值等于ExecutorNumbers
|
|
1555
|
+
*/
|
|
1556
|
+
ExecutorMaxNumbers?: number;
|
|
1557
|
+
}
|
|
1493
1558
|
/**
|
|
1494
1559
|
* 数据表分块信息。
|
|
1495
1560
|
*/
|
|
@@ -1544,13 +1609,13 @@ export interface CreateTaskRequest {
|
|
|
1544
1609
|
DataEngineName?: string;
|
|
1545
1610
|
}
|
|
1546
1611
|
/**
|
|
1547
|
-
*
|
|
1612
|
+
* DescribeNotebookSession请求参数结构体
|
|
1548
1613
|
*/
|
|
1549
|
-
export interface
|
|
1614
|
+
export interface DescribeNotebookSessionRequest {
|
|
1550
1615
|
/**
|
|
1551
|
-
*
|
|
1616
|
+
* Session唯一标识
|
|
1552
1617
|
*/
|
|
1553
|
-
|
|
1618
|
+
SessionId: string;
|
|
1554
1619
|
}
|
|
1555
1620
|
/**
|
|
1556
1621
|
* CSV类型数据格式
|
|
@@ -1775,6 +1840,23 @@ export interface ReportHeartbeatMetaDataResponse {
|
|
|
1775
1840
|
*/
|
|
1776
1841
|
RequestId?: string;
|
|
1777
1842
|
}
|
|
1843
|
+
/**
|
|
1844
|
+
* ReportHeartbeatMetaData请求参数结构体
|
|
1845
|
+
*/
|
|
1846
|
+
export interface ReportHeartbeatMetaDataRequest {
|
|
1847
|
+
/**
|
|
1848
|
+
* 数据源名称
|
|
1849
|
+
*/
|
|
1850
|
+
DatasourceConnectionName?: string;
|
|
1851
|
+
/**
|
|
1852
|
+
* 锁ID
|
|
1853
|
+
*/
|
|
1854
|
+
LockId?: number;
|
|
1855
|
+
/**
|
|
1856
|
+
* 事务ID
|
|
1857
|
+
*/
|
|
1858
|
+
TxnId?: number;
|
|
1859
|
+
}
|
|
1778
1860
|
/**
|
|
1779
1861
|
* CreateDMSTable请求参数结构体
|
|
1780
1862
|
*/
|
|
@@ -2474,6 +2556,105 @@ export interface CreateImportTaskResponse {
|
|
|
2474
2556
|
*/
|
|
2475
2557
|
RequestId?: string;
|
|
2476
2558
|
}
|
|
2559
|
+
/**
|
|
2560
|
+
* Notebook Session详细信息。
|
|
2561
|
+
*/
|
|
2562
|
+
export interface NotebookSessionInfo {
|
|
2563
|
+
/**
|
|
2564
|
+
* Session名称
|
|
2565
|
+
*/
|
|
2566
|
+
Name: string;
|
|
2567
|
+
/**
|
|
2568
|
+
* 类型,当前支持:spark、pyspark、sparkr、sql
|
|
2569
|
+
*/
|
|
2570
|
+
Kind: string;
|
|
2571
|
+
/**
|
|
2572
|
+
* DLC Spark作业引擎名称
|
|
2573
|
+
*/
|
|
2574
|
+
DataEngineName: string;
|
|
2575
|
+
/**
|
|
2576
|
+
* Session相关配置,当前支持:eni、roleArn以及用户指定的配置
|
|
2577
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2578
|
+
*/
|
|
2579
|
+
Arguments: Array<KVPair>;
|
|
2580
|
+
/**
|
|
2581
|
+
* 运行程序地址,当前支持:cosn://和lakefs://两种路径
|
|
2582
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2583
|
+
*/
|
|
2584
|
+
ProgramDependentFiles: Array<string>;
|
|
2585
|
+
/**
|
|
2586
|
+
* 依赖的jar程序地址,当前支持:cosn://和lakefs://两种路径
|
|
2587
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2588
|
+
*/
|
|
2589
|
+
ProgramDependentJars: Array<string>;
|
|
2590
|
+
/**
|
|
2591
|
+
* 依赖的python程序地址,当前支持:cosn://和lakefs://两种路径
|
|
2592
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2593
|
+
*/
|
|
2594
|
+
ProgramDependentPython: Array<string>;
|
|
2595
|
+
/**
|
|
2596
|
+
* 依赖的pyspark虚拟环境地址,当前支持:cosn://和lakefs://两种路径
|
|
2597
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2598
|
+
*/
|
|
2599
|
+
ProgramArchives: Array<string>;
|
|
2600
|
+
/**
|
|
2601
|
+
* 指定的Driver规格,当前支持:small(默认,1cu)、medium(2cu)、large(4cu)、xlarge(8cu)
|
|
2602
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2603
|
+
*/
|
|
2604
|
+
DriverSize: string;
|
|
2605
|
+
/**
|
|
2606
|
+
* 指定的Executor规格,当前支持:small(默认,1cu)、medium(2cu)、large(4cu)、xlarge(8cu)
|
|
2607
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2608
|
+
*/
|
|
2609
|
+
ExecutorSize: string;
|
|
2610
|
+
/**
|
|
2611
|
+
* 指定的Executor数量,默认为1
|
|
2612
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2613
|
+
*/
|
|
2614
|
+
ExecutorNumbers: number;
|
|
2615
|
+
/**
|
|
2616
|
+
* 代理用户,默认为root
|
|
2617
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2618
|
+
*/
|
|
2619
|
+
ProxyUser: string;
|
|
2620
|
+
/**
|
|
2621
|
+
* 指定的Session超时时间,单位秒,默认3600秒
|
|
2622
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2623
|
+
*/
|
|
2624
|
+
TimeoutInSecond: number;
|
|
2625
|
+
/**
|
|
2626
|
+
* Spark任务返回的AppId
|
|
2627
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2628
|
+
*/
|
|
2629
|
+
SparkAppId: string;
|
|
2630
|
+
/**
|
|
2631
|
+
* Session唯一标识
|
|
2632
|
+
*/
|
|
2633
|
+
SessionId: string;
|
|
2634
|
+
/**
|
|
2635
|
+
* Session状态,包含:not_started(未启动)、starting(已启动)、idle(等待输入)、busy(正在运行statement)、shutting_down(停止)、error(异常)、dead(已退出)、killed(被杀死)、success(正常停止)
|
|
2636
|
+
*/
|
|
2637
|
+
State: string;
|
|
2638
|
+
/**
|
|
2639
|
+
* Session创建时间
|
|
2640
|
+
*/
|
|
2641
|
+
CreateTime: string;
|
|
2642
|
+
/**
|
|
2643
|
+
* 其它信息
|
|
2644
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2645
|
+
*/
|
|
2646
|
+
AppInfo: Array<KVPair>;
|
|
2647
|
+
/**
|
|
2648
|
+
* Spark ui地址
|
|
2649
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2650
|
+
*/
|
|
2651
|
+
SparkUiUrl: string;
|
|
2652
|
+
/**
|
|
2653
|
+
* 指定的Executor数量(最大值),默认为1,当开启动态分配有效,若未开启,则该值等于ExecutorNumbers
|
|
2654
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2655
|
+
*/
|
|
2656
|
+
ExecutorMaxNumbers?: number;
|
|
2657
|
+
}
|
|
2477
2658
|
/**
|
|
2478
2659
|
* SQL语句对象
|
|
2479
2660
|
*/
|
|
@@ -2974,22 +3155,23 @@ export interface DescribeTablesRequest {
|
|
|
2974
3155
|
TableFormat?: string;
|
|
2975
3156
|
}
|
|
2976
3157
|
/**
|
|
2977
|
-
*
|
|
3158
|
+
* ModifySparkApp返回参数结构体
|
|
2978
3159
|
*/
|
|
2979
|
-
export interface
|
|
2980
|
-
/**
|
|
2981
|
-
* 数据库对象列表。
|
|
2982
|
-
*/
|
|
2983
|
-
DatabaseList: Array<DatabaseResponseInfo>;
|
|
2984
|
-
/**
|
|
2985
|
-
* 实例总数。
|
|
2986
|
-
*/
|
|
2987
|
-
TotalCount: number;
|
|
3160
|
+
export interface ModifySparkAppResponse {
|
|
2988
3161
|
/**
|
|
2989
3162
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2990
3163
|
*/
|
|
2991
3164
|
RequestId?: string;
|
|
2992
3165
|
}
|
|
3166
|
+
/**
|
|
3167
|
+
* CreateStoreLocation请求参数结构体
|
|
3168
|
+
*/
|
|
3169
|
+
export interface CreateStoreLocationRequest {
|
|
3170
|
+
/**
|
|
3171
|
+
* 计算结果存储cos路径,如:cosn://bucketname/
|
|
3172
|
+
*/
|
|
3173
|
+
StoreLocation: string;
|
|
3174
|
+
}
|
|
2993
3175
|
/**
|
|
2994
3176
|
* DMSTable信息
|
|
2995
3177
|
*/
|
|
@@ -3647,6 +3829,28 @@ export interface CreateTasksResponse {
|
|
|
3647
3829
|
*/
|
|
3648
3830
|
RequestId?: string;
|
|
3649
3831
|
}
|
|
3832
|
+
/**
|
|
3833
|
+
* CreateNotebookSession返回参数结构体
|
|
3834
|
+
*/
|
|
3835
|
+
export interface CreateNotebookSessionResponse {
|
|
3836
|
+
/**
|
|
3837
|
+
* Session唯一标识
|
|
3838
|
+
*/
|
|
3839
|
+
SessionId?: string;
|
|
3840
|
+
/**
|
|
3841
|
+
* Spark任务返回的AppId
|
|
3842
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3843
|
+
*/
|
|
3844
|
+
SparkAppId?: string;
|
|
3845
|
+
/**
|
|
3846
|
+
* Session状态,包含:not_started(未启动)、starting(已启动)、idle(等待输入)、busy(正在运行statement)、shutting_down(停止)、error(异常)、dead(已退出)、killed(被杀死)、success(正常停止)
|
|
3847
|
+
*/
|
|
3848
|
+
State?: string;
|
|
3849
|
+
/**
|
|
3850
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
3851
|
+
*/
|
|
3852
|
+
RequestId?: string;
|
|
3853
|
+
}
|
|
3650
3854
|
/**
|
|
3651
3855
|
* CreateSparkApp请求参数结构体
|
|
3652
3856
|
*/
|