tencentcloud-sdk-emr 3.0.471 → 3.0.473

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3019207fe270de0070c64aef2c6ff430ffae4bac
4
- data.tar.gz: 04475b306f88198cf03ce9b68d6d310371a4922c
3
+ metadata.gz: 5ca9a13419791945a7c53c28dee5a3bf4eaa8b8f
4
+ data.tar.gz: bb77f7da5e9bae9f7d5ed3432c8f342202171b39
5
5
  SHA512:
6
- metadata.gz: 5d033d1a936d9aa6675de67bbe5d639dded8a436aa787a908efafc3a54a5663e70682b5ce5a87e88b206498cef585119e3e38facc9db69c8c90775aa46b923bd
7
- data.tar.gz: b9f5f0d2b44a7134c300b829f0f6a4faf5826f69a1518e6f8564a497e99b57d4f1f4a080df144e9f94baed5b4499a37f3ed7f5de88acaea4898a31843ab2cafe
6
+ metadata.gz: 0a22415523a160f7408606c1220ef5e7d10a5f417f4515e1c8b4414b138aaca49086215f2939bbfd459259a028f0c34eef678897d8c8ebe308cf1e01ac198d8a
7
+ data.tar.gz: 34a90f925c1b89cde744e8fe6530b6d86277a73f5ff98f10e80d0710f08f4142128606641fbcb04fc2da6e87531207ef78718aadab0c71af81ed5ecdd0ce5f0a
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.471
1
+ 3.0.473
@@ -56,6 +56,30 @@ module TencentCloud
56
56
 
57
57
  # 创建EMR集群实例
58
58
 
59
+ # @param request: Request instance for CreateCluster.
60
+ # @type request: :class:`Tencentcloud::emr::V20190103::CreateClusterRequest`
61
+ # @rtype: :class:`Tencentcloud::emr::V20190103::CreateClusterResponse`
62
+ def CreateCluster(request)
63
+ body = send_request('CreateCluster', request.serialize)
64
+ response = JSON.parse(body)
65
+ if response['Response'].key?('Error') == false
66
+ model = CreateClusterResponse.new
67
+ model.deserialize(response['Response'])
68
+ model
69
+ else
70
+ code = response['Response']['Error']['Code']
71
+ message = response['Response']['Error']['Message']
72
+ reqid = response['Response']['RequestId']
73
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
74
+ end
75
+ rescue TencentCloud::Common::TencentCloudSDKException => e
76
+ raise e
77
+ rescue StandardError => e
78
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
79
+ end
80
+
81
+ # 创建EMR集群实例
82
+
59
83
  # @param request: Request instance for CreateInstance.
60
84
  # @type request: :class:`Tencentcloud::emr::V20190103::CreateInstanceRequest`
61
85
  # @rtype: :class:`Tencentcloud::emr::V20190103::CreateInstanceResponse`
@@ -535,6 +559,30 @@ module TencentCloud
535
559
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
536
560
  end
537
561
 
562
+ # 扩容集群节点
563
+
564
+ # @param request: Request instance for ScaleOutCluster.
565
+ # @type request: :class:`Tencentcloud::emr::V20190103::ScaleOutClusterRequest`
566
+ # @rtype: :class:`Tencentcloud::emr::V20190103::ScaleOutClusterResponse`
567
+ def ScaleOutCluster(request)
568
+ body = send_request('ScaleOutCluster', request.serialize)
569
+ response = JSON.parse(body)
570
+ if response['Response'].key?('Error') == false
571
+ model = ScaleOutClusterResponse.new
572
+ model.deserialize(response['Response'])
573
+ model
574
+ else
575
+ code = response['Response']['Error']['Code']
576
+ message = response['Response']['Error']['Message']
577
+ reqid = response['Response']['RequestId']
578
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
579
+ end
580
+ rescue TencentCloud::Common::TencentCloudSDKException => e
581
+ raise e
582
+ rescue StandardError => e
583
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
584
+ end
585
+
538
586
  # 扩容节点
539
587
 
540
588
  # @param request: Request instance for ScaleOutInstance.
@@ -70,6 +70,70 @@ module TencentCloud
70
70
  end
71
71
  end
72
72
 
73
+ # 资源描述
74
+ class AllNodeResourceSpec < TencentCloud::Common::AbstractModel
75
+ # @param MasterResourceSpec: 描述Master节点资源
76
+ # 注意:此字段可能返回 null,表示取不到有效值。
77
+ # @type MasterResourceSpec: :class:`Tencentcloud::Emr.v20190103.models.NodeResourceSpec`
78
+ # @param CoreResourceSpec: 描述Core节点资源
79
+ # 注意:此字段可能返回 null,表示取不到有效值。
80
+ # @type CoreResourceSpec: :class:`Tencentcloud::Emr.v20190103.models.NodeResourceSpec`
81
+ # @param TaskResourceSpec: 描述Taskr节点资源
82
+ # 注意:此字段可能返回 null,表示取不到有效值。
83
+ # @type TaskResourceSpec: :class:`Tencentcloud::Emr.v20190103.models.NodeResourceSpec`
84
+ # @param CommonResourceSpec: 描述Common节点资源
85
+ # 注意:此字段可能返回 null,表示取不到有效值。
86
+ # @type CommonResourceSpec: :class:`Tencentcloud::Emr.v20190103.models.NodeResourceSpec`
87
+ # @param MasterCount: Master节点数量
88
+ # 注意:此字段可能返回 null,表示取不到有效值。
89
+ # @type MasterCount: Integer
90
+ # @param CoreCount: Corer节点数量
91
+ # 注意:此字段可能返回 null,表示取不到有效值。
92
+ # @type CoreCount: Integer
93
+ # @param TaskCount: Task节点数量
94
+ # 注意:此字段可能返回 null,表示取不到有效值。
95
+ # @type TaskCount: Integer
96
+ # @param CommonCount: Common节点数量
97
+ # 注意:此字段可能返回 null,表示取不到有效值。
98
+ # @type CommonCount: Integer
99
+
100
+ attr_accessor :MasterResourceSpec, :CoreResourceSpec, :TaskResourceSpec, :CommonResourceSpec, :MasterCount, :CoreCount, :TaskCount, :CommonCount
101
+
102
+ def initialize(masterresourcespec=nil, coreresourcespec=nil, taskresourcespec=nil, commonresourcespec=nil, mastercount=nil, corecount=nil, taskcount=nil, commoncount=nil)
103
+ @MasterResourceSpec = masterresourcespec
104
+ @CoreResourceSpec = coreresourcespec
105
+ @TaskResourceSpec = taskresourcespec
106
+ @CommonResourceSpec = commonresourcespec
107
+ @MasterCount = mastercount
108
+ @CoreCount = corecount
109
+ @TaskCount = taskcount
110
+ @CommonCount = commoncount
111
+ end
112
+
113
+ def deserialize(params)
114
+ unless params['MasterResourceSpec'].nil?
115
+ @MasterResourceSpec = NodeResourceSpec.new
116
+ @MasterResourceSpec.deserialize(params['MasterResourceSpec'])
117
+ end
118
+ unless params['CoreResourceSpec'].nil?
119
+ @CoreResourceSpec = NodeResourceSpec.new
120
+ @CoreResourceSpec.deserialize(params['CoreResourceSpec'])
121
+ end
122
+ unless params['TaskResourceSpec'].nil?
123
+ @TaskResourceSpec = NodeResourceSpec.new
124
+ @TaskResourceSpec.deserialize(params['TaskResourceSpec'])
125
+ end
126
+ unless params['CommonResourceSpec'].nil?
127
+ @CommonResourceSpec = NodeResourceSpec.new
128
+ @CommonResourceSpec.deserialize(params['CommonResourceSpec'])
129
+ end
130
+ @MasterCount = params['MasterCount']
131
+ @CoreCount = params['CoreCount']
132
+ @TaskCount = params['TaskCount']
133
+ @CommonCount = params['CommonCount']
134
+ end
135
+ end
136
+
73
137
  # yarn application 统计信息
