tencentcloud-sdk-tke 3.0.817 → 3.0.819

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 517f0bae4cd8c0673068f513b5f81554bd7e29f3
4
- data.tar.gz: 1a7f58ca228a9f5a11be61dc19f28dc340440042
3
+ metadata.gz: aad3ddcb32d5cf319529ce4e4b7de2ac6fc6fc02
4
+ data.tar.gz: 7346df7ca9fb7d1008e81068d5fa03b60742d04d
5
5
  SHA512:
6
- metadata.gz: 6c04254721dc94b12a51746a202f00e8fe8a03c0d86f57295cd908c3b254347d29ef11dcc7566d025600405cd50b14d14b47c34c4852f4b00358fc4007b4e9c4
7
- data.tar.gz: 3104cad1936d5c40dc7c21af65399fa0c754944af16de6bc0357a356cfa8cfcb9086a09c22a3a7163debfd46eeeaca0ae848f2b35235b5600caee13f8f5bfa90
6
+ metadata.gz: 3ffb0503bd50633073b5edb556d7a37a3c53ccc02657914f5379c348fd40ed16b84ad65fbb06e3f92125ebf91fa35c5e358038b824ce6081aafd562ad77380f9
7
+ data.tar.gz: 6aa73b8965bd743509f56715b68e7edcc91f2b1f50494ec182848b6d61b5723ddefc7da8e920736d13fee6b74a13496a0b2c77a3b542c88434a6f9963de9fb67
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.817
1
+ 3.0.819
@@ -2,12 +2,12 @@
2
2
 
3
3
  require 'tencentcloud-sdk-common'
4
4
 
5
- require_relative 'v20220501/client'
6
- require_relative 'v20220501/models'
7
-
8
5
  require_relative 'v20180525/client'
9
6
  require_relative 'v20180525/models'
10
7
 
8
+ require_relative 'v20220501/client'
9
+ require_relative 'v20220501/models'
10
+
11
11
  module TencentCloud
12
12
  module Tke
13
13
  end
