tencentcloud-sdk-dlc 3.0.501 → 3.0.502

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: 6b33642f16932fac163701b67d02aaf408af8c1f
4
- data.tar.gz: a629d51eb2555589f54c6cd35b4f38fcf1ef9b42
3
+ metadata.gz: 23439ca08b2cfe4b6a98c672636f94a4626306ca
4
+ data.tar.gz: e96d5bc563da882e9fbfb9b4955aa57cb0d3fa21
5
5
  SHA512:
6
- metadata.gz: 05e6e241403bcff2e6bd5d5e01853cbdca2895e66be6823343aa199babe6e981be5070acdc2922366ec1fa80a54639395bfbb26e1a4581211025d999ef00f6de
7
- data.tar.gz: 26e067f26b6fe2fd894f32efdf2d8d34989af1750932e84f96e2e9232e19be0fd1d3eccbe0e3b900872de9dc9c80e4d6f48527eadbc4cd52420324c9ac345f7b
6
+ metadata.gz: 0066cdaa9b05882b821cba51fac90b87ad307d1bc9b9c585a5e1630f3f737be8858f0ce4a82832b80a4a76f342cd29021719d85a4449bf0e7f5d64771d1b310f
7
+ data.tar.gz: 17ec652c5cb1b31044eb0de6c89acd643e64c38ba3202da2602f79bbca34b97e3e941233d9c8aa2ff91b29fea2ce4b7f4de988e690f46cc9a436af88d2da237b
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.501
1
+ 3.0.502
@@ -389,6 +389,30 @@ module TencentCloud
389
389
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
390
390
  end
391
391
 
392
+ # 本接口(CreateNotebookSession)用于创建notebook livy session
393
+
394
+ # @param request: Request instance for CreateNotebookSession.
395
+ # @type request: :class:`Tencentcloud::dlc::V20210125::CreateNotebookSessionRequest`
396
+ # @rtype: :class:`Tencentcloud::dlc::V20210125::CreateNotebookSessionResponse`
397
+ def CreateNotebookSession(request)
398
+ body = send_request('CreateNotebookSession', request.serialize)
399
+ response = JSON.parse(body)
400
+ if response['Response'].key?('Error') == false
401
+ model = CreateNotebookSessionResponse.new
402
+ model.deserialize(response['Response'])
403
+ model
404
+ else
405
+ code = response['Response']['Error']['Code']
406
+ message = response['Response']['Error']['Message']
407
+ reqid = response['Response']['RequestId']
408
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
409
+ end
410
+ rescue TencentCloud::Common::TencentCloudSDKException => e
411
+ raise e
412
+ rescue StandardError => e
413
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
414
+ end
415
+
392
416
  # 创建查询结果下载任务
393
417
 
394
418
  # @param request: Request instance for CreateResultDownload.
@@ -893,6 +917,30 @@ module TencentCloud
893
917
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
894
918
  end
895
919
 
920
+ # 本接口(DescribeNotebookSession)用于获取notebook livy session详情信息
921
+
922
+ # @param request: Request instance for DescribeNotebookSession.
923
+ # @type request: :class:`Tencentcloud::dlc::V20210125::DescribeNotebookSessionRequest`
924
+ # @rtype: :class:`Tencentcloud::dlc::V20210125::DescribeNotebookSessionResponse`
925
+ def DescribeNotebookSession(request)
926
+ body = send_request('DescribeNotebookSession', request.serialize)
927
+ response = JSON.parse(body)
928
+ if response['Response'].key?('Error') == false
929
+ model = DescribeNotebookSessionResponse.new
930
+ model.deserialize(response['Response'])
931
+ model
932
+ else
933
+ code = response['Response']['Error']['Code']
934
+ message = response['Response']['Error']['Message']
935
+ reqid = response['Response']['RequestId']
936
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
937
+ end
938
+ rescue TencentCloud::Common::TencentCloudSDKException => e
939
+ raise e
940
+ rescue StandardError => e
941
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
942
+ end
943
+
896
944
  # 查询结果下载任务
897
945
 
898
946
  # @param request: Request instance for DescribeResultDownload.
@@ -1079,6 +1079,110 @@ module TencentCloud
1079
1079
  end
1080
1080
  end
1081
1081
 
