tencentcloud-sdk-cam 1.0.317 → 1.0.320

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: 2a083402f7a09983c1712749480aa24f46248464
4
- data.tar.gz: 9720554eabe99431dd82abcb258a88e96eb7e970
3
+ metadata.gz: f9d6216014e1951490fe78fdb4bd7782909fa1d0
4
+ data.tar.gz: 487a3811c4478db97dcc602ae199d8656b9d8d13
5
5
  SHA512:
6
- metadata.gz: b869e9d34fe95cd2673e1ecbfb124a891607672d33b7048c80e53f0afcde6c1b842fdad7ea8ea8a277532381a28dad71444d157f5ced516a33dde631725e54d1
7
- data.tar.gz: 9472268737c83826d19bbd6d90ca0f956a26913840b04ee6d3210075497491cd8a6410d99df0c6d31a5f59851919bca20c0ac0e6c73fe547f6b368f501a6e0a2
6
+ metadata.gz: 10ce8766f9a1c6345b83e9b82f90354b9321a34243b1c6f18c67d1cb702637837dc5006f446e275db1479b64a2b186a3b0ef3d9c95aa2fa70cd8040e8fb2a1ea
7
+ data.tar.gz: c51524032be47efb4d21845c22621bdbbaa66064ae13fbc2623057699142ae70eb8e938419184558f18a71ea125d725d11479edaebc5410b8093ef7a9e842538
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.317
1
+ 1.0.320
@@ -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.317
4
+ version: 1.0.320
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-22 00:00:00.000000000 Z
11
+ date: 2022-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common