tencentcloud-sdk-tke 3.0.754 → 3.0.755

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: f3a94fa6bda51db35c53aebca088706d7d5f8df7
4
- data.tar.gz: 54667f0aa5c639885ca650c1c89cb5475880c829
3
+ metadata.gz: f51d94081958b9c861f5c00c1d64076476733cd3
4
+ data.tar.gz: 632d4566087cb47e655ec8867d7c9d58e043a29f
5
5
  SHA512:
6
- metadata.gz: a98553a420fc00824c558af60f9dd25e8f5cfe6c18b1322ba73f55e3093cd2e22f50fa419e14230de563073ddced22475986e76e2aaddf93a41e3e767f1f2548
7
- data.tar.gz: c5e8c51bd1b66287133cddee705e74d33f808ffadb117317aa4d816375d78dd16e402295810a1e8c72ac5a82b6588261e883da44f11d7fab6caed7d67a48cf61
6
+ metadata.gz: c731dc871879a26ea06f6c9e299154d7bf77c38e775d553d7e853fb61449f39c99cc07d450c670ca7135961c5ed90f31d86a84913d9bb40b37df99d9455fe1e1
7
+ data.tar.gz: ca883bfbfbf1810b4fdffe04fad5c29923366d6fd12143ea81860b4a3e591a44b6c2db6373f786268cf683db8764bd60cf7edc8450187a669df48dc898a35e0a
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.754
1
+ 3.0.755
@@ -5,6 +5,9 @@ require 'tencentcloud-sdk-common'
5
5
  require_relative 'v20180525/client'
6
6
  require_relative 'v20180525/models'
7
7
 
8
+ require_relative 'v20220501/client'
9
+ require_relative 'v20220501/models'
10
+
8
11
  module TencentCloud
9
12
  module Tke
10
13
  end
