l.d.d.DummyConnection(ConnectionKey) : class documentation

Part of libcloud.drivers.dummy View Source View In Hierarchy

Dummy connection class
Method connect Establish a connection with the API server.

Inherited from ConnectionKey:

Method __init__ Initialize `user_id` and `key`; set `secure` to an int based on passed value.
Method user_agent_append Append a token to a user agent string.
Method request Request a given `action`.
Method add_default_params Adds default parameters (such as API key, version, etc.) to the passed `params`
Method add_default_headers Adds default headers (such as Authorization, X-Foo-Bar) to the passed `headers`
Method encode_data Encode body data.
Method _user_agent Undocumented
def connect(self, host=None, port=None): (source)
Establish a connection with the API server.
ParametershostOptional host to override our default (type: str)
portOptional port to override our default (type: int)
ReturnsA connection
API Documentation for libcloud, generated by pydoctor at 2012-07-15 18:42:22.