Class: TencentCloud::Weilingwith::V20230427::ElementProfileTreeNode

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

Overview

构件树节点信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elementprofile = nil, children = nil) ⇒ ElementProfileTreeNode

Returns a new instance of ElementProfileTreeNode.



5399
5400
5401
5402
# File 'lib/v20230427/models.rb', line 5399

def initialize(elementprofile=nil, children=nil)
  @ElementProfile = elementprofile
  @Children = children
end

Instance Attribute Details

#ChildrenObject

Parameters:

  • ElementProfile:

    构件概要信息

  • Children:

    子节点信息



5397
5398
5399
# File 'lib/v20230427/models.rb', line 5397

def Children
  @Children
end

#ElementProfileObject

Parameters:

  • ElementProfile:

    构件概要信息

  • Children:

    子节点信息



5397
5398
5399
# File 'lib/v20230427/models.rb', line 5397

def ElementProfile
  @ElementProfile
end

Instance Method Details

#deserialize(params) ⇒ Object



5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
# File 'lib/v20230427/models.rb', line 5404

def deserialize(params)
  unless params['ElementProfile'].nil?
    @ElementProfile = ElementProfile.new
    @ElementProfile.deserialize(params['ElementProfile'])
  end
  unless params['Children'].nil?
    @Children = []
    params['Children'].each do |i|
      elementprofiletreenode_tmp = ElementProfileTreeNode.new
      elementprofiletreenode_tmp.deserialize(i)
      @Children << elementprofiletreenode_tmp
    end
  end
end