tencentcloud-sdk-thpc 3.0.490 → 3.0.491

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: 85caf2e665c42dae3ebe2a94cdaa84f84d764e5f
4
- data.tar.gz: b6b7d7503840690acf9c91da750ccaedffd61b9b
3
+ metadata.gz: 87885377998fa025630d7a86780422edbd964d3c
4
+ data.tar.gz: ce92c5e1e53b2c2dc8ad4598d4aca5e7995e53f8
5
5
  SHA512:
6
- metadata.gz: 0414eb971c01a5a8b2cfb6867c3a09f9479d2524df7b5e95b8764fb2e8eb0a21abefcced3b64df9620a0ff408af398c81c7c7330cb98fb1a9df68fb6c4ef6a49
7
- data.tar.gz: e5fcd6bfafadd50a06a3eb2796bc3d46fd51d867ebb8b6418a084bb5dea4e7a24bb3fb569ce100eda6e4211b7534ef905a3314bbe4f453361576ff949d962f15
6
+ metadata.gz: c1a017d79beef8602a777a35b9d27a801e3e36ba7efe61568f72d0c224f2d45f592453982d43fa364e046d6e4156498d3543db9db873a7b23c02033d7621bcd6
7
+ data.tar.gz: 88108748d66bb3c5a2d4ac8fde4b87f92f5d6b1d6b788117ec3e4d5bda925786a565f5aa188cfa64b521269bca38a2b4322b444b56d0490a171e75564efb2632
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.490
1
+ 3.0.491
@@ -197,6 +197,30 @@ module TencentCloud
197
197
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
198
  end
199
199
 
200
+ # 本接口(DescribeAutoScalingConfiguration)用于查询集群弹性伸缩配置信息。本接口仅适用于弹性伸缩类型为THPC_AS的集群。
201
+
202
+ # @param request: Request instance for DescribeAutoScalingConfiguration.
203
+ # @type request: :class:`Tencentcloud::thpc::V20220401::DescribeAutoScalingConfigurationRequest`
204
+ # @rtype: :class:`Tencentcloud::thpc::V20220401::DescribeAutoScalingConfigurationResponse`
205
+ def DescribeAutoScalingConfiguration(request)
206
+ body = send_request('DescribeAutoScalingConfiguration', request.serialize)
207
+ response = JSON.parse(body)
208
+ if response['Response'].key?('Error') == false
209
+ model = DescribeAutoScalingConfigurationResponse.new
210
+ model.deserialize(response['Response'])
211
+ model
212
+ else
213
+ code = response['Response']['Error']['Code']
214
+ message = response['Response']['Error']['Message']
215
+ reqid = response['Response']['RequestId']
216
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
217
+ end
218
+ rescue TencentCloud::Common::TencentCloudSDKException => e
219
+ raise e
220
+ rescue StandardError => e
221
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
+ end
223
+
200
224
  # 本接口(DescribeClusterActivities)用于查询集群活动历史记录列表。
201
225
 
202
226
  # @param request: Request instance for DescribeClusterActivities.
@@ -818,6 +818,61 @@ module TencentCloud
818
818
  end
819
819
  end
820
820
 
821
+ # DescribeAutoScalingConfiguration请求参数结构体
822
+ class DescribeAutoScalingConfigurationRequest < TencentCloud::Common::AbstractModel
823
+ # @param ClusterId: 集群ID。
824
+ # @type ClusterId: String
825
+
826
+ attr_accessor :ClusterId
827
+
828
+ def initialize(clusterid=nil)
829
+ @ClusterId = clusterid
830
+ end
831
+
832
+ def deserialize(params)
833
+ @ClusterId = params['ClusterId']
834
+ end
835
+ end
836
+
837
+ # DescribeAutoScalingConfiguration返回参数结构体
838
+ class DescribeAutoScalingConfigurationResponse < TencentCloud::Common::AbstractModel
839
+ # @param ClusterId: 集群ID。
840
+ # @type ClusterId: String
841
+ # @param ExpansionBusyTime: 任务连续等待时间,队列的任务处于连续等待的时间。单位秒。
842
+ # @type ExpansionBusyTime: Integer
843
+ # @param ShrinkIdleTime: 节点连续空闲(未运行作业)时间,一个节点连续处于空闲状态时间。
844
+ # @type ShrinkIdleTime: Integer
845
+ # @param QueueConfigs: 扩容队列配置概览列表。
846
+ # @type QueueConfigs: Array
847
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
848
+ # @type RequestId: String
849
+
850
+ attr_accessor :ClusterId, :ExpansionBusyTime, :ShrinkIdleTime, :QueueConfigs, :RequestId
851
+
852
+ def initialize(clusterid=nil, expansionbusytime=nil, shrinkidletime=nil, queueconfigs=nil, requestid=nil)
853
+ @ClusterId = clusterid
854
+ @ExpansionBusyTime = expansionbusytime
855
+ @ShrinkIdleTime = shrinkidletime
856
+ @QueueConfigs = queueconfigs
857
+ @RequestId = requestid
858
+ end
859
+
860
+ def deserialize(params)
861
+ @ClusterId = params['ClusterId']
862
+ @ExpansionBusyTime = params['ExpansionBusyTime']
863
+ @ShrinkIdleTime = params['ShrinkIdleTime']
864
+ unless params['QueueConfigs'].nil?
865
+ @QueueConfigs = []
866
+ params['QueueConfigs'].each do |i|
867
+ queueconfigoverview_tmp = QueueConfigOverview.new
868
+ queueconfigoverview_tmp.deserialize(i)
869
+ @QueueConfigs << queueconfigoverview_tmp
870
+ end
871
+ end
872
+ @RequestId = params['RequestId']
873
+ end
874
+ end
875
+
821
876
  # DescribeClusterActivities请求参数结构体