1082
+ # CreateNotebookSession请求参数结构体
1083
+ class CreateNotebookSessionRequest < TencentCloud::Common::AbstractModel
1084
+ # @param Name: Session名称
1085
+ # @type Name: String
1086
+ # @param Kind: 类型,当前支持:spark、pyspark、sparkr、sql
1087
+ # @type Kind: String
1088
+ # @param DataEngineName: DLC Spark作业引擎名称
1089
+ # @type DataEngineName: String
1090
+ # @param ProgramDependentFiles: session文件地址,当前支持:cosn://和lakefs://两种路径
1091
+ # @type ProgramDependentFiles: Array
1092
+ # @param ProgramDependentJars: 依赖的jar程序地址,当前支持:cosn://和lakefs://两种路径
1093
+ # @type ProgramDependentJars: Array
1094
+ # @param ProgramDependentPython: 依赖的python程序地址,当前支持:cosn://和lakefs://两种路径
1095
+ # @type ProgramDependentPython: Array
1096
+ # @param ProgramArchives: 依赖的pyspark虚拟环境地址,当前支持:cosn://和lakefs://两种路径
1097
+ # @type ProgramArchives: Array
1098
+ # @param DriverSize: 指定的Driver规格,当前支持:small(默认,1cu)、medium(2cu)、large(4cu)、xlarge(8cu)
1099
+ # @type DriverSize: String
1100
+ # @param ExecutorSize: 指定的Executor规格,当前支持:small(默认,1cu)、medium(2cu)、large(4cu)、xlarge(8cu)
1101
+ # @type ExecutorSize: String
1102
+ # @param ExecutorNumbers: 指定的Executor数量,默认为1
1103
+ # @type ExecutorNumbers: Integer
1104
+ # @param Arguments: Session相关配置,当前支持:dlc.eni、dlc.role.arn、dlc.sql.set.config以及用户指定的配置,注:roleArn必填;
1105
+ # @type Arguments: Array
1106
+ # @param ProxyUser: 代理用户,默认为root
1107
+ # @type ProxyUser: String
1108
+ # @param TimeoutInSecond: 指定的Session超时时间,单位秒,默认3600秒
1109
+ # @type TimeoutInSecond: Integer
1110
+ # @param ExecutorMaxNumbers: 指定的Executor数量(最大值),默认为1,当开启动态分配有效,若未开启,则该值等于ExecutorNumbers
1111
+ # @type ExecutorMaxNumbers: Integer
1112
+
1113
+ attr_accessor :Name, :Kind, :DataEngineName, :ProgramDependentFiles, :ProgramDependentJars, :ProgramDependentPython, :ProgramArchives, :DriverSize, :ExecutorSize, :ExecutorNumbers, :Arguments, :ProxyUser, :TimeoutInSecond, :ExecutorMaxNumbers
1114
+
1115
+ def initialize(name=nil, kind=nil, dataenginename=nil, programdependentfiles=nil, programdependentjars=nil, programdependentpython=nil, programarchives=nil, driversize=nil, executorsize=nil, executornumbers=nil, arguments=nil, proxyuser=nil, timeoutinsecond=nil, executormaxnumbers=nil)
1116
+ @Name = name
1117
+ @Kind = kind
1118
+ @DataEngineName = dataenginename
1119
+ @ProgramDependentFiles = programdependentfiles
1120
+ @ProgramDependentJars = programdependentjars
1121
+ @ProgramDependentPython = programdependentpython
1122
+ @ProgramArchives = programarchives
1123
+ @DriverSize = driversize
1124
+ @ExecutorSize = executorsize
1125
+ @ExecutorNumbers = executornumbers
1126
+ @Arguments = arguments
1127
+ @ProxyUser = proxyuser
1128
+ @TimeoutInSecond = timeoutinsecond
1129
+ @ExecutorMaxNumbers = executormaxnumbers
1130
+ end
1131
+
1132
+ def deserialize(params)
1133
+ @Name = params['Name']
1134
+ @Kind = params['Kind']
1135
+ @DataEngineName = params['DataEngineName']
1136
+ @ProgramDependentFiles = params['ProgramDependentFiles']
1137
+ @ProgramDependentJars = params['ProgramDependentJars']
1138
+ @ProgramDependentPython = params['ProgramDependentPython']
1139
+ @ProgramArchives = params['ProgramArchives']
1140
+ @DriverSize = params['DriverSize']
1141
+ @ExecutorSize = params['ExecutorSize']
1142
+ @ExecutorNumbers = params['ExecutorNumbers']
1143
+ unless params['Arguments'].nil?
1144
+ @Arguments = []
1145
+ params['Arguments'].each do |i|
1146
+ kvpair_tmp = KVPair.new
1147
+ kvpair_tmp.deserialize(i)
1148
+ @Arguments << kvpair_tmp
1149
+ end
1150
+ end
1151
+ @ProxyUser = params['ProxyUser']
1152
+ @TimeoutInSecond = params['TimeoutInSecond']
1153
+ @ExecutorMaxNumbers = params['ExecutorMaxNumbers']
1154
+ end
1155
+ end
1156
+
1157
+ # CreateNotebookSession返回参数结构体
1158
+ class CreateNotebookSessionResponse < TencentCloud::Common::AbstractModel
1159
+ # @param SessionId: Session唯一标识
1160
+ # @type SessionId: String
1161
+ # @param SparkAppId: Spark任务返回的AppId
1162
+ # 注意:此字段可能返回 null,表示取不到有效值。
1163
+ # @type SparkAppId: String
1164
+ # @param State: Session状态,包含:not_started(未启动)、starting(已启动)、idle(等待输入)、busy(正在运行statement)、shutting_down(停止)、error(异常)、dead(已退出)、killed(被杀死)、success(正常停止)
1165
+ # @type State: String
1166
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1167
+ # @type RequestId: String
1168
+
1169
+ attr_accessor :SessionId, :SparkAppId, :State, :RequestId
1170
+
1171
+ def initialize(sessionid=nil, sparkappid=nil, state=nil, requestid=nil)
1172
+ @SessionId = sessionid
1173
+ @SparkAppId = sparkappid
1174
+ @State = state
1175
+ @RequestId = requestid
1176
+ end
1177
+
1178
+ def deserialize(params)
1179
+ @SessionId = params['SessionId']
1180
+ @SparkAppId = params['SparkAppId']
1181
+ @State = params['State']
1182
+ @RequestId = params['RequestId']
1183
+ end
1184
+ end
1185
+
1082
1186
  # CreateResultDownload请求参数结构体
