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

        virus = strip_empty(e.findtext(".//virus/member"))
        spyware = strip_empty(e.findtext(".//spyware/member"))
        vulnerability = strip_empty(e.findtext(".//vulnerability/member"))
        url_filtering = strip_empty(e.findtext(".//url-filtering/member"))
        wildfire_analysis = strip_empty(e.findtext(".//wildfire-analysis/member"))

        return SecurityProfileGroup(
            name, virus, spyware, vulnerability, url_filtering, wildfire_analysis
        )
Create SecurityProfileGroup from XML element.
Create SecurityProfileGroup from XML element.
Create SecurityProfileGroup from XML element .
def create_from_element(e: Element) -> SecurityProfileGroup:
        name = e.get("name")
        virus = strip_empty(e.findtext(".//virus/member"))
        spyware = strip_empty(e.findtext(".//spyware/member"))
        vulnerability = strip_empty(e.findtext(".//vulnerability/member"))
        url_filtering = strip_empty(e.findtext(".//url-filtering/member"))
        wildfire_analysis = strip_empty(e.findtext(".//wildfire-analysis/member"))
        return SecurityProfileGroup(
            name, virus, spyware, vulnerability, url_filtering, wildfire_analysis
        )
def create_from_element ( e : Element ) -> SecurityProfileGroup : name = e . get ( "name" ) virus = strip_empty ( e . findtext ( ".//virus/member" ) ) spyware = strip_empty ( e . findtext ( ".//spyware/member" ) ) vulnerability = strip_empty ( e . findtext ( ".//vulnerability/member" ) ) url_filtering = strip_empty ( e . findtext ( ".//url-filtering/member" ) ) wildfire_analysis = strip_empty ( e . findtext ( ".//wildfire-analysis/member" ) ) return SecurityProfileGroup ( name , virus , spyware , vulnerability , url_filtering , wildfire_analysis )
Create SecurityProfileGroup from XML element.
Create SecurityProfileGroup from XML element .
"""Create SecurityProfileGroup from XML element."""
e
Element