Class: TencentCloud::Iotcloud::V20210408::DescribeProductsResponse

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

Overview

DescribeProducts返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, products = nil, requestid = nil) ⇒ DescribeProductsResponse

Returns a new instance of DescribeProductsResponse.



2366
2367
2368
2369
2370
# File 'lib/v20210408/models.rb', line 2366

def initialize(totalcount=nil, products=nil, requestid=nil)
  @TotalCount = totalcount
  @Products = products
  @RequestId = requestid
end

Instance Attribute Details

#ProductsObject

Parameters:

  • TotalCount:

    产品总数

  • Products:

    产品详细信息列表

  • RequestId:

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



2364
2365
2366
# File 'lib/v20210408/models.rb', line 2364

def Products
  @Products
end

#RequestIdObject

Parameters:

  • TotalCount:

    产品总数

  • Products:

    产品详细信息列表

  • RequestId:

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



2364
2365
2366
# File 'lib/v20210408/models.rb', line 2364

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • TotalCount:

    产品总数

  • Products:

    产品详细信息列表

  • RequestId:

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



2364
2365
2366
# File 'lib/v20210408/models.rb', line 2364

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
# File 'lib/v20210408/models.rb', line 2372

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['Products'].nil?
    @Products = []
    params['Products'].each do |i|
      productinfo_tmp = ProductInfo.new
      productinfo_tmp.deserialize(i)
      @Products << productinfo_tmp
    end
  end
  @RequestId = params['RequestId']
end