tencentcloud-sdk-dlc 1.0.228 → 1.0.229

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9cb33e6aced27ff744884bd1ebe61e4448474259
4
- data.tar.gz: 30839d112aeae991cf3b55363df95ac462591a59
3
+ metadata.gz: 557feda4157f096ce2c717d101b74c0e5e52a99c
4
+ data.tar.gz: 72702be6130fbbf1cccea9462e56979024c39c04
5
5
  SHA512:
6
- metadata.gz: 337fd4cd146fb2b8a4777dcc962764d066c351927523ff1cb009d5d8f5f2afacc3b6dd73d17ae23b0b3048798586f31570132a4631ef4d611e9eed10c45d06cc
7
- data.tar.gz: eef3451d31f92df46e5650ce3d74230ab1354077f0a77cfb3110c7aae381ad0b3e098fa223ada250d17aeffa7aaa9cde30231f9574667dd29f7964daed37f72d
6
+ metadata.gz: eefb4c86e317951e607ddc58cf4877fcca2b00f668b33c750304cd2db242dbd093d09f5f7122e813bea44b97fb7c11d5e568cd8c6a8632447c4d46dea2efd23f
7
+ data.tar.gz: 03de21d12e964569bdb5cd1e2ab31b53cb5b5750c2c2a0e932dcbe4ab90e6b797c07c99fd32ba2417a15d5133eac25b857f9c644f688553873f3dd0a080473d2
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.228
1
+ 1.0.229
@@ -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.
@@ -1325,6 +1325,54 @@ module TencentCloud
1325
1325
  end
1326
1326
  end
1327
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
+
1328
1376
  # DescribeTasks请求参数结构体
1329
1377
  class DescribeTasksRequest < TencentCloud::Common::AbstractModel
1330
1378
  # @param Limit: 返回数量,默认为10,最大值为100。
@@ -2329,6 +2377,101 @@ module TencentCloud
2329
2377
  end
2330
2378
  end
2331
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']
2472
+ end
2473
+ end
2474
+
2332
2475
  # 批量顺序执行任务集合
2333
2476
  class TasksInfo < TencentCloud::Common::AbstractModel
2334
2477
  # @param TaskType: 任务类型,SQLTask:SQL查询任务。SparkSQLTask:Spark SQL查询任务
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.228
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-21 00:00:00.000000000 Z
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