tencentcloud-sdk-emr 3.0.1073 → 3.0.1076

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20190103/models.rb +150 -12
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 29d4b01d6667fd9a5ea81fec9d49d7032c39d3a9
4
- data.tar.gz: 5c97dc128297e9c54ca0e1c6bef8cf4a24cb0931
3
+ metadata.gz: abba43efca7ef05f803e6b36de47b8f7a0100a57
4
+ data.tar.gz: d14a82af161f3206a70ec65cb5e79ddd40cf4db7
5
5
  SHA512:
6
- metadata.gz: c7f5be3a98322474a66a05e1924a275afcc1d4b9d430cc2e477845cd524e25b197bfdfa4aa8f03ec4cad973140a8b0798eecd44630bf8cd37d835c3838eedad5
7
- data.tar.gz: 6cc87fe92a8bdeb4f41b8239c0e0942d3bb3a7d67d3a70ca6940e83d695b9b53ec14c2238f9a84252906a0a9ee2ace3c299f353e8b00de9951dc21cc633b312f
6
+ metadata.gz: c99cbc96ba91718c7b7c6a8787d812baef62d6cc54af5f0b831bea50cfe340c1f88cc41b50d611e735fb00b6746a0d20f7182757a143b8a014ac4848384c4cf9
7
+ data.tar.gz: 0034fd2d8216068816c5135d835e089d2ac73f01757e66aa2063902e4c79ed73cde0bd27bc0c7c667985eabee99ecdb44f2b478fa87fb8567e16daaafa95e2fb
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1073
1
+ 3.0.1076
@@ -396,6 +396,25 @@ module TencentCloud
396
396
  end
397
397
  end
398
398
 
399
+ # 自动伸缩组高级设置
400
+ class AutoScaleGroupAdvanceAttrs < TencentCloud::Common::AbstractModel
401
+ # @param ComputeResourceAdvanceParams: 计算资源高级设置
402
+ # @type ComputeResourceAdvanceParams: :class:`Tencentcloud::Emr.v20190103.models.ComputeResourceAdvanceParams`
403
+
404
+ attr_accessor :ComputeResourceAdvanceParams
405
+
406
+ def initialize(computeresourceadvanceparams=nil)
407
+ @ComputeResourceAdvanceParams = computeresourceadvanceparams
408
+ end
409
+
410
+ def deserialize(params)
411
+ unless params['ComputeResourceAdvanceParams'].nil?
412
+ @ComputeResourceAdvanceParams = ComputeResourceAdvanceParams.new
413
+ @ComputeResourceAdvanceParams.deserialize(params['ComputeResourceAdvanceParams'])
414
+ end
415
+ end
416
+ end
417
+
399
418
  # 弹性扩缩容记录
400
419
  class AutoScaleRecord < TencentCloud::Common::AbstractModel
401
420
  # @param StrategyName: 扩缩容规则名。
@@ -480,7 +499,7 @@ module TencentCloud
480
499
  # @type ScaleUpperBound: Integer
481
500
  # @param StrategyType: 扩容规则类型,1为按负载指标扩容规则,2为按时间扩容规则
482
501
  # @type StrategyType: Integer
483
- # @param NextTimeCanScale: 下次能可扩容时间。
502
+ # @param NextTimeCanScale: 下次可扩容时间。
484
503
  # @type NextTimeCanScale: Integer
485
504
  # @param GraceDownFlag: 优雅缩容开关
486
505
  # @type GraceDownFlag: Boolean
@@ -490,7 +509,7 @@ module TencentCloud
490
509
  # @type PayMode: String
491
510
  # @param PostPayPercentMin: 竞价实例优先的场景下,按量计费资源数量的最低百分比,整数
492
511
  # @type PostPayPercentMin: Integer
493
- # @param ChangeToPod: 预设资源类型为HOST时,支持勾选“资源不足时切换POD”;支持取消勾选;默认不勾选(0),勾选(1)
512
+ # @param ChangeToPod: 预设资源类型为HOST时,支持勾选“资源不足时切换POD”;支持取消勾选;0表示默认不勾选(0),1表示勾选
494
513
  # @type ChangeToPod: Integer
495
514
  # @param GroupName: 伸缩组名
496
515
  # @type GroupName: String
@@ -502,10 +521,12 @@ module TencentCloud
502
521
  # @type Parallel: Integer
503
522
  # @param EnableMNode: 是否支持MNode
504
523
  # @type EnableMNode: Integer
524
+ # @param ExtraAdvanceAttrs: 伸缩组更多设置
525
+ # @type ExtraAdvanceAttrs: :class:`Tencentcloud::Emr.v20190103.models.AutoScaleGroupAdvanceAttrs`
505
526
 
