# This file was auto-generated by Fern from our API Definition.

from ..core.pydantic_utilities import UniversalBaseModel
from .report_block import ReportBlock
import typing
from .report_query import ReportQuery
import pydantic
from .report_block_dependency import ReportBlockDependency
from ..core.pydantic_utilities import IS_PYDANTIC_V2


class ReportPlanBlock(UniversalBaseModel):
    block: ReportBlock
    queries: typing.Optional[typing.List[ReportQuery]] = pydantic.Field(default=None)
    """
    The queries for the block
    """

    dependency: ReportBlockDependency = pydantic.Field()
    """
    The dependency for the block
    """

    if IS_PYDANTIC_V2:
        model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True)  # type: ignore # Pydantic v2
    else:

        class Config:
            frozen = True
            smart_union = True
            extra = pydantic.Extra.allow
