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

import enum
import typing

T_Result = typing.TypeVar("T_Result")


class OrganizationActions(str, enum.Enum):
    GET = "get"
    UPDATE = "update"
    PATCH = "patch"
    ALL = "*"

    def visit(
        self,
        get: typing.Callable[[], T_Result],
        update: typing.Callable[[], T_Result],
        patch: typing.Callable[[], T_Result],
        all_: typing.Callable[[], T_Result],
    ) -> T_Result:
        if self is OrganizationActions.GET:
            return get()
        if self is OrganizationActions.UPDATE:
            return update()
        if self is OrganizationActions.PATCH:
            return patch()
        if self is OrganizationActions.ALL:
            return all_()
