elastic_enterprise_search/_async/client/app_search.py [2030:2067]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self,
        *,
        engine_name: str,
        index_create_settings_override: t.Optional[t.Mapping[str, t.Any]] = None,
        language: t.Optional[
            t.Union[
                "t.Literal['da', 'de', 'en', 'es', 'fr', 'it', 'ja', 'ko', 'nl', 'pt', 'pt-br', 'ru', 'th', 'zh']",
                str,
            ]
        ] = None,
        source_engines: t.Optional[t.Union[t.List[str], t.Tuple[str, ...]]] = None,
        type: t.Optional[t.Union["t.Literal['default', 'meta']", str]] = None,
    ) -> ObjectApiResponse[t.Any]:
        """
        Creates an App Search Engine

        `<https://www.elastic.co/guide/en/app-search/current/engines.html#engines-create>`_

        :param engine_name:
        :param index_create_settings_override:
        :param language:
        :param source_engines:
        :param type:
        """
        if engine_name is None:
            raise ValueError("Empty value passed for parameter 'engine_name'")
        __body: t.Dict[str, t.Any] = {}
        if engine_name is not None:
            __body["name"] = engine_name
        if index_create_settings_override is not None:
            __body["index_create_settings_override"] = index_create_settings_override
        if language is not None:
            __body["language"] = language
        if source_engines is not None:
            __body["source_engines"] = source_engines
        if type is not None:
            __body["type"] = type
        __headers = {"accept": "application/json", "content-type": "application/json"}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



elastic_enterprise_search/_sync/client/app_search.py [2030:2067]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self,
        *,
        engine_name: str,
        index_create_settings_override: t.Optional[t.Mapping[str, t.Any]] = None,
        language: t.Optional[
            t.Union[
                "t.Literal['da', 'de', 'en', 'es', 'fr', 'it', 'ja', 'ko', 'nl', 'pt', 'pt-br', 'ru', 'th', 'zh']",
                str,
            ]
        ] = None,
        source_engines: t.Optional[t.Union[t.List[str], t.Tuple[str, ...]]] = None,
        type: t.Optional[t.Union["t.Literal['default', 'meta']", str]] = None,
    ) -> ObjectApiResponse[t.Any]:
        """
        Creates an App Search Engine

        `<https://www.elastic.co/guide/en/app-search/current/engines.html#engines-create>`_

        :param engine_name:
        :param index_create_settings_override:
        :param language:
        :param source_engines:
        :param type:
        """
        if engine_name is None:
            raise ValueError("Empty value passed for parameter 'engine_name'")
        __body: t.Dict[str, t.Any] = {}
        if engine_name is not None:
            __body["name"] = engine_name
        if index_create_settings_override is not None:
            __body["index_create_settings_override"] = index_create_settings_override
        if language is not None:
            __body["language"] = language
        if source_engines is not None:
            __body["source_engines"] = source_engines
        if type is not None:
            __body["type"] = type
        __headers = {"accept": "application/json", "content-type": "application/json"}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



