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

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


class CloudAzureAiSearchVectorStore(UniversalBaseModel):
    """
    Cloud Azure AI Search Vector Store.
    """

    supports_nested_metadata_filters: typing.Optional[bool] = None
    search_service_api_key: str
    search_service_endpoint: str
    search_service_api_version: typing.Optional[str] = None
    index_name: typing.Optional[str] = None
    filterable_metadata_field_keys: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
    embedding_dimension: typing.Optional[int] = None
    client_id: typing.Optional[str] = None
    client_secret: typing.Optional[str] = None
    tenant_id: typing.Optional[str] = None
    class_name: typing.Optional[str] = None

    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
