tencentcloud-sdk-emr 3.0.956 → 3.0.958
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/v20190103/client.rb +48 -0
- data/lib/v20190103/models.rb +522 -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: 66397da1a6cda8ad810a6fca17420bf668f1fbdf
|
4
|
+
data.tar.gz: fadbbb7278b9bbc71060a032eae91243ea7e7708
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0582837c55f1df4c3b621913f6f4eefd683c1e23ccebd71de57bdc65d8277776e1aef95b563fb1c33cc09fe157c4200bda5b0ca47ccec8d99d0c8c4160834fe
|
7
|
+
data.tar.gz: 0d9901bdffda3c45f9abc07fc1da50aaf4a306fc9ebea21257900480e30711dd0c002bbc06bbb62737d67b573515a6112cbd3efe34ffa1cdec0ff95c1d325035
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.958
|
data/lib/v20190103/client.rb
CHANGED
@@ -78,6 +78,30 @@ module TencentCloud
|
|
78
78
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
79
79
|
end
|
80
80
|
|
81
|
+
# 创建EMR容器集群实例
|
82
|
+
|
83
|
+
# @param request: Request instance for CreateCloudInstance.
|
84
|
+
# @type request: :class:`Tencentcloud::emr::V20190103::CreateCloudInstanceRequest`
|
85
|
+
# @rtype: :class:`Tencentcloud::emr::V20190103::CreateCloudInstanceResponse`
|
86
|
+
def CreateCloudInstance(request)
|
87
|
+
body = send_request('CreateCloudInstance', request.serialize)
|
88
|
+
response = JSON.parse(body)
|
89
|
+
if response['Response'].key?('Error') == false
|
90
|
+
model = CreateCloudInstanceResponse.new
|
91
|
+
model.deserialize(response['Response'])
|
92
|
+
model
|
93
|
+
else
|
94
|
+
code = response['Response']['Error']['Code']
|
95
|
+
message = response['Response']['Error']['Message']
|
96
|
+
reqid = response['Response']['RequestId']
|
97
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
98
|
+
end
|
99
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
100
|
+
raise e
|
101
|
+
rescue StandardError => e
|
102
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
103
|
+
end
|
104
|
+
|
81
105
|
# 创建EMR集群实例
|
82
106
|
|
83
107
|
# @param request: Request instance for CreateCluster.
|
@@ -1162,6 +1186,30 @@ module TencentCloud
|
|
1162
1186
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1163
1187
|
end
|
1164
1188
|
|
1189
|
+
# 调整Pod数量
|
1190
|
+
|
1191
|
+
# @param request: Request instance for ModifyPodNum.
|
1192
|
+
# @type request: :class:`Tencentcloud::emr::V20190103::ModifyPodNumRequest`
|
1193
|
+
# @rtype: :class:`Tencentcloud::emr::V20190103::ModifyPodNumResponse`
|
1194
|
+
def ModifyPodNum(request)
|
1195
|
+
body = send_request('ModifyPodNum', request.serialize)
|
1196
|
+
response = JSON.parse(body)
|
1197
|
+
if response['Response'].key?('Error') == false
|
1198
|
+
model = ModifyPodNumResponse.new
|
1199
|
+
model.deserialize(response['Response'])
|
1200
|
+
model
|
1201
|
+
else
|
1202
|
+
code = response['Response']['Error']['Code']
|
1203
|
+
message = response['Response']['Error']['Message']
|
1204
|
+
reqid = response['Response']['RequestId']
|
1205
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1206
|
+
end
|
1207
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1208
|
+
raise e
|
1209
|
+
rescue StandardError => e
|
1210
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1211
|
+
end
|
1212
|
+
|
1165
1213
|
# 刷新YARN的动态资源池。已废弃,请使用`DeployYarnConf`
|
1166
1214
|
|
1167
1215
|
# @param request: Request instance for ModifyResourcePools.
|
data/lib/v20190103/models.rb
CHANGED
@@ -443,6 +443,31 @@ module TencentCloud
|
|
443
443
|
end
|
444
444
|
end
|
445
445
|
|
446
|
+
# 容器集群Pod服务CLB设置
|
447
|
+
class CLBSetting < TencentCloud::Common::AbstractModel
|
448
|
+
# @param CLBType: CLB类型,PUBLIC_IP表示支持公网CLB和INTERNAL_IP表示支持内网CLB字段
|
449
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
450
|
+
# @type CLBType: String
|
451
|
+
# @param VPCSettings: Vpc和子网信息设置
|
452
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
453
|
+
# @type VPCSettings: :class:`Tencentcloud::Emr.v20190103.models.VPCSettings`
|
454
|
+
|
455
|
+
attr_accessor :CLBType, :VPCSettings
|
456
|
+
|
457
|
+
def initialize(clbtype=nil, vpcsettings=nil)
|
458
|
+
@CLBType = clbtype
|
459
|
+
@VPCSettings = vpcsettings
|
460
|
+
end
|
461
|
+
|
462
|
+
def deserialize(params)
|
463
|
+
@CLBType = params['CLBType']
|
464
|
+
unless params['VPCSettings'].nil?
|
465
|
+
@VPCSettings = VPCSettings.new
|
466
|
+
@VPCSettings.deserialize(params['VPCSettings'])
|
467
|
+
end
|
468
|
+
end
|
469
|
+
end
|
470
|
+
|
446
471
|
# COS 相关配置
|
447
472
|
class COSSettings < TencentCloud::Common::AbstractModel
|
448
473
|
# @param CosSecretId: COS SecretId
|
@@ -592,6 +617,75 @@ module TencentCloud
|
|
592
617
|
end
|
593
618
|
end
|
594
619
|
|
620
|
+
# 容器集群Pod请求资源信息
|
621
|
+
class CloudResource < TencentCloud::Common::AbstractModel
|
622
|
+
# @param ComponentName: 组件角色名
|
623
|
+
# @type ComponentName: String
|
624
|
+
# @param PodNumber: pod请求数量
|
625
|
+
# @type PodNumber: Integer
|
626
|
+
# @param LimitCpu: Cpu请求数量最大值
|
627
|
+
# @type LimitCpu: Integer
|
628
|
+
# @param LimitMemory: 内存请求数量最大值
|
629
|
+
# @type LimitMemory: Integer
|
630
|
+
# @param Service: 服务名称,如HIVE
|
631
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
632
|
+
# @type Service: String
|
633
|
+
# @param VolumeDir: 数据卷目录设置
|
634
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
635
|
+
# @type VolumeDir: :class:`Tencentcloud::Emr.v20190103.models.VolumeSetting`
|
636
|
+
# @param ExternalAccess: 组件外部访问设置
|
637
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
638
|
+
# @type ExternalAccess: :class:`Tencentcloud::Emr.v20190103.models.ExternalAccess`
|
639
|
+
# @param Affinity: 节点亲和性设置
|
640
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
641
|
+
# @type Affinity: :class:`Tencentcloud::Emr.v20190103.models.NodeAffinity`
|
642
|
+
# @param Disks: 所选数据盘信息
|
643
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
644
|
+
# @type Disks: Array
|
645
|
+
|
646
|
+
attr_accessor :ComponentName, :PodNumber, :LimitCpu, :LimitMemory, :Service, :VolumeDir, :ExternalAccess, :Affinity, :Disks
|
647
|
+
|
648
|
+
def initialize(componentname=nil, podnumber=nil, limitcpu=nil, limitmemory=nil, service=nil, volumedir=nil, externalaccess=nil, affinity=nil, disks=nil)
|
649
|
+
@ComponentName = componentname
|
650
|
+
@PodNumber = podnumber
|
651
|
+
@LimitCpu = limitcpu
|
652
|
+
@LimitMemory = limitmemory
|
653
|
+
@Service = service
|
654
|
+
@VolumeDir = volumedir
|
655
|
+
@ExternalAccess = externalaccess
|
656
|
+
@Affinity = affinity
|
657
|
+
@Disks = disks
|
658
|
+
end
|
659
|
+
|
660
|
+
def deserialize(params)
|
661
|
+
@ComponentName = params['ComponentName']
|
662
|
+
@PodNumber = params['PodNumber']
|
663
|
+
@LimitCpu = params['LimitCpu']
|
664
|
+
@LimitMemory = params['LimitMemory']
|
665
|
+
@Service = params['Service']
|
666
|
+
unless params['VolumeDir'].nil?
|
667
|
+
@VolumeDir = VolumeSetting.new
|
668
|
+
@VolumeDir.deserialize(params['VolumeDir'])
|
669
|
+
end
|
670
|
+
unless params['ExternalAccess'].nil?
|
671
|
+
@ExternalAccess = ExternalAccess.new
|
672
|
+
@ExternalAccess.deserialize(params['ExternalAccess'])
|
673
|
+
end
|
674
|
+
unless params['Affinity'].nil?
|
675
|
+
@Affinity = NodeAffinity.new
|
676
|
+
@Affinity.deserialize(params['Affinity'])
|
677
|
+
end
|
678
|
+
unless params['Disks'].nil?
|
679
|
+
@Disks = []
|
680
|
+
params['Disks'].each do |i|
|
681
|
+
disk_tmp = Disk.new
|
682
|
+
disk_tmp.deserialize(i)
|
683
|
+
@Disks << disk_tmp
|
684
|
+
end
|
685
|
+
end
|
686
|
+
end
|
687
|
+
end
|
688
|
+
|
595
689
|
# 当前集群共用组件与集群对应关系
|
596
690
|
class ClusterExternalServiceInfo < TencentCloud::Common::AbstractModel
|
597
691
|
# @param DependType: 依赖关系,0:被其他集群依赖,1:依赖其他集群
|
@@ -1237,6 +1331,144 @@ module TencentCloud
|
|
1237
1331
|
end
|
1238
1332
|
end
|
1239
1333
|
|
1334
|
+
# CreateCloudInstance请求参数结构体
|
1335
|
+
class CreateCloudInstanceRequest < TencentCloud::Common::AbstractModel
|
1336
|
+
# @param InstanceName: 实例名称。
|
1337
|
+
# <li>长度限制为6-36个字符。</li>
|
1338
|
+
# <li>只允许包含中文、字母、数字、-、_。</li>
|
1339
|
+
# @type InstanceName: String
|
1340
|
+
# @param ClusterClass: 容器集群类型,取值范围
|
1341
|
+
# <li>EMR容器集群实例: EMR-TKE</li>
|
1342
|
+
# @type ClusterClass: String
|
1343
|
+
# @param Software: 部署的组件列表,不同的EMR产品ID(ProductId:具体含义参考入参ProductId字段)对应不同可选组件列表,不同产品版本可选组件列表查询:[组件版本](https://cloud.tencent.com/document/product/589/20279) ;
|
1344
|
+
# @type Software: Array
|
1345
|
+
# @param PlatFormType: 容器平台类型,取值范围
|
1346
|
+
# <li>EMR容器集群实例: tke</li>
|
1347
|
+
# @type PlatFormType: String
|
1348
|
+
# @param CosBucket: cos存储桶
|
1349
|
+
# @type CosBucket: String
|
1350
|
+
# @param EksClusterId: 容器集群id
|
1351
|
+
# @type EksClusterId: String
|
1352
|
+
# @param ProductId: 产品Id,不同产品ID表示不同的EMR产品版本。取值范围:
|
1353
|
+
# <li>60:表示EMR-TKE-V1.1.0</li>
|
1354
|
+
# <li>55:表示EMR-TKE-V1.0.1</li>
|
1355
|
+
# <li>52:表示EMR-TKE-V1.0.0</li>
|
1356
|
+
# @type ProductId: Integer
|
1357
|
+
# @param ClientToken: 客户端token,唯一随机标识,时效5分钟,需要调用者指定 防止客户端重新创建资源,小于等于64个字符,例如 a9a90aa6----fae36063280
|
1358
|
+
# 示例值:a9a90aa6----fae36063280
|
1359
|
+
# @type ClientToken: String
|
1360
|
+
# @param VPCSettings: 私有网络相关信息配置。通过该参数可以指定私有网络的ID,子网ID等信息。
|
1361
|
+
# @type VPCSettings: :class:`Tencentcloud::Emr.v20190103.models.VPCSettings`
|
1362
|
+
# @param CloudResources: 所有组件角色及其对应的Pod资源请求信息
|
1363
|
+
# @type CloudResources: Array
|
1364
|
+
# @param SgId: 安全组Id,为空默认创建新的安全组
|
1365
|
+
# @type SgId: String
|
1366
|
+
# @param MetaDBInfo: 元数据库信息
|
1367
|
+
# MetaDB信息,当MetaType选择EMR_NEW_META时,MetaDataJdbcUrl MetaDataUser MetaDataPass UnifyMetaInstanceId不用填
|
1368
|
+
# 当MetaType选择EMR_EXIT_META时,填写UnifyMetaInstanceId
|
1369
|
+
# 当MetaType选择USER_CUSTOM_META时,填写MetaDataJdbcUrl MetaDataUser MetaDataPass
|
1370
|
+
# @type MetaDBInfo: :class:`Tencentcloud::Emr.v20190103.models.CustomMetaDBInfo`
|
1371
|
+
# @param Tags: 标签信息
|
1372
|
+
# @type Tags: Array
|
1373
|
+
# @param LoginSettings: 登陆密码,LoginSettings中的Password字段
|
1374
|
+
# @type LoginSettings: :class:`Tencentcloud::Emr.v20190103.models.LoginSettings`
|
1375
|
+
# @param ExternalService: 共享服务信息
|
1376
|
+
# @type ExternalService: Array
|
1377
|
+
# @param ZoneId: 可用区id
|
1378
|
+
# @type ZoneId: Integer
|
1379
|
+
|
1380
|
+
attr_accessor :InstanceName, :ClusterClass, :Software, :PlatFormType, :CosBucket, :EksClusterId, :ProductId, :ClientToken, :VPCSettings, :CloudResources, :SgId, :MetaDBInfo, :Tags, :LoginSettings, :ExternalService, :ZoneId
|
1381
|
+
|
1382
|
+
def initialize(instancename=nil, clusterclass=nil, software=nil, platformtype=nil, cosbucket=nil, eksclusterid=nil, productid=nil, clienttoken=nil, vpcsettings=nil, cloudresources=nil, sgid=nil, metadbinfo=nil, tags=nil, loginsettings=nil, externalservice=nil, zoneid=nil)
|
1383
|
+
@InstanceName = instancename
|
1384
|
+
@ClusterClass = clusterclass
|
1385
|
+
@Software = software
|
1386
|
+
@PlatFormType = platformtype
|
1387
|
+
@CosBucket = cosbucket
|
1388
|
+
@EksClusterId = eksclusterid
|
1389
|
+
@ProductId = productid
|
1390
|
+
@ClientToken = clienttoken
|
1391
|
+
@VPCSettings = vpcsettings
|
1392
|
+
@CloudResources = cloudresources
|
1393
|
+
@SgId = sgid
|
1394
|
+
@MetaDBInfo = metadbinfo
|
1395
|
+
@Tags = tags
|
1396
|
+
@LoginSettings = loginsettings
|
1397
|
+
@ExternalService = externalservice
|
1398
|
+
@ZoneId = zoneid
|
1399
|
+
end
|
1400
|
+
|
1401
|
+
def deserialize(params)
|
1402
|
+
@InstanceName = params['InstanceName']
|
1403
|
+
@ClusterClass = params['ClusterClass']
|
1404
|
+
@Software = params['Software']
|
1405
|
+
@PlatFormType = params['PlatFormType']
|
1406
|
+
@CosBucket = params['CosBucket']
|
1407
|
+
@EksClusterId = params['EksClusterId']
|
1408
|
+
@ProductId = params['ProductId']
|
1409
|
+
@ClientToken = params['ClientToken']
|
1410
|
+
unless params['VPCSettings'].nil?
|
1411
|
+
@VPCSettings = VPCSettings.new
|
1412
|
+
@VPCSettings.deserialize(params['VPCSettings'])
|
1413
|
+
end
|
1414
|
+
unless params['CloudResources'].nil?
|
1415
|
+
@CloudResources = []
|
1416
|
+
params['CloudResources'].each do |i|
|
1417
|
+
cloudresource_tmp = CloudResource.new
|
1418
|
+
cloudresource_tmp.deserialize(i)
|
1419
|
+
@CloudResources << cloudresource_tmp
|
1420
|
+
end
|
1421
|
+
end
|
1422
|
+
@SgId = params['SgId']
|
1423
|
+
unless params['MetaDBInfo'].nil?
|
1424
|
+
@MetaDBInfo = CustomMetaDBInfo.new
|
1425
|
+
@MetaDBInfo.deserialize(params['MetaDBInfo'])
|
1426
|
+
end
|
1427
|
+
unless params['Tags'].nil?
|
1428
|
+
@Tags = []
|
1429
|
+
params['Tags'].each do |i|
|
1430
|
+
tag_tmp = Tag.new
|
1431
|
+
tag_tmp.deserialize(i)
|
1432
|
+
@Tags << tag_tmp
|
1433
|
+
end
|
1434
|
+
end
|
1435
|
+
unless params['LoginSettings'].nil?
|
1436
|
+
@LoginSettings = LoginSettings.new
|
1437
|
+
@LoginSettings.deserialize(params['LoginSettings'])
|
1438
|
+
end
|
1439
|
+
unless params['ExternalService'].nil?
|
1440
|
+
@ExternalService = []
|
1441
|
+
params['ExternalService'].each do |i|
|
1442
|
+
externalservice_tmp = ExternalService.new
|
1443
|
+
externalservice_tmp.deserialize(i)
|
1444
|
+
@ExternalService << externalservice_tmp
|
1445
|
+
end
|
1446
|
+
end
|
1447
|
+
@ZoneId = params['ZoneId']
|
1448
|
+
end
|
1449
|
+
end
|
1450
|
+
|
1451
|
+
# CreateCloudInstance返回参数结构体
|
1452
|
+
class CreateCloudInstanceResponse < TencentCloud::Common::AbstractModel
|
1453
|
+
# @param InstanceId: 实例ID
|
1454
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1455
|
+
# @type InstanceId: String
|
1456
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1457
|
+
# @type RequestId: String
|
1458
|
+
|
1459
|
+
attr_accessor :InstanceId, :RequestId
|
1460
|
+
|
1461
|
+
def initialize(instanceid=nil, requestid=nil)
|
1462
|
+
@InstanceId = instanceid
|
1463
|
+
@RequestId = requestid
|
1464
|
+
end
|
1465
|
+
|
1466
|
+
def deserialize(params)
|
1467
|
+
@InstanceId = params['InstanceId']
|
1468
|
+
@RequestId = params['RequestId']
|
1469
|
+
end
|
1470
|
+
end
|
1471
|
+
|
1240
1472
|
# CreateCluster请求参数结构体
|
1241
1473
|
class CreateClusterRequest < TencentCloud::Common::AbstractModel
|
1242
1474
|
# @param ProductVersion: EMR产品版本名称如EMR-V2.3.0 表示2.3.0版本的EMR, 当前支持产品版本名称查询:[产品版本名称](https://cloud.tencent.com/document/product/589/66338)
|
@@ -4418,6 +4650,35 @@ module TencentCloud
|
|
4418
4650
|
end
|
4419
4651
|
end
|
4420
4652
|
|
4653
|
+
# 磁盘信息
|
4654
|
+
class Disk < TencentCloud::Common::AbstractModel
|
4655
|
+
# @param DiskType: 数据盘类型,创建EMR容器集群实例可选
|
4656
|
+
# <li> SSD云盘: CLOUD_SSD</li>
|
4657
|
+
# <li>高效云盘: CLOUD_PREMIUM</li>
|
4658
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4659
|
+
# @type DiskType: String
|
4660
|
+
# @param DiskCapacity: 单块大小GB
|
4661
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4662
|
+
# @type DiskCapacity: Integer
|
4663
|
+
# @param DiskNumber: 数据盘数量
|
4664
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4665
|
+
# @type DiskNumber: Integer
|
4666
|
+
|
4667
|
+
attr_accessor :DiskType, :DiskCapacity, :DiskNumber
|
4668
|
+
|
4669
|
+
def initialize(disktype=nil, diskcapacity=nil, disknumber=nil)
|
4670
|
+
@DiskType = disktype
|
4671
|
+
@DiskCapacity = diskcapacity
|
4672
|
+
@DiskNumber = disknumber
|
4673
|
+
end
|
4674
|
+
|
4675
|
+
def deserialize(params)
|
4676
|
+
@DiskType = params['DiskType']
|
4677
|
+
@DiskCapacity = params['DiskCapacity']
|
4678
|
+
@DiskNumber = params['DiskNumber']
|
4679
|
+
end
|
4680
|
+
end
|
4681
|
+
|
4421
4682
|
# 磁盘组。
|
4422
4683
|
class DiskGroup < TencentCloud::Common::AbstractModel
|
4423
4684
|
# @param Spec: 磁盘规格。
|
@@ -5036,6 +5297,31 @@ module TencentCloud
|
|
5036
5297
|
end
|
5037
5298
|
end
|
5038
5299
|
|
5300
|
+
# 容器集群外部访问设置
|
5301
|
+
class ExternalAccess < TencentCloud::Common::AbstractModel
|
5302
|
+
# @param Type: 外部访问类型,当前仅支持CLB字段
|
5303
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5304
|
+
# @type Type: String
|
5305
|
+
# @param CLBServer: CLB设置信息
|
5306
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5307
|
+
# @type CLBServer: :class:`Tencentcloud::Emr.v20190103.models.CLBSetting`
|
5308
|
+
|
5309
|
+
attr_accessor :Type, :CLBServer
|
5310
|
+
|
5311
|
+
def initialize(type=nil, clbserver=nil)
|
5312
|
+
@Type = type
|
5313
|
+
@CLBServer = clbserver
|
5314
|
+
end
|
5315
|
+
|
5316
|
+
def deserialize(params)
|
5317
|
+
@Type = params['Type']
|
5318
|
+
unless params['CLBServer'].nil?
|
5319
|
+
@CLBServer = CLBSetting.new
|
5320
|
+
@CLBServer.deserialize(params['CLBServer'])
|
5321
|
+
end
|
5322
|
+
end
|
5323
|
+
end
|
5324
|
+
|
5039
5325
|
# 共用组件信息
|
5040
5326
|
class ExternalService < TencentCloud::Common::AbstractModel
|
5041
5327
|
# @param ShareType: 共用组件类型,EMR/CUSTOM
|
@@ -5296,6 +5582,28 @@ module TencentCloud
|
|
5296
5582
|
end
|
5297
5583
|
end
|
5298
5584
|
|
5585
|
+
# 主机路径
|
5586
|
+
class HostPathVolumeSource < TencentCloud::Common::AbstractModel
|
5587
|
+
# @param Path: 主机路径
|
5588
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5589
|
+
# @type Path: String
|
5590
|
+
# @param Type: 主机路径类型,当前默认DirectoryOrCreate
|
5591
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5592
|
+
# @type Type: String
|
5593
|
+
|
5594
|
+
attr_accessor :Path, :Type
|
5595
|
+
|
5596
|
+
def initialize(path=nil, type=nil)
|
5597
|
+
@Path = path
|
5598
|
+
@Type = type
|
5599
|
+
end
|
5600
|
+
|
5601
|
+
def deserialize(params)
|
5602
|
+
@Path = params['Path']
|
5603
|
+
@Type = params['Type']
|
5604
|
+
end
|
5605
|
+
end
|
5606
|
+
|
5299
5607
|
# Pod HostPath挂载方式描述
|
5300
5608
|
class HostVolumeContext < TencentCloud::Common::AbstractModel
|
5301
5609
|
# @param VolumePath: Pod挂载宿主机的目录。资源对宿主机的挂载点,指定的挂载点对应了宿主机的路径,该挂载点在Pod中作为数据存储目录使用
|
@@ -6820,6 +7128,60 @@ module TencentCloud
|
|
6820
7128
|
end
|
6821
7129
|
end
|
6822
7130
|
|
7131
|
+
# ModifyPodNum请求参数结构体
|
7132
|
+
class ModifyPodNumRequest < TencentCloud::Common::AbstractModel
|
7133
|
+
# @param InstanceId: 集群Id
|
7134
|
+
# @type InstanceId: String
|
7135
|
+
# @param ServiceGroup: 服务编号
|
7136
|
+
# @type ServiceGroup: Integer
|
7137
|
+
# @param ServiceType: 角色编号
|
7138
|
+
# @type ServiceType: Integer
|
7139
|
+
# @param PodNum: 期望Pod数量
|
7140
|
+
# @type PodNum: Integer
|
7141
|
+
|
7142
|
+
attr_accessor :InstanceId, :ServiceGroup, :ServiceType, :PodNum
|
7143
|
+
|
7144
|
+
def initialize(instanceid=nil, servicegroup=nil, servicetype=nil, podnum=nil)
|
7145
|
+
@InstanceId = instanceid
|
7146
|
+
@ServiceGroup = servicegroup
|
7147
|
+
@ServiceType = servicetype
|
7148
|
+
@PodNum = podnum
|
7149
|
+
end
|
7150
|
+
|
7151
|
+
def deserialize(params)
|
7152
|
+
@InstanceId = params['InstanceId']
|
7153
|
+
@ServiceGroup = params['ServiceGroup']
|
7154
|
+
@ServiceType = params['ServiceType']
|
7155
|
+
@PodNum = params['PodNum']
|
7156
|
+
end
|
7157
|
+
end
|
7158
|
+
|
7159
|
+
# ModifyPodNum返回参数结构体
|
7160
|
+
class ModifyPodNumResponse < TencentCloud::Common::AbstractModel
|
7161
|
+
# @param InstanceId: 集群Id
|
7162
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7163
|
+
# @type InstanceId: String
|
7164
|
+
# @param FlowId: 流程Id
|
7165
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7166
|
+
# @type FlowId: Integer
|
7167
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
7168
|
+
# @type RequestId: String
|
7169
|
+
|
7170
|
+
attr_accessor :InstanceId, :FlowId, :RequestId
|
7171
|
+
|
7172
|
+
def initialize(instanceid=nil, flowid=nil, requestid=nil)
|
7173
|
+
@InstanceId = instanceid
|
7174
|
+
@FlowId = flowid
|
7175
|
+
@RequestId = requestid
|
7176
|
+
end
|
7177
|
+
|
7178
|
+
def deserialize(params)
|
7179
|
+
@InstanceId = params['InstanceId']
|
7180
|
+
@FlowId = params['FlowId']
|
7181
|
+
@RequestId = params['RequestId']
|
7182
|
+
end
|
7183
|
+
end
|
7184
|
+
|
6823
7185
|
# ModifyResourcePools请求参数结构体
|
6824
7186
|
class ModifyResourcePoolsRequest < TencentCloud::Common::AbstractModel
|
6825
7187
|
# @param InstanceId: emr集群id
|
@@ -7454,6 +7816,38 @@ module TencentCloud
|
|
7454
7816
|
end
|
7455
7817
|
end
|
7456
7818
|
|
7819
|
+
# 节点亲和性设置
|
7820
|
+
class NodeAffinity < TencentCloud::Common::AbstractModel
|
7821
|
+
# @param RequiredDuringSchedulingIgnoredDuringExecution: 节点亲和性-强制调度设置
|
7822
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7823
|
+
# @type RequiredDuringSchedulingIgnoredDuringExecution: :class:`Tencentcloud::Emr.v20190103.models.NodeSelector`
|
7824
|
+
# @param PreferredDuringSchedulingIgnoredDuringExecution: 节点亲和性-容忍调度
|
7825
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7826
|
+
# @type PreferredDuringSchedulingIgnoredDuringExecution: Array
|
7827
|
+
|
7828
|
+
attr_accessor :RequiredDuringSchedulingIgnoredDuringExecution, :PreferredDuringSchedulingIgnoredDuringExecution
|
7829
|
+
|
7830
|
+
def initialize(requiredduringschedulingignoredduringexecution=nil, preferredduringschedulingignoredduringexecution=nil)
|
7831
|
+
@RequiredDuringSchedulingIgnoredDuringExecution = requiredduringschedulingignoredduringexecution
|
7832
|
+
@PreferredDuringSchedulingIgnoredDuringExecution = preferredduringschedulingignoredduringexecution
|
7833
|
+
end
|
7834
|
+
|
7835
|
+
def deserialize(params)
|
7836
|
+
unless params['RequiredDuringSchedulingIgnoredDuringExecution'].nil?
|
7837
|
+
@RequiredDuringSchedulingIgnoredDuringExecution = NodeSelector.new
|
7838
|
+
@RequiredDuringSchedulingIgnoredDuringExecution.deserialize(params['RequiredDuringSchedulingIgnoredDuringExecution'])
|
7839
|
+
end
|
7840
|
+
unless params['PreferredDuringSchedulingIgnoredDuringExecution'].nil?
|
7841
|
+
@PreferredDuringSchedulingIgnoredDuringExecution = []
|
7842
|
+
params['PreferredDuringSchedulingIgnoredDuringExecution'].each do |i|
|
7843
|
+
preferredschedulingterm_tmp = PreferredSchedulingTerm.new
|
7844
|
+
preferredschedulingterm_tmp.deserialize(i)
|
7845
|
+
@PreferredDuringSchedulingIgnoredDuringExecution << preferredschedulingterm_tmp
|
7846
|
+
end
|
7847
|
+
end
|
7848
|
+
end
|
7849
|
+
end
|
7850
|
+
|
7457
7851
|
# 用于创建集群价格清单 节点价格详情
|
7458
7852
|
class NodeDetailPriceResult < TencentCloud::Common::AbstractModel
|
7459
7853
|
# @param NodeType: 节点类型 master core task common router mysql
|
@@ -7850,6 +8244,81 @@ module TencentCloud
|
|
7850
8244
|
end
|
7851
8245
|
end
|
7852
8246
|
|
8247
|
+
# Pod强制调度节点选择条件
|
8248
|
+
class NodeSelector < TencentCloud::Common::AbstractModel
|
8249
|
+
# @param NodeSelectorTerms: Pod强制调度节点选择条件
|
8250
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8251
|
+
# @type NodeSelectorTerms: Array
|
8252
|
+
|
8253
|
+
attr_accessor :NodeSelectorTerms
|
8254
|
+
|
8255
|
+
def initialize(nodeselectorterms=nil)
|
8256
|
+
@NodeSelectorTerms = nodeselectorterms
|
8257
|
+
end
|
8258
|
+
|
8259
|
+
def deserialize(params)
|
8260
|
+
unless params['NodeSelectorTerms'].nil?
|
8261
|
+
@NodeSelectorTerms = []
|
8262
|
+
params['NodeSelectorTerms'].each do |i|
|
8263
|
+
nodeselectorterm_tmp = NodeSelectorTerm.new
|
8264
|
+
nodeselectorterm_tmp.deserialize(i)
|
8265
|
+
@NodeSelectorTerms << nodeselectorterm_tmp
|
8266
|
+
end
|
8267
|
+
end
|
8268
|
+
end
|
8269
|
+
end
|
8270
|
+
|
8271
|
+
# Pod节点选择项
|
8272
|
+
class NodeSelectorRequirement < TencentCloud::Common::AbstractModel
|
8273
|
+
# @param Key: 节点选择项Key值
|
8274
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8275
|
+
# @type Key: String
|
8276
|
+
# @param Operator: 节点选择项Operator值,支持In, NotIn, Exists, DoesNotExist. Gt, and Lt.
|
8277
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8278
|
+
# @type Operator: String
|
8279
|
+
# @param Values: 节点选择项Values值
|
8280
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8281
|
+
# @type Values: Array
|
8282
|
+
|
8283
|
+
attr_accessor :Key, :Operator, :Values
|
8284
|
+
|
8285
|
+
def initialize(key=nil, operator=nil, values=nil)
|
8286
|
+
@Key = key
|
8287
|
+
@Operator = operator
|
8288
|
+
@Values = values
|
8289
|
+
end
|
8290
|
+
|
8291
|
+
def deserialize(params)
|
8292
|
+
@Key = params['Key']
|
8293
|
+
@Operator = params['Operator']
|
8294
|
+
@Values = params['Values']
|
8295
|
+
end
|
8296
|
+
end
|
8297
|
+
|
8298
|
+
# Pod节点选择项集合
|
8299
|
+
class NodeSelectorTerm < TencentCloud::Common::AbstractModel
|
8300
|
+
# @param MatchExpressions: 节点选择项表达式集合
|
8301
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8302
|
+
# @type MatchExpressions: Array
|
8303
|
+
|
8304
|
+
attr_accessor :MatchExpressions
|
8305
|
+
|
8306
|
+
def initialize(matchexpressions=nil)
|
8307
|
+
@MatchExpressions = matchexpressions
|
8308
|
+
end
|
8309
|
+
|
8310
|
+
def deserialize(params)
|
8311
|
+
unless params['MatchExpressions'].nil?
|
8312
|
+
@MatchExpressions = []
|
8313
|
+
params['MatchExpressions'].each do |i|
|
8314
|
+
nodeselectorrequirement_tmp = NodeSelectorRequirement.new
|
8315
|
+
nodeselectorrequirement_tmp.deserialize(i)
|
8316
|
+
@MatchExpressions << nodeselectorrequirement_tmp
|
8317
|
+
end
|
8318
|
+
end
|
8319
|
+
end
|
8320
|
+
end
|
8321
|
+
|
7853
8322
|
# 弹性扩缩容执行一次规则上下文
|
7854
8323
|
class NotRepeatStrategy < TencentCloud::Common::AbstractModel
|
7855
8324
|
# @param ExecuteAt: 该次任务执行的具体完整时间,格式为"2020-07-13 00:00:00"
|
@@ -8770,6 +9239,31 @@ module TencentCloud
|
|
8770
9239
|
end
|
8771
9240
|
end
|
8772
9241
|
|
9242
|
+
# Pod容忍调度节点选择项
|
9243
|
+
class PreferredSchedulingTerm < TencentCloud::Common::AbstractModel
|
9244
|
+
# @param Weight: 权重,范围1-100
|
9245
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9246
|
+
# @type Weight: Integer
|
9247
|
+
# @param Preference: 节点选择表达式
|
9248
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9249
|
+
# @type Preference: :class:`Tencentcloud::Emr.v20190103.models.NodeSelectorTerm`
|
9250
|
+
|
9251
|
+
attr_accessor :Weight, :Preference
|
9252
|
+
|
9253
|
+
def initialize(weight=nil, preference=nil)
|
9254
|
+
@Weight = weight
|
9255
|
+
@Preference = preference
|
9256
|
+
end
|
9257
|
+
|
9258
|
+
def deserialize(params)
|
9259
|
+
@Weight = params['Weight']
|
9260
|
+
unless params['Preference'].nil?
|
9261
|
+
@Preference = NodeSelectorTerm.new
|
9262
|
+
@Preference.deserialize(params['Preference'])
|
9263
|
+
end
|
9264
|
+
end
|
9265
|
+
end
|
9266
|
+
|
8773
9267
|
# 价格详情
|
8774
9268
|
class PriceDetail < TencentCloud::Common::AbstractModel
|
8775
9269
|
# @param ResourceId: 节点ID
|
@@ -11559,6 +12053,34 @@ module TencentCloud
|
|
11559
12053
|
end
|
11560
12054
|
end
|
11561
12055
|
|
12056
|
+
# 数据卷目录设置
|
12057
|
+
class VolumeSetting < TencentCloud::Common::AbstractModel
|
12058
|
+
# @param VolumeType: 数据卷类型
|
12059
|
+
# <li>HOST_PATH表示支持本机路径</li>
|
12060
|
+
# <li>NEW_PVC表示新建PVC</li>
|
12061
|
+
# 组件角色支持的数据卷类型可参考 EMR on TKE 集群部署说明:[部署说明](https://cloud.tencent.com/document/product/589/94254)
|
12062
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
12063
|
+
# @type VolumeType: String
|
12064
|
+
# @param HostPath: 主机路径信息
|
12065
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
12066
|
+
# @type HostPath: :class:`Tencentcloud::Emr.v20190103.models.HostPathVolumeSource`
|
12067
|
+
|
12068
|
+
attr_accessor :VolumeType, :HostPath
|
12069
|
+
|
12070
|
+
def initialize(volumetype=nil, hostpath=nil)
|
12071
|
+
@VolumeType = volumetype
|
12072
|
+
@HostPath = hostpath
|
12073
|
+
end
|
12074
|
+
|
12075
|
+
def deserialize(params)
|
12076
|
+
@VolumeType = params['VolumeType']
|
12077
|
+
unless params['HostPath'].nil?
|
12078
|
+
@HostPath = HostPathVolumeSource.new
|
12079
|
+
@HostPath.deserialize(params['HostPath'])
|
12080
|
+
end
|
12081
|
+
end
|
12082
|
+
end
|
12083
|
+
|
11562
12084
|
# 定时扩容每周重复任务策略
|
11563
12085
|
class WeekRepeatStrategy < TencentCloud::Common::AbstractModel
|
11564
12086
|
# @param ExecuteAtTimeOfDay: 重复任务执行的具体时刻,例如"01:02:00"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-emr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.958
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|