import re


def rule(event):
    if any(
        [
            re.match(
                r"^io.k8s.api.batch.v.*.Job$",
                event.deep_get("gcp", "audit", "method_name", default=""),
            ),
            re.match(
                r"^io.k8s.api.batch.v.*.CronJob$",
                event.deep_get("gcp", "audit", "method_name", default=""),
            ),
        ]
    ):
        return True
    return False
