Class: TencentCloud::Oceanus::V20190422::DescribeTreeResourcesResponse

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

Overview

DescribeTreeResources返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of DescribeTreeResourcesResponse.



2944
2945
2946
2947
2948
2949
2950
2951
2952
# File 'lib/v20190422/models.rb', line 2944

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

Instance Attribute Details

#ChildrenObject

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

Parameters:

  • ParentId:

    父节点ID

  • Id:

    文件夹ID

  • Name:

    文件夹名

  • Items:

    文件列表

  • Children:

    子目录列表

  • TotalCount:

    资源总数

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



2942
2943
2944
# File 'lib/v20190422/models.rb', line 2942

def Children
  @Children
end

#IdObject

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

Parameters:

  • ParentId:

    父节点ID

  • Id:

    文件夹ID

  • Name:

    文件夹名

  • Items:

    文件列表

  • Children:

    子目录列表

  • TotalCount:

    资源总数

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



2942
2943
2944
# File 'lib/v20190422/models.rb', line 2942

def Id
  @Id
end

#ItemsObject

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

Parameters:

  • ParentId:

    父节点ID

  • Id:

    文件夹ID

  • Name:

    文件夹名

  • Items:

    文件列表

  • Children:

    子目录列表

  • TotalCount:

    资源总数

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



2942
2943
2944
# File 'lib/v20190422/models.rb', line 2942

def Items
  @Items
end

#NameObject

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

Parameters:

  • ParentId:

    父节点ID

  • Id:

    文件夹ID

  • Name:

    文件夹名

  • Items:

    文件列表

  • Children:

    子目录列表

  • TotalCount:

    资源总数

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



2942
2943
2944
# File 'lib/v20190422/models.rb', line 2942

def Name
  @Name
end

#ParentIdObject

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

Parameters:

  • ParentId:

    父节点ID

  • Id:

    文件夹ID

  • Name:

    文件夹名

  • Items:

    文件列表

  • Children:

    子目录列表

  • TotalCount:

    资源总数

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



2942
2943
2944
# File 'lib/v20190422/models.rb', line 2942

def ParentId
  @ParentId
end

#RequestIdObject

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

Parameters:

  • ParentId:

    父节点ID

  • Id:

    文件夹ID

  • Name:

    文件夹名

  • Items:

    文件列表

  • Children:

    子目录列表

  • TotalCount:

    资源总数

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



2942
2943
2944
# File 'lib/v20190422/models.rb', line 2942

def RequestId
  @RequestId
end

#TotalCountObject

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

Parameters:

  • ParentId:

    父节点ID

  • Id:

    文件夹ID

  • Name:

    文件夹名

  • Items:

    文件列表

  • Children:

    子目录列表

  • TotalCount:

    资源总数

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



2942
2943
2944
# File 'lib/v20190422/models.rb', line 2942

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
# File 'lib/v20190422/models.rb', line 2954

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