# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init
from lark_oapi.event.context import EventContext
from .acl_scope_event import AclScopeEvent
from .user_id import UserId


class P2CalendarCalendarAclDeletedV4Data(object):
    _types = {
        "acl_id": str,
        "role": str,
        "scope": AclScopeEvent,
        "user_id_list": List[UserId],
    }

    def __init__(self, d=None):
        self.acl_id: Optional[str] = None
        self.role: Optional[str] = None
        self.scope: Optional[AclScopeEvent] = None
        self.user_id_list: Optional[List[UserId]] = None
        init(self, d, self._types)


class P2CalendarCalendarAclDeletedV4(EventContext):
    _types = {
        "event": P2CalendarCalendarAclDeletedV4Data
    }

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