tencentcloud-sdk-thpc 3.0.489 → 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: 421f66611f537f7a8d2e89dc77ded57bf3afebe9
4
- data.tar.gz: 689371d9318dd1f26739e7181b4ec08844f3c98e
3
+ metadata.gz: 87885377998fa025630d7a86780422edbd964d3c
4
+ data.tar.gz: ce92c5e1e53b2c2dc8ad4598d4aca5e7995e53f8
5
5
  SHA512:
6
- metadata.gz: 3e6685fbad1d05bb3b295a82c97845cbbad34e27c8123fc5afbf1b99c4bedc07c0a30f3116b6be426576b2389e16c22c9ff215deea76e63ee29dc7a1aa87398b
7
- data.tar.gz: 1553b9d44f09e431b0872146e06e1f6721c1cf2ff05edf12c575db5f921a2879b146cd2412fdffe66d0fcb2c44e120c999ce530c4a1556d90fd9673c25b35ae9
6
+ metadata.gz: c1a017d79beef8602a777a35b9d27a801e3e36ba7efe61568f72d0c224f2d45f592453982d43fa364e046d6e4156498d3543db9db873a7b23c02033d7621bcd6
7
+ data.tar.gz: 88108748d66bb3c5a2d4ac8fde4b87f92f5d6b1d6b788117ec3e4d5bda925786a565f5aa188cfa64b521269bca38a2b4322b444b56d0490a171e75564efb2632
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.489
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.
@@ -290,6 +290,37 @@ module TencentCloud
290
290
  end
291
291
  end
292
292
 
293
+ # CFS存储选项概览信息。
294
+ class CFSOptionOverview < TencentCloud::Common::AbstractModel
295
+ # @param LocalPath: 文件系统本地挂载路径。
296
+ # @type LocalPath: String
297
+ # @param RemotePath: 文件系统远程挂载ip及路径。
298
+ # @type RemotePath: String
299
+ # @param Protocol: 文件系统协议类型。
300
+ # <li>NFS 3.0。
301
+ # <li>NFS 4.0。
302
+ # <li>TURBO。
303
+ # @type Protocol: String
304
+ # @param StorageType: 文件系统存储类型,默认值SD;其中 SD 为通用标准型标准型存储, HP为通用性能型存储, TB为turbo标准型, TP 为turbo性能型。
305
+ # @type StorageType: String
306
+
307
+ attr_accessor :LocalPath, :RemotePath, :Protocol, :StorageType
308
+
309
+ def initialize(localpath=nil, remotepath=nil, protocol=nil, storagetype=nil)
310
+ @LocalPath = localpath
311
+ @RemotePath = remotepath
312
+ @Protocol = protocol
313
+ @StorageType = storagetype
314
+ end
315
+
316
+ def deserialize(params)
317
+ @LocalPath = params['LocalPath']
318
+ @RemotePath = params['RemotePath']
319
+ @Protocol = params['Protocol']
320
+ @StorageType = params['StorageType']
321
+ end
322
+ end
323
+
293
324
  # 符合条件的集群活动信息。
294
325
  class ClusterActivity < TencentCloud::Common::AbstractModel
295
326
  # @param ClusterId: 集群ID。
@@ -787,6 +818,61 @@ module TencentCloud
787
818
  end
788
819
  end
789
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
+
790
876
  # DescribeClusterActivities请求参数结构体
791
877
  class DescribeClusterActivitiesRequest < TencentCloud::Common::AbstractModel
792
878
  # @param ClusterId: 集群ID。通过该参数指定需要查询活动历史记录的集群。
@@ -860,16 +946,23 @@ module TencentCloud
860
946
 
861
947
  # DescribeClusterStorageOption返回参数结构体
862
948
  class DescribeClusterStorageOptionResponse < TencentCloud::Common::AbstractModel
949
+ # @param StorageOption: 集群存储选项信息概览。
950
+ # @type StorageOption: :class:`Tencentcloud::Thpc.v20220401.models.StorageOptionOverview`
863
951
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
864
952
  # @type RequestId: String
865
953
 
866
- attr_accessor :RequestId
954
+ attr_accessor :StorageOption, :RequestId
867
955
 
868
- def initialize(requestid=nil)
956
+ def initialize(storageoption=nil, requestid=nil)
957
+ @StorageOption = storageoption
869
958
  @RequestId = requestid
870
959
  end
871
960
 
