tencentcloud-sdk-nodejs-dlc 4.0.1047 → 4.0.1049

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-dlc",
3
- "version": "4.0.1047",
4
- "description": "Tencent Cloud API NODEJS SDK",
3
+ "version": "4.0.1049",
4
+ "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "tencentcloud/index.js",
6
6
  "scripts": {
7
7
  "test": "mocha -t 10000",
@@ -22,7 +22,7 @@
22
22
  "author": "tencentcloudapi",
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "tencentcloud-sdk-nodejs-common": "^4.0.488",
25
+ "tencentcloud-sdk-nodejs-common": "*",
26
26
  "tslib": "1.13.0"
27
27
  },
28
28
  "directories": {
@@ -35,14 +35,19 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/form-data": "^2.5.0",
38
+ "@types/json-bigint": "^1.0.1",
38
39
  "@types/node": "^14.0.26",
39
40
  "@types/node-fetch": "^2.5.7",
41
+ "@types/uuid": "^9.0.8",
40
42
  "@typescript-eslint/eslint-plugin": "^2.34.0",
41
43
  "@typescript-eslint/parser": "^2.34.0",
44
+ "babel-eslint": "^10.0.2",
42
45
  "chai": "^4.2.0",
43
46
  "eslint": "^6.8.0",
47
+ "eslint-plugin-react": "^7.17.0",
44
48
  "mocha": "^8.1.1",
49
+ "prettier": "^2.3.0",
45
50
  "ts-node": "^8.10.2",
46
51
  "typescript": "^3.9.7"
47
52
  }
48
- }
53
+ }
@@ -1103,32 +1103,29 @@ export interface ModifyUserTypeRequest {
1103
1103
  export interface NotebookSessionStatementInfo {
1104
1104
  /**
1105
1105
  * 完成时间戳
1106
- 注意:此字段可能返回 null,表示取不到有效值。
1107
1106
  */
1108
- Completed: number
1107
+ Completed?: number
1109
1108
  /**
1110
1109
  * 开始时间戳
1111
- 注意:此字段可能返回 null,表示取不到有效值。
1112
1110
  */
1113
- Started: number
1111
+ Started?: number
1114
1112
  /**
1115
1113
  * 完成进度,百分制
1116
- 注意:此字段可能返回 null,表示取不到有效值。
1117
1114
  */
1118
- Progress: number
1115
+ Progress?: number
1119
1116
  /**
1120
1117
  * Session Statement唯一标识
1121
1118
  */
1122
- StatementId: string
1119
+ StatementId?: string
1123
1120
  /**
1124
1121
  * Session Statement状态,包含:waiting(排队中)、running(运行中)、available(正常)、error(异常)、cancelling(取消中)、cancelled(已取消)
1125
1122
  */
1126
- State: string
1123
+ State?: string
1127
1124
  /**
1128
1125
  * Statement输出信息
1129
1126
  注意:此字段可能返回 null,表示取不到有效值。
1130
1127
  */
1131
- OutPut: StatementOutput
1128
+ OutPut?: StatementOutput
1132
1129
  /**
1133
1130
  * 批任务id
1134
1131
  注意:此字段可能返回 null,表示取不到有效值。
@@ -1136,12 +1133,10 @@ export interface NotebookSessionStatementInfo {
1136
1133
  BatchId?: string
1137
1134
  /**
1138
1135
  * 运行语句
1139
- 注意:此字段可能返回 null,表示取不到有效值。
1140
1136
  */
1141
1137
  Code?: string
1142
1138
  /**
1143
1139
  * 任务ID
1144
- 注意:此字段可能返回 null,表示取不到有效值。
1145
1140
  */
1146
1141
  TaskId?: string
1147
1142
  }
@@ -1577,6 +1572,10 @@ export interface DescribeNotebookSessionStatementSqlResultRequest {
1577
1572
  * 批次Id
1578
1573
  */
1579
1574
  BatchId?: string
1575
+ /**
1576
+ * 返回结果集中字段值长度截取,如果超过该长度则截取到该长度
1577
+ */
1578
+ DataFieldCutLen?: number
1580
1579
  }
1581
1580
 
1582
1581
  /**
@@ -1627,6 +1626,10 @@ export interface DescribeTaskResultRequest {
1627
1626
  * 是否转化数据类型
1628
1627
  */
1629
1628
  IsTransformDataType?: boolean
1629
+ /**
1630
+ * 返回结果集中字段长度截取,如果字段值长度超过该长度则截取到该长度
1631
+ */
1632
+ DataFieldCutLen?: number
1630
1633
  }