74
138
  class ApplicationStatics < TencentCloud::Common::AbstractModel
75
139
  # @param Queue: 队列名
@@ -660,6 +724,178 @@ module TencentCloud
660
724
  end
661
725
  end
662
726
 
727
+ # CreateCluster请求参数结构体
728
+ class CreateClusterRequest < TencentCloud::Common::AbstractModel
729
+ # @param ProductVersion: EMR产品版本名称如EMR-V2.3.0 表示2.3.0版本的EMR, 当前支持产品版本名称查询:[产品版本名称](https://cloud.tencent.com/document/product/589/66338)
730
+ # @type ProductVersion: String
731
+ # @param EnableSupportHAFlag: 是否开启节点高可用。取值范围:
732
+ # <li>true:表示开启节点高可用。</li>
733
+ # <li>false:表示不开启节点高可用。</li>
734
+ # @type EnableSupportHAFlag: Boolean
735
+ # @param InstanceName: 实例名称。
736
+ # <li>长度限制为6-36个字符。</li>
737
+ # <li>只允许包含中文、字母、数字、-、_。</li>
738
+ # @type InstanceName: String
739
+ # @param InstanceChargeType: 实例计费模式。取值范围:
740
+ # <li>PREPAID:预付费,即包年包月。</li>
741
+ # <li>POSTPAID_BY_HOUR:按小时后付费。</li>
742
+ # @type InstanceChargeType: String
743
+ # @param LoginSettings: 实例登录设置。通过该参数可以设置所购买节点的登录方式密码或者密钥。
744
+ # <li>设置密钥时,密码仅用于组件原生WebUI快捷入口登录。</li>
745
+ # <li>未设置密钥时,密码用于登录所购节点以及组件原生WebUI快捷入口登录。</li>
746
+ # @type LoginSettings: :class:`Tencentcloud::Emr.v20190103.models.LoginSettings`
747
+ # @param SceneSoftwareConfig: 集群应用场景以及支持部署组件配置
748
+ # @type SceneSoftwareConfig: :class:`Tencentcloud::Emr.v20190103.models.SceneSoftwareConfig`
749
+ # @param InstanceChargePrepaid: 即包年包月相关参数设置。通过该参数可以指定包年包月实例的购买时长、是否设置自动续费等属性。若指定实例的付费模式为预付费则该参数必传。
750
+ # @type InstanceChargePrepaid: :class:`Tencentcloud::Emr.v20190103.models.InstanceChargePrepaid`
751
+ # @param SecurityGroupIds: 实例所属安全组的ID,形如sg-xxxxxxxx。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的SecurityGroupId字段来获取。
752
+ # @type SecurityGroupIds: Array
753
+ # @param ScriptBootstrapActionConfig: [引导操作](https://cloud.tencent.com/document/product/589/35656)脚本设置。
754
+ # @type ScriptBootstrapActionConfig: Array
755
+ # @param ClientToken: 唯一随机标识,时效性为5分钟,需要调用者指定 防止客户端重复创建资源,例如 a9a90aa6-751a-41b6-aad6-fae360632808
756
+ # @type ClientToken: String
757
+ # @param NeedMasterWan: 是否开启集群Master节点公网。取值范围:
758
+ # <li>NEED_MASTER_WAN:表示开启集群Master节点公网。</li>
759
+ # <li>NOT_NEED_MASTER_WAN:表示不开启。</li>默认开启集群Master节点公网。
760
+ # @type NeedMasterWan: String
761
+ # @param EnableRemoteLoginFlag: 是否开启外网远程登录。(在SecurityGroupId不为空时,该参数无效)不填默认为不开启 取值范围:
762
+ # <li>true:表示开启</li>
763
+ # <li>false:表示不开启</li>
764
+ # @type EnableRemoteLoginFlag: Boolean
765
+ # @param EnableKerberosFlag: 是否开启Kerberos认证。默认不开启 取值范围:
766
+ # <li>true:表示开启</li>
767
+ # <li>false:表示不开启</li>
768
+ # @type EnableKerberosFlag: Boolean
769
+ # @param CustomConf: [自定义软件配置](https://cloud.tencent.com/document/product/589/35655?from_cn_redirect=1)
770
+ # @type CustomConf: String
771
+ # @param Tags: 标签描述列表。通过指定该参数可以同时绑定标签到相应的实例。
772
+ # @type Tags: Array
773
+ # @param DisasterRecoverGroupIds: 分散置放群组ID列表,当前只支持指定一个。
774
+ # 该参数可以通过调用 [DescribeDisasterRecoverGroups](https://cloud.tencent.com/document/product/213/17810)的返回值中的DisasterRecoverGroupId字段来获取。
775
+ # @type DisasterRecoverGroupIds: Array
776
+ # @param EnableCbsEncryptFlag: 是否开启集群维度CBS加密。默认不加密 取值范围:
777
+ # <li>true:表示加密</li>
778
+ # <li>false:表示不加密</li>
779
+ # @type EnableCbsEncryptFlag: Boolean
780
+ # @param MetaDBInfo: MetaDB信息,当MetaType选择EMR_NEW_META时,MetaDataJdbcUrl MetaDataUser MetaDataPass UnifyMetaInstanceId不用填
781
+ # 当MetaType选择EMR_EXIT_META时,填写UnifyMetaInstanceId
782
+ # 当MetaType选择USER_CUSTOM_META时,填写MetaDataJdbcUrl MetaDataUser MetaDataPass
783
+ # @type MetaDBInfo: :class:`Tencentcloud::Emr.v20190103.models.CustomMetaDBInfo`
784
+ # @param DependService: 共享组件信息
785
+ # @type DependService: Array
786
+ # @param ZoneResourceConfiguration: 节点资源的规格,有几个可用区,就填几个,按顺序第一个为主可用区,第二个为备可用区,第三个为仲裁可用区。如果没有开启跨AZ,则长度为1即可。
787
+ # @type ZoneResourceConfiguration: Array
788
+
789
+ attr_accessor :ProductVersion, :EnableSupportHAFlag, :InstanceName, :InstanceChargeType, :LoginSettings, :SceneSoftwareConfig, :InstanceChargePrepaid, :SecurityGroupIds, :ScriptBootstrapActionConfig, :ClientToken, :NeedMasterWan, :EnableRemoteLoginFlag, :EnableKerberosFlag, :CustomConf, :Tags, :DisasterRecoverGroupIds, :EnableCbsEncryptFlag, :MetaDBInfo, :DependService, :ZoneResourceConfiguration
790
+
791
+ def initialize(productversion=nil, enablesupporthaflag=nil, instancename=nil, instancechargetype=nil, loginsettings=nil, scenesoftwareconfig=nil, instancechargeprepaid=nil, securitygroupids=nil, scriptbootstrapactionconfig=nil, clienttoken=nil, needmasterwan=nil, enableremoteloginflag=nil, enablekerberosflag=nil, customconf=nil, tags=nil, disasterrecovergroupids=nil, enablecbsencryptflag=nil, metadbinfo=nil, dependservice=nil, zoneresourceconfiguration=nil)
792
+ @ProductVersion = productversion
793
+ @EnableSupportHAFlag = enablesupporthaflag
794
+ @InstanceName = instancename
795
+ @InstanceChargeType = instancechargetype
796
+ @LoginSettings = loginsettings
797
+ @SceneSoftwareConfig = scenesoftwareconfig
798
+ @InstanceChargePrepaid = instancechargeprepaid
799
+ @SecurityGroupIds = securitygroupids
800
+ @ScriptBootstrapActionConfig = scriptbootstrapactionconfig
801
+ @ClientToken = clienttoken
802
+ @NeedMasterWan = needmasterwan
803
+ @EnableRemoteLoginFlag = enableremoteloginflag
804
+ @EnableKerberosFlag = enablekerberosflag
805
+ @CustomConf = customconf
806
+ @Tags = tags
807
+ @DisasterRecoverGroupIds = disasterrecovergroupids
808
+ @EnableCbsEncryptFlag = enablecbsencryptflag
809
+ @MetaDBInfo = metadbinfo
810
+ @DependService = dependservice
811
+ @ZoneResourceConfiguration = zoneresourceconfiguration
812
+ end
813
+
814
+ def deserialize(params)
815
+ @ProductVersion = params['ProductVersion']
816
+ @EnableSupportHAFlag = params['EnableSupportHAFlag']
817
+ @InstanceName = params['InstanceName']
818
+ @InstanceChargeType = params['InstanceChargeType']
819
+ unless params['LoginSettings'].nil?
820
+ @LoginSettings = LoginSettings.new
821
+ @LoginSettings.deserialize(params['LoginSettings'])
822
+ end
823
+ unless params['SceneSoftwareConfig'].nil?
824
+ @SceneSoftwareConfig = SceneSoftwareConfig.new
825
+ @SceneSoftwareConfig.deserialize(params['SceneSoftwareConfig'])
826
+ end
827
+ unless params['InstanceChargePrepaid'].nil?
828
+ @InstanceChargePrepaid = InstanceChargePrepaid.new
829
+ @InstanceChargePrepaid.deserialize(params['InstanceChargePrepaid'])
830
+ end
831
+ @SecurityGroupIds = params['SecurityGroupIds']
832
+ unless params['ScriptBootstrapActionConfig'].nil?
833
+ @ScriptBootstrapActionConfig = []
834
+ params['ScriptBootstrapActionConfig'].each do |i|
835
+ scriptbootstrapactionconfig_tmp = ScriptBootstrapActionConfig.new
836
+ scriptbootstrapactionconfig_tmp.deserialize(i)
837
+ @ScriptBootstrapActionConfig << scriptbootstrapactionconfig_tmp
838
+ end
839
+ end
840
+ @ClientToken = params['ClientToken']
841
+ @NeedMasterWan = params['NeedMasterWan']
842
+ @EnableRemoteLoginFlag = params['EnableRemoteLoginFlag']
843
+ @EnableKerberosFlag = params['EnableKerberosFlag']
844
+ @CustomConf = params['CustomConf']
845
+ unless params['Tags'].nil?
846
+ @Tags = []
847
+ params['Tags'].each do |i|
848
+ tag_tmp = Tag.new
849
+ tag_tmp.deserialize(i)
850
+ @Tags << tag_tmp
851
+ end
852
+ end
853
+ @DisasterRecoverGroupIds = params['DisasterRecoverGroupIds']
854
+ @EnableCbsEncryptFlag = params['EnableCbsEncryptFlag']
855
+ unless params['MetaDBInfo'].nil?
856
+ @MetaDBInfo = CustomMetaDBInfo.new
857
+ @MetaDBInfo.deserialize(params['MetaDBInfo'])
858
+ end
859
+ unless params['DependService'].nil?
860
+ @DependService = []
861
+ params['DependService'].each do |i|
862
+ dependservice_tmp = DependService.new
863
+ dependservice_tmp.deserialize(i)
864
+ @DependService << dependservice_tmp
865
+ end
866
+ end
867
+ unless params['ZoneResourceConfiguration'].nil?
868
+ @ZoneResourceConfiguration = []
869
+ params['ZoneResourceConfiguration'].each do |i|
870
+ zoneresourceconfiguration_tmp = ZoneResourceConfiguration.new
871
+ zoneresourceconfiguration_tmp.deserialize(i)
872
+ @ZoneResourceConfiguration << zoneresourceconfiguration_tmp
873
+ end
874
+ end
875
+ end
876
+ end
877
+
878
+ # CreateCluster返回参数结构体
879
+ class CreateClusterResponse < TencentCloud::Common::AbstractModel
880
+ # @param InstanceId: 实例ID
881
+ # 注意:此字段可能返回 null,表示取不到有效值。
882
+ # @type InstanceId: String
883
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
884
+ # @type RequestId: String
885
+
886
+ attr_accessor :InstanceId, :RequestId
887
+
888
+ def initialize(instanceid=nil, requestid=nil)
889
+ @InstanceId = instanceid
890
+ @RequestId = requestid
891
+ end
892
+
893
+ def deserialize(params)
894
+ @InstanceId = params['InstanceId']
895
+ @RequestId = params['RequestId']
896
+ end
897
+ end
898
+
663
899
  # CreateInstance请求参数结构体
