tencentcloud-sdk-thpc 3.0.432 → 3.0.433
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20220401/client.rb +24 -0
- data/lib/v20220401/models.rb +173 -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: 3b4e6248dad4ee984d5438a01c96069ad2736912
|
4
|
+
data.tar.gz: a36d7d5bf914a42bd17132c5f5924efd451096ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79b9e5002f9c90f8cc4584fc30a7ffc251dd11406c14cbe97b03eae4144d7b5a57ede40b50dac408b7722625eadb5dbfc2ae1edf4ccfb67c266e66a3be7e07f9
|
7
|
+
data.tar.gz: 3fc42805abb9bb2ea209fa858725693abfdcadbb95a0362ccf3c1f950804aaaf57c35d86a16db47c4da4edaf189c403faa3af422ce4ed4ea782848c8a3728429
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.433
|
data/lib/v20220401/client.rb
CHANGED
@@ -173,6 +173,30 @@ module TencentCloud
|
|
173
173
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
174
|
end
|
175
175
|
|
176
|
+
# 本接口(SetAutoScalingConfiguration)用于为集群设置集群弹性伸缩配置信息。
|
177
|
+
|
178
|
+
# @param request: Request instance for SetAutoScalingConfiguration.
|
179
|
+
# @type request: :class:`Tencentcloud::thpc::V20220401::SetAutoScalingConfigurationRequest`
|
180
|
+
# @rtype: :class:`Tencentcloud::thpc::V20220401::SetAutoScalingConfigurationResponse`
|
181
|
+
def SetAutoScalingConfiguration(request)
|
182
|
+
body = send_request('SetAutoScalingConfiguration', request.serialize)
|
183
|
+
response = JSON.parse(body)
|
184
|
+
if response['Response'].key?('Error') == false
|
185
|
+
model = SetAutoScalingConfigurationResponse.new
|
186
|
+
model.deserialize(response['Response'])
|
187
|
+
model
|
188
|
+
else
|
189
|
+
code = response['Response']['Error']['Code']
|
190
|
+
message = response['Response']['Error']['Message']
|
191
|
+
reqid = response['Response']['RequestId']
|
192
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
193
|
+
end
|
194
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
195
|
+
raise e
|
196
|
+
rescue StandardError => e
|
197
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
|
+
end
|
199
|
+
|
176
200
|
|
177
201
|
end
|
178
202
|
end
|
data/lib/v20220401/models.rb
CHANGED
@@ -692,6 +692,48 @@ module TencentCloud
|
|
692
692
|
end
|
693
693
|
end
|
694
694
|
|
695
|
+
# 弹性扩容节点配置信息。
|
696
|
+
class ExpansionNodeConfig < TencentCloud::Common::AbstractModel
|
697
|
+
# @param Placement: 扩容实例所在的位置。
|
698
|
+
# @type Placement: :class:`Tencentcloud::Thpc.v20220401.models.Placement`
|
699
|
+
# @param InstanceChargeType: 节点[计费类型](https://cloud.tencent.com/document/product/213/2180)。<br><li>PREPAID:预付费,即包年包月<br><li>POSTPAID_BY_HOUR:按小时后付费<br><li>SPOTPAID:竞价付费<br>默认值:POSTPAID_BY_HOUR。
|
700
|
+
# @type InstanceChargeType: String
|
701
|
+
# @param InstanceChargePrepaid: 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月节点的购买时长、是否设置自动续费等属性。若指定节点的付费模式为预付费则该参数必传。
|
702
|
+
# @type InstanceChargePrepaid: :class:`Tencentcloud::Thpc.v20220401.models.InstanceChargePrepaid`
|
703
|
+
# @param InstanceType: 节点机型。不同实例机型指定了不同的资源规格。
|
704
|
+
# <br><li>具体取值可通过调用接口[DescribeInstanceTypeConfigs](https://cloud.tencent.com/document/api/213/15749)来获得最新的规格表或参见[实例规格](https://cloud.tencent.com/document/product/213/11518)描述。
|
705
|
+
# @type InstanceType: String
|
706
|
+
# @param VirtualPrivateCloud: 私有网络相关信息配置。
|
707
|
+
# @type VirtualPrivateCloud: :class:`Tencentcloud::Thpc.v20220401.models.VirtualPrivateCloud`
|
708
|
+
|
709
|
+
attr_accessor :Placement, :InstanceChargeType, :InstanceChargePrepaid, :InstanceType, :VirtualPrivateCloud
|
710
|
+
|
711
|
+
def initialize(placement=nil, instancechargetype=nil, instancechargeprepaid=nil, instancetype=nil, virtualprivatecloud=nil)
|
712
|
+
@Placement = placement
|
713
|
+
@InstanceChargeType = instancechargetype
|
714
|
+
@InstanceChargePrepaid = instancechargeprepaid
|
715
|
+
@InstanceType = instancetype
|
716
|
+
@VirtualPrivateCloud = virtualprivatecloud
|
717
|
+
end
|
718
|
+
|
719
|
+
def deserialize(params)
|
720
|
+
unless params['Placement'].nil?
|
721
|
+
@Placement = Placement.new
|
722
|
+
@Placement.deserialize(params['Placement'])
|
723
|
+
end
|
724
|
+
@InstanceChargeType = params['InstanceChargeType']
|
725
|
+
unless params['InstanceChargePrepaid'].nil?
|
726
|
+
@InstanceChargePrepaid = InstanceChargePrepaid.new
|
727
|
+
@InstanceChargePrepaid.deserialize(params['InstanceChargePrepaid'])
|
728
|
+
end
|
729
|
+
@InstanceType = params['InstanceType']
|
730
|
+
unless params['VirtualPrivateCloud'].nil?
|
731
|
+
@VirtualPrivateCloud = VirtualPrivateCloud.new
|
732
|
+
@VirtualPrivateCloud.deserialize(params['VirtualPrivateCloud'])
|
733
|
+
end
|
734
|
+
end
|
735
|
+
end
|
736
|
+
|
695
737
|
# 描述GooseFS挂载信息
|
696
738
|
class GooseFSOption < TencentCloud::Common::AbstractModel
|
697
739
|
# @param LocalPath: 文件系统本地挂载路径
|
@@ -959,6 +1001,137 @@ module TencentCloud
|
|
959
1001
|
end
|
960
1002
|
end
|
961
1003
|
|
1004
|
+
# 扩容队列配置。
|
1005
|
+
class QueueConfig < TencentCloud::Common::AbstractModel
|
1006
|
+
# @param QueueName: 队列名称。
|
1007
|
+
# @type QueueName: String
|
1008
|
+
# @param MinSize: 队列中弹性节点数量最小值。取值范围0~200。
|
1009
|
+
# @type MinSize: Integer
|
1010
|
+
# @param MaxSize: 队列中弹性节点数量最大值。取值范围0~200。
|
1011
|
+
# @type MaxSize: Integer
|
1012
|
+
# @param EnableAutoExpansion: 是否开启自动扩容。
|
1013
|
+
# @type EnableAutoExpansion: Boolean
|
1014
|
+
# @param EnableAutoShrink: 是否开启自动缩容。
|
1015
|
+
# @type EnableAutoShrink: Boolean
|
1016
|
+
# @param ImageId: 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx`。目前仅支持公有镜和特定自定义镜像。
|
1017
|
+
# @type ImageId: String
|
1018
|
+
# @param SystemDisk: 节点系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。
|
1019
|
+
# @type SystemDisk: :class:`Tencentcloud::Thpc.v20220401.models.SystemDisk`
|
1020
|
+
# @param DataDisks: 节点数据盘配置信息。若不指定该参数,则默认不购买数据盘。支持购买的时候指定21块数据盘,其中最多包含1块LOCAL_BASIC数据盘或者LOCAL_SSD数据盘,最多包含20块CLOUD_BASIC数据盘、CLOUD_PREMIUM数据盘或者CLOUD_SSD数据盘。
|
1021
|
+
# @type DataDisks: Array
|
1022
|
+
# @param InternetAccessible: 公网带宽相关信息设置。若不指定该参数,则默认公网带宽为0Mbps。
|
1023
|
+
# @type InternetAccessible: :class:`Tencentcloud::Thpc.v20220401.models.InternetAccessible`
|
1024
|
+
# @param ExpansionNodeConfigs: 扩容节点配置信息。
|
1025
|
+
# @type ExpansionNodeConfigs: Array
|
1026
|
+
|
1027
|
+
attr_accessor :QueueName, :MinSize, :MaxSize, :EnableAutoExpansion, :EnableAutoShrink, :ImageId, :SystemDisk, :DataDisks, :InternetAccessible, :ExpansionNodeConfigs
|
1028
|
+
|
1029
|
+
def initialize(queuename=nil, minsize=nil, maxsize=nil, enableautoexpansion=nil, enableautoshrink=nil, imageid=nil, systemdisk=nil, datadisks=nil, internetaccessible=nil, expansionnodeconfigs=nil)
|
1030
|
+
@QueueName = queuename
|
1031
|
+
@MinSize = minsize
|
1032
|
+
@MaxSize = maxsize
|
1033
|
+
@EnableAutoExpansion = enableautoexpansion
|
1034
|
+
@EnableAutoShrink = enableautoshrink
|
1035
|
+
@ImageId = imageid
|
1036
|
+
@SystemDisk = systemdisk
|
1037
|
+
@DataDisks = datadisks
|
1038
|
+
@InternetAccessible = internetaccessible
|
1039
|
+
@ExpansionNodeConfigs = expansionnodeconfigs
|
1040
|
+
end
|
1041
|
+
|
1042
|
+
def deserialize(params)
|
1043
|
+
@QueueName = params['QueueName']
|
1044
|
+
@MinSize = params['MinSize']
|
1045
|
+
@MaxSize = params['MaxSize']
|
1046
|
+
@EnableAutoExpansion = params['EnableAutoExpansion']
|
1047
|
+
@EnableAutoShrink = params['EnableAutoShrink']
|
1048
|
+
@ImageId = params['ImageId']
|
1049
|
+
unless params['SystemDisk'].nil?
|
1050
|
+
@SystemDisk = SystemDisk.new
|
1051
|
+
@SystemDisk.deserialize(params['SystemDisk'])
|
1052
|
+
end
|
1053
|
+
unless params['DataDisks'].nil?
|
1054
|
+
@DataDisks = []
|
1055
|
+
params['DataDisks'].each do |i|
|
1056
|
+
datadisk_tmp = DataDisk.new
|
1057
|
+
datadisk_tmp.deserialize(i)
|
1058
|
+
@DataDisks << datadisk_tmp
|
1059
|
+
end
|
1060
|
+
end
|
1061
|
+
unless params['InternetAccessible'].nil?
|
1062
|
+
@InternetAccessible = InternetAccessible.new
|
1063
|
+
@InternetAccessible.deserialize(params['InternetAccessible'])
|
1064
|
+
end
|
1065
|
+
unless params['ExpansionNodeConfigs'].nil?
|
1066
|
+
@ExpansionNodeConfigs = []
|
1067
|
+
params['ExpansionNodeConfigs'].each do |i|
|
1068
|
+
expansionnodeconfig_tmp = ExpansionNodeConfig.new
|
1069
|
+
expansionnodeconfig_tmp.deserialize(i)
|
1070
|
+
@ExpansionNodeConfigs << expansionnodeconfig_tmp
|
1071
|
+
end
|
1072
|
+
end
|
1073
|
+
end
|
1074
|
+
end
|
1075
|
+
|
1076
|
+
# SetAutoScalingConfiguration请求参数结构体
|
1077
|
+
class SetAutoScalingConfigurationRequest < TencentCloud::Common::AbstractModel
|
1078
|
+
# @param ClusterId: 集群ID。
|
1079
|
+
# @type ClusterId: String
|
1080
|
+
# @param ExpansionBusyTime: 任务连续等待时间,队列的任务处于连续等待的时间。单位秒。默认值120。
|
1081
|
+
# @type ExpansionBusyTime: Integer
|
1082
|
+
# @param ShrinkIdleTime: 节点连续空闲(未运行作业)时间,一个节点连续处于空闲状态时间。单位秒。默认值300。
|
1083
|
+
# @type ShrinkIdleTime: Integer
|
1084
|
+
# @param QueueConfigs: 扩容队列配置列表。
|
1085
|
+
# @type QueueConfigs: Array
|
1086
|
+
# @param DryRun: 是否只预检此次请求。
|
1087
|
+
# true:发送检查请求,不会绑定弹性伸缩组。检查项包括是否填写了必需参数,请求格式,业务限制。
|
1088
|
+
# 如果检查不通过,则返回对应错误码;
|
1089
|
+
# 如果检查通过,则返回RequestId。
|
1090
|
+
# false(默认):发送正常请求,通过检查后直接绑定弹性伸缩组。
|
1091
|
+
# @type DryRun: Boolean
|
1092
|
+
|
1093
|
+
attr_accessor :ClusterId, :ExpansionBusyTime, :ShrinkIdleTime, :QueueConfigs, :DryRun
|
1094
|
+
|
1095
|
+
def initialize(clusterid=nil, expansionbusytime=nil, shrinkidletime=nil, queueconfigs=nil, dryrun=nil)
|
1096
|
+
@ClusterId = clusterid
|
1097
|
+
@ExpansionBusyTime = expansionbusytime
|
1098
|
+
@ShrinkIdleTime = shrinkidletime
|
1099
|
+
@QueueConfigs = queueconfigs
|
1100
|
+
@DryRun = dryrun
|
1101
|
+
end
|
1102
|
+
|
1103
|
+
def deserialize(params)
|
1104
|
+
@ClusterId = params['ClusterId']
|
1105
|
+
@ExpansionBusyTime = params['ExpansionBusyTime']
|
1106
|
+
@ShrinkIdleTime = params['ShrinkIdleTime']
|
1107
|
+
unless params['QueueConfigs'].nil?
|
1108
|
+
@QueueConfigs = []
|
1109
|
+
params['QueueConfigs'].each do |i|
|
1110
|
+
queueconfig_tmp = QueueConfig.new
|
1111
|
+
queueconfig_tmp.deserialize(i)
|
1112
|
+
@QueueConfigs << queueconfig_tmp
|
1113
|
+
end
|
1114
|
+
end
|
1115
|
+
@DryRun = params['DryRun']
|
1116
|
+
end
|
1117
|
+
end
|
1118
|
+
|
1119
|
+
# SetAutoScalingConfiguration返回参数结构体
|
1120
|
+
class SetAutoScalingConfigurationResponse < TencentCloud::Common::AbstractModel
|
1121
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1122
|
+
# @type RequestId: String
|
1123
|
+
|
1124
|
+
attr_accessor :RequestId
|
1125
|
+
|
1126
|
+
def initialize(requestid=nil)
|
1127
|
+
@RequestId = requestid
|
1128
|
+
end
|
1129
|
+
|
1130
|
+
def deserialize(params)
|
1131
|
+
@RequestId = params['RequestId']
|
1132
|
+
end
|
1133
|
+
end
|
1134
|
+
|
962
1135
|
# 描述集群文件系统选项
|
963
1136
|
class StorageOption < TencentCloud::Common::AbstractModel
|
964
1137
|
# @param CFSOptions: 集群挂载CFS文件系统选项
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-thpc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.433
|
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-10-
|
11
|
+
date: 2022-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|