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

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 14 CC 1 SCAR 6.9
CC
1
Cov
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::Migration;
6 $Search::Elasticsearch::Client::7_0::Direct::Migration::VERSION = '7.30_1'; # TRIAL
7  
8 $Search::Elasticsearch::Client::7_0::Direct::Migration::VERSION = '7.301';
9 use Moo;
10 with 'Search::Elasticsearch::Client::7_0::Role::API';
11 with 'Search::Elasticsearch::Role::Client::Direct';
12 use namespace::clean;
13  
14 __PACKAGE__->_install_api('migration');
15  
16 1;
17  
18 =pod
19  
20 =encoding UTF-8
21  
22 =head1 NAME
23  
24 Search::Elasticsearch::Client::7_0::Direct::Migration - Plugin providing Migration API for Search::Elasticsearch 7.x
25  
26 =head1 VERSION
27  
28 version 7.30_1
29  
30 =head1 SYNOPSIS
31  
32 my $response = $es->migration->deprecations();
33  
34 =head2 DESCRIPTION
35  
36 This class extends the L<Search::Elasticsearch> client with a C<migration>
37 namespace, to support the API
38 L<Migration APIs|https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api.html>.
39  
40 =head1 METHODS
41  
42 The full documentation for the Migration APIs is available here:
43 L<https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api.html>
44  
45 =head2 C<deprecations()>
46  
47 $response = $es->migration->deprecations(
48 index => $index # optional
49 )
50  
51 The C<deprecations()> API is to be used to retrieve information about different cluster, node,
52 and index level settings that use deprecated features that will be removed or changed in the
53 next major version.
54  
55 See the L<deprecations docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-deprecation.html>
56 for more information.
57  
58 Query string parameters:
59 C<error_trace>,
60 C<human>
61  
62 =head2 C<get_assistance()>
63  
64 $response = $es->migration->get_assistance(
65 index => $index | \@indices # optional
66 )
67  
68 The C<get_assistance()> API analyzes existing indices in the cluster and returns the information
69 about indices that require some changes before the cluster can be upgraded to the next major version.
70  
71 See the L<get_assistance docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-assistance.html>
72 for more information.
73  
74 Query string parameters:
75 C<allow_no_indices>,
76 C<error_trace>,
77 C<expand_wildcards>,
78 C<human>,
79 C<ignore_unavailable>
80  
81 =head2 C<upgrade()>
82  
83 $response = $es->migration->upgrade(
84 index => $index # required
85 )
86  
87 The C<upgrade()> API performs the upgrade of internal indices to make them compatible with the
88 next major version.
89  
90 See the L<upgrade() docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-upgrade.html>
91 for more information.
92  
93 Query string parameters:
94 C<error_trace>,
95 C<human>,
96 C<wait_for_completion>
97  
98 =head1 AUTHOR
99  
100 Enrico Zimuel <enrico.zimuel@elastic.co>
101  
102 =head1 COPYRIGHT AND LICENSE
103  
104 This software is Copyright (c) 2020 by Elasticsearch BV.
105  
106 This is free software, licensed under:
107  
108 The Apache License, Version 2.0, January 2004
109  
110 =cut
111  
112 __END__