def METHOD_NAME(self, url, method, allowed, query_filter=None, post_filter=None):
    self.policies.append(
        {
            "url": url,
            "method": method.upper(),
            "allow": allowed,
            "query_filter": query_filter or {},
            "post_filter": post_filter or {},
        }
    )