Class: TencentCloud::Organization::V20210331::DescribeOrganizationNodesResponse

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

Overview

DescribeOrganizationNodes返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(total = nil, items = nil, requestid = nil) ⇒ DescribeOrganizationNodesResponse

Returns a new instance of DescribeOrganizationNodesResponse.



2907
2908
2909
2910
2911
# File 'lib/v20210331/models.rb', line 2907

def initialize(total=nil, items=nil, requestid=nil)
  @Total = total
  @Items = items
  @RequestId = requestid
end

Instance Attribute Details

#ItemsObject

Parameters:

  • Total:

    总数。

  • Items:

    列表详情。

  • RequestId:

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



2905
2906
2907
# File 'lib/v20210331/models.rb', line 2905

def Items
  @Items
end

#RequestIdObject

Parameters:

  • Total:

    总数。

  • Items:

    列表详情。

  • RequestId:

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



2905
2906
2907
# File 'lib/v20210331/models.rb', line 2905

def RequestId
  @RequestId
end

#TotalObject

Parameters:

  • Total:

    总数。

  • Items:

    列表详情。

  • RequestId:

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



2905
2906
2907
# File 'lib/v20210331/models.rb', line 2905

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
# File 'lib/v20210331/models.rb', line 2913

def deserialize(params)
  @Total = params['Total']
  unless params['Items'].nil?
    @Items = []
    params['Items'].each do |i|
      orgnode_tmp = OrgNode.new
      orgnode_tmp.deserialize(i)
      @Items << orgnode_tmp
    end
  end
  @RequestId = params['RequestId']
end