class OpenNebula::BackupJobPool
Class representing a Backup Job pool
Constants
- BACKUPJOB_POOL_METHODS
Constants and Class attribute accessors
Public Class Methods
new(client, user_id = -1)
click to toggle source
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
# File lib/opennebula/backupjob_pool.rb, line 38 def initialize(client, user_id = -1) super('BACKUPJOB_POOL', 'BACKUPJOB', client) @user_id = user_id end
Public Instance Methods
factory(element_xml)
click to toggle source
Factory method to create Backup Job objects
# File lib/opennebula/backupjob_pool.rb, line 45 def factory(element_xml) OpenNebula::BackupJob.new(element_xml, @client) end
info(*args)
click to toggle source
Retrieves all or part of the Templates in the pool.
# File lib/opennebula/backupjob_pool.rb, line 54 def info(*args) case args.size when 0 info_filter(BACKUPJOB_POOL_METHODS[:info], @user_id, -1, -1) when 3 info_filter(BACKUPJOB_POOL_METHODS[:info], args[0], args[1], args[2]) end end
Also aliased as: info!
info_all()
click to toggle source
Calls superclass method
# File lib/opennebula/backupjob_pool.rb, line 63 def info_all super(BACKUPJOB_POOL_METHODS[:info]) end
Also aliased as: info_all!
info_group()
click to toggle source
Calls superclass method
# File lib/opennebula/backupjob_pool.rb, line 71 def info_group super(BACKUPJOB_POOL_METHODS[:info]) end
Also aliased as: info_group!
info_mine()
click to toggle source
Calls superclass method
# File lib/opennebula/backupjob_pool.rb, line 67 def info_mine super(BACKUPJOB_POOL_METHODS[:info]) end
Also aliased as: info_mine!