class OpenNebula::VirtualNetworkPool

Constants

VN_POOL_METHODS

Constants and Class attribute accessors

Public Class Methods

new(client, user_id=0) click to toggle source

client a Client object that represents a XML-RPC connection user_id is to refer to a Pool with VirtualNetworks from that user

Calls superclass method OpenNebula::Pool.new
# File lib/opennebula/virtual_network_pool.rb, line 37
def initialize(client, user_id=0)
    super('VNET_POOL','VNET',client)

    @user_id  = user_id
end

Public Instance Methods

factory(element_xml) click to toggle source

Default Factory Method for the Pools

# File lib/opennebula/virtual_network_pool.rb, line 44
def factory(element_xml)
    OpenNebula::VirtualNetwork.new(element_xml,@client)
end
info(*args) click to toggle source

Retrieves all or part of the VirtualMachines in the pool.

# File lib/opennebula/virtual_network_pool.rb, line 53
def info(*args)
    case args.size
        when 0
            info_filter(VN_POOL_METHODS[:info],@user_id,-1,-1)
        when 3
            info_filter(VN_POOL_METHODS[:info],args[0],args[1],args[2])
    end
end
Also aliased as: info!
info!(*args)
Alias for: info
info_all() click to toggle source
Calls superclass method OpenNebula::Pool#info_all
# File lib/opennebula/virtual_network_pool.rb, line 62
def info_all()
    return super(VN_POOL_METHODS[:info])
end
Also aliased as: info_all!
info_all!()
Alias for: info_all
info_group() click to toggle source
Calls superclass method OpenNebula::Pool#info_group
# File lib/opennebula/virtual_network_pool.rb, line 70
def info_group()
    return super(VN_POOL_METHODS[:info])
end
Also aliased as: info_group!
info_group!()
Alias for: info_group
info_mine() click to toggle source
Calls superclass method OpenNebula::Pool#info_mine
# File lib/opennebula/virtual_network_pool.rb, line 66
def info_mine()
    return super(VN_POOL_METHODS[:info])
end
Also aliased as: info_mine!
info_mine!()
Alias for: info_mine