Class: TencentCloud::Api::V20201106::DescribeProductsResponse

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

Overview

DescribeProducts返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of DescribeProductsResponse.



51
52
53
54
55
# File 'lib/v20201106/models.rb', line 51

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

Instance Attribute Details

#ProductsObject

Parameters:

  • Products:

    产品详细信息列表。

  • TotalCount:

    产品总数量。

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



49
50
51
# File 'lib/v20201106/models.rb', line 49

def Products
  @Products
end

#RequestIdObject

Parameters:

  • Products:

    产品详细信息列表。

  • TotalCount:

    产品总数量。

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



49
50
51
# File 'lib/v20201106/models.rb', line 49

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • Products:

    产品详细信息列表。

  • TotalCount:

    产品总数量。

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



49
50
51
# File 'lib/v20201106/models.rb', line 49

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/v20201106/models.rb', line 57

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