class OpenNebula::VMGroupPool
Constants
- VMGROUP_POOL_METHODS
-
Constants and Class attribute accessors
Public Class Methods
Source
# File lib/opennebula/vm_group_pool.rb, line 34 def initialize(client, user_id=-1) super('VM_GROUP_POOL','VM_GROUP',client) @user_id = user_id end
client
a Client
object that represents an XML-RPC connection user_id
used to refer to a Pool
with Templates from that user
Calls superclass method
OpenNebula::Pool::new
Public Instance Methods
Source
# File lib/opennebula/vm_group_pool.rb, line 41 def factory(element_xml) OpenNebula::VMGroup.new(element_xml,@client) end
Factory method to create Template
objects
Source
# File lib/opennebula/vm_group_pool.rb, line 50 def info(*args) case args.size when 0 info_filter(VMGROUP_POOL_METHODS[:info], @user_id, -1, -1) when 3 info_filter(VMGROUP_POOL_METHODS[:info], args[0], args[1], args[2]) end end
Retrieves all or part of the objects in the pool.
Also aliased as: info!
Source
# File lib/opennebula/vm_group_pool.rb, line 60 def info_all() return super(VMGROUP_POOL_METHODS[:info]) end
Calls superclass method
OpenNebula::Pool#info_all
Also aliased as: info_all!
Source
# File lib/opennebula/vm_group_pool.rb, line 68 def info_group() return super(VMGROUP_POOL_METHODS[:info]) end
Calls superclass method
OpenNebula::Pool#info_group
Also aliased as: info_group!
Source
# File lib/opennebula/vm_group_pool.rb, line 64 def info_mine() return super(VMGROUP_POOL_METHODS[:info]) end
Calls superclass method
OpenNebula::Pool#info_mine
Also aliased as: info_mine!