5_0/Direct/Ingest.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::5_0::Direct::Ingest;
6 $Search::Elasticsearch::Client::5_0::Direct::Ingest::VERSION = '7.30_1'; # TRIAL
7  
8 $Search::Elasticsearch::Client::5_0::Direct::Ingest::VERSION = '7.301';
9 use Moo;
10 with 'Search::Elasticsearch::Client::5_0::Role::API';
11 with 'Search::Elasticsearch::Role::Client::Direct';
12 __PACKAGE__->_install_api('ingest');
13  
14 1;
15  
16 =pod
17  
18 =encoding UTF-8
19  
20 =head1 NAME
21  
22 Search::Elasticsearch::Client::5_0::Direct::Ingest - A client for accessing the Ingest API
23  
24 =head1 VERSION
25  
26 version 7.30_1
27  
28 =head1 DESCRIPTION
29  
30 This module provides methods to access the Ingest API, such as creating,
31 getting, deleting and simulating ingest pipelines.
32  
33 It does L<Search::Elasticsearch::Role::Client::Direct>.
34  
35 =head1 METHODS
36  
37 =head2 C<put_pipeline()>
38  
39 $response = $e->ingest->put_pipeline(
40 id => $id, # required
41 body => { pipeline defn } # required
42 );
43  
44 The C<put_pipeline()> method creates or updates a pipeline with the specified ID.
45  
46 Query string parameters:
47 C<error_trace>,
48 C<human>,
49 C<master_timeout>,
50 C<timeout>
51  
52 See the L<put pipeline docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/put-pipeline-api.html>
53 for more information.
54  
55 =head2 C<get_pipeline()>
56  
57 $response = $e->ingest->get_pipeline(
58 id => \@id, # optional
59 );
60  
61 The C<get_pipeline()> method returns pipelines with the specified IDs (or all pipelines).
62  
63 Query string parameters:
64 C<error_trace>,
65 C<human>,
66 C<master_timeout>,
67 C<timeout>
68  
69 See the L<get pipeline docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/get-pipeline-api.html>
70 for more information.
71  
72 =head2 C<delete_pipeline()>
73  
74 $response = $e->ingest->delete_pipeline(
75 id => $id, # required
76 );
77  
78 The C<delete_pipeline()> method deletes the pipeline with the specified ID.
79  
80 Query string parameters:
81 C<error_trace>,
82 C<human>,
83 C<master_timeout>,
84 C<timeout>
85  
86 See the L<delete pipeline docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-pipeline-api.html>
87 for more information.
88  
89 =head2 C<simulate()>
90  
91 $response = $e->ingest->put_pipeline(
92 id => $id, # optional
93 body => { simulate args } # required
94 );
95  
96 The C<simulate()> method executes the pipeline specified by ID or inline in the body
97 against the docs provided in the body and provides debugging output of the execution
98 process.
99  
100 Query string parameters:
101 C<error_trace>,
102 C<human>,
103 C<verbose>
104  
105 See the L<simulate pipeline docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/simulate-pipeline-api.html>
106 for more information.
107  
108 =head2 C<processor_grok>
109  
110 $response = $e->inges->processor_grok()
111  
112 Retrieves the configured patterns associated with the Grok processor.
113  
114 Query string parameters:
115 C<error_trace>,
116 C<human>
117  
118 See the L<grok processor docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/grok-processor.html>
119 for more information.
120  
121 =head1 AUTHOR
122  
123 Enrico Zimuel <enrico.zimuel@elastic.co>
124  
125 =head1 COPYRIGHT AND LICENSE
126  
127 This software is Copyright (c) 2020 by Elasticsearch BV.
128  
129 This is free software, licensed under:
130  
131 The Apache License, Version 2.0, January 2004
132  
133 =cut
134  
135 __END__