Sha256: 34644355358a08b51a6f36ae80627fd739005812781c806fa058e806647555d8

Contents?: true

Size: 756 Bytes

Versions: 73

Compression:

Stored size: 756 Bytes

Contents

module Fog
  module Compute
    class Vsphere
      class Servertype < Fog::Model
        identity :id

        attribute :family
        attribute :fullname
        attribute :datacenter
        attribute :interfacetypes

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

        def to_s
          id
        end

        def interfacetypes filters={}
          attributes[:interfacetypes] ||= service.interfacetypes({ :datacenter => datacenter, :servertype => self }.merge(filters))
        end

        private

        def defaults
          {
            :id=>"otherGuest64",
            :family=>"otherGuestFamily",
            :interfacetypes => nil,
          }
        end
      end
    end
  end
end

Version data entries

73 entries across 73 versions & 5 rubygems

Version Path
fog-vsphere-1.5.2 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-1.5.1 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-1.5.0 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-1.4.0 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-1.3.0 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-1.2.2 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-1.2.1 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-1.2.0 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-1.1.0 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-1.0.1 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-1.0.0 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-0.8.1 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-0.8.0 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-0.7.0 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-0.6.4 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-0.6.3 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-0.6.2 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-0.6.1 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-0.6.0 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-0.5.0 lib/fog/vsphere/models/compute/servertype.rb