# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from lark_oapi.event.context import EventContext
from .user_id_list import UserIdList


class P2TaskTaskUpdateTenantV1Data(object):
    _types = {
        "user_id_list": UserIdList,
        "task_id": str,
        "object_type": str,
        "event_type": str,
    }

    def __init__(self, d=None):
        self.user_id_list: Optional[UserIdList] = None
        self.task_id: Optional[str] = None
        self.object_type: Optional[str] = None
        self.event_type: Optional[str] = None
        init(self, d, self._types)


class P2TaskTaskUpdateTenantV1(EventContext):
    _types = {
        "event": P2TaskTaskUpdateTenantV1Data
    }

    def __init__(self, d=None):
        super().__init__(d)
        self._types.update(super()._types)
        self.event: Optional[P2TaskTaskUpdateTenantV1Data] = None
        init(self, d, self._types)
