tencentcloud-sdk-tke 3.0.1197 → 3.0.1203

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: d07a31a467ecdaf47bd41fd05f5f5c6cb08a4457
4
- data.tar.gz: f1451cb646eac997f15ca509f446b71afaf65d70
3
+ metadata.gz: 57aa920793f5224b3e7d78fc5479c947228fadf2
4
+ data.tar.gz: daaff6dcf3ae9f2cf85852ce1244d9131ed2a382
5
5
  SHA512:
6
- metadata.gz: e11cbce3f17c450b1ca1816e4c701850c2b941a80f94740a1f0988714b9ea6a3749ac9b86b7a9205cee0b11e085baafbc0642a3bac07bdcbae923126e9fb662d
7
- data.tar.gz: 96c9c7612d4a813886dc3434ec3e0f46106ba32356b6707a7a9ed31bcb0260e4a9533991cd15771c1a9aa575de38fe1755e585ce0905168fd9e89bd690d1764f
6
+ metadata.gz: 1259501728a2b041a3060792b0f6579d3e8ae166dada606c7bdc2a8d7099db19814fe88ea368522dc7342b1377f3c539f082503fd025cc35388796ad17c1a7c5
7
+ data.tar.gz: 7a029213b892854e8e1ee5c56af5ce18e121612a1a6283b8de6598fc69f2218a5640c0d0ba2f0b6d810ee556a08d404efc448e68d90db03623a418ff4dc9bb27
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1197
1
+ 3.0.1203
@@ -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.
@@ -2257,13 +2257,21 @@ module TencentCloud
2257
2257
 
2258
2258
  # CreateClusterMaintenanceWindowAndExclusions请求参数结构体
2259
2259
  class CreateClusterMaintenanceWindowAndExclusionsRequest < TencentCloud::Common::AbstractModel
2260
- # @param ClusterID: 集群ID
2260
+ # @param ClusterID: 集群ID,可以从容器服务集群控制台获取(https://console.cloud.tencent.com/tke2/cluster)。
2261
2261
  # @type ClusterID: String
2262
2262
  # @param MaintenanceTime: 维护开始时间
2263
2263
  # @type MaintenanceTime: String
2264
2264
  # @param Duration: 维护时长(小时)
2265
2265
  # @type Duration: Integer
2266
- # @param DayOfWeek: 维护周期(一周中的哪几天)
2266
+ # @param DayOfWeek: 维护周期(一周中的哪几天),支持的参数值如下:
2267
+
2268
+ # - MO:周一
2269
+ # - TU:周二
2270
+ # - WE:周三
2271
+ # - TH:周四
2272
+ # - FR:周五
2273
+ # - SA:周六
2274
+ # - SU:周日
2267
2275
  # @type DayOfWeek: Array
2268
2276
  # @param Exclusions: 维护排除项
2269
2277
  # @type Exclusions: Array
@@ -4499,7 +4507,7 @@ module TencentCloud
4499
4507
 
4500
4508
  # DeleteClusterMaintenanceWindowAndExclusion请求参数结构体
4501
4509
  class DeleteClusterMaintenanceWindowAndExclusionRequest < TencentCloud::Common::AbstractModel
4502
- # @param ClusterID: 集群ID
4510
+ # @param ClusterID: 集群ID,可以从容器服务控制台计划升级功能集群维护窗口页面获取(https://console.cloud.tencent.com/tke2/upgrade-plan)。
4503
4511
  # @type ClusterID: String
4504
4512
 
4505
4513
  attr_accessor :ClusterID
@@ -5513,6 +5521,49 @@ module TencentCloud
5513
5521
  end
5514
5522
  end
5515
5523
 
