elastic_enterprise_search/_async/client/workplace_search.py [128:175]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self,
        *,
        content_source_id: str,
        is_searchable: bool,
        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,
        schema: t.Optional[t.Mapping[str, t.Any]] = None,
    ) -> ObjectApiResponse[t.Any]:
        """
        Update a content source

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

        :param content_source_id: Unique ID for a Custom API source, provided upon creation
            of a Custom API Source
        :param is_searchable:
        :param name:
        :param automatic_query_refinement:
        :param display:
        :param facets:
        :param indexing:
        :param schema:
        """
        if content_source_id in SKIP_IN_PATH:
            raise ValueError("Empty value passed for parameter 'content_source_id'")
        if is_searchable is None:
            raise ValueError("Empty value passed for parameter 'is_searchable'")
        if name is None:
            raise ValueError("Empty value passed for parameter 'name'")
        __body: t.Dict[str, t.Any] = {}
        if is_searchable is not None:
            __body["is_searchable"] = is_searchable
        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 schema is not None:
            __body["schema"] = schema
        __headers = {"accept": "application/json", "content-type": "application/json"}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



elastic_enterprise_search/_sync/client/workplace_search.py [128:175]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self,
        *,
        content_source_id: str,
        is_searchable: bool,
        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,
        schema: t.Optional[t.Mapping[str, t.Any]] = None,
    ) -> ObjectApiResponse[t.Any]:
        """
        Update a content source

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

        :param content_source_id: Unique ID for a Custom API source, provided upon creation
            of a Custom API Source
        :param is_searchable:
        :param name:
        :param automatic_query_refinement:
        :param display:
        :param facets:
        :param indexing:
        :param schema:
        """
        if content_source_id in SKIP_IN_PATH:
            raise ValueError("Empty value passed for parameter 'content_source_id'")
        if is_searchable is None:
            raise ValueError("Empty value passed for parameter 'is_searchable'")
        if name is None:
            raise ValueError("Empty value passed for parameter 'name'")
        __body: t.Dict[str, t.Any] = {}
        if is_searchable is not None:
            __body["is_searchable"] = is_searchable
        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 schema is not None:
            __body["schema"] = schema
        __headers = {"accept": "application/json", "content-type": "application/json"}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