664
900
  class CreateInstanceRequest < TencentCloud::Common::AbstractModel
665
901
  # @param ProductId: 产品ID,不同产品ID表示不同的EMR产品版本。取值范围:
@@ -904,6 +1140,41 @@ module TencentCloud
904
1140
  end
905
1141
  end
906
1142
 
1143
+ # 用户Hive-MetaDB信息
1144
+ class CustomMetaDBInfo < TencentCloud::Common::AbstractModel
1145
+ # @param MetaDataJdbcUrl: 自定义MetaDB的JDBC连接,示例: jdbc:mysql://10.10.10.10:3306/dbname
1146
+ # @type MetaDataJdbcUrl: String
1147
+ # @param MetaDataUser: 自定义MetaDB用户名
1148
+ # @type MetaDataUser: String
1149
+ # @param MetaDataPass: 自定义MetaDB密码
1150
+ # @type MetaDataPass: String
1151
+ # @param MetaType: hive共享元数据库类型。取值范围:
1152
+ # <li>EMR_NEW_META:表示集群默认创建</li>
1153
+ # <li>EMR_EXIT_META:表示集群使用指定EMR-MetaDB。</li>
1154
+ # <li>USER_CUSTOM_META:表示集群使用自定义MetaDB。</li>
1155
+ # @type MetaType: String
1156
+ # @param UnifyMetaInstanceId: EMR-MetaDB实例
1157
+ # @type UnifyMetaInstanceId: String
1158
+
1159
+ attr_accessor :MetaDataJdbcUrl, :MetaDataUser, :MetaDataPass, :MetaType, :UnifyMetaInstanceId
1160
+
1161
+ def initialize(metadatajdbcurl=nil, metadatauser=nil, metadatapass=nil, metatype=nil, unifymetainstanceid=nil)
1162
+ @MetaDataJdbcUrl = metadatajdbcurl
1163
+ @MetaDataUser = metadatauser
1164
+ @MetaDataPass = metadatapass
1165
+ @MetaType = metatype
1166
+ @UnifyMetaInstanceId = unifymetainstanceid
1167
+ end
1168
+
1169
+ def deserialize(params)
1170
+ @MetaDataJdbcUrl = params['MetaDataJdbcUrl']
1171
+ @MetaDataUser = params['MetaDataUser']
1172
+ @MetaDataPass = params['MetaDataPass']
1173
+ @MetaType = params['MetaType']
1174
+ @UnifyMetaInstanceId = params['UnifyMetaInstanceId']
1175
+ end
1176
+ end
1177
+
907
1178
  # 用户自建Hive-MetaDB信息
908
1179
  class CustomMetaInfo < TencentCloud::Common::AbstractModel
909
1180
  # @param MetaDataJdbcUrl: 自定义MetaDB的JDBC连接,请以 jdbc:mysql:// 开头
