HQ Response

class q2_sdk.hq.models.hq_response.HqResponse(response, logger=None)[source]

Wraps a response from HQ up as a handy object to work with

Parameters:

response (Response) – Body of HQ response

static get_hq_return_error(inner_response)[source]

Parses HQ response and returns an error message if one exists

Parameters:

inner_response (Element) – Result Node from HQ response

parse_sproc_return(specific_table='Table', representation_row_class=None)[source]

If the response from the db is sufficiently large, it is split up among multiple Table elements. As such, we return a list of these Table elements

Return type:

Union[List[TableRow], List[ObjectifiedElement]]

json()[source]

Convert the result to a dictionary

Return type:

dict