tencentcloud-sdk-emr 3.0.900 → 3.0.901

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a89b1bf23d43d97de326d24432cd1afeb4eb2c94
4
- data.tar.gz: 995010ab50fa9a6e1bb27ae458dc0cc64534afcc
3
+ metadata.gz: 3fba4f3214358c14a3da86f25812d532dfbd79f8
4
+ data.tar.gz: 2bcc68177894bf226e7b735b6e34140bfaabb8cc
5
5
  SHA512:
6
- metadata.gz: 9cb3ef75af0396a013d14d98ee1aacb88d5d46fa940980a54053cdb2b0542c8f15e78c0c93e976e54a705562c3836cced79806e45698ca33f4decc6b161f5766
7
- data.tar.gz: cf754281fbc0354489682ba622c9991015a4c01604ffc9b1c7ad9087fa735ced201ba3bb90669b6f93e82e8a82c67e36d4c1acd76fd3f27eed43ee38e91c1bac
6
+ metadata.gz: b60ebf83f76eadc63f1b3fd3861e77028fe7d8bef151cbf9cba811d80fab90f5997e81d7fe89763f9d8af8d4c4dc8e068a51f3f86c0ab16032189cca9fe42d1c
7
+ data.tar.gz: e474dad7bfdab88431a87d71ad5ee084df221fe74836eaa3b647495db982fdb9d88cb164aa019f6bfb9828e8003120d8a1feb47bded59820a527e68b882678eb
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.900
1
+ 3.0.901
@@ -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`
@@ -679,7 +703,31 @@ module TencentCloud
679
703
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
680
704
  end
681
705
 
682
- # 查看yarn资源调度的调度历史
706
+ # 获取资源调度中的队列信息
707
+
708
+ # @param request: Request instance for DescribeYarnQueue.
709
+ # @type request: :class:`Tencentcloud::emr::V20190103::DescribeYarnQueueRequest`
710
+ # @rtype: :class:`Tencentcloud::emr::V20190103::DescribeYarnQueueResponse`
711
+ def DescribeYarnQueue(request)
712
+ body = send_request('DescribeYarnQueue', request.serialize)
713
+ response = JSON.parse(body)
714
+ if response['Response'].key?('Error') == false
715
+ model = DescribeYarnQueueResponse.new
716
+ model.deserialize(response['Response'])
717
+ model
718
+ else
719
+ code = response['Response']['Error']['Code']
720
+ message = response['Response']['Error']['Message']
721
+ reqid = response['Response']['RequestId']
722
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
723
+ end
724
+ rescue TencentCloud::Common::TencentCloudSDKException => e
725
+ raise e
726
+ rescue StandardError => e
727
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
728
+ end
729
+
730
+ # 查看yarn资源调度的调度历史。废弃,请使用流程中心查看历史记录。
683
731
 
684
732
  # @param request: Request instance for DescribeYarnScheduleHistory.
685
733
  # @type request: :class:`Tencentcloud::emr::V20190103::DescribeYarnScheduleHistoryRequest`
@@ -872,7 +920,7 @@ module TencentCloud
872
920
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
873
921
  end
874
922
 
875
- # 刷新YARN的动态资源池
923
+ # 刷新YARN的动态资源池。已废弃,请使用`DeployYarnConf`
876
924
 
877
925
  # @param request: Request instance for ModifyResourcePools.
878
926
  # @type request: :class:`Tencentcloud::emr::V20190103::ModifyResourcePoolsRequest`
@@ -896,7 +944,7 @@ module TencentCloud
896
944
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
897
945
  end
898
946
 
899
- # 修改YARN资源调度的资源配置
947
+ # 修改YARN资源调度的资源配置。已废弃,请使用`ModifyYarnQueueV2`来修改队列配置
900
948
 
901
949
  # @param request: Request instance for ModifyResourceScheduleConfig.
902
950
  # @type request: :class:`Tencentcloud::emr::V20190103::ModifyResourceScheduleConfigRequest`
@@ -920,7 +968,7 @@ module TencentCloud
920
968
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
921
969
  end
922
970
 
923
- # 修改了yarn的资源调度器,点击部署生效
971
+ # 修改了yarn的资源调度器,点击部署生效。
924
972
 
925
973
  # @param request: Request instance for ModifyResourceScheduler.
926
974
  # @type request: :class:`Tencentcloud::emr::V20190103::ModifyResourceSchedulerRequest`
@@ -992,7 +1040,7 @@ module TencentCloud
992
1040
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
993
1041
  end
994
1042
 
995
- # 部署生效
1043
+ # 部署生效。已废弃,请使用`DeployYarnConf`接口进行部署生效
996
1044
 
997
1045
  # @param request: Request instance for ModifyYarnDeploy.
998
1046
  # @type request: :class:`Tencentcloud::emr::V20190103::ModifyYarnDeployRequest`
@@ -1016,6 +1064,54 @@ module TencentCloud
1016
1064
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1017
1065
  end
1018
1066
 
1067
+ # 修改资源调度中队列信息
1068
+
1069
+ # @param request: Request instance for ModifyYarnQueueV2.
1070
+ # @type request: :class:`Tencentcloud::emr::V20190103::ModifyYarnQueueV2Request`
1071
+ # @rtype: :class:`Tencentcloud::emr::V20190103::ModifyYarnQueueV2Response`
1072
+ def ModifyYarnQueueV2(request)
1073
+ body = send_request('ModifyYarnQueueV2', request.serialize)
1074
+ response = JSON.parse(body)
1075
+ if response['Response'].key?('Error') == false
1076
+ model = ModifyYarnQueueV2Response.new
1077
+ model.deserialize(response['Response'])
1078
+ model
1079
+ else
1080
+ code = response['Response']['Error']['Code']
1081
+ message = response['Response']['Error']['Message']
1082
+ reqid = response['Response']['RequestId']
1083
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1084
+ end
1085
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1086
+ raise e
1087
+ rescue StandardError => e
1088
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1089
+ end
1090
+
1091
+ # 修改YARN资源调度的资源配置
1092
+
1093
+ # @param request: Request instance for ResetYarnConfig.
1094
+ # @type request: :class:`Tencentcloud::emr::V20190103::ResetYarnConfigRequest`
1095
+ # @rtype: :class:`Tencentcloud::emr::V20190103::ResetYarnConfigResponse`
1096
+ def ResetYarnConfig(request)
1097
+ body = send_request('ResetYarnConfig', request.serialize)
1098
+ response = JSON.parse(body)
1099
+ if response['Response'].key?('Error') == false
1100
+ model = ResetYarnConfigResponse.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
+
1019
1115
  # 创建流程作业
1020
1116
 
1021
1117
  # @param request: Request instance for RunJobFlow.
@@ -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, 8
776
- deprecate :Ftitle=, :none, 2024, 8
777
- deprecate :Config, :none, 2024, 8
778
- deprecate :Config=, :none, 2024, 8
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。
@@ -3236,6 +3437,145 @@ module TencentCloud
3236
3437
  end
3237
3438
  end
3238
3439
 
3440
+ # DescribeYarnQueue请求参数结构体
3441
+ class DescribeYarnQueueRequest < TencentCloud::Common::AbstractModel
3442
+ # @param InstanceId: 集群Id
3443
+ # @type InstanceId: String
3444
+ # @param Scheduler: 调度器,可选值:
3445
+
3446
+ # 1. capacity
3447
+ # 2. fair
3448
+ # @type Scheduler: String
3449
+
3450
+ attr_accessor :InstanceId, :Scheduler
3451
+
3452
+ def initialize(instanceid=nil, scheduler=nil)
3453
+ @InstanceId = instanceid
3454
+ @Scheduler = scheduler
3455
+ end
3456
+
3457
+ def deserialize(params)
3458
+ @InstanceId = params['InstanceId']
3459
+ @Scheduler = params['Scheduler']
3460
+ end
3461
+ end
3462
+
3463
+ # DescribeYarnQueue返回参数结构体
3464
+ class DescribeYarnQueueResponse < TencentCloud::Common::AbstractModel
3465
+ # @param Queue: 队列信息。是一个对象转成的json字符串,对应的golang结构体如下所示,比如`QueueWithConfigSetForFairScheduler`的第一个字段`Name`:
3466
+
3467
+ # ```
3468
+ # Name string `json:"name"` //队列名称
3469
+ # ```
3470
+ # - `Name`:字段名
3471
+ # - `string`:字段类型
3472
+ # - `json:"name"`:表示在序列化和反序列化`json`时,对应的`json key`,下面以`json key`来指代
3473
+ # - `//`:后面的注释内容对应页面上看到的名称
3474
+
3475
+ # 字段类型以`*`开头的表示取值可能为json规范下的null,不同的语言需要使用能表达null的类型来接收,比如java的包装类型;字段类型以`[]`开头的表示是数组类型;`json key`在调用`ModifyYarnQueueV2 `接口也会使用。
3476
+
3477
+ # - 公平调度器
3478
+
3479
+ # ```
3480
+ # type QueueWithConfigSetForFairScheduler struct {
3481
+ # Name string `json:"name"` //队列名称
3482
+ # MyId string `json:"myId"` // 队列id,用于编辑、删除、克隆时使用
3483
+ # ParentId string `json:"parentId"` // 父队列Id
3484
+ # Type *string `json:"type"` // 队列归属。parent或空,当确定某个队列是父队列,且没有子队列时,才可以设置,通常用来支持放置策略nestedUserQueue
3485
+ # AclSubmitApps *AclForYarnQueue `json:"aclSubmitApps"` // 提交访问控制
3486
+ # AclAdministerApps *AclForYarnQueue `json:"aclAdministerApps"` // 管理访问控制
3487
+ # MinSharePreemptionTimeout *int `json:"minSharePreemptionTimeout"` // 最小共享优先权超时时间
3488
+ # FairSharePreemptionTimeout *int `json:"fairSharePreemptionTimeout"` // 公平份额抢占超时时间
3489
+ # FairSharePreemptionThreshold *float32 `json:"fairSharePreemptionThreshold"` // 公平份额抢占阈值。取值 (0,1]
3490
+ # AllowPreemptionFrom *bool `json:"allowPreemptionFrom"` // 抢占模式
3491
+ # SchedulingPolicy *string `json:"schedulingPolicy"` // 调度策略,取值有drf、fair、fifo
3492
+ # IsDefault *bool `json:"isDefault"` // 是否是root.default队列
3493
+ # IsRoot *bool `json:"isRoot"` // 是否是root队列
3494
+ # ConfigSets []ConfigSetForFairScheduler `json:"configSets"` // 配置集设置
3495
+ # Children []QueueWithConfigSetForFairScheduler `json:"queues"` // 子队列信息。递归
3496
+ # }
3497
+
3498
+ # type AclForYarnQueue struct {
3499
+ # User *string `json:"user"` //用户名
3500
+ # Group *string `json:"group"`//组名
3501
+ # }
3502
+
3503
+ # type ConfigSetForFairScheduler struct {
3504
+ # Name string `json:"name"` // 配置集名称
3505
+ # MinResources *YarnResource `json:"minResources"` // 最小资源量
3506
+ # MaxResources *YarnResource `json:"maxResources"` // 最大资源量
3507
+ # MaxChildResources *YarnResource `json:"maxChildResources"` // 能够分配给为未声明子队列的最大资源量
3508
+ # MaxRunningApps *int `json:"maxRunningApps"` // 最高可同时处于运行的App数量
3509
+ # Weight *float32 `json:"weight"` // 权重
3510
+ # MaxAMShare *float32 `json:"maxAMShare"` // App Master最大份额
3511
+ # }
3512
+
3513
+ # type YarnResource struct {
3514
+ # Vcores *int `json:"vcores"`
3515
+ # Memory *int `json:"memory"`
3516
+ # Type *string `json:"type"` // 当值为`percent`时,表示使用的百分比,否则就是使用的绝对数值
3517
+ # }
3518
+ # ```
3519
+
3520
+ # - 容量调度器
3521
+
3522
+ # ```
3523
+ # type QueueForCapacitySchedulerV3 struct {
3524
+ # Name string `json:"name"` // 队列名称
3525
+ # MyId string `json:"myId"` // 队列id,用于编辑、删除、克隆时使用
3526
+ # ParentId string `json:"parentId"` // 父队列Id
3527
+ # Configs []ConfigForCapacityV3 `json:"configs"` //配置集设置
3528
+ # State *string `json:"state"` // 资源池状态
3529
+ # DefaultNodeLabelExpression *string `json:"default-node-label-expression"` // 默认标签表达式
3530
+ # AclSubmitApps *AclForYarnQueue `json:"acl_submit_applications"` // 提交访问控制
3531
+ # AclAdminQueue *AclForYarnQueue `json:"acl_administer_queue"` //管理访问控制
3532
+ # MaxAllocationMB *int32 `json:"maximum-allocation-mb"` // 分配Container最大内存数量
3533
+ # MaxAllocationVcores *int32 `json:"maximum-allocation-vcores"` // Container最大vCore数量
3534
+ # IsDefault *bool `json:"isDefault"`// 是否是root.default队列
3535
+ # IsRoot *bool `json:"isRoot"` // 是否是root队列
3536
+ # Queues []*QueueForCapacitySchedulerV3 `json:"queues"`//子队列信息。递归
3537
+ # }
3538
+ # type ConfigForCapacityV3 struct {
3539
+ # Name string `json:"configName"` // 配置集名称
3540
+ # Labels []CapacityLabel `json:"labels"` // 标签信息
3541
+ # MinUserLimitPercent *int32 `json:"minimum-user-limit-percent"` // 用户最小容量
3542
+ # UserLimitFactor *float32 `json:"user-limit-factor" valid:"rangeExcludeLeft(0|)"` // 用户资源因子
3543
+ # MaxApps *int32 `json:"maximum-applications" valid:"rangeExcludeLeft(0|)"` // 最大应用数Max-Applications
3544
+ # MaxAmPercent *float32 `json:"maximum-am-resource-percent"` // 最大AM比例
3545
+ # DefaultApplicationPriority *int32 `json:"default-application-priority"` // 资源池优先级
3546
+ # }
3547
+ # type CapacityLabel struct {
3548
+ # Name string `json:"labelName"`
3549
+ # Capacity *float32 `json:"capacity"` // 容量
3550
+ # MaxCapacity *float32 `json:"maximum-capacity"` //最大容量
3551
+ # }
3552
+
3553
+ # type AclForYarnQueue struct {
3554
+ # User *string `json:"user"` //用户名
3555
+ # Group *string `json:"group"`//组名
3556
+ # }
3557
+ # ```
3558
+ # @type Queue: String
3559
+ # @param Version: 版本
3560
+ # @type Version: String
3561
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3562
+ # @type RequestId: String
3563
+
3564
+ attr_accessor :Queue, :Version, :RequestId
3565
+
3566
+ def initialize(queue=nil, version=nil, requestid=nil)
3567
+ @Queue = queue
3568
+ @Version = version
3569
+ @RequestId = requestid
3570
+ end
3571
+
3572
+ def deserialize(params)
3573
+ @Queue = params['Queue']
3574
+ @Version = params['Version']
3575
+ @RequestId = params['RequestId']
3576
+ end
3577
+ end
3578
+
3239
3579
  # DescribeYarnScheduleHistory请求参数结构体