506
- attr_accessor :Id, :ClusterId, :ScaleLowerBound, :ScaleUpperBound, :StrategyType, :NextTimeCanScale, :GraceDownFlag, :HardwareType, :PayMode, :PostPayPercentMin, :ChangeToPod, :GroupName, :YarnNodeLabel, :GroupStatus, :Parallel, :EnableMNode
527
+ attr_accessor :Id, :ClusterId, :ScaleLowerBound, :ScaleUpperBound, :StrategyType, :NextTimeCanScale, :GraceDownFlag, :HardwareType, :PayMode, :PostPayPercentMin, :ChangeToPod, :GroupName, :YarnNodeLabel, :GroupStatus, :Parallel, :EnableMNode, :ExtraAdvanceAttrs
507
528
 
508
- def initialize(id=nil, clusterid=nil, scalelowerbound=nil, scaleupperbound=nil, strategytype=nil, nexttimecanscale=nil, gracedownflag=nil, hardwaretype=nil, paymode=nil, postpaypercentmin=nil, changetopod=nil, groupname=nil, yarnnodelabel=nil, groupstatus=nil, parallel=nil, enablemnode=nil)
529
+ def initialize(id=nil, clusterid=nil, scalelowerbound=nil, scaleupperbound=nil, strategytype=nil, nexttimecanscale=nil, gracedownflag=nil, hardwaretype=nil, paymode=nil, postpaypercentmin=nil, changetopod=nil, groupname=nil, yarnnodelabel=nil, groupstatus=nil, parallel=nil, enablemnode=nil, extraadvanceattrs=nil)
509
530
  @Id = id
510
531
  @ClusterId = clusterid
511
532
  @ScaleLowerBound = scalelowerbound
@@ -522,6 +543,7 @@ module TencentCloud
522
543
  @GroupStatus = groupstatus
523
544
  @Parallel = parallel
524
545
  @EnableMNode = enablemnode
546
+ @ExtraAdvanceAttrs = extraadvanceattrs
525
547
  end
526
548
 
527
549
  def deserialize(params)
@@ -541,6 +563,10 @@ module TencentCloud
541
563
  @GroupStatus = params['GroupStatus']
542
564
  @Parallel = params['Parallel']
543
565
  @EnableMNode = params['EnableMNode']
566
+ unless params['ExtraAdvanceAttrs'].nil?
567
+ @ExtraAdvanceAttrs = AutoScaleGroupAdvanceAttrs.new
568
+ @ExtraAdvanceAttrs.deserialize(params['ExtraAdvanceAttrs'])
569
+ end
544
570
  end
545
571
  end
546
572
 
@@ -1321,6 +1347,48 @@ module TencentCloud
1321
1347
  end
1322
1348
  end
1323
1349
 
1350
+ # 计算资源高级设置
1351
+ class ComputeResourceAdvanceParams < TencentCloud::Common::AbstractModel
1352
+ # @param Labels: 节点Label数组
1353
+ # @type Labels: Array
1354
+ # @param Taints: 节点污点
1355
+ # @type Taints: Array
1356
+ # @param PreStartUserScript: base64 编码的用户脚本,在初始化节点之前执行
1357
+ # @type PreStartUserScript: String
1358
+ # @param UserScript: base64 编码的用户脚本, 此脚本会在 k8s 组件运行后执行, 需要用户保证脚本的可重入及重试逻辑, 脚本及其生成的日志文件可在节点的 /data/ccs_userscript/ 路径查看
1359
+ # @type UserScript: String
1360
+
1361
+ attr_accessor :Labels, :Taints, :PreStartUserScript, :UserScript
1362
+
1363
+ def initialize(labels=nil, taints=nil, prestartuserscript=nil, userscript=nil)
1364
+ @Labels = labels
1365
+ @Taints = taints
1366
+ @PreStartUserScript = prestartuserscript
1367
+ @UserScript = userscript
1368
+ end
1369
+
1370
+ def deserialize(params)
1371
+ unless params['Labels'].nil?
1372
+ @Labels = []
1373
+ params['Labels'].each do |i|
1374
+ tkelabel_tmp = TkeLabel.new
1375
+ tkelabel_tmp.deserialize(i)
1376
+ @Labels << tkelabel_tmp
1377
+ end
1378
+ end
1379
+ unless params['Taints'].nil?
1380
+ @Taints = []
1381
+ params['Taints'].each do |i|
1382
+ taint_tmp = Taint.new
1383
+ taint_tmp.deserialize(i)
1384
+ @Taints << taint_tmp
1385
+ end
1386
+ end
1387
+ @PreStartUserScript = params['PreStartUserScript']
1388
+ @UserScript = params['UserScript']
1389
+ end
1390
+ end
1391
+
1324
1392
  # 资源调度 - 队列修改信息
