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.7.0.1 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-2.1.1 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-2.1.0 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-2.0.1 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-2.0.0 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-1.13.1 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-1.13.0 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-1.12.0 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-1.11.3 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-1.11.2 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-1.11.1 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-1.11.0 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-1.10.0 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-1.9.2 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-1.9.1 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-1.9.0 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-1.8.0 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-1.7.1 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-1.7.0 lib/fog/vsphere/models/compute/servertype.rb
fog-vsphere-1.6.0 lib/fog/vsphere/models/compute/servertype.rb