# 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


class P2CorehrCommonDataMetaDataUpdatedV1Data(object):
    _types = {
        "api_name": str,
        "field_changes": List[str],
        "metadata_type": str,
        "enum_value_changes": List[str],
    }

    def __init__(self, d=None):
        self.api_name: Optional[str] = None
        self.field_changes: Optional[List[str]] = None
        self.metadata_type: Optional[str] = None
        self.enum_value_changes: Optional[List[str]] = None
        init(self, d, self._types)


class P2CorehrCommonDataMetaDataUpdatedV1(EventContext):
    _types = {
        "event": P2CorehrCommonDataMetaDataUpdatedV1Data
    }

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