refact: use only server
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user