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

    """
    allowed enum values
    """
    LINKED_ASSEMBLY_TYPE_UNKNOWN = 'LINKED_ASSEMBLY_TYPE_UNKNOWN'
    ALTERNATE_PSEUDOHAPLOTYPE_OF_DIPLOID = 'alternate_pseudohaplotype_of_diploid'
    PRINCIPAL_PSEUDOHAPLOTYPE_OF_DIPLOID = 'principal_pseudohaplotype_of_diploid'
    MATERNAL_HAPLOTYPE_OF_DIPLOID = 'maternal_haplotype_of_diploid'
    PATERNAL_HAPLOTYPE_OF_DIPLOID = 'paternal_haplotype_of_diploid'
    HAPLOTYPE_1 = 'haplotype_1'
    HAPLOTYPE_2 = 'haplotype_2'
    HAPLOTYPE_3 = 'haplotype_3'
    HAPLOTYPE_4 = 'haplotype_4'
    HAPLOID = 'haploid'

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