3240
3580
  class DescribeYarnScheduleHistoryRequest < TencentCloud::Common::AbstractModel
3241
3581
  # @param InstanceId: 集群id
@@ -5007,6 +5347,52 @@ module TencentCloud
5007
5347
  end
5008
5348
  end
5009
5349
 
5350
+ # 代表一个kv结构
5351
+ class Item < TencentCloud::Common::AbstractModel
5352
+ # @param Key: 健值
5353
+ # 注意:此字段可能返回 null,表示取不到有效值。
5354
+ # @type Key: String
5355
+ # @param Value: 值
5356
+ # 注意:此字段可能返回 null,表示取不到有效值。
5357
+ # @type Value: String
5358
+
5359
+ attr_accessor :Key, :Value
5360
+
5361
+ def initialize(key=nil, value=nil)
5362
+ @Key = key
5363
+ @Value = value
5364
+ end
5365
+
5366
+ def deserialize(params)
5367
+ @Key = params['Key']
5368
+ @Value = params['Value']
5369
+ end
5370
+ end
5371
+
5372
+ # 键值对组成的列表
5373
+ class ItemSeq < TencentCloud::Common::AbstractModel
5374
+ # @param Items: 标签名称
5375
+ # 注意:此字段可能返回 null,表示取不到有效值。
5376
+ # @type Items: Array
5377
+
5378
+ attr_accessor :Items
5379
+
5380
+ def initialize(items=nil)
5381
+ @Items = items
5382
+ end
5383
+
5384
+ def deserialize(params)
5385
+ unless params['Items'].nil?
5386
+ @Items = []
5387
+ params['Items'].each do |i|
5388
+ item_tmp = Item.new
5389
+ item_tmp.deserialize(i)
5390
+ @Items << item_tmp
5391
+ end
5392
+ end
5393
+ end
5394
+ end
5395
+
5010
5396
  # 机器资源描述。