@@ -984,6 +1255,26 @@ module TencentCloud
984
1255
  end
985
1256
  end
986
1257
 
1258
+ # 共用组件信息
1259
+ class DependService < TencentCloud::Common::AbstractModel
1260
+ # @param ServiceName: 共用组件名
1261
+ # @type ServiceName: String
1262
+ # @param InstanceId: 共用组件集群
1263
+ # @type InstanceId: String
1264
+
1265
+ attr_accessor :ServiceName, :InstanceId
1266
+
1267
+ def initialize(servicename=nil, instanceid=nil)
1268
+ @ServiceName = servicename
1269
+ @InstanceId = instanceid
1270
+ end
1271
+
1272
+ def deserialize(params)
1273
+ @ServiceName = params['ServiceName']
1274
+ @InstanceId = params['InstanceId']
1275
+ end
1276
+ end
1277
+
987
1278
  # DescribeClusterNodes请求参数结构体
988
1279
  class DescribeClusterNodesRequest < TencentCloud::Common::AbstractModel
989
1280
  # @param InstanceId: 集群实例ID,实例ID形如: emr-xxxxxxxx
@@ -1690,6 +1981,48 @@ module TencentCloud
1690
1981
  end
1691
1982
  end
1692
1983
 
1984
+ # 节点磁盘信息
1985
+ class DiskSpecInfo < TencentCloud::Common::AbstractModel
1986
+ # @param Count: 磁盘数量
1987
+ # 注意:此字段可能返回 null,表示取不到有效值。
1988
+ # @type Count: Integer
1989
+ # @param DiskType: 系统盘类型 取值范围:
1990
+ # <li>CLOUD_SSD:表示云SSD。</li>
1991
+ # <li>CLOUD_PREMIUM:表示高效云盘。</li>
1992
+ # <li>CLOUD_BASIC:表示云硬盘。</li>
1993
+ # <li>LOCAL_BASIC:表示本地盘。</li>
1994
+ # <li>LOCAL_SSD:表示本地SSD。</li>
1995
+
1996
+ # 数据盘类型 取值范围:
1997
+ # <li>CLOUD_SSD:表示云SSD。</li>
1998
+ # <li>CLOUD_PREMIUM:表示高效云盘。</li>
1999
+ # <li>CLOUD_BASIC:表示云硬盘。</li>
2000
+ # <li>LOCAL_BASIC:表示本地盘。</li>
2001
+ # <li>LOCAL_SSD:表示本地SSD。</li>
2002
+ # <li>CLOUD_HSSD:表示增强型SSD云硬盘。</li>
2003
+ # <li>CLOUD_THROUGHPUT:表示吞吐型云硬盘。</li>
2004
+ # <li>CLOUD_TSSD:表示极速型SSD云硬盘。</li>
2005
+ # 注意:此字段可能返回 null,表示取不到有效值。
2006
+ # @type DiskType: String
2007
+ # @param DiskSize: 数据容量,单位为GB
2008
+ # 注意:此字段可能返回 null,表示取不到有效值。
2009
+ # @type DiskSize: Integer
2010
+
2011
+ attr_accessor :Count, :DiskType, :DiskSize
2012
+
2013
+ def initialize(count=nil, disktype=nil, disksize=nil)
2014
+ @Count = count
2015
+ @DiskType = disktype
2016
+ @DiskSize = disksize
2017
+ end
2018
+
2019
+ def deserialize(params)
2020
+ @Count = params['Count']
2021
+ @DiskType = params['DiskType']
2022
+ @DiskSize = params['DiskSize']
2023
+ end
2024
+ end
2025
+
1693
2026
  # POD浮动规格
1694
2027
  class DynamicPodSpec < TencentCloud::Common::AbstractModel
1695
2028
  # @param RequestCpu: 需求最小cpu核数
@@ -3391,6 +3724,71 @@ module TencentCloud
3391
3724
  end
3392
3725
  end
3393
3726
 
3727
+ # 资源详情
3728
+ class NodeResourceSpec < TencentCloud::Common::AbstractModel
3729
+ # @param InstanceType: 规格类型,如S2.MEDIUM8
3730
+ # 注意:此字段可能返回 null,表示取不到有效值。
3731
+ # @type InstanceType: String
3732
+ # @param SystemDisk: 系统盘,系统盘个数不超过1块
3733
+ # 注意:此字段可能返回 null,表示取不到有效值。
3734
+ # @type SystemDisk: Array
3735
+ # @param Tags: 需要绑定的标签列表
3736
+ # 注意:此字段可能返回 null,表示取不到有效值。
3737
+ # @type Tags: Array
3738
+ # @param DataDisk: 云数据盘,云数据盘总个数不超过15块
3739
+ # 注意:此字段可能返回 null,表示取不到有效值。
3740
+ # @type DataDisk: Array
3741
+ # @param LocalDataDisk: 本地数据盘
3742
+ # 注意:此字段可能返回 null,表示取不到有效值。
3743
+ # @type LocalDataDisk: Array
3744
+
3745
+ attr_accessor :InstanceType, :SystemDisk, :Tags, :DataDisk, :LocalDataDisk
3746
+
3747
+ def initialize(instancetype=nil, systemdisk=nil, tags=nil, datadisk=nil, localdatadisk=nil)
3748
+ @InstanceType = instancetype
3749
+ @SystemDisk = systemdisk
3750
+ @Tags = tags
3751
+ @DataDisk = datadisk
3752
+ @LocalDataDisk = localdatadisk
3753
+ end
3754
+
3755
+ def deserialize(params)
3756
+ @InstanceType = params['InstanceType']
3757
+ unless params['SystemDisk'].nil?
3758
+ @SystemDisk = []
3759
+ params['SystemDisk'].each do |i|
3760
+ diskspecinfo_tmp = DiskSpecInfo.new
3761
+ diskspecinfo_tmp.deserialize(i)
3762
+ @SystemDisk << diskspecinfo_tmp
3763
+ end
3764
+ end
3765
+ unless params['Tags'].nil?
3766
+ @Tags = []
3767
+ params['Tags'].each do |i|
3768
+ tag_tmp = Tag.new
3769
+ tag_tmp.deserialize(i)
3770
+ @Tags << tag_tmp
3771
+ end
3772
+ end
3773
+ unless params['DataDisk'].nil?
3774
+ @DataDisk = []
3775
+ params['DataDisk'].each do |i|
3776
+ diskspecinfo_tmp = DiskSpecInfo.new
3777
+ diskspecinfo_tmp.deserialize(i)
3778
+ @DataDisk << diskspecinfo_tmp
3779
+ end
3780
+ end
3781
+ unless params['LocalDataDisk'].nil?
3782
+ @LocalDataDisk = []
3783
+ params['LocalDataDisk'].each do |i|
3784
+ diskspecinfo_tmp = DiskSpecInfo.new
3785
+ diskspecinfo_tmp.deserialize(i)
3786
+ @LocalDataDisk << diskspecinfo_tmp
3787
+ end
3788
+ end
3789
+ end
3790
+ end
3791
+
3394
3792
  # 资源详情
3395
3793
  class OutterResource < TencentCloud::Common::AbstractModel
3396
3794
  # @param Spec: 规格
@@ -3496,9 +3894,9 @@ module TencentCloud
3496
3894
  end
3497
3895
 
3498
3896
  # POD自定义权限和自定义参数
3499
- class PodParameter < TencentCloud::Common::AbstractModel
3500
- # @param ClusterId: TKE或EKS集群ID
3501
- # @type ClusterId: String
3897
+ class PodNewParameter < TencentCloud::Common::AbstractModel
3898
+ # @param InstanceId: TKE或EKS集群ID
3899
+ # @type InstanceId: String
3502
3900
  # @param Config: 自定义权限
