tencentcloud-sdk-dlc 3.0.501 → 3.0.503
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 +72 -0
- data/lib/v20210125/models.rb +338 -9
- 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: ce5ef838c6a461b8d82f9d41cb299d71069e93d3
|
4
|
+
data.tar.gz: 962d1053719389d0e5efbb893b2de70ec96a4a7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bf90df8560330799cef67aa15ffcc8f32137bed843d4d821e0215484ace788847bade40a00246705596d536404eb682bb76efd7a326de0b2fb96b65615205e2
|
7
|
+
data.tar.gz: 45cc10d54bf72c1b94c584e4411dc65d9168aef37b8f0c08a13332355573a1862ffc388d25eb26508cc1e5ce9adc5e61f4570082eae945d1ea9f1cfb2f846d46
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.503
|
data/lib/v20210125/client.rb
CHANGED
@@ -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.
|
@@ -1373,6 +1421,30 @@ module TencentCloud
|
|
1373
1421
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1374
1422
|
end
|
1375
1423
|
|
1424
|
+
# 修改数据治理事件阈值
|
1425
|
+
|
1426
|
+
# @param request: Request instance for ModifyGovernEventRule.
|
1427
|
+
# @type request: :class:`Tencentcloud::dlc::V20210125::ModifyGovernEventRuleRequest`
|
1428
|
+
# @rtype: :class:`Tencentcloud::dlc::V20210125::ModifyGovernEventRuleResponse`
|
1429
|
+
def ModifyGovernEventRule(request)
|
1430
|
+
body = send_request('ModifyGovernEventRule', request.serialize)
|
1431
|
+
response = JSON.parse(body)
|
1432
|
+
if response['Response'].key?('Error') == false
|
1433
|
+
model = ModifyGovernEventRuleResponse.new
|
1434
|
+
model.deserialize(response['Response'])
|
1435
|
+
model
|
1436
|
+
else
|
1437
|
+
code = response['Response']['Error']['Code']
|
1438
|
+
message = response['Response']['Error']['Message']
|
1439
|
+
reqid = response['Response']['RequestId']
|
1440
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1441
|
+
end
|
1442
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1443
|
+
raise e
|
1444
|
+
rescue StandardError => e
|
1445
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1446
|
+
end
|
1447
|
+
|
1376
1448
|
# 更新spark应用
|
1377
1449
|
|
1378
1450
|
# @param request: Request instance for ModifySparkApp.
|
data/lib/v20210125/models.rb
CHANGED
@@ -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
|
@@ -1215,10 +1319,16 @@ module TencentCloud
|
|
1215
1319
|
# @type IsLocalArchives: String
|
1216
1320
|
# @param AppArchives: archives:依赖资源
|
1217
1321
|
# @type AppArchives: String
|
1322
|
+
# @param SparkImage: Spark Image 版本
|
1323
|
+
# @type SparkImage: String
|
1324
|
+
# @param SparkImageVersion: Spark Image 版本名称
|
1325
|
+
# @type SparkImageVersion: String
|
1326
|
+
# @param AppExecutorMaxNumbers: 指定的Executor数量(最大值),默认为1,当开启动态分配有效,若未开启,则该值等于AppExecutorNums
|
1327
|
+
# @type AppExecutorMaxNumbers: Integer
|
1218
1328
|
|
1219
|
-
attr_accessor :AppName, :AppType, :DataEngine, :AppFile, :RoleArn, :AppDriverSize, :AppExecutorSize, :AppExecutorNums, :Eni, :IsLocal, :MainClass, :AppConf, :IsLocalJars, :AppJars, :IsLocalFiles, :AppFiles, :CmdArgs, :MaxRetries, :DataSource, :IsLocalPythonFiles, :AppPythonFiles, :IsLocalArchives, :AppArchives
|
1329
|
+
attr_accessor :AppName, :AppType, :DataEngine, :AppFile, :RoleArn, :AppDriverSize, :AppExecutorSize, :AppExecutorNums, :Eni, :IsLocal, :MainClass, :AppConf, :IsLocalJars, :AppJars, :IsLocalFiles, :AppFiles, :CmdArgs, :MaxRetries, :DataSource, :IsLocalPythonFiles, :AppPythonFiles, :IsLocalArchives, :AppArchives, :SparkImage, :SparkImageVersion, :AppExecutorMaxNumbers
|
1220
1330
|
|
1221
|
-
def initialize(appname=nil, apptype=nil, dataengine=nil, appfile=nil, rolearn=nil, appdriversize=nil, appexecutorsize=nil, appexecutornums=nil, eni=nil, islocal=nil, mainclass=nil, appconf=nil, islocaljars=nil, appjars=nil, islocalfiles=nil, appfiles=nil, cmdargs=nil, maxretries=nil, datasource=nil, islocalpythonfiles=nil, apppythonfiles=nil, islocalarchives=nil, apparchives=nil)
|
1331
|
+
def initialize(appname=nil, apptype=nil, dataengine=nil, appfile=nil, rolearn=nil, appdriversize=nil, appexecutorsize=nil, appexecutornums=nil, eni=nil, islocal=nil, mainclass=nil, appconf=nil, islocaljars=nil, appjars=nil, islocalfiles=nil, appfiles=nil, cmdargs=nil, maxretries=nil, datasource=nil, islocalpythonfiles=nil, apppythonfiles=nil, islocalarchives=nil, apparchives=nil, sparkimage=nil, sparkimageversion=nil, appexecutormaxnumbers=nil)
|
1222
1332
|
@AppName = appname
|
1223
1333
|
@AppType = apptype
|
1224
1334
|
@DataEngine = dataengine
|
@@ -1242,6 +1352,9 @@ module TencentCloud
|
|
1242
1352
|
@AppPythonFiles = apppythonfiles
|
1243
1353
|
@IsLocalArchives = islocalarchives
|
1244
1354
|
@AppArchives = apparchives
|
1355
|
+
@SparkImage = sparkimage
|
1356
|
+
@SparkImageVersion = sparkimageversion
|
1357
|
+
@AppExecutorMaxNumbers = appexecutormaxnumbers
|
1245
1358
|
end
|
1246
1359
|
|
1247
1360
|
def deserialize(params)
|
@@ -1268,21 +1381,29 @@ module TencentCloud
|
|
1268
1381
|
@AppPythonFiles = params['AppPythonFiles']
|
1269
1382
|
@IsLocalArchives = params['IsLocalArchives']
|
1270
1383
|
@AppArchives = params['AppArchives']
|
1384
|
+
@SparkImage = params['SparkImage']
|
1385
|
+
@SparkImageVersion = params['SparkImageVersion']
|
1386
|
+
@AppExecutorMaxNumbers = params['AppExecutorMaxNumbers']
|
1271
1387
|
end
|
1272
1388
|
end
|
1273
1389
|
|
1274
1390
|
# CreateSparkApp返回参数结构体
|
1275
1391
|
class CreateSparkAppResponse < TencentCloud::Common::AbstractModel
|
1392
|
+
# @param SparkAppId: App唯一标识
|
1393
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1394
|
+
# @type SparkAppId: String
|
1276
1395
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1277
1396
|
# @type RequestId: String
|
1278
1397
|
|
1279
|
-
attr_accessor :RequestId
|
1398
|
+
attr_accessor :SparkAppId, :RequestId
|
1280
1399
|
|
1281
|
-
def initialize(requestid=nil)
|
1400
|
+
def initialize(sparkappid=nil, requestid=nil)
|
1401
|
+
@SparkAppId = sparkappid
|
1282
1402
|
@RequestId = requestid
|
1283
1403
|
end
|
1284
1404
|
|
1285
1405
|
def deserialize(params)
|
1406
|
+
@SparkAppId = params['SparkAppId']
|
1286
1407
|
@RequestId = params['RequestId']
|
1287
1408
|
end
|
1288
1409
|
end
|
@@ -2934,6 +3055,45 @@ module TencentCloud
|
|
2934
3055
|
end
|
2935
3056
|
end
|
2936
3057
|
|
3058
|
+
# DescribeNotebookSession请求参数结构体
|
3059
|
+
class DescribeNotebookSessionRequest < TencentCloud::Common::AbstractModel
|
3060
|
+
# @param SessionId: Session唯一标识
|
3061
|
+
# @type SessionId: String
|
3062
|
+
|
3063
|
+
attr_accessor :SessionId
|
3064
|
+
|
3065
|
+
def initialize(sessionid=nil)
|
3066
|
+
@SessionId = sessionid
|
3067
|
+
end
|
3068
|
+
|
3069
|
+
def deserialize(params)
|
3070
|
+
@SessionId = params['SessionId']
|
3071
|
+
end
|
3072
|
+
end
|
3073
|
+
|
3074
|
+
# DescribeNotebookSession返回参数结构体
|
3075
|
+
class DescribeNotebookSessionResponse < TencentCloud::Common::AbstractModel
|
3076
|
+
# @param Session: Session详情信息
|
3077
|
+
# @type Session: :class:`Tencentcloud::Dlc.v20210125.models.NotebookSessionInfo`
|
3078
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3079
|
+
# @type RequestId: String
|
3080
|
+
|
3081
|
+
attr_accessor :Session, :RequestId
|
3082
|
+
|
3083
|
+
def initialize(session=nil, requestid=nil)
|
3084
|
+
@Session = session
|
3085
|
+
@RequestId = requestid
|
3086
|
+
end
|
3087
|
+
|
3088
|
+
def deserialize(params)
|
3089
|
+
unless params['Session'].nil?
|
3090
|
+
@Session = NotebookSessionInfo.new
|
3091
|
+
@Session.deserialize(params['Session'])
|
3092
|
+
end
|
3093
|
+
@RequestId = params['RequestId']
|
3094
|
+
end
|
3095
|
+
end
|
3096
|
+
|
2937
3097
|
# DescribeResultDownload请求参数结构体
|
2938
3098
|
class DescribeResultDownloadRequest < TencentCloud::Common::AbstractModel
|
2939
3099
|
# @param DownloadId: 查询任务Id
|
@@ -4346,6 +4506,33 @@ module TencentCloud
|
|
4346
4506
|
end
|
4347
4507
|
end
|
4348
4508
|
|
4509
|
+
# ModifyGovernEventRule请求参数结构体
|
4510
|
+
class ModifyGovernEventRuleRequest < TencentCloud::Common::AbstractModel
|
4511
|
+
|
4512
|
+
|
4513
|
+
def initialize()
|
4514
|
+
end
|
4515
|
+
|
4516
|
+
def deserialize(params)
|
4517
|
+
end
|
4518
|
+
end
|
4519
|
+
|
4520
|
+
# ModifyGovernEventRule返回参数结构体
|
4521
|
+
class ModifyGovernEventRuleResponse < TencentCloud::Common::AbstractModel
|
4522
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4523
|
+
# @type RequestId: String
|
4524
|
+
|
4525
|
+
attr_accessor :RequestId
|
4526
|
+
|
4527
|
+
def initialize(requestid=nil)
|
4528
|
+
@RequestId = requestid
|
4529
|
+
end
|
4530
|
+
|
4531
|
+
def deserialize(params)
|
4532
|
+
@RequestId = params['RequestId']
|
4533
|
+
end
|
4534
|
+
end
|
4535
|
+
|
4349
4536
|
# ModifySparkApp请求参数结构体
|
4350
4537
|
class ModifySparkAppRequest < TencentCloud::Common::AbstractModel
|
4351
4538
|
# @param AppName: spark应用名
|
@@ -4396,10 +4583,16 @@ module TencentCloud
|
|
4396
4583
|
# @type IsLocalArchives: String
|
4397
4584
|
# @param AppArchives: archives:依赖资源
|
4398
4585
|
# @type AppArchives: String
|
4586
|
+
# @param SparkImage: Spark Image 版本
|
4587
|
+
# @type SparkImage: String
|
4588
|
+
# @param SparkImageVersion: Spark Image 版本名称
|
4589
|
+
# @type SparkImageVersion: String
|
4590
|
+
# @param AppExecutorMaxNumbers: 指定的Executor数量(最大值),默认为1,当开启动态分配有效,若未开启,则该值等于AppExecutorNums
|
4591
|
+
# @type AppExecutorMaxNumbers: Integer
|
4399
4592
|
|
4400
|
-
attr_accessor :AppName, :AppType, :DataEngine, :AppFile, :RoleArn, :AppDriverSize, :AppExecutorSize, :AppExecutorNums, :SparkAppId, :Eni, :IsLocal, :MainClass, :AppConf, :IsLocalJars, :AppJars, :IsLocalFiles, :AppFiles, :IsLocalPythonFiles, :AppPythonFiles, :CmdArgs, :MaxRetries, :DataSource, :IsLocalArchives, :AppArchives
|
4593
|
+
attr_accessor :AppName, :AppType, :DataEngine, :AppFile, :RoleArn, :AppDriverSize, :AppExecutorSize, :AppExecutorNums, :SparkAppId, :Eni, :IsLocal, :MainClass, :AppConf, :IsLocalJars, :AppJars, :IsLocalFiles, :AppFiles, :IsLocalPythonFiles, :AppPythonFiles, :CmdArgs, :MaxRetries, :DataSource, :IsLocalArchives, :AppArchives, :SparkImage, :SparkImageVersion, :AppExecutorMaxNumbers
|
4401
4594
|
|
4402
|
-
def initialize(appname=nil, apptype=nil, dataengine=nil, appfile=nil, rolearn=nil, appdriversize=nil, appexecutorsize=nil, appexecutornums=nil, sparkappid=nil, eni=nil, islocal=nil, mainclass=nil, appconf=nil, islocaljars=nil, appjars=nil, islocalfiles=nil, appfiles=nil, islocalpythonfiles=nil, apppythonfiles=nil, cmdargs=nil, maxretries=nil, datasource=nil, islocalarchives=nil, apparchives=nil)
|
4595
|
+
def initialize(appname=nil, apptype=nil, dataengine=nil, appfile=nil, rolearn=nil, appdriversize=nil, appexecutorsize=nil, appexecutornums=nil, sparkappid=nil, eni=nil, islocal=nil, mainclass=nil, appconf=nil, islocaljars=nil, appjars=nil, islocalfiles=nil, appfiles=nil, islocalpythonfiles=nil, apppythonfiles=nil, cmdargs=nil, maxretries=nil, datasource=nil, islocalarchives=nil, apparchives=nil, sparkimage=nil, sparkimageversion=nil, appexecutormaxnumbers=nil)
|
4403
4596
|
@AppName = appname
|
4404
4597
|
@AppType = apptype
|
4405
4598
|
@DataEngine = dataengine
|
@@ -4424,6 +4617,9 @@ module TencentCloud
|
|
4424
4617
|
@DataSource = datasource
|
4425
4618
|
@IsLocalArchives = islocalarchives
|
4426
4619
|
@AppArchives = apparchives
|
4620
|
+
@SparkImage = sparkimage
|
4621
|
+
@SparkImageVersion = sparkimageversion
|
4622
|
+
@AppExecutorMaxNumbers = appexecutormaxnumbers
|
4427
4623
|
end
|
4428
4624
|
|
4429
4625
|
def deserialize(params)
|
@@ -4451,6 +4647,9 @@ module TencentCloud
|
|
4451
4647
|
@DataSource = params['DataSource']
|
4452
4648
|
@IsLocalArchives = params['IsLocalArchives']
|
4453
4649
|
@AppArchives = params['AppArchives']
|
4650
|
+
@SparkImage = params['SparkImage']
|
4651
|
+
@SparkImageVersion = params['SparkImageVersion']
|
4652
|
+
@AppExecutorMaxNumbers = params['AppExecutorMaxNumbers']
|
4454
4653
|
end
|
4455
4654
|
end
|
4456
4655
|
|
@@ -4542,6 +4741,126 @@ module TencentCloud
|
|
4542
4741
|
end
|
4543
4742
|
end
|
4544
4743
|
|
4744
|
+
# Notebook Session详细信息。
|
4745
|
+
class NotebookSessionInfo < TencentCloud::Common::AbstractModel
|
4746
|
+
# @param Name: Session名称
|
4747
|
+
# @type Name: String
|
4748
|
+
# @param Kind: 类型,当前支持:spark、pyspark、sparkr、sql
|
4749
|
+
# @type Kind: String
|
4750
|
+
# @param DataEngineName: DLC Spark作业引擎名称
|
4751
|
+
# @type DataEngineName: String
|
4752
|
+
# @param Arguments: Session相关配置,当前支持:eni、roleArn以及用户指定的配置
|
4753
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4754
|
+
# @type Arguments: Array
|
4755
|
+
# @param ProgramDependentFiles: 运行程序地址,当前支持:cosn://和lakefs://两种路径
|
4756
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4757
|
+
# @type ProgramDependentFiles: Array
|
4758
|
+
# @param ProgramDependentJars: 依赖的jar程序地址,当前支持:cosn://和lakefs://两种路径
|
4759
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4760
|
+
# @type ProgramDependentJars: Array
|
4761
|
+
# @param ProgramDependentPython: 依赖的python程序地址,当前支持:cosn://和lakefs://两种路径
|
4762
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4763
|
+
# @type ProgramDependentPython: Array
|
4764
|
+
# @param ProgramArchives: 依赖的pyspark虚拟环境地址,当前支持:cosn://和lakefs://两种路径
|
4765
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4766
|
+
# @type ProgramArchives: Array
|
4767
|
+
# @param DriverSize: 指定的Driver规格,当前支持:small(默认,1cu)、medium(2cu)、large(4cu)、xlarge(8cu)
|
4768
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4769
|
+
# @type DriverSize: String
|
4770
|
+
# @param ExecutorSize: 指定的Executor规格,当前支持:small(默认,1cu)、medium(2cu)、large(4cu)、xlarge(8cu)
|
4771
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4772
|
+
# @type ExecutorSize: String
|
4773
|
+
# @param ExecutorNumbers: 指定的Executor数量,默认为1
|
4774
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4775
|
+
# @type ExecutorNumbers: Integer
|
4776
|
+
# @param ProxyUser: 代理用户,默认为root
|
4777
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4778
|
+
# @type ProxyUser: String
|
4779
|
+
# @param TimeoutInSecond: 指定的Session超时时间,单位秒,默认3600秒
|
4780
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4781
|
+
# @type TimeoutInSecond: Integer
|
4782
|
+
# @param SparkAppId: Spark任务返回的AppId
|
4783
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4784
|
+
# @type SparkAppId: String
|
4785
|
+
# @param SessionId: Session唯一标识
|
4786
|
+
# @type SessionId: String
|
4787
|
+
# @param State: Session状态,包含:not_started(未启动)、starting(已启动)、idle(等待输入)、busy(正在运行statement)、shutting_down(停止)、error(异常)、dead(已退出)、killed(被杀死)、success(正常停止)
|
4788
|
+
# @type State: String
|
4789
|
+
# @param CreateTime: Session创建时间
|
4790
|
+
# @type CreateTime: String
|
4791
|
+
# @param AppInfo: 其它信息
|
4792
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4793
|
+
# @type AppInfo: Array
|
4794
|
+
# @param SparkUiUrl: Spark ui地址
|
4795
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4796
|
+
# @type SparkUiUrl: String
|
4797
|
+
# @param ExecutorMaxNumbers: 指定的Executor数量(最大值),默认为1,当开启动态分配有效,若未开启,则该值等于ExecutorNumbers
|
4798
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4799
|
+
# @type ExecutorMaxNumbers: Integer
|
4800
|
+
|
4801
|
+
attr_accessor :Name, :Kind, :DataEngineName, :Arguments, :ProgramDependentFiles, :ProgramDependentJars, :ProgramDependentPython, :ProgramArchives, :DriverSize, :ExecutorSize, :ExecutorNumbers, :ProxyUser, :TimeoutInSecond, :SparkAppId, :SessionId, :State, :CreateTime, :AppInfo, :SparkUiUrl, :ExecutorMaxNumbers
|
4802
|
+
|
4803
|
+
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)
|
4804
|
+
@Name = name
|
4805
|
+
@Kind = kind
|
4806
|
+
@DataEngineName = dataenginename
|
4807
|
+
@Arguments = arguments
|
4808
|
+
@ProgramDependentFiles = programdependentfiles
|
4809
|
+
@ProgramDependentJars = programdependentjars
|
4810
|
+
@ProgramDependentPython = programdependentpython
|
4811
|
+
@ProgramArchives = programarchives
|
4812
|
+
@DriverSize = driversize
|
4813
|
+
@ExecutorSize = executorsize
|
4814
|
+
@ExecutorNumbers = executornumbers
|
4815
|
+
@ProxyUser = proxyuser
|
4816
|
+
@TimeoutInSecond = timeoutinsecond
|
4817
|
+
@SparkAppId = sparkappid
|
4818
|
+
@SessionId = sessionid
|
4819
|
+
@State = state
|
4820
|
+
@CreateTime = createtime
|
4821
|
+
@AppInfo = appinfo
|
4822
|
+
@SparkUiUrl = sparkuiurl
|
4823
|
+
@ExecutorMaxNumbers = executormaxnumbers
|
4824
|
+
end
|
4825
|
+
|
4826
|
+
def deserialize(params)
|
4827
|
+
@Name = params['Name']
|
4828
|
+
@Kind = params['Kind']
|
4829
|
+
@DataEngineName = params['DataEngineName']
|
4830
|
+
unless params['Arguments'].nil?
|
4831
|
+
@Arguments = []
|
4832
|
+
params['Arguments'].each do |i|
|
4833
|
+
kvpair_tmp = KVPair.new
|
4834
|
+
kvpair_tmp.deserialize(i)
|
4835
|
+
@Arguments << kvpair_tmp
|
4836
|
+
end
|
4837
|
+
end
|
4838
|
+
@ProgramDependentFiles = params['ProgramDependentFiles']
|
4839
|
+
@ProgramDependentJars = params['ProgramDependentJars']
|
4840
|
+
@ProgramDependentPython = params['ProgramDependentPython']
|
4841
|
+
@ProgramArchives = params['ProgramArchives']
|
4842
|
+
@DriverSize = params['DriverSize']
|
4843
|
+
@ExecutorSize = params['ExecutorSize']
|
4844
|
+
@ExecutorNumbers = params['ExecutorNumbers']
|
4845
|
+
@ProxyUser = params['ProxyUser']
|
4846
|
+
@TimeoutInSecond = params['TimeoutInSecond']
|
4847
|
+
@SparkAppId = params['SparkAppId']
|
4848
|
+
@SessionId = params['SessionId']
|
4849
|
+
@State = params['State']
|
4850
|
+
@CreateTime = params['CreateTime']
|
4851
|
+
unless params['AppInfo'].nil?
|
4852
|
+
@AppInfo = []
|
4853
|
+
params['AppInfo'].each do |i|
|
4854
|
+
kvpair_tmp = KVPair.new
|
4855
|
+
kvpair_tmp.deserialize(i)
|
4856
|
+
@AppInfo << kvpair_tmp
|
4857
|
+
end
|
4858
|
+
end
|
4859
|
+
@SparkUiUrl = params['SparkUiUrl']
|
4860
|
+
@ExecutorMaxNumbers = params['ExecutorMaxNumbers']
|
4861
|
+
end
|
4862
|
+
end
|
4863
|
+
|
4545
4864
|
# 数据格式其它类型。
|
4546
4865
|
class Other < TencentCloud::Common::AbstractModel
|
4547
4866
|
# @param Format: 枚举类型,默认值为Json,可选值为[Json, Parquet, ORC, AVRD]之一。
|
@@ -4813,7 +5132,7 @@ module TencentCloud
|
|
4813
5132
|
end
|
4814
5133
|
end
|
4815
5134
|
|
4816
|
-
# spark
|
5135
|
+
# spark作业详情。
|
4817
5136
|
class SparkJobInfo < TencentCloud::Common::AbstractModel
|
4818
5137
|
# @param JobId: spark作业ID
|
4819
5138
|
# @type JobId: String
|
@@ -4881,6 +5200,9 @@ module TencentCloud
|
|
4881
5200
|
# @param JobArchives: archives:依赖资源
|
4882
5201
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
4883
5202
|
# @type JobArchives: String
|
5203
|
+
# @param SparkImage: Spark Image 版本
|
5204
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5205
|
+
# @type SparkImage: String
|
4884
5206
|
# @param JobPythonFiles: pyspark:python依赖, 除py文件外,还支持zip/egg等归档格式,多文件以逗号分隔
|
4885
5207
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
4886
5208
|
# @type JobPythonFiles: String
|
@@ -4890,10 +5212,13 @@ module TencentCloud
|
|
4890
5212
|
# @param DataEngineStatus: 引擎状态:-100(默认:未知状态),-2~11:引擎正常状态;
|
4891
5213
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
4892
5214
|
# @type DataEngineStatus: Integer
|
5215
|
+
# @param JobExecutorMaxNumbers: 指定的Executor数量(最大值),默认为1,当开启动态分配有效,若未开启,则该值等于JobExecutorNums
|
5216
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5217
|
+
# @type JobExecutorMaxNumbers: Integer
|
4893
5218
|
|
4894
|
-
attr_accessor :JobId, :JobName, :JobType, :DataEngine, :Eni, :IsLocal, :JobFile, :RoleArn, :MainClass, :CmdArgs, :JobConf, :IsLocalJars, :JobJars, :IsLocalFiles, :JobFiles, :JobDriverSize, :JobExecutorSize, :JobExecutorNums, :JobMaxAttempts, :JobCreator, :JobCreateTime, :JobUpdateTime, :CurrentTaskId, :JobStatus, :StreamingStat, :DataSource, :IsLocalPythonFiles, :AppPythonFiles, :IsLocalArchives, :JobArchives, :JobPythonFiles, :TaskNum, :DataEngineStatus
|
5219
|
+
attr_accessor :JobId, :JobName, :JobType, :DataEngine, :Eni, :IsLocal, :JobFile, :RoleArn, :MainClass, :CmdArgs, :JobConf, :IsLocalJars, :JobJars, :IsLocalFiles, :JobFiles, :JobDriverSize, :JobExecutorSize, :JobExecutorNums, :JobMaxAttempts, :JobCreator, :JobCreateTime, :JobUpdateTime, :CurrentTaskId, :JobStatus, :StreamingStat, :DataSource, :IsLocalPythonFiles, :AppPythonFiles, :IsLocalArchives, :JobArchives, :SparkImage, :JobPythonFiles, :TaskNum, :DataEngineStatus, :JobExecutorMaxNumbers
|
4895
5220
|
|
4896
|
-
def initialize(jobid=nil, jobname=nil, jobtype=nil, dataengine=nil, eni=nil, islocal=nil, jobfile=nil, rolearn=nil, mainclass=nil, cmdargs=nil, jobconf=nil, islocaljars=nil, jobjars=nil, islocalfiles=nil, jobfiles=nil, jobdriversize=nil, jobexecutorsize=nil, jobexecutornums=nil, jobmaxattempts=nil, jobcreator=nil, jobcreatetime=nil, jobupdatetime=nil, currenttaskid=nil, jobstatus=nil, streamingstat=nil, datasource=nil, islocalpythonfiles=nil, apppythonfiles=nil, islocalarchives=nil, jobarchives=nil, jobpythonfiles=nil, tasknum=nil, dataenginestatus=nil)
|
5221
|
+
def initialize(jobid=nil, jobname=nil, jobtype=nil, dataengine=nil, eni=nil, islocal=nil, jobfile=nil, rolearn=nil, mainclass=nil, cmdargs=nil, jobconf=nil, islocaljars=nil, jobjars=nil, islocalfiles=nil, jobfiles=nil, jobdriversize=nil, jobexecutorsize=nil, jobexecutornums=nil, jobmaxattempts=nil, jobcreator=nil, jobcreatetime=nil, jobupdatetime=nil, currenttaskid=nil, jobstatus=nil, streamingstat=nil, datasource=nil, islocalpythonfiles=nil, apppythonfiles=nil, islocalarchives=nil, jobarchives=nil, sparkimage=nil, jobpythonfiles=nil, tasknum=nil, dataenginestatus=nil, jobexecutormaxnumbers=nil)
|
4897
5222
|
@JobId = jobid
|
4898
5223
|
@JobName = jobname
|
4899
5224
|
@JobType = jobtype
|
@@ -4924,9 +5249,11 @@ module TencentCloud
|
|
4924
5249
|
@AppPythonFiles = apppythonfiles
|
4925
5250
|
@IsLocalArchives = islocalarchives
|
4926
5251
|
@JobArchives = jobarchives
|
5252
|
+
@SparkImage = sparkimage
|
4927
5253
|
@JobPythonFiles = jobpythonfiles
|
4928
5254
|
@TaskNum = tasknum
|
4929
5255
|
@DataEngineStatus = dataenginestatus
|
5256
|
+
@JobExecutorMaxNumbers = jobexecutormaxnumbers
|
4930
5257
|
end
|
4931
5258
|
|
4932
5259
|
def deserialize(params)
|
@@ -4963,9 +5290,11 @@ module TencentCloud
|
|
4963
5290
|
@AppPythonFiles = params['AppPythonFiles']
|
4964
5291
|
@IsLocalArchives = params['IsLocalArchives']
|
4965
5292
|
@JobArchives = params['JobArchives']
|
5293
|
+
@SparkImage = params['SparkImage']
|
4966
5294
|
@JobPythonFiles = params['JobPythonFiles']
|
4967
5295
|
@TaskNum = params['TaskNum']
|
4968
5296
|
@DataEngineStatus = params['DataEngineStatus']
|
5297
|
+
@JobExecutorMaxNumbers = params['JobExecutorMaxNumbers']
|
4969
5298
|
end
|
4970
5299
|
end
|
4971
5300
|
|
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.503
|
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-
|
11
|
+
date: 2023-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|