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