3 ] @s,ddlmZmZmZmZGdddeZdS))NamespacedClient query_params _make_path SKIP_IN_PATHc@sTeZdZeddddddddd d Zeddddd d Zedddd dZdS) TasksClientactionsZdetailedZgroup_byZnodesZparent_task_idZwait_for_completiontimeoutNcCs|jjdd|dS)a ``_ :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 nodes: 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_task_id: 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) :arg timeout: Maximum waiting time for `wait_for_completion` GETz/_tasks)params) transportperform_request)selfr rC/tmp/pip-build-z81i1n8o/elasticsearch/elasticsearch/client/tasks.pylistszTasksClient.listcCs|jjdtd|d|dS)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 nodes: 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_task_id: Cancel tasks with specified parent task id (node_id:task_number). Set to -1 to cancel all. POST_tasksZ_cancel)r )r r r)r task_idr rrrcancel#szTasksClient.cancelcCs|jjdtd||dS)a 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) :arg timeout: Maximum waiting time for `wait_for_completion` r r)r )r r r)r rr rrrget8s zTasksClient.get)N)NN)NN)__name__ __module__ __qualname__rrrrrrrrrs   rN)utilsrrrrrrrrrs