mistralclient.api.base module

exception mistralclient.api.base.APIException(error_code=None, error_message=None)

Bases: Exception

class mistralclient.api.base.Resource(manager, data)

Bases: object

defaults = {}
resource_name = 'Something'
to_dict()
class mistralclient.api.base.ResourceManager(http_client)

Bases: object

find(**kwargs)
list()

This is an abstract method

This is added here so that the find method gains some clarity. It must be implemented by the child class in order to find to work

resource_class = None
mistralclient.api.base.extract_json(response, response_key)
mistralclient.api.base.get_json(response)

Gets JSON representation of response.

This method provided backward compatibility with old versions of requests library.