# coding: utf-8

"""
    NCBI Datasets API

    ### NCBI Datasets is a resource that lets you easily gather data from NCBI. The NCBI Datasets version 2 API is updated often to add new features, fix bugs, and enhance usability. 

    The version of the OpenAPI document: v2
    Generated by OpenAPI Generator (https://openapi-generator.tech)

    Do not edit the class manually.
"""  # noqa: E501


from __future__ import annotations
import json
from enum import Enum
from typing_extensions import Self


class V2reportsWarningGeneWarningCode(str, Enum):
    """
    V2reportsWarningGeneWarningCode
    """

    """
    allowed enum values
    """
    UNKNOWN_GENE_WARNING_CODE = 'UNKNOWN_GENE_WARNING_CODE'
    ACCESSION_VERSION_MISMATCH = 'ACCESSION_VERSION_MISMATCH'
    REPLACED_GENE_ID = 'REPLACED_GENE_ID'
    DISCONTINUED_GENE_ID = 'DISCONTINUED_GENE_ID'
    UNRECOGNIZED_GENE_ID = 'UNRECOGNIZED_GENE_ID'
    UNRECOGNIZED_GENE_SYMBOL = 'UNRECOGNIZED_GENE_SYMBOL'
    UNRECOGNIZED_ACCESSION = 'UNRECOGNIZED_ACCESSION'
    UNRECOGNIZED_TAX_TOKEN = 'UNRECOGNIZED_TAX_TOKEN'
    NO_GENE_ANNOTATION_FOUND = 'NO_GENE_ANNOTATION_FOUND'
    ABOVE_SPECIES_TAXON = 'ABOVE_SPECIES_TAXON'

    @classmethod
    def from_json(cls, json_str: str) -> Self:
        """Create an instance of V2reportsWarningGeneWarningCode from a JSON string"""
        return cls(json.loads(json_str))


