Class: TencentCloud::Weilingwith::V20230427::ModelInfo

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

Overview

模型基础信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(workspaceid = nil, modelname = nil, modelid = nil, relatedproduct = nil, devicetypename = nil, devicetype = nil, modeltype = nil, modelparams = nil) ⇒ ModelInfo

Returns a new instance of ModelInfo.



5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
# File 'lib/v20230427/models.rb', line 5929

def initialize(workspaceid=nil, modelname=nil, modelid=nil, relatedproduct=nil, devicetypename=nil, devicetype=nil, modeltype=nil, modelparams=nil)
  @WorkspaceId = workspaceid
  @ModelName = modelname
  @ModelId = modelid
  @RelatedProduct = relatedproduct
  @DeviceTypeName = devicetypename
  @DeviceType = devicetype
  @ModelType = modeltype
  @ModelParams = modelparams
end

Instance Attribute Details

#DeviceTypeObject

Parameters:

  • WorkspaceId:

    工作空间id

  • ModelName:

    模型名称

  • ModelId:

    物模型id

  • RelatedProduct:

    关联产品信息

  • DeviceTypeName:

    设备类型名

  • DeviceType:

    设备类型id

  • ModelType:

    物模型类型,产品模型/标准模型

  • ModelParams:

    模型参数内容,有效字段为“x-json:”后的字段



5927
5928
5929
# File 'lib/v20230427/models.rb', line 5927

def DeviceType
  @DeviceType
end

#DeviceTypeNameObject

Parameters:

  • WorkspaceId:

    工作空间id

  • ModelName:

    模型名称

  • ModelId:

    物模型id

  • RelatedProduct:

    关联产品信息

  • DeviceTypeName:

    设备类型名

  • DeviceType:

    设备类型id

  • ModelType:

    物模型类型,产品模型/标准模型

  • ModelParams:

    模型参数内容,有效字段为“x-json:”后的字段



5927
5928
5929
# File 'lib/v20230427/models.rb', line 5927

def DeviceTypeName
  @DeviceTypeName
end

#ModelIdObject

Parameters:

  • WorkspaceId:

    工作空间id

  • ModelName:

    模型名称

  • ModelId:

    物模型id

  • RelatedProduct:

    关联产品信息

  • DeviceTypeName:

    设备类型名

  • DeviceType:

    设备类型id

  • ModelType:

    物模型类型,产品模型/标准模型

  • ModelParams:

    模型参数内容,有效字段为“x-json:”后的字段



5927
5928
5929
# File 'lib/v20230427/models.rb', line 5927

def ModelId
  @ModelId
end

#ModelNameObject

Parameters:

  • WorkspaceId:

    工作空间id

  • ModelName:

    模型名称

  • ModelId:

    物模型id

  • RelatedProduct:

    关联产品信息

  • DeviceTypeName:

    设备类型名

  • DeviceType:

    设备类型id

  • ModelType:

    物模型类型,产品模型/标准模型

  • ModelParams:

    模型参数内容,有效字段为“x-json:”后的字段



5927
5928
5929
# File 'lib/v20230427/models.rb', line 5927

def ModelName
  @ModelName
end

#ModelParamsObject

Parameters:

  • WorkspaceId:

    工作空间id

  • ModelName:

    模型名称

  • ModelId:

    物模型id

  • RelatedProduct:

    关联产品信息

  • DeviceTypeName:

    设备类型名

  • DeviceType:

    设备类型id

  • ModelType:

    物模型类型,产品模型/标准模型

  • ModelParams:

    模型参数内容,有效字段为“x-json:”后的字段



5927
5928
5929
# File 'lib/v20230427/models.rb', line 5927

def ModelParams
  @ModelParams
end

#ModelTypeObject

Parameters:

  • WorkspaceId:

    工作空间id

  • ModelName:

    模型名称

  • ModelId:

    物模型id

  • RelatedProduct:

    关联产品信息

  • DeviceTypeName:

    设备类型名

  • DeviceType:

    设备类型id

  • ModelType:

    物模型类型,产品模型/标准模型

  • ModelParams:

    模型参数内容,有效字段为“x-json:”后的字段



5927
5928
5929
# File 'lib/v20230427/models.rb', line 5927

def ModelType
  @ModelType
end

#RelatedProductObject

Parameters:

  • WorkspaceId:

    工作空间id

  • ModelName:

    模型名称

  • ModelId:

    物模型id

  • RelatedProduct:

    关联产品信息

  • DeviceTypeName:

    设备类型名

  • DeviceType:

    设备类型id

  • ModelType:

    物模型类型,产品模型/标准模型

  • ModelParams:

    模型参数内容,有效字段为“x-json:”后的字段



5927
5928
5929
# File 'lib/v20230427/models.rb', line 5927

def RelatedProduct
  @RelatedProduct
end

#WorkspaceIdObject

Parameters:

  • WorkspaceId:

    工作空间id

  • ModelName:

    模型名称

  • ModelId:

    物模型id

  • RelatedProduct:

    关联产品信息

  • DeviceTypeName:

    设备类型名

  • DeviceType:

    设备类型id

  • ModelType:

    物模型类型,产品模型/标准模型

  • ModelParams:

    模型参数内容,有效字段为“x-json:”后的字段



5927
5928
5929
# File 'lib/v20230427/models.rb', line 5927

def WorkspaceId
  @WorkspaceId
end

Instance Method Details

#deserialize(params) ⇒ Object



5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
# File 'lib/v20230427/models.rb', line 5940

def deserialize(params)
  @WorkspaceId = params['WorkspaceId']
  @ModelName = params['ModelName']
  @ModelId = params['ModelId']
  unless params['RelatedProduct'].nil?
    @RelatedProduct = []
    params['RelatedProduct'].each do |i|
      relatedproduct_tmp = RelatedProduct.new
      relatedproduct_tmp.deserialize(i)
      @RelatedProduct << relatedproduct_tmp
    end
  end
  @DeviceTypeName = params['DeviceTypeName']
  @DeviceType = params['DeviceType']
  @ModelType = params['ModelType']
  @ModelParams = params['ModelParams']
end