#####################################################################
# NOTE: THIS FILE IS AUTOGENERATED BY GENERATE_TYPES.PY. DO NOT EDIT!
#####################################################################
from enum import Enum

from ...compiler.registry import register_data
from ..base import Datatype
from ..datatypes import common as common


class DatasinkLocation(int, Enum):
    """Denotes where a datasink is located.

    Attributes:
        REMOTE (0): remote location (network hop required)
        LOCAL (1): local location (IPC)
    """

    REMOTE = 0
    LOCAL = 1


@register_data
class DatasinkInfo(Datatype):
    """Information about a datasink.

    Attributes:
        id (str): datasink ID
        location (DatasinkLocation): datasink location
    """

    id: str
    location: DatasinkLocation
