tencentcloud-sdk-tke 3.0.1162 → 3.0.1167
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 +96 -0
- data/lib/v20180525/models.rb +390 -18
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ab2a313c2a19e640accd46beef250e2d9e1d2b52
|
|
4
|
+
data.tar.gz: ed44620d7708c976ba3b8151d58ef3b091f73515
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 558f48386c9808d5a9bf641849231ed616b40f47f57200dc25f3022b411bd77bea945c798bceefbcfc3b2b51e427a93b3642e39c6f161e302c07fcb16504fd26
|
|
7
|
+
data.tar.gz: 27501fa66a5f5167772966e0162fe66fd9f47536842e01b466ae357d6efd9e326aca25c3c93603cd1d7d1ed449fc82479a54e2c1f813e5debe48a55265ee35cc
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1167
|
data/lib/tencentcloud-sdk-tke.rb
CHANGED
|
@@ -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
|
data/lib/v20180525/client.rb
CHANGED
|
@@ -1877,6 +1877,30 @@ module TencentCloud
|
|
|
1877
1877
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1878
1878
|
end
|
|
1879
1879
|
|
|
1880
|
+
# 查询集群可用的自定义参数
|
|
1881
|
+
|
|
1882
|
+
# @param request: Request instance for DescribeClusterAvailableExtraArgs.
|
|
1883
|
+
# @type request: :class:`Tencentcloud::tke::V20180525::DescribeClusterAvailableExtraArgsRequest`
|
|
1884
|
+
# @rtype: :class:`Tencentcloud::tke::V20180525::DescribeClusterAvailableExtraArgsResponse`
|
|
1885
|
+
def DescribeClusterAvailableExtraArgs(request)
|
|
1886
|
+
body = send_request('DescribeClusterAvailableExtraArgs', request.serialize)
|
|
1887
|
+
response = JSON.parse(body)
|
|
1888
|
+
if response['Response'].key?('Error') == false
|
|
1889
|
+
model = DescribeClusterAvailableExtraArgsResponse.new
|
|
1890
|
+
model.deserialize(response['Response'])
|
|
1891
|
+
model
|
|
1892
|
+
else
|
|
1893
|
+
code = response['Response']['Error']['Code']
|
|
1894
|
+
message = response['Response']['Error']['Message']
|
|
1895
|
+
reqid = response['Response']['RequestId']
|
|
1896
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1897
|
+
end
|
|
1898
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1899
|
+
raise e
|
|
1900
|
+
rescue StandardError => e
|
|
1901
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1902
|
+
end
|
|
1903
|
+
|
|
1880
1904
|
# 获取指定子账户在RBAC授权模式中对应kube-apiserver客户端证书的CommonName字段,如果没有客户端证书,将会签发一个,此接口有最大传入子账户数量上限,当前为50
|
|
1881
1905
|
|
|
1882
1906
|
# @param request: Request instance for DescribeClusterCommonNames.
|
|
@@ -3893,6 +3917,30 @@ module TencentCloud
|
|
|
3893
3917
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
3894
3918
|
end
|
|
3895
3919
|
|
|
3920
|
+
# 查询任务相关信息,只会查询对应任务类型的最新的一条任务状态
|
|
3921
|
+
|
|
3922
|
+
# @param request: Request instance for DescribeTasks.
|
|
3923
|
+
# @type request: :class:`Tencentcloud::tke::V20180525::DescribeTasksRequest`
|
|
3924
|
+
# @rtype: :class:`Tencentcloud::tke::V20180525::DescribeTasksResponse`
|
|
3925
|
+
def DescribeTasks(request)
|
|
3926
|
+
body = send_request('DescribeTasks', request.serialize)
|
|
3927
|
+
response = JSON.parse(body)
|
|
3928
|
+
if response['Response'].key?('Error') == false
|
|
3929
|
+
model = DescribeTasksResponse.new
|
|
3930
|
+
model.deserialize(response['Response'])
|
|
3931
|
+
model
|
|
3932
|
+
else
|
|
3933
|
+
code = response['Response']['Error']['Code']
|
|
3934
|
+
message = response['Response']['Error']['Message']
|
|
3935
|
+
reqid = response['Response']['RequestId']
|
|
3936
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
3937
|
+
end
|
|
3938
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
3939
|
+
raise e
|
|
3940
|
+
rescue StandardError => e
|
|
3941
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
3942
|
+
end
|
|
3943
|
+
|
|
3896
3944
|
# 获取集群版本信息
|
|
3897
3945
|
|
|
3898
3946
|
# @param request: Request instance for DescribeVersions.
|
|
@@ -4565,6 +4613,54 @@ module TencentCloud
|
|
|
4565
4613
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
4566
4614
|
end
|
|
4567
4615
|
|
|
4616
|
+
# 更新集群自定义参数,只支持托管集群
|
|
4617
|
+
|
|
4618
|
+
# @param request: Request instance for ModifyClusterExtraArgs.
|
|
4619
|
+
# @type request: :class:`Tencentcloud::tke::V20180525::ModifyClusterExtraArgsRequest`
|
|
4620
|
+
# @rtype: :class:`Tencentcloud::tke::V20180525::ModifyClusterExtraArgsResponse`
|
|
4621
|
+
def ModifyClusterExtraArgs(request)
|
|
4622
|
+
body = send_request('ModifyClusterExtraArgs', request.serialize)
|
|
4623
|
+
response = JSON.parse(body)
|
|
4624
|
+
if response['Response'].key?('Error') == false
|
|
4625
|
+
model = ModifyClusterExtraArgsResponse.new
|
|
4626
|
+
model.deserialize(response['Response'])
|
|
4627
|
+
model
|
|
4628
|
+
else
|
|
4629
|
+
code = response['Response']['Error']['Code']
|
|
4630
|
+
message = response['Response']['Error']['Message']
|
|
4631
|
+
reqid = response['Response']['RequestId']
|
|
4632
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
4633
|
+
end
|
|
4634
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
4635
|
+
raise e
|
|
4636
|
+
rescue StandardError => e
|
|
4637
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
4638
|
+
end
|
|
4639
|
+
|
|
4640
|
+
# 暂停或者取消集群更新参数任务
|
|
4641
|
+
|
|
4642
|
+
# @param request: Request instance for ModifyClusterExtraArgsTaskState.
|
|
4643
|
+
# @type request: :class:`Tencentcloud::tke::V20180525::ModifyClusterExtraArgsTaskStateRequest`
|
|
4644
|
+
# @rtype: :class:`Tencentcloud::tke::V20180525::ModifyClusterExtraArgsTaskStateResponse`
|
|
4645
|
+
def ModifyClusterExtraArgsTaskState(request)
|
|
4646
|
+
body = send_request('ModifyClusterExtraArgsTaskState', request.serialize)
|
|
4647
|
+
response = JSON.parse(body)
|
|
4648
|
+
if response['Response'].key?('Error') == false
|
|
4649
|
+
model = ModifyClusterExtraArgsTaskStateResponse.new
|
|
4650
|
+
model.deserialize(response['Response'])
|
|
4651
|
+
model
|
|
4652
|
+
else
|
|
4653
|
+
code = response['Response']['Error']['Code']
|
|
4654
|
+
message = response['Response']['Error']['Message']
|
|
4655
|
+
reqid = response['Response']['RequestId']
|
|
4656
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
4657
|
+
end
|
|
4658
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
4659
|
+
raise e
|
|
4660
|
+
rescue StandardError => e
|
|
4661
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
4662
|
+
end
|
|
4663
|
+
|
|
4568
4664
|
# 修改集群镜像
|
|
4569
4665
|
|
|
4570
4666
|
# @param request: Request instance for ModifyClusterImage.
|
data/lib/v20180525/models.rb
CHANGED
|
@@ -55,7 +55,7 @@ module TencentCloud
|
|
|
55
55
|
# @type ClusterId: String
|
|
56
56
|
# @param ClusterCIDRs: 增加的ClusterCIDR
|
|
57
57
|
# @type ClusterCIDRs: Array
|
|
58
|
-
# @param IgnoreClusterCIDRConflict: 是否忽略ClusterCIDR与VPC
|
|
58
|
+
# @param IgnoreClusterCIDRConflict: 是否忽略ClusterCIDR与VPC路由表的冲突,默认false,为true时忽略冲突
|
|
59
59
|
# @type IgnoreClusterCIDRConflict: Boolean
|
|
60
60
|
|
|
61
61
|
attr_accessor :ClusterId, :ClusterCIDRs, :IgnoreClusterCIDRConflict
|
|
@@ -434,6 +434,66 @@ module TencentCloud
|
|
|
434
434
|
end
|
|
435
435
|
end
|
|
436
436
|
|
|
437
|
+
# 集群可用的自定义参数
|
|
438
|
+
class AvailableExtraArgs < TencentCloud::Common::AbstractModel
|
|
439
|
+
# @param KubeAPIServer: kube-apiserver可用的自定义参数
|
|
440
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
441
|
+
# @type KubeAPIServer: Array
|
|
442
|
+
# @param KubeControllerManager: kube-controller-manager可用的自定义参数
|
|
443
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
444
|
+
# @type KubeControllerManager: Array
|
|
445
|
+
# @param KubeScheduler: kube-scheduler可用的自定义参数
|
|
446
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
447
|
+
# @type KubeScheduler: Array
|
|
448
|
+
# @param Kubelet: kubelet可用的自定义参数
|
|
449
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
450
|
+
# @type Kubelet: Array
|
|
451
|
+
|
|
452
|
+
attr_accessor :KubeAPIServer, :KubeControllerManager, :KubeScheduler, :Kubelet
|
|
453
|
+
|
|
454
|
+
def initialize(kubeapiserver=nil, kubecontrollermanager=nil, kubescheduler=nil, kubelet=nil)
|
|
455
|
+
@KubeAPIServer = kubeapiserver
|
|
456
|
+
@KubeControllerManager = kubecontrollermanager
|
|
457
|
+
@KubeScheduler = kubescheduler
|
|
458
|
+
@Kubelet = kubelet
|
|
459
|
+
end
|
|
460
|
+
|
|
461
|
+
def deserialize(params)
|
|
462
|
+
unless params['KubeAPIServer'].nil?
|
|
463
|
+
@KubeAPIServer = []
|
|
464
|
+
params['KubeAPIServer'].each do |i|
|
|
465
|
+
flag_tmp = Flag.new
|
|
466
|
+
flag_tmp.deserialize(i)
|
|
467
|
+
@KubeAPIServer << flag_tmp
|
|
468
|
+
end
|
|
469
|
+
end
|
|
470
|
+
unless params['KubeControllerManager'].nil?
|
|
471
|
+
@KubeControllerManager = []
|
|
472
|
+
params['KubeControllerManager'].each do |i|
|
|
473
|
+
flag_tmp = Flag.new
|
|
474
|
+
flag_tmp.deserialize(i)
|
|
475
|
+
@KubeControllerManager << flag_tmp
|
|
476
|
+
end
|
|
477
|
+
end
|
|
478
|
+
unless params['KubeScheduler'].nil?
|
|
479
|
+
@KubeScheduler = []
|
|
480
|
+
params['KubeScheduler'].each do |i|
|
|
481
|
+
flag_tmp = Flag.new
|
|
482
|
+
flag_tmp.deserialize(i)
|
|
483
|
+
@KubeScheduler << flag_tmp
|
|
484
|
+
end
|
|
485
|
+
end
|
|
486
|
+
unless params['Kubelet'].nil?
|
|
487
|
+
@Kubelet = []
|
|
488
|
+
params['Kubelet'].each do |i|
|
|
489
|
+
flag_tmp = Flag.new
|
|
490
|
+
flag_tmp.deserialize(i)
|
|
491
|
+
@Kubelet << flag_tmp
|
|
492
|
+
end
|
|
493
|
+
end
|
|
494
|
+
end
|
|
495
|
+
end
|
|
496
|
+
|
|
437
497
|
# 仓储仓库信息
|
|
438
498
|
class BackupStorageLocation < TencentCloud::Common::AbstractModel
|
|
439
499
|
# @param Name: 备份仓库名称
|
|
@@ -514,7 +574,7 @@ module TencentCloud
|
|
|
514
574
|
# @type ID: String
|
|
515
575
|
# @param ClusterId: 集群ID
|
|
516
576
|
# @type ClusterId: String
|
|
517
|
-
# @param ClusterType:
|
|
577
|
+
# @param ClusterType: 集群类型,支持传入 tke(标准集群), eks(Serverless集群), external(注册集群)
|
|
518
578
|
# @type ClusterType: String
|
|
519
579
|
|
|
520
580
|
attr_accessor :ID, :ClusterId, :ClusterType
|
|
@@ -2219,11 +2279,11 @@ module TencentCloud
|
|
|
2219
2279
|
class CreateClusterReleaseRequest < TencentCloud::Common::AbstractModel
|
|
2220
2280
|
# @param ClusterId: 集群ID
|
|
2221
2281
|
# @type ClusterId: String
|
|
2222
|
-
# @param Name:
|
|
2282
|
+
# @param Name: 应用名称,最长63个字符,只能包含小写字母、数字及分隔符“-”,且必须以小写字母开头,数字或小写字母结尾
|
|
2223
2283
|
# @type Name: String
|
|
2224
|
-
# @param Namespace:
|
|
2284
|
+
# @param Namespace: 应用命名空间,从集群详情命名空间获取
|
|
2225
2285
|
# @type Namespace: String
|
|
2226
|
-
# @param Chart:
|
|
2286
|
+
# @param Chart: 制品名称(从应用市场获取)或从第三方repo 安装chart时,制品压缩包下载地址, 不支持重定向类型chart 地址,结尾为*.tgz
|
|
2227
2287
|
# @type Chart: String
|
|
2228
2288
|
# @param Values: 自定义参数
|
|
2229
2289
|
# @type Values: :class:`Tencentcloud::Tke.v20180525.models.ReleaseValues`
|
|
@@ -5537,6 +5597,57 @@ module TencentCloud
|
|
|
5537
5597
|
end
|
|
5538
5598
|
end
|
|
5539
5599
|
|
|
5600
|
+
# DescribeClusterAvailableExtraArgs请求参数结构体
|
|
5601
|
+
class DescribeClusterAvailableExtraArgsRequest < TencentCloud::Common::AbstractModel
|
|
5602
|
+
# @param ClusterVersion: 集群版本
|
|
5603
|
+
# @type ClusterVersion: String
|
|
5604
|
+
# @param ClusterType: 集群类型(MANAGED_CLUSTER或INDEPENDENT_CLUSTER)
|
|
5605
|
+
# @type ClusterType: String
|
|
5606
|
+
|
|
5607
|
+
attr_accessor :ClusterVersion, :ClusterType
|
|
5608
|
+
|
|
5609
|
+
def initialize(clusterversion=nil, clustertype=nil)
|
|
5610
|
+
@ClusterVersion = clusterversion
|
|
5611
|
+
@ClusterType = clustertype
|
|
5612
|
+
end
|
|
5613
|
+
|
|
5614
|
+
def deserialize(params)
|
|
5615
|
+
@ClusterVersion = params['ClusterVersion']
|
|
5616
|
+
@ClusterType = params['ClusterType']
|
|
5617
|
+
end
|
|
5618
|
+
end
|
|
5619
|
+
|
|
5620
|
+
# DescribeClusterAvailableExtraArgs返回参数结构体
|
|
5621
|
+
class DescribeClusterAvailableExtraArgsResponse < TencentCloud::Common::AbstractModel
|
|
5622
|
+
# @param ClusterVersion: 集群版本
|
|
5623
|
+
# @type ClusterVersion: String
|
|
5624
|
+
# @param AvailableExtraArgs: 可用的自定义参数
|
|
5625
|
+
# @type AvailableExtraArgs: :class:`Tencentcloud::Tke.v20180525.models.AvailableExtraArgs`
|
|
5626
|
+
# @param ClusterType: 集群类型
|
|
5627
|
+
# @type ClusterType: String
|
|
5628
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5629
|
+
# @type RequestId: String
|
|
5630
|
+
|
|
5631
|
+
attr_accessor :ClusterVersion, :AvailableExtraArgs, :ClusterType, :RequestId
|
|
5632
|
+
|
|
5633
|
+
def initialize(clusterversion=nil, availableextraargs=nil, clustertype=nil, requestid=nil)
|
|
5634
|
+
@ClusterVersion = clusterversion
|
|
5635
|
+
@AvailableExtraArgs = availableextraargs
|
|
5636
|
+
@ClusterType = clustertype
|
|
5637
|
+
@RequestId = requestid
|
|
5638
|
+
end
|
|
5639
|
+
|
|
5640
|
+
def deserialize(params)
|
|
5641
|
+
@ClusterVersion = params['ClusterVersion']
|
|
5642
|
+
unless params['AvailableExtraArgs'].nil?
|
|
5643
|
+
@AvailableExtraArgs = AvailableExtraArgs.new
|
|
5644
|
+
@AvailableExtraArgs.deserialize(params['AvailableExtraArgs'])
|
|
5645
|
+
end
|
|
5646
|
+
@ClusterType = params['ClusterType']
|
|
5647
|
+
@RequestId = params['RequestId']
|
|
5648
|
+
end
|
|
5649
|
+
end
|
|
5650
|
+
|
|
5540
5651
|
# DescribeClusterCommonNames请求参数结构体
|
|
5541
5652
|
class DescribeClusterCommonNamesRequest < TencentCloud::Common::AbstractModel
|
|
5542
5653
|
# @param ClusterId: 集群ID
|
|
@@ -6248,7 +6359,7 @@ module TencentCloud
|
|
|
6248
6359
|
# @type Limit: Integer
|
|
6249
6360
|
# @param Offset: 偏移量,默认0
|
|
6250
6361
|
# @type Offset: Integer
|
|
6251
|
-
# @param ClusterType:
|
|
6362
|
+
# @param ClusterType: 集群类型,支持传入tke(标准集群),eks(Serverless集群),external(注册集群)
|
|
6252
6363
|
# @type ClusterType: String
|
|
6253
6364
|
|
|
6254
6365
|
attr_accessor :ClusterId, :Limit, :Offset, :ClusterType
|
|
@@ -6315,7 +6426,7 @@ module TencentCloud
|
|
|
6315
6426
|
# @type Name: String
|
|
6316
6427
|
# @param Namespace: 应用所在命名空间
|
|
6317
6428
|
# @type Namespace: String
|
|
6318
|
-
# @param ClusterType:
|
|
6429
|
+
# @param ClusterType: 集群类型,传入 tke(标准集群), eks(Serverless集群), external(注册集群)
|
|
6319
6430
|
# @type ClusterType: String
|
|
6320
6431
|
|
|
6321
6432
|
attr_accessor :ClusterId, :Name, :Namespace, :ClusterType
|
|
@@ -6366,7 +6477,7 @@ module TencentCloud
|
|
|
6366
6477
|
# @type Name: String
|
|
6367
6478
|
# @param Namespace: 应用所在命名空间
|
|
6368
6479
|
# @type Namespace: String
|
|
6369
|
-
# @param ClusterType:
|
|
6480
|
+
# @param ClusterType: 集群类型,传入 tke(标准集群), eks(Serverless集群), external(注册集群)
|
|
6370
6481
|
# @type ClusterType: String
|
|
6371
6482
|
|
|
6372
6483
|
attr_accessor :ClusterId, :Name, :Namespace, :ClusterType
|
|
@@ -6421,11 +6532,11 @@ module TencentCloud
|
|
|
6421
6532
|
class DescribeClusterReleasesRequest < TencentCloud::Common::AbstractModel
|
|
6422
6533
|
# @param ClusterId: 集群id
|
|
6423
6534
|
# @type ClusterId: String
|
|
6424
|
-
# @param Limit:
|
|
6535
|
+
# @param Limit: 每页数量限制,默认值为20
|
|
6425
6536
|
# @type Limit: Integer
|
|
6426
|
-
# @param Offset:
|
|
6537
|
+
# @param Offset: 页偏移量,默认值为0
|
|
6427
6538
|
# @type Offset: Integer
|
|
6428
|
-
# @param ClusterType:
|
|
6539
|
+
# @param ClusterType: 集群类型,传入 tke(标准集群),eks(Serverless集群),external(注册集群)
|
|
6429
6540
|
# @type ClusterType: String
|
|
6430
6541
|
# @param Namespace: helm Release 安装的namespace
|
|
6431
6542
|
# @type Namespace: String
|
|
@@ -10471,6 +10582,60 @@ module TencentCloud
|
|
|
10471
10582
|
end
|
|
10472
10583
|
end
|
|
10473
10584
|
|
|
10585
|
+
# DescribeTasks请求参数结构体
|
|
10586
|
+
class DescribeTasksRequest < TencentCloud::Common::AbstractModel
|
|
10587
|
+
# @param Filter: 根据filter做过滤,支持ClusterId(取值示例:cls-xxxx)、TaskType(任务类型,取值示例:add_cluster_cidr、node_upgrade、node_upgrade_ctl等)其中任务类型必传
|
|
10588
|
+
# @type Filter: Array
|
|
10589
|
+
# @param Latest: 表示最新的任务条目,此值为true的话,输出任务列表中只会有最新的一条
|
|
10590
|
+
# @type Latest: Boolean
|
|
10591
|
+
|
|
10592
|
+
attr_accessor :Filter, :Latest
|
|
10593
|
+
|
|
10594
|
+
def initialize(filter=nil, latest=nil)
|
|
10595
|
+
@Filter = filter
|
|
10596
|
+
@Latest = latest
|
|
10597
|
+
end
|
|
10598
|
+
|
|
10599
|
+
def deserialize(params)
|
|
10600
|
+
unless params['Filter'].nil?
|
|
10601
|
+
@Filter = []
|
|
10602
|
+
params['Filter'].each do |i|
|
|
10603
|
+
filter_tmp = Filter.new
|
|
10604
|
+
filter_tmp.deserialize(i)
|
|
10605
|
+
@Filter << filter_tmp
|
|
10606
|
+
end
|
|
10607
|
+
end
|
|
10608
|
+
@Latest = params['Latest']
|
|
10609
|
+
end
|
|
10610
|
+
end
|
|
10611
|
+
|
|
10612
|
+
# DescribeTasks返回参数结构体
|
|
10613
|
+
class DescribeTasksResponse < TencentCloud::Common::AbstractModel
|
|
10614
|
+
# @param Tasks: 任务步骤信息
|
|
10615
|
+
# @type Tasks: Array
|
|
10616
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
10617
|
+
# @type RequestId: String
|
|
10618
|
+
|
|
10619
|
+
attr_accessor :Tasks, :RequestId
|
|
10620
|
+
|
|
10621
|
+
def initialize(tasks=nil, requestid=nil)
|
|
10622
|
+
@Tasks = tasks
|
|
10623
|
+
@RequestId = requestid
|
|
10624
|
+
end
|
|
10625
|
+
|
|
10626
|
+
def deserialize(params)
|
|
10627
|
+
unless params['Tasks'].nil?
|
|
10628
|
+
@Tasks = []
|
|
10629
|
+
params['Tasks'].each do |i|
|
|
10630
|
+
task_tmp = Task.new
|
|
10631
|
+
task_tmp.deserialize(i)
|
|
10632
|
+
@Tasks << task_tmp
|
|
10633
|
+
end
|
|
10634
|
+
end
|
|
10635
|
+
@RequestId = params['RequestId']
|
|
10636
|
+
end
|
|
10637
|
+
end
|
|
10638
|
+
|
|
10474
10639
|
# DescribeVersions请求参数结构体
|
|
10475
10640
|
class DescribeVersionsRequest < TencentCloud::Common::AbstractModel
|
|
10476
10641
|
|
|
@@ -12021,6 +12186,38 @@ module TencentCloud
|
|
|
12021
12186
|
end
|
|
12022
12187
|
end
|
|
12023
12188
|
|
|
12189
|
+
# 参数描述
|
|
12190
|
+
class Flag < TencentCloud::Common::AbstractModel
|
|
12191
|
+
# @param Name: 参数名
|
|
12192
|
+
# @type Name: String
|
|
12193
|
+
# @param Type: 参数类型
|
|
12194
|
+
# @type Type: String
|
|
12195
|
+
# @param Usage: 参数描述
|
|
12196
|
+
# @type Usage: String
|
|
12197
|
+
# @param Default: 参数默认值
|
|
12198
|
+
# @type Default: String
|
|
12199
|
+
# @param Constraint: 参数可选范围(目前包含range和in两种,"[]"代表range,如"[1, 5]"表示参数必须>=1且 <=5, "()"代表in, 如"('aa', 'bb')"表示参数只能为字符串'aa'或者'bb',该参数为空表示不校验)
|
|
12200
|
+
# @type Constraint: String
|
|
12201
|
+
|
|
12202
|
+
attr_accessor :Name, :Type, :Usage, :Default, :Constraint
|
|
12203
|
+
|
|
12204
|
+
def initialize(name=nil, type=nil, usage=nil, default=nil, constraint=nil)
|
|
12205
|
+
@Name = name
|
|
12206
|
+
@Type = type
|
|
12207
|
+
@Usage = usage
|
|
12208
|
+
@Default = default
|
|
12209
|
+
@Constraint = constraint
|
|
12210
|
+
end
|
|
12211
|
+
|
|
12212
|
+
def deserialize(params)
|
|
12213
|
+
@Name = params['Name']
|
|
12214
|
+
@Type = params['Type']
|
|
12215
|
+
@Usage = params['Usage']
|
|
12216
|
+
@Default = params['Default']
|
|
12217
|
+
@Constraint = params['Constraint']
|
|
12218
|
+
end
|
|
12219
|
+
end
|
|
12220
|
+
|
|
12024
12221
|
# ForwardTKEEdgeApplicationRequestV3请求参数结构体
|
|
12025
12222
|
class ForwardTKEEdgeApplicationRequestV3Request < TencentCloud::Common::AbstractModel
|
|
12026
12223
|
# @param Method: 请求集群addon的访问
|
|
@@ -12266,7 +12463,7 @@ module TencentCloud
|
|
|
12266
12463
|
|
|
12267
12464
|
# GetUpgradeInstanceProgress请求参数结构体
|
|
12268
12465
|
class GetUpgradeInstanceProgressRequest < TencentCloud::Common::AbstractModel
|
|
12269
|
-
# @param ClusterId: 集群ID
|
|
12466
|
+
# @param ClusterId: 集群ID(请登录 [TKE 控制台](https://console.cloud.tencent.com/tke2) 获取集群 ID )
|
|
12270
12467
|
# @type ClusterId: String
|
|
12271
12468
|
# @param Limit: 最多获取多少个节点的进度
|
|
12272
12469
|
# @type Limit: Integer
|
|
@@ -12295,6 +12492,8 @@ module TencentCloud
|
|
|
12295
12492
|
# @param Done: 已升级节点总数
|
|
12296
12493
|
# @type Done: Integer
|
|
12297
12494
|
# @param LifeState: 升级任务生命周期
|
|
12495
|
+
|
|
12496
|
+
# pending 还未开始
|
|
12298
12497
|
# process 运行中
|
|
12299
12498
|
# paused 已停止
|
|
12300
12499
|
# pauing 正在停止
|
|
@@ -13904,6 +14103,82 @@ module TencentCloud
|
|
|
13904
14103
|
end
|
|
13905
14104
|
end
|
|
13906
14105
|
|
|
14106
|
+
# ModifyClusterExtraArgs请求参数结构体
|
|
14107
|
+
class ModifyClusterExtraArgsRequest < TencentCloud::Common::AbstractModel
|
|
14108
|
+
# @param ClusterId: 目标集群ID
|
|
14109
|
+
# @type ClusterId: String
|
|
14110
|
+
# @param ClusterExtraArgs: 集群自定义参数
|
|
14111
|
+
# @type ClusterExtraArgs: :class:`Tencentcloud::Tke.v20180525.models.ClusterExtraArgs`
|
|
14112
|
+
|
|
14113
|
+
attr_accessor :ClusterId, :ClusterExtraArgs
|
|
14114
|
+
|
|
14115
|
+
def initialize(clusterid=nil, clusterextraargs=nil)
|
|
14116
|
+
@ClusterId = clusterid
|
|
14117
|
+
@ClusterExtraArgs = clusterextraargs
|
|
14118
|
+
end
|
|
14119
|
+
|
|
14120
|
+
def deserialize(params)
|
|
14121
|
+
@ClusterId = params['ClusterId']
|
|
14122
|
+
unless params['ClusterExtraArgs'].nil?
|
|
14123
|
+
@ClusterExtraArgs = ClusterExtraArgs.new
|
|
14124
|
+
@ClusterExtraArgs.deserialize(params['ClusterExtraArgs'])
|
|
14125
|
+
end
|
|
14126
|
+
end
|
|
14127
|
+
end
|
|
14128
|
+
|
|
14129
|
+
# ModifyClusterExtraArgs返回参数结构体
|
|
14130
|
+
class ModifyClusterExtraArgsResponse < TencentCloud::Common::AbstractModel
|
|
14131
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
14132
|
+
# @type RequestId: String
|
|
14133
|
+
|
|
14134
|
+
attr_accessor :RequestId
|
|
14135
|
+
|
|
14136
|
+
def initialize(requestid=nil)
|
|
14137
|
+
@RequestId = requestid
|
|
14138
|
+
end
|
|
14139
|
+
|
|
14140
|
+
def deserialize(params)
|
|
14141
|
+
@RequestId = params['RequestId']
|
|
14142
|
+
end
|
|
14143
|
+
end
|
|
14144
|
+
|
|
14145
|
+
# ModifyClusterExtraArgsTaskState请求参数结构体
|
|
14146
|
+
class ModifyClusterExtraArgsTaskStateRequest < TencentCloud::Common::AbstractModel
|
|
14147
|
+
# @param ClusterId: 集群实例ID
|
|
14148
|
+
# @type ClusterId: String
|
|
14149
|
+
# @param Operation: 操作类型:
|
|
14150
|
+
# abort 取消并回退任务
|
|
14151
|
+
# @type Operation: String
|
|
14152
|
+
|
|
14153
|
+
attr_accessor :ClusterId, :Operation
|
|
14154
|
+
|
|
14155
|
+
def initialize(clusterid=nil, operation=nil)
|
|
14156
|
+
@ClusterId = clusterid
|
|
14157
|
+
@Operation = operation
|
|
14158
|
+
end
|
|
14159
|
+
|
|
14160
|
+
def deserialize(params)
|
|
14161
|
+
@ClusterId = params['ClusterId']
|
|
14162
|
+
@Operation = params['Operation']
|
|
14163
|
+
end
|
|
14164
|
+
end
|
|
14165
|
+
|
|
14166
|
+
# ModifyClusterExtraArgsTaskState返回参数结构体
|
|
14167
|
+
class ModifyClusterExtraArgsTaskStateResponse < TencentCloud::Common::AbstractModel
|
|
14168
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
14169
|
+
# @type RequestId: String
|
|
14170
|
+
|
|
14171
|
+
attr_accessor :RequestId
|
|
14172
|
+
|
|
14173
|
+
def initialize(requestid=nil)
|
|
14174
|
+
@RequestId = requestid
|
|
14175
|
+
end
|
|
14176
|
+
|
|
14177
|
+
def deserialize(params)
|
|
14178
|
+
@RequestId = params['RequestId']
|
|
14179
|
+
end
|
|
14180
|
+
end
|
|
14181
|
+
|
|
13907
14182
|
# ModifyClusterImage请求参数结构体
|
|
13908
14183
|
class ModifyClusterImageRequest < TencentCloud::Common::AbstractModel
|
|
13909
14184
|
# @param ClusterId: 集群ID
|
|
@@ -15458,7 +15733,17 @@ module TencentCloud
|
|
|
15458
15733
|
# @type Name: String
|
|
15459
15734
|
# @param Namespace: 应用命名空间
|
|
15460
15735
|
# @type Namespace: String
|
|
15461
|
-
# @param Status:
|
|
15736
|
+
# @param Status: 应用状态,参考 Helm 发布状态。
|
|
15737
|
+
# 可选值及其释义如下:
|
|
15738
|
+
# • unknown: 状态未知
|
|
15739
|
+
# • deployed: 已成功部署
|
|
15740
|
+
# • uninstalled: 已卸载
|
|
15741
|
+
# • superseded: 已被新版本替代
|
|
15742
|
+
# • failed: 部署失败
|
|
15743
|
+
# • uninstalling: 正在卸载中
|
|
15744
|
+
# • pending-install: 等待安装/安装进行中
|
|
15745
|
+
# • pending-upgrade: 等待升级/升级进行中
|
|
15746
|
+
# • pending-rollback: 等待回滚/回滚进行中
|
|
15462
15747
|
# @type Status: String
|
|
15463
15748
|
# @param UpdatedTime: 更新时间
|
|
15464
15749
|
# @type UpdatedTime: String
|
|
@@ -17170,7 +17455,17 @@ module TencentCloud
|
|
|
17170
17455
|
# @type Namespace: String
|
|
17171
17456
|
# @param Revision: 应用当前版本
|
|
17172
17457
|
# @type Revision: String
|
|
17173
|
-
# @param Status:
|
|
17458
|
+
# @param Status: 应用状态,参考 Helm 发布状态。
|
|
17459
|
+
# 可选值及其释义如下:
|
|
17460
|
+
# • unknown: 状态未知
|
|
17461
|
+
# • deployed: 已成功部署
|
|
17462
|
+
# • uninstalled: 已卸载
|
|
17463
|
+
# • superseded: 已被新版本替代
|
|
17464
|
+
# • failed: 部署失败
|
|
17465
|
+
# • uninstalling: 正在卸载中
|
|
17466
|
+
# • pending-install: 等待安装/安装进行中
|
|
17467
|
+
# • pending-upgrade: 等待升级/升级进行中
|
|
17468
|
+
# • pending-rollback: 等待回滚/回滚进行中
|
|
17174
17469
|
# @type Status: String
|
|
17175
17470
|
# @param ChartName: 制品名称
|
|
17176
17471
|
# @type ChartName: String
|
|
@@ -17218,7 +17513,17 @@ module TencentCloud
|
|
|
17218
17513
|
# @type Namespace: String
|
|
17219
17514
|
# @param Version: 应用当前版本
|
|
17220
17515
|
# @type Version: Integer
|
|
17221
|
-
# @param Status:
|
|
17516
|
+
# @param Status: 应用状态,参考 Helm 发布状态。
|
|
17517
|
+
# 可选值及其释义如下:
|
|
17518
|
+
# • unknown: 状态未知
|
|
17519
|
+
# • deployed: 已成功部署
|
|
17520
|
+
# • uninstalled: 已卸载
|
|
17521
|
+
# • superseded: 已被新版本替代
|
|
17522
|
+
# • failed: 部署失败
|
|
17523
|
+
# • uninstalling: 正在卸载中
|
|
17524
|
+
# • pending-install: 等待安装/安装进行中
|
|
17525
|
+
# • pending-upgrade: 等待升级/升级进行中
|
|
17526
|
+
# • pending-rollback: 等待回滚/回滚进行中
|
|
17222
17527
|
# @type Status: String
|
|
17223
17528
|
# @param Description: 应用描述
|
|
17224
17529
|
# @type Description: String
|
|
@@ -17302,7 +17607,17 @@ module TencentCloud
|
|
|
17302
17607
|
# @type Namespace: String
|
|
17303
17608
|
# @param Revision: 应用版本
|
|
17304
17609
|
# @type Revision: Integer
|
|
17305
|
-
# @param Status:
|
|
17610
|
+
# @param Status: 应用状态,参考 Helm 发布状态。
|
|
17611
|
+
# 可选值及其释义如下:
|
|
17612
|
+
# • unknown: 状态未知
|
|
17613
|
+
# • deployed: 已成功部署
|
|
17614
|
+
# • uninstalled: 已卸载
|
|
17615
|
+
# • superseded: 已被新版本替代
|
|
17616
|
+
# • failed: 部署失败
|
|
17617
|
+
# • uninstalling: 正在卸载中
|
|
17618
|
+
# • pending-install: 等待安装/安装进行中
|
|
17619
|
+
# • pending-upgrade: 等待升级/升级进行中
|
|
17620
|
+
# • pending-rollback: 等待回滚/回滚进行中
|
|
17306
17621
|
# @type Status: String
|
|
17307
17622
|
# @param Chart: 应用制品名称
|
|
17308
17623
|
# @type Chart: String
|
|
@@ -17742,7 +18057,7 @@ module TencentCloud
|
|
|
17742
18057
|
# @type Namespace: String
|
|
17743
18058
|
# @param Revision: 回滚版本号
|
|
17744
18059
|
# @type Revision: Integer
|
|
17745
|
-
# @param ClusterType:
|
|
18060
|
+
# @param ClusterType: 集群类型,传入 tke(标准集群),eks(Serverless集群),external(注册集群)
|
|
17746
18061
|
# @type ClusterType: String
|
|
17747
18062
|
|
|
17748
18063
|
attr_accessor :ClusterId, :Name, :Namespace, :Revision, :ClusterType
|
|
@@ -18597,6 +18912,63 @@ module TencentCloud
|
|
|
18597
18912
|
end
|
|
18598
18913
|
end
|
|
18599
18914
|
|
|
18915
|
+
# 任务信息
|
|
18916
|
+
class Task < TencentCloud::Common::AbstractModel
|
|
18917
|
+
# @param LifeState: 任务状态(process(运行中)、pause(暂停)、pausing(暂停中)、paused(已暂停)、done(已完成)、abort(中止)、aborted(已中止)、resume(重新执行))
|
|
18918
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
18919
|
+
# @type LifeState: String
|
|
18920
|
+
# @param TargetObj: 任务目标ID
|
|
18921
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
18922
|
+
# @type TargetObj: String
|
|
18923
|
+
# @param Param: 任务参数
|
|
18924
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
18925
|
+
# @type Param: String
|
|
18926
|
+
# @param TaskType: 任务类型
|
|
18927
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
18928
|
+
# @type TaskType: String
|
|
18929
|
+
# @param LastError: 任务失败原因
|
|
18930
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
18931
|
+
# @type LastError: String
|
|
18932
|
+
# @param ClusterID: 任务所属集群ID
|
|
18933
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
18934
|
+
# @type ClusterID: String
|
|
18935
|
+
# @param CreatedAt: 任务开始时间
|
|
18936
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
18937
|
+
# @type CreatedAt: String
|
|
18938
|
+
# @param UpdatedAt: 任务更新时间
|
|
18939
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
18940
|
+
# @type UpdatedAt: String
|
|
18941
|
+
# @param TaskID: 创建任务唯一请求ID
|
|
18942
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
18943
|
+
# @type TaskID: String
|
|
18944
|
+
|
|
18945
|
+
attr_accessor :LifeState, :TargetObj, :Param, :TaskType, :LastError, :ClusterID, :CreatedAt, :UpdatedAt, :TaskID
|
|
18946
|
+
|
|
18947
|
+
def initialize(lifestate=nil, targetobj=nil, param=nil, tasktype=nil, lasterror=nil, clusterid=nil, createdat=nil, updatedat=nil, taskid=nil)
|
|
18948
|
+
@LifeState = lifestate
|
|
18949
|
+
@TargetObj = targetobj
|
|
18950
|
+
@Param = param
|
|
18951
|
+
@TaskType = tasktype
|
|
18952
|
+
@LastError = lasterror
|
|
18953
|
+
@ClusterID = clusterid
|
|
18954
|
+
@CreatedAt = createdat
|
|
18955
|
+
@UpdatedAt = updatedat
|
|
18956
|
+
@TaskID = taskid
|
|
18957
|
+
end
|
|
18958
|
+
|
|
18959
|
+
def deserialize(params)
|
|
18960
|
+
@LifeState = params['LifeState']
|
|
18961
|
+
@TargetObj = params['TargetObj']
|
|
18962
|
+
@Param = params['Param']
|
|
18963
|
+
@TaskType = params['TaskType']
|
|
18964
|
+
@LastError = params['LastError']
|
|
18965
|
+
@ClusterID = params['ClusterID']
|
|
18966
|
+
@CreatedAt = params['CreatedAt']
|
|
18967
|
+
@UpdatedAt = params['UpdatedAt']
|
|
18968
|
+
@TaskID = params['TaskID']
|
|
18969
|
+
end
|
|
18970
|
+
end
|
|
18971
|
+
|
|
18600
18972
|
# 任务步骤信息
|
|
18601
18973
|
class TaskStepInfo < TencentCloud::Common::AbstractModel
|
|
18602
18974
|
# @param Step: 步骤名称
|
|
@@ -18701,7 +19073,7 @@ module TencentCloud
|
|
|
18701
19073
|
# @type Name: String
|
|
18702
19074
|
# @param Namespace: 应用命名空间
|
|
18703
19075
|
# @type Namespace: String
|
|
18704
|
-
# @param ClusterType:
|
|
19076
|
+
# @param ClusterType: 集群类型,传入 tke(标准集群), eks(Serverless集群),external(注册集群)
|
|
18705
19077
|
# @type ClusterType: String
|
|
18706
19078
|
|
|
18707
19079
|
attr_accessor :ClusterId, :Name, :Namespace, :ClusterType
|
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.1167
|
|
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-
|
|
11
|
+
date: 2025-11-13 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/client.rb
|
|
37
|
-
- lib/v20220501/models.rb
|
|
38
36
|
- lib/tencentcloud-sdk-tke.rb
|
|
39
37
|
- lib/v20180525/client.rb
|
|
40
38
|
- lib/v20180525/models.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:
|