Class: TencentCloud::Billing::V20180709::AllocationTree

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, children = nil) ⇒ AllocationTree



1611
1612
1613
1614
1615
1616
# File 'lib/v20180709/models.rb', line 1611

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

Instance Attribute Details

#ChildrenObject



1609
1610
1611
# File 'lib/v20180709/models.rb', line 1609

def Children
  @Children
end

#IdObject



1609
1610
1611
# File 'lib/v20180709/models.rb', line 1609

def Id
  @Id
end

#NameObject



1609
1610
1611
# File 'lib/v20180709/models.rb', line 1609

def Name
  @Name
end

#TreeNodeUniqKeyObject



1609
1610
1611
# File 'lib/v20180709/models.rb', line 1609

def TreeNodeUniqKey
  @TreeNodeUniqKey
end

Instance Method Details

#deserialize(params) ⇒ Object



1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
# File 'lib/v20180709/models.rb', line 1618

def deserialize(params)
  @Id = params['Id']
  @Name = params['Name']
  @TreeNodeUniqKey = params['TreeNodeUniqKey']
  unless params['Children'].nil?
    @Children = []
    params['Children'].each do |i|
      allocationtree_tmp = AllocationTree.new
      allocationtree_tmp.deserialize(i)
      @Children << allocationtree_tmp
    end
  end
end