Class: TencentCloud::Iotcloud::V20210408::DescribeProductResponse

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

Overview

DescribeProduct返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(productid = nil, productname = nil, productmetadata = nil, productproperties = nil, requestid = nil) ⇒ DescribeProductResponse

Returns a new instance of DescribeProductResponse.



2214
2215
2216
2217
2218
2219
2220
# File 'lib/v20210408/models.rb', line 2214

def initialize(productid=nil, productname=nil, =nil, productproperties=nil, requestid=nil)
  @ProductId = productid
  @ProductName = productname
   = 
  @ProductProperties = productproperties
  @RequestId = requestid
end

Instance Attribute Details

#ProductIdObject

Parameters:

  • ProductId:

    产品ID

  • ProductName:

    产品名

  • ProductMetadata:

    产品元数据

  • ProductProperties:

    产品属性

  • RequestId:

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



2212
2213
2214
# File 'lib/v20210408/models.rb', line 2212

def ProductId
  @ProductId
end

#ProductMetadataObject

Parameters:

  • ProductId:

    产品ID

  • ProductName:

    产品名

  • ProductMetadata:

    产品元数据

  • ProductProperties:

    产品属性

  • RequestId:

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



2212
2213
2214
# File 'lib/v20210408/models.rb', line 2212

def 
  
end

#ProductNameObject

Parameters:

  • ProductId:

    产品ID

  • ProductName:

    产品名

  • ProductMetadata:

    产品元数据

  • ProductProperties:

    产品属性

  • RequestId:

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



2212
2213
2214
# File 'lib/v20210408/models.rb', line 2212

def ProductName
  @ProductName
end

#ProductPropertiesObject

Parameters:

  • ProductId:

    产品ID

  • ProductName:

    产品名

  • ProductMetadata:

    产品元数据

  • ProductProperties:

    产品属性

  • RequestId:

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



2212
2213
2214
# File 'lib/v20210408/models.rb', line 2212

def ProductProperties
  @ProductProperties
end

#RequestIdObject

Parameters:

  • ProductId:

    产品ID

  • ProductName:

    产品名

  • ProductMetadata:

    产品元数据

  • ProductProperties:

    产品属性

  • RequestId:

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



2212
2213
2214
# File 'lib/v20210408/models.rb', line 2212

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
# File 'lib/v20210408/models.rb', line 2222

def deserialize(params)
  @ProductId = params['ProductId']
  @ProductName = params['ProductName']
  unless params['ProductMetadata'].nil?
     = .new
    .deserialize(params['ProductMetadata'])
  end
  unless params['ProductProperties'].nil?
    @ProductProperties = ProductProperties.new
    @ProductProperties.deserialize(params['ProductProperties'])
  end
  @RequestId = params['RequestId']
end