"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
# @generated-id: 866143560866

from __future__ import annotations
from .createvespaschemarequest import (
    CreateVespaSchemaRequest,
    CreateVespaSchemaRequestTypedDict,
)
from mistralai.client.types import BaseModel
from mistralai.client.utils import validate_const
import pydantic
from pydantic.functional_validators import AfterValidator
from typing import List, Literal
from typing_extensions import Annotated, TypedDict


class CreateVespaSearchIndexInfoRequestTypedDict(TypedDict):
    k8s_cluster: str
    k8s_namespace: str
    vespa_instance_name: str
    schemas: List[CreateVespaSchemaRequestTypedDict]
    type: Literal["vespa"]


class CreateVespaSearchIndexInfoRequest(BaseModel):
    k8s_cluster: str

    k8s_namespace: str

    vespa_instance_name: str

    schemas: List[CreateVespaSchemaRequest]

    type: Annotated[
        Annotated[Literal["vespa"], AfterValidator(validate_const("vespa"))],
        pydantic.Field(alias="type"),
    ] = "vespa"


try:
    CreateVespaSearchIndexInfoRequest.model_rebuild()
except NameError:
    pass
