tencentcloud-sdk-cam 1.0.316 → 1.0.319

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6cb794c25ebfc283965ca3d7ad40c449b7ddbaab
4
- data.tar.gz: 51c3b7e9d0458bf22b450ab7f6d44a76ced5d18f
3
+ metadata.gz: 0f5301bbf9f4714608309a2964d6236e685a5177
4
+ data.tar.gz: 31945fcbad1c9672e00d5151243d81f78ff2e7d0
5
5
  SHA512:
6
- metadata.gz: 33da3ba1a5d655c2b589c5822ba80f5b82092fd464daef878a32bb76abbe1222b2e4ed7a85c809bc0aa7cf252a12681adc80efb59f9b95d24ef40aeba323be51
7
- data.tar.gz: 3cd63480651d531f33dd01bf80dc84da0d5944c52e8dd23ab6d74255e0df3ccfa65de5a4c16bb4d8e61cb28c7bfe9b192448bd3d8c6d7585a5490ad945b58721
6
+ metadata.gz: f9ba918aee9ae4e53d4665429354ab49699b0b51ed28efb3bee51f31375edd090c740c78e53933ee98b64f9e73ea4c7874afb9bf73a364b8f5cee862f21532d0
7
+ data.tar.gz: 50132bd94ecdc4585e044215a8b6e5f4b55f806b8a696acef5cac4d5c015c0672409c84bc883041bf1e474de20951b2eb40a2cc267c3bf844ce8f16b98764414
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.316
1
+ 1.0.319
@@ -1733,6 +1733,54 @@ module TencentCloud
1733
1733
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1734
1734
  end
1735
1735
 
1736
+ # 角色绑定标签
1737
+
1738
+ # @param request: Request instance for TagRole.
1739
+ # @type request: :class:`Tencentcloud::cam::V20190116::TagRoleRequest`
1740
+ # @rtype: :class:`Tencentcloud::cam::V20190116::TagRoleResponse`
1741
+ def TagRole(request)
1742
+ body = send_request('TagRole', request.serialize)
1743
+ response = JSON.parse(body)
1744
+ if response['Response'].key?('Error') == false
1745
+ model = TagRoleResponse.new
1746
+ model.deserialize(response['Response'])
1747
+ model
1748
+ else
1749
+ code = response['Response']['Error']['Code']
1750
+ message = response['Response']['Error']['Message']
1751
+ reqid = response['Response']['RequestId']
1752
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1753
+ end
1754
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1755
+ raise e
1756
+ rescue StandardError => e
1757
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1758
+ end
1759
+
1760
+ # 角色解绑标签。
1761
+
1762
+ # @param request: Request instance for UntagRole.
1763
+ # @type request: :class:`Tencentcloud::cam::V20190116::UntagRoleRequest`
1764
+ # @rtype: :class:`Tencentcloud::cam::V20190116::UntagRoleResponse`
1765
+ def UntagRole(request)
1766
+ body = send_request('UntagRole', request.serialize)
1767
+ response = JSON.parse(body)
1768
+ if response['Response'].key?('Error') == false
1769
+ model = UntagRoleResponse.new
1770
+ model.deserialize(response['Response'])
1771
+ model
1772
+ else
1773
+ code = response['Response']['Error']['Code']
1774
+ message = response['Response']['Error']['Message']
1775
+ reqid = response['Response']['RequestId']
1776
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1777
+ end
1778
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1779
+ raise e
1780
+ rescue StandardError => e
1781
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1782
+ end
1783
+
1736
1784
  # 本接口(UpdateAssumeRolePolicy)用于修改角色信任策略的策略文档。
1737
1785
 
1738
1786
  # @param request: Request instance for UpdateAssumeRolePolicy.
@@ -4351,6 +4351,93 @@ module TencentCloud
4351
4351
  end
4352
4352
  end
4353
4353
 
