Class: TencentCloud::Iotexplorer::V20190423::DescribeGatewaySubProductsResponse

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

Overview

DescribeGatewaySubProducts返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of DescribeGatewaySubProductsResponse.



6236
6237
6238
6239
6240
# File 'lib/v20190423/models.rb', line 6236

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。



6234
6235
6236
# File 'lib/v20190423/models.rb', line 6234

def Products
  @Products
end

#RequestIdObject

Parameters:

  • Products:

    当前分页的可绑定或解绑的产品信息。

  • Total:

    可绑定或解绑的产品总数

  • RequestId:

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



6234
6235
6236
# File 'lib/v20190423/models.rb', line 6234

def RequestId
  @RequestId
end

#TotalObject

Parameters:

  • Products:

    当前分页的可绑定或解绑的产品信息。

  • Total:

    可绑定或解绑的产品总数

  • RequestId:

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



6234
6235
6236
# File 'lib/v20190423/models.rb', line 6234

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
# File 'lib/v20190423/models.rb', line 6242

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