panos_util/objects.py
def create_from_element(e: Element) -> VulnerabilityProfile:
        """Create VulnerabilityProfile from XML element."""
        name = e.get("name")

        rules = []
        for rule in e.findall(".//rules/entry"):
            r = VulnerabilityProfileRule.create_from_element(rule)
            rules.append(r)

        return VulnerabilityProfile(name, rules)
Create VulnerabilityProfile from XML element.
Create VulnerabilityProfile from XML element.
Create VulnerabilityProfile from XML element .
def create_from_element(e: Element) -> VulnerabilityProfile:
        name = e.get("name")
        rules = []
        for rule in e.findall(".//rules/entry"):
            r = VulnerabilityProfileRule.create_from_element(rule)
            rules.append(r)
        return VulnerabilityProfile(name, rules)
def create_from_element ( e : Element ) -> VulnerabilityProfile : name = e . get ( "name" ) rules = [ ] for rule in e . findall ( ".//rules/entry" ) : r = VulnerabilityProfileRule . create_from_element ( rule ) rules . append ( r ) return VulnerabilityProfile ( name , rules )
Create VulnerabilityProfile from XML element.
Create VulnerabilityProfile from XML element .
"""Create VulnerabilityProfile from XML element."""
e
Element