Class: TencentCloud::Billing::V20180709::AllocationOverviewNode

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

Overview

分账账单月概览详情

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = nil, name = nil, treenodeuniqkey = nil, symbol = nil, children = nil, detail = nil) ⇒ AllocationOverviewNode

Returns a new instance of AllocationOverviewNode.



685
686
687
688
689
690
691
692
# File 'lib/v20180709/models.rb', line 685

def initialize(id=nil, name=nil, treenodeuniqkey=nil, symbol=nil, children=nil, detail=nil)
  @Id = id
  @Name = name
  @TreeNodeUniqKey = treenodeuniqkey
  @Symbol = symbol
  @Children = children
  @Detail = detail
end

Instance Attribute Details

#ChildrenObject

0 - 不存在规则1 - 同时存在归集规则和公摊规则2 - 仅存在归集规则3 - 仅存在公摊规则

Parameters:

  • Id:

    分账单元ID

  • Name:

    分账单元名称

  • TreeNodeUniqKey:

    分账单元唯一标识

  • Symbol:

    分账单元包含规则标志

  • Children:

    子单元月概览详情

  • Detail:

    分账账单月概览金额明细



683
684
685
# File 'lib/v20180709/models.rb', line 683

def Children
  @Children
end

#DetailObject

0 - 不存在规则1 - 同时存在归集规则和公摊规则2 - 仅存在归集规则3 - 仅存在公摊规则

Parameters:

  • Id:

    分账单元ID

  • Name:

    分账单元名称

  • TreeNodeUniqKey:

    分账单元唯一标识

  • Symbol:

    分账单元包含规则标志

  • Children:

    子单元月概览详情

  • Detail:

    分账账单月概览金额明细



683
684
685
# File 'lib/v20180709/models.rb', line 683

def Detail
  @Detail
end

#IdObject

0 - 不存在规则1 - 同时存在归集规则和公摊规则2 - 仅存在归集规则3 - 仅存在公摊规则

Parameters:

  • Id:

    分账单元ID

  • Name:

    分账单元名称

  • TreeNodeUniqKey:

    分账单元唯一标识

  • Symbol:

    分账单元包含规则标志

  • Children:

    子单元月概览详情

  • Detail:

    分账账单月概览金额明细



683
684
685
# File 'lib/v20180709/models.rb', line 683

def Id
  @Id
end

#NameObject

0 - 不存在规则1 - 同时存在归集规则和公摊规则2 - 仅存在归集规则3 - 仅存在公摊规则

Parameters:

  • Id:

    分账单元ID

  • Name:

    分账单元名称

  • TreeNodeUniqKey:

    分账单元唯一标识

  • Symbol:

    分账单元包含规则标志

  • Children:

    子单元月概览详情

  • Detail:

    分账账单月概览金额明细



683
684
685
# File 'lib/v20180709/models.rb', line 683

def Name
  @Name
end

#SymbolObject

0 - 不存在规则1 - 同时存在归集规则和公摊规则2 - 仅存在归集规则3 - 仅存在公摊规则

Parameters:

  • Id:

    分账单元ID

  • Name:

    分账单元名称

  • TreeNodeUniqKey:

    分账单元唯一标识

  • Symbol:

    分账单元包含规则标志

  • Children:

    子单元月概览详情

  • Detail:

    分账账单月概览金额明细



683
684
685
# File 'lib/v20180709/models.rb', line 683

def Symbol
  @Symbol
end

#TreeNodeUniqKeyObject

0 - 不存在规则1 - 同时存在归集规则和公摊规则2 - 仅存在归集规则3 - 仅存在公摊规则

Parameters:

  • Id:

    分账单元ID

  • Name:

    分账单元名称

  • TreeNodeUniqKey:

    分账单元唯一标识

  • Symbol:

    分账单元包含规则标志

  • Children:

    子单元月概览详情

  • Detail:

    分账账单月概览金额明细



683
684
685
# File 'lib/v20180709/models.rb', line 683

def TreeNodeUniqKey
  @TreeNodeUniqKey
end

Instance Method Details

#deserialize(params) ⇒ Object



694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
# File 'lib/v20180709/models.rb', line 694

def deserialize(params)
  @Id = params['Id']
  @Name = params['Name']
  @TreeNodeUniqKey = params['TreeNodeUniqKey']
  @Symbol = params['Symbol']
  unless params['Children'].nil?
    @Children = []
    params['Children'].each do |i|
      allocationoverviewnode_tmp = AllocationOverviewNode.new
      allocationoverviewnode_tmp.deserialize(i)
      @Children << allocationoverviewnode_tmp
    end
  end
  unless params['Detail'].nil?
    @Detail = AllocationMonthOverviewDetail.new
    @Detail.deserialize(params['Detail'])
  end
end