# 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 ExternalBlobStorageSource(UniversalBaseModel):
    type: typing.Literal["external"] = pydantic.Field(default="external")
    """
    Type of the source
    """

    uri: str = pydantic.Field()
    """
    URI referencing a path in the blob storage bucket linked to the MLRepo
    """

    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
