6_0/Direct/Snapshot.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::Snapshot;
2 $Search::Elasticsearch::Client::6_0::Direct::Snapshot::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('snapshot');
7  
8 1;
9  
10 =pod
11  
12 =encoding UTF-8
13  
14 =head1 NAME
15  
16 Search::Elasticsearch::Client::6_0::Direct::Snapshot - A client for managing snapshot/restore
17  
18 =head1 VERSION
19  
20 version 6.81
21  
22 =head1 DESCRIPTION
23  
24 This module provides methods to manage snapshot/restore, or backups.
25 It can create, get and delete configured backup repositories, and
26 create, get, delete and restore snapshots of your cluster or indices.
27  
28 It does L<Search::Elasticsearch::Role::Client::Direct>.
29  
30 =head1 METHODS
31  
32 =head2 C<create_repository()>
33  
34 $e->snapshot->create_repository(
35 repository => 'repository', # required
36 body => { defn } # required
37 );
38  
39 Create a repository for backups.
40  
41 Query string parameters:
42 C<error_trace>,
43 C<human>,
44 C<master_timeout>,
45 C<timeout>,
46 C<verify>
47  
48 See the L<"snapshot/restore docs"|http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshot.html>
49 for more information.
50  
51 =head2 C<get_repository()>
52  
53 $e->snapshot->get_repository(
54 repository => 'repository' | \@repositories # optional
55 );
56  
57 Retrieve existing repositories.
58  
59 Query string parameters:
60 C<error_trace>,
61 C<human>,
62 C<local>,
63 C<master_timeout>
64  
65 See the L<"snapshot/restore docs"|http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshot.html>
66 for more information.
67  
68 =head2 C<verify_repository()>
69  
70 $e->snapshot->verify_repository(
71 repository => 'repository' # required
72 );
73  
74 Verify existing repository.
75  
76 Query string parameters:
77 C<error_trace>,
78 C<human>,
79 C<master_timeout>,
80 C<timeout>
81  
82 See the L<"snapshot/restore docs"|http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshot.html>
83 for more information.
84  
85 =head2 C<delete_repository()>
86  
87 $e->snapshot->delete_repository(
88 repository => 'repository' | \@repositories # required
89 );
90  
91 Delete repositories by name.
92  
93 Query string parameters:
94 C<error_trace>,
95 C<human>,
96 C<master_timeout>,
97 C<timeout>
98  
99 See the L<"snapshot/restore docs"|http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshot.html>
100 for more information.
101  
102 =head2 C<create()>
103  
104 $e->snapshot->create(
105 repository => 'repository', # required
106 snapshot => 'snapshot', # required,
107  
108 body => { snapshot defn } # optional
109 );
110  
111 Create a snapshot of the whole cluster or individual indices in the named
112 repository.
113  
114 Query string parameters:
115 C<error_trace>,
116 C<human>,
117 C<master_timeout>,
118 C<wait_for_completion>
119  
120 =head2 C<get()>
121  
122 $e->snapshot->get(
123 repository => 'repository' # required
124 snapshot => 'snapshot' | \@snapshots # required
125 );
126  
127 Retrieve snapshots in the named repository.
128  
129 Query string parameters:
130 C<error_trace>,
131 C<human>,
132 C<ignore_unavailable>,
133 C<master_timeout>,
134 C<verbose>
135  
136 See the L<"snapshot/restore docs"|http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshot.html>
137 for more information.
138  
139 =head2 C<delete()>
140  
141 $e->snapshot->delete(
142 repository => 'repository', # required
143 snapshot => 'snapshot' # required
144 );
145  
146 Delete snapshot in the named repository.
147  
148 Query string parameters:
149 C<error_trace>,
150 C<human>,
151 C<master_timeout>
152  
153 See the L<"snapshot/restore docs"|http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshot.html>
154 for more information.
155  
156 =head2 C<restore()>
157  
158 $e->snapshot->restore(
159 repository => 'repository', # required
160 snapshot => 'snapshot' # required
161  
162 body => { what to restore } # optional
163 );
164  
165 Restore a named snapshot.
166  
167 Query string parameters:
168 C<error_trace>,
169 C<human>,
170 C<master_timeout>,
171 C<wait_for_completion>
172  
173 See the L<"snapshot/restore docs"|http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshot.html>
174 for more information.
175  
176 =head2 C<status()>
177  
178 $result = $e->snapshot->status(
179 repository => 'repository', # optional
180 snapshot => 'snapshot' | \@snapshots # optional
181 );
182  
183 Returns status information about the specified snapshots.
184  
185 Query string parameters:
186 C<error_trace>,
187 C<human>,
188 C<ignore_unavailable>,
189 C<master_timeout>
190  
191 See the L<"snapshot/restore docs"|http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshot.html>
192 for more information.
193  
194 =head1 AUTHOR
195  
196 Enrico Zimuel <enrico.zimuel@elastic.co>
197  
198 =head1 COPYRIGHT AND LICENSE
199  
200 This software is Copyright (c) 2020 by Elasticsearch BV.
201  
202 This is free software, licensed under:
203  
204 The Apache License, Version 2.0, January 2004
205  
206 =cut
207  
208 __END__