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