1631
1634
 
1632
1635
  /**
@@ -2053,6 +2056,10 @@ export interface CreateTasksRequest {
2053
2056
  * 是否使用multi- statement方式运行一批次任务,true: 是,false: 否
2054
2057
  */
2055
2058
  IsMultiStatement?: boolean
2059
+ /**
2060
+ * 任务来源信息
2061
+ */
2062
+ SourceInfo?: Array<KVPair>
2056
2063
  }
2057
2064
 
2058
2065
  /**
@@ -4687,6 +4694,10 @@ export interface DescribeDataEngineEventsRequest {
4687
4694
  * 偏移量,默认为0
4688
4695
  */
4689
4696
  Offset?: number
4697
+ /**
4698
+ * 资源组id
4699
+ */
4700
+ SessionId?: string
4690
4701
  }
4691
4702
 
4692
4703
  /**
@@ -5605,37 +5616,33 @@ export interface AttachWorkGroupPolicyRequest {
5605
5616
  export interface StatementOutput {
5606
5617
  /**
5607
5618
  * 执行总数
5608
- 注意:此字段可能返回 null,表示取不到有效值。
5609
5619
  */
5610
- ExecutionCount: number
5620
+ ExecutionCount?: number
5611
5621
  /**
5612
5622
  * Statement数据
5613
5623
  注意:此字段可能返回 null,表示取不到有效值。
5614
5624
  */
5615
- Data: Array<KVPair>
5625
+ Data?: Array<KVPair>
5616
5626
  /**
5617
5627
  * Statement状态:ok,error
5618
- 注意:此字段可能返回 null,表示取不到有效值。
5619
5628
  */
5620
- Status: string
5629
+ Status?: string
5621
5630
  /**
5622
5631
  * 错误名称
5623
- 注意:此字段可能返回 null,表示取不到有效值。
5624
5632
  */
5625
- ErrorName: string
5633
+ ErrorName?: string
5626
5634
  /**
5627
5635
  * 错误类型
5628
5636
  注意:此字段可能返回 null,表示取不到有效值。
5629
5637
  */
5630
- ErrorValue: string
5638
+ ErrorValue?: string
5631
5639
  /**
5632
5640
  * 错误堆栈信息
5633
5641
  注意:此字段可能返回 null,表示取不到有效值。
5634
5642
  */
5635
- ErrorMessage: Array<string>
5643
+ ErrorMessage?: Array<string>
5636
5644
  /**
5637
5645
  * SQL类型任务结果返回
5638
- 注意:此字段可能返回 null,表示取不到有效值。
5639
5646
  */
5640
5647
  SQLResult?: string
5641
5648
  }
@@ -5694,6 +5701,10 @@ export interface DescribeTasksOverviewRequest {
5694
5701
  * 引擎名
5695
5702
  */
5696
5703
  DataEngineName?: string
5704
+ /**
5705
+ * DataEngine-dm8bjs29
5706
+ */
5707
+ HouseIds?: Array<string>
5697
5708
  }
5698
5709
 
5699
5710
  /**
@@ -5824,6 +5835,10 @@ export interface CreateTaskRequest {
5824
5835
  * 标准spark执行任务resourceGroupName
5825
5836
  */
5826
5837
  ResourceGroupName?: string
5838
+ /**
5839
+ * 任务来源信息
5840
+ */
5841
+ SourceInfo?: Array<KVPair>
5827
5842
  }
5828
5843
 
5829
5844
  /**
@@ -6893,12 +6908,10 @@ export interface GenerateCreateMangedTableSqlRequest {
6893
6908
  export interface StatementInformation {
6894
6909
  /**
6895
6910
  * SQL任务唯一ID
6896
- 注意:此字段可能返回 null,表示取不到有效值。
6897
6911
  */
6898
6912
  TaskId?: string
6899
6913
  /**
6900
6914
  * SQL内容
6901
- 注意:此字段可能返回 null,表示取不到有效值。
6902
6915
  */
6903
6916
  SQL?: string
6904
6917
  }
