<filename>output/models/nist_data/atomic/g_month/schema_instance/nistschema_sv_iv_atomic_g_month_enumeration_2_xsd/nistschema_sv_iv_atomic_g_month_enumeration_2.py
from dataclasses import dataclass, field
from enum import Enum
from typing import Optional
from xsdata.models.datatype import XmlPeriod

__NAMESPACE__ = "NISTSchema-SV-IV-atomic-gMonth-enumeration-2-NS"


class NistschemaSvIvAtomicGMonthEnumeration2Type(Enum):
    VALUE_02 = XmlPeriod("--02")
    VALUE_12 = XmlPeriod("--12")
    VALUE_06 = XmlPeriod("--06")
    VALUE_04 = XmlPeriod("--04")
    VALUE_11 = XmlPeriod("--11")


@dataclass
class NistschemaSvIvAtomicGMonthEnumeration2:
    class Meta:
        name = "NISTSchema-SV-IV-atomic-gMonth-enumeration-2"
        namespace = "NISTSchema-SV-IV-atomic-gMonth-enumeration-2-NS"

    value: Optional[NistschemaSvIvAtomicGMonthEnumeration2Type] = field(
        default=None,
        metadata={
            "required": True,
        }
    )

<filename>output/models/nist_data/atomic/g_month/schema_instance/nistschema_sv_iv_atomic_g_month_enumeration_2_xsd/nistschema_sv_iv_atomic_g_month_enumeration_2.py
from dataclasses import dataclass, field
from enum import Enum
from typing import Optional
from xsdata.models.datatype import XmlPeriod

__NAMESPACE__ = "NISTSchema-SV-IV-atomic-gMonth-enumeration-2-NS"


class NistschemaSvIvAtomicGMonthEnumeration2Type(Enum):
    VALUE_02 = XmlPeriod("--02")
    VALUE_12 = XmlPeriod("--12")
    VALUE_06 = XmlPeriod("--06")
    VALUE_04 = XmlPeriod("--04")
    VALUE_11 = XmlPeriod("--11")


@dataclass
class NistschemaSvIvAtomicGMonthEnumeration2:
    class Meta:
        name = "NISTSchema-SV-IV-atomic-gMonth-enumeration-2"
        namespace = "NISTSchema-SV-IV-atomic-gMonth-enumeration-2-NS"

    value: Optional[NistschemaSvIvAtomicGMonthEnumeration2Type] = field(
        default=None,
        metadata={
            "required": True,
        }
    )
