class OpenNebula::UserPool
Constants
- USER_POOL_METHODS
-
Constants and Class attribute accessors
Public Class Methods
Source
# File lib/opennebula/user_pool.rb, line 35 def initialize(client) super('USER_POOL','USER',client) end
client
a Client
object that represents a XML-RPC connection
Calls superclass method
OpenNebula::Pool::new
Public Instance Methods
Source
# File lib/opennebula/user_pool.rb, line 40 def factory(element_xml) OpenNebula::User.new(element_xml,@client) end
Factory method to create User
objects
Source
# File lib/opennebula/user_pool.rb, line 49 def info() super(USER_POOL_METHODS[:info]) end
Retrieves all the Users in the pool.
Calls superclass method
OpenNebula::Pool#info
Also aliased as: info!
Source
# File lib/opennebula/user_pool.rb, line 53 def info_all() return super(USER_POOL_METHODS[:info]) end
Calls superclass method
OpenNebula::Pool#info_all
Also aliased as: info_all!
Source
# File lib/opennebula/user_pool.rb, line 61 def info_group() return super(USER_POOL_METHODS[:info]) end
Calls superclass method
OpenNebula::Pool#info_group
Also aliased as: info_group!
Source
# File lib/opennebula/user_pool.rb, line 57 def info_mine() return super(USER_POOL_METHODS[:info]) end
Calls superclass method
OpenNebula::Pool#info_mine
Also aliased as: info_mine!
Source
# File lib/opennebula/user_pool.rb, line 80 def users_with_password(driver, password) ids = [] each do |user| if user["PASSWORD"] == password ids << user["ID"] end end return ids end
Returns a list of user IDs that have the given password. info() needs to be called before.
@param driver [String] auth driver to match @param password [String] password to match @return [Array] an array of IDs