822
877
  class DescribeClusterActivitiesRequest < TencentCloud::Common::AbstractModel
823
878
  # @param ClusterId: 集群ID。通过该参数指定需要查询活动历史记录的集群。
@@ -1009,6 +1064,85 @@ module TencentCloud
1009
1064
  end
1010
1065
  end
1011
1066
 
1067
+ # 扩容节点配置信息概览。
1068
+ class ExpansionNodeConfigOverview < TencentCloud::Common::AbstractModel
1069
+ # @param InstanceType: 节点机型。
1070
+ # 注意:此字段可能返回 null,表示取不到有效值。
1071
+ # @type InstanceType: String
1072
+ # @param Placement: 扩容实例所在的位置。
1073
+ # 注意:此字段可能返回 null,表示取不到有效值。
1074
+ # @type Placement: :class:`Tencentcloud::Thpc.v20220401.models.Placement`
1075
+ # @param InstanceChargeType: 节点[计费类型](https://cloud.tencent.com/document/product/213/2180)。
1076
+ # 注意:此字段可能返回 null,表示取不到有效值。
1077
+ # @type InstanceChargeType: String
1078
+ # @param InstanceChargePrepaid: 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月节点的购买时长、是否设置自动续费等属性。若指定节点的付费模式为预付费则该参数必传。
1079
+ # 注意:此字段可能返回 null,表示取不到有效值。
1080
+ # @type InstanceChargePrepaid: :class:`Tencentcloud::Thpc.v20220401.models.InstanceChargePrepaid`
1081
+ # @param VirtualPrivateCloud: 私有网络相关信息配置。
1082
+ # 注意:此字段可能返回 null,表示取不到有效值。
1083
+ # @type VirtualPrivateCloud: :class:`Tencentcloud::Thpc.v20220401.models.VirtualPrivateCloud`
1084
+ # @param ImageId: 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx`。
1085
+ # 注意:此字段可能返回 null,表示取不到有效值。
1086
+ # @type ImageId: String
1087
+ # @param InternetAccessible: 公网带宽相关信息设置。
1088
+ # 注意:此字段可能返回 null,表示取不到有效值。
1089
+ # @type InternetAccessible: :class:`Tencentcloud::Thpc.v20220401.models.InternetAccessible`
1090
+ # @param SystemDisk: 节点系统盘配置信息。
1091
+ # 注意:此字段可能返回 null,表示取不到有效值。
1092
+ # @type SystemDisk: :class:`Tencentcloud::Thpc.v20220401.models.SystemDisk`
1093
+ # @param DataDisks: 节点数据盘配置信息。
1094
+ # 注意:此字段可能返回 null,表示取不到有效值。
1095
+ # @type DataDisks: Array
1096
+
1097
+ attr_accessor :InstanceType, :Placement, :InstanceChargeType, :InstanceChargePrepaid, :VirtualPrivateCloud, :ImageId, :InternetAccessible, :SystemDisk, :DataDisks
1098
+
1099
+ def initialize(instancetype=nil, placement=nil, instancechargetype=nil, instancechargeprepaid=nil, virtualprivatecloud=nil, imageid=nil, internetaccessible=nil, systemdisk=nil, datadisks=nil)
1100
+ @InstanceType = instancetype
1101
+ @Placement = placement
1102
+ @InstanceChargeType = instancechargetype
1103
+ @InstanceChargePrepaid = instancechargeprepaid
1104
+ @VirtualPrivateCloud = virtualprivatecloud
1105
+ @ImageId = imageid
1106
+ @InternetAccessible = internetaccessible
1107
+ @SystemDisk = systemdisk
1108
+ @DataDisks = datadisks
1109
+ end
1110
+
1111
+ def deserialize(params)
1112
+ @InstanceType = params['InstanceType']
1113
+ unless params['Placement'].nil?
1114
+ @Placement = Placement.new
1115
+ @Placement.deserialize(params['Placement'])
1116
+ end
1117
+ @InstanceChargeType = params['InstanceChargeType']
1118
+ unless params['InstanceChargePrepaid'].nil?
1119
+ @InstanceChargePrepaid = InstanceChargePrepaid.new
1120
+ @InstanceChargePrepaid.deserialize(params['InstanceChargePrepaid'])
1121
+ end
1122
+ unless params['VirtualPrivateCloud'].nil?
1123
+ @VirtualPrivateCloud = VirtualPrivateCloud.new
1124
+ @VirtualPrivateCloud.deserialize(params['VirtualPrivateCloud'])
1125
+ end
1126
+ @ImageId = params['ImageId']
1127
+ unless params['InternetAccessible'].nil?
1128
+ @InternetAccessible = InternetAccessible.new
1129
+ @InternetAccessible.deserialize(params['InternetAccessible'])
1130
+ end
1131
+ unless params['SystemDisk'].nil?
1132
+ @SystemDisk = SystemDisk.new
1133
+ @SystemDisk.deserialize(params['SystemDisk'])
1134
+ end
1135
+ unless params['DataDisks'].nil?
1136
+ @DataDisks = []
1137
+ params['DataDisks'].each do |i|
1138
+ datadisk_tmp = DataDisk.new
1139
+ datadisk_tmp.deserialize(i)
1140
+ @DataDisks << datadisk_tmp
1141
+ end
1142
+ end
1143
+ end
1144
+ end
1145
+
1012
1146
  # 描述GooseFS挂载信息