5524
+ # DeleteUserPermissions请求参数结构体
5525
+ class DeleteUserPermissionsRequest < TencentCloud::Common::AbstractModel
5526
+ # @param TargetUin: 要授权的用户的唯一标识符(支持子账号 UIN和角色UIN)
5527
+ # @type TargetUin: String
5528
+ # @param Permissions: 用户最终应拥有的完整权限列表。采用声明式语义,传入的列表代表用户最终应该拥有的全部权限,系统会自动计算差异并执行必要的创建/删除操作。为空或不提供时将清除该用户的所有权限。最大支持 100 个权限项。
5529
+ # @type Permissions: Array
5530
+
5531
+ attr_accessor :TargetUin, :Permissions
5532
+
5533
+ def initialize(targetuin=nil, permissions=nil)
5534
+ @TargetUin = targetuin
5535
+ @Permissions = permissions
5536
+ end
5537
+
5538
+ def deserialize(params)
5539
+ @TargetUin = params['TargetUin']
5540
+ unless params['Permissions'].nil?
5541
+ @Permissions = []
5542
+ params['Permissions'].each do |i|
5543
+ permissionitem_tmp = PermissionItem.new
5544
+ permissionitem_tmp.deserialize(i)
5545
+ @Permissions << permissionitem_tmp
5546
+ end
5547
+ end
5548
+ end
5549
+ end
5550
+
5551
+ # DeleteUserPermissions返回参数结构体
5552
+ class DeleteUserPermissionsResponse < TencentCloud::Common::AbstractModel
5553
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5554
+ # @type RequestId: String
5555
+
5556
+ attr_accessor :RequestId
5557
+
5558
+ def initialize(requestid=nil)
5559
+ @RequestId = requestid
5560
+ end
5561
+
5562
+ def deserialize(params)
5563
+ @RequestId = params['RequestId']
5564
+ end
5565
+ end
5566
+
5516
5567
  # DescribeAddon请求参数结构体
5517
5568
  class DescribeAddonRequest < TencentCloud::Common::AbstractModel
5518
5569
  # @param ClusterId: 集群ID,请从容器服务控制台集群列表中获取(https://console.cloud.tencent.com/tke2/cluster)。
@@ -11387,6 +11438,54 @@ module TencentCloud
11387
11438
  end
11388
11439
  end
11389
11440
 
11441
+ # DescribeUserPermissions请求参数结构体
11442
+ class DescribeUserPermissionsRequest < TencentCloud::Common::AbstractModel
11443
+ # @param TargetUin: 要查询的用户的唯一标识符(支持子账号 UIN和角色UIN)
11444
+ # @type TargetUin: String
11445
+
11446
+ attr_accessor :TargetUin
11447
+
11448
+ def initialize(targetuin=nil)
11449
+ @TargetUin = targetuin
11450
+ end
11451
+
11452
+ def deserialize(params)
11453
+ @TargetUin = params['TargetUin']
11454
+ end
11455
+ end
11456
+
11457
+ # DescribeUserPermissions返回参数结构体
11458
+ class DescribeUserPermissionsResponse < TencentCloud::Common::AbstractModel
11459
+ # @param Permissions: 用户在当前地域下所有集群中的权限列表
11460
+ # 注意:此字段可能返回 null,表示取不到有效值。
11461
+ # @type Permissions: Array
11462
+ # @param TargetUin: 用户唯一标识符
11463
+ # @type TargetUin: String
11464
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
11465
+ # @type RequestId: String
11466
+
11467
+ attr_accessor :Permissions, :TargetUin, :RequestId
11468
+
11469
+ def initialize(permissions=nil, targetuin=nil, requestid=nil)
11470
+ @Permissions = permissions
11471
+ @TargetUin = targetuin
11472
+ @RequestId = requestid
11473
+ end
11474
+
11475
+ def deserialize(params)
11476
+ unless params['Permissions'].nil?
11477
+ @Permissions = []
11478
+ params['Permissions'].each do |i|
11479
+ permissionitem_tmp = PermissionItem.new
11480
+ permissionitem_tmp.deserialize(i)
11481
+ @Permissions << permissionitem_tmp
11482
+ end
11483
+ end
11484
+ @TargetUin = params['TargetUin']
11485
+ @RequestId = params['RequestId']
11486
+ end
11487
+ end
11488
+
11390
11489
  # DescribeVersions请求参数结构体
11391
11490
  class DescribeVersionsRequest < TencentCloud::Common::AbstractModel
11392
11491
 
@@ -13424,6 +13523,49 @@ module TencentCloud
13424
13523
  end
13425
13524
  end
13426
13525
 