1325
1393
  class ConfigModifyInfoV2 < TencentCloud::Common::AbstractModel
1326
1394
  # @param OpType: 操作类型,可选值:
@@ -7154,16 +7222,19 @@ module TencentCloud
7154
7222
  # @type Selected: String
7155
7223
  # @param Enable: 是否开启监控
7156
7224
  # @type Enable: String
7225
+ # @param SettingsJson: 事件Json模板
7226
+ # @type SettingsJson: String
7157
7227
 
7158
- attr_accessor :TaskType, :Group, :Name, :TaskSettings, :Selected, :Enable
7228
+ attr_accessor :TaskType, :Group, :Name, :TaskSettings, :Selected, :Enable, :SettingsJson
7159
7229
 
7160
- def initialize(tasktype=nil, group=nil, name=nil, tasksettings=nil, selected=nil, enable=nil)
7230
+ def initialize(tasktype=nil, group=nil, name=nil, tasksettings=nil, selected=nil, enable=nil, settingsjson=nil)
7161
7231
  @TaskType = tasktype
7162
7232
  @Group = group
7163
7233
  @Name = name
7164
7234
  @TaskSettings = tasksettings
7165
7235
  @Selected = selected
7166
7236
  @Enable = enable
7237
+ @SettingsJson = settingsjson
7167
7238
  end
7168
7239
 
7169
7240
  def deserialize(params)
@@ -7180,6 +7251,7 @@ module TencentCloud
7180
7251
  end
7181
7252
  @Selected = params['Selected']
7182
7253
  @Enable = params['Enable']
7254
+ @SettingsJson = params['SettingsJson']
7183
7255
  end
7184
7256
  end
7185
7257
 
@@ -9641,16 +9713,19 @@ module TencentCloud
9641
9713
  # @type StoreFileSize: Float
9642
9714
  # @param Operation: regions,点击可跳转
9643
9715
  # @type Operation: String
9716
+ # @param StoreFileNum: StoreFile数量
9717
+ # @type StoreFileNum: Float
9644
9718
 
9645
- attr_accessor :Table, :ReadRequestCount, :WriteRequestCount, :MemstoreSize, :StoreFileSize, :Operation
9719
+ attr_accessor :Table, :ReadRequestCount, :WriteRequestCount, :MemstoreSize, :StoreFileSize, :Operation, :StoreFileNum
9646
9720
 
9647
- def initialize(table=nil, readrequestcount=nil, writerequestcount=nil, memstoresize=nil, storefilesize=nil, operation=nil)
9721
+ def initialize(table=nil, readrequestcount=nil, writerequestcount=nil, memstoresize=nil, storefilesize=nil, operation=nil, storefilenum=nil)
9648
9722
  @Table = table
9649
9723
  @ReadRequestCount = readrequestcount
9650
9724
  @WriteRequestCount = writerequestcount
9651
9725
  @MemstoreSize = memstoresize
9652
9726
  @StoreFileSize = storefilesize
9653
9727
  @Operation = operation
9728
+ @StoreFileNum = storefilenum
9654
9729
  end
9655
9730
 
9656
9731
  def deserialize(params)
@@ -9660,6 +9735,7 @@ module TencentCloud
9660
9735
  @MemstoreSize = params['MemstoreSize']
9661
9736
  @StoreFileSize = params['StoreFileSize']
9662
9737
  @Operation = params['Operation']
9738
+ @StoreFileNum = params['StoreFileNum']
9663
9739
  end
9664
9740
  end
9665
9741
 
@@ -11471,10 +11547,12 @@ module TencentCloud
11471
11547
  # @type ResourceBaseType: String
11472
11548
  # @param ComputeResourceId: 计算资源id
11473
11549
  # @type ComputeResourceId: String
11550
+ # @param ComputeResourceAdvanceParams: 计算资源高级设置
11551
+ # @type ComputeResourceAdvanceParams: :class:`Tencentcloud::Emr.v20190103.models.ComputeResourceAdvanceParams`
11474
11552
 
