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 | 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 | us_auth_endpoint = "https://identity.api.rackspacecloud.com/v2.0/" |
string | uk_auth_endpoint = "https://lon.identity.api.rackspacecloud.com/v2.0/" |
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 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 |
|||
) |
Reimplemented from BaseAuth.
string uk_auth_endpoint = "https://lon.identity.api.rackspacecloud.com/v2.0/" [static] |
string us_auth_endpoint = "https://identity.api.rackspacecloud.com/v2.0/" [static] |