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

import typing

import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
from .pager_duty_integrations import PagerDutyIntegrations


class PagerDutyProviderAccount(UniversalBaseModel):
    """
    PagerDuty Provider Account
    """

    type: typing.Literal["provider-account/pagerduty"] = pydantic.Field(default="provider-account/pagerduty")
    """
    +value=provider-account/pagerduty
    """

    name: str = pydantic.Field()
    """
    The name of the PagerDuty provider account
    """

    integrations: typing.List[PagerDutyIntegrations] = pydantic.Field()
    """
    List of integrations that are associated with the PagerDuty provider account
    """

    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
