# coding: utf-8

"""
    Mentortools Public API

    Mentortools public API service

    The version of the OpenAPI document: 1.8.1
    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 FileTypeFilter(str, Enum):
    """
    Filterable media file types for list/count query params.  Deliberately separate from ``FileType``: it omits ``UNDEFINED`` (not a meaningful filter for the media API) and has no ``_missing_`` hook, so an unknown ``?file_type=`` value is rejected with HTTP 422 instead of being silently coerced to ``undefined``.
    """

    """
    allowed enum values
    """
    IMAGE = 'image'
    VIDEO = 'video'
    AUDIO = 'audio'
    DOCUMENT = 'document'
    ARCHIVE = 'archive'

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