3503
3901
  # 如:
3504
3902
  # {
@@ -3612,10 +4010,218 @@ module TencentCloud
3612
4010
  # }
3613
4011
  # @type Parameter: String
3614
4012
 
3615
- attr_accessor :ClusterId, :Config, :Parameter
4013
+ attr_accessor :InstanceId, :Config, :Parameter
3616
4014
 
3617
- def initialize(clusterid=nil, config=nil, parameter=nil)
3618
- @ClusterId = clusterid
4015
+ def initialize(instanceid=nil, config=nil, parameter=nil)
4016
+ @InstanceId = instanceid
4017
+ @Config = config
4018
+ @Parameter = parameter
4019
+ end
4020
+
4021
+ def deserialize(params)
4022
+ @InstanceId = params['InstanceId']
4023
+ @Config = params['Config']
4024
+ @Parameter = params['Parameter']
4025
+ end
4026
+ end
4027
+
4028
+ # 扩容容器资源时的资源描述
4029
+ class PodNewSpec < TencentCloud::Common::AbstractModel
4030
+ # @param ResourceProviderIdentifier: 外部资源提供者的标识符,例如"cls-a1cd23fa"。
4031
+ # @type ResourceProviderIdentifier: String
4032
+ # @param ResourceProviderType: 外部资源提供者类型,例如"tke",当前仅支持"tke"。
4033
+ # @type ResourceProviderType: String
4034
+ # @param NodeFlag: 资源的用途,即节点类型,当前仅支持"TASK"。
4035
+ # @type NodeFlag: String
4036
+ # @param Cpu: CPU核数。
4037
+ # @type Cpu: Integer
4038
+ # @param Memory: 内存大小,单位为GB。
4039
+ # @type Memory: Integer
4040
+ # @param CpuType: Eks集群-CPU类型,当前支持"intel"和"amd"
4041
+ # @type CpuType: String
4042
+ # @param PodVolumes: Pod节点数据目录挂载信息。
4043
+ # @type PodVolumes: Array
4044
+ # @param EnableDynamicSpecFlag: 是否浮动规格,默认否
4045
+ # <li>true:代表是</li>
4046
+ # <li>false:代表否</li>
4047
+ # @type EnableDynamicSpecFlag: Boolean
4048
+ # @param DynamicPodSpec: 浮动规格
4049
+ # 注意:此字段可能返回 null,表示取不到有效值。
4050
+ # @type DynamicPodSpec: :class:`Tencentcloud::Emr.v20190103.models.DynamicPodSpec`
4051
+ # @param VpcId: 代表vpc网络唯一id
4052
+ # 注意:此字段可能返回 null,表示取不到有效值。
4053
+ # @type VpcId: String
4054
+ # @param SubnetId: 代表vpc子网唯一id
4055
+ # 注意:此字段可能返回 null,表示取不到有效值。
4056
+ # @type SubnetId: String
4057
+ # @param PodName: pod name
4058
+ # 注意:此字段可能返回 null,表示取不到有效值。
4059
+ # @type PodName: String
4060
+
4061
+ attr_accessor :ResourceProviderIdentifier, :ResourceProviderType, :NodeFlag, :Cpu, :Memory, :CpuType, :PodVolumes, :EnableDynamicSpecFlag, :DynamicPodSpec, :VpcId, :SubnetId, :PodName
4062
+
4063
+ def initialize(resourceprovideridentifier=nil, resourceprovidertype=nil, nodeflag=nil, cpu=nil, memory=nil, cputype=nil, podvolumes=nil, enabledynamicspecflag=nil, dynamicpodspec=nil, vpcid=nil, subnetid=nil, podname=nil)
4064
+ @ResourceProviderIdentifier = resourceprovideridentifier
4065
+ @ResourceProviderType = resourceprovidertype
4066
+ @NodeFlag = nodeflag
4067
+ @Cpu = cpu
4068
+ @Memory = memory
4069
+ @CpuType = cputype
4070
+ @PodVolumes = podvolumes
4071
+ @EnableDynamicSpecFlag = enabledynamicspecflag
4072
+ @DynamicPodSpec = dynamicpodspec
4073
+ @VpcId = vpcid
4074
+ @SubnetId = subnetid
4075
+ @PodName = podname
4076
+ end
4077
+
4078
+ def deserialize(params)
4079
+ @ResourceProviderIdentifier = params['ResourceProviderIdentifier']
4080
+ @ResourceProviderType = params['ResourceProviderType']
4081
+ @NodeFlag = params['NodeFlag']
4082
+ @Cpu = params['Cpu']
4083
+ @Memory = params['Memory']
4084
+ @CpuType = params['CpuType']
4085
+ unless params['PodVolumes'].nil?
4086
+ @PodVolumes = []
4087
+ params['PodVolumes'].each do |i|
4088
+ podvolume_tmp = PodVolume.new
4089
+ podvolume_tmp.deserialize(i)
4090
+ @PodVolumes << podvolume_tmp
4091
+ end
4092
+ end
4093
+ @EnableDynamicSpecFlag = params['EnableDynamicSpecFlag']
4094
+ unless params['DynamicPodSpec'].nil?
4095
+ @DynamicPodSpec = DynamicPodSpec.new
4096
+ @DynamicPodSpec.deserialize(params['DynamicPodSpec'])
4097
+ end
4098
+ @VpcId = params['VpcId']
4099
+ @SubnetId = params['SubnetId']
4100
+ @PodName = params['PodName']
4101
+ end
4102
+ end
4103
+
4104
+ # POD自定义权限和自定义参数
4105
+ class PodParameter < TencentCloud::Common::AbstractModel
4106
+ # @param ClusterId: TKE或EKS集群ID
4107
+ # @type ClusterId: String
4108
+ # @param Config: 自定义权限
4109
+ # 如:
4110
+ # {
4111
+ # "apiVersion": "v1",
4112
+ # "clusters": [
4113
+ # {
4114
+ # "cluster": {
4115
+ # "certificate-authority-data": "xxxxxx==",
4116
+ # "server": "https://xxxxx.com"
4117
+ # },
4118
+ # "name": "cls-xxxxx"
4119
+ # }
4120
+ # ],
4121
+ # "contexts": [
4122
+ # {
4123
+ # "context": {
4124
+ # "cluster": "cls-xxxxx",
4125
+ # "user": "100014xxxxx"
4126
+ # },
4127
+ # "name": "cls-a44yhcxxxxxxxxxx"
4128
+ # }
4129
+ # ],
4130
+ # "current-context": "cls-a4xxxx-context-default",
4131
+ # "kind": "Config",
4132
+ # "preferences": {},
4133
+ # "users": [
4134
+ # {
4135
+ # "name": "100014xxxxx",
4136
+ # "user": {
4137
+ # "client-certificate-data": "xxxxxx",
4138
+ # "client-key-data": "xxxxxx"
4139
+ # }
4140
+ # }
4141
+ # ]
4142
+ # }
4143
+ # @type Config: String
4144
+ # @param Parameter: 自定义参数
4145
+ # 如:
4146
+ # {
4147
+ # "apiVersion": "apps/v1",
4148
+ # "kind": "Deployment",
4149
+ # "metadata": {
4150
+ # "name": "test-deployment",
4151
+ # "labels": {
4152
+ # "app": "test"
4153
+ # }
4154
+ # },
4155
+ # "spec": {
4156
+ # "replicas": 3,
4157
+ # "selector": {
4158
+ # "matchLabels": {
4159
+ # "app": "test-app"
4160
+ # }
4161
+ # },
4162
+ # "template": {
4163
+ # "metadata": {
4164
+ # "annotations": {
4165
+ # "your-organization.com/department-v1": "test-example-v1",
4166
+ # "your-organization.com/department-v2": "test-example-v2"
4167
+ # },
4168
+ # "labels": {
4169
+ # "app": "test-app",
4170
+ # "environment": "production"
4171
+ # }
4172
+ # },
4173
+ # "spec": {
4174
+ # "nodeSelector": {
4175
+ # "your-organization/node-test": "test-node"
4176
+ # },
4177
+ # "containers": [
4178
+ # {
4179
+ # "name": "nginx",
4180
+ # "image": "nginx:1.14.2",
4181
+ # "ports": [
4182
+ # {
4183
+ # "containerPort": 80
4184
+ # }
4185
+ # ]
4186
+ # }
4187
+ # ],
4188
+ # "affinity": {
4189
+ # "nodeAffinity": {
4190
+ # "requiredDuringSchedulingIgnoredDuringExecution": {
4191
+ # "nodeSelectorTerms": [
4192
+ # {
4193
+ # "matchExpressions": [
4194
+ # {
4195
+ # "key": "disk-type",
4196
+ # "operator": "In",
4197
+ # "values": [
4198
+ # "ssd",
4199
+ # "sas"
4200
+ # ]
4201
+ # },
4202
+ # {
4203
+ # "key": "cpu-num",
4204
+ # "operator": "Gt",
4205
+ # "values": [
4206
+ # "6"
4207
+ # ]
4208
+ # }
4209
+ # ]
4210
+ # }
4211
+ # ]
4212
+ # }
4213
+ # }
4214
+ # }
4215
+ # }
4216
+ # }
4217
+ # }
4218
+ # }
4219
+ # @type Parameter: String
4220
+
4221
+ attr_accessor :ClusterId, :Config, :Parameter
4222
+
4223
+ def initialize(clusterid=nil, config=nil, parameter=nil)
4224
+ @ClusterId = clusterid
3619
4225
  @Config = config
