elastic_enterprise_search/_async/client/workplace_search.py [464:501]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self,
        *,
        content_source_id: str,
        external_user_id: str,
        external_user_properties: t.Union[
            t.List[t.Mapping[str, t.Any]], t.Tuple[t.Mapping[str, t.Any], ...]
        ],
        permissions: t.Union[t.List[str], t.Tuple[str, ...]],
    ) -> ObjectApiResponse[t.Any]:
        """
        Adds a new external identity

        `<https://www.elastic.co/guide/en/workplace-search/current/workplace-search-external-identities-api.html#add-external-identity>`_

        :param content_source_id: Unique ID for a Custom API source, provided upon creation
            of a Custom API Source
        :param external_user_id:
        :param external_user_properties:
        :param permissions:
        """
        if content_source_id in SKIP_IN_PATH:
            raise ValueError("Empty value passed for parameter 'content_source_id'")
        if external_user_id is None:
            raise ValueError("Empty value passed for parameter 'external_user_id'")
        if external_user_properties is None:
            raise ValueError(
                "Empty value passed for parameter 'external_user_properties'"
            )
        if permissions is None:
            raise ValueError("Empty value passed for parameter 'permissions'")
        __body: t.Dict[str, t.Any] = {}
        if external_user_id is not None:
            __body["external_user_id"] = external_user_id
        if external_user_properties is not None:
            __body["external_user_properties"] = external_user_properties
        if permissions is not None:
            __body["permissions"] = permissions
        __headers = {"accept": "application/json", "content-type": "application/json"}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



elastic_enterprise_search/_sync/client/workplace_search.py [464:501]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self,
        *,
        content_source_id: str,
        external_user_id: str,
        external_user_properties: t.Union[
            t.List[t.Mapping[str, t.Any]], t.Tuple[t.Mapping[str, t.Any], ...]
        ],
        permissions: t.Union[t.List[str], t.Tuple[str, ...]],
    ) -> ObjectApiResponse[t.Any]:
        """
        Adds a new external identity

        `<https://www.elastic.co/guide/en/workplace-search/current/workplace-search-external-identities-api.html#add-external-identity>`_

        :param content_source_id: Unique ID for a Custom API source, provided upon creation
            of a Custom API Source
        :param external_user_id:
        :param external_user_properties:
        :param permissions:
        """
        if content_source_id in SKIP_IN_PATH:
            raise ValueError("Empty value passed for parameter 'content_source_id'")
        if external_user_id is None:
            raise ValueError("Empty value passed for parameter 'external_user_id'")
        if external_user_properties is None:
            raise ValueError(
                "Empty value passed for parameter 'external_user_properties'"
            )
        if permissions is None:
            raise ValueError("Empty value passed for parameter 'permissions'")
        __body: t.Dict[str, t.Any] = {}
        if external_user_id is not None:
            __body["external_user_id"] = external_user_id
        if external_user_properties is not None:
            __body["external_user_properties"] = external_user_properties
        if permissions is not None:
            __body["permissions"] = permissions
        __headers = {"accept": "application/json", "content-type": "application/json"}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



