tencentcloud-sdk-thpc 1.0.221 → 1.0.225

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 302b4a257562839f90134fb5861a97315ff983de
4
- data.tar.gz: 50a943609a161029b3619ce61b79119c8faed117
3
+ metadata.gz: ab31aa29e7d1987264e9ff5f61d4f830ef34f1ce
4
+ data.tar.gz: 3ed5e93ac49a86c71ab59e0eb94631bc48d1425a
5
5
  SHA512:
6
- metadata.gz: 509843189798259cd672cbeae5bfb96559b0b6fd995b677229553ee21155aed6aded3be0611c65be790dc417d964426669a0ea6168f02d4eefee3f21ca9dd2b4
7
- data.tar.gz: 4aa7c9535ff8a977d58b374dd9b68dd7a0ded8eeecea8e02907f89d372fe04cc53dc48136b68e7676c1a48e1ae3cd3431e36f91a078fcf38eb1cbb8333b5c3d0
6
+ metadata.gz: 492040830ec6b86b6e39ab6d34e8b45380d1d54a414fbe1cd6a0adb4674923b26dc89f88bd19049dfa4468e5669d1838aa5354692ba388ece0e3bc86245d9215
7
+ data.tar.gz: b6ee85f22085a3df3d725cc128a9ae56c831360a11067c22202db0fecc5cddca527ff877f7e33e781d405822514f68fc380240fc9e5ee431ea973dabe2da0053
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.221
1
+ 1.0.225
@@ -29,6 +29,30 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 本接口(BindAutoScalingGroup)用于为集群队列绑定弹性伸缩组
33
+
34
+ # @param request: Request instance for BindAutoScalingGroup.
35
+ # @type request: :class:`Tencentcloud::thpc::V20211109::BindAutoScalingGroupRequest`
36
+ # @rtype: :class:`Tencentcloud::thpc::V20211109::BindAutoScalingGroupResponse`
37
+ def BindAutoScalingGroup(request)
38
+ body = send_request('BindAutoScalingGroup', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = BindAutoScalingGroupResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
32
56
  # 本接口 (CreateCluster) 用于创建并启动集群。
33
57
 
34
58
  # @param request: Request instance for CreateCluster.
@@ -17,6 +17,98 @@
17
17
  module TencentCloud
18
18
  module Thpc
19
19
  module V20211109
20
+ # BindAutoScalingGroup请求参数结构体
21
+ class BindAutoScalingGroupRequest < TencentCloud::Common::AbstractModel
22
+ # @param ClusterId: 集群ID。
23
+ # @type ClusterId: String
24
+ # @param LaunchConfigurationId: 弹性伸缩启动配置ID。
25
+ # @type LaunchConfigurationId: String
26
+ # @param AutoScalingGroupId: 弹性伸缩组ID。
27
+ # @type AutoScalingGroupId: String
28
+ # @param ExpansionBusyTime: 任务连续等待时间,队列的任务处于连续等待的时间。单位秒。默认值120。
29
+ # @type ExpansionBusyTime: Integer
30
+ # @param ShrinkIdleTime: 节点连续空闲(未运行作业)时间,一个节点连续处于空闲状态时间。单位秒。默认值300。
31
+ # @type ShrinkIdleTime: Integer
32
+ # @param EnableAutoExpansion: 是否开启自动扩容,默认值true。
33
+ # @type EnableAutoExpansion: Boolean
34
+ # @param EnableAutoShrink: 是否开启自动缩容,默认值true。
35
+ # @type EnableAutoShrink: Boolean
36
+ # @param DryRun: 是否只预检此次请求。
37
+ # true:发送检查请求,不会绑定弹性伸缩组。检查项包括是否填写了必需参数,请求格式,业务限制。
38
+ # 如果检查不通过,则返回对应错误码;
39
+ # 如果检查通过,则返回RequestId。
40
+ # false(默认):发送正常请求,通过检查后直接绑定弹性伸缩组。
41
+ # @type DryRun: Boolean
42
+
43
+ attr_accessor :ClusterId, :LaunchConfigurationId, :AutoScalingGroupId, :ExpansionBusyTime, :ShrinkIdleTime, :EnableAutoExpansion, :EnableAutoShrink, :DryRun
44
+
45
+ def initialize(clusterid=nil, launchconfigurationid=nil, autoscalinggroupid=nil, expansionbusytime=nil, shrinkidletime=nil, enableautoexpansion=nil, enableautoshrink=nil, dryrun=nil)
46
+ @ClusterId = clusterid
47
+ @LaunchConfigurationId = launchconfigurationid
48
+ @AutoScalingGroupId = autoscalinggroupid
49
+ @ExpansionBusyTime = expansionbusytime
50
+ @ShrinkIdleTime = shrinkidletime
51
+ @EnableAutoExpansion = enableautoexpansion
52
+ @EnableAutoShrink = enableautoshrink
53
+ @DryRun = dryrun
54
+ end
55
+
56
+ def deserialize(params)
57
+ @ClusterId = params['ClusterId']
58
+ @LaunchConfigurationId = params['LaunchConfigurationId']
59
+ @AutoScalingGroupId = params['AutoScalingGroupId']
60
+ @ExpansionBusyTime = params['ExpansionBusyTime']
61
+ @ShrinkIdleTime = params['ShrinkIdleTime']
62
+ @EnableAutoExpansion = params['EnableAutoExpansion']
63
+ @EnableAutoShrink = params['EnableAutoShrink']
64
+ @DryRun = params['DryRun']
65
+ end
66
+ end
67
+
68
+ # BindAutoScalingGroup返回参数结构体
69
+ class BindAutoScalingGroupResponse < TencentCloud::Common::AbstractModel
70
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
71
+ # @type RequestId: String
72
+
73
+ attr_accessor :RequestId
74
+
75
+ def initialize(requestid=nil)
76
+ @RequestId = requestid
77
+ end
78
+
79
+ def deserialize(params)
80
+ @RequestId = params['RequestId']
81
+ end
82
+ end
83
+
84
+ # 描述CFS文件系统版本和挂载信息
85
+ class CFSOption < TencentCloud::Common::AbstractModel
86
+ # @param LocalPath: 文件系统本地挂载路径
87
+ # @type LocalPath: String
88
+ # @param RemotePath: 文件系统远程挂载ip及路径
89
+ # @type RemotePath: String
90
+ # @param Protocol: 文件系统协议类型,默认值NFS 3.0
91
+ # @type Protocol: String
92
+ # @param StorageType: 文件系统存储类型,默认值SD
93
+ # @type StorageType: String
94
+
95
+ attr_accessor :LocalPath, :RemotePath, :Protocol, :StorageType
96
+
97
+ def initialize(localpath=nil, remotepath=nil, protocol=nil, storagetype=nil)
98
+ @LocalPath = localpath
99
+ @RemotePath = remotepath
100
+ @Protocol = protocol
101
+ @StorageType = storagetype
102
+ end
103
+
104
+ def deserialize(params)
105
+ @LocalPath = params['LocalPath']
106
+ @RemotePath = params['RemotePath']
107
+ @Protocol = params['Protocol']
108
+ @StorageType = params['StorageType']
109
+ end
110
+ end
111
+
20
112
  # 计算节点信息。
21
113
  class ComputeNode < TencentCloud::Common::AbstractModel
22
114
  # @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。
@@ -112,10 +204,12 @@ module TencentCloud
112
204
  # @type AccountType: String
113
205
  # @param ClusterName: 集群显示名称。
114
206
  # @type ClusterName: String
207
+ # @param StorageOption: 集群存储选项
208
+ # @type StorageOption: :class:`Tencentcloud::Thpc.v20211109.models.StorageOption`
115
209
 
116
- attr_accessor :Placement, :ManagerNode, :ManagerNodeCount, :ComputeNode, :ComputeNodeCount, :SchedulerType, :ImageId, :VirtualPrivateCloud, :LoginSettings, :SecurityGroupIds, :ClientToken, :DryRun, :AccountType, :ClusterName
210
+ attr_accessor :Placement, :ManagerNode, :ManagerNodeCount, :ComputeNode, :ComputeNodeCount, :SchedulerType, :ImageId, :VirtualPrivateCloud, :LoginSettings, :SecurityGroupIds, :ClientToken, :DryRun, :AccountType, :ClusterName, :StorageOption
117
211
 
118
- def initialize(placement=nil, managernode=nil, managernodecount=nil, computenode=nil, computenodecount=nil, schedulertype=nil, imageid=nil, virtualprivatecloud=nil, loginsettings=nil, securitygroupids=nil, clienttoken=nil, dryrun=nil, accounttype=nil, clustername=nil)
212
+ def initialize(placement=nil, managernode=nil, managernodecount=nil, computenode=nil, computenodecount=nil, schedulertype=nil, imageid=nil, virtualprivatecloud=nil, loginsettings=nil, securitygroupids=nil, clienttoken=nil, dryrun=nil, accounttype=nil, clustername=nil, storageoption=nil)
119
213
  @Placement = placement
120
214
  @ManagerNode = managernode
121
215
  @ManagerNodeCount = managernodecount
@@ -130,6 +224,7 @@ module TencentCloud
130
224
  @DryRun = dryrun
131
225
  @AccountType = accounttype
132
226
  @ClusterName = clustername
227
+ @StorageOption = storageoption
133
228
  end
134
229
 
135
230
  def deserialize(params)
@@ -162,6 +257,10 @@ module TencentCloud
162
257
  @DryRun = params['DryRun']
163
258
  @AccountType = params['AccountType']
164
259
  @ClusterName = params['ClusterName']
260
+ unless params['StorageOption'].nil?
261
+ @StorageOption = StorageOption.new
262
+ @StorageOption.deserialize(params['StorageOption'])
263
+ end
165
264
  end
166
265
  end
167
266
 
@@ -237,6 +336,30 @@ module TencentCloud
237
336
  end
238
337
  end
239
338
 
339
+ # 描述GooseFS挂载信息
340
+ class GooseFSOption < TencentCloud::Common::AbstractModel
341
+ # @param LocalPath: 文件系统本地挂载路径
342
+ # @type LocalPath: String
343
+ # @param RemotePath: 文件系统远程挂载路径
344
+ # @type RemotePath: String
345
+ # @param Masters: 文件系统master的ip和端口
346
+ # @type Masters: Array
347
+
348
+ attr_accessor :LocalPath, :RemotePath, :Masters
349
+
350
+ def initialize(localpath=nil, remotepath=nil, masters=nil)
351
+ @LocalPath = localpath
352
+ @RemotePath = remotepath
353
+ @Masters = masters
354
+ end
355
+
356
+ def deserialize(params)
357
+ @LocalPath = params['LocalPath']
358
+ @RemotePath = params['RemotePath']
359
+ @Masters = params['Masters']
360
+ end
361
+ end
362
+
240
363
  # 描述了实例的计费模式
241
364
  class InstanceChargePrepaid < TencentCloud::Common::AbstractModel
242
365
  # @param Period: 购买实例的时长,单位:月。取值范围:1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60。
@@ -380,6 +503,40 @@ module TencentCloud
380
503
  end
381
504
  end
382
505
 
506
+ # 描述集群文件系统选项
507
+ class StorageOption < TencentCloud::Common::AbstractModel
508
+ # @param CFSOptions: 集群挂载CFS文件系统选项
509
+ # @type CFSOptions: Array
510
+ # @param GooseFSOptions: 集群挂在GooseFS文件系统选项
511
+ # @type GooseFSOptions: Array
512
+
513
+ attr_accessor :CFSOptions, :GooseFSOptions
514
+
515
+ def initialize(cfsoptions=nil, goosefsoptions=nil)
516
+ @CFSOptions = cfsoptions
517
+ @GooseFSOptions = goosefsoptions
518
+ end
519
+
520
+ def deserialize(params)
521
+ unless params['CFSOptions'].nil?
522
+ @CFSOptions = []
523
+ params['CFSOptions'].each do |i|
524
+ cfsoption_tmp = CFSOption.new
525
+ cfsoption_tmp.deserialize(i)
526
+ @CFSOptions << cfsoption_tmp
527
+ end
528
+ end
529
+ unless params['GooseFSOptions'].nil?
530
+ @GooseFSOptions = []
531
+ params['GooseFSOptions'].each do |i|
532
+ goosefsoption_tmp = GooseFSOption.new
533
+ goosefsoption_tmp.deserialize(i)
534
+ @GooseFSOptions << goosefsoption_tmp
535
+ end
536
+ end
537
+ end
538
+ end
539
+
383
540
  # 描述了操作系统所在块设备即系统盘的信息
384
541
  class SystemDisk < TencentCloud::Common::AbstractModel
385
542
  # @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: 1.0.221
4
+ version: 1.0.225
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-10 00:00:00.000000000 Z
11
+ date: 2021-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common