11475
- attr_accessor :TimeUnit, :TimeSpan, :InstanceId, :PayMode, :ClientToken, :PreExecutedFileSettings, :TaskCount, :CoreCount, :UnNecessaryNodeList, :RouterCount, :SoftDeployInfo, :ServiceNodeInfo, :DisasterRecoverGroupIds, :Tags, :HardwareResourceType, :PodSpec, :ClickHouseClusterName, :ClickHouseClusterType, :YarnNodeLabel, :PodParameter, :MasterCount, :StartServiceAfterScaleOut, :ZoneId, :SubnetId, :ScaleOutServiceConfAssign, :AutoRenew, :ResourceBaseType, :ComputeResourceId
11553
+ attr_accessor :TimeUnit, :TimeSpan, :InstanceId, :PayMode, :ClientToken, :PreExecutedFileSettings, :TaskCount, :CoreCount, :UnNecessaryNodeList, :RouterCount, :SoftDeployInfo, :ServiceNodeInfo, :DisasterRecoverGroupIds, :Tags, :HardwareResourceType, :PodSpec, :ClickHouseClusterName, :ClickHouseClusterType, :YarnNodeLabel, :PodParameter, :MasterCount, :StartServiceAfterScaleOut, :ZoneId, :SubnetId, :ScaleOutServiceConfAssign, :AutoRenew, :ResourceBaseType, :ComputeResourceId, :ComputeResourceAdvanceParams
11476
11554
 
11477
- def initialize(timeunit=nil, timespan=nil, instanceid=nil, paymode=nil, clienttoken=nil, preexecutedfilesettings=nil, taskcount=nil, corecount=nil, unnecessarynodelist=nil, routercount=nil, softdeployinfo=nil, servicenodeinfo=nil, disasterrecovergroupids=nil, tags=nil, hardwareresourcetype=nil, podspec=nil, clickhouseclustername=nil, clickhouseclustertype=nil, yarnnodelabel=nil, podparameter=nil, mastercount=nil, startserviceafterscaleout=nil, zoneid=nil, subnetid=nil, scaleoutserviceconfassign=nil, autorenew=nil, resourcebasetype=nil, computeresourceid=nil)
11555
+ def initialize(timeunit=nil, timespan=nil, instanceid=nil, paymode=nil, clienttoken=nil, preexecutedfilesettings=nil, taskcount=nil, corecount=nil, unnecessarynodelist=nil, routercount=nil, softdeployinfo=nil, servicenodeinfo=nil, disasterrecovergroupids=nil, tags=nil, hardwareresourcetype=nil, podspec=nil, clickhouseclustername=nil, clickhouseclustertype=nil, yarnnodelabel=nil, podparameter=nil, mastercount=nil, startserviceafterscaleout=nil, zoneid=nil, subnetid=nil, scaleoutserviceconfassign=nil, autorenew=nil, resourcebasetype=nil, computeresourceid=nil, computeresourceadvanceparams=nil)
11478
11556
  @TimeUnit = timeunit
11479
11557
  @TimeSpan = timespan
11480
11558
  @InstanceId = instanceid
@@ -11503,6 +11581,7 @@ module TencentCloud
11503
11581
  @AutoRenew = autorenew
11504
11582
  @ResourceBaseType = resourcebasetype
11505
11583
  @ComputeResourceId = computeresourceid
11584
+ @ComputeResourceAdvanceParams = computeresourceadvanceparams
11506
11585
  end
11507
11586
 
11508
11587
  def deserialize(params)
@@ -11554,6 +11633,10 @@ module TencentCloud
11554
11633
  @AutoRenew = params['AutoRenew']
11555
11634
  @ResourceBaseType = params['ResourceBaseType']
11556
11635
  @ComputeResourceId = params['ComputeResourceId']
11636
+ unless params['ComputeResourceAdvanceParams'].nil?
11637
+ @ComputeResourceAdvanceParams = ComputeResourceAdvanceParams.new
11638
+ @ComputeResourceAdvanceParams.deserialize(params['ComputeResourceAdvanceParams'])
11639
+ end
11557
11640
  end
11558
11641
  end
11559
11642
 
@@ -12621,6 +12704,30 @@ module TencentCloud
12621
12704
  end
12622
12705
  end
12623
12706
 
12707
+ # Kubernetes Taint
12708
+ class Taint < TencentCloud::Common::AbstractModel
12709
+ # @param Key: Taint Key
12710
+ # @type Key: String
12711
+ # @param Value: Taint Value
12712
+ # @type Value: String
12713
+ # @param Effect: Taint Effect
12714
+ # @type Effect: String
12715
+
12716
+ attr_accessor :Key, :Value, :Effect
12717
+
12718
+ def initialize(key=nil, value=nil, effect=nil)
12719
+ @Key = key
12720
+ @Value = value
12721
+ @Effect = effect
12722
+ end
12723
+
12724
+ def deserialize(params)
12725
+ @Key = params['Key']
12726
+ @Value = params['Value']
12727
+ @Effect = params['Effect']
12728
+ end
12729
+ end
12730
+
12624
12731
  # 巡检任务参数
