Class: TencentCloud::Ssa::V20180608::AssetList

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

Overview

资产列表

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(total = nil, list = nil) ⇒ AssetList

Returns a new instance of AssetList.



762
763
764
765
# File 'lib/v20180608/models.rb', line 762

def initialize(total=nil, list=nil)
  @Total = total
  @List = list
end

Instance Attribute Details

#ListObject

Parameters:

  • Total:

    总数

  • List:

    资产数组



760
761
762
# File 'lib/v20180608/models.rb', line 760

def List
  @List
end

#TotalObject

Parameters:

  • Total:

    总数

  • List:

    资产数组



760
761
762
# File 'lib/v20180608/models.rb', line 760

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



767
768
769
770
771
772
773
774
775
776
777
# File 'lib/v20180608/models.rb', line 767

def deserialize(params)
  @Total = params['Total']
  unless params['List'].nil?
    @List = []
    params['List'].each do |i|
      asset_tmp = Asset.new
      asset_tmp.deserialize(i)
      @List << asset_tmp
    end
  end
end