Elasticsearch/Client/7_0/Direct/License.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::License;
6 $Search::Elasticsearch::Client::7_0::Direct::License::VERSION = '7.30_1'; # TRIAL
7  
8 $Search::Elasticsearch::Client::7_0::Direct::License::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('license');
15  
16 1;
17  
18 =pod
19  
20 =encoding UTF-8
21  
22 =head1 NAME
23  
24 Search::Elasticsearch::Client::7_0::Direct::License - Plugin providing License 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->license->get();
33  
34 =head2 DESCRIPTION
35  
36 This class extends the L<Search::Elasticsearch> client with a C<license>
37 namespace, to support the API for the License plugin for Elasticsearch.
38  
39 =head1 METHODS
40  
41 The full documentation for the License plugin is available here:
42 L<https://www.elastic.co/guide/en/x-pack/current/license-management.html>
43  
44 =head2 C<get()>
45  
46 $response = $es->license->get()
47  
48 The C<get()> method returns the currently installed license.
49  
50 See the L<license.get docs|https://www.elastic.co/guide/en/x-pack/current/listing-licenses.html>
51 for more information.
52  
53 Query string parameters:
54 C<error_trace>,
55 C<human>,
56 C<local>
57  
58 =head2 C<post()>
59  
60 $response = $es->license->post(
61 body => {...} # required
62 );
63  
64 The C<post()> method adds or updates the license for the cluster. The C<body>
65 can be passed as JSON or as a string.
66  
67 See the L<license.put docs|https://www.elastic.co/guide/en/x-pack/current/installing-license.html>
68 for more information.
69  
70 Query string parameters:
71 C<acknowledge>,
72 C<error_trace>,
73 C<human>
74  
75 =head2 C<get_basic_status()>
76  
77 $response = $es->license->get_basic_status()
78  
79 This API enables you to check the status of your basic license.
80  
81 Query string parameters:
82 C<error_trace>,
83 C<filter_path>,
84 C<human>
85  
86 See the L<get-basic-status docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/get-basic-status.html> for more.
87  
88 =head2 C<post_start_basic()>
89  
90 $response = $es->license->post_start_basic()
91  
92 This API enables you to initiate an indefinite basic license, which gives access to all the basic features.
93  
94 Query string parameters:
95 C<acknowledge>,
96 C<error_trace>,
97 C<filter_path>,
98 C<human>
99  
100 See the L<post-start-basic docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/start-basic.html> for more.
101  
102 =head2 C<get_trial_status()>
103  
104 $response = $es->license->get_trial_status()
105  
106 This API enables you to check the status of your trial license.
107  
108 Query string parameters:
109 C<error_trace>,
110 C<filter_path>,
111 C<human>
112  
113 See the L<get-trial-status docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trial-status.html> for more.
114  
115 =head2 C<post_start_trial()>
116  
117 $response = $es->license->post_start_trial()
118  
119 This API enables you to upgrade from a basic license to a 30-day trial license, which gives
120 access to the platinum features.
121  
122 Query string parameters:
123 C<acknowledge>,
124 C<error_trace>,
125 C<filter_path>,
126 C<human>
127  
128 See the L<post-start-trial docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/start-trial.html> for more.
129  
130 =head1 AUTHOR
131  
132 Enrico Zimuel <enrico.zimuel@elastic.co>
133  
134 =head1 COPYRIGHT AND LICENSE
135  
136 This software is Copyright (c) 2020 by Elasticsearch BV.
137  
138 This is free software, licensed under:
139  
140 The Apache License, Version 2.0, January 2004
141  
142 =cut
143  
144 __END__