6_0/Direct/Tasks.pm untested

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