Skip to content

Commit 5eae124

Browse files
committed
Updated endpoints to 7.13
1 parent 10cad65 commit 5eae124

File tree

4 files changed

+481
-26
lines changed

4 files changed

+481
-26
lines changed

lib/Search/Elasticsearch/Client/7_0/Direct.pm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ has 'dangling_indices' => ( is => 'lazy', init_arg => undef );
2222
has 'data_frame_transform_deprecated' => ( is => 'lazy', init_arg => undef );
2323
has 'enrich' => ( is => 'lazy', init_arg => undef );
2424
has 'eql' => ( is => 'lazy', init_arg => undef );
25+
has 'features' => ( is => 'lazy', init_arg => undef );
26+
has 'fleet' => ( is => 'lazy', init_arg => undef );
2527
has 'graph' => ( is => 'lazy', init_arg => undef );
2628
has 'ilm' => ( is => 'lazy', init_arg => undef );
2729
has 'indices' => ( is => 'lazy', init_arg => undef );
@@ -91,6 +93,8 @@ sub _build_dangling_indices { shift->_build_namespace('DanglingIndices') }
9193
sub _build_data_frame_transform_deprecated { shift->_build_namespace('DataFrameTransformDeprecated') }
9294
sub _build_enrich { shift->_build_namespace('Enrich') }
9395
sub _build_eql { shift->_build_namespace('Eql') }
96+
sub _build_features { shift->_build_namespace('Features') }
97+
sub _build_fleet { shift->_build_namespace('Fleet') }
9498
sub _build_graph { shift->_build_namespace('Graph') }
9599
sub _build_ilm { shift->_build_namespace('ILM') }
96100
sub _build_indices { shift->_build_namespace('Indices') }
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Licensed to Elasticsearch B.V. under one or more contributor
2+
# license agreements. See the NOTICE file distributed with
3+
# this work for additional information regarding copyright
4+
# ownership. Elasticsearch B.V. licenses this file to you under
5+
# the Apache License, Version 2.0 (the "License"); you may
6+
# not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
package Search::Elasticsearch::Client::7_0::Direct::Features;
19+
20+
use Moo;
21+
with 'Search::Elasticsearch::Client::7_0::Role::API';
22+
with 'Search::Elasticsearch::Role::Client::Direct';
23+
use namespace::clean;
24+
25+
__PACKAGE__->_install_api('features');
26+
27+
1;
28+
29+
__END__
30+
31+
# ABSTRACT: Features API of Search::Elasticsearch 7.x
32+
33+
=head2 DESCRIPTION
34+
35+
The full documentation for Features API is available here:
36+
L<https://www.elastic.co/guide/en/elasticsearch//reference/master/features-apis.html>
37+
38+
=head1 FOLLOW METHODS
39+
40+
=head2 C<follow()>
41+
42+
my $response = $es->features->get_features();
43+
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Licensed to Elasticsearch B.V. under one or more contributor
2+
# license agreements. See the NOTICE file distributed with
3+
# this work for additional information regarding copyright
4+
# ownership. Elasticsearch B.V. licenses this file to you under
5+
# the Apache License, Version 2.0 (the "License"); you may
6+
# not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
package Search::Elasticsearch::Client::7_0::Direct::Fleet;
19+
20+
use Moo;
21+
with 'Search::Elasticsearch::Client::7_0::Role::API';
22+
with 'Search::Elasticsearch::Role::Client::Direct';
23+
use namespace::clean;
24+
25+
__PACKAGE__->_install_api('fleet');
26+
27+
1;
28+
29+
__END__
30+
31+
# ABSTRACT: Fleet API of Search::Elasticsearch 7.x
32+
33+
=head2 DESCRIPTION
34+
35+
The full documentation for Fleet API is available here:
36+
L<https://www.elastic.co/guide/en/elasticsearch/reference/7.x/fleet-apis.html>
37+
38+
=head1 FOLLOW METHODS
39+
40+
=head2 C<follow()>
41+
42+
my $response = $es->fleet->global_checkpoints(
43+
index => 'my_index'
44+
);
45+

0 commit comments

Comments
 (0)