Class: TencentCloud::Billing::V20180709::AllocationTree
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Billing::V20180709::AllocationTree
- Defined in:
- lib/v20180709/models.rb
Overview
分账目录树
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(id = nil, name = nil, treenodeuniqkey = nil, children = nil) ⇒ AllocationTree
constructor
A new instance of AllocationTree.
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
#Children ⇒ Object
1609 1610 1611 |
# File 'lib/v20180709/models.rb', line 1609 def Children @Children end |
#Id ⇒ Object
1609 1610 1611 |
# File 'lib/v20180709/models.rb', line 1609 def Id @Id end |
#Name ⇒ Object
1609 1610 1611 |
# File 'lib/v20180709/models.rb', line 1609 def Name @Name end |
#TreeNodeUniqKey ⇒ Object
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 |