def get_api_url(self):
if not self.warehouse:<EOL><INDENT>raise NotImplementedError("<STR_LIT>")<EOL><DEDENT>if self.warehouse_api_url:<EOL><INDENT>return self.warehouse_api_url<EOL><DEDENT>return self.url[: -len("<STR_LIT>")] + "<STR_LIT>"<EOL>
Construct URL to Warehouse instance.