# Generated by ariadne-codegen
# Source: operations/

from typing import Optional

from pydantic import Field

from .base_model import BaseModel


class DedicatedServerRegions(BaseModel):
    dedicated_server_regions: list["DedicatedServerRegionsDedicatedServerRegions"] = (
        Field(alias="dedicatedServerRegions")
    )


class DedicatedServerRegionsDedicatedServerRegions(BaseModel):
    id: str
    code: str
    name: str
    description: str
    provider_info: Optional[
        "DedicatedServerRegionsDedicatedServerRegionsProviderInfo"
    ] = Field(alias="providerInfo")
    available: bool
    coordinates: list[float]
    continent: str
    country: str
    city: str


class DedicatedServerRegionsDedicatedServerRegionsProviderInfo(BaseModel):
    code: str
    name: str
    icon: str
    homepage: str
    console: str
    can_refund: bool = Field(alias="canRefund")


DedicatedServerRegions.model_rebuild()
DedicatedServerRegionsDedicatedServerRegions.model_rebuild()
