The quantumclient.client Module

class quantumclient.client.HTTPClient(username=None, tenant_name=None, password=None, auth_url=None, token=None, region_name=None, timeout=None, endpoint_url=None, insecure=False, endpoint_type='publicURL', auth_strategy='keystone', **kwargs)

Bases: httplib2.Http

Handles the REST calls and responses, include authn

USER_AGENT = 'python-quantumclient'
authenticate()
do_request(url, method, **kwargs)
get_status_code(response)

Returns the integer status code from the response, which can be either a Webob.Response (used in testing) or httplib.Response

class quantumclient.client.ServiceCatalog(resource_dict)

Bases: object

Helper methods for dealing with a Keystone Service Catalog.

get_token()

Fetch token details fron service catalog

url_for(attr=None, filter_value=None, service_type='network', endpoint_type='publicURL')

Fetch the URL from the Quantum service for a particular endpoint type. If none given, return publicURL.

This Page