
Constants
VM_POOL_METHODS | = | { :info => "vmpool.info" } | Constants and Class attribute accessors |
Public class methods
new
(client, user_id=0)
client a Client object that represents a XML-RPC connection user_id is to refer to a Pool with VirtualMachines from that user
[show source]
# File OpenNebula/VirtualMachinePool.rb, line 35 35: def initialize(client, user_id=0) 36: super('VM_POOL','VM',client) 37: 38: @user_id = user_id 39: end
Public instance methods
factory
(element_xml)
Default Factory Method for the Pools
[show source]
# File OpenNebula/VirtualMachinePool.rb, line 42 42: def factory(element_xml) 43: OpenNebula::VirtualMachine.new(element_xml,@client) 44: end
info
()
Retrieves all or part of the VirtualMachines in the pool.
[show source]
# File OpenNebula/VirtualMachinePool.rb, line 51 51: def info() 52: super(VM_POOL_METHODS[:info],@user_id) 53: end