Class: TencentCloud::Oceanus::V20190422::DescribeTreeResourcesRsp

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

Overview

树状结构资源列表对象

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parentid = nil, id = nil, name = nil, items = nil, children = nil, totalcount = nil) ⇒ DescribeTreeResourcesRsp

Returns a new instance of DescribeTreeResourcesRsp.



2999
3000
3001
3002
3003
3004
3005
3006
# File 'lib/v20190422/models.rb', line 2999

def initialize(parentid=nil, id=nil, name=nil, items=nil, children=nil, totalcount=nil)
  @ParentId = parentid
  @Id = id
  @Name = name
  @Items = items
  @Children = children
  @TotalCount = totalcount
end

Instance Attribute Details

#ChildrenObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ParentId:

    父节点ID

  • Id:

    文件夹ID

  • Name:

    文件夹名称

  • Items:

    文件夹下资源数字

  • Children:

    子节点

  • TotalCount:

    资源总数



2997
2998
2999
# File 'lib/v20190422/models.rb', line 2997

def Children
  @Children
end

#IdObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ParentId:

    父节点ID

  • Id:

    文件夹ID

  • Name:

    文件夹名称

  • Items:

    文件夹下资源数字

  • Children:

    子节点

  • TotalCount:

    资源总数



2997
2998
2999
# File 'lib/v20190422/models.rb', line 2997

def Id
  @Id
end

#ItemsObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ParentId:

    父节点ID

  • Id:

    文件夹ID

  • Name:

    文件夹名称

  • Items:

    文件夹下资源数字

  • Children:

    子节点

  • TotalCount:

    资源总数



2997
2998
2999
# File 'lib/v20190422/models.rb', line 2997

def Items
  @Items
end

#NameObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ParentId:

    父节点ID

  • Id:

    文件夹ID

  • Name:

    文件夹名称

  • Items:

    文件夹下资源数字

  • Children:

    子节点

  • TotalCount:

    资源总数



2997
2998
2999
# File 'lib/v20190422/models.rb', line 2997

def Name
  @Name
end

#ParentIdObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ParentId:

    父节点ID

  • Id:

    文件夹ID

  • Name:

    文件夹名称

  • Items:

    文件夹下资源数字

  • Children:

    子节点

  • TotalCount:

    资源总数



2997
2998
2999
# File 'lib/v20190422/models.rb', line 2997

def ParentId
  @ParentId
end

#TotalCountObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ParentId:

    父节点ID

  • Id:

    文件夹ID

  • Name:

    文件夹名称

  • Items:

    文件夹下资源数字

  • Children:

    子节点

  • TotalCount:

    资源总数



2997
2998
2999
# File 'lib/v20190422/models.rb', line 2997

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
# File 'lib/v20190422/models.rb', line 3008

def deserialize(params)
  @ParentId = params['ParentId']
  @Id = params['Id']
  @Name = params['Name']
  unless params['Items'].nil?
    @Items = []
    params['Items'].each do |i|
      treeresourceitem_tmp = TreeResourceItem.new
      treeresourceitem_tmp.deserialize(i)
      @Items << treeresourceitem_tmp
    end
  end
  unless params['Children'].nil?
    @Children = []
    params['Children'].each do |i|
      describetreeresourcesrsp_tmp = DescribeTreeResourcesRsp.new
      describetreeresourcesrsp_tmp.deserialize(i)
      @Children << describetreeresourcesrsp_tmp
    end
  end
  @TotalCount = params['TotalCount']
end