tencentcloud-sdk-thpc 3.0.451 → 3.0.452

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: c6d2a1935e901d38627a58e1a9009e243b3ded9c
4
- data.tar.gz: 98f7f4656e7bf3cb5e8d1cbbd49b3f06eb02d090
3
+ metadata.gz: 89a2655de14b05bb06e48bbd92fe97bb5a7439fd
4
+ data.tar.gz: 01f3177a825f5b41b2bfce9f3c024988106a54e1
5
5
  SHA512:
6
- metadata.gz: c614bd36b1ef867c4c82d8cd069f68de326de2146cbfaf156ae683aa55f8ebd989ca11c3227d59cc8003761191ef40774a4a1042e4d7f4237926396ae2025d78
7
- data.tar.gz: 6366a09433e750ef7187a400ab3b45e214af6c0be7254770cbd8be0c3be74747f144ff32f4237b95acce6c5d261077758d1b71bbbec7bfaafc5730f1b53de4c0
6
+ metadata.gz: 35b66ada291b46cb70c5642472234785be6f9f1877f274ce011353ca032a5dd3e4e7209399cad100ca634d6f56c6079c81b86ae6327a1df0e071e620b8da2193
7
+ data.tar.gz: 5978944354a85d192aad0a8a91dce9bd57e7b3bde00eafe346dd29a1157a7cb477ac1c3d4ae314b222c86541a0b2e7ac3150d153a09f87e6e0ddef28d91e2190
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.451
1
+ 3.0.452
@@ -149,6 +149,30 @@ module TencentCloud
149
149
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
150
  end
151
151
 