3620
4226
  @Parameter = parameter
3621
4227
  end
@@ -3733,6 +4339,32 @@ module TencentCloud
3733
4339
  end
3734
4340
  end
3735
4341
 
4342
+ # Pod相关信息
4343
+ class PodSpecInfo < TencentCloud::Common::AbstractModel
4344
+ # @param PodSpec: 使用Pod资源扩容时,指定的Pod规格以及来源等信息
4345
+ # @type PodSpec: :class:`Tencentcloud::Emr.v20190103.models.PodNewSpec`
4346
+ # @param PodParameter: POD自定义权限和自定义参数
4347
+ # @type PodParameter: :class:`Tencentcloud::Emr.v20190103.models.PodNewParameter`
4348
+
4349
+ attr_accessor :PodSpec, :PodParameter
4350
+
4351
+ def initialize(podspec=nil, podparameter=nil)
4352
+ @PodSpec = podspec
4353
+ @PodParameter = podparameter
4354
+ end
4355
+
4356
+ def deserialize(params)
4357
+ unless params['PodSpec'].nil?
4358
+ @PodSpec = PodNewSpec.new
4359
+ @PodSpec.deserialize(params['PodSpec'])
4360
+ end
4361
+ unless params['PodParameter'].nil?
4362
+ @PodParameter = PodNewParameter.new
4363
+ @PodParameter.deserialize(params['PodParameter'])
4364
+ end
4365
+ end
4366
+ end
4367
+
3736
4368
  # 单个pod状态
3737
4369
  class PodState < TencentCloud::Common::AbstractModel
3738
4370
  # @param Name: pod的名称
@@ -4276,6 +4908,156 @@ module TencentCloud
4276
4908
  end
4277
4909
  end
4278
4910
 
