tencentcloud-sdk-cam 1.0.318 → 1.0.321
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190116/client.rb +48 -0
- data/lib/v20190116/models.rb +87 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2924ec296ef709c7aed5c1f6ceb594ae462d6d15
|
4
|
+
data.tar.gz: 5aa49334166f44ab31fe8bc55ec7b56d854b6fec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 053ca4782ca00ec2eae2218a11303ffaea150fdf41937950ae199b56898eb18aa2b8028bec8144a974f05073b95d9153c7ddca1e739c35cae055d8457cc1a211
|
7
|
+
data.tar.gz: 3f7858632c34ebce856d08c999884dfb7d71db945fa6ebd6fe485171226986b1f94c3d392e5f8bcfa7b617bab93415a0946eca3b14418c71b39f7d4480ac9d3b
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.321
|
data/lib/v20190116/client.rb
CHANGED
@@ -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.
|
data/lib/v20190116/models.rb
CHANGED
@@ -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.
|
4
|
+
version: 1.0.321
|
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-
|
11
|
+
date: 2022-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|