libcloud.common.nfsn module
- class libcloud.common.nfsn.NFSNConnection(user_id, key, secure=True, host=None, port=None, url=None, timeout=None, proxy_url=None, backoff=None, retry_delay=None)[source]
Bases:
ConnectionUserAndKey
Initialize user_id and key; set secure to an
int
based on passed value.- allow_insecure = False
- encode_data(data)[source]
NFSN expects the body to be regular key-value pairs that are not JSON-encoded.
- request(action, params=None, data='', headers=None, method='GET')[source]
Add the X-NFSN-Authentication header to an HTTP request.
- responseCls
alias of
NFSNResponse
- exception libcloud.common.nfsn.NFSNException(value, http_code, code, driver=None)[source]
Bases:
ProviderError
- class libcloud.common.nfsn.NFSNResponse(response, connection)[source]
Bases:
JsonResponse
- Parameters:
response (
httplib.HTTPResponse
) – HTTP response object. (optional)connection (
Connection
) – Parent connection object.