Sha256: 8635493253c0845259344cf8874aec2996316e8a18d0f08f1dcca34f41684e1f

Contents?: true

Size: 684 Bytes

Versions: 9

Compression:

Stored size: 684 Bytes

Contents

module Fog
  module Compute
    class Vsphere

      class Interface < Fog::Model

        identity :mac
        alias :id :mac

        attribute :network
        attribute :name
        attribute :status
        attribute :summary
        attribute :type
        attribute :key

        def initialize(attributes={} )
          super defaults.merge(attributes)
        end

        def to_s
          name
        end

        private

        def defaults
          {
            :name=>"Network adapter",
            :network=>"VM Network",
            :summary=>"VM Network",
            :type=> RbVmomi::VIM::VirtualE1000,
          }
        end


      end

    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
fog-maestrodev-1.15.0.20130927082724 lib/fog/vsphere/models/compute/interface.rb
fog-maestrodev-1.15.0.20130829165835 lib/fog/vsphere/models/compute/interface.rb
fog-1.15.0 lib/fog/vsphere/models/compute/interface.rb
fog-maestrodev-1.14.0.20130806165225 lib/fog/vsphere/models/compute/interface.rb
fog-1.14.0 lib/fog/vsphere/models/compute/interface.rb
fog-1.13.0 lib/fog/vsphere/models/compute/interface.rb
fog-1.12.1 lib/fog/vsphere/models/compute/interface.rb
fog-1.12.0 lib/fog/vsphere/models/compute/interface.rb
fog-1.11.1 lib/fog/vsphere/models/compute/interface.rb