pyrax
Python Bindings for the Rackspace Cloud
 All Classes Namespaces Files Functions Variables Properties
Public Member Functions
CloudDatabaseUserManager Class Reference

This class handles operations on the users in a Cloud Database. More...

Inheritance diagram for CloudDatabaseUserManager:
BaseManager

List of all members.

Public Member Functions

def change_user_password
 Changes the password for the 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.

Detailed Description

This class handles operations on the users in a Cloud Database.


Member Function Documentation

def change_user_password (   self,
  user,
  new_pass 
)

Changes the password for the user to the supplied value.

Returns None upon success; raises PasswordChangeFailed if the call does not complete successfully.

def grant_user_access (   self,
  user,
  db_names,
  strict = True 
)

Gives access to the databases listed in `db_names` to the user.

You may pass in either a single db or a list of dbs.

If any of the databases do not exist, a NoSuchDatabase exception will be raised, unless you specify `strict=False` in the call.

def list_user_access (   self,
  user 
)

Returns a list of all database names for which the specified user has access rights.

def revoke_user_access (   self,
  user,
  db_names,
  strict = True 
)

Revokes access to the databases listed in `db_names` for the user.

If any of the databases do not exist, a NoSuchDatabase exception will be raised, unless you specify `strict=False` in the call.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties