tricircleclient package

Submodules

tricircleclient.client module

tricircleclient.client.Client(version, *args, **kwargs)
class tricircleclient.client.SessionClient(session, service_type=None, service_name=None, interface=None, region_name=None, endpoint_override=None, version=None, auth=None, user_agent=None, connect_retries=None, logger=None, allow=None, additional_headers=None, client_name=None, client_version=None, allow_version_hack=None, global_request_id=None, min_version=None, max_version=None, default_microversion=None, status_code_retries=None, retriable_status_codes=None, raise_exc=None, rate_limit=None, concurrency=None, connect_retry_delay=None, status_code_retry_delay=None)

Bases: keystoneauth1.adapter.Adapter

request(url, method, **kwargs)

tricircleclient.constants module

tricircleclient.exceptions module

exception tricircleclient.exceptions.BadRequest(code=None, message=None, request_id=None, url=None, method=None)

Bases: tricircleclient.exceptions.ClientException

HTTP 400 - Bad request: you sent some malformed data.

http_status = 400
message = 'Bad request'
exception tricircleclient.exceptions.ClientException(code=None, message=None, request_id=None, url=None, method=None)

Bases: Exception

The base exception class for all exceptions this library raises.

message = 'Unknown Error'
exception tricircleclient.exceptions.Conflict(code=None, message=None, request_id=None, url=None, method=None)

Bases: tricircleclient.exceptions.ClientException

HTTP 409 - Conflict

http_status = 409
message = 'Conflict'
class tricircleclient.exceptions.MutipleMeaningException

Bases: object

An mixin for exception that can be enhanced by reading the details

exception tricircleclient.exceptions.NotFound(code=None, message=None, request_id=None, url=None, method=None)

Bases: tricircleclient.exceptions.ClientException

HTTP 404 - Not found

http_status = 404
message = 'Not found'
exception tricircleclient.exceptions.PodNotFound(code=None, message=None, request_id=None, url=None, method=None)

Bases: tricircleclient.exceptions.NotFound, tricircleclient.exceptions.MutipleMeaningException

match = re.compile('Pod .* does not exist')
message = 'Pod not found'
exception tricircleclient.exceptions.PodRegionDuplicated(code=None, message=None, request_id=None, url=None, method=None)

Bases: tricircleclient.exceptions.Conflict, tricircleclient.exceptions.MutipleMeaningException

match = re.compile('Pod region name duplicated with the top region name')
message = 'Pod region name duplicated with the top region name'
exception tricircleclient.exceptions.RecordAlreadyExists(code=None, message=None, request_id=None, url=None, method=None)

Bases: tricircleclient.exceptions.Conflict, tricircleclient.exceptions.MutipleMeaningException

match = re.compile('Record already exists')
message = 'Record already exists'
exception tricircleclient.exceptions.RegionRequiredForPod(code=None, message=None, request_id=None, url=None, method=None)

Bases: tricircleclient.exceptions.UnprocessableEntity, tricircleclient.exceptions.MutipleMeaningException

match = re.compile('Valid region_name is required for pod')
message = 'Valid region_name is required for pod'
exception tricircleclient.exceptions.RegionRequiredForTopRegion(code=None, message=None, request_id=None, url=None, method=None)

Bases: tricircleclient.exceptions.UnprocessableEntity, tricircleclient.exceptions.MutipleMeaningException

match = re.compile('Valid region_name is required for top region')
message = 'Valid region_name is required for top region'
exception tricircleclient.exceptions.TopRegionAlreadyExists(code=None, message=None, request_id=None, url=None, method=None)

Bases: tricircleclient.exceptions.Conflict, tricircleclient.exceptions.MutipleMeaningException

match = re.compile('Top region already exists')
message = 'Top region already exists'
exception tricircleclient.exceptions.Unauthorized(code=None, message=None, request_id=None, url=None, method=None)

Bases: tricircleclient.exceptions.ClientException

HTTP 401 - Unauthorized: bad credentials.

http_status = 401
message = 'Unauthorized'
exception tricircleclient.exceptions.UnprocessableEntity(code=None, message=None, request_id=None, url=None, method=None)

Bases: tricircleclient.exceptions.ClientException

HTTP 422 - Unprocessable Entity

http_status = 422
message = 'Unprocessable Entity'
tricircleclient.exceptions.from_response(response, method=None)

Return an instance of one of the ClientException on an requests response.

Usage:

resp, body = requests.request(...)
if resp.status_code != 200:
    raise from_response(resp)

tricircleclient.osc module

OpenStackClient plugin for Multiregion Networking service.

tricircleclient.osc.build_option_parser(parser)

Hook to add global options.

tricircleclient.osc.make_client(instance)

tricircleclient.utils module

tricircleclient.utils.list2cols(cols, objs, headers=None)
tricircleclient.utils.prepare_column_headers(columns, remap=None)

tricircleclient.version module

Module contents