tencentcloud-sdk-dlc 3.0.664 → 3.0.666

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a1783830b29280f4d178d0b59fd211789369ccc
4
- data.tar.gz: 7028bb3c53126e3772dc06d860fd53f0cd8e3357
3
+ metadata.gz: 12fa5b1831197566e7a75566d2dfb896735f0574
4
+ data.tar.gz: 15defcd5058401700649f58dc1de03f97fd0b661
5
5
  SHA512:
6
- metadata.gz: 605296fc409b8dffe3a4fb65bd8fc1e717c5c5a89aa15ae200bbacfe1f2f8d7b4aaf3b8170b86142ba861c0c57e22192530b364cf34ef9ebdddf9c045779ee9c
7
- data.tar.gz: aff20020c8a6af380771c8a2a548f684aede18df6ee49b12502cfb28f5f9542527e3af637a3069d8b0546d56199fc8b12376b735414d27a3714bbd09ee74553f
6
+ metadata.gz: d6006734fa4134f71f18a507b8741afd6aff586837e9e71b82f3bf69c078e8d55edc4bea47557cec5f85a5c993846c2bf526efea822bd511e33ff24aced37809
7
+ data.tar.gz: 0ce3be80df52d994de9fd28a8fb1b4f41002791c234c304fa7097779770b154bce7c4ede3242e7496c4b887993aabef4b32d5e181f4d9dfbb6ac2013a64c9988
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.664
1
+ 3.0.666
@@ -1541,6 +1541,30 @@ module TencentCloud
1541
1541
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1542
1542
  end
1543
1543
 
1544
+ # 本接口(DescribeSparkSessionBatchSQL)用于查询Spark SQL批任务运行状态
1545
+
1546
+ # @param request: Request instance for DescribeSparkSessionBatchSQL.
1547
+ # @type request: :class:`Tencentcloud::dlc::V20210125::DescribeSparkSessionBatchSQLRequest`
1548
+ # @rtype: :class:`Tencentcloud::dlc::V20210125::DescribeSparkSessionBatchSQLResponse`
1549
+ def DescribeSparkSessionBatchSQL(request)
1550
+ body = send_request('DescribeSparkSessionBatchSQL', request.serialize)
1551
+ response = JSON.parse(body)
1552
+ if response['Response'].key?('Error') == false
1553
+ model = DescribeSparkSessionBatchSQLResponse.new
1554
+ model.deserialize(response['Response'])
1555
+ model
1556
+ else
1557
+ code = response['Response']['Error']['Code']
1558
+ message = response['Response']['Error']['Message']
1559
+ reqid = response['Response']['RequestId']
1560
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1561
+ end
1562
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1563
+ raise e
1564
+ rescue StandardError => e
1565
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1566
+ end
1567
+
1544
1568
  # 本接口(DescribeSparkSessionBatchSqlLog)用于查询Spark SQL批任务日志
1545
1569
 
1546
1570
  # @param request: Request instance for DescribeSparkSessionBatchSqlLog.
@@ -506,6 +506,33 @@ module TencentCloud
506
506
  end
507
507
  end
508
508
 
509
+ # SparkSQL批任务信息
510
+ class BatchSqlTask < TencentCloud::Common::AbstractModel
511
+ # @param TaskId: SQL子任务唯一标识
512
+ # 注意:此字段可能返回 null,表示取不到有效值。
513
+ # @type TaskId: String
514
+ # @param ExecuteSQL: 运行SQL
515
+ # 注意:此字段可能返回 null,表示取不到有效值。
516
+ # @type ExecuteSQL: String
517
+ # @param Message: 任务信息,成功则返回:Task Success!,失败则返回异常信息
518
+ # 注意:此字段可能返回 null,表示取不到有效值。
519
+ # @type Message: String
520
+
521
+ attr_accessor :TaskId, :ExecuteSQL, :Message
522
+
523
+ def initialize(taskid=nil, executesql=nil, message=nil)
524
+ @TaskId = taskid
525
+ @ExecuteSQL = executesql
526
+ @Message = message
527
+ end
528
+
529
+ def deserialize(params)
530
+ @TaskId = params['TaskId']
531
+ @ExecuteSQL = params['ExecuteSQL']
532
+ @Message = params['Message']
533
+ end
534
+ end
535
+
509
536
  # BindWorkGroupsToUser请求参数结构体
510
537
  class BindWorkGroupsToUserRequest < TencentCloud::Common::AbstractModel
511
538
  # @param AddInfo: 绑定的用户和工作组信息
@@ -5277,6 +5304,58 @@ module TencentCloud
5277
5304
  end
5278
5305
  end
5279
5306
 
5307
+ # DescribeSparkSessionBatchSQL请求参数结构体
5308
+ class DescribeSparkSessionBatchSQLRequest < TencentCloud::Common::AbstractModel
5309
+ # @param BatchId: SparkSQL唯一标识
5310
+ # @type BatchId: String
5311
+
5312
+ attr_accessor :BatchId
5313
+
5314
+ def initialize(batchid=nil)
5315
+ @BatchId = batchid
5316
+ end
5317
+
5318
+ def deserialize(params)
5319
+ @BatchId = params['BatchId']
5320
+ end
5321
+ end
5322
+
5323
+ # DescribeSparkSessionBatchSQL返回参数结构体
5324
+ class DescribeSparkSessionBatchSQLResponse < TencentCloud::Common::AbstractModel
5325
+ # @param State: 状态:0:运行中、1:成功、2:失败、3:取消、4:超时;
5326
+ # @type State: Integer
5327
+ # @param Tasks: SQL子任务列表,仅展示运行完成的子任务,若某个任务运行失败,后续其它子任务不返回
5328
+ # 注意:此字段可能返回 null,表示取不到有效值。
5329
+ # @type Tasks: Array
5330
+ # @param Event: 非sql运行的异常事件信息,包含资源创建失败、调度异常,JOB超时等,正常运行下该Event值为空
5331
+ # @type Event: String
5332
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5333
+ # @type RequestId: String
5334
+
5335
+ attr_accessor :State, :Tasks, :Event, :RequestId
5336
+
5337
+ def initialize(state=nil, tasks=nil, event=nil, requestid=nil)
5338
+ @State = state
5339
+ @Tasks = tasks
5340
+ @Event = event
5341
+ @RequestId = requestid
5342
+ end
5343
+
5344
+ def deserialize(params)
5345
+ @State = params['State']
5346
+ unless params['Tasks'].nil?
5347
+ @Tasks = []
5348
+ params['Tasks'].each do |i|
5349
+ batchsqltask_tmp = BatchSqlTask.new
5350
+ batchsqltask_tmp.deserialize(i)
5351
+ @Tasks << batchsqltask_tmp
5352
+ end
5353
+ end
5354
+ @Event = params['Event']
5355
+ @RequestId = params['RequestId']
5356
+ end
5357
+ end
5358
+
5280
5359
  # DescribeSparkSessionBatchSqlLog请求参数结构体
5281
5360
  class DescribeSparkSessionBatchSqlLogRequest < TencentCloud::Common::AbstractModel
5282
5361
  # @param BatchId: SparkSQL唯一标识
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: 3.0.664
4
+ version: 3.0.666
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-21 00:00:00.000000000 Z
11
+ date: 2023-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common