# generated by datamodel-codegen:
#   filename:  api_multiline_docstrings.yaml
#   timestamp: 2022-11-11T00:00:00+00:00

from __future__ import annotations

from typing import List, Optional

from pydantic import AnyUrl, BaseModel


class Pet(BaseModel):
    id: int
    name: str
    tag: Optional[str] = None


class Pets(BaseModel):
    __root__: List[Pet]


class User(BaseModel):
    id: int
    name: str
    tag: Optional[str] = None


class Users(BaseModel):
    __root__: List[User]


class Id(BaseModel):
    __root__: str


class Rules(BaseModel):
    __root__: List[str]


class Error(BaseModel):
    code: int
    message: str


class Api(BaseModel):
    apiKey: Optional[str] = None
    """
    To be used as a dataset parameter value.
    Now also with multi-line docstrings.
    """
    apiVersionNumber: Optional[str] = None
    """
    To be used as a version parameter value
    """
    apiUrl: Optional[AnyUrl] = None
    """
    The URL describing the dataset's fields
    """
    apiDocumentationUrl: Optional[AnyUrl] = None
    """
    A URL to the API console for each API
    """


class Apis(BaseModel):
    __root__: List[Api]


class Event(BaseModel):
    name: Optional[str] = None


class Result(BaseModel):
    event: Optional[Event] = None
