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

from __future__ import annotations

from enum import Enum

from pydantic import Field, RootModel


class OptionalModeEnum(Enum):
    enabled = 'enabled'
    disabled = 'disabled'


class OptionalMode(RootModel[OptionalModeEnum | None]):
    root: OptionalModeEnum | None = Field(None, title='Optional Mode')
