# 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 pydantic import BaseModel, RootModel


class Addr1(BaseModel):
    ipv4Addr: IPv4Address
    ipv6Addr: IPv6Address | None = None


class Addr2(BaseModel):
    ipv4Addr: IPv4Address | None = None
    ipv6Addr: IPv6Address


class Addr(RootModel[Addr1 | Addr2]):
    root: Addr1 | Addr2
