elastic_enterprise_search/_async/client/workplace_search.py [613:651]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self,
        *,
        content_source_id: str,
        body: t.Any,
        job_type: t.Optional[
            t.Union[
                t.List[
                    t.Union[
                        "t.Literal['delete', 'full', 'incremental', 'permissions']", str
                    ]
                ],
                t.Tuple[
                    t.Union[
                        "t.Literal['delete', 'full', 'incremental', 'permissions']", str
                    ],
                    ...,
                ],
            ]
        ] = None,
    ) -> ObjectApiResponse[t.Any]:
        """
        Control a content source's sync jobs

        `<https://www.elastic.co/guide/en/workplace-search/current/workplace-search-sync-jobs-api.html#command-sync-jobs-api>`_

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



elastic_enterprise_search/_sync/client/workplace_search.py [613:651]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self,
        *,
        content_source_id: str,
        body: t.Any,
        job_type: t.Optional[
            t.Union[
                t.List[
                    t.Union[
                        "t.Literal['delete', 'full', 'incremental', 'permissions']", str
                    ]
                ],
                t.Tuple[
                    t.Union[
                        "t.Literal['delete', 'full', 'incremental', 'permissions']", str
                    ],
                    ...,
                ],
            ]
        ] = None,
    ) -> ObjectApiResponse[t.Any]:
        """
        Control a content source's sync jobs

        `<https://www.elastic.co/guide/en/workplace-search/current/workplace-search-sync-jobs-api.html#command-sync-jobs-api>`_

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



