diff options
Diffstat (limited to 'wrappers/python/eduvpn_common/server.py')
| -rw-r--r-- | wrappers/python/eduvpn_common/server.py | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/wrappers/python/eduvpn_common/server.py b/wrappers/python/eduvpn_common/server.py index 8dac3c1..eafb334 100644 --- a/wrappers/python/eduvpn_common/server.py +++ b/wrappers/python/eduvpn_common/server.py @@ -2,8 +2,7 @@ from ctypes import CDLL, POINTER, c_void_p, cast from datetime import datetime from typing import List, Optional, Type -from eduvpn_common.types import (cServer, cServerLocations, cServerProfiles, - cServers) +from eduvpn_common.types import cServer, cServerLocations, cServerProfiles, cServers class Profile: @@ -29,7 +28,13 @@ class Profiles: class Server: - def __init__(self, url: str, display_name: str, profiles: Optional[Profiles] = None, expire_time: int = 0): + def __init__( + self, + url: str, + display_name: str, + profiles: Optional[Profiles] = None, + expire_time: int = 0, + ): self.url = url self.display_name = display_name self.profiles = profiles @@ -44,7 +49,14 @@ class Server: class InstituteServer(Server): - def __init__(self, url: str, display_name: str, support_contact: List[str], profiles: Profiles, expire_time: int): + def __init__( + self, + url: str, + display_name: str, + support_contact: List[str], + profiles: Profiles, + expire_time: int, + ): super().__init__(url, display_name, profiles, expire_time) self.support_contact = support_contact @@ -52,6 +64,7 @@ class InstituteServer(Server): def category(self) -> str: return "Institute Access Server" + class SecureInternetServer(Server): def __init__( self, |