4911
+ # ScaleOutCluster请求参数结构体
4912
+ class ScaleOutClusterRequest < TencentCloud::Common::AbstractModel
4913
+ # @param InstanceChargeType: 节点计费模式。取值范围:
4914
+ # <li>PREPAID:预付费,即包年包月。</li>
4915
+ # <li>POSTPAID_BY_HOUR:按小时后付费。</li>
4916
+ # <li>SPOTPAID:竞价付费(仅支持TASK节点)。</li>
4917
+ # @type InstanceChargeType: String
4918
+ # @param InstanceId: 集群实例ID。
4919
+ # @type InstanceId: String
4920
+ # @param ScaleOutNodeConfig: 扩容节点类型以及数量
4921
+ # @type ScaleOutNodeConfig: :class:`Tencentcloud::Emr.v20190103.models.ScaleOutNodeConfig`
4922
+ # @param ClientToken: 唯一随机标识,时效5分钟,需要调用者指定 防止客户端重新创建资源,例如 a9a90aa6-751a-41b6-aad6-fae36063280
4923
+ # @type ClientToken: String
4924
+ # @param InstanceChargePrepaid: 即包年包月相关参数设置。通过该参数可以指定包年包月实例的购买时长、是否设置自动续费等属性。若指定实例的付费模式为预付费则该参数必传。
4925
+ # @type InstanceChargePrepaid: :class:`Tencentcloud::Emr.v20190103.models.InstanceChargePrepaid`
4926
+ # @param ScriptBootstrapActionConfig: [引导操作](https://cloud.tencent.com/document/product/589/35656)脚本设置。
4927
+ # @type ScriptBootstrapActionConfig: Array
4928
+ # @param SoftDeployInfo: 扩容部署服务,新增节点将默认继承当前节点类型中所部署服务,部署服务含默认可选服务,该参数仅支持可选服务填写,如:存量task节点已部署HDFS、YARN、impala;使用api扩容task节不部署impala时,此参数仅填写HDFS、YARN
4929
+ # @type SoftDeployInfo: Array
4930
+ # @param ServiceNodeInfo: 部署进程,默认部署扩容服务的全部进程,支持修改部署进程,如:当前task节点部署服务为:HDFS、YARN、impala,默认部署服务为:DataNode,NodeManager,ImpalaServer,若用户需修改部署进程信息,此参数信息可填写: DataNode,NodeManager,ImpalaServerCoordinator或DataNode,NodeManager,ImpalaServerExecutor
4931
+ # @type ServiceNodeInfo: Array
4932
+ # @param DisasterRecoverGroupIds: 分散置放群组ID列表,当前只支持指定一个。
4933
+ # 该参数可以通过调用 [DescribeDisasterRecoverGroups](https://cloud.tencent.com/document/product/213/17810)的返回值中的DisasterRecoverGroupId字段来获取。
4934
+ # @type DisasterRecoverGroupIds: Array
4935
+ # @param Tags: 扩容节点绑定标签列表。
4936
+ # @type Tags: Array
4937
+ # @param HardwareSourceType: 扩容所选资源类型,可选范围为"host","pod",host为普通的CVM资源,Pod为TKE集群或EKS集群提供的资源
4938
+ # @type HardwareSourceType: String
4939
+ # @param PodSpecInfo: Pod相关资源信息
4940
+ # @type PodSpecInfo: :class:`Tencentcloud::Emr.v20190103.models.PodSpecInfo`
4941
+ # @param ClickHouseClusterName: 使用clickhouse集群扩容时,选择的机器分组名称
4942
+ # @type ClickHouseClusterName: String
4943
+ # @param ClickHouseClusterType: 使用clickhouse集群扩容时,选择的机器分组类型。new为新增,old为选择旧分组
4944
+ # @type ClickHouseClusterType: String
4945
+ # @param YarnNodeLabel: 扩容指定 Yarn Node Label
4946
+ # @type YarnNodeLabel: String
4947
+ # @param EnableStartServiceFlag: 扩容后是否启动服务,默认取值否
4948
+ # <li>true:是</li>
4949
+ # <li>false:否</li>
4950
+ # @type EnableStartServiceFlag: Boolean
4951
+ # @param ResourceSpec: 规格设置
4952
+ # @type ResourceSpec: :class:`Tencentcloud::Emr.v20190103.models.NodeResourceSpec`
4953
+ # @param Zone: 实例所属的可用区,例如ap-guangzhou-1。该参数也可以通过调用[DescribeZones](https://cloud.tencent.com/document/product/213/15707) 的返回值中的Zone字段来获取。
4954
+ # @type Zone: String
4955
+ # @param SubnetId: 子网,默认是集群创建时的子网
4956
+ # @type SubnetId: String
4957
+
4958
+ attr_accessor :InstanceChargeType, :InstanceId, :ScaleOutNodeConfig, :ClientToken, :InstanceChargePrepaid, :ScriptBootstrapActionConfig, :SoftDeployInfo, :ServiceNodeInfo, :DisasterRecoverGroupIds, :Tags, :HardwareSourceType, :PodSpecInfo, :ClickHouseClusterName, :ClickHouseClusterType, :YarnNodeLabel, :EnableStartServiceFlag, :ResourceSpec, :Zone, :SubnetId
4959
+
4960
+ def initialize(instancechargetype=nil, instanceid=nil, scaleoutnodeconfig=nil, clienttoken=nil, instancechargeprepaid=nil, scriptbootstrapactionconfig=nil, softdeployinfo=nil, servicenodeinfo=nil, disasterrecovergroupids=nil, tags=nil, hardwaresourcetype=nil, podspecinfo=nil, clickhouseclustername=nil, clickhouseclustertype=nil, yarnnodelabel=nil, enablestartserviceflag=nil, resourcespec=nil, zone=nil, subnetid=nil)
4961
+ @InstanceChargeType = instancechargetype
4962
+ @InstanceId = instanceid
4963
+ @ScaleOutNodeConfig = scaleoutnodeconfig
4964
+ @ClientToken = clienttoken
4965
+ @InstanceChargePrepaid = instancechargeprepaid
4966
+ @ScriptBootstrapActionConfig = scriptbootstrapactionconfig
4967
+ @SoftDeployInfo = softdeployinfo
4968
+ @ServiceNodeInfo = servicenodeinfo
4969
+ @DisasterRecoverGroupIds = disasterrecovergroupids
4970
+ @Tags = tags
4971
+ @HardwareSourceType = hardwaresourcetype
4972
+ @PodSpecInfo = podspecinfo
4973
+ @ClickHouseClusterName = clickhouseclustername
4974
+ @ClickHouseClusterType = clickhouseclustertype
4975
+ @YarnNodeLabel = yarnnodelabel
4976
+ @EnableStartServiceFlag = enablestartserviceflag
4977
+ @ResourceSpec = resourcespec
4978
+ @Zone = zone
4979
+ @SubnetId = subnetid
4980
+ end
4981
+
4982
+ def deserialize(params)
4983
+ @InstanceChargeType = params['InstanceChargeType']
4984
+ @InstanceId = params['InstanceId']
4985
+ unless params['ScaleOutNodeConfig'].nil?
4986
+ @ScaleOutNodeConfig = ScaleOutNodeConfig.new
4987
+ @ScaleOutNodeConfig.deserialize(params['ScaleOutNodeConfig'])
4988
+ end
4989
+ @ClientToken = params['ClientToken']
4990
+ unless params['InstanceChargePrepaid'].nil?
4991
+ @InstanceChargePrepaid = InstanceChargePrepaid.new
4992
+ @InstanceChargePrepaid.deserialize(params['InstanceChargePrepaid'])
4993
+ end
4994
+ unless params['ScriptBootstrapActionConfig'].nil?
4995
+ @ScriptBootstrapActionConfig = []
4996
+ params['ScriptBootstrapActionConfig'].each do |i|
4997
+ scriptbootstrapactionconfig_tmp = ScriptBootstrapActionConfig.new
4998
+ scriptbootstrapactionconfig_tmp.deserialize(i)
4999
+ @ScriptBootstrapActionConfig << scriptbootstrapactionconfig_tmp
5000
+ end
5001
+ end
5002
+ @SoftDeployInfo = params['SoftDeployInfo']
5003
+ @ServiceNodeInfo = params['ServiceNodeInfo']
5004
+ @DisasterRecoverGroupIds = params['DisasterRecoverGroupIds']
5005
+ unless params['Tags'].nil?
5006
+ @Tags = []
5007
+ params['Tags'].each do |i|
5008
+ tag_tmp = Tag.new
5009
+ tag_tmp.deserialize(i)
5010
+ @Tags << tag_tmp
5011
+ end
5012
+ end
5013
+ @HardwareSourceType = params['HardwareSourceType']
5014
+ unless params['PodSpecInfo'].nil?
5015
+ @PodSpecInfo = PodSpecInfo.new
5016
+ @PodSpecInfo.deserialize(params['PodSpecInfo'])
5017
+ end
5018
+ @ClickHouseClusterName = params['ClickHouseClusterName']
5019
+ @ClickHouseClusterType = params['ClickHouseClusterType']
5020
+ @YarnNodeLabel = params['YarnNodeLabel']
5021
+ @EnableStartServiceFlag = params['EnableStartServiceFlag']
5022
+ unless params['ResourceSpec'].nil?
5023
+ @ResourceSpec = NodeResourceSpec.new
5024
+ @ResourceSpec.deserialize(params['ResourceSpec'])
5025
+ end
5026
+ @Zone = params['Zone']
5027
+ @SubnetId = params['SubnetId']
5028
+ end
5029
+ end
5030
+
5031
+ # ScaleOutCluster返回参数结构体
5032
+ class ScaleOutClusterResponse < TencentCloud::Common::AbstractModel
5033
+ # @param InstanceId: 实例ID。
5034
+ # @type InstanceId: String
5035
+ # @param ClientToken: 客户端Token。
5036
+ # 注意:此字段可能返回 null,表示取不到有效值。
5037
+ # @type ClientToken: String
5038
+ # @param FlowId: 扩容流程ID。
5039
+ # 注意:此字段可能返回 null,表示取不到有效值。
5040
+ # @type FlowId: Integer
5041
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5042
+ # @type RequestId: String
5043
+
5044
+ attr_accessor :InstanceId, :ClientToken, :FlowId, :RequestId
5045
+
5046
+ def initialize(instanceid=nil, clienttoken=nil, flowid=nil, requestid=nil)
5047
+ @InstanceId = instanceid
5048
+ @ClientToken = clienttoken
5049
+ @FlowId = flowid
5050
+ @RequestId = requestid
5051
+ end
5052
+
5053
+ def deserialize(params)
5054
+ @InstanceId = params['InstanceId']
5055
+ @ClientToken = params['ClientToken']
5056
+ @FlowId = params['FlowId']
5057
+ @RequestId = params['RequestId']
5058
+ end
5059
+ end
5060
+
4279
5061
  # ScaleOutInstance请求参数结构体
4280
5062
  class ScaleOutInstanceRequest < TencentCloud::Common::AbstractModel
4281
5063
  # @param TimeUnit: 扩容的时间单位。取值范围:
@@ -4463,6 +5245,87 @@ module TencentCloud
4463
5245
  end
4464
5246
  end
4465
5247
 
