simple-ocpp-cs/app/schemas/connector.py
2024-04-13 22:43:03 +02:00

19 lines
388 B
Python

import enum
from uuid import UUID
from pydantic import BaseModel
class ConnectorStatus(enum.Enum):
AVAILABLE = "Available"
OCCUPIED = "Occupied"
RESERVED = "Reserved"
UNAVAILABLE = "Unavailable"
FAULTED = "Faulted"
class Connector(BaseModel):
id: UUID
evse: int
index: int
status: ConnectorStatus
class Config:
from_attributes = True