Class: TencentCloud::Billing::V20180709::DescribeAllocationTreeResponse

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

Overview

DescribeAllocationTree返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = nil, name = nil, treenodeuniqkey = nil, children = nil, requestid = nil) ⇒ DescribeAllocationTreeResponse



6847
6848
6849
6850
6851
6852
6853
# File 'lib/v20180709/models.rb', line 6847

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

Instance Attribute Details

#ChildrenObject



6845
6846
6847
# File 'lib/v20180709/models.rb', line 6845

def Children
  @Children
end

#IdObject



6845
6846
6847
# File 'lib/v20180709/models.rb', line 6845

def Id
  @Id
end

#NameObject



6845
6846
6847
# File 'lib/v20180709/models.rb', line 6845

def Name
  @Name
end

#RequestIdObject



6845
6846
6847
# File 'lib/v20180709/models.rb', line 6845

def RequestId
  @RequestId
end

#TreeNodeUniqKeyObject



6845
6846
6847
# File 'lib/v20180709/models.rb', line 6845

def TreeNodeUniqKey
  @TreeNodeUniqKey
end

Instance Method Details

#deserialize(params) ⇒ Object



6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
# File 'lib/v20180709/models.rb', line 6855

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
  @RequestId = params['RequestId']
end