872
961
  def deserialize(params)
962
+ unless params['StorageOption'].nil?
963
+ @StorageOption = StorageOptionOverview.new
964
+ @StorageOption.deserialize(params['StorageOption'])
965
+ end
873
966
  @RequestId = params['RequestId']
874
967
  end
875
968
  end
@@ -971,6 +1064,85 @@ module TencentCloud
971
1064
  end
972
1065
  end
973
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
+
974
1146
  # 描述GooseFS挂载信息
975
1147
  class GooseFSOption < TencentCloud::Common::AbstractModel
976
1148
  # @param LocalPath: 文件系统本地挂载路径。
@@ -995,6 +1167,30 @@ module TencentCloud
995
1167
  end
996
1168
  end
997
1169
 
1170
+ # GooseFS存储选项概览信息。
1171
+ class GooseFSOptionOverview < TencentCloud::Common::AbstractModel
1172
+ # @param LocalPath: 文件系统本地挂载路径。
1173
+ # @type LocalPath: String
1174
+ # @param RemotePath: 文件系统远程挂载路径。
1175
+ # @type RemotePath: String
1176
+ # @param Masters: 文件系统master的ip和端口。
1177
+ # @type Masters: Array
1178
+
1179
+ attr_accessor :LocalPath, :RemotePath, :Masters
1180
+
1181
+ def initialize(localpath=nil, remotepath=nil, masters=nil)
1182
+ @LocalPath = localpath
1183
+ @RemotePath = remotepath
1184
+ @Masters = masters
1185
+ end
1186
+
1187
+ def deserialize(params)
1188
+ @LocalPath = params['LocalPath']
1189
+ @RemotePath = params['RemotePath']
1190
+ @Masters = params['Masters']
1191
+ end
1192
+ end
1193
+
998
1194
  # 描述了实例的计费模式
999
1195
  class InstanceChargePrepaid < TencentCloud::Common::AbstractModel
1000
1196
  # @param Period: 购买实例的时长,单位:月。取值范围:1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60。
@@ -1341,6 +1537,49 @@ module TencentCloud
1341
1537
  end
1342
1538
  end
1343
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
+
1344
1583
  # SetAutoScalingConfiguration请求参数结构体
1345
1584
  class SetAutoScalingConfigurationRequest < TencentCloud::Common::AbstractModel
1346
1585
  # @param ClusterId: 集群ID。
@@ -1434,6 +1673,40 @@ module TencentCloud
1434
1673
  end
1435
1674
  end
1436
1675
 
1676
+ # 集群存储选项概览信息。
1677
+ class StorageOptionOverview < TencentCloud::Common::AbstractModel
1678
+ # @param CFSOptions: CFS存储选项概览信息列表。
1679
+ # @type CFSOptions: Array
1680
+ # @param GooseFSOptions: GooseFS存储选项概览信息列表。
1681
+ # @type GooseFSOptions: Array
1682
+
1683
+ attr_accessor :CFSOptions, :GooseFSOptions
1684
+
1685
+ def initialize(cfsoptions=nil, goosefsoptions=nil)
1686
+ @CFSOptions = cfsoptions
1687
+ @GooseFSOptions = goosefsoptions
1688
+ end
1689
+
1690
+ def deserialize(params)
1691
+ unless params['CFSOptions'].nil?
1692
+ @CFSOptions = []
1693
+ params['CFSOptions'].each do |i|
1694
+ cfsoptionoverview_tmp = CFSOptionOverview.new
1695
+ cfsoptionoverview_tmp.deserialize(i)
1696
+ @CFSOptions << cfsoptionoverview_tmp
1697
+ end
1698
+ end
1699
+ unless params['GooseFSOptions'].nil?
1700
+ @GooseFSOptions = []
1701
+ params['GooseFSOptions'].each do |i|
1702
+ goosefsoptionoverview_tmp = GooseFSOptionOverview.new
1703
+ goosefsoptionoverview_tmp.deserialize(i)
1704
+ @GooseFSOptions << goosefsoptionoverview_tmp
1705
+ end
1706
+ end
1707
+ end
1708
+ end
1709
+
1437
1710
  # 描述了操作系统所在块设备即系统盘的信息
1438
1711
  class SystemDisk < TencentCloud::Common::AbstractModel
1439
1712
  # @param DiskType: 系统盘类型。系统盘类型限制详见存储概述。取值范围:
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.489
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-09 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