@@ -6923,12 +6936,10 @@ export interface TaskResultInfo {
6923
6936
  TaskId?: string
6924
6937
  /**
6925
6938
  * 数据源名称,当前任务执行时候选中的默认数据源
6926
- 注意:此字段可能返回 null,表示取不到有效值。
6927
6939
  */
6928
6940
  DatasourceConnectionName?: string
6929
6941
  /**
6930
6942
  * 数据库名称,当前任务执行时候选中的默认数据库
6931
- 注意:此字段可能返回 null,表示取不到有效值。
6932
6943
  */
6933
6944
  DatabaseName?: string
6934
6945
  /**
@@ -6974,7 +6985,6 @@ export interface TaskResultInfo {
6974
6985
  ResultSchema?: Array<Column>
6975
6986
  /**
6976
6987
  * 结果信息,反转义后,外层数组的每个元素为一行数据
6977
- 注意:此字段可能返回 null,表示取不到有效值。
6978
6988
  */
6979
6989
  ResultSet?: string
6980
6990
  /**
@@ -6999,7 +7009,6 @@ export interface TaskResultInfo {
6999
7009
  TotalTime?: number
7000
7010
  /**
7001
7011
  * 获取结果消耗的时间
7002
- 注意:此字段可能返回 null,表示取不到有效值。
7003
7012
  */
7004
7013
  QueryResultTime?: number
7005
7014
  }
@@ -7284,6 +7293,10 @@ export interface CreateSparkSessionBatchSQLRequest {
7284
7293
  * 用户自定义主键,需唯一
7285
7294
  */
7286
7295
  CustomKey?: string
7296
+ /**
7297
+ * 任务来源信息
7298
+ */
7299
+ SourceInfo?: Array<KVPair>
7287
7300
  }
7288
7301
 
7289
7302
  /**
@@ -8334,6 +8347,10 @@ export interface CreateSparkAppTaskRequest {
8334
8347
  * spark作业程序入参,以空格分隔;一般用于周期性调用使用
8335
8348
  */
8336
8349
  CmdArgs?: string
8350
+ /**
8351
+ * 任务来源信息
8352
+ */
8353
+ SourceInfo?: Array<KVPair>
8337
8354
  }
8338
8355
 
8339
8356
  /**
@@ -8352,12 +8369,10 @@ export interface DeleteWorkGroupRequest {
8352
8369
  export interface KVPair {
8353
8370
  /**
8354
8371
  * 配置的key值
8355
- 注意:此字段可能返回 null,表示取不到有效值。
8356
8372
  */
8357
8373
  Key: string
8358
8374
  /**
8359
8375
  * 配置的value值
8360
- 注意:此字段可能返回 null,表示取不到有效值。
8361
8376
  */
8362
8377
  Value: string
8363
8378
  }
@@ -1047,32 +1047,29 @@ export interface ModifyUserTypeRequest {
1047
1047
  export interface NotebookSessionStatementInfo {
1048
1048
  /**
1049
1049
  * 完成时间戳
1050
- 注意:此字段可能返回 null,表示取不到有效值。
1051
1050
  */
1052
- Completed: number;
1051
+ Completed?: number;
1053
1052
  /**
1054
1053
  * 开始时间戳
1055
- 注意:此字段可能返回 null,表示取不到有效值。
1056
1054
  */
1057
- Started: number;
1055
+ Started?: number;
1058
1056
  /**
1059
1057
  * 完成进度,百分制
1060
- 注意:此字段可能返回 null,表示取不到有效值。
1061
1058
  */
1062
- Progress: number;
1059
+ Progress?: number;
1063
1060
  /**
1064
1061
  * Session Statement唯一标识
1065
1062
  */
1066
- StatementId: string;
1063
+ StatementId?: string;
1067
1064
  /**
1068
1065
  * Session Statement状态,包含:waiting(排队中)、running(运行中)、available(正常)、error(异常)、cancelling(取消中)、cancelled(已取消)
1069
1066
  */
1070
- State: string;
1067
+ State?: string;
1071
1068
  /**
1072
1069
  * Statement输出信息
1073
1070
  注意:此字段可能返回 null,表示取不到有效值。
1074
1071
  */
1075
- OutPut: StatementOutput;
1072
+ OutPut?: StatementOutput;
1076
1073
  /**
1077
1074
  * 批任务id
1078
1075
  注意:此字段可能返回 null,表示取不到有效值。
@@ -1080,12 +1077,10 @@ export interface NotebookSessionStatementInfo {
1080
1077
  BatchId?: string;
1081
1078
  /**
1082
1079
  * 运行语句
1083
- 注意:此字段可能返回 null,表示取不到有效值。
1084
1080
  */
1085
1081
  Code?: string;
1086
1082
  /**
1087
1083
  * 任务ID
1088
- 注意:此字段可能返回 null,表示取不到有效值。
1089
1084
  */
1090
1085
  TaskId?: string;
1091
1086
  }
@@ -1508,6 +1503,10 @@ export interface DescribeNotebookSessionStatementSqlResultRequest {
1508
1503
  * 批次Id
1509
1504
  */
1510
1505
  BatchId?: string;
1506
+ /**
1507
+ * 返回结果集中字段值长度截取,如果超过该长度则截取到该长度
1508
+ */
1509
+ DataFieldCutLen?: number;
1511
1510
  }
1512
1511
  /**
1513
1512
  * CreateTable返回参数结构体
@@ -1555,6 +1554,10 @@ export interface DescribeTaskResultRequest {
1555
1554
  * 是否转化数据类型
1556
1555
  */
1557
1556
  IsTransformDataType?: boolean;
1557
+ /**
1558
+ * 返回结果集中字段长度截取,如果字段值长度超过该长度则截取到该长度
1559
+ */
1560
+ DataFieldCutLen?: number;
1558
1561
  }