@@ -29,6 +29,54 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 创建 TKE 节点池
33
+
34
+ # @param request: Request instance for CreateNodePool.
35
+ # @type request: :class:`Tencentcloud::tke::V20220501::CreateNodePoolRequest`
36
+ # @rtype: :class:`Tencentcloud::tke::V20220501::CreateNodePoolResponse`
37
+ def CreateNodePool(request)
38
+ body = send_request('CreateNodePool', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = CreateNodePoolResponse.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 DeleteNodePool.
59
+ # @type request: :class:`Tencentcloud::tke::V20220501::DeleteNodePoolRequest`
60
+ # @rtype: :class:`Tencentcloud::tke::V20220501::DeleteNodePoolResponse`
61
+ def DeleteNodePool(request)
62
+ body = send_request('DeleteNodePool', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = DeleteNodePoolResponse.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
+
32
80
  # 查询集群下节点实例信息
33
81
 
34
82
  # @param request: Request instance for DescribeClusterInstances.
@@ -77,6 +125,30 @@ module TencentCloud
77
125
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
126
  end
79
127
 
128
+ # 更新 TKE 节点池
129
+
130
+ # @param request: Request instance for ModifyNodePool.
131
+ # @type request: :class:`Tencentcloud::tke::V20220501::ModifyNodePoolRequest`
132
+ # @rtype: :class:`Tencentcloud::tke::V20220501::ModifyNodePoolResponse`
133
+ def ModifyNodePool(request)
134
+ body = send_request('ModifyNodePool', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = ModifyNodePoolResponse.new
138
+ model.deserialize(response['Response'])
139
+ model
140
+ else
141
+ code = response['Response']['Error']['Code']
142
+ message = response['Response']['Error']['Message']
143
+ reqid = response['Response']['RequestId']
144
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
145
+ end
146
+ rescue TencentCloud::Common::TencentCloudSDKException => e
147
+ raise e
148
+ rescue StandardError => e
149
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
+ end
151
+
80
152
 
81
153
  end
82
154
  end
@@ -37,6 +37,33 @@ module TencentCloud
37
37
  end
38
38
  end
39
39
 
40
+ # 托管节点池运维窗口设置
41
+ class AutoUpgradeOptions < TencentCloud::Common::AbstractModel
42
+ # @param AutoUpgradeStartTime: 自动升级开始时间
43
+ # 注意:此字段可能返回 null,表示取不到有效值。
44
+ # @type AutoUpgradeStartTime: String
45
+ # @param Duration: 自动升级持续时间
46
+ # 注意:此字段可能返回 null,表示取不到有效值。
47
+ # @type Duration: String
48
+ # @param WeeklyPeriod: 运维日期
49
+ # 注意:此字段可能返回 null,表示取不到有效值。
50
+ # @type WeeklyPeriod: Array
51
+
52
+ attr_accessor :AutoUpgradeStartTime, :Duration, :WeeklyPeriod
53
+
54
+ def initialize(autoupgradestarttime=nil, duration=nil, weeklyperiod=nil)
55
+ @AutoUpgradeStartTime = autoupgradestarttime
56
+ @Duration = duration
57
+ @WeeklyPeriod = weeklyperiod
58
+ end
59
+
60
+ def deserialize(params)
61
+ @AutoUpgradeStartTime = params['AutoUpgradeStartTime']
62
+ @Duration = params['Duration']
63
+ @WeeklyPeriod = params['WeeklyPeriod']
64
+ end
65
+ end
66
+
40
67
  # 自动扩所容的节点
41
68
  class AutoscalingAdded < TencentCloud::Common::AbstractModel
42
69
  # @param Joining: 正在加入中的节点数量
@@ -65,6 +92,327 @@ module TencentCloud
65
92
  end
66
93
  end
67
94
 
95
+ # 原生节点池创建参数
96
+ class CreateNativeNodePoolParam < TencentCloud::Common::AbstractModel
97
+ # @param Scaling: 节点池伸缩配置
98
+ # @type Scaling: :class:`Tencentcloud::Tke.v20220501.models.MachineSetScaling`
99
+ # @param SubnetIds: 子网列表
100
+ # @type SubnetIds: Array
101
+ # @param InstanceChargeType: 节点计费类型。PREPAID:包年包月;POSTPAID_BY_HOUR:按量计费(默认);
102
+ # @type InstanceChargeType: String
103
+ # @param SystemDisk: 系统盘配置
104
+ # @type SystemDisk: :class:`Tencentcloud::Tke.v20220501.models.Disk`
105
+ # @param InstanceTypes: 机型列表
106
+ # @type InstanceTypes: Array
107
+ # @param SecurityGroupIds: 安全组列表
108
+ # @type SecurityGroupIds: Array
109
+ # @param UpgradeSettings: 自动升级配置
110
+ # @type UpgradeSettings: :class:`Tencentcloud::Tke.v20220501.models.MachineUpgradeSettings`
111
+ # @param AutoRepair: 是否开启自愈能力
112
+ # @type AutoRepair: Boolean
113
+ # @param InstanceChargePrepaid: 包年包月机型计费配置
114
+ # @type InstanceChargePrepaid: :class:`Tencentcloud::Tke.v20220501.models.InstanceChargePrepaid`
115
+ # @param Management: 节点池 Management 参数设置
116
+ # @type Management: :class:`Tencentcloud::Tke.v20220501.models.ManagementConfig`
117
+ # @param HealthCheckPolicyName: 故障自愈规则名称
118
+ # @type HealthCheckPolicyName: String
119
+ # @param HostNamePattern: 原生节点池hostName模式串
120
+ # @type HostNamePattern: String
121
+ # @param KubeletArgs: kubelet 自定义参数
122
+ # @type KubeletArgs: Array
123
+ # @param Lifecycle: 预定义脚本
124
+ # @type Lifecycle: :class:`Tencentcloud::Tke.v20220501.models.LifecycleConfig`
125
+ # @param RuntimeRootDir: 运行时根目录
126
+ # @type RuntimeRootDir: String
127
+ # @param EnableAutoscaling: 是否开启弹性伸缩
128
+ # @type EnableAutoscaling: Boolean
129
+ # @param Replicas: 期望节点数
130
+ # @type Replicas: Integer
131
+ # @param InternetAccessible: 公网带宽设置
132
+ # @type InternetAccessible: :class:`Tencentcloud::Tke.v20220501.models.InternetAccessible`
133
+ # @param DataDisks: 原生节点池数据盘列表
134
+ # @type DataDisks: Array
135
+ # @param KeyIds: 节点池ssh公钥id数组
136
+ # @type KeyIds: Array
137
+
138
+ attr_accessor :Scaling, :SubnetIds, :InstanceChargeType, :SystemDisk, :InstanceTypes, :SecurityGroupIds, :UpgradeSettings, :AutoRepair, :InstanceChargePrepaid, :Management, :HealthCheckPolicyName, :HostNamePattern, :KubeletArgs, :Lifecycle, :RuntimeRootDir, :EnableAutoscaling, :Replicas, :InternetAccessible, :DataDisks, :KeyIds
139
+
140
+ def initialize(scaling=nil, subnetids=nil, instancechargetype=nil, systemdisk=nil, instancetypes=nil, securitygroupids=nil, upgradesettings=nil, autorepair=nil, instancechargeprepaid=nil, management=nil, healthcheckpolicyname=nil, hostnamepattern=nil, kubeletargs=nil, lifecycle=nil, runtimerootdir=nil, enableautoscaling=nil, replicas=nil, internetaccessible=nil, datadisks=nil, keyids=nil)
141
+ @Scaling = scaling
142
+ @SubnetIds = subnetids
143
+ @InstanceChargeType = instancechargetype
144
+ @SystemDisk = systemdisk
145
+ @InstanceTypes = instancetypes
146
+ @SecurityGroupIds = securitygroupids
147
+ @UpgradeSettings = upgradesettings
148
+ @AutoRepair = autorepair
149
+ @InstanceChargePrepaid = instancechargeprepaid
150
+ @Management = management
151
+ @HealthCheckPolicyName = healthcheckpolicyname
152
+ @HostNamePattern = hostnamepattern
153
+ @KubeletArgs = kubeletargs
154
+ @Lifecycle = lifecycle
155
+ @RuntimeRootDir = runtimerootdir
156
+ @EnableAutoscaling = enableautoscaling
157
+ @Replicas = replicas
158
+ @InternetAccessible = internetaccessible
159
+ @DataDisks = datadisks
160
+ @KeyIds = keyids
161
+ end
162
+
163
+ def deserialize(params)
164
+ unless params['Scaling'].nil?
165
+ @Scaling = MachineSetScaling.new
166
+ @Scaling.deserialize(params['Scaling'])
167
+ end
168
+ @SubnetIds = params['SubnetIds']
169
+ @InstanceChargeType = params['InstanceChargeType']
170
+ unless params['SystemDisk'].nil?
171
+ @SystemDisk = Disk.new
172
+ @SystemDisk.deserialize(params['SystemDisk'])
173
+ end
174
+ @InstanceTypes = params['InstanceTypes']
175
+ @SecurityGroupIds = params['SecurityGroupIds']
176
+ unless params['UpgradeSettings'].nil?
177
+ @UpgradeSettings = MachineUpgradeSettings.new
178
+ @UpgradeSettings.deserialize(params['UpgradeSettings'])
179
+ end
180
+ @AutoRepair = params['AutoRepair']
181
+ unless params['InstanceChargePrepaid'].nil?
182
+ @InstanceChargePrepaid = InstanceChargePrepaid.new
183
+ @InstanceChargePrepaid.deserialize(params['InstanceChargePrepaid'])
184
+ end
185
+ unless params['Management'].nil?
186
+ @Management = ManagementConfig.new
187
+ @Management.deserialize(params['Management'])
188
+ end
189
+ @HealthCheckPolicyName = params['HealthCheckPolicyName']
190
+ @HostNamePattern = params['HostNamePattern']
191
+ @KubeletArgs = params['KubeletArgs']
192
+ unless params['Lifecycle'].nil?
193
+ @Lifecycle = LifecycleConfig.new
194
+ @Lifecycle.deserialize(params['Lifecycle'])
195
+ end
196
+ @RuntimeRootDir = params['RuntimeRootDir']
197
+ @EnableAutoscaling = params['EnableAutoscaling']
198
+ @Replicas = params['Replicas']
199
+ unless params['InternetAccessible'].nil?
200
+ @InternetAccessible = InternetAccessible.new
201
+ @InternetAccessible.deserialize(params['InternetAccessible'])
202
+ end
203
+ unless params['DataDisks'].nil?
204
+ @DataDisks = []
205
+ params['DataDisks'].each do |i|
206
+ datadisk_tmp = DataDisk.new
207
+ datadisk_tmp.deserialize(i)
208
+ @DataDisks << datadisk_tmp
209
+ end
210
+ end
211
+ @KeyIds = params['KeyIds']
212
+ end
213
+ end
214
+
215
+ # CreateNodePool请求参数结构体
216
+ class CreateNodePoolRequest < TencentCloud::Common::AbstractModel
217
+ # @param ClusterId: 集群 ID
218
+ # @type ClusterId: String
219
+ # @param Name: 节点池名称
220
+ # @type Name: String
221
+ # @param Type: 节点池类型
222
+ # @type Type: String
223
+ # @param Labels: 节点 Labels
224
+ # @type Labels: Array
225
+ # @param Taints: 节点污点
226
+ # @type Taints: Array
227
+ # @param Tags: 节点标签
228
+ # @type Tags: Array
229
+ # @param DeletionProtection: 是否开启删除保护
230
+ # @type DeletionProtection: Boolean
231
+ # @param Unschedulable: 节点是否默认不可调度
232
+ # @type Unschedulable: Boolean
233
+ # @param Native: 原生节点池创建参数
234
+ # @type Native: :class:`Tencentcloud::Tke.v20220501.models.CreateNativeNodePoolParam`
235
+ # @param Annotations: 节点 Annotation 列表
236
+ # @type Annotations: Array
237
+
238
+ attr_accessor :ClusterId, :Name, :Type, :Labels, :Taints, :Tags, :DeletionProtection, :Unschedulable, :Native, :Annotations
239
+
240
+ def initialize(clusterid=nil, name=nil, type=nil, labels=nil, taints=nil, tags=nil, deletionprotection=nil, unschedulable=nil, native=nil, annotations=nil)
241
+ @ClusterId = clusterid
242
+ @Name = name
243
+ @Type = type
244
+ @Labels = labels
245
+ @Taints = taints
246
+ @Tags = tags
247
+ @DeletionProtection = deletionprotection
248
+ @Unschedulable = unschedulable
249
+ @Native = native
250
+ @Annotations = annotations
251
+ end
252
+
253
+ def deserialize(params)
254
+ @ClusterId = params['ClusterId']
255
+ @Name = params['Name']
256
+ @Type = params['Type']
257
+ unless params['Labels'].nil?
258
+ @Labels = []
259
+ params['Labels'].each do |i|
260
+ label_tmp = Label.new
261
+ label_tmp.deserialize(i)
262
+ @Labels << label_tmp
263
+ end
264
+ end
265
+ unless params['Taints'].nil?
266
+ @Taints = []
267
+ params['Taints'].each do |i|
268
+ taint_tmp = Taint.new
269
+ taint_tmp.deserialize(i)
270
+ @Taints << taint_tmp
271
+ end
272
+ end
273
+ unless params['Tags'].nil?
274
+ @Tags = []
275
+ params['Tags'].each do |i|
276
+ tagspecification_tmp = TagSpecification.new
277
+ tagspecification_tmp.deserialize(i)
278
+ @Tags << tagspecification_tmp
279
+ end
280
+ end
281
+ @DeletionProtection = params['DeletionProtection']
282
+ @Unschedulable = params['Unschedulable']
283
+ unless params['Native'].nil?
284
+ @Native = CreateNativeNodePoolParam.new
285
+ @Native.deserialize(params['Native'])
286
+ end
287
+ unless params['Annotations'].nil?
288
+ @Annotations = []
289
+ params['Annotations'].each do |i|
290
+ annotation_tmp = Annotation.new
291
+ annotation_tmp.deserialize(i)
292
+ @Annotations << annotation_tmp
293
+ end
294
+ end
295
+ end
296
+ end
297
+
298
+ # CreateNodePool返回参数结构体
299
+ class CreateNodePoolResponse < TencentCloud::Common::AbstractModel
300
+ # @param NodePoolId: 节点池 ID
301
+ # @type NodePoolId: String
302
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
303
+ # @type RequestId: String
304
+
305
+ attr_accessor :NodePoolId, :RequestId
306
+
307
+ def initialize(nodepoolid=nil, requestid=nil)
308
+ @NodePoolId = nodepoolid
309
+ @RequestId = requestid
310
+ end
311
+
312
+ def deserialize(params)
313
+ @NodePoolId = params['NodePoolId']
314
+ @RequestId = params['RequestId']
315
+ end
316
+ end
317
+
318
+ # 描述了k8s节点数据盘相关配置与信息。
319
+ class DataDisk < TencentCloud::Common::AbstractModel
320
+ # @param DiskType: 云盘类型
321
+ # 注意:此字段可能返回 null,表示取不到有效值。
322
+ # @type DiskType: String
323
+ # @param FileSystem: 文件系统(ext3/ext4/xfs)
324
+ # 注意:此字段可能返回 null,表示取不到有效值。
325
+ # @type FileSystem: String
326
+ # @param DiskSize: 云盘大小(G)
327
+ # 注意:此字段可能返回 null,表示取不到有效值。
328
+ # @type DiskSize: Integer
329
+ # @param AutoFormatAndMount: 是否自动化格式盘并挂载
330
+ # 注意:此字段可能返回 null,表示取不到有效值。
331
+ # @type AutoFormatAndMount: Boolean
332
+ # @param DiskPartition: 挂载设备名或分区名
333
+ # 注意:此字段可能返回 null,表示取不到有效值。
334
+ # @type DiskPartition: String
335
+ # @param MountTarget: 挂载目录
336
+ # 注意:此字段可能返回 null,表示取不到有效值。
337
+ # @type MountTarget: String
338
+ # @param Encrypt: 传入该参数用于创建加密云盘,取值固定为ENCRYPT
339
+ # 注意:此字段可能返回 null,表示取不到有效值。
340
+ # @type Encrypt: String
341
+ # @param KmsKeyId: 购买加密盘时自定义密钥,当传入该参数时, Encrypt入参不为空
342
+ # 注意:此字段可能返回 null,表示取不到有效值。
343
+ # @type KmsKeyId: String
344
+ # @param SnapshotId: 快照ID,如果传入则根据此快照创建云硬盘,快照类型必须为数据盘快照
345
+ # 注意:此字段可能返回 null,表示取不到有效值。
346
+ # @type SnapshotId: String
347
+ # @param ThroughputPerformance: 云硬盘性能,单位:MB/s。使用此参数可给云硬盘购买额外的性能
348
+ # 注意:此字段可能返回 null,表示取不到有效值。
349
+ # @type ThroughputPerformance: Integer
350
+
351
+ attr_accessor :DiskType, :FileSystem, :DiskSize, :AutoFormatAndMount, :DiskPartition, :MountTarget, :Encrypt, :KmsKeyId, :SnapshotId, :ThroughputPerformance
352
+
353
+ def initialize(disktype=nil, filesystem=nil, disksize=nil, autoformatandmount=nil, diskpartition=nil, mounttarget=nil, encrypt=nil, kmskeyid=nil, snapshotid=nil, throughputperformance=nil)
354
+ @DiskType = disktype
355
+ @FileSystem = filesystem
356
+ @DiskSize = disksize
357
+ @AutoFormatAndMount = autoformatandmount
358
+ @DiskPartition = diskpartition
359
+ @MountTarget = mounttarget
360
+ @Encrypt = encrypt
361
+ @KmsKeyId = kmskeyid
362
+ @SnapshotId = snapshotid
363
+ @ThroughputPerformance = throughputperformance
364
+ end
365
+
366
+ def deserialize(params)
367
+ @DiskType = params['DiskType']
368
+ @FileSystem = params['FileSystem']
369
+ @DiskSize = params['DiskSize']
370
+ @AutoFormatAndMount = params['AutoFormatAndMount']
371
+ @DiskPartition = params['DiskPartition']
372
+ @MountTarget = params['MountTarget']
373
+ @Encrypt = params['Encrypt']
374
+ @KmsKeyId = params['KmsKeyId']
375
+ @SnapshotId = params['SnapshotId']
376
+ @ThroughputPerformance = params['ThroughputPerformance']
377
+ end
378
+ end
379
+
380
+ # DeleteNodePool请求参数结构体
381
+ class DeleteNodePoolRequest < TencentCloud::Common::AbstractModel
382
+ # @param ClusterId: 集群 ID
383
+ # @type ClusterId: String
384
+ # @param NodePoolId: 节点池 ID
385
+ # @type NodePoolId: String
386
+
387
+ attr_accessor :ClusterId, :NodePoolId
388
+
389
+ def initialize(clusterid=nil, nodepoolid=nil)
390
+ @ClusterId = clusterid
391
+ @NodePoolId = nodepoolid
392
+ end
393
+
394
+ def deserialize(params)
395
+ @ClusterId = params['ClusterId']
396
+ @NodePoolId = params['NodePoolId']
397
+ end
398
+ end
399
+
400
+ # DeleteNodePool返回参数结构体
401
+ class DeleteNodePoolResponse < TencentCloud::Common::AbstractModel
402
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
403
+ # @type RequestId: String
404
+
405
+ attr_accessor :RequestId
406
+
407
+ def initialize(requestid=nil)
408
+ @RequestId = requestid
409
+ end
410
+
411
+ def deserialize(params)
412
+ @RequestId = params['RequestId']
413
+ end
414
+ end
415
+
68
416
  # DescribeClusterInstances请求参数结构体
69
417
  class DescribeClusterInstancesRequest < TencentCloud::Common::AbstractModel
70
418
  # @param ClusterId: 集群ID
@@ -230,6 +578,38 @@ module TencentCloud
230
578
  end
231
579
  end
232
580
 
581
+ # 节点系统盘和数据盘配置
582
+ class Disk < TencentCloud::Common::AbstractModel
583
+ # @param DiskType: 云盘类型
584
+ # @type DiskType: String
585
+ # @param DiskSize: 云盘大小(G)
586
+ # @type DiskSize: Integer
587
+ # @param AutoFormatAndMount: 是否自动化格式盘并挂载
588
+ # @type AutoFormatAndMount: Boolean
589
+ # @param FileSystem: 文件系统
590
+ # @type FileSystem: String
591
+ # @param MountTarget: 挂载目录
592
+ # @type MountTarget: String
593
+
594
+ attr_accessor :DiskType, :DiskSize, :AutoFormatAndMount, :FileSystem, :MountTarget
595
+
596
+ def initialize(disktype=nil, disksize=nil, autoformatandmount=nil, filesystem=nil, mounttarget=nil)
597
+ @DiskType = disktype
598
+ @DiskSize = disksize
599
+ @AutoFormatAndMount = autoformatandmount
600
+ @FileSystem = filesystem
601
+ @MountTarget = mounttarget
602
+ end
603
+
604
+ def deserialize(params)
605
+ @DiskType = params['DiskType']
606
+ @DiskSize = params['DiskSize']
607
+ @AutoFormatAndMount = params['AutoFormatAndMount']
608
+ @FileSystem = params['FileSystem']
609
+ @MountTarget = params['MountTarget']
610
+ end
611
+ end
612
+
233
613
  # 第三方节点
234
614
  class ExternalNodeInfo < TencentCloud::Common::AbstractModel
235
615
  # @param Name: 第三方节点名称
@@ -436,6 +816,30 @@ module TencentCloud
436
816
  end
437
817
  end
438
818
 
819
+ # 包年包月配置
820
+ class InstanceChargePrepaid < TencentCloud::Common::AbstractModel
821
+ # @param Period: 后付费计费周期,单位(月):
822
+ # 1,2,3,4,5,,6,7, 8,9,10,11,12,24,36,48,60
823
+ # @type Period: Integer
824
+ # @param RenewFlag: 预付费续费方式:
825
+ # - NOTIFY_AND_AUTO_RENEW:通知用户过期,且自动续费 (默认)
826
+ # - NOTIFY_AND_MANUAL_RENEW:通知用户过期,但不不自动续费
827
+ # - DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知用户过期,也不自动续费
828
+ # @type RenewFlag: String
829
+
830
+ attr_accessor :Period, :RenewFlag
831
+
832
+ def initialize(period=nil, renewflag=nil)
833
+ @Period = period
834
+ @RenewFlag = renewflag
835
+ end
836
+
837
+ def deserialize(params)
838
+ @Period = params['Period']
839
+ @RenewFlag = params['RenewFlag']
840
+ end
841
+ end
842
+
439
843
  # 节点自定义参数
440
844
  class InstanceExtraArgs < TencentCloud::Common::AbstractModel
441
845
  # @param Kubelet: kubelet自定义参数,参数格式为["k1=v1", "k1=v2"], 例如["root-dir=/var/lib/kubelet","feature-gates=PodShareProcessNamespace=true,DynamicKubeletConfig=true"]
@@ -453,6 +857,33 @@ module TencentCloud
453
857
  end
454
858
  end
455
859
 
860
+ # 数值结构
861
+ class IntOrString < TencentCloud::Common::AbstractModel
862
+ # @param Type: 数值类型,0是int, 1是字符串
863
+ # 注意:此字段可能返回 null,表示取不到有效值。
864
+ # @type Type: Integer
865
+ # @param IntVal: 整数
866
+ # 注意:此字段可能返回 null,表示取不到有效值。
867
+ # @type IntVal: Integer
868
+ # @param StrVal: 字符串
869
+ # 注意:此字段可能返回 null,表示取不到有效值。
870
+ # @type StrVal: String
871
+
872
+ attr_accessor :Type, :IntVal, :StrVal
873
+
874
+ def initialize(type=nil, intval=nil, strval=nil)
875
+ @Type = type
876
+ @IntVal = intval
877
+ @StrVal = strval
878
+ end
879
+
880
+ def deserialize(params)
881
+ @Type = params['Type']
882
+ @IntVal = params['IntVal']
883
+ @StrVal = params['StrVal']
884
+ end
885
+ end
886
+
456
887
  # 公网带宽
457
888
  class InternetAccessible < TencentCloud::Common::AbstractModel
458
889
  # @param MaxBandwidthOut: 带宽
@@ -497,6 +928,120 @@ module TencentCloud
497
928
  end
498
929
  end
499
930
 
931
+ # 节点池自定义脚本
932
+ class LifecycleConfig < TencentCloud::Common::AbstractModel
933
+ # @param PreInit: 节点初始化前自定义脚本
934
+ # 注意:此字段可能返回 null,表示取不到有效值。
935
+ # @type PreInit: String
936
+ # @param PostInit: 节点初始化后自定义脚本
937
+ # 注意:此字段可能返回 null,表示取不到有效值。
938
+ # @type PostInit: String
939
+
940
+ attr_accessor :PreInit, :PostInit
941
+
942
+ def initialize(preinit=nil, postinit=nil)
943
+ @PreInit = preinit
944
+ @PostInit = postinit
945
+ end
946
+
947
+ def deserialize(params)
948
+ @PreInit = params['PreInit']
949
+ @PostInit = params['PostInit']
950
+ end
951
+ end
952
+
953
+ # 节点池弹性伸缩配置
954
+ class MachineSetScaling < TencentCloud::Common::AbstractModel
955
+ # @param MinReplicas: 节点池最小副本数
956
+ # 注意:此字段可能返回 null,表示取不到有效值。
957
+ # @type MinReplicas: Integer
958
+ # @param MaxReplicas: 节点池最大副本数
959
+ # 注意:此字段可能返回 null,表示取不到有效值。
960
+ # @type MaxReplicas: Integer
961
+ # @param CreatePolicy: 节点池扩容策略。ZoneEquality:多可用区打散;ZonePriority:首选可用区优先;
962
+ # 注意:此字段可能返回 null,表示取不到有效值。
963
+ # @type CreatePolicy: String
964
+
965
+ attr_accessor :MinReplicas, :MaxReplicas, :CreatePolicy
966
+
967
+ def initialize(minreplicas=nil, maxreplicas=nil, createpolicy=nil)
968
+ @MinReplicas = minreplicas
969
+ @MaxReplicas = maxreplicas
970
+ @CreatePolicy = createpolicy
971
+ end
972
+
973
+ def deserialize(params)
974
+ @MinReplicas = params['MinReplicas']
975
+ @MaxReplicas = params['MaxReplicas']
976
+ @CreatePolicy = params['CreatePolicy']
977
+ end
978
+ end
979
+
980
+ # 托管节点池自动升级配置
981
+ class MachineUpgradeSettings < TencentCloud::Common::AbstractModel
982
+ # @param AutoUpgrade: 是否开启自动升级
983
+ # 注意:此字段可能返回 null,表示取不到有效值。
984
+ # @type AutoUpgrade: Boolean
985
+ # @param UpgradeOptions: 运维窗口
986
+ # 注意:此字段可能返回 null,表示取不到有效值。
987
+ # @type UpgradeOptions: :class:`Tencentcloud::Tke.v20220501.models.AutoUpgradeOptions`
988
+ # @param Components: 升级项
989
+ # 注意:此字段可能返回 null,表示取不到有效值。
990
+ # @type Components: Array
991
+ # @param MaxUnavailable: 升级时,最大不可升级的节点数
992
+ # 注意:此字段可能返回 null,表示取不到有效值。
993
+ # @type MaxUnavailable: :class:`Tencentcloud::Tke.v20220501.models.IntOrString`
994
+
995
+ attr_accessor :AutoUpgrade, :UpgradeOptions, :Components, :MaxUnavailable
996
+
997
+ def initialize(autoupgrade=nil, upgradeoptions=nil, components=nil, maxunavailable=nil)
998
+ @AutoUpgrade = autoupgrade
999
+ @UpgradeOptions = upgradeoptions
1000
+ @Components = components
1001
+ @MaxUnavailable = maxunavailable
1002
+ end
1003
+
1004
+ def deserialize(params)
1005
+ @AutoUpgrade = params['AutoUpgrade']
1006
+ unless params['UpgradeOptions'].nil?
1007
+ @UpgradeOptions = AutoUpgradeOptions.new
1008
+ @UpgradeOptions.deserialize(params['UpgradeOptions'])
1009
+ end
1010
+ @Components = params['Components']
1011
+ unless params['MaxUnavailable'].nil?
1012
+ @MaxUnavailable = IntOrString.new
1013
+ @MaxUnavailable.deserialize(params['MaxUnavailable'])
1014
+ end
1015
+ end
1016
+ end
1017
+
1018
+ # 托管节点池Management配置
1019
+ class ManagementConfig < TencentCloud::Common::AbstractModel
1020
+ # @param Nameservers: dns 配置
1021
+ # 注意:此字段可能返回 null,表示取不到有效值。
1022
+ # @type Nameservers: Array
1023
+ # @param Hosts: hosts 配置
1024
+ # 注意:此字段可能返回 null,表示取不到有效值。
1025
+ # @type Hosts: Array
1026
+ # @param KernelArgs: 内核参数配置
1027
+ # 注意:此字段可能返回 null,表示取不到有效值。
1028
+ # @type KernelArgs: Array
1029
+
1030
+ attr_accessor :Nameservers, :Hosts, :KernelArgs
1031
+
1032
+ def initialize(nameservers=nil, hosts=nil, kernelargs=nil)
1033
+ @Nameservers = nameservers
1034
+ @Hosts = hosts
1035
+ @KernelArgs = kernelargs
1036
+ end
1037
+
1038
+ def deserialize(params)
1039
+ @Nameservers = params['Nameservers']
1040
+ @Hosts = params['Hosts']
1041
+ @KernelArgs = params['KernelArgs']
1042
+ end
1043
+ end
1044
+
500
1045
  # 手动加入的节点
501
1046
  class ManuallyAdded < TencentCloud::Common::AbstractModel
502
1047
  # @param Joining: 加入中的节点数量
@@ -525,6 +1070,105 @@ module TencentCloud
525
1070
  end
526
1071
  end
527
1072
 
1073
+ # ModifyNodePool请求参数结构体
1074
+ class ModifyNodePoolRequest < TencentCloud::Common::AbstractModel
1075
+ # @param ClusterId: 集群 ID
1076
+ # @type ClusterId: String
1077
+ # @param NodePoolId: 节点池 ID
1078
+ # @type NodePoolId: String
1079
+ # @param Name: 节点池名称
1080
+ # @type Name: String
1081
+ # @param Labels: 节点 Labels
1082
+ # @type Labels: Array
1083
+ # @param Taints: 节点污点
1084
+ # @type Taints: Array
1085
+ # @param Tags: 节点标签
1086
+ # @type Tags: Array
1087
+ # @param DeletionProtection: 是否开启删除保护
1088
+ # @type DeletionProtection: Boolean
1089
+ # @param Unschedulable: 节点是否不可调度
1090
+ # @type Unschedulable: Boolean
1091
+ # @param Native: 原生节点池更新参数
1092
+ # @type Native: :class:`Tencentcloud::Tke.v20220501.models.UpdateNativeNodePoolParam`
1093
+ # @param Annotations: 节点 Annotation 列表
1094
+ # @type Annotations: Array
1095
+
1096
+ attr_accessor :ClusterId, :NodePoolId, :Name, :Labels, :Taints, :Tags, :DeletionProtection, :Unschedulable, :Native, :Annotations
1097
+
1098
+ def initialize(clusterid=nil, nodepoolid=nil, name=nil, labels=nil, taints=nil, tags=nil, deletionprotection=nil, unschedulable=nil, native=nil, annotations=nil)
1099
+ @ClusterId = clusterid
1100
+ @NodePoolId = nodepoolid
1101
+ @Name = name
1102
+ @Labels = labels
1103
+ @Taints = taints
1104
+ @Tags = tags
1105
+ @DeletionProtection = deletionprotection
1106
+ @Unschedulable = unschedulable
1107
+ @Native = native
1108
+ @Annotations = annotations
1109
+ end
1110
+
1111
+ def deserialize(params)
1112
+ @ClusterId = params['ClusterId']
1113
+ @NodePoolId = params['NodePoolId']
1114
+ @Name = params['Name']
1115
+ unless params['Labels'].nil?
1116
+ @Labels = []
1117
+ params['Labels'].each do |i|
1118
+ label_tmp = Label.new
1119
+ label_tmp.deserialize(i)
1120
+ @Labels << label_tmp
1121
+ end
1122
+ end
1123
+ unless params['Taints'].nil?
1124
+ @Taints = []
1125
+ params['Taints'].each do |i|
1126
+ taint_tmp = Taint.new
1127
+ taint_tmp.deserialize(i)
1128
+ @Taints << taint_tmp
1129
+ end
1130
+ end
1131
+ unless params['Tags'].nil?
1132
+ @Tags = []
1133
+ params['Tags'].each do |i|
1134
+ tagspecification_tmp = TagSpecification.new
1135
+ tagspecification_tmp.deserialize(i)
1136
+ @Tags << tagspecification_tmp
1137
+ end
1138
+ end
1139
+ @DeletionProtection = params['DeletionProtection']
1140
+ @Unschedulable = params['Unschedulable']
1141
+ unless params['Native'].nil?
1142
+ @Native = UpdateNativeNodePoolParam.new
1143
+ @Native.deserialize(params['Native'])
1144
+ end
1145
+ unless params['Annotations'].nil?
1146
+ @Annotations = []
1147
+ params['Annotations'].each do |i|
1148
+ annotation_tmp = Annotation.new
1149
+ annotation_tmp.deserialize(i)
1150
+ @Annotations << annotation_tmp
1151
+ end
1152
+ end
1153
+ end
1154
+ end
1155
+
1156
+ # ModifyNodePool返回参数结构体
1157
+ class ModifyNodePoolResponse < TencentCloud::Common::AbstractModel
1158
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1159
+ # @type RequestId: String
1160
+
1161
+ attr_accessor :RequestId
1162
+
1163
+ def initialize(requestid=nil)
1164
+ @RequestId = requestid
1165
+ end
1166
+
1167
+ def deserialize(params)
1168
+ @RequestId = params['RequestId']
1169
+ end
1170
+ end
1171
+
528
1172
  # 节点信息
529
1173
  class NativeNodeInfo < TencentCloud::Common::AbstractModel
530
1174
  # @param MachineName: 节点名称
@@ -639,22 +1283,137 @@ module TencentCloud
639
1283
 
640
1284
  # 原生节点池信息
641
1285
  class NativeNodePoolInfo < TencentCloud::Common::AbstractModel
1286
+ # @param Scaling: 伸缩配置
1287
+ # 注意:此字段可能返回 null,表示取不到有效值。
1288
+ # @type Scaling: :class:`Tencentcloud::Tke.v20220501.models.MachineSetScaling`
642
1289
  # @param SubnetIds: 子网列表
643
1290
  # @type SubnetIds: Array
644
1291
  # @param SecurityGroupIds: 安全组列表
645
1292
  # 注意:此字段可能返回 null,表示取不到有效值。
646
1293
  # @type SecurityGroupIds: Array
1294
+ # @param UpgradeSettings: 自动升级配置
1295
+ # 注意:此字段可能返回 null,表示取不到有效值。
1296
+ # @type UpgradeSettings: :class:`Tencentcloud::Tke.v20220501.models.MachineUpgradeSettings`
1297
+ # @param AutoRepair: 是否开启自愈能力
1298
+ # 注意:此字段可能返回 null,表示取不到有效值。
1299
+ # @type AutoRepair: Boolean
1300
+ # @param InstanceChargeType: 节点计费类型
1301
+ # @type InstanceChargeType: String
1302
+ # @param InstanceChargePrepaid: 包年包月机型计费配置
1303
+ # 注意:此字段可能返回 null,表示取不到有效值。
1304
+ # @type InstanceChargePrepaid: :class:`Tencentcloud::Tke.v20220501.models.InstanceChargePrepaid`
1305
+ # @param SystemDisk: 系统盘配置
1306
+ # @type SystemDisk: :class:`Tencentcloud::Tke.v20220501.models.Disk`
1307
+ # @param KeyIds: 密钥 ID 列表
1308
+ # 注意:此字段可能返回 null,表示取不到有效值。
1309
+ # @type KeyIds: Array
1310
+ # @param Management: Machine 系统配置
1311
+ # 注意:此字段可能返回 null,表示取不到有效值。
1312
+ # @type Management: :class:`Tencentcloud::Tke.v20220501.models.ManagementConfig`
1313
+ # @param HealthCheckPolicyName: 故障自愈规则名称
1314
+ # 注意:此字段可能返回 null,表示取不到有效值。
1315
+ # @type HealthCheckPolicyName: String
1316
+ # @param HostNamePattern: 原生节点池hostName模式串
1317
+ # 注意:此字段可能返回 null,表示取不到有效值。
1318
+ # @type HostNamePattern: String
1319
+ # @param KubeletArgs: kubelet 自定义参数
1320
+ # 注意:此字段可能返回 null,表示取不到有效值。
1321
+ # @type KubeletArgs: Array
1322
+ # @param Lifecycle: 预定义脚本
1323
+ # 注意:此字段可能返回 null,表示取不到有效值。
1324
+ # @type Lifecycle: :class:`Tencentcloud::Tke.v20220501.models.LifecycleConfig`
1325
+ # @param RuntimeRootDir: 运行时根目录
1326
+ # 注意:此字段可能返回 null,表示取不到有效值。
1327
+ # @type RuntimeRootDir: String
1328
+ # @param EnableAutoscaling: 是否开启弹性伸缩
1329
+ # 注意:此字段可能返回 null,表示取不到有效值。
1330
+ # @type EnableAutoscaling: Boolean
1331
+ # @param InstanceTypes: 机型列表
1332
+ # @type InstanceTypes: Array
1333
+ # @param Replicas: 期望节点数
1334
+ # 注意:此字段可能返回 null,表示取不到有效值。
1335
+ # @type Replicas: Integer
1336
+ # @param InternetAccessible: 公网带宽设置
1337
+ # 注意:此字段可能返回 null,表示取不到有效值。
1338
+ # @type InternetAccessible: :class:`Tencentcloud::Tke.v20220501.models.InternetAccessible`
1339
+ # @param DataDisks: 原生节点池数据盘
1340
+ # 注意:此字段可能返回 null,表示取不到有效值。
1341
+ # @type DataDisks: Array
647
1342
 
648
- attr_accessor :SubnetIds, :SecurityGroupIds
1343
+ attr_accessor :Scaling, :SubnetIds, :SecurityGroupIds, :UpgradeSettings, :AutoRepair, :InstanceChargeType, :InstanceChargePrepaid, :SystemDisk, :KeyIds, :Management, :HealthCheckPolicyName, :HostNamePattern, :KubeletArgs, :Lifecycle, :RuntimeRootDir, :EnableAutoscaling, :InstanceTypes, :Replicas, :InternetAccessible, :DataDisks
649
1344
 
650
- def initialize(subnetids=nil, securitygroupids=nil)
1345
+ def initialize(scaling=nil, subnetids=nil, securitygroupids=nil, upgradesettings=nil, autorepair=nil, instancechargetype=nil, instancechargeprepaid=nil, systemdisk=nil, keyids=nil, management=nil, healthcheckpolicyname=nil, hostnamepattern=nil, kubeletargs=nil, lifecycle=nil, runtimerootdir=nil, enableautoscaling=nil, instancetypes=nil, replicas=nil, internetaccessible=nil, datadisks=nil)
1346
+ @Scaling = scaling
651
1347
  @SubnetIds = subnetids
652
1348
  @SecurityGroupIds = securitygroupids
1349
+ @UpgradeSettings = upgradesettings
1350
+ @AutoRepair = autorepair
1351
+ @InstanceChargeType = instancechargetype
1352
+ @InstanceChargePrepaid = instancechargeprepaid
1353
+ @SystemDisk = systemdisk
1354
+ @KeyIds = keyids
1355
+ @Management = management
1356
+ @HealthCheckPolicyName = healthcheckpolicyname
1357
+ @HostNamePattern = hostnamepattern
1358
+ @KubeletArgs = kubeletargs
1359
+ @Lifecycle = lifecycle
1360
+ @RuntimeRootDir = runtimerootdir
1361
+ @EnableAutoscaling = enableautoscaling
1362
+ @InstanceTypes = instancetypes
1363
+ @Replicas = replicas
1364
+ @InternetAccessible = internetaccessible
1365
+ @DataDisks = datadisks
653
1366
  end
654
1367
 
655
1368
  def deserialize(params)
1369
+ unless params['Scaling'].nil?
1370
+ @Scaling = MachineSetScaling.new
1371
+ @Scaling.deserialize(params['Scaling'])
1372
+ end
656
1373
  @SubnetIds = params['SubnetIds']
657
1374
  @SecurityGroupIds = params['SecurityGroupIds']
1375
+ unless params['UpgradeSettings'].nil?
1376
+ @UpgradeSettings = MachineUpgradeSettings.new
1377
+ @UpgradeSettings.deserialize(params['UpgradeSettings'])
1378
+ end
1379
+ @AutoRepair = params['AutoRepair']
1380
+ @InstanceChargeType = params['InstanceChargeType']
1381
+ unless params['InstanceChargePrepaid'].nil?
1382
+ @InstanceChargePrepaid = InstanceChargePrepaid.new
1383
+ @InstanceChargePrepaid.deserialize(params['InstanceChargePrepaid'])
1384
+ end
1385
+ unless params['SystemDisk'].nil?
1386
+ @SystemDisk = Disk.new
1387
+ @SystemDisk.deserialize(params['SystemDisk'])
1388
+ end
1389
+ @KeyIds = params['KeyIds']
1390
+ unless params['Management'].nil?
1391
+ @Management = ManagementConfig.new
1392
+ @Management.deserialize(params['Management'])
1393
+ end
1394
+ @HealthCheckPolicyName = params['HealthCheckPolicyName']
1395
+ @HostNamePattern = params['HostNamePattern']
1396
+ @KubeletArgs = params['KubeletArgs']
1397
+ unless params['Lifecycle'].nil?
1398
+ @Lifecycle = LifecycleConfig.new
1399
+ @Lifecycle.deserialize(params['Lifecycle'])
1400
+ end
1401
+ @RuntimeRootDir = params['RuntimeRootDir']
1402
+ @EnableAutoscaling = params['EnableAutoscaling']
1403
+ @InstanceTypes = params['InstanceTypes']
1404
+ @Replicas = params['Replicas']
1405
+ unless params['InternetAccessible'].nil?
1406
+ @InternetAccessible = InternetAccessible.new
1407
+ @InternetAccessible.deserialize(params['InternetAccessible'])
1408
+ end
1409
+ unless params['DataDisks'].nil?
1410
+ @DataDisks = []
1411
+ params['DataDisks'].each do |i|
1412
+ datadisk_tmp = DataDisk.new
1413
+ datadisk_tmp.deserialize(i)
1414
+ @DataDisks << datadisk_tmp
1415
+ end
1416
+ end
658
1417
  end
659
1418
  end
660
1419
 
@@ -692,12 +1451,18 @@ module TencentCloud
692
1451
  # @type ClusterId: String
693
1452
  # @param NodePoolId: 节点池 ID
694
1453
  # @type NodePoolId: String
1454
+ # @param Tags: 节点标签
1455
+ # 注意:此字段可能返回 null,表示取不到有效值。
1456
+ # @type Tags: Array
695
1457
  # @param Taints: 节点污点
696
1458
  # 注意:此字段可能返回 null,表示取不到有效值。
697
1459
  # @type Taints: Array
698
1460
  # @param DeletionProtection: 是否开启删除保护
699
1461
  # 注意:此字段可能返回 null,表示取不到有效值。
700
1462
  # @type DeletionProtection: Boolean
1463
+ # @param Unschedulable: 节点是否不可调度
1464
+ # 注意:此字段可能返回 null,表示取不到有效值。
1465
+ # @type Unschedulable: Boolean
701
1466
  # @param Type: 节点池类型
702
1467
  # @type Type: String
703
1468
  # @param Labels: 节点 Labels
@@ -725,13 +1490,15 @@ module TencentCloud
725
1490
  # 注意:此字段可能返回 null,表示取不到有效值。
726
1491
  # @type External: :class:`Tencentcloud::Tke.v20220501.models.ExternalNodePoolInfo`
727
1492
 
728
- attr_accessor :ClusterId, :NodePoolId, :Taints, :DeletionProtection, :Type, :Labels, :LifeState, :CreatedAt, :Name, :Native, :Annotations, :Super, :Regular, :External
1493
+ attr_accessor :ClusterId, :NodePoolId, :Tags, :Taints, :DeletionProtection, :Unschedulable, :Type, :Labels, :LifeState, :CreatedAt, :Name, :Native, :Annotations, :Super, :Regular, :External
729
1494
 
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)
1495
+ def initialize(clusterid=nil, nodepoolid=nil, tags=nil, taints=nil, deletionprotection=nil, unschedulable=nil, type=nil, labels=nil, lifestate=nil, createdat=nil, name=nil, native=nil, annotations=nil, _super=nil, regular=nil, external=nil)
731
1496
  @ClusterId = clusterid
732
1497
  @NodePoolId = nodepoolid
1498
+ @Tags = tags
733
1499
  @Taints = taints
734
1500
  @DeletionProtection = deletionprotection
1501
+ @Unschedulable = unschedulable
735
1502
  @Type = type
736
1503
  @Labels = labels
737
1504
  @LifeState = lifestate
@@ -747,6 +1514,14 @@ module TencentCloud
747
1514
  def deserialize(params)
748
1515
  @ClusterId = params['ClusterId']
749
1516
  @NodePoolId = params['NodePoolId']
1517
+ unless params['Tags'].nil?
1518
+ @Tags = []
1519
+ params['Tags'].each do |i|
1520
+ tagspecification_tmp = TagSpecification.new
1521
+ tagspecification_tmp.deserialize(i)
1522
+ @Tags << tagspecification_tmp
1523
+ end
1524
+ end
750
1525
  unless params['Taints'].nil?
751
1526
  @Taints = []
752
1527
  params['Taints'].each do |i|
@@ -756,6 +1531,7 @@ module TencentCloud
756
1531
  end
757
1532
  end
758
1533
  @DeletionProtection = params['DeletionProtection']
1534
+ @Unschedulable = params['Unschedulable']
759
1535
  @Type = params['Type']
760
1536
  unless params['Labels'].nil?
761
1537
  @Labels = []
@@ -1031,6 +1807,55 @@ module TencentCloud
1031
1807
  end
1032
1808
  end
1033
1809
 
1810
+ # 标签绑定的资源类型,当前支持类型:"cluster"
1811
+ class Tag < TencentCloud::Common::AbstractModel
1812
+ # @param Key: 标签键
1813
+ # @type Key: String
1814
+ # @param Value: 标签值
1815
+ # @type Value: String
1816
+
1817
+ attr_accessor :Key, :Value
1818
+
1819
+ def initialize(key=nil, value=nil)
1820
+ @Key = key
1821
+ @Value = value
1822
+ end
1823
+
1824
+ def deserialize(params)
1825
+ @Key = params['Key']
1826
+ @Value = params['Value']
1827
+ end
1828
+ end
1829
+
1830
+ # 标签描述列表。通过指定该参数可以同时绑定标签到相应的资源实例,当前仅支持绑定标签到云主机实例。
1831
+ class TagSpecification < TencentCloud::Common::AbstractModel
1832
+ # @param ResourceType: 标签绑定的资源类型,当前支持类型:"cluster"
1833
+ # 注意:此字段可能返回 null,表示取不到有效值。
1834
+ # @type ResourceType: String
1835
+ # @param Tags: 标签对列表
1836
+ # 注意:此字段可能返回 null,表示取不到有效值。
1837
+ # @type Tags: Array
1838
+
1839
+ attr_accessor :ResourceType, :Tags
1840
+
1841
+ def initialize(resourcetype=nil, tags=nil)
1842
+ @ResourceType = resourcetype
1843
+ @Tags = tags
1844
+ end
1845
+
1846
+ def deserialize(params)
1847
+ @ResourceType = params['ResourceType']
1848
+ unless params['Tags'].nil?
1849
+ @Tags = []
1850
+ params['Tags'].each do |i|
1851
+ tag_tmp = Tag.new
1852
+ tag_tmp.deserialize(i)
1853
+ @Tags << tag_tmp
1854
+ end
1855
+ end
1856
+ end
1857
+ end
1858
+
1034
1859
  # kubernetes Taint
1035
1860
  class Taint < TencentCloud::Common::AbstractModel
1036
1861
  # @param Key: Taint的Key
@@ -1055,6 +1880,121 @@ module TencentCloud
1055
1880
  end
1056
1881
  end
1057
1882
 
1883
+ # 修改原生节点池参数
1884
+ class UpdateNativeNodePoolParam < TencentCloud::Common::AbstractModel
1885
+ # @param Scaling: 伸缩配置
1886
+ # @type Scaling: :class:`Tencentcloud::Tke.v20220501.models.MachineSetScaling`
1887
+ # @param SubnetIds: 子网列表
1888
+ # @type SubnetIds: Array
1889
+ # @param SecurityGroupIds: 安全组列表
1890
+ # @type SecurityGroupIds: Array
1891
+ # @param UpgradeSettings: 自动升级配置
1892
+ # @type UpgradeSettings: :class:`Tencentcloud::Tke.v20220501.models.MachineUpgradeSettings`
1893
+ # @param AutoRepair: 是否开启自愈能力
1894
+ # @type AutoRepair: Boolean
1895
+ # @param InstanceChargeType: 节点计费类型变更
1896
+ # 当前仅支持按量计费转包年包月:
1897
+ # - PREPAID
1898
+ # @type InstanceChargeType: String
1899
+ # @param InstanceChargePrepaid: 包年包月机型计费配置
1900
+ # @type InstanceChargePrepaid: :class:`Tencentcloud::Tke.v20220501.models.InstanceChargePrepaid`
1901
+ # @param SystemDisk: 系统盘配置
1902
+ # @type SystemDisk: :class:`Tencentcloud::Tke.v20220501.models.Disk`
1903
+ # @param Management: Machine 系统配置
1904
+ # @type Management: :class:`Tencentcloud::Tke.v20220501.models.ManagementConfig`
1905
+ # @param HealthCheckPolicyName: 故障自愈规则名称
1906
+ # @type HealthCheckPolicyName: String
1907
+ # @param HostNamePattern: 原生节点池hostName模式串
1908
+ # @type HostNamePattern: String
1909
+ # @param KubeletArgs: kubelet 自定义参数
1910
+ # @type KubeletArgs: Array
1911
+ # @param Lifecycle: 预定义脚本
1912
+ # @type Lifecycle: :class:`Tencentcloud::Tke.v20220501.models.LifecycleConfig`
1913
+ # @param RuntimeRootDir: 运行时根目录
1914
+ # @type RuntimeRootDir: String
1915
+ # @param EnableAutoscaling: 是否开启弹性伸缩
1916
+ # @type EnableAutoscaling: Boolean
1917
+ # @param InstanceTypes: 机型列表
1918
+ # @type InstanceTypes: Array
1919
+ # @param Replicas: 期望节点数
1920
+ # @type Replicas: Integer
1921
+ # @param DataDisks: 数据盘列表
1922
+ # @type DataDisks: Array
1923
+ # @param KeyIds: ssh公钥id数组
1924
+ # @type KeyIds: Array
1925
+
1926
+ attr_accessor :Scaling, :SubnetIds, :SecurityGroupIds, :UpgradeSettings, :AutoRepair, :InstanceChargeType, :InstanceChargePrepaid, :SystemDisk, :Management, :HealthCheckPolicyName, :HostNamePattern, :KubeletArgs, :Lifecycle, :RuntimeRootDir, :EnableAutoscaling, :InstanceTypes, :Replicas, :DataDisks, :KeyIds
1927
+
1928
+ def initialize(scaling=nil, subnetids=nil, securitygroupids=nil, upgradesettings=nil, autorepair=nil, instancechargetype=nil, instancechargeprepaid=nil, systemdisk=nil, management=nil, healthcheckpolicyname=nil, hostnamepattern=nil, kubeletargs=nil, lifecycle=nil, runtimerootdir=nil, enableautoscaling=nil, instancetypes=nil, replicas=nil, datadisks=nil, keyids=nil)
1929
+ @Scaling = scaling
1930
+ @SubnetIds = subnetids
1931
+ @SecurityGroupIds = securitygroupids
1932
+ @UpgradeSettings = upgradesettings
1933
+ @AutoRepair = autorepair
1934
+ @InstanceChargeType = instancechargetype
1935
+ @InstanceChargePrepaid = instancechargeprepaid
1936
+ @SystemDisk = systemdisk
1937
+ @Management = management
1938
+ @HealthCheckPolicyName = healthcheckpolicyname
1939
+ @HostNamePattern = hostnamepattern
1940
+ @KubeletArgs = kubeletargs
1941
+ @Lifecycle = lifecycle
1942
+ @RuntimeRootDir = runtimerootdir
1943
+ @EnableAutoscaling = enableautoscaling
1944
+ @InstanceTypes = instancetypes
1945
+ @Replicas = replicas
1946
+ @DataDisks = datadisks
1947
+ @KeyIds = keyids
1948
+ end
1949
+
1950
+ def deserialize(params)
1951
+ unless params['Scaling'].nil?
1952
+ @Scaling = MachineSetScaling.new
1953
+ @Scaling.deserialize(params['Scaling'])
1954
+ end
1955
+ @SubnetIds = params['SubnetIds']
1956
+ @SecurityGroupIds = params['SecurityGroupIds']
1957
+ unless params['UpgradeSettings'].nil?
1958
+ @UpgradeSettings = MachineUpgradeSettings.new
1959
+ @UpgradeSettings.deserialize(params['UpgradeSettings'])
1960
+ end
1961
+ @AutoRepair = params['AutoRepair']
1962
+ @InstanceChargeType = params['InstanceChargeType']
1963
+ unless params['InstanceChargePrepaid'].nil?
1964
+ @InstanceChargePrepaid = InstanceChargePrepaid.new
1965
+ @InstanceChargePrepaid.deserialize(params['InstanceChargePrepaid'])
1966
+ end
1967
+ unless params['SystemDisk'].nil?
1968
+ @SystemDisk = Disk.new
1969
+ @SystemDisk.deserialize(params['SystemDisk'])
1970
+ end
1971
+ unless params['Management'].nil?
1972
+ @Management = ManagementConfig.new
1973
+ @Management.deserialize(params['Management'])
1974
+ end
1975
+ @HealthCheckPolicyName = params['HealthCheckPolicyName']
1976
+ @HostNamePattern = params['HostNamePattern']
1977
+ @KubeletArgs = params['KubeletArgs']
1978
+ unless params['Lifecycle'].nil?
1979
+ @Lifecycle = LifecycleConfig.new
1980
+ @Lifecycle.deserialize(params['Lifecycle'])
1981
+ end
1982
+ @RuntimeRootDir = params['RuntimeRootDir']
1983
+ @EnableAutoscaling = params['EnableAutoscaling']
1984
+ @InstanceTypes = params['InstanceTypes']
1985
+ @Replicas = params['Replicas']
1986
+ unless params['DataDisks'].nil?
1987
+ @DataDisks = []
1988
+ params['DataDisks'].each do |i|
1989
+ datadisk_tmp = DataDisk.new
1990
+ datadisk_tmp.deserialize(i)
1991
+ @DataDisks << datadisk_tmp
1992
+ end
1993
+ end
1994
+ @KeyIds = params['KeyIds']
1995
+ end
1996
+ end
1997
+
1058
1998
  end
1059
1999
  end
1060
2000
  end
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.817
4
+ version: 3.0.819
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-05-08 00:00:00.000000000 Z
11
+ date: 2024-05-12 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/v20220501/models.rb
37
- - lib/v20220501/client.rb
38
- - lib/v20180525/models.rb
39
36
  - lib/v20180525/client.rb
37
+ - lib/v20180525/models.rb
40
38
  - lib/tencentcloud-sdk-tke.rb
39
+ - lib/v20220501/client.rb
40
+ - lib/v20220501/models.rb
41
41
  - lib/VERSION
42
42
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
43
43
  licenses: