fog/fog-vsphere

View on GitHub
lib/fog/vsphere/models/compute/datastore.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Fog
  module Vsphere
    class Compute
      class Datastore < Fog::Model
        identity :id

        attribute :name
        attribute :datacenter
        attribute :type
        attribute :freespace
        attribute :accessible # reachable by at least one hypervisor
        attribute :capacity
        attribute :uncommitted

        def to_s
          name
        end
      end
    end
  end
end