import re


def rule(event):
    if any(
        [
            re.match(
                r"^v.*.Compute.Firewalls.Delete$",
                event.deep_get("gcp", "audit", "method_name", default=""),
            ),
            re.match(
                r"^v.*.Compute.Firewalls.Patch$",
                event.deep_get("gcp", "audit", "method_name", default=""),
            ),
            re.match(
                r"^v.*.Compute.Firewalls.Update$",
                event.deep_get("gcp", "audit", "method_name", default=""),
            ),
            re.match(
                r"^v.*.Compute.Firewalls.Insert$",
                event.deep_get("gcp", "audit", "method_name", default=""),
            ),
        ]
    ):
        return True
    return False