5011
5397
  class JobFlowResource < TencentCloud::Common::AbstractModel
5012
5398
  # @param Spec: 机器类型描述。
@@ -5874,6 +6260,56 @@ module TencentCloud
5874
6260
  end
5875
6261
  end
5876
6262
 
6263
+ # ModifyYarnQueueV2请求参数结构体
6264
+ class ModifyYarnQueueV2Request < TencentCloud::Common::AbstractModel
6265
+ # @param InstanceId: 集群Id
6266
+ # @type InstanceId: String
6267
+ # @param Scheduler: 调度器类型。可选值:
6268
+
6269
+ # 1. capacity
6270
+ # 2. fair
6271
+ # @type Scheduler: String
6272
+ # @param ConfigModifyInfoList: 资源池数据
6273
+ # @type ConfigModifyInfoList: Array
6274
+
6275
+ attr_accessor :InstanceId, :Scheduler, :ConfigModifyInfoList
6276
+
6277
+ def initialize(instanceid=nil, scheduler=nil, configmodifyinfolist=nil)
6278
+ @InstanceId = instanceid
6279
+ @Scheduler = scheduler
6280
+ @ConfigModifyInfoList = configmodifyinfolist
6281
+ end
6282
+
6283
+ def deserialize(params)
6284
+ @InstanceId = params['InstanceId']
6285
+ @Scheduler = params['Scheduler']
6286
+ unless params['ConfigModifyInfoList'].nil?
6287
+ @ConfigModifyInfoList = []
6288
+ params['ConfigModifyInfoList'].each do |i|
6289
+ configmodifyinfov2_tmp = ConfigModifyInfoV2.new
6290
+ configmodifyinfov2_tmp.deserialize(i)
6291
+ @ConfigModifyInfoList << configmodifyinfov2_tmp
6292
+ end
6293
+ end
6294
+ end
6295
+ end
6296
+
6297
+ # ModifyYarnQueueV2返回参数结构体
6298
+ class ModifyYarnQueueV2Response < TencentCloud::Common::AbstractModel
6299
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6300
+ # @type RequestId: String
6301
+
6302
+ attr_accessor :RequestId
6303
+
6304
+ def initialize(requestid=nil)
6305
+ @RequestId = requestid
6306
+ end
6307
+
6308
+ def deserialize(params)
6309
+ @RequestId = params['RequestId']
6310
+ end
6311
+ end
6312
+
5877
6313
  # 定时伸缩每月重复任务策略
