# generated by datamodel-codegen:
#   filename:  simple-star-wars.graphql
#   timestamp: 2019-07-26T00:00:00+00:00

from __future__ import annotations

from typing import Literal

from pydantic import BaseModel, Field
from typing_extensions import TypeAliasType

FooBoolean = TypeAliasType("FooBoolean", bool)
"""
The `Boolean` scalar type represents `true` or `false`.
"""


FooID = TypeAliasType("FooID", str)
"""
The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.
"""


FooInt = TypeAliasType("FooInt", int)
"""
The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
"""


FooString = TypeAliasType("FooString", str)
"""
The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
"""


class FooFilm(BaseModel):
    characters: list[FooPerson]
    characters_ids: list[FooID]
    director: FooString
    episode_id: FooInt
    id: FooID
    opening_crawl: FooString
    planets: list[FooPlanet]
    planets_ids: list[FooID]
    producer: FooString | None = None
    release_date: FooString
    species: list[FooSpecies]
    species_ids: list[FooID]
    starships: list[FooStarship]
    starships_ids: list[FooID]
    title: FooString
    vehicles: list[FooVehicle]
    vehicles_ids: list[FooID]
    typename__: Literal['Film'] | None = Field('Film', alias='__typename')


class FooPerson(BaseModel):
    birth_year: FooString | None = None
    eye_color: FooString | None = None
    films: list[FooFilm]
    films_ids: list[FooID]
    gender: FooString | None = None
    hair_color: FooString | None = None
    height: FooInt | None = None
    homeworld: FooPlanet | None = None
    homeworld_id: FooID | None = None
    id: FooID
    mass: FooInt | None = None
    name: FooString
    skin_color: FooString | None = None
    species: list[FooSpecies]
    species_ids: list[FooID]
    starships: list[FooStarship]
    starships_ids: list[FooID]
    vehicles: list[FooVehicle]
    vehicles_ids: list[FooID]
    typename__: Literal['Person'] | None = Field('Person', alias='__typename')


class FooPlanet(BaseModel):
    climate: FooString | None = None
    diameter: FooString | None = None
    films: list[FooFilm]
    films_ids: list[FooID]
    gravity: FooString | None = None
    id: FooID
    name: FooString
    orbital_period: FooString | None = None
    population: FooString | None = None
    residents: list[FooPerson]
    residents_ids: list[FooID]
    rotation_period: FooString | None = None
    surface_water: FooString | None = None
    terrain: FooString | None = None
    typename__: Literal['Planet'] | None = Field('Planet', alias='__typename')


class FooSpecies(BaseModel):
    average_height: FooString | None = None
    average_lifespan: FooString | None = None
    classification: FooString | None = None
    designation: FooString | None = None
    eye_colors: FooString | None = None
    films: list[FooFilm]
    films_ids: list[FooID]
    hair_colors: FooString | None = None
    id: FooID
    language: FooString | None = None
    name: FooString
    people: list[FooPerson]
    people_ids: list[FooID]
    skin_colors: FooString | None = None
    typename__: Literal['Species'] | None = Field('Species', alias='__typename')


class FooStarship(BaseModel):
    MGLT: FooString | None = None
    cargo_capacity: FooString | None = None
    consumables: FooString | None = None
    cost_in_credits: FooString | None = None
    crew: FooString | None = None
    films: list[FooFilm]
    films_ids: list[FooID]
    hyperdrive_rating: FooString | None = None
    id: FooID
    length: FooString | None = None
    manufacturer: FooString | None = None
    max_atmosphering_speed: FooString | None = None
    model: FooString | None = None
    name: FooString
    passengers: FooString | None = None
    pilots: list[FooPerson]
    pilots_ids: list[FooID]
    starship_class: FooString | None = None
    typename__: Literal['Starship'] | None = Field('Starship', alias='__typename')


class FooVehicle(BaseModel):
    cargo_capacity: FooString | None = None
    consumables: FooString | None = None
    cost_in_credits: FooString | None = None
    crew: FooString | None = None
    films: list[FooFilm]
    films_ids: list[FooID]
    id: FooID
    length: FooString | None = None
    manufacturer: FooString | None = None
    max_atmosphering_speed: FooString | None = None
    model: FooString | None = None
    name: FooString
    passengers: FooString | None = None
    pilots: list[FooPerson]
    pilots_ids: list[FooID]
    vehicle_class: FooString | None = None
    typename__: Literal['Vehicle'] | None = Field('Vehicle', alias='__typename')


FooFilm.model_rebuild()
FooPerson.model_rebuild()
