mirror of
https://git.isptech.ru/ISPsystem/isp-maintenance.git
synced 2025-02-01 10:50:52 +01:00
52 lines
1.2 KiB
Python
52 lines
1.2 KiB
Python
from mgrctl.api.base import BaseAPI, BaseAuthAPI, BaseDnsProxyAPI, BaseIpAPI
|
|
|
|
|
|
class AuthAPI(BaseAuthAPI):
|
|
pass
|
|
|
|
|
|
class BackupAPI(BaseAPI):
|
|
def __init__(self, api_url=None, verify_ssl=True):
|
|
super().__init__(api_url, verify_ssl)
|
|
self.API_VERSION = 'v4'
|
|
self.API_DEFINITION = 'backup'
|
|
|
|
|
|
class DnsProxyAPI(BaseDnsProxyAPI):
|
|
pass
|
|
|
|
|
|
class EserviceAPI(BaseAPI):
|
|
def __init__(self, api_url=None, verify_ssl=True):
|
|
super().__init__(api_url, verify_ssl)
|
|
self.API_DEFINITION = 'eservice'
|
|
|
|
|
|
class IsoAPI(BaseAPI):
|
|
def __init__(self, api_url=None, verify_ssl=True):
|
|
super().__init__(api_url, verify_ssl)
|
|
self.API_DEFINITION = 'iso'
|
|
|
|
|
|
class IpmiAPI(BaseAPI):
|
|
def __init__(self, api_url=None, verify_ssl=True):
|
|
super().__init__(api_url, verify_ssl)
|
|
self.API_DEFINITION = 'ipmiproxy'
|
|
|
|
|
|
class IpAPI(BaseIpAPI):
|
|
pass
|
|
|
|
|
|
class ReportAPI(BaseAPI):
|
|
def __init__(self, api_url=None, verify_ssl=True):
|
|
super().__init__(api_url, verify_ssl)
|
|
self.API_VERSION = 'v4'
|
|
self.API_DEFINITION = 'report'
|
|
|
|
|
|
class UpdaterAPI(BaseAPI):
|
|
def __init__(self, api_url=None, verify_ssl=True):
|
|
super().__init__(api_url, verify_ssl)
|
|
self.API_DEFINITION = 'updater'
|