5878
6314
  class MonthRepeatStrategy < TencentCloud::Common::AbstractModel
5879
6315
  # @param ExecuteAtTimeOfDay: 重复任务执行的具体时刻,例如"01:02:00"
@@ -7581,6 +8017,46 @@ module TencentCloud
7581
8017
  end
7582
8018
  end
7583
8019
 
8020
+ # ResetYarnConfig请求参数结构体
8021
+ class ResetYarnConfigRequest < TencentCloud::Common::AbstractModel
8022
+ # @param InstanceId: emr集群的英文id
8023
+ # @type InstanceId: String
8024
+ # @param Key: 要重置的配置别名,可选值:
8025
+
8026
+ # - capacityLabel:重置标签管理的配置
8027
+ # - fair:重置公平调度的配置
8028
+ # - capacity:重置容量调度的配置
8029
+ # @type Key: String
8030
+
8031
+ attr_accessor :InstanceId, :Key
8032
+
8033
+ def initialize(instanceid=nil, key=nil)
8034
+ @InstanceId = instanceid
8035
+ @Key = key
8036
+ end
8037
+
8038
+ def deserialize(params)
8039
+ @InstanceId = params['InstanceId']
8040
+ @Key = params['Key']
8041
+ end
8042
+ end
8043
+
8044
+ # ResetYarnConfig返回参数结构体
8045
+ class ResetYarnConfigResponse < TencentCloud::Common::AbstractModel
8046
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8047
+ # @type RequestId: String
8048
+
8049
+ attr_accessor :RequestId
8050
+
8051
+ def initialize(requestid=nil)
8052
+ @RequestId = requestid
8053
+ end
8054
+
8055
+ def deserialize(params)
8056
+ @RequestId = params['RequestId']
8057
+ end
8058
+ end
8059
+
7584
8060
  # 资源详情
