simple-ocpp-cs/app/schemas/connector.py

19 lines
388 B
Python
Raw Permalink Normal View History

2024-03-28 21:23:25 +01:00
import enum
2024-04-13 22:43:03 +02:00
from uuid import UUID
2024-03-28 21:23:25 +01:00
from pydantic import BaseModel
class ConnectorStatus(enum.Enum):
AVAILABLE = "Available"
OCCUPIED = "Occupied"
RESERVED = "Reserved"
UNAVAILABLE = "Unavailable"
FAULTED = "Faulted"
class Connector(BaseModel):
2024-04-13 22:43:03 +02:00
id: UUID
2024-03-28 21:23:25 +01:00
evse: int
index: int
status: ConnectorStatus
class Config:
from_attributes = True