5_0/Direct/Tasks.pm untested

filter: Statementstmt 0.0% 0 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 10 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 package Search::Elasticsearch::Client::5_0::Direct::Tasks;
2 $Search::Elasticsearch::Client::5_0::Direct::Tasks::VERSION = '6.80_1'; # TRIAL
3  
4 $Search::Elasticsearch::Client::5_0::Direct::Tasks::VERSION = '6.801';use Moo;
5 with 'Search::Elasticsearch::Client::5_0::Role::API';
6 with 'Search::Elasticsearch::Role::Client::Direct';
7 __PACKAGE__->_install_api('tasks');
8  
9 1;
10  
11 =pod
12  
13 =encoding UTF-8
14  
15 =head1 NAME
16  
17 Search::Elasticsearch::Client::5_0::Direct::Tasks - A client for accessing the Task Management API
18  
19 =head1 VERSION
20  
21 version 6.80_1
22  
23 =head1 DESCRIPTION
24  
25 This module provides methods to access the Task Management API, such as listing
26 tasks and cancelling tasks.
27  
28 It does L<Search::Elasticsearch::Role::Client::Direct>.
29  
30 =head1 METHODS
31  
32 =head2 C<list()>
33  
34 $response = $e->tasks->list(
35 task_id => $task_id # optional
36 );
37  
38 The C<list()> method returns all running tasks or, if a C<task_id> is specified, info
39 about that task.
40  
41 Query string parameters:
42 C<actions>,
43 C<detailed>,
44 C<error_trace>,
45 C<group_by>,
46 C<human>,
47 C<nodes>,
48 C<parent_node>,
49 C<parent_task_id>,
50 C<wait_for_completion>
51  
52 See the L<task management docs|http://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html>
53 for more information.
54  
55 =head2 C<get()>
56  
57 $response = $e->tasks->get(
58 task_id => $task_id # required
59 );
60  
61 The C<get()> method returns the task with the specified ID.
62  
63 Query string parameters:
64 C<error_trace>,
65 C<human>,
66 C<wait_for_completion>
67  
68 See the L<task management docs|http://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html>
69 for more information.
70  
71 =head2 C<cancel()>
72  
73 $response = $e->tasks->cancel(
74 task_id => $task_id # option
75 );
76  
77 The C<cancel()> method attempts to cancel the specified C<task_id> or multiple tasks.
78  
79 Query string parameters:
80 C<actions>,
81 C<error_trace>,
82 C<human>,
83 C<nodes>,
84 C<parent_node>,
85 C<parent_task_id>
86  
87 See the L<task management docs|http://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html>
88 for more information.
89  
90 =head1 AUTHOR
91  
92 Enrico Zimuel <enrico.zimuel@elastic.co>
93  
94 =head1 COPYRIGHT AND LICENSE
95  
96 This software is Copyright (c) 2020 by Elasticsearch BV.
97  
98 This is free software, licensed under:
99  
100 The Apache License, Version 2.0, January 2004
101  
102 =cut
103  
104 __END__