Class: TencentCloud::Tdmq::V20200217::DescribeRolesResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tdmq::V20200217::DescribeRolesResponse
- Defined in:
- lib/v20200217/models.rb
Overview
DescribeRoles返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(totalcount = nil, rolesets = nil, requestid = nil) ⇒ DescribeRolesResponse
constructor
A new instance of DescribeRolesResponse.
Constructor Details
#initialize(totalcount = nil, rolesets = nil, requestid = nil) ⇒ DescribeRolesResponse
Returns a new instance of DescribeRolesResponse.
7653 7654 7655 7656 7657 |
# File 'lib/v20200217/models.rb', line 7653 def initialize(totalcount=nil, rolesets=nil, requestid=nil) @TotalCount = totalcount @RoleSets = rolesets @RequestId = requestid end |
Instance Attribute Details
#RequestId ⇒ Object
7651 7652 7653 |
# File 'lib/v20200217/models.rb', line 7651 def RequestId @RequestId end |
#RoleSets ⇒ Object
7651 7652 7653 |
# File 'lib/v20200217/models.rb', line 7651 def RoleSets @RoleSets end |
#TotalCount ⇒ Object
7651 7652 7653 |
# File 'lib/v20200217/models.rb', line 7651 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 |
# File 'lib/v20200217/models.rb', line 7659 def deserialize(params) @TotalCount = params['TotalCount'] unless params['RoleSets'].nil? @RoleSets = [] params['RoleSets'].each do |i| role_tmp = Role.new role_tmp.deserialize(i) @RoleSets << role_tmp end end @RequestId = params['RequestId'] end |