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

import typing

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


class TracingProjectCustomerManagedStorage(UniversalBaseModel):
    """
    Bring your own storage. Please note that this cannot be changed once set.
    """

    type: typing.Literal["customer-managed"] = pydantic.Field(default="customer-managed")
    """
    Type of storage configuration
    """

    storage_integration_fqn: str = pydantic.Field()
    """
    Storage Integration FQN to store traces and spans. A storage integration represents a connected blob storage like AWS S3 / Azure Blob Storage / Google Cloud Storage. Please note that this cannot be changed once set.
    """

    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
