tencentcloud-sdk-dlc 3.0.577 → 3.0.579
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210125/client.rb +72 -0
- data/lib/v20210125/models.rb +232 -0
- 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: e009fa06eb846442537cd285f3c9d453b14e5576
|
4
|
+
data.tar.gz: 54f8713f28845be9b2804d4e81e5976eba7a4b51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f57e1480c0bdc5f196c8430a6864752910e8f12c03ac6df98b6056577edb0b6790087482542f0efe303ec74482b17fc5bbfe7375360e26ff9b1c09f276214887
|
7
|
+
data.tar.gz: fc88f83b32926322244433f225fea7b58559097b17622e2c3ee933673356afbe0c507ce7b97039a74d6e74e4e214acf4aed4043a9123a9a44e3b18b6731d3110
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.579
|
data/lib/v20210125/client.rb
CHANGED
@@ -269,6 +269,30 @@ module TencentCloud
|
|
269
269
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
270
|
end
|
271
271
|
|
272
|
+
# 本接口(CancelSparkSessionBatchSQL)用于取消Spark SQL批任务。
|
273
|
+
|
274
|
+
# @param request: Request instance for CancelSparkSessionBatchSQL.
|
275
|
+
# @type request: :class:`Tencentcloud::dlc::V20210125::CancelSparkSessionBatchSQLRequest`
|
276
|
+
# @rtype: :class:`Tencentcloud::dlc::V20210125::CancelSparkSessionBatchSQLResponse`
|
277
|
+
def CancelSparkSessionBatchSQL(request)
|
278
|
+
body = send_request('CancelSparkSessionBatchSQL', request.serialize)
|
279
|
+
response = JSON.parse(body)
|
280
|
+
if response['Response'].key?('Error') == false
|
281
|
+
model = CancelSparkSessionBatchSQLResponse.new
|
282
|
+
model.deserialize(response['Response'])
|
283
|
+
model
|
284
|
+
else
|
285
|
+
code = response['Response']['Error']['Code']
|
286
|
+
message = response['Response']['Error']['Message']
|
287
|
+
reqid = response['Response']['RequestId']
|
288
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
289
|
+
end
|
290
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
291
|
+
raise e
|
292
|
+
rescue StandardError => e
|
293
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
294
|
+
end
|
295
|
+
|
272
296
|
# 本接口(CancelTask),用于取消任务执行
|
273
297
|
|
274
298
|
# @param request: Request instance for CancelTask.
|
@@ -653,6 +677,30 @@ module TencentCloud
|
|
653
677
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
654
678
|
end
|
655
679
|
|
680
|
+
# 本接口(CreateSparkSessionBatchSQL)用于提交Spark SQL批任务。
|
681
|
+
|
682
|
+
# @param request: Request instance for CreateSparkSessionBatchSQL.
|
683
|
+
# @type request: :class:`Tencentcloud::dlc::V20210125::CreateSparkSessionBatchSQLRequest`
|
684
|
+
# @rtype: :class:`Tencentcloud::dlc::V20210125::CreateSparkSessionBatchSQLResponse`
|
685
|
+
def CreateSparkSessionBatchSQL(request)
|
686
|
+
body = send_request('CreateSparkSessionBatchSQL', request.serialize)
|
687
|
+
response = JSON.parse(body)
|
688
|
+
if response['Response'].key?('Error') == false
|
689
|
+
model = CreateSparkSessionBatchSQLResponse.new
|
690
|
+
model.deserialize(response['Response'])
|
691
|
+
model
|
692
|
+
else
|
693
|
+
code = response['Response']['Error']['Code']
|
694
|
+
message = response['Response']['Error']['Message']
|
695
|
+
reqid = response['Response']['RequestId']
|
696
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
697
|
+
end
|
698
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
699
|
+
raise e
|
700
|
+
rescue StandardError => e
|
701
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
702
|
+
end
|
703
|
+
|
656
704
|
# 该接口(CreateStoreLocation)新增或覆盖计算结果存储位置。
|
657
705
|
|
658
706
|
# @param request: Request instance for CreateStoreLocation.
|
@@ -1469,6 +1517,30 @@ module TencentCloud
|
|
1469
1517
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1470
1518
|
end
|
1471
1519
|
|
1520
|
+
# 本接口(DescribeSparkSessionBatchSqlLog)用于获取SparkSQL批任务日志
|
1521
|
+
|
1522
|
+
# @param request: Request instance for DescribeSparkSessionBatchSqlLog.
|
1523
|
+
# @type request: :class:`Tencentcloud::dlc::V20210125::DescribeSparkSessionBatchSqlLogRequest`
|
1524
|
+
# @rtype: :class:`Tencentcloud::dlc::V20210125::DescribeSparkSessionBatchSqlLogResponse`
|
1525
|
+
def DescribeSparkSessionBatchSqlLog(request)
|
1526
|
+
body = send_request('DescribeSparkSessionBatchSqlLog', request.serialize)
|
1527
|
+
response = JSON.parse(body)
|
1528
|
+
if response['Response'].key?('Error') == false
|
1529
|
+
model = DescribeSparkSessionBatchSqlLogResponse.new
|
1530
|
+
model.deserialize(response['Response'])
|
1531
|
+
model
|
1532
|
+
else
|
1533
|
+
code = response['Response']['Error']['Code']
|
1534
|
+
message = response['Response']['Error']['Message']
|
1535
|
+
reqid = response['Response']['RequestId']
|
1536
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1537
|
+
end
|
1538
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1539
|
+
raise e
|
1540
|
+
rescue StandardError => e
|
1541
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1542
|
+
end
|
1543
|
+
|
1472
1544
|
# 查询计算结果存储位置。
|
1473
1545
|
|
1474
1546
|
# @param request: Request instance for DescribeStoreLocation.
|
data/lib/v20210125/models.rb
CHANGED
@@ -668,6 +668,38 @@ module TencentCloud
|
|
668
668
|
end
|
669
669
|
end
|
670
670
|
|
671
|
+
# CancelSparkSessionBatchSQL请求参数结构体
|
672
|
+
class CancelSparkSessionBatchSQLRequest < TencentCloud::Common::AbstractModel
|
673
|
+
# @param BatchId: 批任务唯一标识
|
674
|
+
# @type BatchId: String
|
675
|
+
|
676
|
+
attr_accessor :BatchId
|
677
|
+
|
678
|
+
def initialize(batchid=nil)
|
679
|
+
@BatchId = batchid
|
680
|
+
end
|
681
|
+
|
682
|
+
def deserialize(params)
|
683
|
+
@BatchId = params['BatchId']
|
684
|
+
end
|
685
|
+
end
|
686
|
+
|
687
|
+
# CancelSparkSessionBatchSQL返回参数结构体
|
688
|
+
class CancelSparkSessionBatchSQLResponse < TencentCloud::Common::AbstractModel
|
689
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
690
|
+
# @type RequestId: String
|
691
|
+
|
692
|
+
attr_accessor :RequestId
|
693
|
+
|
694
|
+
def initialize(requestid=nil)
|
695
|
+
@RequestId = requestid
|
696
|
+
end
|
697
|
+
|
698
|
+
def deserialize(params)
|
699
|
+
@RequestId = params['RequestId']
|
700
|
+
end
|
701
|
+
end
|
702
|
+
|
671
703
|
# CancelTask请求参数结构体
|
672
704
|
class CancelTaskRequest < TencentCloud::Common::AbstractModel
|
673
705
|
# @param TaskId: 任务Id,全局唯一
|
@@ -1861,6 +1893,85 @@ module TencentCloud
|
|
1861
1893
|
end
|
1862
1894
|
end
|
1863
1895
|
|
1896
|
+
# CreateSparkSessionBatchSQL请求参数结构体
|
1897
|
+
class CreateSparkSessionBatchSQLRequest < TencentCloud::Common::AbstractModel
|
1898
|
+
# @param DataEngineName: DLC Spark作业引擎名称
|
1899
|
+
# @type DataEngineName: String
|
1900
|
+
# @param ExecuteSQL: 运行sql
|
1901
|
+
# @type ExecuteSQL: String
|
1902
|
+
# @param DriverSize: 指定的Driver规格,当前支持:small(默认,1cu)、medium(2cu)、large(4cu)、xlarge(8cu)
|
1903
|
+
# @type DriverSize: String
|
1904
|
+
# @param ExecutorSize: 指定的Executor规格,当前支持:small(默认,1cu)、medium(2cu)、large(4cu)、xlarge(8cu)
|
1905
|
+
# @type ExecutorSize: String
|
1906
|
+
# @param ExecutorNumbers: 指定的Executor数量,默认为1
|
1907
|
+
# @type ExecutorNumbers: Integer
|
1908
|
+
# @param ExecutorMaxNumbers: 指定的Executor数量(最大值),默认为1,当开启动态分配有效,若未开启,则该值等于ExecutorNumbers
|
1909
|
+
# @type ExecutorMaxNumbers: Integer
|
1910
|
+
# @param TimeoutInSecond: 指定的Session超时时间,单位秒,默认3600秒
|
1911
|
+
# @type TimeoutInSecond: Integer
|
1912
|
+
# @param SessionId: Session唯一标识,当指定sessionid,则使用该session运行任务。
|
1913
|
+
# @type SessionId: String
|
1914
|
+
# @param SessionName: 指定要创建的session名称
|
1915
|
+
# @type SessionName: String
|
1916
|
+
# @param Arguments: Session相关配置,当前支持:dlc.eni、dlc.role.arn、dlc.sql.set.config以及用户指定的配置,注:roleArn必填;
|
1917
|
+
# @type Arguments: Array
|
1918
|
+
|
1919
|
+
attr_accessor :DataEngineName, :ExecuteSQL, :DriverSize, :ExecutorSize, :ExecutorNumbers, :ExecutorMaxNumbers, :TimeoutInSecond, :SessionId, :SessionName, :Arguments
|
1920
|
+
|
1921
|
+
def initialize(dataenginename=nil, executesql=nil, driversize=nil, executorsize=nil, executornumbers=nil, executormaxnumbers=nil, timeoutinsecond=nil, sessionid=nil, sessionname=nil, arguments=nil)
|
1922
|
+
@DataEngineName = dataenginename
|
1923
|
+
@ExecuteSQL = executesql
|
1924
|
+
@DriverSize = driversize
|
1925
|
+
@ExecutorSize = executorsize
|
1926
|
+
@ExecutorNumbers = executornumbers
|
1927
|
+
@ExecutorMaxNumbers = executormaxnumbers
|
1928
|
+
@TimeoutInSecond = timeoutinsecond
|
1929
|
+
@SessionId = sessionid
|
1930
|
+
@SessionName = sessionname
|
1931
|
+
@Arguments = arguments
|
1932
|
+
end
|
1933
|
+
|
1934
|
+
def deserialize(params)
|
1935
|
+
@DataEngineName = params['DataEngineName']
|
1936
|
+
@ExecuteSQL = params['ExecuteSQL']
|
1937
|
+
@DriverSize = params['DriverSize']
|
1938
|
+
@ExecutorSize = params['ExecutorSize']
|
1939
|
+
@ExecutorNumbers = params['ExecutorNumbers']
|
1940
|
+
@ExecutorMaxNumbers = params['ExecutorMaxNumbers']
|
1941
|
+
@TimeoutInSecond = params['TimeoutInSecond']
|
1942
|
+
@SessionId = params['SessionId']
|
1943
|
+
@SessionName = params['SessionName']
|
1944
|
+
unless params['Arguments'].nil?
|
1945
|
+
@Arguments = []
|
1946
|
+
params['Arguments'].each do |i|
|
1947
|
+
kvpair_tmp = KVPair.new
|
1948
|
+
kvpair_tmp.deserialize(i)
|
1949
|
+
@Arguments << kvpair_tmp
|
1950
|
+
end
|
1951
|
+
end
|
1952
|
+
end
|
1953
|
+
end
|
1954
|
+
|
1955
|
+
# CreateSparkSessionBatchSQL返回参数结构体
|
1956
|
+
class CreateSparkSessionBatchSQLResponse < TencentCloud::Common::AbstractModel
|
1957
|
+
# @param BatchId: 批任务唯一标识
|
1958
|
+
# @type BatchId: String
|
1959
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1960
|
+
# @type RequestId: String
|
1961
|
+
|
1962
|
+
attr_accessor :BatchId, :RequestId
|
1963
|
+
|
1964
|
+
def initialize(batchid=nil, requestid=nil)
|
1965
|
+
@BatchId = batchid
|
1966
|
+
@RequestId = requestid
|
1967
|
+
end
|
1968
|
+
|
1969
|
+
def deserialize(params)
|
1970
|
+
@BatchId = params['BatchId']
|
1971
|
+
@RequestId = params['RequestId']
|
1972
|
+
end
|
1973
|
+
end
|
1974
|
+
|
1864
1975
|
# CreateStoreLocation请求参数结构体
|
1865
1976
|
class CreateStoreLocationRequest < TencentCloud::Common::AbstractModel
|
1866
1977
|
# @param StoreLocation: 计算结果存储cos路径,如:cosn://bucketname/
|
@@ -4659,6 +4770,54 @@ module TencentCloud
|
|
4659
4770
|
end
|
4660
4771
|
end
|
4661
4772
|
|
4773
|
+
# DescribeSparkSessionBatchSqlLog请求参数结构体
|
4774
|
+
class DescribeSparkSessionBatchSqlLogRequest < TencentCloud::Common::AbstractModel
|
4775
|
+
# @param BatchId: SparkSQL唯一标识
|
4776
|
+
# @type BatchId: String
|
4777
|
+
|
4778
|
+
attr_accessor :BatchId
|
4779
|
+
|
4780
|
+
def initialize(batchid=nil)
|
4781
|
+
@BatchId = batchid
|
4782
|
+
end
|
4783
|
+
|
4784
|
+
def deserialize(params)
|
4785
|
+
@BatchId = params['BatchId']
|
4786
|
+
end
|
4787
|
+
end
|
4788
|
+
|
4789
|
+
# DescribeSparkSessionBatchSqlLog返回参数结构体
|
4790
|
+
class DescribeSparkSessionBatchSqlLogResponse < TencentCloud::Common::AbstractModel
|
4791
|
+
# @param State: 状态:0:初始化、1:成功、2:失败、3:取消、4:异常;
|
4792
|
+
# @type State: Integer
|
4793
|
+
# @param LogSet: 日志信息列表
|
4794
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4795
|
+
# @type LogSet: Array
|
4796
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4797
|
+
# @type RequestId: String
|
4798
|
+
|
4799
|
+
attr_accessor :State, :LogSet, :RequestId
|
4800
|
+
|
4801
|
+
def initialize(state=nil, logset=nil, requestid=nil)
|
4802
|
+
@State = state
|
4803
|
+
@LogSet = logset
|
4804
|
+
@RequestId = requestid
|
4805
|
+
end
|
4806
|
+
|
4807
|
+
def deserialize(params)
|
4808
|
+
@State = params['State']
|
4809
|
+
unless params['LogSet'].nil?
|
4810
|
+
@LogSet = []
|
4811
|
+
params['LogSet'].each do |i|
|
4812
|
+
sparksessionbatchlog_tmp = SparkSessionBatchLog.new
|
4813
|
+
sparksessionbatchlog_tmp.deserialize(i)
|
4814
|
+
@LogSet << sparksessionbatchlog_tmp
|
4815
|
+
end
|
4816
|
+
end
|
4817
|
+
@RequestId = params['RequestId']
|
4818
|
+
end
|
4819
|
+
end
|
4820
|
+
|
4662
4821
|
# DescribeStoreLocation请求参数结构体
|
4663
4822
|
class DescribeStoreLocationRequest < TencentCloud::Common::AbstractModel
|
4664
4823
|
|
@@ -6897,6 +7056,79 @@ module TencentCloud
|
|
6897
7056
|
end
|
6898
7057
|
end
|
6899
7058
|
|
7059
|
+
# SparkSQL批任务运行日志
|
7060
|
+
class SparkSessionBatchLog < TencentCloud::Common::AbstractModel
|
7061
|
+
# @param Step: 日志步骤:BEG/CS/DS/DSS/DSF/FINF/RTO/CANCEL/CT/DT/DTS/DTF/FINT/EXCE
|
7062
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7063
|
+
# @type Step: String
|
7064
|
+
# @param Time: 时间
|
7065
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7066
|
+
# @type Time: String
|
7067
|
+
# @param Message: 日志提示
|
7068
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7069
|
+
# @type Message: String
|
7070
|
+
# @param Operate: 日志操作
|
7071
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7072
|
+
# @type Operate: Array
|
7073
|
+
|
7074
|
+
attr_accessor :Step, :Time, :Message, :Operate
|
7075
|
+
|
7076
|
+
def initialize(step=nil, time=nil, message=nil, operate=nil)
|
7077
|
+
@Step = step
|
7078
|
+
@Time = time
|
7079
|
+
@Message = message
|
7080
|
+
@Operate = operate
|
7081
|
+
end
|
7082
|
+
|
7083
|
+
def deserialize(params)
|
7084
|
+
@Step = params['Step']
|
7085
|
+
@Time = params['Time']
|
7086
|
+
@Message = params['Message']
|
7087
|
+
unless params['Operate'].nil?
|
7088
|
+
@Operate = []
|
7089
|
+
params['Operate'].each do |i|
|
7090
|
+
sparksessionbatchlogoperate_tmp = SparkSessionBatchLogOperate.new
|
7091
|
+
sparksessionbatchlogoperate_tmp.deserialize(i)
|
7092
|
+
@Operate << sparksessionbatchlogoperate_tmp
|
7093
|
+
end
|
7094
|
+
end
|
7095
|
+
end
|
7096
|
+
end
|
7097
|
+
|
7098
|
+
# SparkSQL批任务日志操作信息。
|
7099
|
+
class SparkSessionBatchLogOperate < TencentCloud::Common::AbstractModel
|
7100
|
+
# @param Text: 操作提示
|
7101
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7102
|
+
# @type Text: String
|
7103
|
+
# @param Operate: 操作类型:COPY、LOG、UI、RESULT、List、TAB
|
7104
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7105
|
+
# @type Operate: String
|
7106
|
+
# @param Supplement: 补充信息:如:taskid、sessionid、sparkui等
|
7107
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7108
|
+
# @type Supplement: Array
|
7109
|
+
|
7110
|
+
attr_accessor :Text, :Operate, :Supplement
|
7111
|
+
|
7112
|
+
def initialize(text=nil, operate=nil, supplement=nil)
|
7113
|
+
@Text = text
|
7114
|
+
@Operate = operate
|
7115
|
+
@Supplement = supplement
|
7116
|
+
end
|
7117
|
+
|
7118
|
+
def deserialize(params)
|
7119
|
+
@Text = params['Text']
|
7120
|
+
@Operate = params['Operate']
|
7121
|
+
unless params['Supplement'].nil?
|
7122
|
+
@Supplement = []
|
7123
|
+
params['Supplement'].each do |i|
|
7124
|
+
kvpair_tmp = KVPair.new
|
7125
|
+
kvpair_tmp.deserialize(i)
|
7126
|
+
@Supplement << kvpair_tmp
|
7127
|
+
end
|
7128
|
+
end
|
7129
|
+
end
|
7130
|
+
end
|
7131
|
+
|
6900
7132
|
# notebook session statement输出信息。
|
6901
7133
|
class StatementOutput < TencentCloud::Common::AbstractModel
|
6902
7134
|
# @param ExecutionCount: 执行总数
|
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.
|
4
|
+
version: 3.0.579
|
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-05-
|
11
|
+
date: 2023-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|