Class: TencentCloud::Iotcloud::V20180614::ProductInfo

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

Overview

产品详细信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ProductInfo.



3516
3517
3518
3519
3520
3521
# File 'lib/v20180614/models.rb', line 3516

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

Instance Attribute Details

#ProductIdObject

Parameters:

  • ProductId:

    产品ID

  • ProductName:

    产品名

  • ProductMetadata:

    产品元数据

  • ProductProperties:

    产品属性



3514
3515
3516
# File 'lib/v20180614/models.rb', line 3514

def ProductId
  @ProductId
end

#ProductMetadataObject

Parameters:

  • ProductId:

    产品ID

  • ProductName:

    产品名

  • ProductMetadata:

    产品元数据

  • ProductProperties:

    产品属性



3514
3515
3516
# File 'lib/v20180614/models.rb', line 3514

def ProductMetadata
  @ProductMetadata
end

#ProductNameObject

Parameters:

  • ProductId:

    产品ID

  • ProductName:

    产品名

  • ProductMetadata:

    产品元数据

  • ProductProperties:

    产品属性



3514
3515
3516
# File 'lib/v20180614/models.rb', line 3514

def ProductName
  @ProductName
end

#ProductPropertiesObject

Parameters:

  • ProductId:

    产品ID

  • ProductName:

    产品名

  • ProductMetadata:

    产品元数据

  • ProductProperties:

    产品属性



3514
3515
3516
# File 'lib/v20180614/models.rb', line 3514

def ProductProperties
  @ProductProperties
end

Instance Method Details

#deserialize(params) ⇒ Object



3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
# File 'lib/v20180614/models.rb', line 3523

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