15 lines
254 B
Python
15 lines
254 B
Python
from enum import Enum
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class EventType(str, Enum):
|
|
CREATED = "created"
|
|
UPDATED = "updated"
|
|
DELETED = "deleted"
|
|
|
|
|
|
class NextcloudEvent(BaseModel):
|
|
event_type: EventType
|
|
file_path: str
|
|
file_name: str
|