Class: TencentCloud::Billing::V20180709::BillProductLink

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

Overview

分账条件子产品筛选

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(productcode = nil, productcodename = nil, children = nil) ⇒ BillProductLink

Returns a new instance of BillProductLink.



2898
2899
2900
2901
2902
# File 'lib/v20180709/models.rb', line 2898

def initialize(productcode=nil, productcodename=nil, children=nil)
  @ProductCode = productcode
  @ProductCodeName = productcodename
  @Children = children
end

Instance Attribute Details

#ChildrenObject

Parameters:

  • ProductCode:

    子产品编码

  • ProductCodeName:

    子产品名称

  • Children:

    组件名称



2896
2897
2898
# File 'lib/v20180709/models.rb', line 2896

def Children
  @Children
end

#ProductCodeObject

Parameters:

  • ProductCode:

    子产品编码

  • ProductCodeName:

    子产品名称

  • Children:

    组件名称



2896
2897
2898
# File 'lib/v20180709/models.rb', line 2896

def ProductCode
  @ProductCode
end

#ProductCodeNameObject

Parameters:

  • ProductCode:

    子产品编码

  • ProductCodeName:

    子产品名称

  • Children:

    组件名称



2896
2897
2898
# File 'lib/v20180709/models.rb', line 2896

def ProductCodeName
  @ProductCodeName
end

Instance Method Details

#deserialize(params) ⇒ Object



2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
# File 'lib/v20180709/models.rb', line 2904

def deserialize(params)
  @ProductCode = params['ProductCode']
  @ProductCodeName = params['ProductCodeName']
  unless params['Children'].nil?
    @Children = []
    params['Children'].each do |i|
      billitem_tmp = BillItem.new
      billitem_tmp.deserialize(i)
      @Children << billitem_tmp
    end
  end
end