tencentcloud-sdk-emr 3.0.900 → 3.0.902
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/v20190103/client.rb +126 -6
- data/lib/v20190103/models.rb +675 -10
- 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: 5a0533866a91a8d9c4debf41b75a438db22eadfc
|
4
|
+
data.tar.gz: 575cf34a1e6182a50c4e561e542c3f2d3fe42f3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6342a742832965cb3398ec81d5afce31aee26dfbd67642bc60415be488b83a883cc5dd3360bb2c9b05164be69da0f15309781e8c9f27a5bdf393524faf081d15
|
7
|
+
data.tar.gz: 37d445ca3e2bd3a81d2dbc69d80e6c16104f51869bd8ab1f86ca04f02f62c4af937577d7b4a5ebc8680242f078ac10e73b89743c92620416ff27a6334875574d
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.902
|
data/lib/v20190103/client.rb
CHANGED
@@ -174,6 +174,30 @@ module TencentCloud
|
|
174
174
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
175
175
|
end
|
176
176
|
|
177
|
+
# yarn资源调度-部署生效
|
178
|
+
|
179
|
+
# @param request: Request instance for DeployYarnConf.
|
180
|
+
# @type request: :class:`Tencentcloud::emr::V20190103::DeployYarnConfRequest`
|
181
|
+
# @rtype: :class:`Tencentcloud::emr::V20190103::DeployYarnConfResponse`
|
182
|
+
def DeployYarnConf(request)
|
183
|
+
body = send_request('DeployYarnConf', request.serialize)
|
184
|
+
response = JSON.parse(body)
|
185
|
+
if response['Response'].key?('Error') == false
|
186
|
+
model = DeployYarnConfResponse.new
|
187
|
+
model.deserialize(response['Response'])
|
188
|
+
model
|
189
|
+
else
|
190
|
+
code = response['Response']['Error']['Code']
|
191
|
+
message = response['Response']['Error']['Message']
|
192
|
+
reqid = response['Response']['RequestId']
|
193
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
194
|
+
end
|
195
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
196
|
+
raise e
|
197
|
+
rescue StandardError => e
|
198
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
199
|
+
end
|
200
|
+
|
177
201
|
# 获取自动扩缩容全局配置
|
178
202
|
|
179
203
|
# @param request: Request instance for DescribeAutoScaleGroupGlobalConf.
|
@@ -558,7 +582,7 @@ module TencentCloud
|
|
558
582
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
559
583
|
end
|
560
584
|
|
561
|
-
# 查询YARN
|
585
|
+
# 查询YARN资源调度数据信息。已废弃,请使用`DescribeYarnQueue`去查询队列信息。
|
562
586
|
|
563
587
|
# @param request: Request instance for DescribeResourceSchedule.
|
564
588
|
# @type request: :class:`Tencentcloud::emr::V20190103::DescribeResourceScheduleRequest`
|
@@ -582,6 +606,30 @@ module TencentCloud
|
|
582
606
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
583
607
|
end
|
584
608
|
|
609
|
+
# YARN资源调度-变更详情
|
610
|
+
|
611
|
+
# @param request: Request instance for DescribeResourceScheduleDiffDetail.
|
612
|
+
# @type request: :class:`Tencentcloud::emr::V20190103::DescribeResourceScheduleDiffDetailRequest`
|
613
|
+
# @rtype: :class:`Tencentcloud::emr::V20190103::DescribeResourceScheduleDiffDetailResponse`
|
614
|
+
def DescribeResourceScheduleDiffDetail(request)
|
615
|
+
body = send_request('DescribeResourceScheduleDiffDetail', request.serialize)
|
616
|
+
response = JSON.parse(body)
|
617
|
+
if response['Response'].key?('Error') == false
|
618
|
+
model = DescribeResourceScheduleDiffDetailResponse.new
|
619
|
+
model.deserialize(response['Response'])
|
620
|
+
model
|
621
|
+
else
|
622
|
+
code = response['Response']['Error']['Code']
|
623
|
+
message = response['Response']['Error']['Message']
|
624
|
+
reqid = response['Response']['RequestId']
|
625
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
626
|
+
end
|
627
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
628
|
+
raise e
|
629
|
+
rescue StandardError => e
|
630
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
631
|
+
end
|
632
|
+
|
585
633
|
# 查询服务进程信息
|
586
634
|
|
587
635
|
# @param request: Request instance for DescribeServiceNodeInfos.
|
@@ -679,7 +727,31 @@ module TencentCloud
|
|
679
727
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
680
728
|
end
|
681
729
|
|
682
|
-
#
|
730
|
+
# 获取资源调度中的队列信息
|
731
|
+
|
732
|
+
# @param request: Request instance for DescribeYarnQueue.
|
733
|
+
# @type request: :class:`Tencentcloud::emr::V20190103::DescribeYarnQueueRequest`
|
734
|
+
# @rtype: :class:`Tencentcloud::emr::V20190103::DescribeYarnQueueResponse`
|
735
|
+
def DescribeYarnQueue(request)
|
736
|
+
body = send_request('DescribeYarnQueue', request.serialize)
|
737
|
+
response = JSON.parse(body)
|
738
|
+
if response['Response'].key?('Error') == false
|
739
|
+
model = DescribeYarnQueueResponse.new
|
740
|
+
model.deserialize(response['Response'])
|
741
|
+
model
|
742
|
+
else
|
743
|
+
code = response['Response']['Error']['Code']
|
744
|
+
message = response['Response']['Error']['Message']
|
745
|
+
reqid = response['Response']['RequestId']
|
746
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
747
|
+
end
|
748
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
749
|
+
raise e
|
750
|
+
rescue StandardError => e
|
751
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
752
|
+
end
|
753
|
+
|
754
|
+
# 查看yarn资源调度的调度历史。废弃,请使用流程中心查看历史记录。
|
683
755
|
|
684
756
|
# @param request: Request instance for DescribeYarnScheduleHistory.
|
685
757
|
# @type request: :class:`Tencentcloud::emr::V20190103::DescribeYarnScheduleHistoryRequest`
|
@@ -872,7 +944,7 @@ module TencentCloud
|
|
872
944
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
873
945
|
end
|
874
946
|
|
875
|
-
# 刷新YARN
|
947
|
+
# 刷新YARN的动态资源池。已废弃,请使用`DeployYarnConf`
|
876
948
|
|
877
949
|
# @param request: Request instance for ModifyResourcePools.
|
878
950
|
# @type request: :class:`Tencentcloud::emr::V20190103::ModifyResourcePoolsRequest`
|
@@ -896,7 +968,7 @@ module TencentCloud
|
|
896
968
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
897
969
|
end
|
898
970
|
|
899
|
-
# 修改YARN
|
971
|
+
# 修改YARN资源调度的资源配置。已废弃,请使用`ModifyYarnQueueV2`来修改队列配置
|
900
972
|
|
901
973
|
# @param request: Request instance for ModifyResourceScheduleConfig.
|
902
974
|
# @type request: :class:`Tencentcloud::emr::V20190103::ModifyResourceScheduleConfigRequest`
|
@@ -920,7 +992,7 @@ module TencentCloud
|
|
920
992
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
921
993
|
end
|
922
994
|
|
923
|
-
# 修改了yarn
|
995
|
+
# 修改了yarn的资源调度器,点击部署生效。
|
924
996
|
|
925
997
|
# @param request: Request instance for ModifyResourceScheduler.
|
926
998
|
# @type request: :class:`Tencentcloud::emr::V20190103::ModifyResourceSchedulerRequest`
|
@@ -992,7 +1064,7 @@ module TencentCloud
|
|
992
1064
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
993
1065
|
end
|
994
1066
|
|
995
|
-
#
|
1067
|
+
# 部署生效。已废弃,请使用`DeployYarnConf`接口进行部署生效
|
996
1068
|
|
997
1069
|
# @param request: Request instance for ModifyYarnDeploy.
|
998
1070
|
# @type request: :class:`Tencentcloud::emr::V20190103::ModifyYarnDeployRequest`
|
@@ -1016,6 +1088,54 @@ module TencentCloud
|
|
1016
1088
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1017
1089
|
end
|
1018
1090
|
|
1091
|
+
# 修改资源调度中队列信息
|
1092
|
+
|
1093
|
+
# @param request: Request instance for ModifyYarnQueueV2.
|
1094
|
+
# @type request: :class:`Tencentcloud::emr::V20190103::ModifyYarnQueueV2Request`
|
1095
|
+
# @rtype: :class:`Tencentcloud::emr::V20190103::ModifyYarnQueueV2Response`
|
1096
|
+
def ModifyYarnQueueV2(request)
|
1097
|
+
body = send_request('ModifyYarnQueueV2', request.serialize)
|
1098
|
+
response = JSON.parse(body)
|
1099
|
+
if response['Response'].key?('Error') == false
|
1100
|
+
model = ModifyYarnQueueV2Response.new
|
1101
|
+
model.deserialize(response['Response'])
|
1102
|
+
model
|
1103
|
+
else
|
1104
|
+
code = response['Response']['Error']['Code']
|
1105
|
+
message = response['Response']['Error']['Message']
|
1106
|
+
reqid = response['Response']['RequestId']
|
1107
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1108
|
+
end
|
1109
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1110
|
+
raise e
|
1111
|
+
rescue StandardError => e
|
1112
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1113
|
+
end
|
1114
|
+
|
1115
|
+
# 修改YARN资源调度的资源配置
|
1116
|
+
|
1117
|
+
# @param request: Request instance for ResetYarnConfig.
|
1118
|
+
# @type request: :class:`Tencentcloud::emr::V20190103::ResetYarnConfigRequest`
|
1119
|
+
# @rtype: :class:`Tencentcloud::emr::V20190103::ResetYarnConfigResponse`
|
1120
|
+
def ResetYarnConfig(request)
|
1121
|
+
body = send_request('ResetYarnConfig', request.serialize)
|
1122
|
+
response = JSON.parse(body)
|
1123
|
+
if response['Response'].key?('Error') == false
|
1124
|
+
model = ResetYarnConfigResponse.new
|
1125
|
+
model.deserialize(response['Response'])
|
1126
|
+
model
|
1127
|
+
else
|
1128
|
+
code = response['Response']['Error']['Code']
|
1129
|
+
message = response['Response']['Error']['Message']
|
1130
|
+
reqid = response['Response']['RequestId']
|
1131
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1132
|
+
end
|
1133
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1134
|
+
raise e
|
1135
|
+
rescue StandardError => e
|
1136
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1137
|
+
end
|
1138
|
+
|
1019
1139
|
# 创建流程作业
|
1020
1140
|
|
1021
1141
|
# @param request: Request instance for RunJobFlow.
|
data/lib/v20190103/models.rb
CHANGED
@@ -772,10 +772,10 @@ module TencentCloud
|
|
772
772
|
|
773
773
|
attr_accessor :Id, :ClusterId, :Ftitle, :ClusterName, :RegionId, :ZoneId, :AppId, :Uin, :ProjectId, :VpcId, :SubnetId, :Status, :AddTime, :RunTime, :Config, :MasterIp, :EmrVersion, :ChargeType, :TradeVersion, :ResourceOrderId, :IsTradeCluster, :AlarmInfo, :IsWoodpeckerCluster, :MetaDb, :Tags, :HiveMetaDb, :ServiceClass, :AliasInfo, :ProductId, :Zone, :SceneName, :SceneServiceClass, :SceneEmrVersion, :DisplayName, :VpcName, :SubnetName, :ClusterExternalServiceInfo, :UniqVpcId, :UniqSubnetId, :TopologyInfoList, :IsMultiZoneCluster, :IsCvmReplace, :ClusterTitle, :ConfigDetail
|
774
774
|
extend Gem::Deprecate
|
775
|
-
deprecate :Ftitle, :none, 2024,
|
776
|
-
deprecate :Ftitle=, :none, 2024,
|
777
|
-
deprecate :Config, :none, 2024,
|
778
|
-
deprecate :Config=, :none, 2024,
|
775
|
+
deprecate :Ftitle, :none, 2024, 9
|
776
|
+
deprecate :Ftitle=, :none, 2024, 9
|
777
|
+
deprecate :Config, :none, 2024, 9
|
778
|
+
deprecate :Config=, :none, 2024, 9
|
779
779
|
|
780
780
|
def initialize(id=nil, clusterid=nil, ftitle=nil, clustername=nil, regionid=nil, zoneid=nil, appid=nil, uin=nil, projectid=nil, vpcid=nil, subnetid=nil, status=nil, addtime=nil, runtime=nil, config=nil, masterip=nil, emrversion=nil, chargetype=nil, tradeversion=nil, resourceorderid=nil, istradecluster=nil, alarminfo=nil, iswoodpeckercluster=nil, metadb=nil, tags=nil, hivemetadb=nil, serviceclass=nil, aliasinfo=nil, productid=nil, zone=nil, scenename=nil, sceneserviceclass=nil, sceneemrversion=nil, displayname=nil, vpcname=nil, subnetname=nil, clusterexternalserviceinfo=nil, uniqvpcid=nil, uniqsubnetid=nil, topologyinfolist=nil, ismultizonecluster=nil, iscvmreplace=nil, clustertitle=nil, configdetail=nil)
|
781
781
|
@Id = id
|
@@ -1009,6 +1009,171 @@ module TencentCloud
|
|
1009
1009
|
end
|
1010
1010
|
end
|
1011
1011
|
|
1012
|
+
# 资源调度 - 队列修改信息
|
1013
|
+
class ConfigModifyInfoV2 < TencentCloud::Common::AbstractModel
|
1014
|
+
# @param OpType: 操作类型,可选值:
|
1015
|
+
|
1016
|
+
# - 0:新建队列
|
1017
|
+
# - 1:编辑-全量覆盖
|
1018
|
+
# - 2:新建子队列
|
1019
|
+
# - 3:删除
|
1020
|
+
# - 4:克隆,与新建子队列的行为一样,特别的对于`fair`,可以复制子队列到新建队列
|
1021
|
+
# - 6:编辑-增量更新
|
1022
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1023
|
+
# @type OpType: Integer
|
1024
|
+
# @param Name: 队列名称,不支持修改。
|
1025
|
+
# @type Name: String
|
1026
|
+
# @param ParentId: 新建队列 传root的MyId;新建子队列 传 选中队列的 myId;克隆 要传 选中队列 parentId
|
1027
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1028
|
+
# @type ParentId: String
|
1029
|
+
# @param MyId: 编辑、删除 传选中队列的 myId。克隆只有在调度器是`fair`时才需要传,用来复制子队列到新队列。
|
1030
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1031
|
+
# @type MyId: String
|
1032
|
+
# @param BasicParams: 基础配置信息。key的取值与**DescribeYarnQueue**返回的字段一致。
|
1033
|
+
# ###### 公平调度器
|
1034
|
+
# key的取值信息如下:
|
1035
|
+
|
1036
|
+
# - type,父队列,取值为 **parent** 或 **null**
|
1037
|
+
# - aclSubmitApps,提交访问控制,取值为**AclForYarnQueue类型的json串**或**null**
|
1038
|
+
# - aclAdministerApps,管理访问控制,取值为**AclForYarnQueue类型的json串**或**null**
|
1039
|
+
# - minSharePreemptionTimeout,最小共享优先权超时时间,取值为**数字字符串**或**null**
|
1040
|
+
# - fairSharePreemptionTimeout,公平份额抢占超时时间,取值为**数字字符串**或**null**
|
1041
|
+
# - fairSharePreemptionThreshold,公平份额抢占阈值,取值为**数字字符串**或**null**,其中数字的范围是(0,1]
|
1042
|
+
# - allowPreemptionFrom,抢占模式,取值为**布尔字符串**或**null**
|
1043
|
+
# - schedulingPolicy,调度策略,取值为**drf**、**fair**、**fifo**或**null**
|
1044
|
+
|
1045
|
+
# ```
|
1046
|
+
# type AclForYarnQueue struct {
|
1047
|
+
# User *string `json:"user"` //用户名
|
1048
|
+
# Group *string `json:"group"`//组名
|
1049
|
+
# }
|
1050
|
+
# ```
|
1051
|
+
# ###### 容量调度器
|
1052
|
+
# key的取值信息如下:
|
1053
|
+
|
1054
|
+
# - state,队列状态,取值为**STOPPED**或**RUNNING**
|
1055
|
+
# - default-node-label-expression,默认标签表达式,取值为**标签**或**null**
|
1056
|
+
# - acl_submit_applications,提交访问控制,取值为**AclForYarnQueue类型的json串**或**null**
|
1057
|
+
# - acl_administer_queue,管理访问控制,取值为**AclForYarnQueue类型的json串**或**null**
|
1058
|
+
# - maximum-allocation-mb,分配Container最大内存数量,取值为**数字字符串**或**null**
|
1059
|
+
# - maximum-allocation-vcores,Container最大vCore数量,取值为**数字字符串**或**null**
|
1060
|
+
# ```
|
1061
|
+
# type AclForYarnQueue struct {
|
1062
|
+
# User *string `json:"user"` //用户名
|
1063
|
+
# Group *string `json:"group"`//组名
|
1064
|
+
# }
|
1065
|
+
# ```
|
1066
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1067
|
+
# @type BasicParams: :class:`Tencentcloud::Emr.v20190103.models.ItemSeq`
|
1068
|
+
# @param ConfigSetParams: 配置集信息,取值见该复杂类型的参数说明。配置集是计划模式在队列中表现,表示的是不同时间段不同的配置值,所有队列的配置集名称都一样,对于单个队列,每个配置集中的标签与参数都一样,只是参数值不同。
|
1069
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1070
|
+
# @type ConfigSetParams: Array
|
1071
|
+
# @param DeleteLables: 容量调度专用,`OpType`为`6`时才生效,表示要删除这个队列中的哪些标签。优先级高于ConfigSetParams中的LabelParams。
|
1072
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1073
|
+
# @type DeleteLables: Array
|
1074
|
+
|
1075
|
+
attr_accessor :OpType, :Name, :ParentId, :MyId, :BasicParams, :ConfigSetParams, :DeleteLables
|
1076
|
+
|
1077
|
+
def initialize(optype=nil, name=nil, parentid=nil, myid=nil, basicparams=nil, configsetparams=nil, deletelables=nil)
|
1078
|
+
@OpType = optype
|
1079
|
+
@Name = name
|
1080
|
+
@ParentId = parentid
|
1081
|
+
@MyId = myid
|
1082
|
+
@BasicParams = basicparams
|
1083
|
+
@ConfigSetParams = configsetparams
|
1084
|
+
@DeleteLables = deletelables
|
1085
|
+
end
|
1086
|
+
|
1087
|
+
def deserialize(params)
|
1088
|
+
@OpType = params['OpType']
|
1089
|
+
@Name = params['Name']
|
1090
|
+
@ParentId = params['ParentId']
|
1091
|
+
@MyId = params['MyId']
|
1092
|
+
unless params['BasicParams'].nil?
|
1093
|
+
@BasicParams = ItemSeq.new
|
1094
|
+
@BasicParams.deserialize(params['BasicParams'])
|
1095
|
+
end
|
1096
|
+
unless params['ConfigSetParams'].nil?
|
1097
|
+
@ConfigSetParams = []
|
1098
|
+
params['ConfigSetParams'].each do |i|
|
1099
|
+
configsetinfo_tmp = ConfigSetInfo.new
|
1100
|
+
configsetinfo_tmp.deserialize(i)
|
1101
|
+
@ConfigSetParams << configsetinfo_tmp
|
1102
|
+
end
|
1103
|
+
end
|
1104
|
+
@DeleteLables = params['DeleteLables']
|
1105
|
+
end
|
1106
|
+
end
|
1107
|
+
|
1108
|
+
# 资源调度-配置集信息
|
1109
|
+
class ConfigSetInfo < TencentCloud::Common::AbstractModel
|
1110
|
+
# @param ConfigSet: 配置集名称
|
1111
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1112
|
+
# @type ConfigSet: String
|
1113
|
+
# @param LabelParams: 容量调度器会使用,里面设置了标签相关的配置。key的取值与**DescribeYarnQueue**返回的字段一致。
|
1114
|
+
# key的取值信息如下:
|
1115
|
+
# - labelName,标签名称,标签管理里的标签。
|
1116
|
+
# - capacity,容量,取值为**数字字符串**
|
1117
|
+
# - maximum-capacity,最大容量,取值为**数字字符串**
|
1118
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1119
|
+
# @type LabelParams: Array
|
1120
|
+
# @param BasicParams: 设置配置集相关的参数。key的取值与**DescribeYarnQueue**返回的字段一致。
|
1121
|
+
# ###### 公平调度器
|
1122
|
+
# key的取值信息如下:
|
1123
|
+
# - minResources,最大资源量,取值为**YarnResource类型的json串**或**null**
|
1124
|
+
# - maxResources,最大资源量,取值为**YarnResource类型的json串**或**null**
|
1125
|
+
# - maxChildResources,能够分配给为未声明子队列的最大资源量,取值为**数字字符串**或**null**
|
1126
|
+
# - maxRunningApps,最高可同时处于运行的App数量,取值为**数字字符串**或**null**
|
1127
|
+
# - weight,权重,取值为**数字字符串**或**null**
|
1128
|
+
# - maxAMShare,App Master最大份额,取值为**数字字符串**或**null**,其中数字的范围是[0,1]或-1
|
1129
|
+
|
1130
|
+
# ```
|
1131
|
+
# type YarnResource struct {
|
1132
|
+
# Vcores *int `json:"vcores"`
|
1133
|
+
# Memory *int `json:"memory"`
|
1134
|
+
# Type *string `json:"type"` // 取值为`percent`或`null`当值为`percent`时,表示使用的百分比,否则就是使用的绝对数值。只有maxResources、maxChildResources才可以取值为`percent`
|
1135
|
+
# }
|
1136
|
+
# ```
|
1137
|
+
|
1138
|
+
# ###### 容量调度器
|
1139
|
+
# key的取值信息如下:
|
1140
|
+
# - minimum-user-limit-percent,用户最小容量,取值为**YarnResource类型的json串**或**null**,其中数字的范围是[0,100]
|
1141
|
+
# - user-limit-factor,用户资源因子,取值为**YarnResource类型的json串**或**null**
|
1142
|
+
# - maximum-applications,最大应用数Max-Applications,取值为**数字字符串**或**null**,其中数字为正整数
|
1143
|
+
# - maximum-am-resource-percent,最大AM比例,取值为**数字字符串**或**null**,其中数字的范围是[0,1]或-1
|
1144
|
+
# - default-application-priority,资源池优先级,取值为**数字字符串**或**null**,其中数字为正整数
|
1145
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1146
|
+
# @type BasicParams: Array
|
1147
|
+
|
1148
|
+
attr_accessor :ConfigSet, :LabelParams, :BasicParams
|
1149
|
+
|
1150
|
+
def initialize(configset=nil, labelparams=nil, basicparams=nil)
|
1151
|
+
@ConfigSet = configset
|
1152
|
+
@LabelParams = labelparams
|
1153
|
+
@BasicParams = basicparams
|
1154
|
+
end
|
1155
|
+
|
1156
|
+
def deserialize(params)
|
1157
|
+
@ConfigSet = params['ConfigSet']
|
1158
|
+
unless params['LabelParams'].nil?
|
1159
|
+
@LabelParams = []
|
1160
|
+
params['LabelParams'].each do |i|
|
1161
|
+
itemseq_tmp = ItemSeq.new
|
1162
|
+
itemseq_tmp.deserialize(i)
|
1163
|
+
@LabelParams << itemseq_tmp
|
1164
|
+
end
|
1165
|
+
end
|
1166
|
+
unless params['BasicParams'].nil?
|
1167
|
+
@BasicParams = []
|
1168
|
+
params['BasicParams'].each do |i|
|
1169
|
+
item_tmp = Item.new
|
1170
|
+
item_tmp.deserialize(i)
|
1171
|
+
@BasicParams << item_tmp
|
1172
|
+
end
|
1173
|
+
end
|
1174
|
+
end
|
1175
|
+
end
|
1176
|
+
|
1012
1177
|
# 自定义配置参数
|
1013
1178
|
class Configuration < TencentCloud::Common::AbstractModel
|
1014
1179
|
# @param Classification: 配置文件名,支持SPARK、HIVE、HDFS、YARN的部分配置文件自定义。
|
@@ -1675,6 +1840,42 @@ module TencentCloud
|
|
1675
1840
|
end
|
1676
1841
|
end
|
1677
1842
|
|
1843
|
+
# DeployYarnConf请求参数结构体
|
1844
|
+
class DeployYarnConfRequest < TencentCloud::Common::AbstractModel
|
1845
|
+
# @param InstanceId: emr集群的英文id
|
1846
|
+
# @type InstanceId: String
|
1847
|
+
|
1848
|
+
attr_accessor :InstanceId
|
1849
|
+
|
1850
|
+
def initialize(instanceid=nil)
|
1851
|
+
@InstanceId = instanceid
|
1852
|
+
end
|
1853
|
+
|
1854
|
+
def deserialize(params)
|
1855
|
+
@InstanceId = params['InstanceId']
|
1856
|
+
end
|
1857
|
+
end
|
1858
|
+
|
1859
|
+
# DeployYarnConf返回参数结构体
|
1860
|
+
class DeployYarnConfResponse < TencentCloud::Common::AbstractModel
|
1861
|
+
# @param FlowId: 启动流程后的流程ID,可以使用[DescribeClusterFlowStatusDetail](https://cloud.tencent.com/document/product/589/107224)接口来获取流程状态
|
1862
|
+
# @type FlowId: Integer
|
1863
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1864
|
+
# @type RequestId: String
|
1865
|
+
|
1866
|
+
attr_accessor :FlowId, :RequestId
|
1867
|
+
|
1868
|
+
def initialize(flowid=nil, requestid=nil)
|
1869
|
+
@FlowId = flowid
|
1870
|
+
@RequestId = requestid
|
1871
|
+
end
|
1872
|
+
|
1873
|
+
def deserialize(params)
|
1874
|
+
@FlowId = params['FlowId']
|
1875
|
+
@RequestId = params['RequestId']
|
1876
|
+
end
|
1877
|
+
end
|
1878
|
+
|
1678
1879
|
# DescribeAutoScaleGroupGlobalConf请求参数结构体
|
1679
1880
|
class DescribeAutoScaleGroupGlobalConfRequest < TencentCloud::Common::AbstractModel
|
1680
1881
|
# @param InstanceId: 实例ID。
|
@@ -2864,6 +3065,54 @@ module TencentCloud
|
|
2864
3065
|
end
|
2865
3066
|
end
|
2866
3067
|
|
3068
|
+
# DescribeResourceScheduleDiffDetail请求参数结构体
|
3069
|
+
class DescribeResourceScheduleDiffDetailRequest < TencentCloud::Common::AbstractModel
|
3070
|
+
# @param InstanceId: emr集群的英文id
|
3071
|
+
# @type InstanceId: String
|
3072
|
+
# @param Scheduler: 查询的变更明细对应的调度器,可选值为fair、capacity。如果不传或者传空会使用最新的调度器
|
3073
|
+
# @type Scheduler: String
|
3074
|
+
|
3075
|
+
attr_accessor :InstanceId, :Scheduler
|
3076
|
+
|
3077
|
+
def initialize(instanceid=nil, scheduler=nil)
|
3078
|
+
@InstanceId = instanceid
|
3079
|
+
@Scheduler = scheduler
|
3080
|
+
end
|
3081
|
+
|
3082
|
+
def deserialize(params)
|
3083
|
+
@InstanceId = params['InstanceId']
|
3084
|
+
@Scheduler = params['Scheduler']
|
3085
|
+
end
|
3086
|
+
end
|
3087
|
+
|
3088
|
+
# DescribeResourceScheduleDiffDetail返回参数结构体
|
3089
|
+
class DescribeResourceScheduleDiffDetailResponse < TencentCloud::Common::AbstractModel
|
3090
|
+
# @param Details: 变化项的明细
|
3091
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3092
|
+
# @type Details: Array
|
3093
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3094
|
+
# @type RequestId: String
|
3095
|
+
|
3096
|
+
attr_accessor :Details, :RequestId
|
3097
|
+
|
3098
|
+
def initialize(details=nil, requestid=nil)
|
3099
|
+
@Details = details
|
3100
|
+
@RequestId = requestid
|
3101
|
+
end
|
3102
|
+
|
3103
|
+
def deserialize(params)
|
3104
|
+
unless params['Details'].nil?
|
3105
|
+
@Details = []
|
3106
|
+
params['Details'].each do |i|
|
3107
|
+
diffdetail_tmp = DiffDetail.new
|
3108
|
+
diffdetail_tmp.deserialize(i)
|
3109
|
+
@Details << diffdetail_tmp
|
3110
|
+
end
|
3111
|
+
end
|
3112
|
+
@RequestId = params['RequestId']
|
3113
|
+
end
|
3114
|
+
end
|
3115
|
+
|
2867
3116
|
# DescribeResourceSchedule请求参数结构体
|
2868
3117
|
class DescribeResourceScheduleRequest < TencentCloud::Common::AbstractModel
|
2869
3118
|
# @param InstanceId: emr集群的英文id
|
@@ -3236,6 +3485,145 @@ module TencentCloud
|
|
3236
3485
|
end
|
3237
3486
|
end
|
3238
3487
|
|
3488
|
+
# DescribeYarnQueue请求参数结构体
|
3489
|
+
class DescribeYarnQueueRequest < TencentCloud::Common::AbstractModel
|
3490
|
+
# @param InstanceId: 集群Id
|
3491
|
+
# @type InstanceId: String
|
3492
|
+
# @param Scheduler: 调度器,可选值:
|
3493
|
+
|
3494
|
+
# 1. capacity
|
3495
|
+
# 2. fair
|
3496
|
+
# @type Scheduler: String
|
3497
|
+
|
3498
|
+
attr_accessor :InstanceId, :Scheduler
|
3499
|
+
|
3500
|
+
def initialize(instanceid=nil, scheduler=nil)
|
3501
|
+
@InstanceId = instanceid
|
3502
|
+
@Scheduler = scheduler
|
3503
|
+
end
|
3504
|
+
|
3505
|
+
def deserialize(params)
|
3506
|
+
@InstanceId = params['InstanceId']
|
3507
|
+
@Scheduler = params['Scheduler']
|
3508
|
+
end
|
3509
|
+
end
|
3510
|
+
|
3511
|
+
# DescribeYarnQueue返回参数结构体
|
3512
|
+
class DescribeYarnQueueResponse < TencentCloud::Common::AbstractModel
|
3513
|
+
# @param Queue: 队列信息。是一个对象转成的json字符串,对应的golang结构体如下所示,比如`QueueWithConfigSetForFairScheduler`的第一个字段`Name`:
|
3514
|
+
|
3515
|
+
# ```
|
3516
|
+
# Name string `json:"name"` //队列名称
|
3517
|
+
# ```
|
3518
|
+
# - `Name`:字段名
|
3519
|
+
# - `string`:字段类型
|
3520
|
+
# - `json:"name"`:表示在序列化和反序列化`json`时,对应的`json key`,下面以`json key`来指代
|
3521
|
+
# - `//`:后面的注释内容对应页面上看到的名称
|
3522
|
+
|
3523
|
+
# 字段类型以`*`开头的表示取值可能为json规范下的null,不同的语言需要使用能表达null的类型来接收,比如java的包装类型;字段类型以`[]`开头的表示是数组类型;`json key`在调用`ModifyYarnQueueV2 `接口也会使用。
|
3524
|
+
|
3525
|
+
# - 公平调度器
|
3526
|
+
|
3527
|
+
# ```
|
3528
|
+
# type QueueWithConfigSetForFairScheduler struct {
|
3529
|
+
# Name string `json:"name"` //队列名称
|
3530
|
+
# MyId string `json:"myId"` // 队列id,用于编辑、删除、克隆时使用
|
3531
|
+
# ParentId string `json:"parentId"` // 父队列Id
|
3532
|
+
# Type *string `json:"type"` // 队列归属。parent或空,当确定某个队列是父队列,且没有子队列时,才可以设置,通常用来支持放置策略nestedUserQueue
|
3533
|
+
# AclSubmitApps *AclForYarnQueue `json:"aclSubmitApps"` // 提交访问控制
|
3534
|
+
# AclAdministerApps *AclForYarnQueue `json:"aclAdministerApps"` // 管理访问控制
|
3535
|
+
# MinSharePreemptionTimeout *int `json:"minSharePreemptionTimeout"` // 最小共享优先权超时时间
|
3536
|
+
# FairSharePreemptionTimeout *int `json:"fairSharePreemptionTimeout"` // 公平份额抢占超时时间
|
3537
|
+
# FairSharePreemptionThreshold *float32 `json:"fairSharePreemptionThreshold"` // 公平份额抢占阈值。取值 (0,1]
|
3538
|
+
# AllowPreemptionFrom *bool `json:"allowPreemptionFrom"` // 抢占模式
|
3539
|
+
# SchedulingPolicy *string `json:"schedulingPolicy"` // 调度策略,取值有drf、fair、fifo
|
3540
|
+
# IsDefault *bool `json:"isDefault"` // 是否是root.default队列
|
3541
|
+
# IsRoot *bool `json:"isRoot"` // 是否是root队列
|
3542
|
+
# ConfigSets []ConfigSetForFairScheduler `json:"configSets"` // 配置集设置
|
3543
|
+
# Children []QueueWithConfigSetForFairScheduler `json:"queues"` // 子队列信息。递归
|
3544
|
+
# }
|
3545
|
+
|
3546
|
+
# type AclForYarnQueue struct {
|
3547
|
+
# User *string `json:"user"` //用户名
|
3548
|
+
# Group *string `json:"group"`//组名
|
3549
|
+
# }
|
3550
|
+
|
3551
|
+
# type ConfigSetForFairScheduler struct {
|
3552
|
+
# Name string `json:"name"` // 配置集名称
|
3553
|
+
# MinResources *YarnResource `json:"minResources"` // 最小资源量
|
3554
|
+
# MaxResources *YarnResource `json:"maxResources"` // 最大资源量
|
3555
|
+
# MaxChildResources *YarnResource `json:"maxChildResources"` // 能够分配给为未声明子队列的最大资源量
|
3556
|
+
# MaxRunningApps *int `json:"maxRunningApps"` // 最高可同时处于运行的App数量
|
3557
|
+
# Weight *float32 `json:"weight"` // 权重
|
3558
|
+
# MaxAMShare *float32 `json:"maxAMShare"` // App Master最大份额
|
3559
|
+
# }
|
3560
|
+
|
3561
|
+
# type YarnResource struct {
|
3562
|
+
# Vcores *int `json:"vcores"`
|
3563
|
+
# Memory *int `json:"memory"`
|
3564
|
+
# Type *string `json:"type"` // 当值为`percent`时,表示使用的百分比,否则就是使用的绝对数值
|
3565
|
+
# }
|
3566
|
+
# ```
|
3567
|
+
|
3568
|
+
# - 容量调度器
|
3569
|
+
|
3570
|
+
# ```
|
3571
|
+
# type QueueForCapacitySchedulerV3 struct {
|
3572
|
+
# Name string `json:"name"` // 队列名称
|
3573
|
+
# MyId string `json:"myId"` // 队列id,用于编辑、删除、克隆时使用
|
3574
|
+
# ParentId string `json:"parentId"` // 父队列Id
|
3575
|
+
# Configs []ConfigForCapacityV3 `json:"configs"` //配置集设置
|
3576
|
+
# State *string `json:"state"` // 资源池状态
|
3577
|
+
# DefaultNodeLabelExpression *string `json:"default-node-label-expression"` // 默认标签表达式
|
3578
|
+
# AclSubmitApps *AclForYarnQueue `json:"acl_submit_applications"` // 提交访问控制
|
3579
|
+
# AclAdminQueue *AclForYarnQueue `json:"acl_administer_queue"` //管理访问控制
|
3580
|
+
# MaxAllocationMB *int32 `json:"maximum-allocation-mb"` // 分配Container最大内存数量
|
3581
|
+
# MaxAllocationVcores *int32 `json:"maximum-allocation-vcores"` // Container最大vCore数量
|
3582
|
+
# IsDefault *bool `json:"isDefault"`// 是否是root.default队列
|
3583
|
+
# IsRoot *bool `json:"isRoot"` // 是否是root队列
|
3584
|
+
# Queues []*QueueForCapacitySchedulerV3 `json:"queues"`//子队列信息。递归
|
3585
|
+
# }
|
3586
|
+
# type ConfigForCapacityV3 struct {
|
3587
|
+
# Name string `json:"configName"` // 配置集名称
|
3588
|
+
# Labels []CapacityLabel `json:"labels"` // 标签信息
|
3589
|
+
# MinUserLimitPercent *int32 `json:"minimum-user-limit-percent"` // 用户最小容量
|
3590
|
+
# UserLimitFactor *float32 `json:"user-limit-factor" valid:"rangeExcludeLeft(0|)"` // 用户资源因子
|
3591
|
+
# MaxApps *int32 `json:"maximum-applications" valid:"rangeExcludeLeft(0|)"` // 最大应用数Max-Applications
|
3592
|
+
# MaxAmPercent *float32 `json:"maximum-am-resource-percent"` // 最大AM比例
|
3593
|
+
# DefaultApplicationPriority *int32 `json:"default-application-priority"` // 资源池优先级
|
3594
|
+
# }
|
3595
|
+
# type CapacityLabel struct {
|
3596
|
+
# Name string `json:"labelName"`
|
3597
|
+
# Capacity *float32 `json:"capacity"` // 容量
|
3598
|
+
# MaxCapacity *float32 `json:"maximum-capacity"` //最大容量
|
3599
|
+
# }
|
3600
|
+
|
3601
|
+
# type AclForYarnQueue struct {
|
3602
|
+
# User *string `json:"user"` //用户名
|
3603
|
+
# Group *string `json:"group"`//组名
|
3604
|
+
# }
|
3605
|
+
# ```
|
3606
|
+
# @type Queue: String
|
3607
|
+
# @param Version: 版本
|
3608
|
+
# @type Version: String
|
3609
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3610
|
+
# @type RequestId: String
|
3611
|
+
|
3612
|
+
attr_accessor :Queue, :Version, :RequestId
|
3613
|
+
|
3614
|
+
def initialize(queue=nil, version=nil, requestid=nil)
|
3615
|
+
@Queue = queue
|
3616
|
+
@Version = version
|
3617
|
+
@RequestId = requestid
|
3618
|
+
end
|
3619
|
+
|
3620
|
+
def deserialize(params)
|
3621
|
+
@Queue = params['Queue']
|
3622
|
+
@Version = params['Version']
|
3623
|
+
@RequestId = params['RequestId']
|
3624
|
+
end
|
3625
|
+
end
|
3626
|
+
|
3239
3627
|
# DescribeYarnScheduleHistory请求参数结构体
|
3240
3628
|
class DescribeYarnScheduleHistoryRequest < TencentCloud::Common::AbstractModel
|
3241
3629
|
# @param InstanceId: 集群id
|
@@ -3319,6 +3707,147 @@ module TencentCloud
|
|
3319
3707
|
end
|
3320
3708
|
end
|
3321
3709
|
|
3710
|
+
# 动态生成的变更详情
|
3711
|
+
class DiffDetail < TencentCloud::Common::AbstractModel
|
3712
|
+
# @param Name: tab页的头
|
3713
|
+
# @type Name: String
|
3714
|
+
# @param Count: 变化项的个数
|
3715
|
+
# @type Count: Integer
|
3716
|
+
# @param Rows: 要渲染的明细数据
|
3717
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3718
|
+
# @type Rows: Array
|
3719
|
+
# @param Header: 要渲染的头部信息
|
3720
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3721
|
+
# @type Header: Array
|
3722
|
+
|
3723
|
+
attr_accessor :Name, :Count, :Rows, :Header
|
3724
|
+
|
3725
|
+
def initialize(name=nil, count=nil, rows=nil, header=nil)
|
3726
|
+
@Name = name
|
3727
|
+
@Count = count
|
3728
|
+
@Rows = rows
|
3729
|
+
@Header = header
|
3730
|
+
end
|
3731
|
+
|
3732
|
+
def deserialize(params)
|
3733
|
+
@Name = params['Name']
|
3734
|
+
@Count = params['Count']
|
3735
|
+
unless params['Rows'].nil?
|
3736
|
+
@Rows = []
|
3737
|
+
params['Rows'].each do |i|
|
3738
|
+
diffdetailitem_tmp = DiffDetailItem.new
|
3739
|
+
diffdetailitem_tmp.deserialize(i)
|
3740
|
+
@Rows << diffdetailitem_tmp
|
3741
|
+
end
|
3742
|
+
end
|
3743
|
+
unless params['Header'].nil?
|
3744
|
+
@Header = []
|
3745
|
+
params['Header'].each do |i|
|
3746
|
+
diffheader_tmp = DiffHeader.new
|
3747
|
+
diffheader_tmp.deserialize(i)
|
3748
|
+
@Header << diffheader_tmp
|
3749
|
+
end
|
3750
|
+
end
|
3751
|
+
end
|
3752
|
+
end
|
3753
|
+
|
3754
|
+
# 动态生成的变更详情条目
|
3755
|
+
class DiffDetailItem < TencentCloud::Common::AbstractModel
|
3756
|
+
# @param Attribute: 属性
|
3757
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3758
|
+
# @type Attribute: String
|
3759
|
+
# @param InEffect: 当前生效
|
3760
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3761
|
+
# @type InEffect: String
|
3762
|
+
# @param PendingEffectiveness: 待生效
|
3763
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3764
|
+
# @type PendingEffectiveness: String
|
3765
|
+
# @param Operation: 操作
|
3766
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3767
|
+
# @type Operation: String
|
3768
|
+
# @param Queue: 队列
|
3769
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3770
|
+
# @type Queue: String
|
3771
|
+
# @param ConfigSet: 配置集
|
3772
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3773
|
+
# @type ConfigSet: String
|
3774
|
+
# @param LabelName: 标签
|
3775
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3776
|
+
# @type LabelName: String
|
3777
|
+
# @param InEffectIndex: 当前所在位置
|
3778
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3779
|
+
# @type InEffectIndex: String
|
3780
|
+
# @param PendingEffectIndex: 待生效的位置
|
3781
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3782
|
+
# @type PendingEffectIndex: String
|
3783
|
+
# @param PlanName: 计划模式名称
|
3784
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3785
|
+
# @type PlanName: String
|
3786
|
+
# @param Label: 标签
|
3787
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3788
|
+
# @type Label: String
|
3789
|
+
# @param RuleName: 放置规则
|
3790
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3791
|
+
# @type RuleName: String
|
3792
|
+
# @param UserName: 用户名
|
3793
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3794
|
+
# @type UserName: String
|
3795
|
+
|
3796
|
+
attr_accessor :Attribute, :InEffect, :PendingEffectiveness, :Operation, :Queue, :ConfigSet, :LabelName, :InEffectIndex, :PendingEffectIndex, :PlanName, :Label, :RuleName, :UserName
|
3797
|
+
|
3798
|
+
def initialize(attribute=nil, ineffect=nil, pendingeffectiveness=nil, operation=nil, queue=nil, configset=nil, labelname=nil, ineffectindex=nil, pendingeffectindex=nil, planname=nil, label=nil, rulename=nil, username=nil)
|
3799
|
+
@Attribute = attribute
|
3800
|
+
@InEffect = ineffect
|
3801
|
+
@PendingEffectiveness = pendingeffectiveness
|
3802
|
+
@Operation = operation
|
3803
|
+
@Queue = queue
|
3804
|
+
@ConfigSet = configset
|
3805
|
+
@LabelName = labelname
|
3806
|
+
@InEffectIndex = ineffectindex
|
3807
|
+
@PendingEffectIndex = pendingeffectindex
|
3808
|
+
@PlanName = planname
|
3809
|
+
@Label = label
|
3810
|
+
@RuleName = rulename
|
3811
|
+
@UserName = username
|
3812
|
+
end
|
3813
|
+
|
3814
|
+
def deserialize(params)
|
3815
|
+
@Attribute = params['Attribute']
|
3816
|
+
@InEffect = params['InEffect']
|
3817
|
+
@PendingEffectiveness = params['PendingEffectiveness']
|
3818
|
+
@Operation = params['Operation']
|
3819
|
+
@Queue = params['Queue']
|
3820
|
+
@ConfigSet = params['ConfigSet']
|
3821
|
+
@LabelName = params['LabelName']
|
3822
|
+
@InEffectIndex = params['InEffectIndex']
|
3823
|
+
@PendingEffectIndex = params['PendingEffectIndex']
|
3824
|
+
@PlanName = params['PlanName']
|
3825
|
+
@Label = params['Label']
|
3826
|
+
@RuleName = params['RuleName']
|
3827
|
+
@UserName = params['UserName']
|
3828
|
+
end
|
3829
|
+
end
|
3830
|
+
|
3831
|
+
# 动态生成的变更详情
|
3832
|
+
class DiffHeader < TencentCloud::Common::AbstractModel
|
3833
|
+
# @param Name: 名称
|
3834
|
+
# @type Name: String
|
3835
|
+
# @param Id: ID,前端会使用
|
3836
|
+
# @type Id: String
|
3837
|
+
|
3838
|
+
attr_accessor :Name, :Id
|
3839
|
+
|
3840
|
+
def initialize(name=nil, id=nil)
|
3841
|
+
@Name = name
|
3842
|
+
@Id = id
|
3843
|
+
end
|
3844
|
+
|
3845
|
+
def deserialize(params)
|
3846
|
+
@Name = params['Name']
|
3847
|
+
@Id = params['Id']
|
3848
|
+
end
|
3849
|
+
end
|
3850
|
+
|
3322
3851
|
# 磁盘组。
|
3323
3852
|
class DiskGroup < TencentCloud::Common::AbstractModel
|
3324
3853
|
# @param Spec: 磁盘规格。
|
@@ -5007,6 +5536,52 @@ module TencentCloud
|
|
5007
5536
|
end
|
5008
5537
|
end
|
5009
5538
|
|
5539
|
+
# 代表一个kv结构
|
5540
|
+
class Item < TencentCloud::Common::AbstractModel
|
5541
|
+
# @param Key: 健值
|
5542
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5543
|
+
# @type Key: String
|
5544
|
+
# @param Value: 值
|
5545
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5546
|
+
# @type Value: String
|
5547
|
+
|
5548
|
+
attr_accessor :Key, :Value
|
5549
|
+
|
5550
|
+
def initialize(key=nil, value=nil)
|
5551
|
+
@Key = key
|
5552
|
+
@Value = value
|
5553
|
+
end
|
5554
|
+
|
5555
|
+
def deserialize(params)
|
5556
|
+
@Key = params['Key']
|
5557
|
+
@Value = params['Value']
|
5558
|
+
end
|
5559
|
+
end
|
5560
|
+
|
5561
|
+
# 键值对组成的列表
|
5562
|
+
class ItemSeq < TencentCloud::Common::AbstractModel
|
5563
|
+
# @param Items: 标签名称
|
5564
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5565
|
+
# @type Items: Array
|
5566
|
+
|
5567
|
+
attr_accessor :Items
|
5568
|
+
|
5569
|
+
def initialize(items=nil)
|
5570
|
+
@Items = items
|
5571
|
+
end
|
5572
|
+
|
5573
|
+
def deserialize(params)
|
5574
|
+
unless params['Items'].nil?
|
5575
|
+
@Items = []
|
5576
|
+
params['Items'].each do |i|
|
5577
|
+
item_tmp = Item.new
|
5578
|
+
item_tmp.deserialize(i)
|
5579
|
+
@Items << item_tmp
|
5580
|
+
end
|
5581
|
+
end
|
5582
|
+
end
|
5583
|
+
end
|
5584
|
+
|
5010
5585
|
# 机器资源描述。
|
5011
5586
|
class JobFlowResource < TencentCloud::Common::AbstractModel
|
5012
5587
|
# @param Spec: 机器类型描述。
|
@@ -5874,6 +6449,56 @@ module TencentCloud
|
|
5874
6449
|
end
|
5875
6450
|
end
|
5876
6451
|
|
6452
|
+
# ModifyYarnQueueV2请求参数结构体
|
6453
|
+
class ModifyYarnQueueV2Request < TencentCloud::Common::AbstractModel
|
6454
|
+
# @param InstanceId: 集群Id
|
6455
|
+
# @type InstanceId: String
|
6456
|
+
# @param Scheduler: 调度器类型。可选值:
|
6457
|
+
|
6458
|
+
# 1. capacity
|
6459
|
+
# 2. fair
|
6460
|
+
# @type Scheduler: String
|
6461
|
+
# @param ConfigModifyInfoList: 资源池数据
|
6462
|
+
# @type ConfigModifyInfoList: Array
|
6463
|
+
|
6464
|
+
attr_accessor :InstanceId, :Scheduler, :ConfigModifyInfoList
|
6465
|
+
|
6466
|
+
def initialize(instanceid=nil, scheduler=nil, configmodifyinfolist=nil)
|
6467
|
+
@InstanceId = instanceid
|
6468
|
+
@Scheduler = scheduler
|
6469
|
+
@ConfigModifyInfoList = configmodifyinfolist
|
6470
|
+
end
|
6471
|
+
|
6472
|
+
def deserialize(params)
|
6473
|
+
@InstanceId = params['InstanceId']
|
6474
|
+
@Scheduler = params['Scheduler']
|
6475
|
+
unless params['ConfigModifyInfoList'].nil?
|
6476
|
+
@ConfigModifyInfoList = []
|
6477
|
+
params['ConfigModifyInfoList'].each do |i|
|
6478
|
+
configmodifyinfov2_tmp = ConfigModifyInfoV2.new
|
6479
|
+
configmodifyinfov2_tmp.deserialize(i)
|
6480
|
+
@ConfigModifyInfoList << configmodifyinfov2_tmp
|
6481
|
+
end
|
6482
|
+
end
|
6483
|
+
end
|
6484
|
+
end
|
6485
|
+
|
6486
|
+
# ModifyYarnQueueV2返回参数结构体
|
6487
|
+
class ModifyYarnQueueV2Response < TencentCloud::Common::AbstractModel
|
6488
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
6489
|
+
# @type RequestId: String
|
6490
|
+
|
6491
|
+
attr_accessor :RequestId
|
6492
|
+
|
6493
|
+
def initialize(requestid=nil)
|
6494
|
+
@RequestId = requestid
|
6495
|
+
end
|
6496
|
+
|
6497
|
+
def deserialize(params)
|
6498
|
+
@RequestId = params['RequestId']
|
6499
|
+
end
|
6500
|
+
end
|
6501
|
+
|
5877
6502
|
# 定时伸缩每月重复任务策略
|
5878
6503
|
class MonthRepeatStrategy < TencentCloud::Common::AbstractModel
|
5879
6504
|
# @param ExecuteAtTimeOfDay: 重复任务执行的具体时刻,例如"01:02:00"
|
@@ -7581,6 +8206,46 @@ module TencentCloud
|
|
7581
8206
|
end
|
7582
8207
|
end
|
7583
8208
|
|
8209
|
+
# ResetYarnConfig请求参数结构体
|
8210
|
+
class ResetYarnConfigRequest < TencentCloud::Common::AbstractModel
|
8211
|
+
# @param InstanceId: emr集群的英文id
|
8212
|
+
# @type InstanceId: String
|
8213
|
+
# @param Key: 要重置的配置别名,可选值:
|
8214
|
+
|
8215
|
+
# - capacityLabel:重置标签管理的配置
|
8216
|
+
# - fair:重置公平调度的配置
|
8217
|
+
# - capacity:重置容量调度的配置
|
8218
|
+
# @type Key: String
|
8219
|
+
|
8220
|
+
attr_accessor :InstanceId, :Key
|
8221
|
+
|
8222
|
+
def initialize(instanceid=nil, key=nil)
|
8223
|
+
@InstanceId = instanceid
|
8224
|
+
@Key = key
|
8225
|
+
end
|
8226
|
+
|
8227
|
+
def deserialize(params)
|
8228
|
+
@InstanceId = params['InstanceId']
|
8229
|
+
@Key = params['Key']
|
8230
|
+
end
|
8231
|
+
end
|
8232
|
+
|
8233
|
+
# ResetYarnConfig返回参数结构体
|
8234
|
+
class ResetYarnConfigResponse < TencentCloud::Common::AbstractModel
|
8235
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
8236
|
+
# @type RequestId: String
|
8237
|
+
|
8238
|
+
attr_accessor :RequestId
|
8239
|
+
|
8240
|
+
def initialize(requestid=nil)
|
8241
|
+
@RequestId = requestid
|
8242
|
+
end
|
8243
|
+
|
8244
|
+
def deserialize(params)
|
8245
|
+
@RequestId = params['RequestId']
|
8246
|
+
end
|
8247
|
+
end
|
8248
|
+
|
7584
8249
|
# 资源详情
|
7585
8250
|
class Resource < TencentCloud::Common::AbstractModel
|
7586
8251
|
# @param Spec: 节点规格描述,如CVM.SA2。
|
@@ -8632,12 +9297,12 @@ module TencentCloud
|
|
8632
9297
|
|
8633
9298
|
attr_accessor :DetectAlert, :DetetcFunctionKey, :DetetcFunctionValue, :DetetcTime, :DetectFunctionKey, :DetectFunctionValue, :DetectTime
|
8634
9299
|
extend Gem::Deprecate
|
8635
|
-
deprecate :DetetcFunctionKey, :none, 2024,
|
8636
|
-
deprecate :DetetcFunctionKey=, :none, 2024,
|
8637
|
-
deprecate :DetetcFunctionValue, :none, 2024,
|
8638
|
-
deprecate :DetetcFunctionValue=, :none, 2024,
|
8639
|
-
deprecate :DetetcTime, :none, 2024,
|
8640
|
-
deprecate :DetetcTime=, :none, 2024,
|
9300
|
+
deprecate :DetetcFunctionKey, :none, 2024, 9
|
9301
|
+
deprecate :DetetcFunctionKey=, :none, 2024, 9
|
9302
|
+
deprecate :DetetcFunctionValue, :none, 2024, 9
|
9303
|
+
deprecate :DetetcFunctionValue=, :none, 2024, 9
|
9304
|
+
deprecate :DetetcTime, :none, 2024, 9
|
9305
|
+
deprecate :DetetcTime=, :none, 2024, 9
|
8641
9306
|
|
8642
9307
|
def initialize(detectalert=nil, detetcfunctionkey=nil, detetcfunctionvalue=nil, detetctime=nil, detectfunctionkey=nil, detectfunctionvalue=nil, detecttime=nil)
|
8643
9308
|
@DetectAlert = detectalert
|
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.902
|
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-09-
|
11
|
+
date: 2024-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|