5248
+ # 扩容节点类型以及数量
5249
+ class ScaleOutNodeConfig < TencentCloud::Common::AbstractModel
5250
+ # @param NodeFlag: 扩容节点类型取值范围:
5251
+ # <li>MASTER</li>
5252
+ # <li>TASK</li>
5253
+ # <li>CORE</li>
5254
+ # <li>ROUTER</li>
5255
+ # @type NodeFlag: String
5256
+ # @param NodeCount: 扩容节点数量
5257
+ # @type NodeCount: Integer
5258
+
5259
+ attr_accessor :NodeFlag, :NodeCount
5260
+
5261
+ def initialize(nodeflag=nil, nodecount=nil)
5262
+ @NodeFlag = nodeflag
5263
+ @NodeCount = nodecount
5264
+ end
5265
+
5266
+ def deserialize(params)
5267
+ @NodeFlag = params['NodeFlag']
5268
+ @NodeCount = params['NodeCount']
5269
+ end
5270
+ end
5271
+
5272
+ # 集群应用场景以及支持部署组件信息
5273
+ class SceneSoftwareConfig < TencentCloud::Common::AbstractModel
5274
+ # @param Software: 部署的组件列表。不同的EMR产品版本ProductVersion 对应不同可选组件列表,不同产品版本可选组件列表查询:[组件版本](https://cloud.tencent.com/document/product/589/20279) ;
5275
+ # 填写实例值:hive、flink。
5276
+ # @type Software: Array
5277
+ # @param SceneName: 默认Hadoop-Default,[场景查询](https://cloud.tencent.com/document/product/589/14624)场景化取值范围:
5278
+ # Hadoop-Kudu
5279
+ # Hadoop-Zookeeper
5280
+ # Hadoop-Presto
5281
+ # Hadoop-Hbase
5282
+ # Hadoop-Default
5283
+ # @type SceneName: String
5284
+
5285
+ attr_accessor :Software, :SceneName
5286
+
5287
+ def initialize(software=nil, scenename=nil)
5288
+ @Software = software
5289
+ @SceneName = scenename
5290
+ end
5291
+
5292
+ def deserialize(params)
5293
+ @Software = params['Software']
5294
+ @SceneName = params['SceneName']
5295
+ end
5296
+ end
5297
+
5298
+ # 添加引导操作
5299
+ class ScriptBootstrapActionConfig < TencentCloud::Common::AbstractModel
5300
+ # @param CosFileURI: 脚本的cos地址,参照格式:https://beijing-111111.cos.ap-beijing.myqcloud.com/data/test.sh查询cos存储桶列表:[存储桶列表](https://console.cloud.tencent.com/cos/bucket)
5301
+ # @type CosFileURI: String
5302
+ # @param ExecutionMoment: 引导脚步执行时机范围
5303
+ # <li>resourceAfter:节点初始化后</li>
5304
+ # <li>clusterAfter:集群启动后</li>
5305
+ # <li>clusterBefore:集群启动前</li>
5306
+ # @type ExecutionMoment: String
5307
+ # @param Args: 执行脚本参数,参数格式请遵循标准Shell规范
5308
+ # @type Args: Array
5309
+ # @param CosFileName: 脚本文件名
5310
+ # @type CosFileName: String
5311
+
5312
+ attr_accessor :CosFileURI, :ExecutionMoment, :Args, :CosFileName
5313
+
5314
+ def initialize(cosfileuri=nil, executionmoment=nil, args=nil, cosfilename=nil)
5315
+ @CosFileURI = cosfileuri
5316
+ @ExecutionMoment = executionmoment
5317
+ @Args = args
5318
+ @CosFileName = cosfilename
5319
+ end
5320
+
5321
+ def deserialize(params)
5322
+ @CosFileURI = params['CosFileURI']
5323
+ @ExecutionMoment = params['ExecutionMoment']
5324
+ @Args = params['Args']
5325
+ @CosFileName = params['CosFileName']
5326
+ end
5327
+ end
5328
+
4466
5329
  # 搜索字段
4467
5330
  class SearchItem < TencentCloud::Common::AbstractModel
4468
5331
  # @param SearchType: 支持搜索的类型
@@ -4864,6 +5727,70 @@ module TencentCloud
4864
5727
  end
4865
5728
  end
4866
5729
 
5730
+ # VPC 参数
5731
+ class VirtualPrivateCloud < TencentCloud::Common::AbstractModel
5732
+ # @param VpcId: VPC ID
5733
+ # @type VpcId: String
5734
+ # @param SubnetId: Subnet ID
5735
+ # @type SubnetId: String
5736
+
5737
+ attr_accessor :VpcId, :SubnetId
5738
+
5739
+ def initialize(vpcid=nil, subnetid=nil)
5740
+ @VpcId = vpcid
5741
+ @SubnetId = subnetid
5742
+ end
5743
+
5744
+ def deserialize(params)
5745
+ @VpcId = params['VpcId']
5746
+ @SubnetId = params['SubnetId']
5747
+ end
5748
+ end
5749
+
5750
+ # 可用区配置信息
5751
+ class ZoneResourceConfiguration < TencentCloud::Common::AbstractModel
5752
+ # @param VirtualPrivateCloud: 私有网络相关信息配置。通过该参数可以指定私有网络的ID,子网ID等信息。
5753
+ # 注意:此字段可能返回 null,表示取不到有效值。
5754
+ # @type VirtualPrivateCloud: :class:`Tencentcloud::Emr.v20190103.models.VirtualPrivateCloud`
5755
+ # @param Placement: 实例所在的位置。通过该参数可以指定实例所属可用区,所属项目等属性。
5756
+ # 注意:此字段可能返回 null,表示取不到有效值。
5757
+ # @type Placement: :class:`Tencentcloud::Emr.v20190103.models.Placement`
5758
+ # @param AllNodeResourceSpec: 所有节点资源的规格
5759
+ # 注意:此字段可能返回 null,表示取不到有效值。
5760
+ # @type AllNodeResourceSpec: :class:`Tencentcloud::Emr.v20190103.models.AllNodeResourceSpec`
5761
+ # @param ZoneTag: 如果是单可用区,ZoneTag可以不用填, 如果是双AZ部署,第一个可用区ZoneTag选择master,第二个可用区ZoneTag选择standby,如果是三AZ部署,第一个可用区ZoneTag选择master,第二个可用区ZoneTag选择standby,第三个可用区ZoneTag选择third-party,取值范围:
5762
+ # <li>master</li>
5763
+ # <li>standby</li>
5764
+ # <li>third-party</li>
5765
+ # 注意:此字段可能返回 null,表示取不到有效值。
5766
+ # @type ZoneTag: String
5767
+
5768
+ attr_accessor :VirtualPrivateCloud, :Placement, :AllNodeResourceSpec, :ZoneTag
5769
+
5770
+ def initialize(virtualprivatecloud=nil, placement=nil, allnoderesourcespec=nil, zonetag=nil)
5771
+ @VirtualPrivateCloud = virtualprivatecloud
5772
+ @Placement = placement
5773
+ @AllNodeResourceSpec = allnoderesourcespec
5774
+ @ZoneTag = zonetag
5775
+ end
5776
+
5777
+ def deserialize(params)
5778
+ unless params['VirtualPrivateCloud'].nil?
5779
+ @VirtualPrivateCloud = VirtualPrivateCloud.new
5780
+ @VirtualPrivateCloud.deserialize(params['VirtualPrivateCloud'])
5781
+ end
5782
+ unless params['Placement'].nil?
5783
+ @Placement = Placement.new
5784
+ @Placement.deserialize(params['Placement'])
5785
+ end
5786
+ unless params['AllNodeResourceSpec'].nil?
5787
+ @AllNodeResourceSpec = AllNodeResourceSpec.new
5788
+ @AllNodeResourceSpec.deserialize(params['AllNodeResourceSpec'])
5789
+ end
5790
+ @ZoneTag = params['ZoneTag']
5791
+ end
5792
+ end
5793
+
4867
5794
  end
4868
5795
  end
4869
5796
  end
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.471
4
+ version: 3.0.473
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-12 00:00:00.000000000 Z
11
+ date: 2022-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common