def response_handler(resp): if not resp.is_success: raise AQLCacheConfigureError(resp, request) return { 'mode': resp.body['mode'], 'limit': resp.body['maxResults'] }
def response_handler(resp): if not resp.is_success: raise AQLCacheConfigureError(resp, request) return format_aql_cache(resp.body)
def handler(res): if res.status_code not in HTTP_OK: raise AQLCacheConfigureError(res) return {'mode': res.body['mode'], 'limit': res.body['maxResults']}
def response_handler(resp): if not resp.is_success: raise AQLCacheConfigureError(resp, request) return self._format_cache_properties(resp.body)