Constants and Class attribute accessors
client
a Client object that
represents an XML-RPC connection user_id
used to refer to a Pool with Templates from that user
# File lib/opennebula/template_pool.rb, line 37 def initialize(client, user_id=-1) super('VMTEMPLATE_POOL','VMTEMPLATE',client) @user_id = user_id end
Factory method to create Template objects
# File lib/opennebula/template_pool.rb, line 44 def factory(element_xml) OpenNebula::Template.new(element_xml,@client) end
Retrieves all or part of the VirtualMachines in the pool.
# File lib/opennebula/template_pool.rb, line 53 def info(*args) case args.size when 0 info_filter(TEMPLATE_POOL_METHODS[:info],@user_id,-1,-1) when 3 info_filter(TEMPLATE_POOL_METHODS[:info],args[0],args[1],args[2]) end end
# File lib/opennebula/template_pool.rb, line 62 def info_all() return super(TEMPLATE_POOL_METHODS[:info]) end
# File lib/opennebula/template_pool.rb, line 70 def info_group() return super(TEMPLATE_POOL_METHODS[:info]) end
# File lib/opennebula/template_pool.rb, line 66 def info_mine() return super(TEMPLATE_POOL_METHODS[:info]) end