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

from ...core.unchecked_base_model import UncheckedBaseModel
from .api_config import ApiConfig
import pydantic
import typing
from .http_ingest import HttpIngest
from ...core.pydantic_utilities import IS_PYDANTIC_V2


class SiemPanther(UncheckedBaseModel):
    """
    Configuration for Panther SIEM.

    [Configuration guide](https://docs.synqly.com/guides/provider-configuration/panther-siem-setup)
    """

    api_config: ApiConfig = pydantic.Field()
    """
    Configuration required to connect to Panther SIEM APIs.
    """

    http_ingest: typing.Optional[HttpIngest] = pydantic.Field(default=None)
    """
    Configuration for event ingestion. Only necessary when writing events to Panther.
    """

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

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