refact: use only server

This commit is contained in:
2025-08-27 13:28:50 +02:00
parent cf8a37f183
commit 2934224787
39 changed files with 6843 additions and 1223 deletions

View File

@@ -71,5 +71,29 @@ class ActionLog(ActionLogCreate):
id: int
timestamp: datetime
class Config:
from_attributes = True
class ProxmoxHostBase(BaseModel):
name: str
description: Optional[str] = None
ip_address: str
mac_address: str
proxmox_host: str
proxmox_username: str
proxmox_password: str
proxmox_port: int = 8006
verify_ssl: bool = True
shutdown_endpoint: Optional[str] = None
class ProxmoxHostCreate(ProxmoxHostBase):
pass
class ProxmoxHost(ProxmoxHostBase):
id: int
is_online: bool
last_ping: Optional[datetime] = None
created_at: datetime
class Config:
from_attributes = True