# 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 V2reportsErrorAssemblyErrorCode(str, Enum):
    """
    V2reportsErrorAssemblyErrorCode
    """

    """
    allowed enum values
    """
    UNKNOWN_ASSEMBLY_ERROR_CODE = 'UNKNOWN_ASSEMBLY_ERROR_CODE'
    INVALID_BIOPROJECT_IDS = 'INVALID_BIOPROJECT_IDS'
    NO_ASSEMBLIES_FOR_BIOPROJECTS = 'NO_ASSEMBLIES_FOR_BIOPROJECTS'
    INVALID_TAXON = 'INVALID_TAXON'
    MISSING_SEARCH_FIELD = 'MISSING_SEARCH_FIELD'
    INVALID_BIOSAMPLE_IDS = 'INVALID_BIOSAMPLE_IDS'
    NO_ASSEMBLIES_FOR_BIOSAMPLE_IDS = 'NO_ASSEMBLIES_FOR_BIOSAMPLE_IDS'
    NO_ASSEMBLIES_FOR_ASSEMBLY_NAMES = 'NO_ASSEMBLIES_FOR_ASSEMBLY_NAMES'
    INVALID_WGS_ACCESSIONS = 'INVALID_WGS_ACCESSIONS'
    NO_ASSEMBLIES_FOR_WGS_ACCESSIONS = 'NO_ASSEMBLIES_FOR_WGS_ACCESSIONS'

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


