#
#
from __future__ import annotations
from datetime import datetime
from typing import List, Optional
from pydantic import BaseModel as BaseModelPydantic
from airflow.configuration import conf as airflow_conf
class DagOwnerAttributesPydantic(BaseModelPydantic):
    """Serializable representation of the DagOwnerAttributes ORM SqlAlchemyModel used by internal API."""
    owner: str
    link: str
    class Config:
        """Make sure it deals automatically with SQLAlchemy ORM classes."""
        from_attributes = True
        orm_mode = True  
        arbitrary_types_allowed = True
class DagTagPydantic(BaseModelPydantic):
    """Serializable representation of the DagTag ORM SqlAlchemyModel used by internal API."""
    name: str
    dag_id: str
    class Config:
        """Make sure it deals automatically with SQLAlchemy ORM classes."""
        from_attributes = True
        orm_mode = True  
        arbitrary_types_allowed = True
class DagModelPydantic(BaseModelPydantic):