# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from lark_oapi.event.context import EventContext
from .application_app_version_event import ApplicationAppVersionEvent
from .user_id import UserId


class P2ApplicationApplicationAppVersionPublishApplyV6Data(object):
    _types = {
        "operator_id": UserId,
        "online_version": ApplicationAppVersionEvent,
        "under_audit_version": ApplicationAppVersionEvent,
        "app_status": int,
    }

    def __init__(self, d=None):
        self.operator_id: Optional[UserId] = None
        self.online_version: Optional[ApplicationAppVersionEvent] = None
        self.under_audit_version: Optional[ApplicationAppVersionEvent] = None
        self.app_status: Optional[int] = None
        init(self, d, self._types)


class P2ApplicationApplicationAppVersionPublishApplyV6(EventContext):
    _types = {
        "event": P2ApplicationApplicationAppVersionPublishApplyV6Data
    }

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