tencentcloud-sdk-emr 3.0.546 → 3.0.547
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 +48 -0
- data/lib/v20190103/models.rb +178 -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: 24d46cf43da33d2e9802d089c27485be8f5610ca
|
4
|
+
data.tar.gz: 4df1e68a532622cb2e13bc2e570c9befc98083f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7c9a1d287e09e22e758af2f5be889dfe3293e0892b8af660f87e3acdb5083cb4dccdf23830857713baedbea336111910dae22feb234e5e0a2b3fceb9f12844b
|
7
|
+
data.tar.gz: 75f24d6b9237b13976e0a45c2dd3ff0d781969a7fdcbe25c5d0a9e3c95a4bfbaf32fbb64cae03f35ab6f5624d1b860574d7d13a639e29d4e109c198c910759ed
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.547
|
data/lib/v20190103/client.rb
CHANGED
@@ -607,6 +607,30 @@ module TencentCloud
|
|
607
607
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
608
608
|
end
|
609
609
|
|
610
|
+
# 用于启动或停止监控或服务
|
611
|
+
|
612
|
+
# @param request: Request instance for StartStopServiceOrMonitor.
|
613
|
+
# @type request: :class:`Tencentcloud::emr::V20190103::StartStopServiceOrMonitorRequest`
|
614
|
+
# @rtype: :class:`Tencentcloud::emr::V20190103::StartStopServiceOrMonitorResponse`
|
615
|
+
def StartStopServiceOrMonitor(request)
|
616
|
+
body = send_request('StartStopServiceOrMonitor', request.serialize)
|
617
|
+
response = JSON.parse(body)
|
618
|
+
if response['Response'].key?('Error') == false
|
619
|
+
model = StartStopServiceOrMonitorResponse.new
|
620
|
+
model.deserialize(response['Response'])
|
621
|
+
model
|
622
|
+
else
|
623
|
+
code = response['Response']['Error']['Code']
|
624
|
+
message = response['Response']['Error']['Message']
|
625
|
+
reqid = response['Response']['RequestId']
|
626
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
627
|
+
end
|
628
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
629
|
+
raise e
|
630
|
+
rescue StandardError => e
|
631
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
632
|
+
end
|
633
|
+
|
610
634
|
# EMR同步TKE中POD状态
|
611
635
|
|
612
636
|
# @param request: Request instance for SyncPodState.
|
@@ -631,6 +655,30 @@ module TencentCloud
|
|
631
655
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
632
656
|
end
|
633
657
|
|
658
|
+
# 销毁集群节点
|
659
|
+
|
660
|
+
# @param request: Request instance for TerminateClusterNodes.
|
661
|
+
# @type request: :class:`Tencentcloud::emr::V20190103::TerminateClusterNodesRequest`
|
662
|
+
# @rtype: :class:`Tencentcloud::emr::V20190103::TerminateClusterNodesResponse`
|
663
|
+
def TerminateClusterNodes(request)
|
664
|
+
body = send_request('TerminateClusterNodes', request.serialize)
|
665
|
+
response = JSON.parse(body)
|
666
|
+
if response['Response'].key?('Error') == false
|
667
|
+
model = TerminateClusterNodesResponse.new
|
668
|
+
model.deserialize(response['Response'])
|
669
|
+
model
|
670
|
+
else
|
671
|
+
code = response['Response']['Error']['Code']
|
672
|
+
message = response['Response']['Error']['Message']
|
673
|
+
reqid = response['Response']['RequestId']
|
674
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
675
|
+
end
|
676
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
677
|
+
raise e
|
678
|
+
rescue StandardError => e
|
679
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
680
|
+
end
|
681
|
+
|
634
682
|
# 销毁EMR实例。此接口仅支持弹性MapReduce正式计费版本。
|
635
683
|
|
636
684
|
# @param request: Request instance for TerminateInstance.
|
data/lib/v20190103/models.rb
CHANGED
@@ -709,6 +709,28 @@ module TencentCloud
|
|
709
709
|
end
|
710
710
|
end
|
711
711
|
|
712
|
+
# 操作的进程范围
|
713
|
+
class ComponentBasicRestartInfo < TencentCloud::Common::AbstractModel
|
714
|
+
# @param ComponentName: 进程名,必填,如NameNode
|
715
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
716
|
+
# @type ComponentName: String
|
717
|
+
# @param IpList: 操作的IP列表
|
718
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
719
|
+
# @type IpList: Array
|
720
|
+
|
721
|
+
attr_accessor :ComponentName, :IpList
|
722
|
+
|
723
|
+
def initialize(componentname=nil, iplist=nil)
|
724
|
+
@ComponentName = componentname
|
725
|
+
@IpList = iplist
|
726
|
+
end
|
727
|
+
|
728
|
+
def deserialize(params)
|
729
|
+
@ComponentName = params['ComponentName']
|
730
|
+
@IpList = params['IpList']
|
731
|
+
end
|
732
|
+
end
|
733
|
+
|
712
734
|
# 自定义配置参数
|
713
735
|
class Configuration < TencentCloud::Common::AbstractModel
|
714
736
|
# @param Classification: 配置文件名,支持SPARK、HIVE、HDFS、YARN的部分配置文件自定义。
|
@@ -3903,6 +3925,30 @@ module TencentCloud
|
|
3903
3925
|
end
|
3904
3926
|
end
|
3905
3927
|
|
3928
|
+
# 操作范围
|
3929
|
+
class OpScope < TencentCloud::Common::AbstractModel
|
3930
|
+
# @param ServiceInfoList: 操作范围,要操作的服务信息
|
3931
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3932
|
+
# @type ServiceInfoList: Array
|
3933
|
+
|
3934
|
+
attr_accessor :ServiceInfoList
|
3935
|
+
|
3936
|
+
def initialize(serviceinfolist=nil)
|
3937
|
+
@ServiceInfoList = serviceinfolist
|
3938
|
+
end
|
3939
|
+
|
3940
|
+
def deserialize(params)
|
3941
|
+
unless params['ServiceInfoList'].nil?
|
3942
|
+
@ServiceInfoList = []
|
3943
|
+
params['ServiceInfoList'].each do |i|
|
3944
|
+
servicebasicrestartinfo_tmp = ServiceBasicRestartInfo.new
|
3945
|
+
servicebasicrestartinfo_tmp.deserialize(i)
|
3946
|
+
@ServiceInfoList << servicebasicrestartinfo_tmp
|
3947
|
+
end
|
3948
|
+
end
|
3949
|
+
end
|
3950
|
+
end
|
3951
|
+
|
3906
3952
|
# 资源详情
|
3907
3953
|
class OutterResource < TencentCloud::Common::AbstractModel
|
3908
3954
|
# @param Spec: 规格
|
@@ -5502,6 +5548,33 @@ module TencentCloud
|
|
5502
5548
|
end
|
5503
5549
|
end
|
5504
5550
|
|
5551
|
+
# 操作的服务范围
|
5552
|
+
class ServiceBasicRestartInfo < TencentCloud::Common::AbstractModel
|
5553
|
+
# @param ServiceName: 服务名,必填,如HDFS
|
5554
|
+
# @type ServiceName: String
|
5555
|
+
# @param ComponentInfoList: 如果没传,则表示所有进程
|
5556
|
+
# @type ComponentInfoList: Array
|
5557
|
+
|
5558
|
+
attr_accessor :ServiceName, :ComponentInfoList
|
5559
|
+
|
5560
|
+
def initialize(servicename=nil, componentinfolist=nil)
|
5561
|
+
@ServiceName = servicename
|
5562
|
+
@ComponentInfoList = componentinfolist
|
5563
|
+
end
|
5564
|
+
|
5565
|
+
def deserialize(params)
|
5566
|
+
@ServiceName = params['ServiceName']
|
5567
|
+
unless params['ComponentInfoList'].nil?
|
5568
|
+
@ComponentInfoList = []
|
5569
|
+
params['ComponentInfoList'].each do |i|
|
5570
|
+
componentbasicrestartinfo_tmp = ComponentBasicRestartInfo.new
|
5571
|
+
componentbasicrestartinfo_tmp.deserialize(i)
|
5572
|
+
@ComponentInfoList << componentbasicrestartinfo_tmp
|
5573
|
+
end
|
5574
|
+
end
|
5575
|
+
end
|
5576
|
+
end
|
5577
|
+
|
5505
5578
|
# 节点信息
|
5506
5579
|
class ShortNodeInfo < TencentCloud::Common::AbstractModel
|
5507
5580
|
# @param NodeType: 节点类型,Master/Core/Task/Router/Common
|
@@ -5544,6 +5617,53 @@ module TencentCloud
|
|
5544
5617
|
end
|
5545
5618
|
end
|
5546
5619
|
|
5620
|
+
# StartStopServiceOrMonitor请求参数结构体
|
5621
|
+
class StartStopServiceOrMonitorRequest < TencentCloud::Common::AbstractModel
|
5622
|
+
# @param InstanceId: 集群ID
|
5623
|
+
# @type InstanceId: String
|
5624
|
+
# @param OpType: 操作类型,当前支持
|
5625
|
+
# <li>StartService:启动服务</li>
|
5626
|
+
# <li>StopService:停止服务</li>
|
5627
|
+
# <li>StartMonitor:退出维护</li>
|
5628
|
+
# <li>StopMonitor:进入维护</li>
|
5629
|
+
# @type OpType: String
|
5630
|
+
# @param OpScope: 操作范围
|
5631
|
+
# @type OpScope: :class:`Tencentcloud::Emr.v20190103.models.OpScope`
|
5632
|
+
|
5633
|
+
attr_accessor :InstanceId, :OpType, :OpScope
|
5634
|
+
|
5635
|
+
def initialize(instanceid=nil, optype=nil, opscope=nil)
|
5636
|
+
@InstanceId = instanceid
|
5637
|
+
@OpType = optype
|
5638
|
+
@OpScope = opscope
|
5639
|
+
end
|
5640
|
+
|
5641
|
+
def deserialize(params)
|
5642
|
+
@InstanceId = params['InstanceId']
|
5643
|
+
@OpType = params['OpType']
|
5644
|
+
unless params['OpScope'].nil?
|
5645
|
+
@OpScope = OpScope.new
|
5646
|
+
@OpScope.deserialize(params['OpScope'])
|
5647
|
+
end
|
5648
|
+
end
|
5649
|
+
end
|
5650
|
+
|
5651
|
+
# StartStopServiceOrMonitor返回参数结构体
|
5652
|
+
class StartStopServiceOrMonitorResponse < TencentCloud::Common::AbstractModel
|
5653
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5654
|
+
# @type RequestId: String
|
5655
|
+
|
5656
|
+
attr_accessor :RequestId
|
5657
|
+
|
5658
|
+
def initialize(requestid=nil)
|
5659
|
+
@RequestId = requestid
|
5660
|
+
end
|
5661
|
+
|
5662
|
+
def deserialize(params)
|
5663
|
+
@RequestId = params['RequestId']
|
5664
|
+
end
|
5665
|
+
end
|
5666
|
+
|
5547
5667
|
# 执行步骤
|
5548
5668
|
class Step < TencentCloud::Common::AbstractModel
|
5549
5669
|
# @param Name: 执行步骤名称。
|
@@ -5654,6 +5774,64 @@ module TencentCloud
|
|
5654
5774
|
end
|
5655
5775
|
end
|
5656
5776
|
|
5777
|
+
# TerminateClusterNodes请求参数结构体
|
5778
|
+
class TerminateClusterNodesRequest < TencentCloud::Common::AbstractModel
|
5779
|
+
# @param InstanceId: 实例ID
|
5780
|
+
# @type InstanceId: String
|
5781
|
+
# @param CvmInstanceIds: 销毁资源列表
|
5782
|
+
# @type CvmInstanceIds: Array
|
5783
|
+
# @param NodeFlag: 销毁节点类型取值范围:
|
5784
|
+
# <li>MASTER</li>
|
5785
|
+
# <li>TASK</li>
|
5786
|
+
# <li>CORE</li>
|
5787
|
+
# <li>ROUTER</li>
|
5788
|
+
# @type NodeFlag: String
|
5789
|
+
# @param GraceDownFlag: 优雅缩容开关
|
5790
|
+
# <li>true:开启</li>
|
5791
|
+
# <li>false:不开启</li>
|
5792
|
+
# @type GraceDownFlag: Boolean
|
5793
|
+
# @param GraceDownTime: 优雅缩容等待时间,时间范围60到1800 单位秒
|
5794
|
+
# @type GraceDownTime: Integer
|
5795
|
+
|
5796
|
+
attr_accessor :InstanceId, :CvmInstanceIds, :NodeFlag, :GraceDownFlag, :GraceDownTime
|
5797
|
+
|
5798
|
+
def initialize(instanceid=nil, cvminstanceids=nil, nodeflag=nil, gracedownflag=nil, gracedowntime=nil)
|
5799
|
+
@InstanceId = instanceid
|
5800
|
+
@CvmInstanceIds = cvminstanceids
|
5801
|
+
@NodeFlag = nodeflag
|
5802
|
+
@GraceDownFlag = gracedownflag
|
5803
|
+
@GraceDownTime = gracedowntime
|
5804
|
+
end
|
5805
|
+
|
5806
|
+
def deserialize(params)
|
5807
|
+
@InstanceId = params['InstanceId']
|
5808
|
+
@CvmInstanceIds = params['CvmInstanceIds']
|
5809
|
+
@NodeFlag = params['NodeFlag']
|
5810
|
+
@GraceDownFlag = params['GraceDownFlag']
|
5811
|
+
@GraceDownTime = params['GraceDownTime']
|
5812
|
+
end
|
5813
|
+
end
|
5814
|
+
|
5815
|
+
# TerminateClusterNodes返回参数结构体
|
5816
|
+
class TerminateClusterNodesResponse < TencentCloud::Common::AbstractModel
|
5817
|
+
# @param FlowId: 缩容流程ID。
|
5818
|
+
# @type FlowId: Integer
|
5819
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5820
|
+
# @type RequestId: String
|
5821
|
+
|
5822
|
+
attr_accessor :FlowId, :RequestId
|
5823
|
+
|
5824
|
+
def initialize(flowid=nil, requestid=nil)
|
5825
|
+
@FlowId = flowid
|
5826
|
+
@RequestId = requestid
|
5827
|
+
end
|
5828
|
+
|
5829
|
+
def deserialize(params)
|
5830
|
+
@FlowId = params['FlowId']
|
5831
|
+
@RequestId = params['RequestId']
|
5832
|
+
end
|
5833
|
+
end
|
5834
|
+
|
5657
5835
|
# TerminateInstance请求参数结构体
|
5658
5836
|
class TerminateInstanceRequest < TencentCloud::Common::AbstractModel
|
5659
5837
|
# @param InstanceId: 实例ID。
|
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.547
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|