1559
1562
  /**
1560
1563
  * UpdateUserDataEngineConfig请求参数结构体
@@ -1964,6 +1967,10 @@ export interface CreateTasksRequest {
1964
1967
  * 是否使用multi- statement方式运行一批次任务,true: 是,false: 否
1965
1968
  */
1966
1969
  IsMultiStatement?: boolean;
1970
+ /**
1971
+ * 任务来源信息
1972
+ */
1973
+ SourceInfo?: Array<KVPair>;
1967
1974
  }
1968
1975
  /**
1969
1976
  * SuspendResumeDataEngine请求参数结构体
@@ -4486,6 +4493,10 @@ export interface DescribeDataEngineEventsRequest {
4486
4493
  * 偏移量,默认为0
4487
4494
  */
4488
4495
  Offset?: number;
4496
+ /**
4497
+ * 资源组id
4498
+ */
4499
+ SessionId?: string;
4489
4500
  }
4490
4501
  /**
4491
4502
  * DescribeDataEnginePythonSparkImages返回参数结构体
@@ -5371,37 +5382,33 @@ export interface AttachWorkGroupPolicyRequest {
5371
5382
  export interface StatementOutput {
5372
5383
  /**
5373
5384
  * 执行总数
5374
- 注意:此字段可能返回 null,表示取不到有效值。
5375
5385
  */
5376
- ExecutionCount: number;
5386
+ ExecutionCount?: number;
5377
5387
  /**
5378
5388
  * Statement数据
5379
5389
  注意:此字段可能返回 null,表示取不到有效值。
5380
5390
  */
5381
- Data: Array<KVPair>;
5391
+ Data?: Array<KVPair>;
5382
5392
  /**
5383
5393
  * Statement状态:ok,error
5384
- 注意:此字段可能返回 null,表示取不到有效值。
5385
5394
  */
5386
- Status: string;
5395
+ Status?: string;
5387
5396
  /**
5388
5397
  * 错误名称
5389
- 注意:此字段可能返回 null,表示取不到有效值。
5390
5398
  */
5391
- ErrorName: string;
5399
+ ErrorName?: string;
5392
5400
  /**
5393
5401
  * 错误类型
5394
5402
  注意:此字段可能返回 null,表示取不到有效值。
5395
5403
  */
5396
- ErrorValue: string;
5404
+ ErrorValue?: string;
5397
5405
  /**
5398
5406
  * 错误堆栈信息
5399
5407
  注意:此字段可能返回 null,表示取不到有效值。
5400
5408
  */
5401
- ErrorMessage: Array<string>;
5409
+ ErrorMessage?: Array<string>;
5402
5410
  /**
5403
5411
  * SQL类型任务结果返回
5404
- 注意:此字段可能返回 null,表示取不到有效值。
5405
5412
  */
5406
5413
  SQLResult?: string;
5407
5414
  }
