Sha256: ccf60c804dc96be1a890686e1b24e856b2faeb531b1240b3920de625a20d44a9

Contents?: true

Size: 604 Bytes

Versions: 4

Compression:

Stored size: 604 Bytes

Contents

module Fog
  module Vsphere
    class Compute
      class SCSIController < Fog::Model
        attribute :shared_bus
        attribute :type
        attribute :unit_number
        attribute :key, type: :integer
        attribute :server_id

        DEFAULT_KEY = 1000
        DEFAULT_TYPE = "VirtualLsiLogicController".freeze

        def initialize(attributes = {})
          super
          self.key ||= DEFAULT_KEY
          self.type ||= DEFAULT_TYPE
        end

        def to_s
          "#{type} ##{key}: shared: #{shared_bus}, unit_number: #{unit_number}"
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-vsphere-3.7.0 lib/fog/vsphere/models/compute/scsicontroller.rb
fog-vsphere-3.6.8 lib/fog/vsphere/models/compute/scsicontroller.rb
fog-vsphere-3.6.7 lib/fog/vsphere/models/compute/scsicontroller.rb
fog-vsphere-3.6.6 lib/fog/vsphere/models/compute/scsicontroller.rb