Class: TencentCloud::Api::V20201106::DescribeProductsResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Api::V20201106::DescribeProductsResponse
- Defined in:
- lib/v20201106/models.rb
Overview
DescribeProducts返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(products = nil, totalcount = nil, requestid = nil) ⇒ DescribeProductsResponse
constructor
A new instance of DescribeProductsResponse.
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
#Products ⇒ Object
49 50 51 |
# File 'lib/v20201106/models.rb', line 49 def Products @Products end |
#RequestId ⇒ Object
49 50 51 |
# File 'lib/v20201106/models.rb', line 49 def RequestId @RequestId end |
#TotalCount ⇒ Object
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 |