tencentcloud-sdk-tke 1.0.247 → 1.0.248
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/v20180525/client.rb +24 -0
- data/lib/v20180525/models.rb +107 -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: 84331f706b2ab1f5ef2552042bd2a7628dc2eaa7
|
4
|
+
data.tar.gz: 2b854e9c9d6d388898c6dfcc68203f6960841bef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebd9036e20efc4580f3329486b18fe68c9cf2a76a2e8d1ac1eef279e0faff9dd106c731d4d9b7c8c71ee9c59600631900638664d5749352af6e673b08b97d6bc
|
7
|
+
data.tar.gz: 933cbf81e2bbb1db7b1e29ed7a8e32b83e0390f6a5b0f92e167e2394cdb8212dcfc0e90d828a8ffe041b2ed10874a5a83dd30ed76679081a9684e93e95e62f33
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.248
|
data/lib/v20180525/client.rb
CHANGED
@@ -1181,6 +1181,30 @@ module TencentCloud
|
|
1181
1181
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1182
1182
|
end
|
1183
1183
|
|
1184
|
+
# 查看集群状态列表
|
1185
|
+
|
1186
|
+
# @param request: Request instance for DescribeClusterStatus.
|
1187
|
+
# @type request: :class:`Tencentcloud::tke::V20180525::DescribeClusterStatusRequest`
|
1188
|
+
# @rtype: :class:`Tencentcloud::tke::V20180525::DescribeClusterStatusResponse`
|
1189
|
+
def DescribeClusterStatus(request)
|
1190
|
+
body = send_request('DescribeClusterStatus', request.serialize)
|
1191
|
+
response = JSON.parse(body)
|
1192
|
+
if response['Response'].key?('Error') == false
|
1193
|
+
model = DescribeClusterStatusResponse.new
|
1194
|
+
model.deserialize(response['Response'])
|
1195
|
+
model
|
1196
|
+
else
|
1197
|
+
code = response['Response']['Error']['Code']
|
1198
|
+
message = response['Response']['Error']['Message']
|
1199
|
+
reqid = response['Response']['RequestId']
|
1200
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1201
|
+
end
|
1202
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1203
|
+
raise e
|
1204
|
+
rescue StandardError => e
|
1205
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1206
|
+
end
|
1207
|
+
|
1184
1208
|
# 查询集群列表
|
1185
1209
|
|
1186
1210
|
# @param request: Request instance for DescribeClusters.
|
data/lib/v20180525/models.rb
CHANGED
@@ -1075,6 +1075,66 @@ module TencentCloud
|
|
1075
1075
|
end
|
1076
1076
|
end
|
1077
1077
|
|
1078
|
+
# 集群状态信息
|
1079
|
+
class ClusterStatus < TencentCloud::Common::AbstractModel
|
1080
|
+
# @param ClusterId: 集群Id
|
1081
|
+
# @type ClusterId: String
|
1082
|
+
# @param ClusterState: 集群状态
|
1083
|
+
# @type ClusterState: String
|
1084
|
+
# @param ClusterInstanceState: 集群下机器实例的状态
|
1085
|
+
# @type ClusterInstanceState: String
|
1086
|
+
# @param ClusterBMonitor: 集群是否开启监控
|
1087
|
+
# @type ClusterBMonitor: Boolean
|
1088
|
+
# @param ClusterInitNodeNum: 集群创建中的节点数,-1表示获取节点状态超时,-2表示获取节点状态失败
|
1089
|
+
# @type ClusterInitNodeNum: Integer
|
1090
|
+
# @param ClusterRunningNodeNum: 集群运行中的节点数,-1表示获取节点状态超时,-2表示获取节点状态失败
|
1091
|
+
# @type ClusterRunningNodeNum: Integer
|
1092
|
+
# @param ClusterFailedNodeNum: 集群异常的节点数,-1表示获取节点状态超时,-2表示获取节点状态失败
|
1093
|
+
# @type ClusterFailedNodeNum: Integer
|
1094
|
+
# @param ClusterClosedNodeNum: 集群已关机的节点数,-1表示获取节点状态超时,-2表示获取节点状态失败
|
1095
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1096
|
+
# @type ClusterClosedNodeNum: Integer
|
1097
|
+
# @param ClusterClosingNodeNum: 集群关机中的节点数,-1表示获取节点状态超时,-2表示获取节点状态失败
|
1098
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1099
|
+
# @type ClusterClosingNodeNum: Integer
|
1100
|
+
# @param ClusterDeletionProtection: 集群是否开启删除保护
|
1101
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1102
|
+
# @type ClusterDeletionProtection: Boolean
|
1103
|
+
# @param ClusterAuditEnabled: 集群是否可审计
|
1104
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1105
|
+
# @type ClusterAuditEnabled: Boolean
|
1106
|
+
|
1107
|
+
attr_accessor :ClusterId, :ClusterState, :ClusterInstanceState, :ClusterBMonitor, :ClusterInitNodeNum, :ClusterRunningNodeNum, :ClusterFailedNodeNum, :ClusterClosedNodeNum, :ClusterClosingNodeNum, :ClusterDeletionProtection, :ClusterAuditEnabled
|
1108
|
+
|
1109
|
+
def initialize(clusterid=nil, clusterstate=nil, clusterinstancestate=nil, clusterbmonitor=nil, clusterinitnodenum=nil, clusterrunningnodenum=nil, clusterfailednodenum=nil, clusterclosednodenum=nil, clusterclosingnodenum=nil, clusterdeletionprotection=nil, clusterauditenabled=nil)
|
1110
|
+
@ClusterId = clusterid
|
1111
|
+
@ClusterState = clusterstate
|
1112
|
+
@ClusterInstanceState = clusterinstancestate
|
1113
|
+
@ClusterBMonitor = clusterbmonitor
|
1114
|
+
@ClusterInitNodeNum = clusterinitnodenum
|
1115
|
+
@ClusterRunningNodeNum = clusterrunningnodenum
|
1116
|
+
@ClusterFailedNodeNum = clusterfailednodenum
|
1117
|
+
@ClusterClosedNodeNum = clusterclosednodenum
|
1118
|
+
@ClusterClosingNodeNum = clusterclosingnodenum
|
1119
|
+
@ClusterDeletionProtection = clusterdeletionprotection
|
1120
|
+
@ClusterAuditEnabled = clusterauditenabled
|
1121
|
+
end
|
1122
|
+
|
1123
|
+
def deserialize(params)
|
1124
|
+
@ClusterId = params['ClusterId']
|
1125
|
+
@ClusterState = params['ClusterState']
|
1126
|
+
@ClusterInstanceState = params['ClusterInstanceState']
|
1127
|
+
@ClusterBMonitor = params['ClusterBMonitor']
|
1128
|
+
@ClusterInitNodeNum = params['ClusterInitNodeNum']
|
1129
|
+
@ClusterRunningNodeNum = params['ClusterRunningNodeNum']
|
1130
|
+
@ClusterFailedNodeNum = params['ClusterFailedNodeNum']
|
1131
|
+
@ClusterClosedNodeNum = params['ClusterClosedNodeNum']
|
1132
|
+
@ClusterClosingNodeNum = params['ClusterClosingNodeNum']
|
1133
|
+
@ClusterDeletionProtection = params['ClusterDeletionProtection']
|
1134
|
+
@ClusterAuditEnabled = params['ClusterAuditEnabled']
|
1135
|
+
end
|
1136
|
+
end
|
1137
|
+
|
1078
1138
|
# 集群版本信息
|
1079
1139
|
class ClusterVersion < TencentCloud::Common::AbstractModel
|
1080
1140
|
# @param ClusterId: 集群ID
|
@@ -3527,6 +3587,53 @@ module TencentCloud
|
|
3527
3587
|
end
|
3528
3588
|
end
|
3529
3589
|
|
3590
|
+
# DescribeClusterStatus请求参数结构体
|
3591
|
+
class DescribeClusterStatusRequest < TencentCloud::Common::AbstractModel
|
3592
|
+
# @param ClusterIds: 集群ID列表,不传默认拉取所有集群
|
3593
|
+
# @type ClusterIds: Array
|
3594
|
+
|
3595
|
+
attr_accessor :ClusterIds
|
3596
|
+
|
3597
|
+
def initialize(clusterids=nil)
|
3598
|
+
@ClusterIds = clusterids
|
3599
|
+
end
|
3600
|
+
|
3601
|
+
def deserialize(params)
|
3602
|
+
@ClusterIds = params['ClusterIds']
|
3603
|
+
end
|
3604
|
+
end
|
3605
|
+
|
3606
|
+
# DescribeClusterStatus返回参数结构体
|
3607
|
+
class DescribeClusterStatusResponse < TencentCloud::Common::AbstractModel
|
3608
|
+
# @param ClusterStatusSet: 集群状态列表
|
3609
|
+
# @type ClusterStatusSet: Array
|
3610
|
+
# @param TotalCount: 集群个数
|
3611
|
+
# @type TotalCount: Integer
|
3612
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3613
|
+
# @type RequestId: String
|
3614
|
+
|
3615
|
+
attr_accessor :ClusterStatusSet, :TotalCount, :RequestId
|
3616
|
+
|
3617
|
+
def initialize(clusterstatusset=nil, totalcount=nil, requestid=nil)
|
3618
|
+
@ClusterStatusSet = clusterstatusset
|
3619
|
+
@TotalCount = totalcount
|
3620
|
+
@RequestId = requestid
|
3621
|
+
end
|
3622
|
+
|
3623
|
+
def deserialize(params)
|
3624
|
+
unless params['ClusterStatusSet'].nil?
|
3625
|
+
@ClusterStatusSet = []
|
3626
|
+
params['ClusterStatusSet'].each do |i|
|
3627
|
+
clusterstatus_tmp = ClusterStatus.new
|
3628
|
+
clusterstatus_tmp.deserialize(i)
|
3629
|
+
@ClusterStatusSet << clusterstatus_tmp
|
3630
|
+
end
|
3631
|
+
end
|
3632
|
+
@TotalCount = params['TotalCount']
|
3633
|
+
@RequestId = params['RequestId']
|
3634
|
+
end
|
3635
|
+
end
|
3636
|
+
|
3530
3637
|
# DescribeClusters请求参数结构体
|
3531
3638
|
class DescribeClustersRequest < TencentCloud::Common::AbstractModel
|
3532
3639
|
# @param ClusterIds: 集群ID列表(为空时,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-tke
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.248
|
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-01-
|
11
|
+
date: 2022-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|