elastic_enterprise_search/_async/client/workplace_search.py [33:73]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self,
        *,
        name: str,
        automatic_query_refinement: t.Optional[t.Mapping[str, t.Any]] = None,
        display: t.Optional[t.Mapping[str, t.Any]] = None,
        facets: t.Optional[t.Mapping[str, t.Any]] = None,
        indexing: t.Optional[t.Mapping[str, t.Any]] = None,
        is_searchable: t.Optional[bool] = None,
        schema: t.Optional[t.Mapping[str, t.Any]] = None,
    ) -> ObjectApiResponse[t.Any]:
        """
        Create a custom content source

        `<https://www.elastic.co/guide/en/workplace-search/current/workplace-search-content-sources-api.html#create-content-source-api>`_

        :param name:
        :param automatic_query_refinement:
        :param display:
        :param facets:
        :param indexing:
        :param is_searchable:
        :param schema:
        """
        if name is None:
            raise ValueError("Empty value passed for parameter 'name'")
        __body: t.Dict[str, t.Any] = {}
        if name is not None:
            __body["name"] = name
        if automatic_query_refinement is not None:
            __body["automatic_query_refinement"] = automatic_query_refinement
        if display is not None:
            __body["display"] = display
        if facets is not None:
            __body["facets"] = facets
        if indexing is not None:
            __body["indexing"] = indexing
        if is_searchable is not None:
            __body["is_searchable"] = is_searchable
        if schema is not None:
            __body["schema"] = schema
        __headers = {"accept": "application/json", "content-type": "application/json"}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



elastic_enterprise_search/_sync/client/workplace_search.py [33:73]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self,
        *,
        name: str,
        automatic_query_refinement: t.Optional[t.Mapping[str, t.Any]] = None,
        display: t.Optional[t.Mapping[str, t.Any]] = None,
        facets: t.Optional[t.Mapping[str, t.Any]] = None,
        indexing: t.Optional[t.Mapping[str, t.Any]] = None,
        is_searchable: t.Optional[bool] = None,
        schema: t.Optional[t.Mapping[str, t.Any]] = None,
    ) -> ObjectApiResponse[t.Any]:
        """
        Create a custom content source

        `<https://www.elastic.co/guide/en/workplace-search/current/workplace-search-content-sources-api.html#create-content-source-api>`_

        :param name:
        :param automatic_query_refinement:
        :param display:
        :param facets:
        :param indexing:
        :param is_searchable:
        :param schema:
        """
        if name is None:
            raise ValueError("Empty value passed for parameter 'name'")
        __body: t.Dict[str, t.Any] = {}
        if name is not None:
            __body["name"] = name
        if automatic_query_refinement is not None:
            __body["automatic_query_refinement"] = automatic_query_refinement
        if display is not None:
            __body["display"] = display
        if facets is not None:
            __body["facets"] = facets
        if indexing is not None:
            __body["indexing"] = indexing
        if is_searchable is not None:
            __body["is_searchable"] = is_searchable
        if schema is not None:
            __body["schema"] = schema
        __headers = {"accept": "application/json", "content-type": "application/json"}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



