Class: TencentCloud::Billing::V20180709::AllocationOverviewNode
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Billing::V20180709::AllocationOverviewNode
- Defined in:
- lib/v20180709/models.rb
Overview
分账账单月概览详情
Instance Attribute Summary collapse
-
#Children ⇒ Object
0 - 不存在规则 1 - 同时存在归集规则和公摊规则 2 - 仅存在归集规则 3 - 仅存在公摊规则.
-
#Detail ⇒ Object
0 - 不存在规则 1 - 同时存在归集规则和公摊规则 2 - 仅存在归集规则 3 - 仅存在公摊规则.
-
#Id ⇒ Object
0 - 不存在规则 1 - 同时存在归集规则和公摊规则 2 - 仅存在归集规则 3 - 仅存在公摊规则.
-
#Name ⇒ Object
0 - 不存在规则 1 - 同时存在归集规则和公摊规则 2 - 仅存在归集规则 3 - 仅存在公摊规则.
-
#Symbol ⇒ Object
0 - 不存在规则 1 - 同时存在归集规则和公摊规则 2 - 仅存在归集规则 3 - 仅存在公摊规则.
-
#TreeNodeUniqKey ⇒ Object
0 - 不存在规则 1 - 同时存在归集规则和公摊规则 2 - 仅存在归集规则 3 - 仅存在公摊规则.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(id = nil, name = nil, treenodeuniqkey = nil, symbol = nil, children = nil, detail = nil) ⇒ AllocationOverviewNode
constructor
A new instance of AllocationOverviewNode.
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
#Children ⇒ Object
0 - 不存在规则1 - 同时存在归集规则和公摊规则2 - 仅存在归集规则3 - 仅存在公摊规则
683 684 685 |
# File 'lib/v20180709/models.rb', line 683 def Children @Children end |
#Detail ⇒ Object
0 - 不存在规则1 - 同时存在归集规则和公摊规则2 - 仅存在归集规则3 - 仅存在公摊规则
683 684 685 |
# File 'lib/v20180709/models.rb', line 683 def Detail @Detail end |
#Id ⇒ Object
0 - 不存在规则1 - 同时存在归集规则和公摊规则2 - 仅存在归集规则3 - 仅存在公摊规则
683 684 685 |
# File 'lib/v20180709/models.rb', line 683 def Id @Id end |
#Name ⇒ Object
0 - 不存在规则1 - 同时存在归集规则和公摊规则2 - 仅存在归集规则3 - 仅存在公摊规则
683 684 685 |
# File 'lib/v20180709/models.rb', line 683 def Name @Name end |
#Symbol ⇒ Object
0 - 不存在规则1 - 同时存在归集规则和公摊规则2 - 仅存在归集规则3 - 仅存在公摊规则
683 684 685 |
# File 'lib/v20180709/models.rb', line 683 def Symbol @Symbol end |
#TreeNodeUniqKey ⇒ Object
0 - 不存在规则1 - 同时存在归集规则和公摊规则2 - 仅存在归集规则3 - 仅存在公摊规则
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 |