Class: TencentCloud::Dlc::V20210125::DescribeUserRolesResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dlc::V20210125::DescribeUserRolesResponse
- Defined in:
- lib/v20210125/models.rb
Overview
DescribeUserRoles返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(total = nil, userroles = nil, requestid = nil) ⇒ DescribeUserRolesResponse
constructor
A new instance of DescribeUserRolesResponse.
Constructor Details
#initialize(total = nil, userroles = nil, requestid = nil) ⇒ DescribeUserRolesResponse
Returns a new instance of DescribeUserRolesResponse.
10163 10164 10165 10166 10167 |
# File 'lib/v20210125/models.rb', line 10163 def initialize(total=nil, userroles=nil, requestid=nil) @Total = total @UserRoles = userroles @RequestId = requestid end |
Instance Attribute Details
#RequestId ⇒ Object
10161 10162 10163 |
# File 'lib/v20210125/models.rb', line 10161 def RequestId @RequestId end |
#Total ⇒ Object
10161 10162 10163 |
# File 'lib/v20210125/models.rb', line 10161 def Total @Total end |
#UserRoles ⇒ Object
10161 10162 10163 |
# File 'lib/v20210125/models.rb', line 10161 def UserRoles @UserRoles end |
Instance Method Details
#deserialize(params) ⇒ Object
10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 |
# File 'lib/v20210125/models.rb', line 10169 def deserialize(params) @Total = params['Total'] unless params['UserRoles'].nil? @UserRoles = [] params['UserRoles'].each do |i| userrole_tmp = UserRole.new userrole_tmp.deserialize(i) @UserRoles << userrole_tmp end end @RequestId = params['RequestId'] end |