# This file was auto-generated by Fern from our API Definition.

import enum
import typing

T_Result = typing.TypeVar("T_Result")


class CloudJiraDataSourceV2ApiVersion(str, enum.Enum):
    """
    Jira REST API version to use (2 or 3). 3 supports Atlassian Document Format (ADF).
    """

    TWO = "2"
    THREE = "3"

    def visit(self, two: typing.Callable[[], T_Result], three: typing.Callable[[], T_Result]) -> T_Result:
        if self is CloudJiraDataSourceV2ApiVersion.TWO:
            return two()
        if self is CloudJiraDataSourceV2ApiVersion.THREE:
            return three()
