Class: TencentCloud::Cloudhsm::V20191112::DeviceInfo
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cloudhsm::V20191112::DeviceInfo
- Defined in:
- lib/v20191112/models.rb
Overview
设备厂商信息
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(manufacturer = nil, hsmtypes = nil) ⇒ DeviceInfo
constructor
A new instance of DeviceInfo.
Constructor Details
#initialize(manufacturer = nil, hsmtypes = nil) ⇒ DeviceInfo
Returns a new instance of DeviceInfo.
616 617 618 619 |
# File 'lib/v20191112/models.rb', line 616 def initialize(manufacturer=nil, hsmtypes=nil) @Manufacturer = manufacturer @HsmTypes = hsmtypes end |
Instance Attribute Details
#HsmTypes ⇒ Object
614 615 616 |
# File 'lib/v20191112/models.rb', line 614 def HsmTypes @HsmTypes end |
#Manufacturer ⇒ Object
614 615 616 |
# File 'lib/v20191112/models.rb', line 614 def Manufacturer @Manufacturer end |
Instance Method Details
#deserialize(params) ⇒ Object
621 622 623 624 625 626 627 628 629 630 631 |
# File 'lib/v20191112/models.rb', line 621 def deserialize(params) @Manufacturer = params['Manufacturer'] unless params['HsmTypes'].nil? @HsmTypes = [] params['HsmTypes'].each do |i| hsminfo_tmp = HsmInfo.new hsminfo_tmp.deserialize(i) @HsmTypes << hsminfo_tmp end end end |