# Generated by ariadne-codegen
# Source: srht/services/hub/

from typing import Literal, Optional

from pydantic import Field

from .base_model import BaseModel
from .fragments import ProjectResources


class GetResourceProjects(BaseModel):
    resource: Optional["GetResourceProjectsResource"]


class GetResourceProjectsResource(BaseModel):
    typename__: Literal["MailingList", "ProjectResource", "SourceRepo", "Tracker"] = (
        Field(alias="__typename")
    )
    name: str
    projects: "GetResourceProjectsResourceProjects"


class GetResourceProjectsResourceProjects(BaseModel):
    results: list["GetResourceProjectsResourceProjectsResults"]


class GetResourceProjectsResourceProjectsResults(ProjectResources):
    pass


GetResourceProjects.model_rebuild()
GetResourceProjectsResource.model_rebuild()
GetResourceProjectsResourceProjects.model_rebuild()