13526
+ # GrantUserPermissions请求参数结构体
13527
+ class GrantUserPermissionsRequest < TencentCloud::Common::AbstractModel
13528
+ # @param TargetUin: 要授权的用户的唯一标识符(支持子账号 UIN和角色UIN)
13529
+ # @type TargetUin: String
13530
+ # @param Permissions: 用户最终应拥有的完整权限列表。采用声明式语义,传入的列表代表用户最终应该拥有的全部权限,系统会自动计算差异并执行必要的创建/删除操作。为空或不提供时将清除该用户的所有权限。最大支持 100 个权限项。
13531
+ # @type Permissions: Array
13532
+
13533
+ attr_accessor :TargetUin, :Permissions
13534
+
13535
+ def initialize(targetuin=nil, permissions=nil)
13536
+ @TargetUin = targetuin
13537
+ @Permissions = permissions
13538
+ end
13539
+
13540
+ def deserialize(params)
13541
+ @TargetUin = params['TargetUin']
13542
+ unless params['Permissions'].nil?
13543
+ @Permissions = []
13544
+ params['Permissions'].each do |i|
13545
+ permissionitem_tmp = PermissionItem.new
13546
+ permissionitem_tmp.deserialize(i)
13547
+ @Permissions << permissionitem_tmp
13548
+ end
13549
+ end
13550
+ end
13551
+ end
13552
+
13553
+ # GrantUserPermissions返回参数结构体
13554
+ class GrantUserPermissionsResponse < TencentCloud::Common::AbstractModel
13555
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
13556
+ # @type RequestId: String
13557
+
13558
+ attr_accessor :RequestId
13559
+
13560
+ def initialize(requestid=nil)
13561
+ @RequestId = requestid
13562
+ end
13563
+
13564
+ def deserialize(params)
13565
+ @RequestId = params['RequestId']
13566
+ end
13567
+ end
13568
+
13427
13569
  # Probe中的HttpGet
13428
13570
  class HttpGet < TencentCloud::Common::AbstractModel
13429
13571
  # @param Path: HttpGet检测的路径
@@ -15187,7 +15329,15 @@ module TencentCloud
15187
15329
  # @type MaintenanceTime: String
15188
15330
  # @param Duration: 维护时长(小时)
15189
15331
  # @type Duration: Integer
15190
- # @param DayOfWeek: 维护周期(一周中的哪几天)
15332
+ # @param DayOfWeek: 维护周期(一周中的哪几天),支持的参数值如下:
15333
+
15334
+ # - MO:周一
15335
+ # - TU:周二
15336
+ # - WE:周三
15337
+ # - TH:周四
15338
+ # - FR:周五
15339
+ # - SA:周六
15340
+ # - SU:周日
15191
15341
  # @type DayOfWeek: Array
15192
15342
  # @param Exclusions: 维护排除项
15193
15343
  # @type Exclusions: Array
@@ -15378,9 +15528,11 @@ module TencentCloud
15378
15528
 
15379
15529
  # ModifyClusterRollOutSequenceTags请求参数结构体
15380
15530
  class ModifyClusterRollOutSequenceTagsRequest < TencentCloud::Common::AbstractModel
15381
- # @param ClusterID: 集群ID
15531
+ # @param ClusterID: 集群ID,可以从容器服务集群控制台获取(https://console.cloud.tencent.com/tke2/cluster)。
15382
15532
  # @type ClusterID: String
15383
- # @param Tags: 集群发布序列标签(为空时表示移除集群标签)
15533
+ # @param Tags: 集群发布序列标签(为空时表示移除集群标签)。支持以下集群标签:
15534
+ # - 标签键:"Env",支持的标签值:["Test","Pre-Production","Production"]
15535
+ # - 标签键:"Protection-Level",支持的标签值:["Low","Medium","High"]
15384
15536
  # @type Tags: Array
15385
15537
 
15386
15538
  attr_accessor :ClusterID, :Tags
@@ -16943,6 +17095,39 @@ module TencentCloud
16943
17095
  end
16944
17096
  end
16945
17097
 
