Part of libcloud.drivers.rackspace View Source View In Hierarchy
Known subclasses: libcloud.drivers.rackspace.RackspaceUKConnection
Method | __init__ | Initialize `user_id` and `key`; set `secure` to an int
based on passed value. |
Method | add_default_headers | Adds default headers (such as Authorization, X-Foo-Bar) to the passed `headers` |
Method | host | Rackspace uses a separate host for API calls which is only provided after an initial authentication request. If we haven't made that request yet, do it here. Otherwise, just return the management host. |
Method | request | Request a given `action`. |
Inherited from ConnectionKey (via ConnectionUserAndKey):
Method | connect | Establish a connection with the API server. |
Method | user_agent_append | Append a token to a user agent string. |
Method | add_default_params | Adds default parameters (such as API key, version, etc.) to the passed `params` |
Method | encode_data | Encode body data. |
Method | _user_agent | Undocumented |
int
based on passed value.Should return a dictionary.
TODO: Fixup for when our token expires (!!!)
Basically a wrapper around the connection object's `request` that does some helpful pre-processing.
Parameters | action | A path (type: str ) |
params | Optional mapping of additional parameters to send. If None, leave as an
empty dict . (type: dict ) | |
data | A body of data to send with the request. (type: unicode ) | |
headers | Extra headers to add to the request None, leave as an empty
dict . (type: dict ) | |
method | An HTTP method such as "GET" or "POST". (type: str ) | |
Returns | An instance of type responseCls |