tencentcloud-sdk-cam 1.0.228 → 1.0.232

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: 483e956ba5f17a991dcb61e58472a97600a56ab6
4
- data.tar.gz: 0e9b47af1c15c4a6dd4498afa078c823aaf8e120
3
+ metadata.gz: e6db9b77e6794f61af88447af30288479311e868
4
+ data.tar.gz: 40f9dd935b152d0f4658ce1c1c718d96236b86c8
5
5
  SHA512:
6
- metadata.gz: c0695759073796f224a714c2f4ae7b556ad1a0ff955743932995ecd019ac1d0a7fd14d0b10783967a53ae8fde89aa8b1f24c864aa0c2cfc7cd04098209ff4281
7
- data.tar.gz: c00f223b8bfc49cd00df32f4e3b06e60476ddf057a3758adbde749c5a6a21cca552248e316e9a900d8f195fcb63b341cf28786e759a3520e3c9313ce7c8336f9
6
+ metadata.gz: 151c3fee9a66c72d6196798f827eab0019d8835599bf631facf2d4c2e5c44347f56452437cdfd9840a18ed802f9b051b7460e76868f9efe1b483871f37cbbca0
7
+ data.tar.gz: 98900020e081336eb3fb62285556bf1375829c5c9cead97f480b856c05f7ba63c4b6d2626f13ae47c213e4274a2a8396d4ee0ffd70d4370ceeff2e4c8e36be65
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.228
1
+ 1.0.232
@@ -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.
@@ -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.228
4
+ version: 1.0.232
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-21 00:00:00.000000000 Z
11
+ date: 2021-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common