1083
1187
  class CreateResultDownloadRequest < TencentCloud::Common::AbstractModel
1084
1188
  # @param TaskId: 查询结果任务Id
@@ -2934,6 +3038,45 @@ module TencentCloud
2934
3038
  end
2935
3039
  end
2936
3040
 
3041
+ # DescribeNotebookSession请求参数结构体
3042
+ class DescribeNotebookSessionRequest < TencentCloud::Common::AbstractModel
3043
+ # @param SessionId: Session唯一标识
3044
+ # @type SessionId: String
3045
+
3046
+ attr_accessor :SessionId
3047
+
3048
+ def initialize(sessionid=nil)
3049
+ @SessionId = sessionid
3050
+ end
3051
+
3052
+ def deserialize(params)
3053
+ @SessionId = params['SessionId']
3054
+ end
3055
+ end
3056
+
3057
+ # DescribeNotebookSession返回参数结构体
3058
+ class DescribeNotebookSessionResponse < TencentCloud::Common::AbstractModel
3059
+ # @param Session: Session详情信息
3060
+ # @type Session: :class:`Tencentcloud::Dlc.v20210125.models.NotebookSessionInfo`
3061
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3062
+ # @type RequestId: String
3063
+
3064
+ attr_accessor :Session, :RequestId
3065
+
3066
+ def initialize(session=nil, requestid=nil)
3067
+ @Session = session
3068
+ @RequestId = requestid
3069
+ end
3070
+
3071
+ def deserialize(params)
3072
+ unless params['Session'].nil?
3073
+ @Session = NotebookSessionInfo.new
3074
+ @Session.deserialize(params['Session'])
3075
+ end
3076
+ @RequestId = params['RequestId']
3077
+ end
3078
+ end
3079
+
2937
3080
  # DescribeResultDownload请求参数结构体
2938
3081
  class DescribeResultDownloadRequest < TencentCloud::Common::AbstractModel