12625
12732
  class TaskSettings < TencentCloud::Common::AbstractModel
12626
12733
  # @param Name: 参数名称
@@ -12869,10 +12976,12 @@ module TencentCloud
12869
12976
  # @type CompensateFlag: Integer
12870
12977
  # @param GroupId: 伸缩组id
12871
12978
  # @type GroupId: Integer
12979
+ # @param GraceDownLabel: 优雅缩容业务pod标签,当node不存在上述pod或超过优雅缩容时间时,缩容节点
12980
+ # @type GraceDownLabel: Array
12872
12981
 
12873
- attr_accessor :StrategyName, :IntervalTime, :ScaleAction, :ScaleNum, :StrategyStatus, :Priority, :RetryValidTime, :RepeatStrategy, :StrategyId, :GraceDownFlag, :GraceDownTime, :Tags, :ConfigGroupAssigned, :MeasureMethod, :TerminatePolicy, :MaxUse, :SoftDeployInfo, :ServiceNodeInfo, :CompensateFlag, :GroupId
12982
+ attr_accessor :StrategyName, :IntervalTime, :ScaleAction, :ScaleNum, :StrategyStatus, :Priority, :RetryValidTime, :RepeatStrategy, :StrategyId, :GraceDownFlag, :GraceDownTime, :Tags, :ConfigGroupAssigned, :MeasureMethod, :TerminatePolicy, :MaxUse, :SoftDeployInfo, :ServiceNodeInfo, :CompensateFlag, :GroupId, :GraceDownLabel
12874
12983
 
12875
- def initialize(strategyname=nil, intervaltime=nil, scaleaction=nil, scalenum=nil, strategystatus=nil, priority=nil, retryvalidtime=nil, repeatstrategy=nil, strategyid=nil, gracedownflag=nil, gracedowntime=nil, tags=nil, configgroupassigned=nil, measuremethod=nil, terminatepolicy=nil, maxuse=nil, softdeployinfo=nil, servicenodeinfo=nil, compensateflag=nil, groupid=nil)
12984
+ def initialize(strategyname=nil, intervaltime=nil, scaleaction=nil, scalenum=nil, strategystatus=nil, priority=nil, retryvalidtime=nil, repeatstrategy=nil, strategyid=nil, gracedownflag=nil, gracedowntime=nil, tags=nil, configgroupassigned=nil, measuremethod=nil, terminatepolicy=nil, maxuse=nil, softdeployinfo=nil, servicenodeinfo=nil, compensateflag=nil, groupid=nil, gracedownlabel=nil)
12876
12985
  @StrategyName = strategyname
12877
12986
  @IntervalTime = intervaltime
12878
12987
  @ScaleAction = scaleaction
@@ -12893,6 +13002,7 @@ module TencentCloud
12893
13002
  @ServiceNodeInfo = servicenodeinfo
12894
13003
  @CompensateFlag = compensateflag
12895
13004
  @GroupId = groupid
13005
+ @GraceDownLabel = gracedownlabel
12896
13006
  end
12897
13007
 
12898
13008
  def deserialize(params)
@@ -12926,6 +13036,34 @@ module TencentCloud
12926
13036
  @ServiceNodeInfo = params['ServiceNodeInfo']
12927
13037
  @CompensateFlag = params['CompensateFlag']
12928
13038
  @GroupId = params['GroupId']
13039
+ unless params['GraceDownLabel'].nil?
13040
+ @GraceDownLabel = []
13041
+ params['GraceDownLabel'].each do |i|
13042
+ tkelabel_tmp = TkeLabel.new
13043
+ tkelabel_tmp.deserialize(i)
13044
+ @GraceDownLabel << tkelabel_tmp
13045
+ end
13046
+ end
13047
+ end
13048
+ end
13049
+
13050
+ # Kubernetes Label
13051
+ class TkeLabel < TencentCloud::Common::AbstractModel
13052
+ # @param Name: Label Name
13053
+ # @type Name: String
13054
+ # @param Value: Label Value
13055
+ # @type Value: String
13056
+
13057
+ attr_accessor :Name, :Value
13058
+
13059
+ def initialize(name=nil, value=nil)
13060
+ @Name = name
13061
+ @Value = value
13062
+ end
13063
+
13064
+ def deserialize(params)
13065
+ @Name = params['Name']
13066
+ @Value = params['Value']
12929
13067
  end
12930
13068
  end
12931
13069
 
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.1073
4
+ version: 3.0.1076
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-06-03 00:00:00.000000000 Z
11
+ date: 2025-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common