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

This class handles all of the authentication requirements for working with the Rackspace Cloud. More...

Inheritance diagram for RaxIdentity:
BaseAuth

List of all members.

Public Member Functions

def auth_with_token
 If a valid token is already known, this call will use it to generate the service catalog.
def find_user_by_name
 Returns a User object by searching for the supplied user name.
def find_user_by_id
 Returns a User object by searching for the supplied user ID.
def update_user
def list_credentials
 Returns a user's non-password credentials.
def get_user_credentials
 Returns a user's non-password credentials.

Public Attributes

 username
 password
 authenticated

Static Public Attributes

string default_region = "SYD"

Detailed Description

This class handles all of the authentication requirements for working with the Rackspace Cloud.


Member Function Documentation

def auth_with_token (   self,
  token,
  tenant_id = None,
  tenant_name = None 
)

If a valid token is already known, this call will use it to generate the service catalog.

Reimplemented from BaseAuth.

def find_user_by_id (   self,
  uid 
)

Returns a User object by searching for the supplied user ID.

Returns None if there is no match for the given ID.

def find_user_by_name (   self,
  name 
)

Returns a User object by searching for the supplied user name.

Returns None if there is no match for the given name.

def get_user_credentials (   self,
  user 
)

Returns a user's non-password credentials.

def list_credentials (   self,
  user 
)

Returns a user's non-password credentials.

def update_user (   self,
  user,
  email = None,
  username = None,
  uid = None,
  defaultRegion = None,
  enabled = None 
)

Member Data Documentation

Reimplemented from BaseAuth.

string default_region = "SYD" [static]

Reimplemented from BaseAuth.

Reimplemented from BaseAuth.


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