# This file was auto-generated by Fern from our API Definition.

from ..core.pydantic_utilities import UniversalBaseModel
import typing
import pydantic
from .audit_event_data import AuditEventData
from ..core.pydantic_utilities import IS_PYDANTIC_V2


class V1AuditEventResponse(UniversalBaseModel):
    """
    Contains fields for defining Response Properties.
    """

    code: typing.Optional[int] = pydantic.Field(default=None)
    """
    The status of the overall operation.
    """

    message: typing.Optional[str] = pydantic.Field(default=None)
    """
    The status message for the overall operation.
    """

    data: typing.Optional[AuditEventData] = None
    timestamp: typing.Optional[str] = pydantic.Field(default=None)
    """
    time when this response is generated, use extention method to set it.
    """

    if IS_PYDANTIC_V2:
        model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True)  # type: ignore # Pydantic v2
    else:

        class Config:
            frozen = True
            smart_union = True
            extra = pydantic.Extra.allow
