Class: TencentCloud::Iotcloud::V20210408::ProductInfo

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20210408/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.



3552
3553
3554
3555
3556
3557
# File 'lib/v20210408/models.rb', line 3552

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

Instance Attribute Details

#ProductIdObject

Parameters:

  • ProductId:

    产品ID

  • ProductName:

    产品名

  • ProductMetadata:

    产品元数据

  • ProductProperties:

    产品属性



3550
3551
3552
# File 'lib/v20210408/models.rb', line 3550

def ProductId
  @ProductId
end

#ProductMetadataObject

Parameters:

  • ProductId:

    产品ID

  • ProductName:

    产品名

  • ProductMetadata:

    产品元数据

  • ProductProperties:

    产品属性



3550
3551
3552
# File 'lib/v20210408/models.rb', line 3550

def 
  
end

#ProductNameObject

Parameters:

  • ProductId:

    产品ID

  • ProductName:

    产品名

  • ProductMetadata:

    产品元数据

  • ProductProperties:

    产品属性



3550
3551
3552
# File 'lib/v20210408/models.rb', line 3550

def ProductName
  @ProductName
end

#ProductPropertiesObject

Parameters:

  • ProductId:

    产品ID

  • ProductName:

    产品名

  • ProductMetadata:

    产品元数据

  • ProductProperties:

    产品属性



3550
3551
3552
# File 'lib/v20210408/models.rb', line 3550

def ProductProperties
  @ProductProperties
end

Instance Method Details

#deserialize(params) ⇒ Object



3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
# File 'lib/v20210408/models.rb', line 3559

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
end