|
pyrax
Python Bindings for the Rackspace Cloud
|
This class handles all of the authentication requirements for working with the Rackspace Cloud. More...
Public Member Functions | |
| def | authenticate |
| If the user's credentials include an API key, the default behavior will work. | |
| 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 |
| Allows you to update settings for a given 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 | |
This class handles all of the authentication requirements for working with the Rackspace Cloud.
| 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 authenticate | ( | self | ) |
If the user's credentials include an API key, the default behavior will work.
But if they are using a password, the initial attempt will fail, so try again, but this time using the standard password format.
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 |
|||
| ) |
Allows you to update settings for a given user.
Reimplemented from BaseAuth.
1.7.6.1