tencentcloud-sdk-thpc 1.0.224 → 1.0.228

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: 7fbbed0b6f5cbf9cd97009ac553e167598a5eafd
4
- data.tar.gz: 55b985af5c03ddfae0da0f216bdf558be8df2c1d
3
+ metadata.gz: 39bca80d855220ddbdf2689242295d3808e1c117
4
+ data.tar.gz: a9d092b81a8653a9dbc345dc4d955f3850c200cb
5
5
  SHA512:
6
- metadata.gz: ac83d8c1b61559ffdc937db16e567ed6dd842c8cef81ac28cc93a4c9190ad5fb753d1a44bee1768309b45a9b1b17ce839a2be450880a710cf5ca111b653608f3
7
- data.tar.gz: 8f0eaaedc2398935fe1e7046c5a114da7690a163be478d9543ccfc449d632db1203969261beb14b8065a1f86d1c4aea4fcde147c338cc9f88886b6fefa37b7e7
6
+ metadata.gz: 4fcce9ba0f764c1964aa25c4a2cac9ea2b789d69ac562dbca7b767630340bebc5dcd7a77bcbfe881f91c5bd2aedd2d67098fe57840e135d8ff009c2b9b068a36
7
+ data.tar.gz: fdac2f3ba5519cfe155b5b48c3537358751e5b07d6e87fd6181d6c032f210c639ecceef863cf14eb12f7d9daa8b509eadf87834b9b0a2b7aaffc6de92f86c9f7
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.224
1
+ 1.0.228
@@ -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,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
@@ -118,7 +182,7 @@ module TencentCloud
118
182
  # @type ComputeNode: :class:`Tencentcloud::Thpc.v20211109.models.ComputeNode`
119
183
  # @param ComputeNodeCount: 指定计算节点的数量。默认取值:0。
120
184
  # @type ComputeNodeCount: Integer
121
- # @param SchedulerType: 调度器类型。目前仅支持SGE调度器。
185
+ # @param SchedulerType: 调度器类型。<br><li>SGE:SGE调度器。
122
186
  # @type SchedulerType: String
123
187
  # @param ImageId: 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx`。目前仅支持公有镜像和自定义镜像。
124
188
  # @type ImageId: String
@@ -136,7 +200,7 @@ module TencentCloud
136
200
  # 如果检查通过,则返回RequestId.
137
201
  # false(默认):发送正常请求,通过检查后直接创建实例
138
202
  # @type DryRun: Boolean
139
- # @param AccountType: 域名字服务类型。目前仅支持NIS域名字服务。
203
+ # @param AccountType: 域名字服务类型。<br><li>NIS:NIS域名字服务。
140
204
  # @type AccountType: String
141
205
  # @param ClusterName: 集群显示名称。
142
206
  # @type ClusterName: String
@@ -203,6 +267,7 @@ module TencentCloud
203
267
  # CreateCluster返回参数结构体
204
268
  class CreateClusterResponse < TencentCloud::Common::AbstractModel
205
269
  # @param ClusterId: 集群ID。
270
+ # 注意:此字段可能返回 null,表示取不到有效值。
206
271
  # @type ClusterId: String
207
272
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
208
273
  # @type RequestId: String
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.224
4
+ version: 1.0.228
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-15 00:00:00.000000000 Z
11
+ date: 2021-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common