Class: TencentCloud::Ckafka::V20190819::UserResponse
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Ckafka::V20190819::UserResponse
- Defined in:
- lib/v20190819/models.rb
Overview
用户返回实体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(users = nil, totalcount = nil) ⇒ UserResponse
constructor
A new instance of UserResponse.
Constructor Details
#initialize(users = nil, totalcount = nil) ⇒ UserResponse
Returns a new instance of UserResponse.
12450 12451 12452 12453 |
# File 'lib/v20190819/models.rb', line 12450 def initialize(users=nil, totalcount=nil) @Users = users @TotalCount = totalcount end |
Instance Attribute Details
#TotalCount ⇒ Object
12448 12449 12450 |
# File 'lib/v20190819/models.rb', line 12448 def TotalCount @TotalCount end |
#Users ⇒ Object
12448 12449 12450 |
# File 'lib/v20190819/models.rb', line 12448 def Users @Users end |
Instance Method Details
#deserialize(params) ⇒ Object
12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 |
# File 'lib/v20190819/models.rb', line 12455 def deserialize(params) unless params['Users'].nil? @Users = [] params['Users'].each do |i| user_tmp = User.new user_tmp.deserialize(i) @Users << user_tmp end end @TotalCount = params['TotalCount'] end |