Class: TencentCloud::Solar::V20181011::DescribeCustomersResponse

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

Overview

DescribeCustomers返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, userlist = nil, requestid = nil) ⇒ DescribeCustomersResponse

Returns a new instance of DescribeCustomersResponse.



631
632
633
634
635
# File 'lib/v20181011/models.rb', line 631

def initialize(totalcount=nil, userlist=nil, requestid=nil)
  @TotalCount = totalcount
  @UserList = userlist
  @RequestId = requestid
end

Instance Attribute Details

#RequestId ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TotalCount: —

    总记录条数

  • UserList: —

    数据列表

  • RequestId: —

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



629
630
631
# File 'lib/v20181011/models.rb', line 629

def RequestId
  @RequestId
end

#TotalCount ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TotalCount: —

    总记录条数

  • UserList: —

    数据列表

  • RequestId: —

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



629
630
631
# File 'lib/v20181011/models.rb', line 629

def TotalCount
  @TotalCount
end

#UserList ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TotalCount: —

    总记录条数

  • UserList: —

    数据列表

  • RequestId: —

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



629
630
631
# File 'lib/v20181011/models.rb', line 629

def UserList
  @UserList
end

Instance Method Details

#deserialize(params) ⇒ Object



637
638
639
640
641
642
643
644
645
646
647
648
# File 'lib/v20181011/models.rb', line 637

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['UserList'].nil?
    @UserList = []
    params['UserList'].each do |i|
      customerinfo_tmp = CustomerInfo.new
      customerinfo_tmp.deserialize(i)
      @UserList << customerinfo_tmp
    end
  end
  @RequestId = params['RequestId']
end