pyrax
Python Bindings for the Rackspace Cloud
|
This class represents a user on a CloudDatabaseInstance. More...
Public Member Functions | |
def | delete |
This class doesn't have an 'id', so pass the name. | |
def | change_password |
Changes the password for this user to the supplied value. | |
def | list_user_access |
Returns a list of all database names for which the specified user has access rights. | |
def | grant_user_access |
Gives access to the databases listed in `db_names` to the user. | |
def | revoke_user_access |
Revokes access to the databases listed in `db_names` for the user. | |
Static Public Attributes | |
get_details = False |
This class represents a user on a CloudDatabaseInstance.
It is not a true cloud entity, but a convenience object for dealing with users for instances.
def change_password | ( | self, | |
new_pass | |||
) |
Changes the password for this user to the supplied value.
Returns None upon success; raises PasswordChangeFailed if the call does not complete successfully.
def delete | ( | self | ) |
This class doesn't have an 'id', so pass the name.
Reimplemented from BaseResource.
def grant_user_access | ( | self, | |
db_names, | |||
strict = True |
|||
) |
Gives access to the databases listed in `db_names` to the user.
def list_user_access | ( | self | ) |
Returns a list of all database names for which the specified user has access rights.
def revoke_user_access | ( | self, | |
db_names, | |||
strict = True |
|||
) |
Revokes access to the databases listed in `db_names` for the user.
get_details = False [static] |
Reimplemented from BaseResource.