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

import enum
import typing

T_Result = typing.TypeVar("T_Result")


class BoxAuthMechanism(str, enum.Enum):
    DEVELOPER_TOKEN = "developer_token"
    CCG = "ccg"

    def visit(self, developer_token: typing.Callable[[], T_Result], ccg: typing.Callable[[], T_Result]) -> T_Result:
        if self is BoxAuthMechanism.DEVELOPER_TOKEN:
            return developer_token()
        if self is BoxAuthMechanism.CCG:
            return ccg()
