"""``misc.*`` — auto-generated ISPConfig remote-API wrappers. This module is produced by ``tools/gen_methods.py`` from the ``tools/method_inventory.json`` catalog. Hand-edits go below the ``---- HAND-EDIT ONLY BELOW ----`` marker — they survive regeneration. """ from __future__ import annotations from typing import TYPE_CHECKING, Any if TYPE_CHECKING: from .client import ISPConfigClient class MiscModule: """Auto-generated module: Misc. All methods below the ``AUTO-GENERATED START`` marker are produced by ``tools/gen_methods.py``. Do not hand-edit that block — changes will be overwritten on the next regeneration. Add helpers and overrides below the ``HAND-EDIT ONLY BELOW`` marker instead. """ def __init__(self, client: ISPConfigClient) -> None: self._c = client # ---- AUTO-GENERATED START (do not hand-edit above this line) ---- # Regenerate with: python3 tools/gen_methods.py def databasequota_get_by_user(self, client_id: Any) -> Any: """ Auto-generated wrapper for ``databasequota_get_by_user``. Source: ``sites.inc.php`` line 1012. PHP signature: ``databasequota_get_by_user($session_id, $client_id)``. AUTO-GENERATED - param shapes may need verification against your ISPConfig version. File issues at Sulkta-Coop/ispconfig-py. """ return self._c._call("databasequota_get_by_user", ("client_id", client_id)) def ftptrafficquota_data(self, client_id: Any, lastdays: Any = 0) -> Any: """ Auto-generated wrapper for ``ftptrafficquota_data``. Source: ``sites.inc.php`` line 997. PHP signature: ``ftptrafficquota_data($session_id, $client_id, $lastdays = 0)``. AUTO-GENERATED - param shapes may need verification against your ISPConfig version. File issues at Sulkta-Coop/ispconfig-py. """ return self._c._call("ftptrafficquota_data", ("client_id", client_id), ("lastdays", lastdays)) def quota_get_by_user(self, client_id: Any) -> Any: """ Auto-generated wrapper for ``quota_get_by_user``. Source: ``sites.inc.php`` line 970. PHP signature: ``quota_get_by_user($session_id, $client_id)``. AUTO-GENERATED - param shapes may need verification against your ISPConfig version. File issues at Sulkta-Coop/ispconfig-py. """ return self._c._call("quota_get_by_user", ("client_id", client_id)) def trafficquota_get_by_user(self, client_id: Any, lastdays: Any = 0) -> Any: """ Auto-generated wrapper for ``trafficquota_get_by_user``. Source: ``sites.inc.php`` line 982. PHP signature: ``trafficquota_get_by_user($session_id, $client_id, $lastdays = 0)``. AUTO-GENERATED - param shapes may need verification against your ISPConfig version. File issues at Sulkta-Coop/ispconfig-py. """ return self._c._call("trafficquota_get_by_user", ("client_id", client_id), ("lastdays", lastdays)) # ---- AUTO-GENERATED END ---- # ---- HAND-EDIT ONLY BELOW ----