tencentcloud-sdk-thpc 1.0.222 → 1.0.226
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20211109/client.rb +24 -0
- data/lib/v20211109/models.rb +102 -3
- 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: 12c6b1695345ccfe1c5aa8f23b972fbbfbdec3c1
|
|
4
|
+
data.tar.gz: cc72f2804412ae76311642a8b90298fd39d14cd0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b2000436fc0aebd69af86fc7f4ba5d346b0ab843ed591d7e51ce3bee828e9ba07b7316be12af04f743adcdc61a403b5e590deb996dad8efb74e773aa1cccb132
|
|
7
|
+
data.tar.gz: d48167d8c90d593915b126b295cf4074e1e84eee95b969e43201aca69b99e323906da68abbda8729cd5f662d3adbc7b2b7bacadf2c65c2a834f877852272c6fc
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.226
|
data/lib/v20211109/client.rb
CHANGED
|
@@ -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.
|
data/lib/v20211109/models.rb
CHANGED
|
@@ -17,6 +17,70 @@
|
|
|
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
|
+
|
|
20
84
|
# 描述CFS文件系统版本和挂载信息
|
|
21
85
|
class CFSOption < TencentCloud::Common::AbstractModel
|
|
22
86
|
# @param LocalPath: 文件系统本地挂载路径
|
|
@@ -25,7 +89,7 @@ module TencentCloud
|
|
|
25
89
|
# @type RemotePath: String
|
|
26
90
|
# @param Protocol: 文件系统协议类型,默认值NFS 3.0
|
|
27
91
|
# @type Protocol: String
|
|
28
|
-
# @param StorageType: 文件系统存储类型,默认值SD
|
|
92
|
+
# @param StorageType: 文件系统存储类型,默认值SD;其中 SD 为通用标准型标准型存储, HP为通用性能型存储, TB为turbo标准型, TP 为turbo性能型。
|
|
29
93
|
# @type StorageType: String
|
|
30
94
|
|
|
31
95
|
attr_accessor :LocalPath, :RemotePath, :Protocol, :StorageType
|
|
@@ -272,6 +336,30 @@ module TencentCloud
|
|
|
272
336
|
end
|
|
273
337
|
end
|
|
274
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
|
+
|
|
275
363
|
# 描述了实例的计费模式
|
|
276
364
|
class InstanceChargePrepaid < TencentCloud::Common::AbstractModel
|
|
277
365
|
# @param Period: 购买实例的时长,单位:月。取值范围:1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60。
|
|
@@ -419,11 +507,14 @@ module TencentCloud
|
|
|
419
507
|
class StorageOption < TencentCloud::Common::AbstractModel
|
|
420
508
|
# @param CFSOptions: 集群挂载CFS文件系统选项
|
|
421
509
|
# @type CFSOptions: Array
|
|
510
|
+
# @param GooseFSOptions: 集群挂在GooseFS文件系统选项
|
|
511
|
+
# @type GooseFSOptions: Array
|
|
422
512
|
|
|
423
|
-
attr_accessor :CFSOptions
|
|
513
|
+
attr_accessor :CFSOptions, :GooseFSOptions
|
|
424
514
|
|
|
425
|
-
def initialize(cfsoptions=nil)
|
|
515
|
+
def initialize(cfsoptions=nil, goosefsoptions=nil)
|
|
426
516
|
@CFSOptions = cfsoptions
|
|
517
|
+
@GooseFSOptions = goosefsoptions
|
|
427
518
|
end
|
|
428
519
|
|
|
429
520
|
def deserialize(params)
|
|
@@ -435,6 +526,14 @@ module TencentCloud
|
|
|
435
526
|
@CFSOptions << cfsoption_tmp
|
|
436
527
|
end
|
|
437
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
|
|
438
537
|
end
|
|
439
538
|
end
|
|
440
539
|
|
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.
|
|
4
|
+
version: 1.0.226
|
|
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-
|
|
11
|
+
date: 2021-12-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|