17098
+ # 用户权限项,定义用户在集群中的 RBAC 权限绑定
17099
+ class PermissionItem < TencentCloud::Common::AbstractModel
17100
+ # @param ClusterId: 集群 ID
17101
+ # @type ClusterId: String
17102
+ # @param RoleName: 角色名称。预置角色包括:tke:admin(集群管理员)、tke:ops(运维人员)、tke:dev(开发人员)、tke:ro(只读用户)、tke:ns:dev(命名空间开发人员)、tke:ns:ro(命名空间只读用户),其余为用户自定义角色
17103
+ # @type RoleName: String
17104
+ # @param RoleType: 授权类型。枚举值:cluster(集群级别权限,对应 ClusterRoleBinding)、namespace(命名空间级别权限,对应 RoleBinding)
17105
+ # @type RoleType: String
17106
+ # @param IsCustom: 是否为自定义角色,默认 false
17107
+ # @type IsCustom: Boolean
17108
+ # @param Namespace: 命名空间。当 RoleType 为 namespace 时必填
17109
+ # 注意:此字段可能返回 null,表示取不到有效值。
17110
+ # @type Namespace: String
17111
+
17112
+ attr_accessor :ClusterId, :RoleName, :RoleType, :IsCustom, :Namespace
17113
+
17114
+ def initialize(clusterid=nil, rolename=nil, roletype=nil, iscustom=nil, namespace=nil)
17115
+ @ClusterId = clusterid
17116
+ @RoleName = rolename
17117
+ @RoleType = roletype
17118
+ @IsCustom = iscustom
17119
+ @Namespace = namespace
17120
+ end
17121
+
17122
+ def deserialize(params)
17123
+ @ClusterId = params['ClusterId']
17124
+ @RoleName = params['RoleName']
17125
+ @RoleType = params['RoleType']
17126
+ @IsCustom = params['IsCustom']
17127
+ @Namespace = params['Namespace']
17128
+ end
17129
+ end
17130
+
16946
17131
  # Pod计费信息
16947
17132
  class PodChargeInfo < TencentCloud::Common::AbstractModel
16948
17133
  # @param StartTime: Pod计费开始时间
@@ -21231,6 +21416,8 @@ module TencentCloud
21231
21416
  # @type ClusterID: String
21232
21417
  # @param ClusterName: 集群名称
21233
21418
  # @type ClusterName: String
21419
+ # @param Region: 集群地域
21420
+ # @type Region: String
21234
21421
  # @param PlanedStartAt: 预计开始时间
21235
21422
  # @type PlanedStartAt: String
21236
21423
  # @param UpgradeStartAt: 升级开始时间
@@ -21242,12 +21429,13 @@ module TencentCloud
21242
21429
  # @param Reason: 原因
21243
21430
  # @type Reason: String
21244
21431
 
21245
- attr_accessor :ID, :ClusterID, :ClusterName, :PlanedStartAt, :UpgradeStartAt, :UpgradeEndAt, :Status, :Reason
21432
+ attr_accessor :ID, :ClusterID, :ClusterName, :Region, :PlanedStartAt, :UpgradeStartAt, :UpgradeEndAt, :Status, :Reason
21246
21433
 
21247
- def initialize(id=nil, clusterid=nil, clustername=nil, planedstartat=nil, upgradestartat=nil, upgradeendat=nil, status=nil, reason=nil)
21434
+ def initialize(id=nil, clusterid=nil, clustername=nil, region=nil, planedstartat=nil, upgradestartat=nil, upgradeendat=nil, status=nil, reason=nil)
21248
21435
  @ID = id
21249
21436
  @ClusterID = clusterid
21250
21437
  @ClusterName = clustername
21438
+ @Region = region
21251
21439
  @PlanedStartAt = planedstartat
21252
21440
  @UpgradeStartAt = upgradestartat
21253
21441
  @UpgradeEndAt = upgradeendat
@@ -21259,6 +21447,7 @@ module TencentCloud
21259
21447
  @ID = params['ID']
21260
21448
  @ClusterID = params['ClusterID']
21261
21449
  @ClusterName = params['ClusterName']
21450
+ @Region = params['Region']
21262
21451
  @PlanedStartAt = params['PlanedStartAt']
21263
21452
  @UpgradeStartAt = params['UpgradeStartAt']
21264
21453
  @UpgradeEndAt = params['UpgradeEndAt']
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.1197
4
+ version: 3.0.1203
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-06 00:00:00.000000000 Z
11
+ date: 2026-01-18 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: