Revision d136f262 src/oca/ruby/OpenNebula/User.rb
src/oca/ruby/OpenNebula/User.rb | ||
---|---|---|
41 | 41 |
# --------------------------------------------------------------------- |
42 | 42 |
# XML-RPC Methods for the User Object |
43 | 43 |
# --------------------------------------------------------------------- |
44 |
|
|
45 |
# Retrieves the information of the given User. |
|
44 | 46 |
def info() |
45 | 47 |
super(USER_METHODS[:info], 'USER') |
46 | 48 |
end |
47 | 49 |
|
50 |
# Allocates a new User in OpenNebula |
|
51 |
# |
|
52 |
# +username+ Name of the new user. |
|
53 |
# |
|
54 |
# +password+ Password for the new user |
|
48 | 55 |
def allocate(username, password) |
49 | 56 |
super(USER_METHODS[:allocate], username, password) |
50 | 57 |
end |
51 | 58 |
|
59 |
# Deletes the User |
|
52 | 60 |
def delete() |
53 | 61 |
super(USER_METHODS[:delete]) |
54 | 62 |
end |
55 | 63 |
|
64 |
# Changes the password of the given User |
|
65 |
# |
|
66 |
# +password+ String containing the new password |
|
56 | 67 |
def passwd(password) |
57 | 68 |
return Error.new('ID not defined') if !@pe_id |
58 | 69 |
|
Also available in: Unified diff