Elasticsearch/Client/7_0/Direct/CCR.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod n/a totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.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::7_0::Direct::CCR;
6 $Search::Elasticsearch::Client::7_0::Direct::CCR::VERSION = '7.30_1'; # TRIAL
7  
8 $Search::Elasticsearch::Client::7_0::Direct::CCR::VERSION = '7.301';
9 use Moo;
10 with 'Search::Elasticsearch::Client::7_0::Role::API';
11 with 'Search::Elasticsearch::Role::Client::Direct';
12 use Search::Elasticsearch::Util qw(parse_params);
13 use namespace::clean;
14 __PACKAGE__->_install_api('ccr');
15  
16 1;
17  
18 =pod
19  
20 =encoding UTF-8
21  
22 =head1 NAME
23  
24 Search::Elasticsearch::Client::7_0::Direct::CCR - Plugin providing cross-cluster replication APIs for Search::Elasticsearch 7.x
25  
26 =head1 VERSION
27  
28 version 7.30_1
29  
30 =head2 DESCRIPTION
31  
32 This module provides methods to use the cross-cluster replication feature.
33  
34 The full documentation for CCR is available here:
35 L<https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-apis.html>
36  
37 =head1 FOLLOW METHODS
38  
39 =head2 C<follow()>
40  
41 $response = $es->ccr->follow(
42 index => $index, # required
43 body => {...} # required
44 )
45  
46 The C<follow()> method creates a new follower index that is configured to follow the referenced leader index.
47  
48 Query string parameters:
49 C<error_trace>,
50 C<filter_path>,
51 C<human>,
52 C<wait_for_active_shards>
53  
54 See the L<CCR follow docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-follow.html>
55 for more information.
56  
57 =head2 C<pause_follow()>
58  
59 $response = $es->ccr->pause_follow(
60 index => $index, # required
61 )
62  
63 The C<pause_follow()> method pauses following of an index.
64  
65 Query string parameters:
66 C<error_trace>,
67 C<filter_path>,
68 C<human>
69  
70 See the L<CCR pause follow docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-pause-follow.html>
71 for more information.
72  
73 =head2 C<resume_follow()>
74  
75 $response = $es->ccr->resume_follow(
76 index => $index, # required
77 )
78  
79 The C<resume_follow()> method resumes following of an index.
80  
81 Query string parameters:
82 C<error_trace>,
83 C<filter_path>,
84 C<human>
85  
86 See the L<CCR resume follow docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-resume-follow.html>
87 for more information.
88  
89 =head2 C<unfollow()>
90  
91 $response = $es->ccr->unfollow(
92 index => $index, # required
93 )
94  
95 The C<unfollow()> method converts a follower index into a normal index.
96  
97 Query string parameters:
98 C<error_trace>,
99 C<filter_path>,
100 C<human>
101  
102 See the L<CCR unfollow docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-unfollow.html>
103 for more information.
104  
105 =head2 C<forget_follower()>
106  
107 $response = $es->ccr->forget_follower(
108 index => $index, # required
109 )
110  
111 The C<forget_follower()> method removes the follower retention leases from the leader.
112  
113 Query string parameters:
114 C<error_trace>,
115 C<filter_path>,
116 C<human>
117  
118 See the L<CCR forget_follower docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-forget-follower.html>
119 for more information.
120  
121 =head1 STATS METHODS
122  
123 =head2 C<stats()>
124  
125 $response = $es->ccr->stats()
126  
127 The C<stats()> method returns all stats related to cross-cluster replication.
128  
129 Query string parameters:
130 C<error_trace>,
131 C<filter_path>,
132 C<human>
133  
134 See the L<CCR stats docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-stats.html>
135 for more information.
136  
137 =head2 C<follow_stats()>
138  
139 $response = $es->ccr->follow_stats(
140 index => $index | \@indices, # optional
141 )
142  
143 The C<follow_stats()> method returns shard-level stats about follower indices.
144  
145 Query string parameters:
146 C<error_trace>,
147 C<filter_path>,
148 C<human>
149  
150 See the L<CCR follow stats docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-follow-stats.html>
151 for more information.
152  
153 =head2 C<follow_info()>
154  
155 $response = $es->ccr->follow_info(
156 index => $index | \@indices, # optional
157 )
158  
159 The C<follow_info()> method returns the parameters and the status for each follower index.
160  
161 Query string parameters:
162 C<error_trace>,
163 C<filter_path>,
164 C<human>
165  
166 See the L<CCR follow info docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-follow-info.html>
167 for more information.
168  
169 =head1 AUTO-FOLLOW METHODS
170  
171 =head2 C<put_auto_follow_pattern()>
172  
173 $response = $es->ccr->put_auto_follow_pattern(
174 name => $name # required
175 )
176  
177 The C<put_auto_follow_pattern()> method creates a new named collection of auto-follow patterns against the remote cluster specified in the request body.
178  
179 Query string parameters:
180 C<error_trace>,
181 C<filter_path>,
182 C<human>
183  
184 See the L<CCR put auto follow pattern docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-auto-follow-pattern.html>
185 for more information.
186  
187 =head2 C<get_auto_follow_pattern()>
188  
189 $response = $es->ccr->get_auto_follow_pattern(
190 name => $name # optional
191 )
192  
193 The C<get_auto_follow_pattern()> method retrieves a named collection of auto-follow patterns, or all patterns.
194  
195 Query string parameters:
196 C<error_trace>,
197 C<filter_path>,
198 C<human>
199  
200 See the L<CCR get auto follow pattern docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-auto-follow-pattern.html>
201 for more information.
202  
203 =head2 C<delete_auto_follow_pattern()>
204  
205 $response = $es->ccr->delete_auto_follow_pattern(
206 name => $name # required
207 )
208  
209 The C<delete_auto_follow_pattern()> method deletes a named collection of auto-follow patterns.
210  
211 Query string parameters:
212 C<error_trace>,
213 C<filter_path>,
214 C<human>
215  
216 See the L<CCR delete auto follow pattern docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-delete-auto-follow-pattern.html>
217 for more information.
218  
219 =head1 AUTHOR
220  
221 Enrico Zimuel <enrico.zimuel@elastic.co>
222  
223 =head1 COPYRIGHT AND LICENSE
224  
225 This software is Copyright (c) 2020 by Elasticsearch BV.
226  
227 This is free software, licensed under:
228  
229 The Apache License, Version 2.0, January 2004
230  
231 =cut
232  
233 __END__