1013
1147
  class GooseFSOption < TencentCloud::Common::AbstractModel
1014
1148
  # @param LocalPath: 文件系统本地挂载路径。
@@ -1403,6 +1537,49 @@ module TencentCloud
1403
1537
  end
1404
1538
  end
1405
1539
 
1540
+ # 扩容队列配置概览。
1541
+ class QueueConfigOverview < TencentCloud::Common::AbstractModel
1542
+ # @param QueueName: 队列名称。
1543
+ # @type QueueName: String
1544
+ # @param MinSize: 队列中弹性节点数量最小值。取值范围0~200。
1545
+ # @type MinSize: Integer
1546
+ # @param MaxSize: 队列中弹性节点数量最大值。取值范围0~200。
1547
+ # @type MaxSize: Integer
1548
+ # @param EnableAutoExpansion: 是否开启自动扩容。
1549
+ # @type EnableAutoExpansion: Boolean
1550
+ # @param EnableAutoShrink: 是否开启自动缩容。
1551
+ # @type EnableAutoShrink: Boolean
1552
+ # @param ExpansionNodeConfigs: 扩容节点配置信息。
1553
+ # @type ExpansionNodeConfigs: Array
1554
+
1555
+ attr_accessor :QueueName, :MinSize, :MaxSize, :EnableAutoExpansion, :EnableAutoShrink, :ExpansionNodeConfigs
1556
+
1557
+ def initialize(queuename=nil, minsize=nil, maxsize=nil, enableautoexpansion=nil, enableautoshrink=nil, expansionnodeconfigs=nil)
1558
+ @QueueName = queuename
1559
+ @MinSize = minsize
1560
+ @MaxSize = maxsize
1561
+ @EnableAutoExpansion = enableautoexpansion
1562
+ @EnableAutoShrink = enableautoshrink
1563
+ @ExpansionNodeConfigs = expansionnodeconfigs
1564
+ end
1565
+
1566
+ def deserialize(params)
1567
+ @QueueName = params['QueueName']
1568
+ @MinSize = params['MinSize']
1569
+ @MaxSize = params['MaxSize']
1570
+ @EnableAutoExpansion = params['EnableAutoExpansion']
1571
+ @EnableAutoShrink = params['EnableAutoShrink']
1572
+ unless params['ExpansionNodeConfigs'].nil?
1573
+ @ExpansionNodeConfigs = []
1574
+ params['ExpansionNodeConfigs'].each do |i|
1575
+ expansionnodeconfigoverview_tmp = ExpansionNodeConfigOverview.new
1576
+ expansionnodeconfigoverview_tmp.deserialize(i)
1577
+ @ExpansionNodeConfigs << expansionnodeconfigoverview_tmp
1578
+ end
1579
+ end
1580
+ end
1581
+ end
1582
+
1406
1583
  # SetAutoScalingConfiguration请求参数结构体
1407
1584
  class SetAutoScalingConfigurationRequest < TencentCloud::Common::AbstractModel
1408
1585
  # @param ClusterId: 集群ID。
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.490
4
+ version: 3.0.491
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-01-10 00:00:00.000000000 Z
11
+ date: 2023-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common