2_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 # Licensed to Elasticsearch B.V under one or more agreements.
2 # Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3 # See the LICENSE file in the project root for more information
4  
5 package Search::Elasticsearch::Client::2_0::Direct::Tasks;
6 $Search::Elasticsearch::Client::2_0::Direct::Tasks::VERSION = '7.30_1'; # TRIAL
7  
8 $Search::Elasticsearch::Client::2_0::Direct::Tasks::VERSION = '7.301';
9 use Moo;
10 with 'Search::Elasticsearch::Client::2_0::Role::API';
11 with 'Search::Elasticsearch::Role::Client::Direct';
12 __PACKAGE__->_install_api('tasks');
13  
14 1;
15  
16 =pod
17  
18 =encoding UTF-8
19  
20 =head1 NAME
21  
22 Search::Elasticsearch::Client::2_0::Direct::Tasks - A client for accessing the Task Management API
23  
24 =head1 VERSION
25  
26 version 7.30_1
27  
28 =head1 DESCRIPTION
29  
30 This module provides methods to access the Task Management API, such as listing
31 tasks and cancelling tasks.
32  
33 It does L<Search::Elasticsearch::Role::Client::Direct>.
34  
35 =head1 METHODS
36  
37 =head2 C<list()>
38  
39 $response = $e->tasks->list(
40 task_id => $task_id # optional
41 );
42  
43 The C<list()> method returns all running tasks or, if a C<task_id> is specified, info
44 about that task.
45  
46 Query string parameters:
47 C<actions>,
48 C<detailed>,
49 C<node_id>,
50 C<parent_node>,
51 C<parent_task>,
52 C<wait_for_completion>
53  
54 See the L<task management docs|http://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html>
55 for more information.
56  
57 =head2 C<cancel()>
58  
59 $response = $e->tasks->cancel(
60 task_id => $task_id # option
61 );
62  
63 The C<cancel()> method attempts to cancel the specified C<task_id> or multiple tasks.
64  
65 Query string parameters:
66 C<actions>,
67 C<node_id>,
68 C<parent_node>,
69 C<parent_task>
70  
71 See the L<task management docs|http://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html>
72 for more information.
73  
74 =head1 AUTHOR
75  
76 Enrico Zimuel <enrico.zimuel@elastic.co>
77  
78 =head1 COPYRIGHT AND LICENSE
79  
80 This software is Copyright (c) 2020 by Elasticsearch BV.
81  
82 This is free software, licensed under:
83  
84 The Apache License, Version 2.0, January 2004
85  
86 =cut
87  
88 __END__