7585
8061
  class Resource < TencentCloud::Common::AbstractModel
7586
8062
  # @param Spec: 节点规格描述,如CVM.SA2。
@@ -8632,12 +9108,12 @@ module TencentCloud
8632
9108
 
8633
9109
  attr_accessor :DetectAlert, :DetetcFunctionKey, :DetetcFunctionValue, :DetetcTime, :DetectFunctionKey, :DetectFunctionValue, :DetectTime
8634
9110
  extend Gem::Deprecate
8635
- deprecate :DetetcFunctionKey, :none, 2024, 8
8636
- deprecate :DetetcFunctionKey=, :none, 2024, 8
8637
- deprecate :DetetcFunctionValue, :none, 2024, 8
8638
- deprecate :DetetcFunctionValue=, :none, 2024, 8
8639
- deprecate :DetetcTime, :none, 2024, 8
8640
- deprecate :DetetcTime=, :none, 2024, 8
9111
+ deprecate :DetetcFunctionKey, :none, 2024, 9
9112
+ deprecate :DetetcFunctionKey=, :none, 2024, 9
9113
+ deprecate :DetetcFunctionValue, :none, 2024, 9
9114
+ deprecate :DetetcFunctionValue=, :none, 2024, 9
9115
+ deprecate :DetetcTime, :none, 2024, 9
9116
+ deprecate :DetetcTime=, :none, 2024, 9
8641
9117
 
8642
9118
  def initialize(detectalert=nil, detetcfunctionkey=nil, detetcfunctionvalue=nil, detetctime=nil, detectfunctionkey=nil, detectfunctionvalue=nil, detecttime=nil)
8643
9119
  @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.900
4
+ version: 3.0.901
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-05 00:00:00.000000000 Z
11
+ date: 2024-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common