Class: TencentCloud::Weilingwith::V20230427::ModelInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Weilingwith::V20230427::ModelInfo
- Defined in:
- lib/v20230427/models.rb
Overview
模型基础信息
Instance Attribute Summary collapse
- #DeviceType ⇒ Object
- #DeviceTypeName ⇒ Object
- #ModelId ⇒ Object
- #ModelName ⇒ Object
- #ModelParams ⇒ Object
- #ModelType ⇒ Object
- #RelatedProduct ⇒ Object
- #WorkspaceId ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(workspaceid = nil, modelname = nil, modelid = nil, relatedproduct = nil, devicetypename = nil, devicetype = nil, modeltype = nil, modelparams = nil) ⇒ ModelInfo
constructor
A new instance of ModelInfo.
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, =nil, devicetypename=nil, devicetype=nil, modeltype=nil, modelparams=nil) @WorkspaceId = workspaceid @ModelName = modelname @ModelId = modelid @RelatedProduct = @DeviceTypeName = devicetypename @DeviceType = devicetype @ModelType = modeltype @ModelParams = modelparams end |
Instance Attribute Details
#DeviceType ⇒ Object
5927 5928 5929 |
# File 'lib/v20230427/models.rb', line 5927 def DeviceType @DeviceType end |
#DeviceTypeName ⇒ Object
5927 5928 5929 |
# File 'lib/v20230427/models.rb', line 5927 def DeviceTypeName @DeviceTypeName end |
#ModelId ⇒ Object
5927 5928 5929 |
# File 'lib/v20230427/models.rb', line 5927 def ModelId @ModelId end |
#ModelName ⇒ Object
5927 5928 5929 |
# File 'lib/v20230427/models.rb', line 5927 def ModelName @ModelName end |
#ModelParams ⇒ Object
5927 5928 5929 |
# File 'lib/v20230427/models.rb', line 5927 def ModelParams @ModelParams end |
#ModelType ⇒ Object
5927 5928 5929 |
# File 'lib/v20230427/models.rb', line 5927 def ModelType @ModelType end |
#RelatedProduct ⇒ Object
5927 5928 5929 |
# File 'lib/v20230427/models.rb', line 5927 def RelatedProduct @RelatedProduct end |
#WorkspaceId ⇒ Object
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.new .deserialize(i) @RelatedProduct << end end @DeviceTypeName = params['DeviceTypeName'] @DeviceType = params['DeviceType'] @ModelType = params['ModelType'] @ModelParams = params['ModelParams'] end |