# This file is auto-generated by oagen. Do not edit.

"""Enumeration of organization domain verification failed data reason values."""

from __future__ import annotations

from enum import Enum
from typing import Optional
from typing import Literal, TypeAlias


class OrganizationDomainVerificationFailedDataReason(str, Enum):
    """Known values for OrganizationDomainVerificationFailedDataReason."""

    DOMAIN_VERIFICATION_PERIOD_EXPIRED = "domain_verification_period_expired"
    DOMAIN_VERIFIED_BY_OTHER_ORGANIZATION = "domain_verified_by_other_organization"

    @classmethod
    def _missing_(
        cls, value: object
    ) -> Optional["OrganizationDomainVerificationFailedDataReason"]:
        if not isinstance(value, str):
            return None
        unknown = str.__new__(cls, value)
        unknown._name_ = value.upper()
        unknown._value_ = value
        return unknown


OrganizationDomainVerificationFailedDataReasonLiteral: TypeAlias = Literal[
    "domain_verification_period_expired", "domain_verified_by_other_organization"
]
