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

from __future__ import annotations

from ipaddress import IPv4Address, IPv6Address
from typing import Optional, Union

from pydantic import BaseModel


class Addr1(BaseModel):
    ipv4Addr: IPv4Address
    ipv6Addr: Optional[IPv6Address] = None


class Addr2(BaseModel):
    ipv4Addr: Optional[IPv4Address] = None
    ipv6Addr: IPv6Address


class Addr(BaseModel):
    __root__: Union[Addr1, Addr2]
