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

from __future__ import annotations

from typing import Optional

from pydantic import AwareDatetime, BaseModel


class ChildRequest(BaseModel):
    id: int
    password: Optional[str] = None
    child_field: Optional[str] = None


class ChildResponse(BaseModel):
    id: int
    created_at: Optional[AwareDatetime] = None
    child_field: Optional[str] = None


class BaseObjectRequest(BaseModel):
    id: int
    password: Optional[str] = None


class BaseObjectResponse(BaseModel):
    id: int
    created_at: Optional[AwareDatetime] = None


class BaseObject(BaseModel):
    id: int
    created_at: Optional[AwareDatetime] = None
    password: Optional[str] = None


class Child(BaseObject):
    child_field: Optional[str] = None
