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.



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

#HsmTypesObject

Parameters:

  • Manufacturer:

    厂商名称

  • HsmTypes:

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



614
615
616
# File 'lib/v20191112/models.rb', line 614

def HsmTypes
  @HsmTypes
end

#ManufacturerObject

Parameters:

  • Manufacturer:

    厂商名称

  • HsmTypes:

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



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