@@ -0,0 +1,84 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ require 'json'
18
+
19
+ module TencentCloud
20
+ module Tke
21
+ module V20220501
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2022-05-01'
26
+ api_endpoint = 'tke.tencentcloudapi.com'
27
+ sdk_version = 'TKE_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 查询集群下节点实例信息
33
+
34
+ # @param request: Request instance for DescribeClusterInstances.
35
+ # @type request: :class:`Tencentcloud::tke::V20220501::DescribeClusterInstancesRequest`
36
+ # @rtype: :class:`Tencentcloud::tke::V20220501::DescribeClusterInstancesResponse`
37
+ def DescribeClusterInstances(request)
38
+ body = send_request('DescribeClusterInstances', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = DescribeClusterInstancesResponse.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
+
56
+ # 查询 TKE 节点池列表
57
+
58
+ # @param request: Request instance for DescribeNodePools.
59
+ # @type request: :class:`Tencentcloud::tke::V20220501::DescribeNodePoolsRequest`
60
+ # @rtype: :class:`Tencentcloud::tke::V20220501::DescribeNodePoolsResponse`
61
+ def DescribeNodePools(request)
62
+ body = send_request('DescribeNodePools', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = DescribeNodePoolsResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
80
+
81
+ end
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,1061 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ module TencentCloud
18
+ module Tke
19
+ module V20220501
20
+ # k8s中标注,一般以数组的方式存在
21
+ class Annotation < TencentCloud::Common::AbstractModel
22
+ # @param Name: map表中的Name
23
+ # @type Name: String
24
+ # @param Value: map表中的Value
25
+ # @type Value: String
26
+
27
+ attr_accessor :Name, :Value
28
+
29
+ def initialize(name=nil, value=nil)
30
+ @Name = name
31
+ @Value = value
32
+ end
33
+
34
+ def deserialize(params)
35
+ @Name = params['Name']
36
+ @Value = params['Value']
37
+ end
38
+ end
39
+
40
+ # 自动扩所容的节点
41
+ class AutoscalingAdded < TencentCloud::Common::AbstractModel
42
+ # @param Joining: 正在加入中的节点数量
43
+ # @type Joining: Integer
44
+ # @param Initializing: 初始化中的节点数量
45
+ # @type Initializing: Integer
46
+ # @param Normal: 正常的节点数量
47
+ # @type Normal: Integer
48
+ # @param Total: 节点总数
49
+ # @type Total: Integer
50
+
51
+ attr_accessor :Joining, :Initializing, :Normal, :Total
52
+
53
+ def initialize(joining=nil, initializing=nil, normal=nil, total=nil)
54
+ @Joining = joining
55
+ @Initializing = initializing
56
+ @Normal = normal
57
+ @Total = total
58
+ end
59
+
60
+ def deserialize(params)
61
+ @Joining = params['Joining']
62
+ @Initializing = params['Initializing']
63
+ @Normal = params['Normal']
64
+ @Total = params['Total']
65
+ end
66
+ end
67
+
68
+ # DescribeClusterInstances请求参数结构体
69
+ class DescribeClusterInstancesRequest < TencentCloud::Common::AbstractModel
70
+ # @param ClusterId: 集群ID
71
+ # @type ClusterId: String
72
+ # @param Offset: 偏移量,默认为0。关于Offset的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
73
+ # @type Offset: Integer
74
+ # @param Limit: 返回数量,默认为20,最大值为100。关于Limit的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
75
+ # @type Limit: Integer
76
+ # @param Filters: 过滤条件列表:
77
+ # InstanceIds(实例ID),InstanceType(实例类型:Regular,Native,Virtual,External),VagueIpAddress(模糊匹配IP),Labels(k8s节点label),NodePoolNames(节点池名称),VagueInstanceName(模糊匹配节点名),InstanceStates(节点状态),Unschedulable(是否封锁),NodePoolIds(节点池ID)
78
+ # @type Filters: Array
79
+ # @param SortBy: 排序信息
80
+ # @type SortBy: :class:`Tencentcloud::Tke.v20220501.models.SortBy`
81
+
82
+ attr_accessor :ClusterId, :Offset, :Limit, :Filters, :SortBy
83
+
84
+ def initialize(clusterid=nil, offset=nil, limit=nil, filters=nil, sortby=nil)
85
+ @ClusterId = clusterid
86
+ @Offset = offset
87
+ @Limit = limit
88
+ @Filters = filters
89
+ @SortBy = sortby
90
+ end
91
+
92
+ def deserialize(params)
93
+ @ClusterId = params['ClusterId']
94
+ @Offset = params['Offset']
95
+ @Limit = params['Limit']
96
+ unless params['Filters'].nil?
97
+ @Filters = []
98
+ params['Filters'].each do |i|
99
+ filter_tmp = Filter.new
100
+ filter_tmp.deserialize(i)
101
+ @Filters << filter_tmp
102
+ end
103
+ end
104
+ unless params['SortBy'].nil?
105
+ @SortBy = SortBy.new
106
+ @SortBy.deserialize(params['SortBy'])
107
+ end
108
+ end
109
+ end
110
+
111
+ # DescribeClusterInstances返回参数结构体
112
+ class DescribeClusterInstancesResponse < TencentCloud::Common::AbstractModel
113
+ # @param TotalCount: 集群中实例总数
114
+ # @type TotalCount: Integer
115
+ # @param InstanceSet: 集群中实例列表
116
+ # @type InstanceSet: Array
117
+ # @param Errors: 错误信息集合
118
+ # 注意:此字段可能返回 null,表示取不到有效值。
119
+ # @type Errors: Array
120
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
121
+ # @type RequestId: String
122
+
123
+ attr_accessor :TotalCount, :InstanceSet, :Errors, :RequestId
124
+
125
+ def initialize(totalcount=nil, instanceset=nil, errors=nil, requestid=nil)
126
+ @TotalCount = totalcount
127
+ @InstanceSet = instanceset
128
+ @Errors = errors
129
+ @RequestId = requestid
130
+ end
131
+
132
+ def deserialize(params)
133
+ @TotalCount = params['TotalCount']
134
+ unless params['InstanceSet'].nil?
135
+ @InstanceSet = []
136
+ params['InstanceSet'].each do |i|
137
+ instance_tmp = Instance.new
138
+ instance_tmp.deserialize(i)
139
+ @InstanceSet << instance_tmp
140
+ end
141
+ end
142
+ @Errors = params['Errors']
143
+ @RequestId = params['RequestId']
144
+ end
145
+ end
146
+
147
+ # DescribeNodePools请求参数结构体
148
+ class DescribeNodePoolsRequest < TencentCloud::Common::AbstractModel
149
+ # @param ClusterId: 集群 ID
150
+ # @type ClusterId: String
151
+ # @param Filters: 查询过滤条件:
152
+ # · NodePoolsName
153
+ # 按照【节点池名】进行过滤。
154
+ # 类型:String
155
+ # 必选:否
156
+
157
+ # · NodePoolsId
158
+ # 按照【节点池id】进行过滤。
159
+ # 类型:String
160
+ # 必选:否
161
+
162
+ # · tags
163
+ # 按照【标签键值对】进行过滤。
164
+ # 类型:String
165
+ # 必选:否
166
+
167
+ # · tag:tag-key
168
+ # 按照【标签键值对】进行过滤。
169
+ # 类型:String
170
+ # 必选:否
171
+ # @type Filters: Array
172
+ # @param Offset: 偏移量,默认0
173
+ # @type Offset: Integer
174
+ # @param Limit: 最大输出条数,默认20,最大为100
175
+ # @type Limit: Integer
176
+
177
+ attr_accessor :ClusterId, :Filters, :Offset, :Limit
178
+
179
+ def initialize(clusterid=nil, filters=nil, offset=nil, limit=nil)
180
+ @ClusterId = clusterid
181
+ @Filters = filters
182
+ @Offset = offset
183
+ @Limit = limit
184
+ end
185
+
186
+ def deserialize(params)
187
+ @ClusterId = params['ClusterId']
188
+ unless params['Filters'].nil?
189
+ @Filters = []
190
+ params['Filters'].each do |i|
191
+ filter_tmp = Filter.new
192
+ filter_tmp.deserialize(i)
193
+ @Filters << filter_tmp
194
+ end
195
+ end
196
+ @Offset = params['Offset']
197
+ @Limit = params['Limit']
198
+ end
199
+ end
200
+
201
+ # DescribeNodePools返回参数结构体
202
+ class DescribeNodePoolsResponse < TencentCloud::Common::AbstractModel
203
+ # @param NodePools: 节点池列表
204
+ # 注意:此字段可能返回 null,表示取不到有效值。
205
+ # @type NodePools: Array
206
+ # @param TotalCount: 资源总数
207
+ # @type TotalCount: Integer
208
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
209
+ # @type RequestId: String
210
+
211
+ attr_accessor :NodePools, :TotalCount, :RequestId
212
+
213
+ def initialize(nodepools=nil, totalcount=nil, requestid=nil)
214
+ @NodePools = nodepools
215
+ @TotalCount = totalcount
216
+ @RequestId = requestid
217
+ end
218
+
219
+ def deserialize(params)
220
+ unless params['NodePools'].nil?
221
+ @NodePools = []
222
+ params['NodePools'].each do |i|
223
+ nodepool_tmp = NodePool.new
224
+ nodepool_tmp.deserialize(i)
225
+ @NodePools << nodepool_tmp
226
+ end
227
+ end
228
+ @TotalCount = params['TotalCount']
229
+ @RequestId = params['RequestId']
230
+ end
231
+ end
232
+
233
+ # 第三方节点
234
+ class ExternalNodeInfo < TencentCloud::Common::AbstractModel
235
+ # @param Name: 第三方节点名称
236
+ # @type Name: String
237
+ # @param CPU: CPU核数,单位:核
238
+ # 注意:此字段可能返回 null,表示取不到有效值。
239
+ # @type CPU: Integer
240
+ # @param Memory: 节点内存容量,单位:`GB`
241
+ # 注意:此字段可能返回 null,表示取不到有效值。
242
+ # @type Memory: Integer
243
+ # @param K8SVersion: 第三方节点kubelet版本信息
244
+ # 注意:此字段可能返回 null,表示取不到有效值。
245
+ # @type K8SVersion: String
246
+
247
+ attr_accessor :Name, :CPU, :Memory, :K8SVersion
248
+
249
+ def initialize(name=nil, cpu=nil, memory=nil, k8sversion=nil)
250
+ @Name = name
251
+ @CPU = cpu
252
+ @Memory = memory
253
+ @K8SVersion = k8sversion
254
+ end
255
+
256
+ def deserialize(params)
257
+ @Name = params['Name']
258
+ @CPU = params['CPU']
259
+ @Memory = params['Memory']
260
+ @K8SVersion = params['K8SVersion']
261
+ end
262
+ end
263
+
264
+ # 第三方节点池信息
265
+ class ExternalNodePoolInfo < TencentCloud::Common::AbstractModel
266
+ # @param RuntimeConfig: 第三方节点Runtime配置
267
+ # @type RuntimeConfig: :class:`Tencentcloud::Tke.v20220501.models.RuntimeConfig`
268
+ # @param NodesNum: 节点数
269
+ # 注意:此字段可能返回 null,表示取不到有效值。
270
+ # @type NodesNum: Integer
271
+
272
+ attr_accessor :RuntimeConfig, :NodesNum
273
+
274
+ def initialize(runtimeconfig=nil, nodesnum=nil)
275
+ @RuntimeConfig = runtimeconfig
276
+ @NodesNum = nodesnum
277
+ end
278
+
279
+ def deserialize(params)
280
+ unless params['RuntimeConfig'].nil?
281
+ @RuntimeConfig = RuntimeConfig.new
282
+ @RuntimeConfig.deserialize(params['RuntimeConfig'])
283
+ end
284
+ @NodesNum = params['NodesNum']
285
+ end
286
+ end
287
+
288
+ # 过滤器
289
+ class Filter < TencentCloud::Common::AbstractModel
290
+ # @param Name: 属性名称, 若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
291
+ # @type Name: String
292
+ # @param Values: 属性值, 若同一个Filter存在多个Values,同一Filter下Values间的关系为逻辑或(OR)关系。
293
+ # @type Values: Array
294
+
295
+ attr_accessor :Name, :Values
296
+
297
+ def initialize(name=nil, values=nil)
298
+ @Name = name
299
+ @Values = values
300
+ end
301
+
302
+ def deserialize(params)
303
+ @Name = params['Name']
304
+ @Values = params['Values']
305
+ end
306
+ end
307
+
308
+ # 集群的实例信息
309
+ class Instance < TencentCloud::Common::AbstractModel
310
+ # @param InstanceId: 实例ID
311
+ # @type InstanceId: String
312
+ # @param InstanceRole: 节点角色, MASTER, WORKER, ETCD, MASTER_ETCD,ALL, 默认为WORKER
313
+ # @type InstanceRole: String
314
+ # @param FailedReason: 实例异常(或者处于初始化中)的原因
315
+ # 注意:此字段可能返回 null,表示取不到有效值。
316
+ # @type FailedReason: String
317
+ # @param InstanceState: 实例的状态
318
+ # - initializing创建中
319
+ # - running 运行中
320
+ # - failed 异常
321
+ # @type InstanceState: String
322
+ # @param Unschedulable: 是否不可调度
323
+ # 注意:此字段可能返回 null,表示取不到有效值。
324
+ # @type Unschedulable: Boolean
325
+ # @param CreatedTime: 添加时间
326
+ # @type CreatedTime: String
327
+ # @param LanIP: 节点内网IP
328
+ # 注意:此字段可能返回 null,表示取不到有效值。
329
+ # @type LanIP: String
330
+ # @param NodePoolId: 资源池ID
331
+ # 注意:此字段可能返回 null,表示取不到有效值。
332
+ # @type NodePoolId: String
333
+ # @param Native: 原生节点参数
334
+ # 注意:此字段可能返回 null,表示取不到有效值。
335
+ # @type Native: :class:`Tencentcloud::Tke.v20220501.models.NativeNodeInfo`
336
+ # @param Regular: 普通节点参数
337
+ # 注意:此字段可能返回 null,表示取不到有效值。
338
+ # @type Regular: :class:`Tencentcloud::Tke.v20220501.models.RegularNodeInfo`
339
+ # @param Super: 超级节点参数
340
+ # 注意:此字段可能返回 null,表示取不到有效值。
341
+ # @type Super: :class:`Tencentcloud::Tke.v20220501.models.SuperNodeInfo`
342
+ # @param External: 第三方节点参数
343
+ # 注意:此字段可能返回 null,表示取不到有效值。
344
+ # @type External: :class:`Tencentcloud::Tke.v20220501.models.ExternalNodeInfo`
345
+ # @param NodeType: 节点类型
346
+ # 注意:此字段可能返回 null,表示取不到有效值。
347
+ # @type NodeType: String
348
+
349
+ attr_accessor :InstanceId, :InstanceRole, :FailedReason, :InstanceState, :Unschedulable, :CreatedTime, :LanIP, :NodePoolId, :Native, :Regular, :Super, :External, :NodeType
350
+
351
+ def initialize(instanceid=nil, instancerole=nil, failedreason=nil, instancestate=nil, unschedulable=nil, createdtime=nil, lanip=nil, nodepoolid=nil, native=nil, regular=nil, _super=nil, external=nil, nodetype=nil)
352
+ @InstanceId = instanceid
353
+ @InstanceRole = instancerole
354
+ @FailedReason = failedreason
355
+ @InstanceState = instancestate
356
+ @Unschedulable = unschedulable
357
+ @CreatedTime = createdtime
358
+ @LanIP = lanip
359
+ @NodePoolId = nodepoolid
360
+ @Native = native
361
+ @Regular = regular
362
+ @Super = _super
363
+ @External = external
364
+ @NodeType = nodetype
365
+ end
366
+
367
+ def deserialize(params)
368
+ @InstanceId = params['InstanceId']
369
+ @InstanceRole = params['InstanceRole']
370
+ @FailedReason = params['FailedReason']
371
+ @InstanceState = params['InstanceState']
372
+ @Unschedulable = params['Unschedulable']
373
+ @CreatedTime = params['CreatedTime']
374
+ @LanIP = params['LanIP']
375
+ @NodePoolId = params['NodePoolId']
376
+ unless params['Native'].nil?
377
+ @Native = NativeNodeInfo.new
378
+ @Native.deserialize(params['Native'])
379
+ end
380
+ unless params['Regular'].nil?
381
+ @Regular = RegularNodeInfo.new
382
+ @Regular.deserialize(params['Regular'])
383
+ end
384
+ unless params['Super'].nil?
385
+ @Super = SuperNodeInfo.new
386
+ @Super.deserialize(params['Super'])
387
+ end
388
+ unless params['External'].nil?
389
+ @External = ExternalNodeInfo.new
390
+ @External.deserialize(params['External'])
391
+ end
392
+ @NodeType = params['NodeType']
393
+ end
394
+ end
395
+
396
+ # 描述了k8s集群相关配置与信息。
397
+ class InstanceAdvancedSettings < TencentCloud::Common::AbstractModel
398
+ # @param DesiredPodNumber: 该节点属于podCIDR大小自定义模式时,可指定节点上运行的pod数量上限
399
+ # 注意:此字段可能返回 null,表示取不到有效值。
400
+ # @type DesiredPodNumber: Integer
401
+ # @param PreStartUserScript: base64 编码的用户脚本,在初始化节点之前执行,目前只对添加已有节点生效
402
+ # 注意:此字段可能返回 null,表示取不到有效值。
403
+ # @type PreStartUserScript: String
404
+ # @param RuntimeConfig: 运行时描述
405
+ # 注意:此字段可能返回 null,表示取不到有效值。
406
+ # @type RuntimeConfig: :class:`Tencentcloud::Tke.v20220501.models.RuntimeConfig`
407
+ # @param UserScript: base64 编码的用户脚本, 此脚本会在 k8s 组件运行后执行, 需要用户保证脚本的可重入及重试逻辑, 脚本及其生成的日志文件可在节点的 /data/ccs_userscript/ 路径查看, 如果要求节点需要在进行初始化完成后才可加入调度, 可配合 unschedulable 参数使用, 在 userScript 最后初始化完成后, 添加 kubectl uncordon nodename --kubeconfig=/root/.kube/config 命令使节点加入调度
408
+ # 注意:此字段可能返回 null,表示取不到有效值。
409
+ # @type UserScript: String
410
+ # @param ExtraArgs: 节点相关的自定义参数信息
411
+ # 注意:此字段可能返回 null,表示取不到有效值。
412
+ # @type ExtraArgs: :class:`Tencentcloud::Tke.v20220501.models.InstanceExtraArgs`
413
+
414
+ attr_accessor :DesiredPodNumber, :PreStartUserScript, :RuntimeConfig, :UserScript, :ExtraArgs
415
+
416
+ def initialize(desiredpodnumber=nil, prestartuserscript=nil, runtimeconfig=nil, userscript=nil, extraargs=nil)
417
+ @DesiredPodNumber = desiredpodnumber
418
+ @PreStartUserScript = prestartuserscript
419
+ @RuntimeConfig = runtimeconfig
420
+ @UserScript = userscript
421
+ @ExtraArgs = extraargs
422
+ end
423
+
424
+ def deserialize(params)
425
+ @DesiredPodNumber = params['DesiredPodNumber']
426
+ @PreStartUserScript = params['PreStartUserScript']
427
+ unless params['RuntimeConfig'].nil?
428
+ @RuntimeConfig = RuntimeConfig.new
429
+ @RuntimeConfig.deserialize(params['RuntimeConfig'])
430
+ end
431
+ @UserScript = params['UserScript']
432
+ unless params['ExtraArgs'].nil?
433
+ @ExtraArgs = InstanceExtraArgs.new
434
+ @ExtraArgs.deserialize(params['ExtraArgs'])
435
+ end
436
+ end
437
+ end
438
+
439
+ # 节点自定义参数
440
+ class InstanceExtraArgs < TencentCloud::Common::AbstractModel
441
+ # @param Kubelet: kubelet自定义参数,参数格式为["k1=v1", "k1=v2"], 例如["root-dir=/var/lib/kubelet","feature-gates=PodShareProcessNamespace=true,DynamicKubeletConfig=true"]
442
+ # 注意:此字段可能返回 null,表示取不到有效值。
443
+ # @type Kubelet: Array
444
+
445
+ attr_accessor :Kubelet
446
+
447
+ def initialize(kubelet=nil)
448
+ @Kubelet = kubelet
449
+ end
450
+
451
+ def deserialize(params)
452
+ @Kubelet = params['Kubelet']
453
+ end
454
+ end
455
+
456
+ # 公网带宽
457
+ class InternetAccessible < TencentCloud::Common::AbstractModel
458
+ # @param MaxBandwidthOut: 带宽
459
+ # @type MaxBandwidthOut: Integer
460
+ # @param ChargeType: 网络计费方式
461
+ # @type ChargeType: String
462
+ # @param BandwidthPackageId: 带宽包 ID
463
+ # @type BandwidthPackageId: String
464
+
465
+ attr_accessor :MaxBandwidthOut, :ChargeType, :BandwidthPackageId
466
+
467
+ def initialize(maxbandwidthout=nil, chargetype=nil, bandwidthpackageid=nil)
468
+ @MaxBandwidthOut = maxbandwidthout
469
+ @ChargeType = chargetype
470
+ @BandwidthPackageId = bandwidthpackageid
471
+ end
472
+
473
+ def deserialize(params)
474
+ @MaxBandwidthOut = params['MaxBandwidthOut']
475
+ @ChargeType = params['ChargeType']
476
+ @BandwidthPackageId = params['BandwidthPackageId']
477
+ end
478
+ end
479
+
480
+ # k8s中标签,一般以数组的方式存在
481
+ class Label < TencentCloud::Common::AbstractModel
482
+ # @param Name: map表中的Name
483
+ # @type Name: String
484
+ # @param Value: map表中的Value
485
+ # @type Value: String
486
+
487
+ attr_accessor :Name, :Value
488
+
489
+ def initialize(name=nil, value=nil)
490
+ @Name = name
491
+ @Value = value
492
+ end
493
+
494
+ def deserialize(params)
495
+ @Name = params['Name']
496
+ @Value = params['Value']
497
+ end
498
+ end
499
+
500
+ # 手动加入的节点
501
+ class ManuallyAdded < TencentCloud::Common::AbstractModel
502
+ # @param Joining: 加入中的节点数量
503
+ # @type Joining: Integer
504
+ # @param Initializing: 初始化中的节点数量
505
+ # @type Initializing: Integer
506
+ # @param Normal: 正常的节点数量
507
+ # @type Normal: Integer
508
+ # @param Total: 节点总数
509
+ # @type Total: Integer
510
+
511
+ attr_accessor :Joining, :Initializing, :Normal, :Total
512
+
513
+ def initialize(joining=nil, initializing=nil, normal=nil, total=nil)
514
+ @Joining = joining
515
+ @Initializing = initializing
516
+ @Normal = normal
517
+ @Total = total
518
+ end
519
+
520
+ def deserialize(params)
521
+ @Joining = params['Joining']
522
+ @Initializing = params['Initializing']
523
+ @Normal = params['Normal']
524
+ @Total = params['Total']
525
+ end
526
+ end
527
+
528
+ # 节点信息
529
+ class NativeNodeInfo < TencentCloud::Common::AbstractModel
530
+ # @param MachineName: 节点名称
531
+ # @type MachineName: String
532
+ # @param MachineState: Machine 状态
533
+ # @type MachineState: String
534
+ # @param Zone: Machine 所在可用区
535
+ # @type Zone: String
536
+ # @param InstanceChargeType: 节点计费类型。PREPAID:包年包月;POSTPAID_BY_HOUR:按量计费(默认);
537
+ # @type InstanceChargeType: String
538
+ # @param CreatedAt: 创建时间
539
+ # @type CreatedAt: String
540
+ # @param LoginStatus: Machine 登录状态
541
+ # 注意:此字段可能返回 null,表示取不到有效值。
542
+ # @type LoginStatus: String
543
+ # @param IsProtectedFromScaleIn: 是否开启缩容保护
544
+ # 注意:此字段可能返回 null,表示取不到有效值。
545
+ # @type IsProtectedFromScaleIn: Boolean
546
+ # @param DisplayName: Machine 名字
547
+ # 注意:此字段可能返回 null,表示取不到有效值。
548
+ # @type DisplayName: String
549
+ # @param CPU: CPU核数,单位:核
550
+ # @type CPU: Integer
551
+ # @param GPU: GPU核数,单位:核
552
+ # 注意:此字段可能返回 null,表示取不到有效值。
553
+ # @type GPU: Integer
554
+ # @param RenewFlag: 自动续费标识
555
+ # @type RenewFlag: String
556
+ # @param PayMode: 节点计费模式(已弃用)
557
+ # @type PayMode: String
558
+ # @param Memory: 节点内存容量,单位:`GB`
559
+ # @type Memory: Integer
560
+ # @param InternetAccessible: 公网带宽相关信息设置
561
+ # @type InternetAccessible: :class:`Tencentcloud::Tke.v20220501.models.InternetAccessible`
562
+ # @param InstanceFamily: 机型所属机型族
563
+ # @type InstanceFamily: String
564
+ # @param LanIp: 节点内网 IP
565
+ # @type LanIp: String
566
+ # @param InstanceType: 机型
567
+ # @type InstanceType: String
568
+ # @param ExpiredTime: 包年包月节点计费过期时间
569
+ # 注意:此字段可能返回 null,表示取不到有效值。
570
+ # @type ExpiredTime: String
571
+ # @param SecurityGroupIDs: 安全组列表
572
+ # 注意:此字段可能返回 null,表示取不到有效值。
573
+ # @type SecurityGroupIDs: Array
574
+ # @param VpcId: VPC 唯一 ID
575
+ # 注意:此字段可能返回 null,表示取不到有效值。
576
+ # @type VpcId: String
577
+ # @param SubnetId: 子网唯一 ID
578
+ # 注意:此字段可能返回 null,表示取不到有效值。
579
+ # @type SubnetId: String
580
+ # @param OsImage: OS的名称
581
+ # 注意:此字段可能返回 null,表示取不到有效值。
582
+ # @type OsImage: String
583
+
584
+ attr_accessor :MachineName, :MachineState, :Zone, :InstanceChargeType, :CreatedAt, :LoginStatus, :IsProtectedFromScaleIn, :DisplayName, :CPU, :GPU, :RenewFlag, :PayMode, :Memory, :InternetAccessible, :InstanceFamily, :LanIp, :InstanceType, :ExpiredTime, :SecurityGroupIDs, :VpcId, :SubnetId, :OsImage
585
+
586
+ def initialize(machinename=nil, machinestate=nil, zone=nil, instancechargetype=nil, createdat=nil, loginstatus=nil, isprotectedfromscalein=nil, displayname=nil, cpu=nil, gpu=nil, renewflag=nil, paymode=nil, memory=nil, internetaccessible=nil, instancefamily=nil, lanip=nil, instancetype=nil, expiredtime=nil, securitygroupids=nil, vpcid=nil, subnetid=nil, osimage=nil)
587
+ @MachineName = machinename
588
+ @MachineState = machinestate
589
+ @Zone = zone
590
+ @InstanceChargeType = instancechargetype
591
+ @CreatedAt = createdat
592
+ @LoginStatus = loginstatus
593
+ @IsProtectedFromScaleIn = isprotectedfromscalein
594
+ @DisplayName = displayname
595
+ @CPU = cpu
596
+ @GPU = gpu
597
+ @RenewFlag = renewflag
598
+ @PayMode = paymode
599
+ @Memory = memory
600
+ @InternetAccessible = internetaccessible
601
+ @InstanceFamily = instancefamily
602
+ @LanIp = lanip
603
+ @InstanceType = instancetype
604
+ @ExpiredTime = expiredtime
605
+ @SecurityGroupIDs = securitygroupids
606
+ @VpcId = vpcid
607
+ @SubnetId = subnetid
608
+ @OsImage = osimage
609
+ end
610
+
611
+ def deserialize(params)
612
+ @MachineName = params['MachineName']
613
+ @MachineState = params['MachineState']
614
+ @Zone = params['Zone']
615
+ @InstanceChargeType = params['InstanceChargeType']
616
+ @CreatedAt = params['CreatedAt']
617
+ @LoginStatus = params['LoginStatus']
618
+ @IsProtectedFromScaleIn = params['IsProtectedFromScaleIn']
619
+ @DisplayName = params['DisplayName']
620
+ @CPU = params['CPU']
621
+ @GPU = params['GPU']
622
+ @RenewFlag = params['RenewFlag']
623
+ @PayMode = params['PayMode']
624
+ @Memory = params['Memory']
625
+ unless params['InternetAccessible'].nil?
626
+ @InternetAccessible = InternetAccessible.new
627
+ @InternetAccessible.deserialize(params['InternetAccessible'])
628
+ end
629
+ @InstanceFamily = params['InstanceFamily']
630
+ @LanIp = params['LanIp']
631
+ @InstanceType = params['InstanceType']
632
+ @ExpiredTime = params['ExpiredTime']
633
+ @SecurityGroupIDs = params['SecurityGroupIDs']
634
+ @VpcId = params['VpcId']
635
+ @SubnetId = params['SubnetId']
636
+ @OsImage = params['OsImage']
637
+ end
638
+ end
639
+
640
+ # 原生节点池信息
641
+ class NativeNodePoolInfo < TencentCloud::Common::AbstractModel
642
+ # @param SubnetIds: 子网列表
643
+ # @type SubnetIds: Array
644
+ # @param SecurityGroupIds: 安全组列表
645
+ # 注意:此字段可能返回 null,表示取不到有效值。
646
+ # @type SecurityGroupIds: Array
647
+
648
+ attr_accessor :SubnetIds, :SecurityGroupIds
649
+
650
+ def initialize(subnetids=nil, securitygroupids=nil)
651
+ @SubnetIds = subnetids
652
+ @SecurityGroupIds = securitygroupids
653
+ end
654
+
655
+ def deserialize(params)
656
+ @SubnetIds = params['SubnetIds']
657
+ @SecurityGroupIds = params['SecurityGroupIds']
658
+ end
659
+ end
660
+
661
+ # 节点统计列表
662
+ class NodeCountSummary < TencentCloud::Common::AbstractModel
663
+ # @param ManuallyAdded: 手动管理的节点
664
+ # 注意:此字段可能返回 null,表示取不到有效值。
665
+ # @type ManuallyAdded: :class:`Tencentcloud::Tke.v20220501.models.ManuallyAdded`
666
+ # @param AutoscalingAdded: 自动管理的节点
667
+ # 注意:此字段可能返回 null,表示取不到有效值。
668
+ # @type AutoscalingAdded: :class:`Tencentcloud::Tke.v20220501.models.AutoscalingAdded`
669
+
670
+ attr_accessor :ManuallyAdded, :AutoscalingAdded
671
+
672
+ def initialize(manuallyadded=nil, autoscalingadded=nil)
673
+ @ManuallyAdded = manuallyadded
674
+ @AutoscalingAdded = autoscalingadded
675
+ end
676
+
677
+ def deserialize(params)
678
+ unless params['ManuallyAdded'].nil?
679
+ @ManuallyAdded = ManuallyAdded.new
680
+ @ManuallyAdded.deserialize(params['ManuallyAdded'])
681
+ end
682
+ unless params['AutoscalingAdded'].nil?
683
+ @AutoscalingAdded = AutoscalingAdded.new
684
+ @AutoscalingAdded.deserialize(params['AutoscalingAdded'])
685
+ end
686
+ end
687
+ end
688
+
689
+ # 节点池信息
690
+ class NodePool < TencentCloud::Common::AbstractModel
691
+ # @param ClusterId: 集群 ID
692
+ # @type ClusterId: String
693
+ # @param NodePoolId: 节点池 ID
694
+ # @type NodePoolId: String
695
+ # @param Taints: 节点污点
696
+ # 注意:此字段可能返回 null,表示取不到有效值。
697
+ # @type Taints: Array
698
+ # @param DeletionProtection: 是否开启删除保护
699
+ # 注意:此字段可能返回 null,表示取不到有效值。
700
+ # @type DeletionProtection: Boolean
701
+ # @param Type: 节点池类型
702
+ # @type Type: String
703
+ # @param Labels: 节点 Labels
704
+ # 注意:此字段可能返回 null,表示取不到有效值。
705
+ # @type Labels: Array
706
+ # @param LifeState: 节点池状态
707
+ # @type LifeState: String
708
+ # @param CreatedAt: 创建时间
709
+ # @type CreatedAt: String
710
+ # @param Name: 节点池名称
711
+ # @type Name: String
712
+ # @param Native: 原生节点池参数
713
+ # 注意:此字段可能返回 null,表示取不到有效值。
714
+ # @type Native: :class:`Tencentcloud::Tke.v20220501.models.NativeNodePoolInfo`
715
+ # @param Annotations: 节点 Annotation 列表
716
+ # 注意:此字段可能返回 null,表示取不到有效值。
717
+ # @type Annotations: Array
718
+ # @param Super: 超级节点池参数,在Type等于Super该字段才有值
719
+ # 注意:此字段可能返回 null,表示取不到有效值。
720
+ # @type Super: :class:`Tencentcloud::Tke.v20220501.models.SuperNodePoolInfo`
721
+ # @param Regular: 普通节点池参数,在Type等于Regular该字段才有值
722
+ # 注意:此字段可能返回 null,表示取不到有效值。
723
+ # @type Regular: :class:`Tencentcloud::Tke.v20220501.models.RegularNodePoolInfo`
724
+ # @param External: 第三方节点池参数,在Type等于External该字段才有值
725
+ # 注意:此字段可能返回 null,表示取不到有效值。
726
+ # @type External: :class:`Tencentcloud::Tke.v20220501.models.ExternalNodePoolInfo`
727
+
728
+ attr_accessor :ClusterId, :NodePoolId, :Taints, :DeletionProtection, :Type, :Labels, :LifeState, :CreatedAt, :Name, :Native, :Annotations, :Super, :Regular, :External
729
+
730
+ def initialize(clusterid=nil, nodepoolid=nil, taints=nil, deletionprotection=nil, type=nil, labels=nil, lifestate=nil, createdat=nil, name=nil, native=nil, annotations=nil, _super=nil, regular=nil, external=nil)
731
+ @ClusterId = clusterid
732
+ @NodePoolId = nodepoolid
733
+ @Taints = taints
734
+ @DeletionProtection = deletionprotection
735
+ @Type = type
736
+ @Labels = labels
737
+ @LifeState = lifestate
738
+ @CreatedAt = createdat
739
+ @Name = name
740
+ @Native = native
741
+ @Annotations = annotations
742
+ @Super = _super
743
+ @Regular = regular
744
+ @External = external
745
+ end
746
+
747
+ def deserialize(params)
748
+ @ClusterId = params['ClusterId']
749
+ @NodePoolId = params['NodePoolId']
750
+ unless params['Taints'].nil?
751
+ @Taints = []
752
+ params['Taints'].each do |i|
753
+ taint_tmp = Taint.new
754
+ taint_tmp.deserialize(i)
755
+ @Taints << taint_tmp
756
+ end
757
+ end
758
+ @DeletionProtection = params['DeletionProtection']
759
+ @Type = params['Type']
760
+ unless params['Labels'].nil?
761
+ @Labels = []
762
+ params['Labels'].each do |i|
763
+ label_tmp = Label.new
764
+ label_tmp.deserialize(i)
765
+ @Labels << label_tmp
766
+ end
767
+ end
768
+ @LifeState = params['LifeState']
769
+ @CreatedAt = params['CreatedAt']
770
+ @Name = params['Name']
771
+ unless params['Native'].nil?
772
+ @Native = NativeNodePoolInfo.new
773
+ @Native.deserialize(params['Native'])
774
+ end
775
+ unless params['Annotations'].nil?
776
+ @Annotations = []
777
+ params['Annotations'].each do |i|
778
+ annotation_tmp = Annotation.new
779
+ annotation_tmp.deserialize(i)
780
+ @Annotations << annotation_tmp
781
+ end
782
+ end
783
+ unless params['Super'].nil?
784
+ @Super = SuperNodePoolInfo.new
785
+ @Super.deserialize(params['Super'])
786
+ end
787
+ unless params['Regular'].nil?
788
+ @Regular = RegularNodePoolInfo.new
789
+ @Regular.deserialize(params['Regular'])
790
+ end
791
+ unless params['External'].nil?
792
+ @External = ExternalNodePoolInfo.new
793
+ @External.deserialize(params['External'])
794
+ end
795
+ end
796
+ end
797
+
798
+ # 普通节点信息
799
+ class RegularNodeInfo < TencentCloud::Common::AbstractModel
800
+ # @param InstanceAdvancedSettings: 节点配置
801
+ # 注意:此字段可能返回 null,表示取不到有效值。
802
+ # @type InstanceAdvancedSettings: :class:`Tencentcloud::Tke.v20220501.models.InstanceAdvancedSettings`
803
+ # @param AutoscalingGroupId: 自动伸缩组ID
804
+ # 注意:此字段可能返回 null,表示取不到有效值。
805
+ # @type AutoscalingGroupId: String
806
+
807
+ attr_accessor :InstanceAdvancedSettings, :AutoscalingGroupId
808
+
809
+ def initialize(instanceadvancedsettings=nil, autoscalinggroupid=nil)
810
+ @InstanceAdvancedSettings = instanceadvancedsettings
811
+ @AutoscalingGroupId = autoscalinggroupid
812
+ end
813
+
814
+ def deserialize(params)
815
+ unless params['InstanceAdvancedSettings'].nil?
816
+ @InstanceAdvancedSettings = InstanceAdvancedSettings.new
817
+ @InstanceAdvancedSettings.deserialize(params['InstanceAdvancedSettings'])
818
+ end
819
+ @AutoscalingGroupId = params['AutoscalingGroupId']
820
+ end
821
+ end
822
+
823
+ # 普通节点池信息
824
+ class RegularNodePoolInfo < TencentCloud::Common::AbstractModel
825
+ # @param LaunchConfigurationId: LaunchConfigurationId 配置
826
+ # @type LaunchConfigurationId: String
827
+ # @param AutoscalingGroupId: AutoscalingGroupId 分组id
828
+ # @type AutoscalingGroupId: String
829
+ # @param NodeCountSummary: NodeCountSummary 节点列表
830
+ # @type NodeCountSummary: :class:`Tencentcloud::Tke.v20220501.models.NodeCountSummary`
831
+ # @param AutoscalingGroupStatus: 状态信息
832
+ # 注意:此字段可能返回 null,表示取不到有效值。
833
+ # @type AutoscalingGroupStatus: String
834
+ # @param MaxNodesNum: 最大节点数量
835
+ # 注意:此字段可能返回 null,表示取不到有效值。
836
+ # @type MaxNodesNum: Integer
837
+ # @param MinNodesNum: 最小节点数量
838
+ # 注意:此字段可能返回 null,表示取不到有效值。
839
+ # @type MinNodesNum: Integer
840
+ # @param DesiredNodesNum: 期望的节点数量
841
+ # 注意:此字段可能返回 null,表示取不到有效值。
842
+ # @type DesiredNodesNum: Integer
843
+ # @param NodePoolOs: 节点池osName
844
+ # 注意:此字段可能返回 null,表示取不到有效值。
845
+ # @type NodePoolOs: String
846
+ # @param InstanceAdvancedSettings: 节点配置
847
+ # 注意:此字段可能返回 null,表示取不到有效值。
848
+ # @type InstanceAdvancedSettings: :class:`Tencentcloud::Tke.v20220501.models.InstanceAdvancedSettings`
849
+
850
+ attr_accessor :LaunchConfigurationId, :AutoscalingGroupId, :NodeCountSummary, :AutoscalingGroupStatus, :MaxNodesNum, :MinNodesNum, :DesiredNodesNum, :NodePoolOs, :InstanceAdvancedSettings
851
+
852
+ def initialize(launchconfigurationid=nil, autoscalinggroupid=nil, nodecountsummary=nil, autoscalinggroupstatus=nil, maxnodesnum=nil, minnodesnum=nil, desirednodesnum=nil, nodepoolos=nil, instanceadvancedsettings=nil)
853
+ @LaunchConfigurationId = launchconfigurationid
854
+ @AutoscalingGroupId = autoscalinggroupid
855
+ @NodeCountSummary = nodecountsummary
856
+ @AutoscalingGroupStatus = autoscalinggroupstatus
857
+ @MaxNodesNum = maxnodesnum
858
+ @MinNodesNum = minnodesnum
859
+ @DesiredNodesNum = desirednodesnum
860
+ @NodePoolOs = nodepoolos
861
+ @InstanceAdvancedSettings = instanceadvancedsettings
862
+ end
863
+
864
+ def deserialize(params)
865
+ @LaunchConfigurationId = params['LaunchConfigurationId']
866
+ @AutoscalingGroupId = params['AutoscalingGroupId']
867
+ unless params['NodeCountSummary'].nil?
868
+ @NodeCountSummary = NodeCountSummary.new
869
+ @NodeCountSummary.deserialize(params['NodeCountSummary'])
870
+ end
871
+ @AutoscalingGroupStatus = params['AutoscalingGroupStatus']
872
+ @MaxNodesNum = params['MaxNodesNum']
873
+ @MinNodesNum = params['MinNodesNum']
874
+ @DesiredNodesNum = params['DesiredNodesNum']
875
+ @NodePoolOs = params['NodePoolOs']
876
+ unless params['InstanceAdvancedSettings'].nil?
877
+ @InstanceAdvancedSettings = InstanceAdvancedSettings.new
878
+ @InstanceAdvancedSettings.deserialize(params['InstanceAdvancedSettings'])
879
+ end
880
+ end
881
+ end
882
+
883
+ # 运行时配置
884
+ class RuntimeConfig < TencentCloud::Common::AbstractModel
885
+ # @param RuntimeType: 运行时类型
886
+ # 注意:此字段可能返回 null,表示取不到有效值。
887
+ # @type RuntimeType: String
888
+ # @param RuntimeVersion: 运行时版本
889
+ # 注意:此字段可能返回 null,表示取不到有效值。
890
+ # @type RuntimeVersion: String
891
+ # @param RuntimeRootDir: 运行时根目录
892
+ # 注意:此字段可能返回 null,表示取不到有效值。
893
+ # @type RuntimeRootDir: String
894
+
895
+ attr_accessor :RuntimeType, :RuntimeVersion, :RuntimeRootDir
896
+
897
+ def initialize(runtimetype=nil, runtimeversion=nil, runtimerootdir=nil)
898
+ @RuntimeType = runtimetype
899
+ @RuntimeVersion = runtimeversion
900
+ @RuntimeRootDir = runtimerootdir
901
+ end
902
+
903
+ def deserialize(params)
904
+ @RuntimeType = params['RuntimeType']
905
+ @RuntimeVersion = params['RuntimeVersion']
906
+ @RuntimeRootDir = params['RuntimeRootDir']
907
+ end
908
+ end
909
+
910
+ # 排序信息
911
+ class SortBy < TencentCloud::Common::AbstractModel
912
+ # @param FieldName: 排序指标
913
+ # @type FieldName: String
914
+ # @param OrderType: 排序方式
915
+ # @type OrderType: String
916
+
917
+ attr_accessor :FieldName, :OrderType
918
+
919
+ def initialize(fieldname=nil, ordertype=nil)
920
+ @FieldName = fieldname
921
+ @OrderType = ordertype
922
+ end
923
+
924
+ def deserialize(params)
925
+ @FieldName = params['FieldName']
926
+ @OrderType = params['OrderType']
927
+ end
928
+ end
929
+
930
+ # 超级节点信息
931
+ class SuperNodeInfo < TencentCloud::Common::AbstractModel
932
+ # @param Name: 实例名称
933
+ # 注意:此字段可能返回 null,表示取不到有效值。
934
+ # @type Name: String
935
+ # @param AutoRenewFlag: 自动续费标识
936
+ # 注意:此字段可能返回 null,表示取不到有效值。
937
+ # @type AutoRenewFlag: Integer
938
+ # @param ResourceType: 资源类型
939
+ # 注意:此字段可能返回 null,表示取不到有效值。
940
+ # @type ResourceType: String
941
+ # @param CPU: 节点的 CPU 规格,单位:核。
942
+ # 注意:此字段可能返回 null,表示取不到有效值。
943
+ # @type CPU: Float
944
+ # @param UsedCPU: 节点上 Pod 的 CPU总和,单位:核。
945
+ # 注意:此字段可能返回 null,表示取不到有效值。
946
+ # @type UsedCPU: Float
947
+ # @param Memory: 节点的内存规格,单位:Gi。
948
+ # 注意:此字段可能返回 null,表示取不到有效值。
949
+ # @type Memory: Float
950
+ # @param UsedMemory: 节点上 Pod 的内存总和,单位:Gi。
951
+ # 注意:此字段可能返回 null,表示取不到有效值。
952
+ # @type UsedMemory: Float
953
+ # @param Zone: 可用区
954
+ # 注意:此字段可能返回 null,表示取不到有效值。
955
+ # @type Zone: String
956
+ # @param VpcId: VPC 唯一 ID
957
+ # 注意:此字段可能返回 null,表示取不到有效值。
958
+ # @type VpcId: String
959
+ # @param SubnetId: 子网唯一 ID
960
+ # 注意:此字段可能返回 null,表示取不到有效值。
961
+ # @type SubnetId: String
962
+ # @param ActiveAt: 生效时间
963
+ # 注意:此字段可能返回 null,表示取不到有效值。
964
+ # @type ActiveAt: String
965
+ # @param ExpireAt: 过期时间
966
+ # 注意:此字段可能返回 null,表示取不到有效值。
967
+ # @type ExpireAt: String
968
+ # @param MaxCPUScheduledPod: 可调度的单 Pod 最大 CPU 规格
969
+ # 注意:此字段可能返回 null,表示取不到有效值。
970
+ # @type MaxCPUScheduledPod: Integer
971
+ # @param InstanceAttribute: 实例属性
972
+ # 注意:此字段可能返回 null,表示取不到有效值。
973
+ # @type InstanceAttribute: String
974
+
975
+ attr_accessor :Name, :AutoRenewFlag, :ResourceType, :CPU, :UsedCPU, :Memory, :UsedMemory, :Zone, :VpcId, :SubnetId, :ActiveAt, :ExpireAt, :MaxCPUScheduledPod, :InstanceAttribute
976
+
977
+ def initialize(name=nil, autorenewflag=nil, resourcetype=nil, cpu=nil, usedcpu=nil, memory=nil, usedmemory=nil, zone=nil, vpcid=nil, subnetid=nil, activeat=nil, expireat=nil, maxcpuscheduledpod=nil, instanceattribute=nil)
978
+ @Name = name
979
+ @AutoRenewFlag = autorenewflag
980
+ @ResourceType = resourcetype
981
+ @CPU = cpu
982
+ @UsedCPU = usedcpu
983
+ @Memory = memory
984
+ @UsedMemory = usedmemory
985
+ @Zone = zone
986
+ @VpcId = vpcid
987
+ @SubnetId = subnetid
988
+ @ActiveAt = activeat
989
+ @ExpireAt = expireat
990
+ @MaxCPUScheduledPod = maxcpuscheduledpod
991
+ @InstanceAttribute = instanceattribute
992
+ end
993
+
994
+ def deserialize(params)
995
+ @Name = params['Name']
996
+ @AutoRenewFlag = params['AutoRenewFlag']
997
+ @ResourceType = params['ResourceType']
998
+ @CPU = params['CPU']
999
+ @UsedCPU = params['UsedCPU']
1000
+ @Memory = params['Memory']
1001
+ @UsedMemory = params['UsedMemory']
1002
+ @Zone = params['Zone']
1003
+ @VpcId = params['VpcId']
1004
+ @SubnetId = params['SubnetId']
1005
+ @ActiveAt = params['ActiveAt']
1006
+ @ExpireAt = params['ExpireAt']
1007
+ @MaxCPUScheduledPod = params['MaxCPUScheduledPod']
1008
+ @InstanceAttribute = params['InstanceAttribute']
1009
+ end
1010
+ end
1011
+
1012
+ # 虚拟节点池信息
1013
+ class SuperNodePoolInfo < TencentCloud::Common::AbstractModel
1014
+ # @param SubnetIds: 子网列表
1015
+ # 注意:此字段可能返回 null,表示取不到有效值。
1016
+ # @type SubnetIds: Array
1017
+ # @param SecurityGroupIds: 安全组列表
1018
+ # 注意:此字段可能返回 null,表示取不到有效值。
1019
+ # @type SecurityGroupIds: Array
1020
+
1021
+ attr_accessor :SubnetIds, :SecurityGroupIds
1022
+
1023
+ def initialize(subnetids=nil, securitygroupids=nil)
1024
+ @SubnetIds = subnetids
1025
+ @SecurityGroupIds = securitygroupids
1026
+ end
1027
+
1028
+ def deserialize(params)
1029
+ @SubnetIds = params['SubnetIds']
1030
+ @SecurityGroupIds = params['SecurityGroupIds']
1031
+ end
1032
+ end
1033
+
1034
+ # kubernetes Taint
1035
+ class Taint < TencentCloud::Common::AbstractModel
1036
+ # @param Key: Taint的Key
1037
+ # @type Key: String
1038
+ # @param Value: Taint的Value
1039
+ # @type Value: String
1040
+ # @param Effect: Taint的Effect
1041
+ # @type Effect: String
1042
+
1043
+ attr_accessor :Key, :Value, :Effect
1044
+
1045
+ def initialize(key=nil, value=nil, effect=nil)
1046
+ @Key = key
1047
+ @Value = value
1048
+ @Effect = effect
1049
+ end
1050
+
1051
+ def deserialize(params)
1052
+ @Key = params['Key']
1053
+ @Value = params['Value']
1054
+ @Effect = params['Effect']
1055
+ end
1056
+ end
1057
+
1058
+ end
1059
+ end
1060
+ end
1061
+
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.754
4
+ version: 3.0.755
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-21 00:00:00.000000000 Z
11
+ date: 2024-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -36,6 +36,8 @@ files:
36
36
  - lib/v20180525/client.rb
37
37
  - lib/v20180525/models.rb
38
38
  - lib/tencentcloud-sdk-tke.rb
39
+ - lib/v20220501/client.rb
40
+ - lib/v20220501/models.rb
39
41
  - lib/VERSION
40
42
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
43
  licenses: