tencentcloud-sdk-dlc 3.0.1030 → 3.0.1031
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 +24 -0
- data/lib/v20210125/models.rb +108 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 177e7d621c375514537a985770ece4152cd33625
|
4
|
+
data.tar.gz: 894a30c41e6c0c0fb9e4f30f57adc300f1ec8342
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e2baf3c996271702925e4af2944563c36d3a09d96cc83f654b78df573d5cd4e519aed41fbc3d50810492c17d7e539d37135f64ca0a4c1de222c38eb24ce9c03
|
7
|
+
data.tar.gz: f33d72a03b0b7e26cddebea66d8638b5fd41b19ba35578dad68687e68e5cf8f3de3c753c27cd8f67c3de9302e8dee54b06cad37a96ce3de63fb824f1a5534f13
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1031
|
data/lib/v20210125/client.rb
CHANGED
@@ -845,6 +845,30 @@ module TencentCloud
|
|
845
845
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
846
846
|
end
|
847
847
|
|
848
|
+
# 本接口(CreateSparkSubmitTask)用于提交SparkSbumit批流任务。
|
849
|
+
|
850
|
+
# @param request: Request instance for CreateSparkSubmitTask.
|
851
|
+
# @type request: :class:`Tencentcloud::dlc::V20210125::CreateSparkSubmitTaskRequest`
|
852
|
+
# @rtype: :class:`Tencentcloud::dlc::V20210125::CreateSparkSubmitTaskResponse`
|
853
|
+
def CreateSparkSubmitTask(request)
|
854
|
+
body = send_request('CreateSparkSubmitTask', request.serialize)
|
855
|
+
response = JSON.parse(body)
|
856
|
+
if response['Response'].key?('Error') == false
|
857
|
+
model = CreateSparkSubmitTaskResponse.new
|
858
|
+
model.deserialize(response['Response'])
|
859
|
+
model
|
860
|
+
else
|
861
|
+
code = response['Response']['Error']['Code']
|
862
|
+
message = response['Response']['Error']['Message']
|
863
|
+
reqid = response['Response']['RequestId']
|
864
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
865
|
+
end
|
866
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
867
|
+
raise e
|
868
|
+
rescue StandardError => e
|
869
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
870
|
+
end
|
871
|
+
|
848
872
|
# 该接口(CreateStoreLocation)新增或覆盖计算结果存储位置。
|
849
873
|
|
850
874
|
# @param request: Request instance for CreateStoreLocation.
|
data/lib/v20210125/models.rb
CHANGED
@@ -1762,8 +1762,8 @@ module TencentCloud
|
|
1762
1762
|
|
1763
1763
|
attr_accessor :EngineType, :DataEngineName, :ClusterType, :Mode, :AutoResume, :MinClusters, :MaxClusters, :DefaultDataEngine, :CidrBlock, :Message, :Size, :PayMode, :TimeSpan, :TimeUnit, :AutoRenew, :Tags, :AutoSuspend, :CrontabResumeSuspend, :CrontabResumeSuspendStrategy, :EngineExecType, :MaxConcurrency, :TolerableQueueTime, :AutoSuspendTime, :ResourceType, :DataEngineConfigPairs, :ImageVersionName, :MainClusterName, :ElasticSwitch, :ElasticLimit, :SessionResourceTemplate, :AutoAuthorization, :EngineNetworkId, :EngineGeneration
|
1764
1764
|
extend Gem::Deprecate
|
1765
|
-
deprecate :DefaultDataEngine, :none, 2025,
|
1766
|
-
deprecate :DefaultDataEngine=, :none, 2025,
|
1765
|
+
deprecate :DefaultDataEngine, :none, 2025, 4
|
1766
|
+
deprecate :DefaultDataEngine=, :none, 2025, 4
|
1767
1767
|
|
1768
1768
|
def initialize(enginetype=nil, dataenginename=nil, clustertype=nil, mode=nil, autoresume=nil, minclusters=nil, maxclusters=nil, defaultdataengine=nil, cidrblock=nil, message=nil, size=nil, paymode=nil, timespan=nil, timeunit=nil, autorenew=nil, tags=nil, autosuspend=nil, crontabresumesuspend=nil, crontabresumesuspendstrategy=nil, engineexectype=nil, maxconcurrency=nil, tolerablequeuetime=nil, autosuspendtime=nil, resourcetype=nil, dataengineconfigpairs=nil, imageversionname=nil, mainclustername=nil, elasticswitch=nil, elasticlimit=nil, sessionresourcetemplate=nil, autoauthorization=nil, enginenetworkid=nil, enginegeneration=nil)
|
1769
1769
|
@EngineType = enginetype
|
@@ -2737,6 +2737,108 @@ module TencentCloud
|
|
2737
2737
|
end
|
2738
2738
|
end
|
2739
2739
|
|
2740
|
+
# CreateSparkSubmitTask请求参数结构体
|
2741
|
+
class CreateSparkSubmitTaskRequest < TencentCloud::Common::AbstractModel
|
2742
|
+
# @param TaskName: 任务名称
|
2743
|
+
# @type TaskName: String
|
2744
|
+
# @param TaskType: 任务类型:当前支持1: BatchType, 2: StreamingType, 4: SQLType
|
2745
|
+
# @type TaskType: Integer
|
2746
|
+
# @param DataEngineName: 引擎名称,当前仅支持Spark批作业集群
|
2747
|
+
# @type DataEngineName: String
|
2748
|
+
# @param PackagePath: 指定运行的程序脚本路径,当前仅支持jar和py,对于SQLType该值设为空字符串
|
2749
|
+
# @type PackagePath: String
|
2750
|
+
# @param RoleArn: 指定的鉴权信息
|
2751
|
+
# @type RoleArn: Integer
|
2752
|
+
# @param IsInherit: 运行任务所需资源是否继承自集群上配置资源信息,0(默认,不继承)、1(继承,当设置为该值,则任务级资源配置可不额外指定)
|
2753
|
+
# @type IsInherit: Integer
|
2754
|
+
# @param MainClass: jar任务时需要指定主程序
|
2755
|
+
# @type MainClass: String
|
2756
|
+
# @param DriverSize: 当前DriverSize规格仅支持(内存型集群则使用m前缀的枚举值): small/medium/large/xlarge/m.small/m.medium/m.large/m.xlarge
|
2757
|
+
# @type DriverSize: String
|
2758
|
+
# @param ExecutorSize: 当前ExecutorSize规格仅支持(内存型集群则使用m前缀的枚举值): small/medium/large/xlarge/m.small/m.medium/m.large/m.xlarge
|
2759
|
+
# @type ExecutorSize: String
|
2760
|
+
# @param ExecutorNumbers: 指定使用的executor数量,最小为1
|
2761
|
+
# @type ExecutorNumbers: Integer
|
2762
|
+
# @param ExecutorMaxNumbers: 指定使用的executor最大数量, 当该值大于ExecutorNums则自动开启动态
|
2763
|
+
# @type ExecutorMaxNumbers: Integer
|
2764
|
+
# @param CmdArgs: 提交任务的附加配置集合,当前支持Key包含:MAINARGS:程序入口参数,空格分割(SqlType任务通过该值指定base64加密后的sql)、SPARKCONFIG:Spark配置,以换行符分隔、ENI:Eni连接信息、DEPENDENCYPACKAGEPATH:依赖的程序包(--jars、--py-files:支持py/zip/egg等归档格式),多文件以逗号分隔、DEPENDENCYFILEPATH:依赖文件资源(--files: 非jar、zip),多文件以逗号分隔、DEPENDENCYARCHIVESPATH:依赖archives资源(--archives: 支持tar.gz/tgz/tar等归档格式),多文件以逗号分隔、MAXRETRIES:任务重试次数,非流任务默认为1、SPARKIMAGE:Spark镜像版本号,支持使用dlc镜像/用户自定的tcr镜像运行任务、SPARKIMAGEVERSION:Spark镜像版本名称,与SPARKIMAGE一一对应
|
2765
|
+
# @type CmdArgs: Array
|
2766
|
+
# @param SourceInfo: 任务来源信息
|
2767
|
+
# @type SourceInfo: Array
|
2768
|
+
|
2769
|
+
attr_accessor :TaskName, :TaskType, :DataEngineName, :PackagePath, :RoleArn, :IsInherit, :MainClass, :DriverSize, :ExecutorSize, :ExecutorNumbers, :ExecutorMaxNumbers, :CmdArgs, :SourceInfo
|
2770
|
+
|
2771
|
+
def initialize(taskname=nil, tasktype=nil, dataenginename=nil, packagepath=nil, rolearn=nil, isinherit=nil, mainclass=nil, driversize=nil, executorsize=nil, executornumbers=nil, executormaxnumbers=nil, cmdargs=nil, sourceinfo=nil)
|
2772
|
+
@TaskName = taskname
|
2773
|
+
@TaskType = tasktype
|
2774
|
+
@DataEngineName = dataenginename
|
2775
|
+
@PackagePath = packagepath
|
2776
|
+
@RoleArn = rolearn
|
2777
|
+
@IsInherit = isinherit
|
2778
|
+
@MainClass = mainclass
|
2779
|
+
@DriverSize = driversize
|
2780
|
+
@ExecutorSize = executorsize
|
2781
|
+
@ExecutorNumbers = executornumbers
|
2782
|
+
@ExecutorMaxNumbers = executormaxnumbers
|
2783
|
+
@CmdArgs = cmdargs
|
2784
|
+
@SourceInfo = sourceinfo
|
2785
|
+
end
|
2786
|
+
|
2787
|
+
def deserialize(params)
|
2788
|
+
@TaskName = params['TaskName']
|
2789
|
+
@TaskType = params['TaskType']
|
2790
|
+
@DataEngineName = params['DataEngineName']
|
2791
|
+
@PackagePath = params['PackagePath']
|
2792
|
+
@RoleArn = params['RoleArn']
|
2793
|
+
@IsInherit = params['IsInherit']
|
2794
|
+
@MainClass = params['MainClass']
|
2795
|
+
@DriverSize = params['DriverSize']
|
2796
|
+
@ExecutorSize = params['ExecutorSize']
|
2797
|
+
@ExecutorNumbers = params['ExecutorNumbers']
|
2798
|
+
@ExecutorMaxNumbers = params['ExecutorMaxNumbers']
|
2799
|
+
unless params['CmdArgs'].nil?
|
2800
|
+
@CmdArgs = []
|
2801
|
+
params['CmdArgs'].each do |i|
|
2802
|
+
kvpair_tmp = KVPair.new
|
2803
|
+
kvpair_tmp.deserialize(i)
|
2804
|
+
@CmdArgs << kvpair_tmp
|
2805
|
+
end
|
2806
|
+
end
|
2807
|
+
unless params['SourceInfo'].nil?
|
2808
|
+
@SourceInfo = []
|
2809
|
+
params['SourceInfo'].each do |i|
|
2810
|
+
kvpair_tmp = KVPair.new
|
2811
|
+
kvpair_tmp.deserialize(i)
|
2812
|
+
@SourceInfo << kvpair_tmp
|
2813
|
+
end
|
2814
|
+
end
|
2815
|
+
end
|
2816
|
+
end
|
2817
|
+
|
2818
|
+
# CreateSparkSubmitTask返回参数结构体
|
2819
|
+
class CreateSparkSubmitTaskResponse < TencentCloud::Common::AbstractModel
|
2820
|
+
# @param BatchId: 批作业ID
|
2821
|
+
# @type BatchId: String
|
2822
|
+
# @param TaskId: 批任务ID,用改ID进行任务的查询与删除等
|
2823
|
+
# @type TaskId: String
|
2824
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2825
|
+
# @type RequestId: String
|
2826
|
+
|
2827
|
+
attr_accessor :BatchId, :TaskId, :RequestId
|
2828
|
+
|
2829
|
+
def initialize(batchid=nil, taskid=nil, requestid=nil)
|
2830
|
+
@BatchId = batchid
|
2831
|
+
@TaskId = taskid
|
2832
|
+
@RequestId = requestid
|
2833
|
+
end
|
2834
|
+
|
2835
|
+
def deserialize(params)
|
2836
|
+
@BatchId = params['BatchId']
|
2837
|
+
@TaskId = params['TaskId']
|
2838
|
+
@RequestId = params['RequestId']
|
2839
|
+
end
|
2840
|
+
end
|
2841
|
+
|
2740
2842
|
# CreateStoreLocation请求参数结构体
|
2741
2843
|
class CreateStoreLocationRequest < TencentCloud::Common::AbstractModel
|
2742
2844
|
# @param StoreLocation: 计算结果存储cos路径,如:cosn://bucketname/
|
@@ -12602,10 +12704,10 @@ module TencentCloud
|
|
12602
12704
|
|
12603
12705
|
attr_accessor :DatabaseName, :TableName, :DatasourceConnectionName, :TableComment, :Type, :TableFormat, :UserAlias, :UserSubUin, :GovernPolicy, :DbGovernPolicyIsDisable, :SmartPolicy, :PrimaryKeys
|
12604
12706
|
extend Gem::Deprecate
|
12605
|
-
deprecate :GovernPolicy, :none, 2025,
|
12606
|
-
deprecate :GovernPolicy=, :none, 2025,
|
12607
|
-
deprecate :DbGovernPolicyIsDisable, :none, 2025,
|
12608
|
-
deprecate :DbGovernPolicyIsDisable=, :none, 2025,
|
12707
|
+
deprecate :GovernPolicy, :none, 2025, 4
|
12708
|
+
deprecate :GovernPolicy=, :none, 2025, 4
|
12709
|
+
deprecate :DbGovernPolicyIsDisable, :none, 2025, 4
|
12710
|
+
deprecate :DbGovernPolicyIsDisable=, :none, 2025, 4
|
12609
12711
|
|
12610
12712
|
def initialize(databasename=nil, tablename=nil, datasourceconnectionname=nil, tablecomment=nil, type=nil, tableformat=nil, useralias=nil, usersubuin=nil, governpolicy=nil, dbgovernpolicyisdisable=nil, smartpolicy=nil, primarykeys=nil)
|
12611
12713
|
@DatabaseName = databasename
|
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.1031
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|
@@ -33,8 +33,8 @@ executables: []
|
|
33
33
|
extensions: []
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
|
-
- lib/v20210125/models.rb
|
37
36
|
- lib/v20210125/client.rb
|
37
|
+
- lib/v20210125/models.rb
|
38
38
|
- lib/tencentcloud-sdk-dlc.rb
|
39
39
|
- lib/VERSION
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|