pyrax
Python Bindings for the Rackspace Cloud
 All Classes Namespaces Files Functions Variables Properties
Public Member Functions | Static Public Attributes
CloudDatabaseUser Class Reference

This class represents a user on a CloudDatabaseInstance. More...

Inheritance diagram for CloudDatabaseUser:
BaseResource

List of all members.

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

Detailed Description

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.


Member Function Documentation

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.


Member Data Documentation

get_details = False [static]

Reimplemented from BaseResource.


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