# 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 typing import Optional

from pydantic import BaseModel, Field


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


class OptionalMode(BaseModel):
    __root__: Optional[OptionalModeEnum] = Field(None, title='Optional Mode')
