Class: TencentCloud::Iotexplorer::V20190423::GetStudioProductListResponse

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

Overview

GetStudioProductList返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of GetStudioProductListResponse.



8972
8973
8974
8975
8976
# File 'lib/v20190423/models.rb', line 8972

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。



8970
8971
8972
# File 'lib/v20190423/models.rb', line 8970

def Products
  @Products
end

#RequestIdObject

Parameters:

  • Products:

    产品列表

  • Total:

    产品数量

  • RequestId:

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



8970
8971
8972
# File 'lib/v20190423/models.rb', line 8970

def RequestId
  @RequestId
end

#TotalObject

Parameters:

  • Products:

    产品列表

  • Total:

    产品数量

  • RequestId:

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



8970
8971
8972
# File 'lib/v20190423/models.rb', line 8970

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
# File 'lib/v20190423/models.rb', line 8978

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