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

import typing

import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
from .monday_group import MondayGroup


class MondayBoard(UniversalBaseModel):
    """
    Monday.com Board object - DELETE SUPPORTED
    """

    name: str = pydantic.Field()
    """
    Board name
    """

    description: typing.Optional[str] = pydantic.Field(default=None)
    """
    Board description
    """

    board_kind: typing.Optional[str] = pydantic.Field(default=None)
    """
    Board kind (public, private, share)
    """

    workspace_id: typing.Optional[str] = pydantic.Field(default=None)
    """
    Workspace ID this board belongs to (for initialization)
    """

    groups: typing.Optional[typing.List[MondayGroup]] = pydantic.Field(default=None)
    """
    Groups in this board
    """

    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