2939
3082
  # @param DownloadId: 查询任务Id
@@ -4542,6 +4685,126 @@ module TencentCloud
4542
4685
  end
4543
4686
  end
4544
4687
 
4688
+ # Notebook Session详细信息。
4689
+ class NotebookSessionInfo < TencentCloud::Common::AbstractModel
4690
+ # @param Name: Session名称
4691
+ # @type Name: String
4692
+ # @param Kind: 类型,当前支持:spark、pyspark、sparkr、sql
4693
+ # @type Kind: String
4694
+ # @param DataEngineName: DLC Spark作业引擎名称
4695
+ # @type DataEngineName: String
4696
+ # @param Arguments: Session相关配置,当前支持:eni、roleArn以及用户指定的配置
4697
+ # 注意:此字段可能返回 null,表示取不到有效值。
4698
+ # @type Arguments: Array
4699
+ # @param ProgramDependentFiles: 运行程序地址,当前支持:cosn://和lakefs://两种路径
4700
+ # 注意:此字段可能返回 null,表示取不到有效值。
4701
+ # @type ProgramDependentFiles: Array
4702
+ # @param ProgramDependentJars: 依赖的jar程序地址,当前支持:cosn://和lakefs://两种路径
4703
+ # 注意:此字段可能返回 null,表示取不到有效值。
4704
+ # @type ProgramDependentJars: Array
4705
+ # @param ProgramDependentPython: 依赖的python程序地址,当前支持:cosn://和lakefs://两种路径
4706
+ # 注意:此字段可能返回 null,表示取不到有效值。
4707
+ # @type ProgramDependentPython: Array
4708
+ # @param ProgramArchives: 依赖的pyspark虚拟环境地址,当前支持:cosn://和lakefs://两种路径
4709
+ # 注意:此字段可能返回 null,表示取不到有效值。
4710
+ # @type ProgramArchives: Array
4711
+ # @param DriverSize: 指定的Driver规格,当前支持:small(默认,1cu)、medium(2cu)、large(4cu)、xlarge(8cu)
4712
+ # 注意:此字段可能返回 null,表示取不到有效值。
4713
+ # @type DriverSize: String
4714
+ # @param ExecutorSize: 指定的Executor规格,当前支持:small(默认,1cu)、medium(2cu)、large(4cu)、xlarge(8cu)
4715
+ # 注意:此字段可能返回 null,表示取不到有效值。
4716
+ # @type ExecutorSize: String
4717
+ # @param ExecutorNumbers: 指定的Executor数量,默认为1
4718
+ # 注意:此字段可能返回 null,表示取不到有效值。
4719
+ # @type ExecutorNumbers: Integer
4720
+ # @param ProxyUser: 代理用户,默认为root
4721
+ # 注意:此字段可能返回 null,表示取不到有效值。
4722
+ # @type ProxyUser: String
4723
+ # @param TimeoutInSecond: 指定的Session超时时间,单位秒,默认3600秒
4724
+ # 注意:此字段可能返回 null,表示取不到有效值。
4725
+ # @type TimeoutInSecond: Integer
4726
+ # @param SparkAppId: Spark任务返回的AppId
4727
+ # 注意:此字段可能返回 null,表示取不到有效值。
4728
+ # @type SparkAppId: String
4729
+ # @param SessionId: Session唯一标识
4730
+ # @type SessionId: String
4731
+ # @param State: Session状态,包含:not_started(未启动)、starting(已启动)、idle(等待输入)、busy(正在运行statement)、shutting_down(停止)、error(异常)、dead(已退出)、killed(被杀死)、success(正常停止)
4732
+ # @type State: String
4733
+ # @param CreateTime: Session创建时间
4734
+ # @type CreateTime: String
4735
+ # @param AppInfo: 其它信息
4736
+ # 注意:此字段可能返回 null,表示取不到有效值。
4737
+ # @type AppInfo: Array
4738
+ # @param SparkUiUrl: Spark ui地址
4739
+ # 注意:此字段可能返回 null,表示取不到有效值。
4740
+ # @type SparkUiUrl: String
4741
+ # @param ExecutorMaxNumbers: 指定的Executor数量(最大值),默认为1,当开启动态分配有效,若未开启,则该值等于ExecutorNumbers
4742
+ # 注意:此字段可能返回 null,表示取不到有效值。
4743
+ # @type ExecutorMaxNumbers: Integer
4744
+
4745
+ attr_accessor :Name, :Kind, :DataEngineName, :Arguments, :ProgramDependentFiles, :ProgramDependentJars, :ProgramDependentPython, :ProgramArchives, :DriverSize, :ExecutorSize, :ExecutorNumbers, :ProxyUser, :TimeoutInSecond, :SparkAppId, :SessionId, :State, :CreateTime, :AppInfo, :SparkUiUrl, :ExecutorMaxNumbers
4746
+
4747
+ def initialize(name=nil, kind=nil, dataenginename=nil, arguments=nil, programdependentfiles=nil, programdependentjars=nil, programdependentpython=nil, programarchives=nil, driversize=nil, executorsize=nil, executornumbers=nil, proxyuser=nil, timeoutinsecond=nil, sparkappid=nil, sessionid=nil, state=nil, createtime=nil, appinfo=nil, sparkuiurl=nil, executormaxnumbers=nil)
4748
+ @Name = name
4749
+ @Kind = kind
4750
+ @DataEngineName = dataenginename
4751
+ @Arguments = arguments
4752
+ @ProgramDependentFiles = programdependentfiles
4753
+ @ProgramDependentJars = programdependentjars
4754
+ @ProgramDependentPython = programdependentpython
4755
+ @ProgramArchives = programarchives
4756
+ @DriverSize = driversize
4757
+ @ExecutorSize = executorsize
4758
+ @ExecutorNumbers = executornumbers
4759
+ @ProxyUser = proxyuser
4760
+ @TimeoutInSecond = timeoutinsecond
4761
+ @SparkAppId = sparkappid
4762
+ @SessionId = sessionid
4763
+ @State = state
4764
+ @CreateTime = createtime
4765
+ @AppInfo = appinfo
4766
+ @SparkUiUrl = sparkuiurl
4767
+ @ExecutorMaxNumbers = executormaxnumbers
4768
+ end
4769
+
4770
+ def deserialize(params)
4771
+ @Name = params['Name']
4772
+ @Kind = params['Kind']
4773
+ @DataEngineName = params['DataEngineName']
4774
+ unless params['Arguments'].nil?
4775
+ @Arguments = []
4776
+ params['Arguments'].each do |i|
4777
+ kvpair_tmp = KVPair.new
4778
+ kvpair_tmp.deserialize(i)
4779
+ @Arguments << kvpair_tmp
4780
+ end
4781
+ end
4782
+ @ProgramDependentFiles = params['ProgramDependentFiles']
4783
+ @ProgramDependentJars = params['ProgramDependentJars']
4784
+ @ProgramDependentPython = params['ProgramDependentPython']
4785
+ @ProgramArchives = params['ProgramArchives']
4786
+ @DriverSize = params['DriverSize']
4787
+ @ExecutorSize = params['ExecutorSize']
4788
+ @ExecutorNumbers = params['ExecutorNumbers']
4789
+ @ProxyUser = params['ProxyUser']
4790
+ @TimeoutInSecond = params['TimeoutInSecond']
4791
+ @SparkAppId = params['SparkAppId']
4792
+ @SessionId = params['SessionId']
4793
+ @State = params['State']
4794
+ @CreateTime = params['CreateTime']
4795
+ unless params['AppInfo'].nil?
4796
+ @AppInfo = []
4797
+ params['AppInfo'].each do |i|
4798
+ kvpair_tmp = KVPair.new
4799
+ kvpair_tmp.deserialize(i)
4800
+ @AppInfo << kvpair_tmp
4801
+ end
4802
+ end
4803
+ @SparkUiUrl = params['SparkUiUrl']
4804
+ @ExecutorMaxNumbers = params['ExecutorMaxNumbers']
4805
+ end
4806
+ end
4807
+
4545
4808
  # 数据格式其它类型。
4546
4809
  class Other < TencentCloud::Common::AbstractModel
4547
4810
  # @param Format: 枚举类型,默认值为Json,可选值为[Json, Parquet, ORC, AVRD]之一。
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.501
4
+ version: 3.0.502
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-02-03 00:00:00.000000000 Z
11
+ date: 2023-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common