tencentcloud-sdk-cam 1.0.229 → 1.0.230
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 +114 -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: f2242013e3dffd5223f06bead28b235cfcb7cfbd
|
4
|
+
data.tar.gz: b510ad9737e3555ffb144e60d253235e3d7b61f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06d22b2d3b02643ada944dcdfcea11880b11fee9779de67a4349dbeb9e936f6d1be01bb76a9609aa298078ea014b26240c277a4b84b4bc4d0d97dfa9f5efbb92
|
7
|
+
data.tar.gz: 051b63eb76f85e730ff23d11e2f4f7cc14017e960cfa59873699583db431a7d6328a90ceaf406dc81fdc4bd0d48ea86b981cf8f40617e5c0aa044b6bbd19820d
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.230
|
data/lib/v20190116/client.rb
CHANGED
@@ -917,6 +917,30 @@ module TencentCloud
|
|
917
917
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
918
918
|
end
|
919
919
|
|
920
|
+
# 获取角色权限边界
|
921
|
+
|
922
|
+
# @param request: Request instance for GetRolePermissionBoundary.
|
923
|
+
# @type request: :class:`Tencentcloud::cam::V20190116::GetRolePermissionBoundaryRequest`
|
924
|
+
# @rtype: :class:`Tencentcloud::cam::V20190116::GetRolePermissionBoundaryResponse`
|
925
|
+
def GetRolePermissionBoundary(request)
|
926
|
+
body = send_request('GetRolePermissionBoundary', request.serialize)
|
927
|
+
response = JSON.parse(body)
|
928
|
+
if response['Response'].key?('Error') == false
|
929
|
+
model = GetRolePermissionBoundaryResponse.new
|
930
|
+
model.deserialize(response['Response'])
|
931
|
+
model
|
932
|
+
else
|
933
|
+
code = response['Response']['Error']['Code']
|
934
|
+
message = response['Response']['Error']['Message']
|
935
|
+
reqid = response['Response']['RequestId']
|
936
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
937
|
+
end
|
938
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
939
|
+
raise e
|
940
|
+
rescue StandardError => e
|
941
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
942
|
+
end
|
943
|
+
|
920
944
|
# 查询SAML身份提供商详情
|
921
945
|
|
922
946
|
# @param request: Request instance for GetSAMLProvider.
|
@@ -1013,6 +1037,30 @@ module TencentCloud
|
|
1013
1037
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1014
1038
|
end
|
1015
1039
|
|
1040
|
+
# 获取用户权限边界
|
1041
|
+
|
1042
|
+
# @param request: Request instance for GetUserPermissionBoundary.
|
1043
|
+
# @type request: :class:`Tencentcloud::cam::V20190116::GetUserPermissionBoundaryRequest`
|
1044
|
+
# @rtype: :class:`Tencentcloud::cam::V20190116::GetUserPermissionBoundaryResponse`
|
1045
|
+
def GetUserPermissionBoundary(request)
|
1046
|
+
body = send_request('GetUserPermissionBoundary', request.serialize)
|
1047
|
+
response = JSON.parse(body)
|
1048
|
+
if response['Response'].key?('Error') == false
|
1049
|
+
model = GetUserPermissionBoundaryResponse.new
|
1050
|
+
model.deserialize(response['Response'])
|
1051
|
+
model
|
1052
|
+
else
|
1053
|
+
code = response['Response']['Error']['Code']
|
1054
|
+
message = response['Response']['Error']['Message']
|
1055
|
+
reqid = response['Response']['RequestId']
|
1056
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1057
|
+
end
|
1058
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1059
|
+
raise e
|
1060
|
+
rescue StandardError => e
|
1061
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1062
|
+
end
|
1063
|
+
|
1016
1064
|
# 列出指定CAM用户的访问密钥
|
1017
1065
|
|
1018
1066
|
# @param request: Request instance for ListAccessKeys.
|
data/lib/v20190116/models.rb
CHANGED
@@ -1736,6 +1736,63 @@ module TencentCloud
|
|
1736
1736
|
end
|
1737
1737
|
end
|
1738
1738
|
|
1739
|
+
# GetRolePermissionBoundary请求参数结构体
|
1740
|
+
class GetRolePermissionBoundaryRequest < TencentCloud::Common::AbstractModel
|
1741
|
+
# @param RoleId: 角色ID
|
1742
|
+
# @type RoleId: String
|
1743
|
+
|
1744
|
+
attr_accessor :RoleId
|
1745
|
+
|
1746
|
+
def initialize(roleid=nil)
|
1747
|
+
@RoleId = roleid
|
1748
|
+
end
|
1749
|
+
|
1750
|
+
def deserialize(params)
|
1751
|
+
@RoleId = params['RoleId']
|
1752
|
+
end
|
1753
|
+
end
|
1754
|
+
|
1755
|
+
# GetRolePermissionBoundary返回参数结构体
|
1756
|
+
class GetRolePermissionBoundaryResponse < TencentCloud::Common::AbstractModel
|
1757
|
+
# @param PolicyId: 策略ID
|
1758
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1759
|
+
# @type PolicyId: Integer
|
1760
|
+
# @param PolicyName: 策略名
|
1761
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1762
|
+
# @type PolicyName: String
|
1763
|
+
# @param PolicyDocument: 策略语法
|
1764
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1765
|
+
# @type PolicyDocument: String
|
1766
|
+
# @param PolicyType: 策略类型:1.自定义策略,2.预设策略
|
1767
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1768
|
+
# @type PolicyType: Integer
|
1769
|
+
# @param CreateMode: 创建方式:1.按产品功能或项目权限创建,2.按策略语法创建,3.按策略生成器创建,4.按标签授权创建,5.按权限边界规则创建
|
1770
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1771
|
+
# @type CreateMode: Integer
|
1772
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1773
|
+
# @type RequestId: String
|
1774
|
+
|
1775
|
+
attr_accessor :PolicyId, :PolicyName, :PolicyDocument, :PolicyType, :CreateMode, :RequestId
|
1776
|
+
|
1777
|
+
def initialize(policyid=nil, policyname=nil, policydocument=nil, policytype=nil, createmode=nil, requestid=nil)
|
1778
|
+
@PolicyId = policyid
|
1779
|
+
@PolicyName = policyname
|
1780
|
+
@PolicyDocument = policydocument
|
1781
|
+
@PolicyType = policytype
|
1782
|
+
@CreateMode = createmode
|
1783
|
+
@RequestId = requestid
|
1784
|
+
end
|
1785
|
+
|
1786
|
+
def deserialize(params)
|
1787
|
+
@PolicyId = params['PolicyId']
|
1788
|
+
@PolicyName = params['PolicyName']
|
1789
|
+
@PolicyDocument = params['PolicyDocument']
|
1790
|
+
@PolicyType = params['PolicyType']
|
1791
|
+
@CreateMode = params['CreateMode']
|
1792
|
+
@RequestId = params['RequestId']
|
1793
|
+
end
|
1794
|
+
end
|
1795
|
+
|
1739
1796
|
# GetRole请求参数结构体
|
1740
1797
|
class GetRoleRequest < TencentCloud::Common::AbstractModel
|
1741
1798
|
# @param RoleId: 角色 ID,用于指定角色,入参 RoleId 与 RoleName 二选一
|
@@ -1924,6 +1981,63 @@ module TencentCloud
|
|
1924
1981
|
end
|
1925
1982
|
end
|
1926
1983
|
|
1984
|
+
# GetUserPermissionBoundary请求参数结构体
|
1985
|
+
class GetUserPermissionBoundaryRequest < TencentCloud::Common::AbstractModel
|
1986
|
+
# @param TargetUin: 子账号Uin
|
1987
|
+
# @type TargetUin: Integer
|
1988
|
+
|
1989
|
+
attr_accessor :TargetUin
|
1990
|
+
|
1991
|
+
def initialize(targetuin=nil)
|
1992
|
+
@TargetUin = targetuin
|
1993
|
+
end
|
1994
|
+
|
1995
|
+
def deserialize(params)
|
1996
|
+
@TargetUin = params['TargetUin']
|
1997
|
+
end
|
1998
|
+
end
|
1999
|
+
|
2000
|
+
# GetUserPermissionBoundary返回参数结构体
|
2001
|
+
class GetUserPermissionBoundaryResponse < TencentCloud::Common::AbstractModel
|
2002
|
+
# @param PolicyId: 策略ID
|
2003
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2004
|
+
# @type PolicyId: Integer
|
2005
|
+
# @param PolicyName: 策略名
|
2006
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2007
|
+
# @type PolicyName: String
|
2008
|
+
# @param PolicyDocument: 策略语法
|
2009
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2010
|
+
# @type PolicyDocument: String
|
2011
|
+
# @param PolicyType: 策略类型:1.自定义策略,2.预设策略
|
2012
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2013
|
+
# @type PolicyType: Integer
|
2014
|
+
# @param CreateMode: 创建方式:1.按产品功能或项目权限创建,2.按策略语法创建,3.按策略生成器创建,4.按标签授权创建,5.按权限边界规则创建
|
2015
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2016
|
+
# @type CreateMode: Integer
|
2017
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2018
|
+
# @type RequestId: String
|
2019
|
+
|
2020
|
+
attr_accessor :PolicyId, :PolicyName, :PolicyDocument, :PolicyType, :CreateMode, :RequestId
|
2021
|
+
|
2022
|
+
def initialize(policyid=nil, policyname=nil, policydocument=nil, policytype=nil, createmode=nil, requestid=nil)
|
2023
|
+
@PolicyId = policyid
|
2024
|
+
@PolicyName = policyname
|
2025
|
+
@PolicyDocument = policydocument
|
2026
|
+
@PolicyType = policytype
|
2027
|
+
@CreateMode = createmode
|
2028
|
+
@RequestId = requestid
|
2029
|
+
end
|
2030
|
+
|
2031
|
+
def deserialize(params)
|
2032
|
+
@PolicyId = params['PolicyId']
|
2033
|
+
@PolicyName = params['PolicyName']
|
2034
|
+
@PolicyDocument = params['PolicyDocument']
|
2035
|
+
@PolicyType = params['PolicyType']
|
2036
|
+
@CreateMode = params['CreateMode']
|
2037
|
+
@RequestId = params['RequestId']
|
2038
|
+
end
|
2039
|
+
end
|
2040
|
+
|
1927
2041
|
# GetUser请求参数结构体
|
1928
2042
|
class GetUserRequest < TencentCloud::Common::AbstractModel
|
1929
2043
|
# @param Name: 子用户用户名
|
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.230
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|