tencentcloud-sdk-dlc 1.0.225 → 1.0.229
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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210125/client.rb +28 -4
- data/lib/v20210125/models.rb +304 -28
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 557feda4157f096ce2c717d101b74c0e5e52a99c
|
4
|
+
data.tar.gz: 72702be6130fbbf1cccea9462e56979024c39c04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eefb4c86e317951e607ddc58cf4877fcca2b00f668b33c750304cd2db242dbd093d09f5f7122e813bea44b97fb7c11d5e568cd8c6a8632447c4d46dea2efd23f
|
7
|
+
data.tar.gz: 03de21d12e964569bdb5cd1e2ab31b53cb5b5750c2c2a0e932dcbe4ab90e6b797c07c99fd32ba2417a15d5133eac25b857f9c644f688553873f3dd0a080473d2
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.229
|
data/lib/v20210125/client.rb
CHANGED
@@ -125,7 +125,7 @@ module TencentCloud
|
|
125
125
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
126
|
end
|
127
127
|
|
128
|
-
#
|
128
|
+
# 本接口(CancelTask),用于取消任务执行
|
129
129
|
|
130
130
|
# @param request: Request instance for CancelTask.
|
131
131
|
# @type request: :class:`Tencentcloud::dlc::V20210125::CancelTaskRequest`
|
@@ -269,7 +269,7 @@ module TencentCloud
|
|
269
269
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
270
|
end
|
271
271
|
|
272
|
-
#
|
272
|
+
# 本接口(CreateTasks),用于批量创建任务
|
273
273
|
|
274
274
|
# @param request: Request instance for CreateTasks.
|
275
275
|
# @type request: :class:`Tencentcloud::dlc::V20210125::CreateTasksRequest`
|
@@ -533,7 +533,7 @@ module TencentCloud
|
|
533
533
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
534
534
|
end
|
535
535
|
|
536
|
-
#
|
536
|
+
# 本接口(DescribeTable),用于查询单个表的详细信息。
|
537
537
|
|
538
538
|
# @param request: Request instance for DescribeTable.
|
539
539
|
# @type request: :class:`Tencentcloud::dlc::V20210125::DescribeTableRequest`
|
@@ -557,7 +557,7 @@ module TencentCloud
|
|
557
557
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
558
558
|
end
|
559
559
|
|
560
|
-
# 本接口(
|
560
|
+
# 本接口(DescribeTables)用于查询数据表列表。
|
561
561
|
|
562
562
|
# @param request: Request instance for DescribeTables.
|
563
563
|
# @type request: :class:`Tencentcloud::dlc::V20210125::DescribeTablesRequest`
|
@@ -581,6 +581,30 @@ module TencentCloud
|
|
581
581
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
582
582
|
end
|
583
583
|
|
584
|
+
# 查询任务结果
|
585
|
+
|
586
|
+
# @param request: Request instance for DescribeTaskResult.
|
587
|
+
# @type request: :class:`Tencentcloud::dlc::V20210125::DescribeTaskResultRequest`
|
588
|
+
# @rtype: :class:`Tencentcloud::dlc::V20210125::DescribeTaskResultResponse`
|
589
|
+
def DescribeTaskResult(request)
|
590
|
+
body = send_request('DescribeTaskResult', request.serialize)
|
591
|
+
response = JSON.parse(body)
|
592
|
+
if response['Response'].key?('Error') == false
|
593
|
+
model = DescribeTaskResultResponse.new
|
594
|
+
model.deserialize(response['Response'])
|
595
|
+
model
|
596
|
+
else
|
597
|
+
code = response['Response']['Error']['Code']
|
598
|
+
message = response['Response']['Error']['Message']
|
599
|
+
reqid = response['Response']['RequestId']
|
600
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
601
|
+
end
|
602
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
603
|
+
raise e
|
604
|
+
rescue StandardError => e
|
605
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
606
|
+
end
|
607
|
+
|
584
608
|
# 该接口(DescribleTasks)用于查询任务列表
|
585
609
|
|
586
610
|
# @param request: Request instance for DescribeTasks.
|
data/lib/v20210125/models.rb
CHANGED
@@ -281,16 +281,28 @@ module TencentCloud
|
|
281
281
|
# @param Nullable: 是否为null
|
282
282
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
283
283
|
# @type Nullable: String
|
284
|
+
# @param Position: 字段位置
|
285
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
286
|
+
# @type Position: Integer
|
287
|
+
# @param CreateTime: 字段创建时间
|
288
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
289
|
+
# @type CreateTime: String
|
290
|
+
# @param ModifiedTime: 字段修改时间
|
291
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
292
|
+
# @type ModifiedTime: String
|
284
293
|
|
285
|
-
attr_accessor :Name, :Type, :Comment, :Precision, :Scale, :Nullable
|
294
|
+
attr_accessor :Name, :Type, :Comment, :Precision, :Scale, :Nullable, :Position, :CreateTime, :ModifiedTime
|
286
295
|
|
287
|
-
def initialize(name=nil, type=nil, comment=nil, precision=nil, scale=nil, nullable=nil)
|
296
|
+
def initialize(name=nil, type=nil, comment=nil, precision=nil, scale=nil, nullable=nil, position=nil, createtime=nil, modifiedtime=nil)
|
288
297
|
@Name = name
|
289
298
|
@Type = type
|
290
299
|
@Comment = comment
|
291
300
|
@Precision = precision
|
292
301
|
@Scale = scale
|
293
302
|
@Nullable = nullable
|
303
|
+
@Position = position
|
304
|
+
@CreateTime = createtime
|
305
|
+
@ModifiedTime = modifiedtime
|
294
306
|
end
|
295
307
|
|
296
308
|
def deserialize(params)
|
@@ -300,6 +312,9 @@ module TencentCloud
|
|
300
312
|
@Precision = params['Precision']
|
301
313
|
@Scale = params['Scale']
|
302
314
|
@Nullable = params['Nullable']
|
315
|
+
@Position = params['Position']
|
316
|
+
@CreateTime = params['CreateTime']
|
317
|
+
@ModifiedTime = params['ModifiedTime']
|
303
318
|
end
|
304
319
|
end
|
305
320
|
|
@@ -307,7 +322,7 @@ module TencentCloud
|
|
307
322
|
class CreateDatabaseRequest < TencentCloud::Common::AbstractModel
|
308
323
|
# @param DatabaseInfo: 数据库基础信息
|
309
324
|
# @type DatabaseInfo: :class:`Tencentcloud::Dlc.v20210125.models.DatabaseInfo`
|
310
|
-
# @param DatasourceConnectionName: 数据源名称,默认为
|
325
|
+
# @param DatasourceConnectionName: 数据源名称,默认为DataLakeCatalog
|
311
326
|
# @type DatasourceConnectionName: String
|
312
327
|
|
313
328
|
attr_accessor :DatabaseInfo, :DatasourceConnectionName
|
@@ -475,13 +490,16 @@ module TencentCloud
|
|
475
490
|
# @type DatabaseName: String
|
476
491
|
# @param DatasourceConnectionName: 默认数据源名称。
|
477
492
|
# @type DatasourceConnectionName: String
|
493
|
+
# @param DataEngineName: 数据引擎名称,不填提交到默认集群
|
494
|
+
# @type DataEngineName: String
|
478
495
|
|
479
|
-
attr_accessor :Task, :DatabaseName, :DatasourceConnectionName
|
496
|
+
attr_accessor :Task, :DatabaseName, :DatasourceConnectionName, :DataEngineName
|
480
497
|
|
481
|
-
def initialize(task=nil, databasename=nil, datasourceconnectionname=nil)
|
498
|
+
def initialize(task=nil, databasename=nil, datasourceconnectionname=nil, dataenginename=nil)
|
482
499
|
@Task = task
|
483
500
|
@DatabaseName = databasename
|
484
501
|
@DatasourceConnectionName = datasourceconnectionname
|
502
|
+
@DataEngineName = dataenginename
|
485
503
|
end
|
486
504
|
|
487
505
|
def deserialize(params)
|
@@ -491,6 +509,7 @@ module TencentCloud
|
|
491
509
|
end
|
492
510
|
@DatabaseName = params['DatabaseName']
|
493
511
|
@DatasourceConnectionName = params['DatasourceConnectionName']
|
512
|
+
@DataEngineName = params['DataEngineName']
|
494
513
|
end
|
495
514
|
end
|
496
515
|
|
@@ -572,15 +591,18 @@ module TencentCloud
|
|
572
591
|
# @type DatabaseName: String
|
573
592
|
# @param Tasks: SQL任务信息
|
574
593
|
# @type Tasks: :class:`Tencentcloud::Dlc.v20210125.models.TasksInfo`
|
575
|
-
# @param DatasourceConnectionName: 数据源名称,默认为
|
594
|
+
# @param DatasourceConnectionName: 数据源名称,默认为DataLakeCatalog
|
576
595
|
# @type DatasourceConnectionName: String
|
596
|
+
# @param DataEngineName: 计算引擎名称,不填任务提交到默认集群
|
597
|
+
# @type DataEngineName: String
|
577
598
|
|
578
|
-
attr_accessor :DatabaseName, :Tasks, :DatasourceConnectionName
|
599
|
+
attr_accessor :DatabaseName, :Tasks, :DatasourceConnectionName, :DataEngineName
|
579
600
|
|
580
|
-
def initialize(databasename=nil, tasks=nil, datasourceconnectionname=nil)
|
601
|
+
def initialize(databasename=nil, tasks=nil, datasourceconnectionname=nil, dataenginename=nil)
|
581
602
|
@DatabaseName = databasename
|
582
603
|
@Tasks = tasks
|
583
604
|
@DatasourceConnectionName = datasourceconnectionname
|
605
|
+
@DataEngineName = dataenginename
|
584
606
|
end
|
585
607
|
|
586
608
|
def deserialize(params)
|
@@ -590,6 +612,7 @@ module TencentCloud
|
|
590
612
|
@Tasks.deserialize(params['Tasks'])
|
591
613
|
end
|
592
614
|
@DatasourceConnectionName = params['DatasourceConnectionName']
|
615
|
+
@DataEngineName = params['DataEngineName']
|
593
616
|
end
|
594
617
|
end
|
595
618
|
|
@@ -777,21 +800,25 @@ module TencentCloud
|
|
777
800
|
|
778
801
|
# 数据库对象
|
779
802
|
class DatabaseInfo < TencentCloud::Common::AbstractModel
|
780
|
-
# @param DatabaseName:
|
803
|
+
# @param DatabaseName: 数据库名称,长度0~128,支持数字、字母下划线,不允许数字大头,统一转换为小写。
|
781
804
|
# @type DatabaseName: String
|
782
|
-
# @param Comment: 数据库描述信息,长度 0~
|
805
|
+
# @param Comment: 数据库描述信息,长度 0~500。
|
783
806
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
784
807
|
# @type Comment: String
|
785
808
|
# @param Properties: 数据库属性列表。
|
786
809
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
787
810
|
# @type Properties: Array
|
811
|
+
# @param Location: 数据库cos路径
|
812
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
813
|
+
# @type Location: String
|
788
814
|
|
789
|
-
attr_accessor :DatabaseName, :Comment, :Properties
|
815
|
+
attr_accessor :DatabaseName, :Comment, :Properties, :Location
|
790
816
|
|
791
|
-
def initialize(databasename=nil, comment=nil, properties=nil)
|
817
|
+
def initialize(databasename=nil, comment=nil, properties=nil, location=nil)
|
792
818
|
@DatabaseName = databasename
|
793
819
|
@Comment = comment
|
794
820
|
@Properties = properties
|
821
|
+
@Location = location
|
795
822
|
end
|
796
823
|
|
797
824
|
def deserialize(params)
|
@@ -805,6 +832,7 @@ module TencentCloud
|
|
805
832
|
@Properties << property_tmp
|
806
833
|
end
|
807
834
|
end
|
835
|
+
@Location = params['Location']
|
808
836
|
end
|
809
837
|
end
|
810
838
|
|
@@ -815,7 +843,7 @@ module TencentCloud
|
|
815
843
|
# @param Comment: 数据库描述信息,长度 0~256。
|
816
844
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
817
845
|
# @type Comment: String
|
818
|
-
# @param Properties:
|
846
|
+
# @param Properties: 允许针对数据库的属性元数据信息进行指定。
|
819
847
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
820
848
|
# @type Properties: Array
|
821
849
|
# @param CreateTime: 数据库创建时间戳,单位:s。
|
@@ -994,16 +1022,22 @@ module TencentCloud
|
|
994
1022
|
# @type Offset: Integer
|
995
1023
|
# @param KeyWord: 模糊匹配,库名关键字。
|
996
1024
|
# @type KeyWord: String
|
997
|
-
# @param DatasourceConnectionName: 数据源唯名称,该名称可以通过DescribeDatasourceConnection接口查询到。默认为
|
1025
|
+
# @param DatasourceConnectionName: 数据源唯名称,该名称可以通过DescribeDatasourceConnection接口查询到。默认为DataLakeCatalog
|
998
1026
|
# @type DatasourceConnectionName: String
|
1027
|
+
# @param Sort: 排序字段,当前版本仅支持按库名排序
|
1028
|
+
# @type Sort: String
|
1029
|
+
# @param Asc: 排序类型:false:降序(默认)、true:升序
|
1030
|
+
# @type Asc: Boolean
|
999
1031
|
|
1000
|
-
attr_accessor :Limit, :Offset, :KeyWord, :DatasourceConnectionName
|
1032
|
+
attr_accessor :Limit, :Offset, :KeyWord, :DatasourceConnectionName, :Sort, :Asc
|
1001
1033
|
|
1002
|
-
def initialize(limit=nil, offset=nil, keyword=nil, datasourceconnectionname=nil)
|
1034
|
+
def initialize(limit=nil, offset=nil, keyword=nil, datasourceconnectionname=nil, sort=nil, asc=nil)
|
1003
1035
|
@Limit = limit
|
1004
1036
|
@Offset = offset
|
1005
1037
|
@KeyWord = keyword
|
1006
1038
|
@DatasourceConnectionName = datasourceconnectionname
|
1039
|
+
@Sort = sort
|
1040
|
+
@Asc = asc
|
1007
1041
|
end
|
1008
1042
|
|
1009
1043
|
def deserialize(params)
|
@@ -1011,6 +1045,8 @@ module TencentCloud
|
|
1011
1045
|
@Offset = params['Offset']
|
1012
1046
|
@KeyWord = params['KeyWord']
|
1013
1047
|
@DatasourceConnectionName = params['DatasourceConnectionName']
|
1048
|
+
@Sort = params['Sort']
|
1049
|
+
@Asc = params['Asc']
|
1014
1050
|
end
|
1015
1051
|
end
|
1016
1052
|
|
@@ -1209,17 +1245,32 @@ module TencentCloud
|
|
1209
1245
|
# table-name - String - (过滤条件)数据表名称,形如:table-001。
|
1210
1246
|
# table-id - String - (过滤条件)table id形如:12342。
|
1211
1247
|
# @type Filters: Array
|
1212
|
-
# @param DatasourceConnectionName: 指定查询的数据源名称,默认为
|
1248
|
+
# @param DatasourceConnectionName: 指定查询的数据源名称,默认为DataLakeCatalog
|
1213
1249
|
# @type DatasourceConnectionName: String
|
1250
|
+
# @param StartTime: 起始时间:用于对更新时间的筛选
|
1251
|
+
# @type StartTime: String
|
1252
|
+
# @param EndTime: 终止时间:用于对更新时间的筛选
|
1253
|
+
# @type EndTime: String
|
1254
|
+
# @param Sort: 排序字段,支持:ModifiedTime(默认);CreateTime
|
1255
|
+
# @type Sort: String
|
1256
|
+
# @param Asc: 排序字段,false:降序(默认);true
|
1257
|
+
# @type Asc: Boolean
|
1258
|
+
# @param TableType: table type,表类型查询,可用值:EXTERNAL_TABLE,INDEX_TABLE,MANAGED_TABLE,MATERIALIZED_VIEW,TABLE,VIEW,VIRTUAL_VIEW
|
1259
|
+
# @type TableType: String
|
1214
1260
|
|
1215
|
-
attr_accessor :DatabaseName, :Limit, :Offset, :Filters, :DatasourceConnectionName
|
1261
|
+
attr_accessor :DatabaseName, :Limit, :Offset, :Filters, :DatasourceConnectionName, :StartTime, :EndTime, :Sort, :Asc, :TableType
|
1216
1262
|
|
1217
|
-
def initialize(databasename=nil, limit=nil, offset=nil, filters=nil, datasourceconnectionname=nil)
|
1263
|
+
def initialize(databasename=nil, limit=nil, offset=nil, filters=nil, datasourceconnectionname=nil, starttime=nil, endtime=nil, sort=nil, asc=nil, tabletype=nil)
|
1218
1264
|
@DatabaseName = databasename
|
1219
1265
|
@Limit = limit
|
1220
1266
|
@Offset = offset
|
1221
1267
|
@Filters = filters
|
1222
1268
|
@DatasourceConnectionName = datasourceconnectionname
|
1269
|
+
@StartTime = starttime
|
1270
|
+
@EndTime = endtime
|
1271
|
+
@Sort = sort
|
1272
|
+
@Asc = asc
|
1273
|
+
@TableType = tabletype
|
1223
1274
|
end
|
1224
1275
|
|
1225
1276
|
def deserialize(params)
|
@@ -1235,6 +1286,11 @@ module TencentCloud
|
|
1235
1286
|
end
|
1236
1287
|
end
|
1237
1288
|
@DatasourceConnectionName = params['DatasourceConnectionName']
|
1289
|
+
@StartTime = params['StartTime']
|
1290
|
+
@EndTime = params['EndTime']
|
1291
|
+
@Sort = params['Sort']
|
1292
|
+
@Asc = params['Asc']
|
1293
|
+
@TableType = params['TableType']
|
1238
1294
|
end
|
1239
1295
|
end
|
1240
1296
|
|
@@ -1269,6 +1325,54 @@ module TencentCloud
|
|
1269
1325
|
end
|
1270
1326
|
end
|
1271
1327
|
|
1328
|
+
# DescribeTaskResult请求参数结构体
|
1329
|
+
class DescribeTaskResultRequest < TencentCloud::Common::AbstractModel
|
1330
|
+
# @param TaskId: 任务唯一ID
|
1331
|
+
# @type TaskId: String
|
1332
|
+
# @param NextToken: 上一次请求响应返回的分页信息。第一次可以不带,从头开始返回数据,每次返回1000行数据。
|
1333
|
+
# @type NextToken: String
|
1334
|
+
# @param MaxResults: 返回结果的最大行数,范围0~1000,默认为1000.
|
1335
|
+
# @type MaxResults: Integer
|
1336
|
+
|
1337
|
+
attr_accessor :TaskId, :NextToken, :MaxResults
|
1338
|
+
|
1339
|
+
def initialize(taskid=nil, nexttoken=nil, maxresults=nil)
|
1340
|
+
@TaskId = taskid
|
1341
|
+
@NextToken = nexttoken
|
1342
|
+
@MaxResults = maxresults
|
1343
|
+
end
|
1344
|
+
|
1345
|
+
def deserialize(params)
|
1346
|
+
@TaskId = params['TaskId']
|
1347
|
+
@NextToken = params['NextToken']
|
1348
|
+
@MaxResults = params['MaxResults']
|
1349
|
+
end
|
1350
|
+
end
|
1351
|
+
|
1352
|
+
# DescribeTaskResult返回参数结构体
|
1353
|
+
class DescribeTaskResultResponse < TencentCloud::Common::AbstractModel
|
1354
|
+
# @param TaskInfo: 查询的任务信息,返回为空表示输入任务ID对应的任务不存在。只有当任务状态为成功(2)的时候,才会返回任务的结果。
|
1355
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1356
|
+
# @type TaskInfo: :class:`Tencentcloud::Dlc.v20210125.models.TaskResultInfo`
|
1357
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1358
|
+
# @type RequestId: String
|
1359
|
+
|
1360
|
+
attr_accessor :TaskInfo, :RequestId
|
1361
|
+
|
1362
|
+
def initialize(taskinfo=nil, requestid=nil)
|
1363
|
+
@TaskInfo = taskinfo
|
1364
|
+
@RequestId = requestid
|
1365
|
+
end
|
1366
|
+
|
1367
|
+
def deserialize(params)
|
1368
|
+
unless params['TaskInfo'].nil?
|
1369
|
+
@TaskInfo = TaskResultInfo.new
|
1370
|
+
@TaskInfo.deserialize(params['TaskInfo'])
|
1371
|
+
end
|
1372
|
+
@RequestId = params['RequestId']
|
1373
|
+
end
|
1374
|
+
end
|
1375
|
+
|
1272
1376
|
# DescribeTasks请求参数结构体
|
1273
1377
|
class DescribeTasksRequest < TencentCloud::Common::AbstractModel
|
1274
1378
|
# @param Limit: 返回数量,默认为10,最大值为100。
|
@@ -1279,8 +1383,10 @@ module TencentCloud
|
|
1279
1383
|
# task-id - String - (任务ID准确过滤)task-id取值形如:e386471f-139a-4e59-877f-50ece8135b99。
|
1280
1384
|
# task-state - String - (任务状态过滤)取值范围 0(初始化), 1(运行中), 2(成功), -1(失败)。
|
1281
1385
|
# task-sql-keyword - String - (SQL语句关键字模糊过滤)取值形如:DROP TABLE。
|
1386
|
+
# task-operator- string (子uin过滤)
|
1387
|
+
# task-type -string (任务类型过滤)分导入任务和sql任务
|
1282
1388
|
# @type Filters: Array
|
1283
|
-
# @param SortBy: 排序字段,支持如下字段类型,create-time
|
1389
|
+
# @param SortBy: 排序字段,支持如下字段类型,create-time(创建时间,默认)、update-time(更新时间)
|
1284
1390
|
# @type SortBy: String
|
1285
1391
|
# @param Sorting: 排序方式,desc表示正序,asc表示反序, 默认为asc。
|
1286
1392
|
# @type Sorting: String
|
@@ -1288,10 +1394,12 @@ module TencentCloud
|
|
1288
1394
|
# @type StartTime: String
|
1289
1395
|
# @param EndTime: 结束时间点,格式为yyyy-mm-dd HH:MM:SS时间跨度在(0,30天],支持最近45天数据查询。默认为当前时刻
|
1290
1396
|
# @type EndTime: String
|
1397
|
+
# @param DataEngineName: 支持计算资源名字筛选
|
1398
|
+
# @type DataEngineName: String
|
1291
1399
|
|
1292
|
-
attr_accessor :Limit, :Offset, :Filters, :SortBy, :Sorting, :StartTime, :EndTime
|
1400
|
+
attr_accessor :Limit, :Offset, :Filters, :SortBy, :Sorting, :StartTime, :EndTime, :DataEngineName
|
1293
1401
|
|
1294
|
-
def initialize(limit=nil, offset=nil, filters=nil, sortby=nil, sorting=nil, starttime=nil, endtime=nil)
|
1402
|
+
def initialize(limit=nil, offset=nil, filters=nil, sortby=nil, sorting=nil, starttime=nil, endtime=nil, dataenginename=nil)
|
1295
1403
|
@Limit = limit
|
1296
1404
|
@Offset = offset
|
1297
1405
|
@Filters = filters
|
@@ -1299,6 +1407,7 @@ module TencentCloud
|
|
1299
1407
|
@Sorting = sorting
|
1300
1408
|
@StartTime = starttime
|
1301
1409
|
@EndTime = endtime
|
1410
|
+
@DataEngineName = dataenginename
|
1302
1411
|
end
|
1303
1412
|
|
1304
1413
|
def deserialize(params)
|
@@ -1316,6 +1425,7 @@ module TencentCloud
|
|
1316
1425
|
@Sorting = params['Sorting']
|
1317
1426
|
@StartTime = params['StartTime']
|
1318
1427
|
@EndTime = params['EndTime']
|
1428
|
+
@DataEngineName = params['DataEngineName']
|
1319
1429
|
end
|
1320
1430
|
end
|
1321
1431
|
|
@@ -1427,15 +1537,27 @@ module TencentCloud
|
|
1427
1537
|
# @type Filters: Array
|
1428
1538
|
# @param DatasourceConnectionName: 数据库所属的数据源名称
|
1429
1539
|
# @type DatasourceConnectionName: String
|
1540
|
+
# @param Sort: 排序字段
|
1541
|
+
# @type Sort: String
|
1542
|
+
# @param Asc: 排序规则
|
1543
|
+
# @type Asc: Boolean
|
1544
|
+
# @param StartTime: 开始时间
|
1545
|
+
# @type StartTime: String
|
1546
|
+
# @param EndTime: 结束时间
|
1547
|
+
# @type EndTime: String
|
1430
1548
|
|
1431
|
-
attr_accessor :DatabaseName, :Limit, :Offset, :Filters, :DatasourceConnectionName
|
1549
|
+
attr_accessor :DatabaseName, :Limit, :Offset, :Filters, :DatasourceConnectionName, :Sort, :Asc, :StartTime, :EndTime
|
1432
1550
|
|
1433
|
-
def initialize(databasename=nil, limit=nil, offset=nil, filters=nil, datasourceconnectionname=nil)
|
1551
|
+
def initialize(databasename=nil, limit=nil, offset=nil, filters=nil, datasourceconnectionname=nil, sort=nil, asc=nil, starttime=nil, endtime=nil)
|
1434
1552
|
@DatabaseName = databasename
|
1435
1553
|
@Limit = limit
|
1436
1554
|
@Offset = offset
|
1437
1555
|
@Filters = filters
|
1438
1556
|
@DatasourceConnectionName = datasourceconnectionname
|
1557
|
+
@Sort = sort
|
1558
|
+
@Asc = asc
|
1559
|
+
@StartTime = starttime
|
1560
|
+
@EndTime = endtime
|
1439
1561
|
end
|
1440
1562
|
|
1441
1563
|
def deserialize(params)
|
@@ -1451,6 +1573,10 @@ module TencentCloud
|
|
1451
1573
|
end
|
1452
1574
|
end
|
1453
1575
|
@DatasourceConnectionName = params['DatasourceConnectionName']
|
1576
|
+
@Sort = params['Sort']
|
1577
|
+
@Asc = params['Asc']
|
1578
|
+
@StartTime = params['StartTime']
|
1579
|
+
@EndTime = params['EndTime']
|
1454
1580
|
end
|
1455
1581
|
end
|
1456
1582
|
|
@@ -1945,19 +2071,34 @@ module TencentCloud
|
|
1945
2071
|
# @param DatasourceConnectionName: 该数据表所属数据源名字
|
1946
2072
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
1947
2073
|
# @type DatasourceConnectionName: String
|
2074
|
+
# @param TableComment: 该数据表备注
|
2075
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2076
|
+
# @type TableComment: String
|
2077
|
+
# @param Type: 具体类型,表or视图
|
2078
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2079
|
+
# @type Type: String
|
2080
|
+
# @param TableFormat: 数据格式类型,hive,iceberg等
|
2081
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2082
|
+
# @type TableFormat: String
|
1948
2083
|
|
1949
|
-
attr_accessor :DatabaseName, :TableName, :DatasourceConnectionName
|
2084
|
+
attr_accessor :DatabaseName, :TableName, :DatasourceConnectionName, :TableComment, :Type, :TableFormat
|
1950
2085
|
|
1951
|
-
def initialize(databasename=nil, tablename=nil, datasourceconnectionname=nil)
|
2086
|
+
def initialize(databasename=nil, tablename=nil, datasourceconnectionname=nil, tablecomment=nil, type=nil, tableformat=nil)
|
1952
2087
|
@DatabaseName = databasename
|
1953
2088
|
@TableName = tablename
|
1954
2089
|
@DatasourceConnectionName = datasourceconnectionname
|
2090
|
+
@TableComment = tablecomment
|
2091
|
+
@Type = type
|
2092
|
+
@TableFormat = tableformat
|
1955
2093
|
end
|
1956
2094
|
|
1957
2095
|
def deserialize(params)
|
1958
2096
|
@DatabaseName = params['DatabaseName']
|
1959
2097
|
@TableName = params['TableName']
|
1960
2098
|
@DatasourceConnectionName = params['DatasourceConnectionName']
|
2099
|
+
@TableComment = params['TableComment']
|
2100
|
+
@Type = params['Type']
|
2101
|
+
@TableFormat = params['TableFormat']
|
1961
2102
|
end
|
1962
2103
|
end
|
1963
2104
|
|
@@ -2152,10 +2293,34 @@ module TencentCloud
|
|
2152
2293
|
# @param ProgressDetail: 任务进度明细
|
2153
2294
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
2154
2295
|
# @type ProgressDetail: String
|
2296
|
+
# @param UpdateTime: 任务结束时间
|
2297
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2298
|
+
# @type UpdateTime: String
|
2299
|
+
# @param DataEngineId: 计算资源id
|
2300
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2301
|
+
# @type DataEngineId: String
|
2302
|
+
# @param OperateUin: 执行sql的子uin
|
2303
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2304
|
+
# @type OperateUin: String
|
2305
|
+
# @param DataEngineName: 计算资源名字
|
2306
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2307
|
+
# @type DataEngineName: String
|
2308
|
+
# @param InputType: 导入类型是本地导入还是cos
|
2309
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2310
|
+
# @type InputType: String
|
2311
|
+
# @param InputConf: 导入配置
|
2312
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2313
|
+
# @type InputConf: String
|
2314
|
+
# @param DataNumber: 数据条数
|
2315
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2316
|
+
# @type DataNumber: Integer
|
2317
|
+
# @param CanDownload: 查询数据能不能下载
|
2318
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2319
|
+
# @type CanDownload: Boolean
|
2155
2320
|
|
2156
|
-
attr_accessor :DatabaseName, :DataAmount, :Id, :UsedTime, :OutputPath, :CreateTime, :State, :SQLType, :SQL, :ResultExpired, :RowAffectInfo, :DataSet, :Error, :Percentage, :OutputMessage, :TaskType, :ProgressDetail
|
2321
|
+
attr_accessor :DatabaseName, :DataAmount, :Id, :UsedTime, :OutputPath, :CreateTime, :State, :SQLType, :SQL, :ResultExpired, :RowAffectInfo, :DataSet, :Error, :Percentage, :OutputMessage, :TaskType, :ProgressDetail, :UpdateTime, :DataEngineId, :OperateUin, :DataEngineName, :InputType, :InputConf, :DataNumber, :CanDownload
|
2157
2322
|
|
2158
|
-
def initialize(databasename=nil, dataamount=nil, id=nil, usedtime=nil, outputpath=nil, createtime=nil, state=nil, sqltype=nil, sql=nil, resultexpired=nil, rowaffectinfo=nil, dataset=nil, error=nil, percentage=nil, outputmessage=nil, tasktype=nil, progressdetail=nil)
|
2323
|
+
def initialize(databasename=nil, dataamount=nil, id=nil, usedtime=nil, outputpath=nil, createtime=nil, state=nil, sqltype=nil, sql=nil, resultexpired=nil, rowaffectinfo=nil, dataset=nil, error=nil, percentage=nil, outputmessage=nil, tasktype=nil, progressdetail=nil, updatetime=nil, dataengineid=nil, operateuin=nil, dataenginename=nil, inputtype=nil, inputconf=nil, datanumber=nil, candownload=nil)
|
2159
2324
|
@DatabaseName = databasename
|
2160
2325
|
@DataAmount = dataamount
|
2161
2326
|
@Id = id
|
@@ -2173,6 +2338,14 @@ module TencentCloud
|
|
2173
2338
|
@OutputMessage = outputmessage
|
2174
2339
|
@TaskType = tasktype
|
2175
2340
|
@ProgressDetail = progressdetail
|
2341
|
+
@UpdateTime = updatetime
|
2342
|
+
@DataEngineId = dataengineid
|
2343
|
+
@OperateUin = operateuin
|
2344
|
+
@DataEngineName = dataenginename
|
2345
|
+
@InputType = inputtype
|
2346
|
+
@InputConf = inputconf
|
2347
|
+
@DataNumber = datanumber
|
2348
|
+
@CanDownload = candownload
|
2176
2349
|
end
|
2177
2350
|
|
2178
2351
|
def deserialize(params)
|
@@ -2193,6 +2366,109 @@ module TencentCloud
|
|
2193
2366
|
@OutputMessage = params['OutputMessage']
|
2194
2367
|
@TaskType = params['TaskType']
|
2195
2368
|
@ProgressDetail = params['ProgressDetail']
|
2369
|
+
@UpdateTime = params['UpdateTime']
|
2370
|
+
@DataEngineId = params['DataEngineId']
|
2371
|
+
@OperateUin = params['OperateUin']
|
2372
|
+
@DataEngineName = params['DataEngineName']
|
2373
|
+
@InputType = params['InputType']
|
2374
|
+
@InputConf = params['InputConf']
|
2375
|
+
@DataNumber = params['DataNumber']
|
2376
|
+
@CanDownload = params['CanDownload']
|
2377
|
+
end
|
2378
|
+
end
|
2379
|
+
|
2380
|
+
# 任务结果信息
|
2381
|
+
class TaskResultInfo < TencentCloud::Common::AbstractModel
|
2382
|
+
# @param TaskId: 任务唯一ID
|
2383
|
+
# @type TaskId: String
|
2384
|
+
# @param DatasourceConnectionName: 数据源名称,当前任务执行时候选中的默认数据源
|
2385
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2386
|
+
# @type DatasourceConnectionName: String
|
2387
|
+
# @param DatabaseName: 数据库名称,当前任务执行时候选中的默认数据库
|
2388
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2389
|
+
# @type DatabaseName: String
|
2390
|
+
# @param SQL: 当前执行的SQL,一个任务包含一个SQL
|
2391
|
+
# @type SQL: String
|
2392
|
+
# @param SQLType: 执行任务的类型,现在分为DDL、DML、DQL
|
2393
|
+
# @type SQLType: String
|
2394
|
+
# @param State: 任务当前的状态,0:初始化 1:任务运行中 2:任务执行成功 -1:任务执行失败 -3:用户手动终止。只有任务执行成功的情况下,才会返回任务执行的结果
|
2395
|
+
# @type State: Integer
|
2396
|
+
# @param DataAmount: 扫描的数据量,单位byte
|
2397
|
+
# @type DataAmount: Integer
|
2398
|
+
# @param UsedTime: 任务执行耗时,单位秒
|
2399
|
+
# @type UsedTime: Integer
|
2400
|
+
# @param OutputPath: 任务结果输出的COS桶地址
|
2401
|
+
# @type OutputPath: String
|
2402
|
+
# @param CreateTime: 任务创建时间,时间戳
|
2403
|
+
# @type CreateTime: String
|
2404
|
+
# @param OutputMessage: 任务执行信息,成功时返回success,失败时返回失败原因
|
2405
|
+
# @type OutputMessage: String
|
2406
|
+
# @param RowAffectInfo: 被影响的行数
|
2407
|
+
# @type RowAffectInfo: String
|
2408
|
+
# @param ResultSchema: 结果的schema信息
|
2409
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2410
|
+
# @type ResultSchema: Array
|
2411
|
+
# @param ResultSet: 结果信息,反转义后,外层数组的每个元素为一行数据
|
2412
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2413
|
+
# @type ResultSet: String
|
2414
|
+
# @param NextToken: 分页信息,如果没有更多结果数据,nextToken为空
|
2415
|
+
# @type NextToken: String
|
2416
|
+
# @param Percentage: 任务执行进度num/100(%)
|
2417
|
+
# @type Percentage: Integer
|
2418
|
+
# @param ProgressDetail: 任务进度明细
|
2419
|
+
# @type ProgressDetail: String
|
2420
|
+
# @param DisplayFormat: 控制台展示格式。table:表格展示 text:文本展示
|
2421
|
+
# @type DisplayFormat: String
|
2422
|
+
|
2423
|
+
attr_accessor :TaskId, :DatasourceConnectionName, :DatabaseName, :SQL, :SQLType, :State, :DataAmount, :UsedTime, :OutputPath, :CreateTime, :OutputMessage, :RowAffectInfo, :ResultSchema, :ResultSet, :NextToken, :Percentage, :ProgressDetail, :DisplayFormat
|
2424
|
+
|
2425
|
+
def initialize(taskid=nil, datasourceconnectionname=nil, databasename=nil, sql=nil, sqltype=nil, state=nil, dataamount=nil, usedtime=nil, outputpath=nil, createtime=nil, outputmessage=nil, rowaffectinfo=nil, resultschema=nil, resultset=nil, nexttoken=nil, percentage=nil, progressdetail=nil, displayformat=nil)
|
2426
|
+
@TaskId = taskid
|
2427
|
+
@DatasourceConnectionName = datasourceconnectionname
|
2428
|
+
@DatabaseName = databasename
|
2429
|
+
@SQL = sql
|
2430
|
+
@SQLType = sqltype
|
2431
|
+
@State = state
|
2432
|
+
@DataAmount = dataamount
|
2433
|
+
@UsedTime = usedtime
|
2434
|
+
@OutputPath = outputpath
|
2435
|
+
@CreateTime = createtime
|
2436
|
+
@OutputMessage = outputmessage
|
2437
|
+
@RowAffectInfo = rowaffectinfo
|
2438
|
+
@ResultSchema = resultschema
|
2439
|
+
@ResultSet = resultset
|
2440
|
+
@NextToken = nexttoken
|
2441
|
+
@Percentage = percentage
|
2442
|
+
@ProgressDetail = progressdetail
|
2443
|
+
@DisplayFormat = displayformat
|
2444
|
+
end
|
2445
|
+
|
2446
|
+
def deserialize(params)
|
2447
|
+
@TaskId = params['TaskId']
|
2448
|
+
@DatasourceConnectionName = params['DatasourceConnectionName']
|
2449
|
+
@DatabaseName = params['DatabaseName']
|
2450
|
+
@SQL = params['SQL']
|
2451
|
+
@SQLType = params['SQLType']
|
2452
|
+
@State = params['State']
|
2453
|
+
@DataAmount = params['DataAmount']
|
2454
|
+
@UsedTime = params['UsedTime']
|
2455
|
+
@OutputPath = params['OutputPath']
|
2456
|
+
@CreateTime = params['CreateTime']
|
2457
|
+
@OutputMessage = params['OutputMessage']
|
2458
|
+
@RowAffectInfo = params['RowAffectInfo']
|
2459
|
+
unless params['ResultSchema'].nil?
|
2460
|
+
@ResultSchema = []
|
2461
|
+
params['ResultSchema'].each do |i|
|
2462
|
+
column_tmp = Column.new
|
2463
|
+
column_tmp.deserialize(i)
|
2464
|
+
@ResultSchema << column_tmp
|
2465
|
+
end
|
2466
|
+
end
|
2467
|
+
@ResultSet = params['ResultSet']
|
2468
|
+
@NextToken = params['NextToken']
|
2469
|
+
@Percentage = params['Percentage']
|
2470
|
+
@ProgressDetail = params['ProgressDetail']
|
2471
|
+
@DisplayFormat = params['DisplayFormat']
|
2196
2472
|
end
|
2197
2473
|
end
|
2198
2474
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-dlc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.229
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|