tencentcloud-sdk-thpc 1.0.224 → 1.0.225
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/v20211109/client.rb +24 -0
- data/lib/v20211109/models.rb +64 -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: ab31aa29e7d1987264e9ff5f61d4f830ef34f1ce
|
4
|
+
data.tar.gz: 3ed5e93ac49a86c71ab59e0eb94631bc48d1425a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 492040830ec6b86b6e39ab6d34e8b45380d1d54a414fbe1cd6a0adb4674923b26dc89f88bd19049dfa4468e5669d1838aa5354692ba388ece0e3bc86245d9215
|
7
|
+
data.tar.gz: b6ee85f22085a3df3d725cc128a9ae56c831360a11067c22202db0fecc5cddca527ff877f7e33e781d405822514f68fc380240fc9e5ee431ea973dabe2da0053
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.225
|
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: 文件系统本地挂载路径
|
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.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-
|
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
|