4354
+ # TagRole请求参数结构体
4355
+ class TagRoleRequest < TencentCloud::Common::AbstractModel
4356
+ # @param Tags: 标签
4357
+ # @type Tags: Array
4358
+ # @param RoleName: 角色名,与角色ID至少输入一个
4359
+ # @type RoleName: String
4360
+ # @param RoleId: 角色ID,与角色名至少输入一个
4361
+ # @type RoleId: String
4362
+
4363
+ attr_accessor :Tags, :RoleName, :RoleId
4364
+
4365
+ def initialize(tags=nil, rolename=nil, roleid=nil)
4366
+ @Tags = tags
4367
+ @RoleName = rolename
4368
+ @RoleId = roleid
4369
+ end
4370
+
4371
+ def deserialize(params)
4372
+ unless params['Tags'].nil?
4373
+ @Tags = []
4374
+ params['Tags'].each do |i|
4375
+ roletags_tmp = RoleTags.new
4376
+ roletags_tmp.deserialize(i)
4377
+ @Tags << roletags_tmp
4378
+ end
4379
+ end
4380
+ @RoleName = params['RoleName']
4381
+ @RoleId = params['RoleId']
4382
+ end
4383
+ end
4384
+
4385
+ # TagRole返回参数结构体
4386
+ class TagRoleResponse < TencentCloud::Common::AbstractModel
4387
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4388
+ # @type RequestId: String
4389
+
4390
+ attr_accessor :RequestId
4391
+
4392
+ def initialize(requestid=nil)
4393
+ @RequestId = requestid
4394
+ end
4395
+
4396
+ def deserialize(params)
4397
+ @RequestId = params['RequestId']
4398
+ end
4399
+ end
4400
+
4401
+ # UntagRole请求参数结构体
4402
+ class UntagRoleRequest < TencentCloud::Common::AbstractModel
4403
+ # @param TagKeys: 标签键
4404
+ # @type TagKeys: Array
4405
+ # @param RoleName: 角色名,与角色ID至少输入一个
4406
+ # @type RoleName: String
4407
+ # @param RoleId: 角色ID,与角色名至少输入一个
4408
+ # @type RoleId: String
4409
+
4410
+ attr_accessor :TagKeys, :RoleName, :RoleId
4411
+
4412
+ def initialize(tagkeys=nil, rolename=nil, roleid=nil)
4413
+ @TagKeys = tagkeys
4414
+ @RoleName = rolename
4415
+ @RoleId = roleid
4416
+ end
4417
+
4418
+ def deserialize(params)
4419
+ @TagKeys = params['TagKeys']
4420
+ @RoleName = params['RoleName']
4421
+ @RoleId = params['RoleId']
4422
+ end
4423
+ end
4424
+
4425
+ # UntagRole返回参数结构体
4426
+ class UntagRoleResponse < TencentCloud::Common::AbstractModel
4427
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4428
+ # @type RequestId: String
4429
+
4430
+ attr_accessor :RequestId
4431
+
4432
+ def initialize(requestid=nil)
4433
+ @RequestId = requestid
4434
+ end
4435
+
4436
+ def deserialize(params)
4437
+ @RequestId = params['RequestId']
4438
+ end
4439
+ end
4440
+
4354
4441
  # UpdateAssumeRolePolicy请求参数结构体
4355
4442
  class UpdateAssumeRolePolicyRequest < TencentCloud::Common::AbstractModel
4356
4443
  # @param PolicyDocument: 策略文档,示例:{"version":"2.0","statement":[{"action":"name/sts:AssumeRole","effect":"allow","principal":{"service":["cloudaudit.cloud.tencent.com","cls.cloud.tencent.com"]}}]},principal用于指定角色的授权对象。获取该参数可参阅 获取角色详情(https://cloud.tencent.com/document/product/598/36221) 输出参数RoleInfo
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cam
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.316
4
+ version: 1.0.319
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-19 00:00:00.000000000 Z
11
+ date: 2022-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common