def _post_query_access_list(self, opts) -> bool:
    if ((opts.curl_access != 'restricted') and ((opts.allowed_urls is not None) or (opts.disallowed_urls is not None))):
        _exit_if_errors(['Can only provide --allowed-urls or --disallowed-urls with --curl-access restricted'])
    if opts.curl_access:
        allowed = (opts.allowed_urls.strip().split(',') if (opts.allowed_urls is not None) else None)
        disallowed = (opts.disallowed_urls.strip().split(',') if (opts.disallowed_urls is not None) else None)
        (_, err) = self.rest.post_query_curl_access_settings((opts.curl_access == 'restricted'), allowed, disallowed)
        _exit_if_errors(err)
        return True
    return False
def _post_query_access_list(self, opts) -> bool:
    if ((opts.curl_access != 'restricted') and ((opts.allowed_urls is not None) or (opts.disallowed_urls is not None))):
        _exit_if_errors(['Can only provide --allowed-urls or --disallowed-urls with --curl-access restricted'])
    if opts.curl_access:
        allowed = (opts.allowed_urls.strip().split(',') if (opts.allowed_urls is not None) else None)
        disallowed = (opts.disallowed_urls.strip().split(',') if (opts.disallowed_urls is not None) else None)
        (_, err) = self.rest.post_query_curl_access_settings((opts.curl_access == 'restricted'), allowed, disallowed)
        _exit_if_errors(err)
        return True
    return False