You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
622 B
32 lines
622 B
from __future__ import annotations
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class MetadataExportResponse(BaseModel):
|
|
exported_at: str
|
|
data: dict
|
|
|
|
|
|
class MetadataImportRequest(BaseModel):
|
|
data: dict
|
|
confirm_replace: bool = False
|
|
validation_token: str | None = None
|
|
|
|
|
|
class MetadataImportResponse(BaseModel):
|
|
ok: bool = True
|
|
imported_tables: list[str]
|
|
scheduled_jobs: list[str] = []
|
|
|
|
|
|
class MetadataValidationResponse(BaseModel):
|
|
ok: bool
|
|
issues: list[str]
|
|
|
|
|
|
class MetadataRestorePlanResponse(BaseModel):
|
|
ok: bool
|
|
issues: list[str]
|
|
validation_token: str | None
|
|
summary: dict
|
|
|