@@ -5456,6 +5463,10 @@ export interface DescribeTasksOverviewRequest {
5456
5463
  * 引擎名
5457
5464
  */
5458
5465
  DataEngineName?: string;
5466
+ /**
5467
+ * DataEngine-dm8bjs29
5468
+ */
5469
+ HouseIds?: Array<string>;
5459
5470
  }
5460
5471
  /**
5461
5472
  * 表分区字段信息
@@ -5581,6 +5592,10 @@ export interface CreateTaskRequest {
5581
5592
  * 标准spark执行任务resourceGroupName
5582
5593
  */
5583
5594
  ResourceGroupName?: string;
5595
+ /**
5596
+ * 任务来源信息
5597
+ */
5598
+ SourceInfo?: Array<KVPair>;
5584
5599
  }
5585
5600
  /**
5586
5601
  * CreateTable请求参数结构体
@@ -6608,12 +6623,10 @@ export interface GenerateCreateMangedTableSqlRequest {
6608
6623
  export interface StatementInformation {
6609
6624
  /**
6610
6625
  * SQL任务唯一ID
6611
- 注意:此字段可能返回 null,表示取不到有效值。
6612
6626
  */
6613
6627
  TaskId?: string;
6614
6628
  /**
6615
6629
  * SQL内容
6616
- 注意:此字段可能返回 null,表示取不到有效值。
6617
6630
  */
6618
6631
  SQL?: string;
6619
6632
  }
@@ -6636,12 +6649,10 @@ export interface TaskResultInfo {
6636
6649
  TaskId?: string;
6637
6650
  /**
6638
6651
  * 数据源名称,当前任务执行时候选中的默认数据源
6639
- 注意:此字段可能返回 null,表示取不到有效值。
6640
6652
  */
6641
6653
  DatasourceConnectionName?: string;
6642
6654
  /**
6643
6655
  * 数据库名称,当前任务执行时候选中的默认数据库
6644
- 注意:此字段可能返回 null,表示取不到有效值。
6645
6656
  */
6646
6657
  DatabaseName?: string;
6647
6658
  /**
@@ -6687,7 +6698,6 @@ export interface TaskResultInfo {
6687
6698
  ResultSchema?: Array<Column>;
6688
6699
  /**
6689
6700
  * 结果信息,反转义后,外层数组的每个元素为一行数据
6690
- 注意:此字段可能返回 null,表示取不到有效值。
6691
6701
  */
6692
6702
  ResultSet?: string;
6693
6703
  /**
@@ -6712,7 +6722,6 @@ export interface TaskResultInfo {
6712
6722
  TotalTime?: number;
6713
6723
  /**
6714
6724
  * 获取结果消耗的时间
6715
- 注意:此字段可能返回 null,表示取不到有效值。
6716
6725
  */
6717
6726
  QueryResultTime?: number;
6718
6727
  }
@@ -6988,6 +6997,10 @@ export interface CreateSparkSessionBatchSQLRequest {
6988
6997
  * 用户自定义主键,需唯一
6989
6998
  */
6990
6999
  CustomKey?: string;
7000
+ /**
7001
+ * 任务来源信息
7002
+ */
7003
+ SourceInfo?: Array<KVPair>;
6991
7004
  }
6992
7005
  /**
6993
7006
  * ListTaskJobLogDetail返回参数结构体
@@ -7990,6 +8003,10 @@ export interface CreateSparkAppTaskRequest {
7990
8003
  * spark作业程序入参,以空格分隔;一般用于周期性调用使用
7991
8004
  */
7992
8005
  CmdArgs?: string;
8006
+ /**
8007
+ * 任务来源信息
8008
+ */
8009
+ SourceInfo?: Array<KVPair>;
7993
8010
  }
7994
8011
  /**
7995
8012
  * DeleteWorkGroup请求参数结构体
@@ -8006,12 +8023,10 @@ export interface DeleteWorkGroupRequest {
8006
8023
  export interface KVPair {
8007
8024
  /**
8008
8025
  * 配置的key值
8009
- 注意:此字段可能返回 null,表示取不到有效值。
8010
8026
  */
8011
8027
  Key: string;
8012
8028
  /**
8013
8029
  * 配置的value值
8014
- 注意:此字段可能返回 null,表示取不到有效值。
8015
8030
  */
8016
8031
  Value: string;
8017
8032
  }