Sha256: c8b66aa81d76349f775333793fd0e14bd2154be857a82dab28124ed72b73d4a8

Contents?: true

Size: 964 Bytes

Versions: 13

Compression:

Stored size: 964 Bytes

Contents

require 'fog/core/model'

module Fog
  module Compute
    class XenServer
    
      class Pool < Fog::Model
        # API Reference here:
        # http://docs.vmd.citrix.com/XenServer/5.6.0/1.0/en_gb/api/?c=pool
        
        identity :reference
        
        attribute :uuid
        attribute :name,                   :aliases => :name_label
        attribute :description,            :aliases => :name_description
        attribute :__default_sr,           :aliases => :default_SR
        attribute :__master,               :aliases => :master
        attribute :tags 
        attribute :restrictions
        attribute :ha_enabled
        attribute :vswitch_controller

        
        def default_sr
          connection.storage_repositories.get __default_sr
        end

        def default_storage_repository
          default_sr
        end

        def master
          connection.hosts.get __master
        end

      end
      
    end
  end
end

Version data entries

13 entries across 13 versions & 7 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/xenserver/models/compute/pool.rb
fog-nirvanix-1.8.1 lib/fog/xenserver/models/compute/pool.rb
fog-parser-fix-1.6.1 lib/fog/xenserver/models/compute/pool.rb
fog-test-again-1.6.0 lib/fog/xenserver/models/compute/pool.rb
fog-parser-fix-1.6.0 lib/fog/xenserver/models/compute/pool.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/xenserver/models/compute/pool.rb
fog-sgonyea-1.8.1 lib/fog/xenserver/models/compute/pool.rb
fog-1.8.0 lib/fog/xenserver/models/compute/pool.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/xenserver/models/compute/pool.rb
fog-1.7.0 lib/fog/xenserver/models/compute/pool.rb
fog-1.6.0 lib/fog/xenserver/models/compute/pool.rb
fog-1.5.0 lib/fog/xenserver/models/compute/pool.rb
fog-1.4.0 lib/fog/xenserver/models/compute/pool.rb