152
+ # 本接口(DescribeClusterActivities)用于查询集群活动历史记录列表。
153
+
154
+ # @param request: Request instance for DescribeClusterActivities.
155
+ # @type request: :class:`Tencentcloud::thpc::V20220401::DescribeClusterActivitiesRequest`
156
+ # @rtype: :class:`Tencentcloud::thpc::V20220401::DescribeClusterActivitiesResponse`
157
+ def DescribeClusterActivities(request)
158
+ body = send_request('DescribeClusterActivities', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = DescribeClusterActivitiesResponse.new
162
+ model.deserialize(response['Response'])
163
+ model
164
+ else
165
+ code = response['Response']['Error']['Code']
166
+ message = response['Response']['Error']['Message']
167
+ reqid = response['Response']['RequestId']
168
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
169
+ end
170
+ rescue TencentCloud::Common::TencentCloudSDKException => e
171
+ raise e
172
+ rescue StandardError => e
173
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
+ end
175
+
152
176
  # 本接口(DescribeClusters)用于查询集群列表。
153
177
 
154
178
  # @param request: Request instance for DescribeClusters.
@@ -251,6 +251,73 @@ module TencentCloud
251
251
  end
252
252
  end
253
253
 
254
+ # 符合条件的集群活动信息。
255
+ class ClusterActivity < TencentCloud::Common::AbstractModel
256
+ # @param ClusterId: 集群ID。
257
+ # @type ClusterId: String
258
+ # @param ActivityId: 集群活动ID。
259
+ # @type ActivityId: String
260
+ # @param ActivityType: 集群活动类型。
261
+ # @type ActivityType: String
262
+ # @param ActivityStatus: 集群活动状态。取值范围:<br><li>PENDING:等待运行<br><li>RUNNING:运行中<br><li>SUCCESSFUL:活动成功<br><li>PARTIALLY_SUCCESSFUL:活动部分成功<br><li>FAILED:活动失败
263
+ # @type ActivityStatus: String
264
+ # @param ActivityStatusCode: 集群活动状态码。
265
+ # 注意:此字段可能返回 null,表示取不到有效值。
266
+ # @type ActivityStatusCode: String
267
+ # @param ResultDetail: 集群活动结果详情。
268
+ # 注意:此字段可能返回 null,表示取不到有效值。
269
+ # @type ResultDetail: String
270
+ # @param Cause: 集群活动起因。
271
+ # @type Cause: String
272
+ # @param Description: 集群活动描述。
273
+ # @type Description: String
274
+ # @param RelatedNodeActivitySet: 集群活动相关节点活动集合。
275
+ # @type RelatedNodeActivitySet: Array
276
+ # @param StartTime: 集群活动开始时间。
277
+ # 注意:此字段可能返回 null,表示取不到有效值。
278
+ # @type StartTime: String
279
+ # @param EndTime: 集群活动结束时间。
280
+ # 注意:此字段可能返回 null,表示取不到有效值。
281
+ # @type EndTime: String
282
+
283
+ attr_accessor :ClusterId, :ActivityId, :ActivityType, :ActivityStatus, :ActivityStatusCode, :ResultDetail, :Cause, :Description, :RelatedNodeActivitySet, :StartTime, :EndTime
284
+
285
+ def initialize(clusterid=nil, activityid=nil, activitytype=nil, activitystatus=nil, activitystatuscode=nil, resultdetail=nil, cause=nil, description=nil, relatednodeactivityset=nil, starttime=nil, endtime=nil)
286
+ @ClusterId = clusterid
287
+ @ActivityId = activityid
288
+ @ActivityType = activitytype
289
+ @ActivityStatus = activitystatus
290
+ @ActivityStatusCode = activitystatuscode
291
+ @ResultDetail = resultdetail
292
+ @Cause = cause
293
+ @Description = description
294
+ @RelatedNodeActivitySet = relatednodeactivityset
295
+ @StartTime = starttime
296
+ @EndTime = endtime
297
+ end
298
+
299
+ def deserialize(params)
300
+ @ClusterId = params['ClusterId']
301
+ @ActivityId = params['ActivityId']
302
+ @ActivityType = params['ActivityType']
303
+ @ActivityStatus = params['ActivityStatus']
304
+ @ActivityStatusCode = params['ActivityStatusCode']
305
+ @ResultDetail = params['ResultDetail']
306
+ @Cause = params['Cause']
307
+ @Description = params['Description']
308
+ unless params['RelatedNodeActivitySet'].nil?
309
+ @RelatedNodeActivitySet = []
310
+ params['RelatedNodeActivitySet'].each do |i|
311
+ nodeactivity_tmp = NodeActivity.new
312
+ nodeactivity_tmp.deserialize(i)
313
+ @RelatedNodeActivitySet << nodeactivity_tmp
314
+ end
315
+ end
316
+ @StartTime = params['StartTime']
317
+ @EndTime = params['EndTime']
318
+ end
319
+ end
320
+
254
321
  # 集群概览信息。
255
322
  class ClusterOverview < TencentCloud::Common::AbstractModel
256
323
  # @param ClusterId: 集群ID。
@@ -645,6 +712,61 @@ module TencentCloud
645
712
  end
646
713
  end
647
714
 
715
+ # DescribeClusterActivities请求参数结构体
716
+ class DescribeClusterActivitiesRequest < TencentCloud::Common::AbstractModel
717
+ # @param ClusterId: 集群ID。通过该参数指定需要查询活动历史记录的集群。
718
+ # @type ClusterId: String
719
+ # @param Offset: 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
720
+ # @type Offset: Integer
721
+ # @param Limit: 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
722
+ # @type Limit: Integer
723
+
724
+ attr_accessor :ClusterId, :Offset, :Limit
725
+
726
+ def initialize(clusterid=nil, offset=nil, limit=nil)
727
+ @ClusterId = clusterid
728
+ @Offset = offset
729
+ @Limit = limit
730
+ end
731
+
732
+ def deserialize(params)
733
+ @ClusterId = params['ClusterId']
734
+ @Offset = params['Offset']
735
+ @Limit = params['Limit']
736
+ end
737
+ end
738
+
739
+ # DescribeClusterActivities返回参数结构体
740
+ class DescribeClusterActivitiesResponse < TencentCloud::Common::AbstractModel
741
+ # @param ClusterActivitySet: 集群活动历史记录列表。
742
+ # @type ClusterActivitySet: Array
743
+ # @param TotalCount: 集群活动历史记录数量。
744
+ # @type TotalCount: Integer
745
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
746
+ # @type RequestId: String
747
+
748
+ attr_accessor :ClusterActivitySet, :TotalCount, :RequestId
749
+
750
+ def initialize(clusteractivityset=nil, totalcount=nil, requestid=nil)
751
+ @ClusterActivitySet = clusteractivityset
752
+ @TotalCount = totalcount
753
+ @RequestId = requestid
754
+ end
755
+
756
+ def deserialize(params)
757
+ unless params['ClusterActivitySet'].nil?
758
+ @ClusterActivitySet = []
759
+ params['ClusterActivitySet'].each do |i|
760
+ clusteractivity_tmp = ClusterActivity.new
761
+ clusteractivity_tmp.deserialize(i)
762
+ @ClusterActivitySet << clusteractivity_tmp
763
+ end
764
+ end
765
+ @TotalCount = params['TotalCount']
766
+ @RequestId = params['RequestId']
767
+ end
768
+ end
769
+
648
770
  # DescribeClusters请求参数结构体
649
771
  class DescribeClustersRequest < TencentCloud::Common::AbstractModel
650
772
  # @param ClusterIds: 集群ID列表。通过该参数可以指定需要查询信息的集群列表。<br>如果您不指定该参数,则返回Limit数量以内的集群信息。
@@ -993,6 +1115,37 @@ module TencentCloud
993
1115
  end
994
1116
  end
995
1117
 
1118
+ # 节点活动信息。
1119
+ class NodeActivity < TencentCloud::Common::AbstractModel
1120
+ # @param NodeInstanceId: 节点活动所在的实例ID。
1121
+ # 注意:此字段可能返回 null,表示取不到有效值。
1122
+ # @type NodeInstanceId: String
1123
+ # @param NodeActivityStatus: 节点活动状态。取值范围:<br><li>RUNNING:运行中<br><li>SUCCESSFUL:活动成功<br><li>FAILED:活动失败
1124
+ # @type NodeActivityStatus: String
1125
+ # @param NodeActivityStatusCode: 节点活动状态码。
1126
+ # 注意:此字段可能返回 null,表示取不到有效值。
1127
+ # @type NodeActivityStatusCode: String
1128
+ # @param NodeActivityStatusReason: 节点活动状态原因。
1129
+ # 注意:此字段可能返回 null,表示取不到有效值。
1130
+ # @type NodeActivityStatusReason: String
1131
+
1132
+ attr_accessor :NodeInstanceId, :NodeActivityStatus, :NodeActivityStatusCode, :NodeActivityStatusReason
1133
+
1134
+ def initialize(nodeinstanceid=nil, nodeactivitystatus=nil, nodeactivitystatuscode=nil, nodeactivitystatusreason=nil)
1135
+ @NodeInstanceId = nodeinstanceid
1136
+ @NodeActivityStatus = nodeactivitystatus
1137
+ @NodeActivityStatusCode = nodeactivitystatuscode
1138
+ @NodeActivityStatusReason = nodeactivitystatusreason
1139
+ end
1140
+
1141
+ def deserialize(params)
1142
+ @NodeInstanceId = params['NodeInstanceId']
1143
+ @NodeActivityStatus = params['NodeActivityStatus']
1144
+ @NodeActivityStatusCode = params['NodeActivityStatusCode']
1145
+ @NodeActivityStatusReason = params['NodeActivityStatusReason']
1146
+ end
1147
+ end
1148
+
996
1149
  # 描述了实例的抽象位置
997
1150
  class Placement < TencentCloud::Common::AbstractModel
998
1151
  # @param Zone: 实例所属的可用区名称。该参数可以通过调用 [DescribeZones](https://cloud.tencent.com/document/product/213/15707) 的返回值中的Zone字段来获取。
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.451
4
+ version: 3.0.452
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-14 00:00:00.000000000 Z
11
+ date: 2022-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common