Class: TencentCloud::Cloudhsm::V20191112::DeviceInfo

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

Overview

设备厂商信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(manufacturer = nil, hsmtypes = nil) ⇒ DeviceInfo

Returns a new instance of DeviceInfo.



620
621
622
623
# File 'lib/v20191112/models.rb', line 620

def initialize(manufacturer=nil, hsmtypes=nil)
  @Manufacturer = manufacturer
  @HsmTypes = hsmtypes
end

Instance Attribute Details

#HsmTypesObject

Parameters:

  • Manufacturer:

    厂商名称

  • HsmTypes:

    此厂商旗下的设备信息列表



618
619
620
# File 'lib/v20191112/models.rb', line 618

def HsmTypes
  @HsmTypes
end

#ManufacturerObject

Parameters:

  • Manufacturer:

    厂商名称

  • HsmTypes:

    此厂商旗下的设备信息列表



618
619
620
# File 'lib/v20191112/models.rb', line 618

def Manufacturer
  @Manufacturer
end

Instance Method Details

#deserialize(params) ⇒ Object



625
626
627
628
629
630
631
632
633
634
635
# File 'lib/v20191112/models.rb', line 625

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