panos_util/objects.py
def blocks_medium(self) -> bool:
        """Returns True if a block action would be taken on medium events."""
        if self.severity is not None and "medium" in self.severity:
            if self.action is not None and self.action in [
                "block-ip",
                "drop",
                "reset-both",
                "reset-client",
                "reset-server",
            ]:
                return True

        return False
Returns True if a block action would be taken on medium events.
Returns True if a block action would be taken on medium events.
Returns True if a block action would be taken on medium events .
def blocks_medium(self) -> bool:
        if self.severity is not None and "medium" in self.severity:
            if self.action is not None and self.action in [
                "block-ip",
                "drop",
                "reset-both",
                "reset-client",
                "reset-server",
            ]:
                return True
        return False
def blocks_medium ( self ) -> bool : if self . severity is not None and "medium" in self . severity : if self . action is not None and self . action in [ "block-ip" , "drop" , "reset-both" , "reset-client" , "reset-server" , ] : return True return False
Returns True if a block action would be taken on medium events.
Returns True if a block action would be taken on medium events .
"""Returns True if a block action would be taken on medium events."""
self