tencentcloud-sdk-tke 3.0.1197 → 3.0.1202
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/v20180525/client.rb +72 -0
- data/lib/v20180525/models.rb +167 -0
- 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: d4061758614b5336b5d9481fe40e2f69ea8dd0f6
|
|
4
|
+
data.tar.gz: 8dad7bd7ef0d43700cddfe1373ea8c20478eed3a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4e17d220e9c56940f313a6acba62fec2553af836c0d3662d2e980eceb7d5fd8accb61452d4f0f59da283f61fafbe2e70e6d33b7bd570e7271e71f934916ac3df
|
|
7
|
+
data.tar.gz: 9b52437c184a400c7cc01d855add116461ef4572f5bb55a6206530d4db7b033e24e7ff72410e229f30630c1c3a914cc2dd91b1e1fcf4a1cc71de2bc009fb94ad
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1202
|
data/lib/v20180525/client.rb
CHANGED
|
@@ -1829,6 +1829,30 @@ module TencentCloud
|
|
|
1829
1829
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1830
1830
|
end
|
|
1831
1831
|
|
|
1832
|
+
# 使用请求中提供的权限集合,删除用户对应的权限
|
|
1833
|
+
|
|
1834
|
+
# @param request: Request instance for DeleteUserPermissions.
|
|
1835
|
+
# @type request: :class:`Tencentcloud::tke::V20180525::DeleteUserPermissionsRequest`
|
|
1836
|
+
# @rtype: :class:`Tencentcloud::tke::V20180525::DeleteUserPermissionsResponse`
|
|
1837
|
+
def DeleteUserPermissions(request)
|
|
1838
|
+
body = send_request('DeleteUserPermissions', request.serialize)
|
|
1839
|
+
response = JSON.parse(body)
|
|
1840
|
+
if response['Response'].key?('Error') == false
|
|
1841
|
+
model = DeleteUserPermissionsResponse.new
|
|
1842
|
+
model.deserialize(response['Response'])
|
|
1843
|
+
model
|
|
1844
|
+
else
|
|
1845
|
+
code = response['Response']['Error']['Code']
|
|
1846
|
+
message = response['Response']['Error']['Message']
|
|
1847
|
+
reqid = response['Response']['RequestId']
|
|
1848
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1849
|
+
end
|
|
1850
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1851
|
+
raise e
|
|
1852
|
+
rescue StandardError => e
|
|
1853
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1854
|
+
end
|
|
1855
|
+
|
|
1832
1856
|
# 获取addon列表
|
|
1833
1857
|
|
|
1834
1858
|
# @param request: Request instance for DescribeAddon.
|
|
@@ -4277,6 +4301,30 @@ module TencentCloud
|
|
|
4277
4301
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
4278
4302
|
end
|
|
4279
4303
|
|
|
4304
|
+
# 查询一个指定用户在当前地域下所有 TKE 集群中的聚合权限信息。返回用户在各集群中的 ClusterRoleBinding 和 RoleBinding 信息。
|
|
4305
|
+
|
|
4306
|
+
# @param request: Request instance for DescribeUserPermissions.
|
|
4307
|
+
# @type request: :class:`Tencentcloud::tke::V20180525::DescribeUserPermissionsRequest`
|
|
4308
|
+
# @rtype: :class:`Tencentcloud::tke::V20180525::DescribeUserPermissionsResponse`
|
|
4309
|
+
def DescribeUserPermissions(request)
|
|
4310
|
+
body = send_request('DescribeUserPermissions', request.serialize)
|
|
4311
|
+
response = JSON.parse(body)
|
|
4312
|
+
if response['Response'].key?('Error') == false
|
|
4313
|
+
model = DescribeUserPermissionsResponse.new
|
|
4314
|
+
model.deserialize(response['Response'])
|
|
4315
|
+
model
|
|
4316
|
+
else
|
|
4317
|
+
code = response['Response']['Error']['Code']
|
|
4318
|
+
message = response['Response']['Error']['Message']
|
|
4319
|
+
reqid = response['Response']['RequestId']
|
|
4320
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
4321
|
+
end
|
|
4322
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
4323
|
+
raise e
|
|
4324
|
+
rescue StandardError => e
|
|
4325
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
4326
|
+
end
|
|
4327
|
+
|
|
4280
4328
|
# 获取集群版本信息
|
|
4281
4329
|
|
|
4282
4330
|
# @param request: Request instance for DescribeVersions.
|
|
@@ -4757,6 +4805,30 @@ module TencentCloud
|
|
|
4757
4805
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
4758
4806
|
end
|
|
4759
4807
|
|
|
4808
|
+
# 使用请求中提供的权限集合,为用户授予对应的 RBAC 权限。
|
|
4809
|
+
|
|
4810
|
+
# @param request: Request instance for GrantUserPermissions.
|
|
4811
|
+
# @type request: :class:`Tencentcloud::tke::V20180525::GrantUserPermissionsRequest`
|
|
4812
|
+
# @rtype: :class:`Tencentcloud::tke::V20180525::GrantUserPermissionsResponse`
|
|
4813
|
+
def GrantUserPermissions(request)
|
|
4814
|
+
body = send_request('GrantUserPermissions', request.serialize)
|
|
4815
|
+
response = JSON.parse(body)
|
|
4816
|
+
if response['Response'].key?('Error') == false
|
|
4817
|
+
model = GrantUserPermissionsResponse.new
|
|
4818
|
+
model.deserialize(response['Response'])
|
|
4819
|
+
model
|
|
4820
|
+
else
|
|
4821
|
+
code = response['Response']['Error']['Code']
|
|
4822
|
+
message = response['Response']['Error']['Message']
|
|
4823
|
+
reqid = response['Response']['RequestId']
|
|
4824
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
4825
|
+
end
|
|
4826
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
4827
|
+
raise e
|
|
4828
|
+
rescue StandardError => e
|
|
4829
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
4830
|
+
end
|
|
4831
|
+
|
|
4760
4832
|
# 为目标集群安装一个addon
|
|
4761
4833
|
|
|
4762
4834
|
# @param request: Request instance for InstallAddon.
|
data/lib/v20180525/models.rb
CHANGED
|
@@ -5513,6 +5513,49 @@ module TencentCloud
|
|
|
5513
5513
|
end
|
|
5514
5514
|
end
|
|
5515
5515
|
|
|
5516
|
+
# DeleteUserPermissions请求参数结构体
|
|
5517
|
+
class DeleteUserPermissionsRequest < TencentCloud::Common::AbstractModel
|
|
5518
|
+
# @param TargetUin: 要授权的用户的唯一标识符(支持子账号 UIN和角色UIN)
|
|
5519
|
+
# @type TargetUin: String
|
|
5520
|
+
# @param Permissions: 用户最终应拥有的完整权限列表。采用声明式语义,传入的列表代表用户最终应该拥有的全部权限,系统会自动计算差异并执行必要的创建/删除操作。为空或不提供时将清除该用户的所有权限。最大支持 100 个权限项。
|
|
5521
|
+
# @type Permissions: Array
|
|
5522
|
+
|
|
5523
|
+
attr_accessor :TargetUin, :Permissions
|
|
5524
|
+
|
|
5525
|
+
def initialize(targetuin=nil, permissions=nil)
|
|
5526
|
+
@TargetUin = targetuin
|
|
5527
|
+
@Permissions = permissions
|
|
5528
|
+
end
|
|
5529
|
+
|
|
5530
|
+
def deserialize(params)
|
|
5531
|
+
@TargetUin = params['TargetUin']
|
|
5532
|
+
unless params['Permissions'].nil?
|
|
5533
|
+
@Permissions = []
|
|
5534
|
+
params['Permissions'].each do |i|
|
|
5535
|
+
permissionitem_tmp = PermissionItem.new
|
|
5536
|
+
permissionitem_tmp.deserialize(i)
|
|
5537
|
+
@Permissions << permissionitem_tmp
|
|
5538
|
+
end
|
|
5539
|
+
end
|
|
5540
|
+
end
|
|
5541
|
+
end
|
|
5542
|
+
|
|
5543
|
+
# DeleteUserPermissions返回参数结构体
|
|
5544
|
+
class DeleteUserPermissionsResponse < TencentCloud::Common::AbstractModel
|
|
5545
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5546
|
+
# @type RequestId: String
|
|
5547
|
+
|
|
5548
|
+
attr_accessor :RequestId
|
|
5549
|
+
|
|
5550
|
+
def initialize(requestid=nil)
|
|
5551
|
+
@RequestId = requestid
|
|
5552
|
+
end
|
|
5553
|
+
|
|
5554
|
+
def deserialize(params)
|
|
5555
|
+
@RequestId = params['RequestId']
|
|
5556
|
+
end
|
|
5557
|
+
end
|
|
5558
|
+
|
|
5516
5559
|
# DescribeAddon请求参数结构体
|
|
5517
5560
|
class DescribeAddonRequest < TencentCloud::Common::AbstractModel
|
|
5518
5561
|
# @param ClusterId: 集群ID,请从容器服务控制台集群列表中获取(https://console.cloud.tencent.com/tke2/cluster)。
|
|
@@ -11387,6 +11430,54 @@ module TencentCloud
|
|
|
11387
11430
|
end
|
|
11388
11431
|
end
|
|
11389
11432
|
|
|
11433
|
+
# DescribeUserPermissions请求参数结构体
|
|
11434
|
+
class DescribeUserPermissionsRequest < TencentCloud::Common::AbstractModel
|
|
11435
|
+
# @param TargetUin: 要查询的用户的唯一标识符(支持子账号 UIN和角色UIN)
|
|
11436
|
+
# @type TargetUin: String
|
|
11437
|
+
|
|
11438
|
+
attr_accessor :TargetUin
|
|
11439
|
+
|
|
11440
|
+
def initialize(targetuin=nil)
|
|
11441
|
+
@TargetUin = targetuin
|
|
11442
|
+
end
|
|
11443
|
+
|
|
11444
|
+
def deserialize(params)
|
|
11445
|
+
@TargetUin = params['TargetUin']
|
|
11446
|
+
end
|
|
11447
|
+
end
|
|
11448
|
+
|
|
11449
|
+
# DescribeUserPermissions返回参数结构体
|
|
11450
|
+
class DescribeUserPermissionsResponse < TencentCloud::Common::AbstractModel
|
|
11451
|
+
# @param Permissions: 用户在当前地域下所有集群中的权限列表
|
|
11452
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
11453
|
+
# @type Permissions: Array
|
|
11454
|
+
# @param TargetUin: 用户唯一标识符
|
|
11455
|
+
# @type TargetUin: String
|
|
11456
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11457
|
+
# @type RequestId: String
|
|
11458
|
+
|
|
11459
|
+
attr_accessor :Permissions, :TargetUin, :RequestId
|
|
11460
|
+
|
|
11461
|
+
def initialize(permissions=nil, targetuin=nil, requestid=nil)
|
|
11462
|
+
@Permissions = permissions
|
|
11463
|
+
@TargetUin = targetuin
|
|
11464
|
+
@RequestId = requestid
|
|
11465
|
+
end
|
|
11466
|
+
|
|
11467
|
+
def deserialize(params)
|
|
11468
|
+
unless params['Permissions'].nil?
|
|
11469
|
+
@Permissions = []
|
|
11470
|
+
params['Permissions'].each do |i|
|
|
11471
|
+
permissionitem_tmp = PermissionItem.new
|
|
11472
|
+
permissionitem_tmp.deserialize(i)
|
|
11473
|
+
@Permissions << permissionitem_tmp
|
|
11474
|
+
end
|
|
11475
|
+
end
|
|
11476
|
+
@TargetUin = params['TargetUin']
|
|
11477
|
+
@RequestId = params['RequestId']
|
|
11478
|
+
end
|
|
11479
|
+
end
|
|
11480
|
+
|
|
11390
11481
|
# DescribeVersions请求参数结构体
|
|
11391
11482
|
class DescribeVersionsRequest < TencentCloud::Common::AbstractModel
|
|
11392
11483
|
|
|
@@ -13424,6 +13515,49 @@ module TencentCloud
|
|
|
13424
13515
|
end
|
|
13425
13516
|
end
|
|
13426
13517
|
|
|
13518
|
+
# GrantUserPermissions请求参数结构体
|
|
13519
|
+
class GrantUserPermissionsRequest < TencentCloud::Common::AbstractModel
|
|
13520
|
+
# @param TargetUin: 要授权的用户的唯一标识符(支持子账号 UIN和角色UIN)
|
|
13521
|
+
# @type TargetUin: String
|
|
13522
|
+
# @param Permissions: 用户最终应拥有的完整权限列表。采用声明式语义,传入的列表代表用户最终应该拥有的全部权限,系统会自动计算差异并执行必要的创建/删除操作。为空或不提供时将清除该用户的所有权限。最大支持 100 个权限项。
|
|
13523
|
+
# @type Permissions: Array
|
|
13524
|
+
|
|
13525
|
+
attr_accessor :TargetUin, :Permissions
|
|
13526
|
+
|
|
13527
|
+
def initialize(targetuin=nil, permissions=nil)
|
|
13528
|
+
@TargetUin = targetuin
|
|
13529
|
+
@Permissions = permissions
|
|
13530
|
+
end
|
|
13531
|
+
|
|
13532
|
+
def deserialize(params)
|
|
13533
|
+
@TargetUin = params['TargetUin']
|
|
13534
|
+
unless params['Permissions'].nil?
|
|
13535
|
+
@Permissions = []
|
|
13536
|
+
params['Permissions'].each do |i|
|
|
13537
|
+
permissionitem_tmp = PermissionItem.new
|
|
13538
|
+
permissionitem_tmp.deserialize(i)
|
|
13539
|
+
@Permissions << permissionitem_tmp
|
|
13540
|
+
end
|
|
13541
|
+
end
|
|
13542
|
+
end
|
|
13543
|
+
end
|
|
13544
|
+
|
|
13545
|
+
# GrantUserPermissions返回参数结构体
|
|
13546
|
+
class GrantUserPermissionsResponse < TencentCloud::Common::AbstractModel
|
|
13547
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
13548
|
+
# @type RequestId: String
|
|
13549
|
+
|
|
13550
|
+
attr_accessor :RequestId
|
|
13551
|
+
|
|
13552
|
+
def initialize(requestid=nil)
|
|
13553
|
+
@RequestId = requestid
|
|
13554
|
+
end
|
|
13555
|
+
|
|
13556
|
+
def deserialize(params)
|
|
13557
|
+
@RequestId = params['RequestId']
|
|
13558
|
+
end
|
|
13559
|
+
end
|
|
13560
|
+
|
|
13427
13561
|
# Probe中的HttpGet
|
|
13428
13562
|
class HttpGet < TencentCloud::Common::AbstractModel
|
|
13429
13563
|
# @param Path: HttpGet检测的路径
|
|
@@ -16943,6 +17077,39 @@ module TencentCloud
|
|
|
16943
17077
|
end
|
|
16944
17078
|
end
|
|
16945
17079
|
|
|
17080
|
+
# 用户权限项,定义用户在集群中的 RBAC 权限绑定
|
|
17081
|
+
class PermissionItem < TencentCloud::Common::AbstractModel
|
|
17082
|
+
# @param ClusterId: 集群 ID
|
|
17083
|
+
# @type ClusterId: String
|
|
17084
|
+
# @param RoleName: 角色名称。预置角色包括:tke:admin(集群管理员)、tke:ops(运维人员)、tke:dev(开发人员)、tke:ro(只读用户)、tke:ns:dev(命名空间开发人员)、tke:ns:ro(命名空间只读用户),其余为用户自定义角色
|
|
17085
|
+
# @type RoleName: String
|
|
17086
|
+
# @param RoleType: 授权类型。枚举值:cluster(集群级别权限,对应 ClusterRoleBinding)、namespace(命名空间级别权限,对应 RoleBinding)
|
|
17087
|
+
# @type RoleType: String
|
|
17088
|
+
# @param IsCustom: 是否为自定义角色,默认 false
|
|
17089
|
+
# @type IsCustom: Boolean
|
|
17090
|
+
# @param Namespace: 命名空间。当 RoleType 为 namespace 时必填
|
|
17091
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
17092
|
+
# @type Namespace: String
|
|
17093
|
+
|
|
17094
|
+
attr_accessor :ClusterId, :RoleName, :RoleType, :IsCustom, :Namespace
|
|
17095
|
+
|
|
17096
|
+
def initialize(clusterid=nil, rolename=nil, roletype=nil, iscustom=nil, namespace=nil)
|
|
17097
|
+
@ClusterId = clusterid
|
|
17098
|
+
@RoleName = rolename
|
|
17099
|
+
@RoleType = roletype
|
|
17100
|
+
@IsCustom = iscustom
|
|
17101
|
+
@Namespace = namespace
|
|
17102
|
+
end
|
|
17103
|
+
|
|
17104
|
+
def deserialize(params)
|
|
17105
|
+
@ClusterId = params['ClusterId']
|
|
17106
|
+
@RoleName = params['RoleName']
|
|
17107
|
+
@RoleType = params['RoleType']
|
|
17108
|
+
@IsCustom = params['IsCustom']
|
|
17109
|
+
@Namespace = params['Namespace']
|
|
17110
|
+
end
|
|
17111
|
+
end
|
|
17112
|
+
|
|
16946
17113
|
# Pod计费信息
|
|
16947
17114
|
class PodChargeInfo < TencentCloud::Common::AbstractModel
|
|
16948
17115
|
# @param StartTime: Pod计费开始时间
|
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.1202
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-01-
|
|
11
|
+
date: 2026-01-14 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/v20180525/client.rb
|
|
37
|
-
- lib/v20180525/models.rb
|
|
38
36
|
- lib/v20220501/client.rb
|
|
39
37
|
- lib/v20220501/models.rb
|
|
40
38
|
- lib/tencentcloud-sdk-tke.rb
|
|
39
|
+
- lib/v20180525/client.rb
|
|
40
|
+
- lib/v20180525/models.rb
|
|
41
41
|
- lib/VERSION
|
|
42
42
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
|
43
43
|
licenses:
|