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

from __future__ import annotations

from enum import Enum

from pydantic import BaseModel, Field


class IntEnum(Enum):
    integer_1 = 1
    integer_2 = 2
    integer_3 = 3


class FloatEnum(Enum):
    number_1_1 = 1.1
    number_2_1 = 2.1
    number_3_1 = 3.1


class StrEnum(Enum):
    field_1 = '1'
    field_2 = '2'
    field_3 = '3'


class NonTypedEnum(Enum):
    field_1 = '1'
    field_2 = '2'
    field_3 = '3'


class BooleanEnum(Enum):
    boolean_True = True
    boolean_False = False


class UnknownEnum(Enum):
    a = 'a'
    b = 'b'


class Model(BaseModel):
    IntEnum_1: IntEnum | None = Field(None, alias='IntEnum')
    FloatEnum_1: FloatEnum | None = Field(None, alias='FloatEnum')
    StrEnum_1: StrEnum | None = Field(None, alias='StrEnum')
    NonTypedEnum_1: NonTypedEnum | None = Field(None, alias='NonTypedEnum')
    BooleanEnum_1: BooleanEnum | None = Field(None, alias='BooleanEnum')
    UnknownEnum_1: UnknownEnum | None = Field(None, alias='UnknownEnum')
