BackOfficeResponse

class q2_sdk.hq.models.backoffice_response.BackOfficeResponse(raw_response, logger=None)[source]

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

Parameters:

response – Body of HQ response

clean_result_node()[source]

Cleans up the grossness of the BackOffice response in a few ways:

  1. Removes namespaces

  2. Moves children of diffgrams to the diffgram’s parent

  3. Removes the diffgram node

  4. Removes schema nodes

  5. Objects from BackOffice typically have a parent and child node named the same thing. Only store the child

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