l.d.v.VCloudConnection(ConnectionUserAndKey) : class documentation

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

Known subclasses: libcloud.drivers.vcloud.HostingComConnection, libcloud.drivers.vcloud.TerremarkConnection

Connection class for the vCloud driver
Method request Request a given `action`.
Method check_org Undocumented
Method add_default_headers Adds default headers (such as Authorization, X-Foo-Bar) to the passed `headers`
Method _get_auth_headers Some providers need different headers than others
Method _get_auth_token Undocumented

Inherited from ConnectionUserAndKey:

Method __init__ Initialize `user_id` and `key`; set `secure` to an int based on passed value.

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
def request(self, *args, **kwargs): (source)
Request a given `action`.

Basically a wrapper around the connection object's `request` that does some helpful pre-processing.

ParametersactionA path (type: str)
paramsOptional mapping of additional parameters to send. If None, leave as an empty dict. (type: dict)
dataA body of data to send with the request. (type: unicode)
headersExtra headers to add to the request None, leave as an empty dict. (type: dict)
methodAn HTTP method such as "GET" or "POST". (type: str)
ReturnsAn instance of type responseCls
def check_org(self): (source)
Undocumented
def _get_auth_headers(self): (source)
Some providers need different headers than others
def _get_auth_token(self): (source)
Undocumented
def add_default_headers(self, headers): (source)
Adds default headers (such as Authorization, X-Foo-Bar) to the passed `headers`

Should return a dictionary.

API Documentation for libcloud, generated by pydoctor at 2012-07-15 18:44:49.