tencentcloud-sdk-tke 3.0.1160 → 3.0.1162
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/tencentcloud-sdk-tke.rb +3 -3
- data/lib/v20180525/client.rb +2 -2
- data/lib/v20180525/models.rb +94 -55
- data/lib/v20220501/client.rb +24 -0
- data/lib/v20220501/models.rb +177 -0
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 30c1c5bddacbc57b60b8f52d055deedd5eae2575
|
|
4
|
+
data.tar.gz: ea917ac122fca3a698d077143f094818f30737b8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 425d200f5b2620f0194175b9a0c48919f3c517b30978fad3e3f20356429f98dc5e66444924fc48de3df78aff3c7389aed269a9be7f0b2258aba4eeeeaf95293b
|
|
7
|
+
data.tar.gz: e64f120f57f3f5a86119429a4fa136db15ba06ec8104ba624e6d46bfb3fbb293598b0ac10cd6c63954a8230aca1e220b6d97ca98aaa596f59b392f59e868c77f
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1162
|
data/lib/tencentcloud-sdk-tke.rb
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
require 'tencentcloud-sdk-common'
|
|
4
4
|
|
|
5
|
-
require_relative 'v20180525/client'
|
|
6
|
-
require_relative 'v20180525/models'
|
|
7
|
-
|
|
8
5
|
require_relative 'v20220501/client'
|
|
9
6
|
require_relative 'v20220501/models'
|
|
10
7
|
|
|
8
|
+
require_relative 'v20180525/client'
|
|
9
|
+
require_relative 'v20180525/models'
|
|
10
|
+
|
|
11
11
|
module TencentCloud
|
|
12
12
|
module Tke
|
|
13
13
|
end
|
data/lib/v20180525/client.rb
CHANGED
|
@@ -4493,7 +4493,7 @@ module TencentCloud
|
|
|
4493
4493
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
4494
4494
|
end
|
|
4495
4495
|
|
|
4496
|
-
#
|
|
4496
|
+
# 修改集群属性,至少选择一个参数更新
|
|
4497
4497
|
|
|
4498
4498
|
# @param request: Request instance for ModifyClusterAttribute.
|
|
4499
4499
|
# @type request: :class:`Tencentcloud::tke::V20180525::ModifyClusterAttributeRequest`
|
|
@@ -4613,7 +4613,7 @@ module TencentCloud
|
|
|
4613
4613
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
4614
4614
|
end
|
|
4615
4615
|
|
|
4616
|
-
#
|
|
4616
|
+
# 修改集群及节点池维度运行时配置
|
|
4617
4617
|
|
|
4618
4618
|
# @param request: Request instance for ModifyClusterRuntimeConfig.
|
|
4619
4619
|
# @type request: :class:`Tencentcloud::tke::V20180525::ModifyClusterRuntimeConfigRequest`
|
data/lib/v20180525/models.rb
CHANGED
|
@@ -91,9 +91,9 @@ module TencentCloud
|
|
|
91
91
|
|
|
92
92
|
# AddExistedInstances请求参数结构体
|
|
93
93
|
class AddExistedInstancesRequest < TencentCloud::Common::AbstractModel
|
|
94
|
-
# @param ClusterId: 集群ID
|
|
94
|
+
# @param ClusterId: 集群ID(请登录 [TKE 控制台](https://console.cloud.tencent.com/tke2) 获取集群 ID )
|
|
95
95
|
# @type ClusterId: String
|
|
96
|
-
# @param InstanceIds:
|
|
96
|
+
# @param InstanceIds: 实例列表,不支持竞价实例(请登录 [CVM控制台](https://console.cloud.tencent.com/cvm) 获取待添加节点ID )
|
|
97
97
|
# @type InstanceIds: Array
|
|
98
98
|
# @param InstanceAdvancedSettings: 实例额外需要设置参数信息(默认值)
|
|
99
99
|
# @type InstanceAdvancedSettings: :class:`Tencentcloud::Tke.v20180525.models.InstanceAdvancedSettings`
|
|
@@ -206,7 +206,7 @@ module TencentCloud
|
|
|
206
206
|
# @type ClusterId: String
|
|
207
207
|
# @param NodePoolId: 节点池id
|
|
208
208
|
# @type NodePoolId: String
|
|
209
|
-
# @param InstanceIds: 节点id
|
|
209
|
+
# @param InstanceIds: 节点id,获取参考 https://cloud.tencent.com/document/product/213/15728
|
|
210
210
|
# @type InstanceIds: Array
|
|
211
211
|
|
|
212
212
|
attr_accessor :ClusterId, :NodePoolId, :InstanceIds
|
|
@@ -652,17 +652,22 @@ module TencentCloud
|
|
|
652
652
|
|
|
653
653
|
# CheckInstancesUpgradeAble请求参数结构体
|
|
654
654
|
class CheckInstancesUpgradeAbleRequest < TencentCloud::Common::AbstractModel
|
|
655
|
-
# @param ClusterId: 集群ID
|
|
655
|
+
# @param ClusterId: 集群ID(请登录 [TKE 控制台](https://console.cloud.tencent.com/tke2) 获取集群 ID )
|
|
656
656
|
# @type ClusterId: String
|
|
657
657
|
# @param InstanceIds: 节点列表,空为全部节点
|
|
658
658
|
# @type InstanceIds: Array
|
|
659
659
|
# @param UpgradeType: 升级类型,枚举值:reset(重装升级,支持大版本和小版本),hot(原地滚动小版本升级),major(原地滚动大版本升级)
|
|
660
660
|
# @type UpgradeType: String
|
|
661
|
-
# @param Offset:
|
|
661
|
+
# @param Offset: 偏移量,默认为0。关于 Offset 的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
|
662
662
|
# @type Offset: Integer
|
|
663
|
-
# @param Limit:
|
|
663
|
+
# @param Limit: 返回数量,默认为20,最大值为100。关于Limit的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
|
664
664
|
# @type Limit: Integer
|
|
665
|
-
# @param Filter:
|
|
665
|
+
# @param Filter: 过滤条件列表,Name 可选值为ip、instanceId、hostname、label
|
|
666
|
+
|
|
667
|
+
# - Name 为 ip 时,Value 为待查询节点 ip
|
|
668
|
+
# - Name 为 hostname 时,Value 为待查询节点名称
|
|
669
|
+
# - Name 为 label 时,Value 为待查询 K8S 节点 label
|
|
670
|
+
# - Name 为 instanceId 时,Value 为 待查询节点 id
|
|
666
671
|
# @type Filter: Array
|
|
667
672
|
|
|
668
673
|
attr_accessor :ClusterId, :InstanceIds, :UpgradeType, :Offset, :Limit, :Filter
|
|
@@ -781,15 +786,15 @@ module TencentCloud
|
|
|
781
786
|
# @type ContainerRuntime: String
|
|
782
787
|
# @param CreatedTime: 创建时间
|
|
783
788
|
# @type CreatedTime: String
|
|
784
|
-
# @param DeletionProtection:
|
|
789
|
+
# @param DeletionProtection: 集群删除保护开关,打开:true,关闭:false
|
|
785
790
|
# @type DeletionProtection: Boolean
|
|
786
|
-
# @param EnableExternalNode:
|
|
791
|
+
# @param EnableExternalNode: 集群是否开启第三方节点支持,开启:true,关闭:false
|
|
787
792
|
# @type EnableExternalNode: Boolean
|
|
788
793
|
# @param ClusterLevel: 集群等级,针对托管集群生效
|
|
789
794
|
# @type ClusterLevel: String
|
|
790
|
-
# @param AutoUpgradeClusterLevel:
|
|
795
|
+
# @param AutoUpgradeClusterLevel: 自动变配集群等级,针对托管集群生效。开启:true,关闭:false
|
|
791
796
|
# @type AutoUpgradeClusterLevel: Boolean
|
|
792
|
-
# @param QGPUShareEnable: 是否开启QGPU
|
|
797
|
+
# @param QGPUShareEnable: 是否开启QGPU共享,开启:true,关闭:false
|
|
793
798
|
# @type QGPUShareEnable: Boolean
|
|
794
799
|
# @param RuntimeVersion: 运行时版本
|
|
795
800
|
# @type RuntimeVersion: String
|
|
@@ -1082,10 +1087,10 @@ module TencentCloud
|
|
|
1082
1087
|
# @param MaxTotalUnreadyPercentage: 未就绪节点的最大百分比,此后CA会停止操作
|
|
1083
1088
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
1084
1089
|
# @type MaxTotalUnreadyPercentage: Integer
|
|
1085
|
-
# @param ScaleDownUnreadyTime:
|
|
1090
|
+
# @param ScaleDownUnreadyTime: 表示未准备就绪的节点在有资格进行缩减之前应该停留多少分钟
|
|
1086
1091
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
1087
1092
|
# @type ScaleDownUnreadyTime: Integer
|
|
1088
|
-
# @param UnregisteredNodeRemovalTime: CA删除未在Kubernetes
|
|
1093
|
+
# @param UnregisteredNodeRemovalTime: CA删除未在Kubernetes中注册的节点之前等待的分钟数
|
|
1089
1094
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
1090
1095
|
# @type UnregisteredNodeRemovalTime: Integer
|
|
1091
1096
|
|
|
@@ -1847,9 +1852,9 @@ module TencentCloud
|
|
|
1847
1852
|
class CreateBackupStorageLocationRequest < TencentCloud::Common::AbstractModel
|
|
1848
1853
|
# @param StorageRegion: 存储仓库所属地域,比如COS广州(ap-guangzhou)
|
|
1849
1854
|
# @type StorageRegion: String
|
|
1850
|
-
# @param Bucket: 对象存储桶名称,如果是COS必须是tke-backup
|
|
1855
|
+
# @param Bucket: 对象存储桶名称,如果是COS必须是tke-backup前缀开头,字符长度是19
|
|
1851
1856
|
# @type Bucket: String
|
|
1852
|
-
# @param Name:
|
|
1857
|
+
# @param Name: 备份仓库名称,字符长度为63
|
|
1853
1858
|
# @type Name: String
|
|
1854
1859
|
# @param Provider: 存储服务提供方,默认腾讯云
|
|
1855
1860
|
# @type Provider: String
|
|
@@ -1939,13 +1944,13 @@ module TencentCloud
|
|
|
1939
1944
|
class CreateClusterEndpointRequest < TencentCloud::Common::AbstractModel
|
|
1940
1945
|
# @param ClusterId: 集群ID
|
|
1941
1946
|
# @type ClusterId: String
|
|
1942
|
-
# @param SubnetId: 集群端口所在的子网ID (仅在开启非外网访问时需要填,必须为集群所在VPC内的子网)
|
|
1947
|
+
# @param SubnetId: 集群端口所在的子网ID (仅在开启非外网访问时需要填,必须为集群所在VPC内的子网)。获取方式:https://cloud.tencent.com/document/product/215/15784
|
|
1943
1948
|
# @type SubnetId: String
|
|
1944
1949
|
# @param IsExtranet: 是否为外网访问(TRUE 外网访问 FALSE 内网访问,默认值: FALSE)
|
|
1945
1950
|
# @type IsExtranet: Boolean
|
|
1946
1951
|
# @param Domain: 设置域名
|
|
1947
1952
|
# @type Domain: String
|
|
1948
|
-
# @param SecurityGroup: 使用的安全组,只有外网访问需要传递(开启外网访问且不使用已有clb
|
|
1953
|
+
# @param SecurityGroup: 使用的安全组,只有外网访问需要传递(开启外网访问且不使用已有clb时必传)。获取方式:https://cloud.tencent.com/document/api/215/15808
|
|
1949
1954
|
# @type SecurityGroup: String
|
|
1950
1955
|
# @param ExtensiveParameters: 创建lb参数,只有外网访问需要设置,是一个json格式化后的字符串:{"InternetAccessible":{"InternetChargeType":"TRAFFIC_POSTPAID_BY_HOUR","InternetMaxBandwidthOut":200},"VipIsp":"","BandwidthPackageId":""}。
|
|
1951
1956
|
# 各个参数意义:
|
|
@@ -4100,22 +4105,25 @@ module TencentCloud
|
|
|
4100
4105
|
|
|
4101
4106
|
# DeleteClusterInstances请求参数结构体
|
|
4102
4107
|
class DeleteClusterInstancesRequest < TencentCloud::Common::AbstractModel
|
|
4103
|
-
# @param ClusterId: 集群ID
|
|
4108
|
+
# @param ClusterId: 集群ID(请登录 [TKE 控制台](https://console.cloud.tencent.com/tke2) 获取集群 ID )
|
|
4104
4109
|
# @type ClusterId: String
|
|
4105
|
-
# @param InstanceIds: 主机InstanceId列表
|
|
4110
|
+
# @param InstanceIds: 主机 InstanceId 列表
|
|
4106
4111
|
# @type InstanceIds: Array
|
|
4107
4112
|
# @param InstanceDeleteMode: 集群实例删除时的策略:terminate(销毁实例,仅支持按量计费云主机实例) retain (仅移除,保留实例)
|
|
4108
4113
|
# @type InstanceDeleteMode: String
|
|
4109
4114
|
# @param ForceDelete: 是否强制删除(当节点在初始化时,可以指定参数为TRUE)
|
|
4110
4115
|
# @type ForceDelete: Boolean
|
|
4116
|
+
# @param ResourceDeleteOptions: 集群删除时资源的删除策略,目前支持CBS(默认保留CBS)
|
|
4117
|
+
# @type ResourceDeleteOptions: Array
|
|
4111
4118
|
|
|
4112
|
-
attr_accessor :ClusterId, :InstanceIds, :InstanceDeleteMode, :ForceDelete
|
|
4119
|
+
attr_accessor :ClusterId, :InstanceIds, :InstanceDeleteMode, :ForceDelete, :ResourceDeleteOptions
|
|
4113
4120
|
|
|
4114
|
-
def initialize(clusterid=nil, instanceids=nil, instancedeletemode=nil, forcedelete=nil)
|
|
4121
|
+
def initialize(clusterid=nil, instanceids=nil, instancedeletemode=nil, forcedelete=nil, resourcedeleteoptions=nil)
|
|
4115
4122
|
@ClusterId = clusterid
|
|
4116
4123
|
@InstanceIds = instanceids
|
|
4117
4124
|
@InstanceDeleteMode = instancedeletemode
|
|
4118
4125
|
@ForceDelete = forcedelete
|
|
4126
|
+
@ResourceDeleteOptions = resourcedeleteoptions
|
|
4119
4127
|
end
|
|
4120
4128
|
|
|
4121
4129
|
def deserialize(params)
|
|
@@ -4123,6 +4131,14 @@ module TencentCloud
|
|
|
4123
4131
|
@InstanceIds = params['InstanceIds']
|
|
4124
4132
|
@InstanceDeleteMode = params['InstanceDeleteMode']
|
|
4125
4133
|
@ForceDelete = params['ForceDelete']
|
|
4134
|
+
unless params['ResourceDeleteOptions'].nil?
|
|
4135
|
+
@ResourceDeleteOptions = []
|
|
4136
|
+
params['ResourceDeleteOptions'].each do |i|
|
|
4137
|
+
resourcedeleteoption_tmp = ResourceDeleteOption.new
|
|
4138
|
+
resourcedeleteoption_tmp.deserialize(i)
|
|
4139
|
+
@ResourceDeleteOptions << resourcedeleteoption_tmp
|
|
4140
|
+
end
|
|
4141
|
+
end
|
|
4126
4142
|
end
|
|
4127
4143
|
end
|
|
4128
4144
|
|
|
@@ -5170,9 +5186,9 @@ module TencentCloud
|
|
|
5170
5186
|
|
|
5171
5187
|
# DescribeAvailableClusterVersion请求参数结构体
|
|
5172
5188
|
class DescribeAvailableClusterVersionRequest < TencentCloud::Common::AbstractModel
|
|
5173
|
-
# @param ClusterId: 集群 Id
|
|
5189
|
+
# @param ClusterId: 集群 Id。若只查询某个集群可升级的版本,需填写此项,与ClusterIds 参数二选一。
|
|
5174
5190
|
# @type ClusterId: String
|
|
5175
|
-
# @param ClusterIds: 集群 Id
|
|
5191
|
+
# @param ClusterIds: 集群 Id 列表。若查询多个集群可升级的版本,需填写此项,与ClusterId 参数二选一。
|
|
5176
5192
|
# @type ClusterIds: Array
|
|
5177
5193
|
|
|
5178
5194
|
attr_accessor :ClusterId, :ClusterIds
|
|
@@ -5637,7 +5653,7 @@ module TencentCloud
|
|
|
5637
5653
|
|
|
5638
5654
|
# DescribeClusterEndpointStatus返回参数结构体
|
|
5639
5655
|
class DescribeClusterEndpointStatusResponse < TencentCloud::Common::AbstractModel
|
|
5640
|
-
# @param Status: 查询集群访问端口状态(Created 开启成功,Creating 开启中,NotFound
|
|
5656
|
+
# @param Status: 查询集群访问端口状态(Created 开启成功,Creating 开启中,NotFound 未开启,CreateFailed 开启失败)
|
|
5641
5657
|
# @type Status: String
|
|
5642
5658
|
# @param ErrorMsg: 开启访问入口失败信息
|
|
5643
5659
|
# @type ErrorMsg: String
|
|
@@ -5883,15 +5899,20 @@ module TencentCloud
|
|
|
5883
5899
|
|
|
5884
5900
|
# DescribeClusterInstances请求参数结构体
|
|
5885
5901
|
class DescribeClusterInstancesRequest < TencentCloud::Common::AbstractModel
|
|
5886
|
-
# @param ClusterId: 集群ID
|
|
5902
|
+
# @param ClusterId: 集群ID(请登录 [TKE 控制台](https://console.cloud.tencent.com/tke2) 获取集群 ID )
|
|
5887
5903
|
# @type ClusterId: String
|
|
5888
5904
|
# @param Offset: 偏移量,默认为0。关于Offset的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
|
5889
5905
|
# @type Offset: Integer
|
|
5890
5906
|
# @param Limit: 返回数量,默认为20,最大值为100。关于Limit的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
|
5891
5907
|
# @type Limit: Integer
|
|
5892
|
-
# @param InstanceIds: 需要获取的节点实例
|
|
5908
|
+
# @param InstanceIds: 需要获取的节点实例 ID 列表。如果为空,表示拉取集群下所有节点实例。普通节点用 CVM ID(如 ins-1cghhuuu ),原生节点用节点池内机器 ID (如 np-1ade4uid-0a2dc )。
|
|
5893
5909
|
# @type InstanceIds: Array
|
|
5894
|
-
# @param InstanceRole:
|
|
5910
|
+
# @param InstanceRole: 节点角色,默认为WORKER类型
|
|
5911
|
+
|
|
5912
|
+
# - WOKRER 集群内常规计算节点
|
|
5913
|
+
# - MASTER 独立集群控制面组件节点
|
|
5914
|
+
# - ETCD 独立集群 etcd 存储节点
|
|
5915
|
+
# - MASTER_ETCD 独立集群控制面、etcd 共同部署的 master 节点
|
|
5895
5916
|
# @type InstanceRole: String
|
|
5896
5917
|
# @param Filters: 过滤条件列表;Name的可选值为nodepool-id、nodepool-instance-type;Name为nodepool-id表示根据节点池id过滤机器,Value的值为具体的节点池id,Name为nodepool-instance-type表示节点加入节点池的方式,Value的值为MANUALLY_ADDED(手动加入节点池)、AUTOSCALING_ADDED(伸缩组扩容方式加入节点池)、ALL(手动加入节点池 和 伸缩组扩容方式加入节点池)
|
|
5897
5918
|
# @type Filters: Array
|
|
@@ -6805,7 +6826,7 @@ module TencentCloud
|
|
|
6805
6826
|
# @type Limit: Integer
|
|
6806
6827
|
# @param Filters: · "Name":"ClusterName","Values": ["test"] 按照【集群名】进行过滤。 类型:String 必选:否 · "Name":"ClusterType","Values": ["MANAGED_CLUSTER"] 按照【集群类型】进行过滤。 类型:String 必选:否 · "Name":"ClusterStatus","Values": ["Running"] 按照【集群状态】进行过滤。 类型:String 必选:否 · "Name":"vpc-id","Values": ["vpc-2wds9k9p"] 按照【VPC】进行过滤。 类型:String 必选:否 · "Name":"tag-key","Values": ["testKey"] 按照【标签键】进行过滤。 类型:String 必选:否 · "Name":"tag-value","Values": ["testValue"] 按照【标签值】进行过滤。 类型:String 必选:否 · "Name":"Tags","Values": ["product:tke"] 按照【标签键值对】进行过滤。 类型:String 必选:否
|
|
6807
6828
|
# @type Filters: Array
|
|
6808
|
-
# @param ClusterType:
|
|
6829
|
+
# @param ClusterType: 集群类型,托管集群:MANAGED_CLUSTER,独立集群:INDEPENDENT_CLUSTER。
|
|
6809
6830
|
# @type ClusterType: String
|
|
6810
6831
|
|
|
6811
6832
|
attr_accessor :ClusterIds, :Offset, :Limit, :Filters, :ClusterType
|
|
@@ -10018,11 +10039,11 @@ module TencentCloud
|
|
|
10018
10039
|
class DescribeResourceUsageResponse < TencentCloud::Common::AbstractModel
|
|
10019
10040
|
# @param CRDUsage: CRD使用量
|
|
10020
10041
|
# @type CRDUsage: :class:`Tencentcloud::Tke.v20180525.models.ResourceUsage`
|
|
10021
|
-
# @param PodUsage: Pod
|
|
10042
|
+
# @param PodUsage: Pod使用量,单位:个数
|
|
10022
10043
|
# @type PodUsage: Integer
|
|
10023
|
-
# @param RSUsage: ReplicaSet
|
|
10044
|
+
# @param RSUsage: ReplicaSet使用量,单位:个数
|
|
10024
10045
|
# @type RSUsage: Integer
|
|
10025
|
-
# @param ConfigMapUsage: ConfigMap
|
|
10046
|
+
# @param ConfigMapUsage: ConfigMap使用量,单位:个数
|
|
10026
10047
|
# @type ConfigMapUsage: Integer
|
|
10027
10048
|
# @param OtherUsage: 其他资源使用量
|
|
10028
10049
|
# @type OtherUsage: :class:`Tencentcloud::Tke.v20180525.models.ResourceUsage`
|
|
@@ -12106,7 +12127,7 @@ module TencentCloud
|
|
|
12106
12127
|
|
|
12107
12128
|
# GetClusterLevelPrice请求参数结构体
|
|
12108
12129
|
class GetClusterLevelPriceRequest < TencentCloud::Common::AbstractModel
|
|
12109
|
-
# @param ClusterLevel:
|
|
12130
|
+
# @param ClusterLevel: 集群规格,托管集群询价,集群等级:L20、L50、L100、L200、L500、L1000、L3000、L5000
|
|
12110
12131
|
# @type ClusterLevel: String
|
|
12111
12132
|
|
|
12112
12133
|
attr_accessor :ClusterLevel
|
|
@@ -13270,12 +13291,18 @@ module TencentCloud
|
|
|
13270
13291
|
# @type Name: String
|
|
13271
13292
|
# @param Statistics: 诊断结果统计
|
|
13272
13293
|
# @type Statistics: Array
|
|
13294
|
+
# @param StartTime: 诊断数据开始时间
|
|
13295
|
+
# @type StartTime: String
|
|
13296
|
+
# @param EndTime: 诊断数据结束时间
|
|
13297
|
+
# @type EndTime: String
|
|
13273
13298
|
|
|
13274
|
-
attr_accessor :Name, :Statistics
|
|
13299
|
+
attr_accessor :Name, :Statistics, :StartTime, :EndTime
|
|
13275
13300
|
|
|
13276
|
-
def initialize(name=nil, statistics=nil)
|
|
13301
|
+
def initialize(name=nil, statistics=nil, starttime=nil, endtime=nil)
|
|
13277
13302
|
@Name = name
|
|
13278
13303
|
@Statistics = statistics
|
|
13304
|
+
@StartTime = starttime
|
|
13305
|
+
@EndTime = endtime
|
|
13279
13306
|
end
|
|
13280
13307
|
|
|
13281
13308
|
def deserialize(params)
|
|
@@ -13288,6 +13315,8 @@ module TencentCloud
|
|
|
13288
13315
|
@Statistics << kubejarvisstatestatistic_tmp
|
|
13289
13316
|
end
|
|
13290
13317
|
end
|
|
13318
|
+
@StartTime = params['StartTime']
|
|
13319
|
+
@EndTime = params['EndTime']
|
|
13291
13320
|
end
|
|
13292
13321
|
end
|
|
13293
13322
|
|
|
@@ -13366,7 +13395,12 @@ module TencentCloud
|
|
|
13366
13395
|
|
|
13367
13396
|
# 集群巡检统计结果
|
|
13368
13397
|
class KubeJarvisStateStatistic < TencentCloud::Common::AbstractModel
|
|
13369
|
-
# @param HealthyLevel:
|
|
13398
|
+
# @param HealthyLevel: 诊断结果的健康水平,健康水平取值:
|
|
13399
|
+
# serious:高风险
|
|
13400
|
+
# risk:中风险
|
|
13401
|
+
# warn:低风险
|
|
13402
|
+
# good:健康
|
|
13403
|
+
# failed:诊断流程异常
|
|
13370
13404
|
# @type HealthyLevel: String
|
|
13371
13405
|
# @param Count: 诊断结果的统计
|
|
13372
13406
|
# @type Count: Integer
|
|
@@ -13407,6 +13441,9 @@ module TencentCloud
|
|
|
13407
13441
|
# ListClusterInspectionResultsItems请求参数结构体
|
|
13408
13442
|
class ListClusterInspectionResultsItemsRequest < TencentCloud::Common::AbstractModel
|
|
13409
13443
|
# @param ClusterId: 目标集群ID
|
|
13444
|
+
|
|
13445
|
+
# 取值可参考:
|
|
13446
|
+
# [查询TKE集群列表](https://cloud.tencent.com/document/api/457/31862)
|
|
13410
13447
|
# @type ClusterId: String
|
|
13411
13448
|
# @param StartTime: 查询历史结果的开始时间,Unix时间戳
|
|
13412
13449
|
# @type StartTime: String
|
|
@@ -13687,11 +13724,11 @@ module TencentCloud
|
|
|
13687
13724
|
# @type ClusterId: String
|
|
13688
13725
|
# @param ProjectId: 集群所属项目
|
|
13689
13726
|
# @type ProjectId: Integer
|
|
13690
|
-
# @param ClusterName:
|
|
13727
|
+
# @param ClusterName: 集群名称,字符长度50
|
|
13691
13728
|
# @type ClusterName: String
|
|
13692
13729
|
# @param ClusterDesc: 集群描述
|
|
13693
13730
|
# @type ClusterDesc: String
|
|
13694
|
-
# @param ClusterLevel:
|
|
13731
|
+
# @param ClusterLevel: 集群等级,等级类型:L20、L50、L100、L200、L500、L1000、L3000、L5000
|
|
13695
13732
|
# @type ClusterLevel: String
|
|
13696
13733
|
# @param AutoUpgradeClusterLevel: 自动变配集群等级
|
|
13697
13734
|
# @type AutoUpgradeClusterLevel: :class:`Tencentcloud::Tke.v20180525.models.AutoUpgradeClusterLevel`
|
|
@@ -13909,7 +13946,7 @@ module TencentCloud
|
|
|
13909
13946
|
# @type ClusterId: String
|
|
13910
13947
|
# @param NodePoolId: 节点池ID
|
|
13911
13948
|
# @type NodePoolId: String
|
|
13912
|
-
# @param Name:
|
|
13949
|
+
# @param Name: 名称,最长63个字符,只能包含小写字母、数字及分隔符“_”,且必须以小写字母开头,数字或小写字母结尾
|
|
13913
13950
|
# @type Name: String
|
|
13914
13951
|
# @param MaxNodesNum: 最大节点数
|
|
13915
13952
|
# @type MaxNodesNum: Integer
|
|
@@ -14049,11 +14086,11 @@ module TencentCloud
|
|
|
14049
14086
|
class ModifyClusterRuntimeConfigRequest < TencentCloud::Common::AbstractModel
|
|
14050
14087
|
# @param ClusterId: 集群ID,必填
|
|
14051
14088
|
# @type ClusterId: String
|
|
14052
|
-
# @param DstK8SVersion:
|
|
14089
|
+
# @param DstK8SVersion: 运行时版本需依据指定的Kubernetes版本进行设置。典型情况为,在升级过程中因版本冲突而需要调整运行时版本时。
|
|
14053
14090
|
# @type DstK8SVersion: String
|
|
14054
|
-
# @param ClusterRuntimeConfig:
|
|
14091
|
+
# @param ClusterRuntimeConfig: 需要修改集群运行时填写
|
|
14055
14092
|
# @type ClusterRuntimeConfig: :class:`Tencentcloud::Tke.v20180525.models.RuntimeConfig`
|
|
14056
|
-
# @param NodePoolRuntimeConfig:
|
|
14093
|
+
# @param NodePoolRuntimeConfig: 需要修改节点池运行时,填需要修改的部分
|
|
14057
14094
|
# @type NodePoolRuntimeConfig: Array
|
|
14058
14095
|
|
|
14059
14096
|
attr_accessor :ClusterId, :DstK8SVersion, :ClusterRuntimeConfig, :NodePoolRuntimeConfig
|
|
@@ -14103,7 +14140,8 @@ module TencentCloud
|
|
|
14103
14140
|
class ModifyClusterTagsRequest < TencentCloud::Common::AbstractModel
|
|
14104
14141
|
# @param ClusterId: 集群ID
|
|
14105
14142
|
# @type ClusterId: String
|
|
14106
|
-
# @param Tags:
|
|
14143
|
+
# @param Tags: 集群标签:
|
|
14144
|
+
# [{"TagKey":"env","TagValue":"dev"}]}]
|
|
14107
14145
|
# @type Tags: Array
|
|
14108
14146
|
# @param SyncSubresource: 是否同步集群内子资源标签
|
|
14109
14147
|
# @type SyncSubresource: Boolean
|
|
@@ -14318,7 +14356,7 @@ module TencentCloud
|
|
|
14318
14356
|
# @type ClusterId: String
|
|
14319
14357
|
# @param NodePoolId: 节点池id
|
|
14320
14358
|
# @type NodePoolId: String
|
|
14321
|
-
# @param InstanceTypes:
|
|
14359
|
+
# @param InstanceTypes: 机型列表,参考 https://cloud.tencent.com/document/product/213/11518,主实例机型不支持修改
|
|
14322
14360
|
# @type InstanceTypes: Array
|
|
14323
14361
|
|
|
14324
14362
|
attr_accessor :ClusterId, :NodePoolId, :InstanceTypes
|
|
@@ -15062,11 +15100,11 @@ module TencentCloud
|
|
|
15062
15100
|
class NodePoolRuntime < TencentCloud::Common::AbstractModel
|
|
15063
15101
|
# @param NodePoolId: 节点池ID
|
|
15064
15102
|
# @type NodePoolId: String
|
|
15065
|
-
# @param RuntimeType:
|
|
15103
|
+
# @param RuntimeType: 运行时类型,参考:https://cloud.tencent.com/document/api/457/105241
|
|
15066
15104
|
# @type RuntimeType: String
|
|
15067
|
-
# @param RuntimeVersion:
|
|
15105
|
+
# @param RuntimeVersion: 运行时版本,参考:https://cloud.tencent.com/document/api/457/105241
|
|
15068
15106
|
# @type RuntimeVersion: String
|
|
15069
|
-
# @param NodePoolName:
|
|
15107
|
+
# @param NodePoolName: 节点池名称,限制 255 字符
|
|
15070
15108
|
# @type NodePoolName: String
|
|
15071
15109
|
|
|
15072
15110
|
attr_accessor :NodePoolId, :RuntimeType, :RuntimeVersion, :NodePoolName
|
|
@@ -17613,9 +17651,9 @@ module TencentCloud
|
|
|
17613
17651
|
|
|
17614
17652
|
# 集群资源使用量
|
|
17615
17653
|
class ResourceUsage < TencentCloud::Common::AbstractModel
|
|
17616
|
-
# @param Name:
|
|
17654
|
+
# @param Name: 资源类型,参考k8s 官方资源
|
|
17617
17655
|
# @type Name: String
|
|
17618
|
-
# @param Usage:
|
|
17656
|
+
# @param Usage: 资源使用量,单位:个数
|
|
17619
17657
|
# @type Usage: Integer
|
|
17620
17658
|
# @param Details: 资源使用详情
|
|
17621
17659
|
# @type Details: Array
|
|
@@ -17943,9 +17981,9 @@ module TencentCloud
|
|
|
17943
17981
|
|
|
17944
17982
|
# 运行时配置
|
|
17945
17983
|
class RuntimeConfig < TencentCloud::Common::AbstractModel
|
|
17946
|
-
# @param RuntimeType:
|
|
17984
|
+
# @param RuntimeType: 运行时类型,支持的类型有 docker、containerd
|
|
17947
17985
|
# @type RuntimeType: String
|
|
17948
|
-
# @param RuntimeVersion:
|
|
17986
|
+
# @param RuntimeVersion: 运行时版本,参考:https://cloud.tencent.com/document/api/457/105241
|
|
17949
17987
|
# @type RuntimeVersion: String
|
|
17950
17988
|
|
|
17951
17989
|
attr_accessor :RuntimeType, :RuntimeVersion
|
|
@@ -18870,9 +18908,9 @@ module TencentCloud
|
|
|
18870
18908
|
# @type DstVersion: String
|
|
18871
18909
|
# @param ExtraArgs: 集群自定义参数
|
|
18872
18910
|
# @type ExtraArgs: :class:`Tencentcloud::Tke.v20180525.models.ClusterExtraArgs`
|
|
18873
|
-
# @param MaxNotReadyPercent: 可容忍的最大不可用pod
|
|
18911
|
+
# @param MaxNotReadyPercent: 可容忍的最大不可用pod数目。默认0
|
|
18874
18912
|
# @type MaxNotReadyPercent: Float
|
|
18875
|
-
# @param SkipPreCheck:
|
|
18913
|
+
# @param SkipPreCheck: 是否跳过预检查阶段,默认false
|
|
18876
18914
|
# @type SkipPreCheck: Boolean
|
|
18877
18915
|
|
|
18878
18916
|
attr_accessor :ClusterId, :DstVersion, :ExtraArgs, :MaxNotReadyPercent, :SkipPreCheck
|
|
@@ -19324,7 +19362,7 @@ module TencentCloud
|
|
|
19324
19362
|
|
|
19325
19363
|
# UpgradeClusterInstances请求参数结构体
|
|
19326
19364
|
class UpgradeClusterInstancesRequest < TencentCloud::Common::AbstractModel
|
|
19327
|
-
# @param ClusterId: 集群ID
|
|
19365
|
+
# @param ClusterId: 集群ID(请登录 [TKE 控制台](https://console.cloud.tencent.com/tke2) 获取集群 ID )
|
|
19328
19366
|
# @type ClusterId: String
|
|
19329
19367
|
# @param Operation: create 表示开始一次升级任务
|
|
19330
19368
|
# pause 表示停止任务
|
|
@@ -19336,11 +19374,12 @@ module TencentCloud
|
|
|
19336
19374
|
# hot 小版本热升级
|
|
19337
19375
|
# major 大版本原地升级
|
|
19338
19376
|
# @type UpgradeType: String
|
|
19339
|
-
# @param InstanceIds:
|
|
19377
|
+
# @param InstanceIds: 需要升级的节点列表,可以通过控制台或 [查询待升级节点接口
|
|
19378
|
+
# ](https://cloud.tencent.com/document/api/457/50366) 获取
|
|
19340
19379
|
# @type InstanceIds: Array
|
|
19341
19380
|
# @param ResetParam: 当节点重新加入集群时候所使用的参数,参考添加已有节点接口
|
|
19342
19381
|
# @type ResetParam: :class:`Tencentcloud::Tke.v20180525.models.UpgradeNodeResetParam`
|
|
19343
|
-
# @param SkipPreCheck:
|
|
19382
|
+
# @param SkipPreCheck: 是否忽略节点升级前检查,默认值 false
|
|
19344
19383
|
# @type SkipPreCheck: Boolean
|
|
19345
19384
|
# @param MaxNotReadyPercent: 最大可容忍的不可用Pod比例
|
|
19346
19385
|
# @type MaxNotReadyPercent: Float
|
data/lib/v20220501/client.rb
CHANGED
|
@@ -173,6 +173,30 @@ module TencentCloud
|
|
|
173
173
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
174
174
|
end
|
|
175
175
|
|
|
176
|
+
# 查询集群列表
|
|
177
|
+
|
|
178
|
+
# @param request: Request instance for DescribeClusters.
|
|
179
|
+
# @type request: :class:`Tencentcloud::tke::V20220501::DescribeClustersRequest`
|
|
180
|
+
# @rtype: :class:`Tencentcloud::tke::V20220501::DescribeClustersResponse`
|
|
181
|
+
def DescribeClusters(request)
|
|
182
|
+
body = send_request('DescribeClusters', request.serialize)
|
|
183
|
+
response = JSON.parse(body)
|
|
184
|
+
if response['Response'].key?('Error') == false
|
|
185
|
+
model = DescribeClustersResponse.new
|
|
186
|
+
model.deserialize(response['Response'])
|
|
187
|
+
model
|
|
188
|
+
else
|
|
189
|
+
code = response['Response']['Error']['Code']
|
|
190
|
+
message = response['Response']['Error']['Message']
|
|
191
|
+
reqid = response['Response']['RequestId']
|
|
192
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
193
|
+
end
|
|
194
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
195
|
+
raise e
|
|
196
|
+
rescue StandardError => e
|
|
197
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
198
|
+
end
|
|
199
|
+
|
|
176
200
|
# 查询健康检测策略
|
|
177
201
|
|
|
178
202
|
# @param request: Request instance for DescribeHealthCheckPolicies.
|
data/lib/v20220501/models.rb
CHANGED
|
@@ -92,6 +92,70 @@ module TencentCloud
|
|
|
92
92
|
end
|
|
93
93
|
end
|
|
94
94
|
|
|
95
|
+
# 集群信息结构体
|
|
96
|
+
class Cluster < TencentCloud::Common::AbstractModel
|
|
97
|
+
# @param ClusterId: 集群ID
|
|
98
|
+
# @type ClusterId: String
|
|
99
|
+
# @param ClusterName: 集群名称
|
|
100
|
+
# @type ClusterName: String
|
|
101
|
+
# @param ClusterDescription: 集群描述
|
|
102
|
+
# @type ClusterDescription: String
|
|
103
|
+
# @param ClusterVersion: 集群版本(默认值为1.10.5)
|
|
104
|
+
# @type ClusterVersion: String
|
|
105
|
+
# @param ClusterType: 集群类型,托管集群:MANAGED_CLUSTER,独立集群:INDEPENDENT_CLUSTER。
|
|
106
|
+
# @type ClusterType: String
|
|
107
|
+
# @param TagSpecification: 标签描述列表。
|
|
108
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
109
|
+
# @type TagSpecification: Array
|
|
110
|
+
# @param ClusterStatus: 集群状态 (Trading 集群开通中,Creating 创建中,Running 运行中,Deleting 删除中,Idling 闲置中,Recovering 唤醒中,Upgrading 升级中,NodeUpgrading 节点升级中,RuntimeUpgrading 节点运行时升级中,MasterScaling Master扩缩容中,ClusterLevelUpgrading 调整规格中,ResourceIsolate 欠费隔离中,ResourceIsolated 欠费已隔离,ResourceReverse 冲正恢复中,Abnormal 异常)
|
|
111
|
+
# @type ClusterStatus: String
|
|
112
|
+
# @param CreatedTime: 创建时间
|
|
113
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
114
|
+
# @type CreatedTime: String
|
|
115
|
+
# @param ClusterLevel: 集群等级,针对托管集群生效
|
|
116
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
117
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
118
|
+
# @type ClusterLevel: String
|
|
119
|
+
# @param VpcId: 集群所在vpc的id
|
|
120
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
121
|
+
# @type VpcId: String
|
|
122
|
+
|
|
123
|
+
attr_accessor :ClusterId, :ClusterName, :ClusterDescription, :ClusterVersion, :ClusterType, :TagSpecification, :ClusterStatus, :CreatedTime, :ClusterLevel, :VpcId
|
|
124
|
+
|
|
125
|
+
def initialize(clusterid=nil, clustername=nil, clusterdescription=nil, clusterversion=nil, clustertype=nil, tagspecification=nil, clusterstatus=nil, createdtime=nil, clusterlevel=nil, vpcid=nil)
|
|
126
|
+
@ClusterId = clusterid
|
|
127
|
+
@ClusterName = clustername
|
|
128
|
+
@ClusterDescription = clusterdescription
|
|
129
|
+
@ClusterVersion = clusterversion
|
|
130
|
+
@ClusterType = clustertype
|
|
131
|
+
@TagSpecification = tagspecification
|
|
132
|
+
@ClusterStatus = clusterstatus
|
|
133
|
+
@CreatedTime = createdtime
|
|
134
|
+
@ClusterLevel = clusterlevel
|
|
135
|
+
@VpcId = vpcid
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
def deserialize(params)
|
|
139
|
+
@ClusterId = params['ClusterId']
|
|
140
|
+
@ClusterName = params['ClusterName']
|
|
141
|
+
@ClusterDescription = params['ClusterDescription']
|
|
142
|
+
@ClusterVersion = params['ClusterVersion']
|
|
143
|
+
@ClusterType = params['ClusterType']
|
|
144
|
+
unless params['TagSpecification'].nil?
|
|
145
|
+
@TagSpecification = []
|
|
146
|
+
params['TagSpecification'].each do |i|
|
|
147
|
+
tagspecification_tmp = TagSpecification.new
|
|
148
|
+
tagspecification_tmp.deserialize(i)
|
|
149
|
+
@TagSpecification << tagspecification_tmp
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
@ClusterStatus = params['ClusterStatus']
|
|
153
|
+
@CreatedTime = params['CreatedTime']
|
|
154
|
+
@ClusterLevel = params['ClusterLevel']
|
|
155
|
+
@VpcId = params['VpcId']
|
|
156
|
+
end
|
|
157
|
+
end
|
|
158
|
+
|
|
95
159
|
# CreateHealthCheckPolicy请求参数结构体
|
|
96
160
|
class CreateHealthCheckPolicyRequest < TencentCloud::Common::AbstractModel
|
|
97
161
|
# @param ClusterId: 集群ID
|
|
@@ -626,6 +690,119 @@ module TencentCloud
|
|
|
626
690
|
end
|
|
627
691
|
end
|
|
628
692
|
|
|
693
|
+
# DescribeClusters请求参数结构体
|
|
694
|
+
class DescribeClustersRequest < TencentCloud::Common::AbstractModel
|
|
695
|
+
# @param ClusterIds: 集群ID列表(为空时,
|
|
696
|
+
# 表示获取账号下所有集群)
|
|
697
|
+
# @type ClusterIds: Array
|
|
698
|
+
# @param Offset: 偏移量,默认0
|
|
699
|
+
# @type Offset: Integer
|
|
700
|
+
# @param Limit: 最大输出条数,默认20,最大为100
|
|
701
|
+
# @type Limit: Integer
|
|
702
|
+
# @param Filters: · ClusterName
|
|
703
|
+
# 按照【集群名】进行过滤。
|
|
704
|
+
# 类型:String
|
|
705
|
+
# 必选:否
|
|
706
|
+
|
|
707
|
+
# · ClusterType
|
|
708
|
+
# 按照【集群类型】进行过滤。
|
|
709
|
+
# 类型:String
|
|
710
|
+
# 必选:否
|
|
711
|
+
|
|
712
|
+
# · ClusterStatus
|
|
713
|
+
# 按照【集群状态】进行过滤。
|
|
714
|
+
# 类型:String
|
|
715
|
+
# 必选:否
|
|
716
|
+
|
|
717
|
+
# · Tags
|
|
718
|
+
# 按照【标签键值对】进行过滤。
|
|
719
|
+
# 类型:String
|
|
720
|
+
# 必选:否
|
|
721
|
+
|
|
722
|
+
# · vpc-id
|
|
723
|
+
# 按照【VPC】进行过滤。
|
|
724
|
+
# 类型:String
|
|
725
|
+
# 必选:否
|
|
726
|
+
|
|
727
|
+
# · tag-key
|
|
728
|
+
# 按照【标签键】进行过滤。
|
|
729
|
+
# 类型:String
|
|
730
|
+
# 必选:否
|
|
731
|
+
|
|
732
|
+
# · tag-value
|
|
733
|
+
# 按照【标签值】进行过滤。
|
|
734
|
+
# 类型:String
|
|
735
|
+
# 必选:否
|
|
736
|
+
|
|
737
|
+
# · tag:tag-key
|
|
738
|
+
# 按照【标签键值对】进行过滤。
|
|
739
|
+
# 类型:String
|
|
740
|
+
# 必选:否
|
|
741
|
+
# @type Filters: Array
|
|
742
|
+
# @param ClusterType: 集群类型,例如:MANAGED_CLUSTER
|
|
743
|
+
# @type ClusterType: String
|
|
744
|
+
|
|
745
|
+
attr_accessor :ClusterIds, :Offset, :Limit, :Filters, :ClusterType
|
|
746
|
+
|
|
747
|
+
def initialize(clusterids=nil, offset=nil, limit=nil, filters=nil, clustertype=nil)
|
|
748
|
+
@ClusterIds = clusterids
|
|
749
|
+
@Offset = offset
|
|
750
|
+
@Limit = limit
|
|
751
|
+
@Filters = filters
|
|
752
|
+
@ClusterType = clustertype
|
|
753
|
+
end
|
|
754
|
+
|
|
755
|
+
def deserialize(params)
|
|
756
|
+
@ClusterIds = params['ClusterIds']
|
|
757
|
+
@Offset = params['Offset']
|
|
758
|
+
@Limit = params['Limit']
|
|
759
|
+
unless params['Filters'].nil?
|
|
760
|
+
@Filters = []
|
|
761
|
+
params['Filters'].each do |i|
|
|
762
|
+
filter_tmp = Filter.new
|
|
763
|
+
filter_tmp.deserialize(i)
|
|
764
|
+
@Filters << filter_tmp
|
|
765
|
+
end
|
|
766
|
+
end
|
|
767
|
+
@ClusterType = params['ClusterType']
|
|
768
|
+
end
|
|
769
|
+
end
|
|
770
|
+
|
|
771
|
+
# DescribeClusters返回参数结构体
|
|
772
|
+
class DescribeClustersResponse < TencentCloud::Common::AbstractModel
|
|
773
|
+
# @param TotalCount: 集群总个数
|
|
774
|
+
# @type TotalCount: Integer
|
|
775
|
+
# @param Clusters: 集群信息列表
|
|
776
|
+
# @type Clusters: Array
|
|
777
|
+
# @param Errors: 错误信息集合
|
|
778
|
+
# @type Errors: Array
|
|
779
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
780
|
+
# @type RequestId: String
|
|
781
|
+
|
|
782
|
+
attr_accessor :TotalCount, :Clusters, :Errors, :RequestId
|
|
783
|
+
|
|
784
|
+
def initialize(totalcount=nil, clusters=nil, errors=nil, requestid=nil)
|
|
785
|
+
@TotalCount = totalcount
|
|
786
|
+
@Clusters = clusters
|
|
787
|
+
@Errors = errors
|
|
788
|
+
@RequestId = requestid
|
|
789
|
+
end
|
|
790
|
+
|
|
791
|
+
def deserialize(params)
|
|
792
|
+
@TotalCount = params['TotalCount']
|
|
793
|
+
unless params['Clusters'].nil?
|
|
794
|
+
@Clusters = []
|
|
795
|
+
params['Clusters'].each do |i|
|
|
796
|
+
cluster_tmp = Cluster.new
|
|
797
|
+
cluster_tmp.deserialize(i)
|
|
798
|
+
@Clusters << cluster_tmp
|
|
799
|
+
end
|
|
800
|
+
end
|
|
801
|
+
@Errors = params['Errors']
|
|
802
|
+
@RequestId = params['RequestId']
|
|
803
|
+
end
|
|
804
|
+
end
|
|
805
|
+
|
|
629
806
|
# DescribeHealthCheckPolicies请求参数结构体
|
|
630
807
|
class DescribeHealthCheckPoliciesRequest < TencentCloud::Common::AbstractModel
|
|
631
808
|
# @param ClusterId: 集群 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: 3.0.
|
|
4
|
+
version: 3.0.1162
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-11-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|
|
@@ -33,11 +33,11 @@ executables: []
|
|
|
33
33
|
extensions: []
|
|
34
34
|
extra_rdoc_files: []
|
|
35
35
|
files:
|
|
36
|
-
- lib/tencentcloud-sdk-tke.rb
|
|
37
|
-
- lib/v20220501/models.rb
|
|
38
36
|
- lib/v20220501/client.rb
|
|
39
|
-
- lib/
|
|
37
|
+
- lib/v20220501/models.rb
|
|
38
|
+
- lib/tencentcloud-sdk-tke.rb
|
|
40
39
|
- lib/v20180525/client.rb
|
|
40
|
+
- lib/v20180525/models.rb
|
|
41
41
|
- lib/VERSION
|
|
42
42
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
|
43
43
|
licenses:
|