Class: TencentCloud::Ckafka::V20190819::UserResponse

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20190819/models.rb

Overview

用户返回实体

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#TotalCountObject

Parameters:

  • Users:

    符合条件的用户列表

  • TotalCount:

    符合条件的总用户数



12448
12449
12450
# File 'lib/v20190819/models.rb', line 12448

def TotalCount
  @TotalCount
end

#UsersObject

Parameters:

  • Users:

    符合条件的用户列表

  • TotalCount:

    符合条件的总用户数



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