Class: TencentCloud::Iotexplorer::V20190423::DescribeBindedProductsResponse

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

Overview

DescribeBindedProducts返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(products = nil, total = nil, requestid = nil) ⇒ DescribeBindedProductsResponse

Returns a new instance of DescribeBindedProductsResponse.



3944
3945
3946
3947
3948
# File 'lib/v20190423/models.rb', line 3944

def initialize(products=nil, total=nil, requestid=nil)
  @Products = products
  @Total = total
  @RequestId = requestid
end

Instance Attribute Details

#ProductsObject

Parameters:

  • Products:

    当前分页的子产品数组

  • Total:

    绑定的子产品总数量

  • RequestId:

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



3942
3943
3944
# File 'lib/v20190423/models.rb', line 3942

def Products
  @Products
end

#RequestIdObject

Parameters:

  • Products:

    当前分页的子产品数组

  • Total:

    绑定的子产品总数量

  • RequestId:

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



3942
3943
3944
# File 'lib/v20190423/models.rb', line 3942

def RequestId
  @RequestId
end

#TotalObject

Parameters:

  • Products:

    当前分页的子产品数组

  • Total:

    绑定的子产品总数量

  • RequestId:

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



3942
3943
3944
# File 'lib/v20190423/models.rb', line 3942

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
# File 'lib/v20190423/models.rb', line 3950

def deserialize(params)
  unless params['Products'].nil?
    @Products = []
    params['Products'].each do |i|
      bindproductinfo_tmp = BindProductInfo.new
      bindproductinfo_tmp.deserialize(i)
      @Products << bindproductinfo_tmp
    end
  end
  @Total = params['Total']
  @RequestId = params['RequestId']
end