_Yí ã@s<ddlmZmZmZmZGdd„deƒZdS)é)ÚNamespacedClientÚ query_paramsÚ _make_pathÚ SKIP_IN_PATHc@s…eZdZedddddddƒddd d „ƒZeddddƒddd d „ƒZedƒddd d„ƒZdS)Ú TasksClientZactionsZdetailedZgroup_byZnode_idZ parent_nodeZ parent_taskZwait_for_completionNcCs"|jjdtd|ƒd|ƒS)a, ``_ :arg task_id: Return the task with specified id (node_id:task_number) :arg actions: A comma-separated list of actions that should be returned. Leave empty to return all. :arg detailed: Return detailed task information (default: false) :arg group_by: Group tasks by nodes or parent/child relationships, default 'nodes', valid choices are: 'nodes', 'parents' :arg node_id: A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes :arg parent_node: Return tasks with specified parent node. :arg parent_task: Return tasks with specified parent task id (node_id:task_number). Set to -1 to return all. :arg wait_for_completion: Wait for the matching tasks to complete (default: false) ÚGETÚ_tasksÚparams)Ú transportÚperform_requestr)ÚselfÚtask_idr ©rúC/tmp/pip-build-66pc0izb/elasticsearch/elasticsearch/client/tasks.pyÚlistszTasksClient.listcCs%|jjdtd|dƒd|ƒS)a ``_ :arg task_id: Cancel the task with specified task id (node_id:task_number) :arg actions: A comma-separated list of actions that should be cancelled. Leave empty to cancel all. :arg node_id: A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes :arg parent_node: Cancel tasks with specified parent node. :arg parent_task: Cancel tasks with specified parent task id (node_id:task_number). Set to -1 to cancel all. ÚPOSTrZ_cancelr )r r r)r r r rrrÚcancelszTasksClient.cancelcCs"|jjdtd|ƒd|ƒS)aJ Retrieve information for a particular task. ``_ :arg task_id: Return the task with specified id (node_id:task_number) :arg wait_for_completion: Wait for the matching tasks to complete (default: false) rrr )r r r)r r r rrrÚget2s zTasksClient.get)Ú__name__Ú __module__Ú __qualname__rrrrrrrrrs   rN)ÚutilsrrrrrrrrrÚs"