# generated by datamodel-codegen:
#   filename:  api.yaml
#   timestamp: 2019-07-26T00:00:00+00:00

from __future__ import annotations

from dataclasses import dataclass
from typing import TypeAlias

from custom_base import Base


@dataclass
class Pet(Base):
    id: int
    name: str
    tag: str | None = None


Pets: TypeAlias = list[Pet]


@dataclass
class User(Base):
    id: int
    name: str
    tag: str | None = None


Users: TypeAlias = list[User]


Id: TypeAlias = str


Rules: TypeAlias = list[str]


@dataclass
class Error(Base):
    code: int
    message: str


@dataclass
class Api(Base):
    apiKey: str | None = None
    apiVersionNumber: str | None = None
    apiUrl: str | None = None
    apiDocumentationUrl: str | None = None


Apis: TypeAlias = list[Api]


@dataclass
class Event(Base):
    name: str | None = None


@dataclass
class Result(Base):
    event: Event | None = None
