PyPANRestV2 2.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
pypanrestv2/Device.py ADDED
@@ -0,0 +1,21 @@
1
+ from typing import Optional, Dict, Any, Tuple, Union, List, Protocol, Set, TypeVar
2
+ from . import ApplicationHelper
3
+ from . import Exceptions
4
+ import pycountry
5
+ import ipaddress
6
+ import builtins
7
+ import time
8
+ import re
9
+ from datetime import datetime
10
+ from icecream import ic
11
+ import sys
12
+ import xmltodict
13
+ import dns.resolver
14
+ import requests
15
+ from requests.packages.urllib3.exceptions import InsecureRequestWarning
16
+ import logging
17
+ import xml.etree.ElementTree as ET
18
+ from Base import Base, PAN, Panorama, Firewall
19
+ import Objects
20
+ logger = logging.getLogger(__name__)
21
+ requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
@@ -0,0 +1,11 @@
1
+ class NetworkRequestError(Exception):
2
+ """Exception for errors during network requests."""
3
+ def __init__(self, message, errors):
4
+ super().__init__(message)
5
+ self.errors = errors
6
+
7
+ class APIResponseError(Exception):
8
+ """Exception for non-successful API responses."""
9
+ def __init__(self, message, response):
10
+ super().__init__(message)
11
+ self.response = response