Skip to content

Commit 626e483

Browse files
committed
Updated endpoints to ES 7.12.0
1 parent 25d419f commit 626e483

File tree

6 files changed

+248
-40
lines changed

6 files changed

+248
-40
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@ 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 );
2526
has 'graph' => ( is => 'lazy', init_arg => undef );
2627
has 'ilm' => ( is => 'lazy', init_arg => undef );
2728
has 'indices' => ( is => 'lazy', init_arg => undef );
2829
has 'ingest' => ( is => 'lazy', init_arg => undef );
2930
has 'license' => ( is => 'lazy', init_arg => undef );
31+
has 'logstash' => ( is => 'lazy', init_arg => undef );
3032
has 'migration' => ( is => 'lazy', init_arg => undef );
3133
has 'ml' => ( is => 'lazy', init_arg => undef );
3234
has 'monitoring' => ( is => 'lazy', init_arg => undef );
@@ -39,6 +41,7 @@ has 'slm' => ( is => 'lazy', init_arg => undef );
3941
has 'sql' => ( is => 'lazy', init_arg => undef );
4042
has 'ssl' => ( is => 'lazy', init_arg => undef );
4143
has 'tasks' => ( is => 'lazy', init_arg => undef );
44+
has 'text_structure' => ( is => 'lazy', init_arg => undef );
4245
has 'transform' => ( is => 'lazy', init_arg => undef );
4346
has 'watcher' => ( is => 'lazy', init_arg => undef );
4447
has 'xpack' => ( is => 'lazy', init_arg => undef );
@@ -91,11 +94,13 @@ sub _build_dangling_indices { shift->_build_namespace('DanglingIndices') }
9194
sub _build_data_frame_transform_deprecated { shift->_build_namespace('DataFrameTransformDeprecated') }
9295
sub _build_enrich { shift->_build_namespace('Enrich') }
9396
sub _build_eql { shift->_build_namespace('Eql') }
97+
sub _build_features { shift->_build_namespace('Features') }
9498
sub _build_graph { shift->_build_namespace('Graph') }
9599
sub _build_ilm { shift->_build_namespace('ILM') }
96100
sub _build_indices { shift->_build_namespace('Indices') }
97101
sub _build_ingest { shift->_build_namespace('Ingest') }
98102
sub _build_license { shift->_build_namespace('License') }
103+
sub _build_logstash { shift->_build_namespace('Logstash') }
99104
sub _build_migration { shift->_build_namespace('Migration') }
100105
sub _build_ml { shift->_build_namespace('ML') }
101106
sub _build_monitoring { shift->_build_namespace('Monitoring') }
@@ -108,6 +113,7 @@ sub _build_slm { shift->_build_namespace('Slm') }
108113
sub _build_sql { shift->_build_namespace('SQL') }
109114
sub _build_ssl { shift->_build_namespace('SSL') }
110115
sub _build_tasks { shift->_build_namespace('Tasks') }
116+
sub _build_text_structure { shift->_build_namespace('TextStructure') }
111117
sub _build_transform { shift->_build_namespace('Transform') }
112118
sub _build_watcher { shift->_build_namespace('Watcher') }
113119
sub _build_xpack { shift->_build_namespace('XPack') }
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: Plugin providing Features API for 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/7.12/features-apis.html>
37+
38+
=head1 FOLLOW METHODS
39+
40+
=head2 C<follow()>
41+
42+
my $response = $es->features->get_features();
43+
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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::Logstash;
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('logstash');
26+
27+
1;
28+
29+
__END__
30+
31+
# ABSTRACT: Plugin providing Logstash API for Search::Elasticsearch 7.x
32+
33+
=head1 SYNOPSIS
34+
35+
my $response = $es->logstash->get_pipeline(
36+
id => 'my_id'
37+
);
38+
39+
=head2 DESCRIPTION
40+
41+
This class extends the L<Search::Elasticsearch> client with a C<logstash>
42+
namespace, to support the API for the Logstash plugin for Elasticsearch.
43+
44+
=head1 METHODS
45+
46+
The full documentation for the Logstash plugin is available here:
47+
L<https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-apis.html>
48+
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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::TextStructure;
19+
20+
use Moo;
21+
with 'Search::Elasticsearch::Client::7_0::Role::API';
22+
with 'Search::Elasticsearch::Role::Client::Direct';
23+
__PACKAGE__->_install_api('text_structure');
24+
25+
1;
26+
27+
__END__
28+
29+
# ABSTRACT: Plugin providing TextStructure for Search::Elasticsearch 7.x
30+
31+
NOTE: this API is experimental and may be changed or removed completely in a future release
32+
33+
=head1 SYNOPSIS
34+
35+
my $response = $es->text_structure->find_structure(
36+
# values here
37+
);
38+
39+
=head2 DESCRIPTION
40+
41+
This class extends the L<Search::Elasticsearch> client with a C<text_structure>
42+
namespace, to support the API for the Text Structure plugin for Elasticsearch.
43+
44+
=head1 METHODS
45+
46+
The full documentation for the Text Structure plugin is available here:
47+
L<https://www.elastic.co/guide/en/elasticsearch/reference/current/find-structure.html>

lib/Search/Elasticsearch/Client/7_0/Role/API.pm

Lines changed: 102 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,7 @@ sub api {
818818
ignore_unavailable => "boolean",
819819
lenient => "boolean",
820820
max_concurrent_shard_requests => "number",
821+
min_compatible_shard_node => "string",
821822
pre_filter_shard_size => "number",
822823
preference => "string",
823824
q => "string",
@@ -1493,16 +1494,17 @@ sub api {
14931494
parts => {},
14941495
paths => [ [ {}, "_cat", "plugins" ] ],
14951496
qs => {
1496-
error_trace => "boolean",
1497-
filter_path => "list",
1498-
format => "string",
1499-
h => "list",
1500-
help => "boolean",
1501-
human => "boolean",
1502-
local => "boolean",
1503-
master_timeout => "time",
1504-
s => "list",
1505-
v => "boolean",
1497+
error_trace => "boolean",
1498+
filter_path => "list",
1499+
format => "string",
1500+
h => "list",
1501+
help => "boolean",
1502+
human => "boolean",
1503+
include_bootstrap => "boolean",
1504+
local => "boolean",
1505+
master_timeout => "time",
1506+
s => "list",
1507+
v => "boolean",
15061508
},
15071509
},
15081510

@@ -2380,6 +2382,17 @@ sub api {
23802382
},
23812383
},
23822384

2385+
'eql.get_status' => {
2386+
doc => "eql-search-api",
2387+
parts => { id => {} },
2388+
paths => [ [ { id => 3 }, "_eql", "search", "status", "{id}" ] ],
2389+
qs => {
2390+
error_trace => "boolean",
2391+
filter_path => "list",
2392+
human => "boolean"
2393+
},
2394+
},
2395+
23832396
'eql.search' => {
23842397
body => { required => 1 },
23852398
doc => "eql-search-api",
@@ -2395,6 +2408,18 @@ sub api {
23952408
},
23962409
},
23972410

2411+
'features.get_features' => {
2412+
doc => "modules-snapshots",
2413+
parts => {},
2414+
paths => [ [ {}, "_features" ] ],
2415+
qs => {
2416+
error_trace => "boolean",
2417+
filter_path => "list",
2418+
human => "boolean",
2419+
master_timeout => "time",
2420+
},
2421+
},
2422+
23982423
'graph.explore' => {
23992424
body => {},
24002425
doc => "graph-explore-api",
@@ -3685,6 +3710,42 @@ sub api {
36853710
},
36863711
},
36873712

3713+
'logstash.delete_pipeline' => {
3714+
doc => "logstash-api-delete-pipeline",
3715+
method => "DELETE",
3716+
parts => { id => {} },
3717+
paths => [ [ { id => 2 }, "_logstash", "pipeline", "{id}" ] ],
3718+
qs => {
3719+
error_trace => "boolean",
3720+
filter_path => "list",
3721+
human => "boolean"
3722+
},
3723+
},
3724+
3725+
'logstash.get_pipeline' => {
3726+
doc => "logstash-api-get-pipeline",
3727+
parts => { id => {} },
3728+
paths => [ [ { id => 2 }, "_logstash", "pipeline", "{id}" ] ],
3729+
qs => {
3730+
error_trace => "boolean",
3731+
filter_path => "list",
3732+
human => "boolean"
3733+
},
3734+
},
3735+
3736+
'logstash.put_pipeline' => {
3737+
body => { required => 1 },
3738+
doc => "logstash-api-put-pipeline",
3739+
method => "PUT",
3740+
parts => { id => {} },
3741+
paths => [ [ { id => 2 }, "_logstash", "pipeline", "{id}" ] ],
3742+
qs => {
3743+
error_trace => "boolean",
3744+
filter_path => "list",
3745+
human => "boolean"
3746+
},
3747+
},
3748+
36883749
'migration.deprecations' => {
36893750
doc => "migration-api-deprecation",
36903751
parts => { index => {} },
@@ -3938,34 +3999,6 @@ sub api {
39383999
},
39394000
},
39404001

3941-
'ml.find_file_structure' => {
3942-
body => { required => 1 },
3943-
doc => "ml-find-file-structure",
3944-
method => "POST",
3945-
parts => {},
3946-
paths => [ [ {}, "_ml", "find_file_structure" ] ],
3947-
qs => {
3948-
charset => "string",
3949-
column_names => "list",
3950-
delimiter => "string",
3951-
error_trace => "boolean",
3952-
explain => "boolean",
3953-
filter_path => "list",
3954-
format => "enum",
3955-
grok_pattern => "string",
3956-
has_header_row => "boolean",
3957-
human => "boolean",
3958-
line_merge_size_limit => "int",
3959-
lines_to_sample => "int",
3960-
quote => "string",
3961-
should_trim_fields => "boolean",
3962-
timeout => "time",
3963-
timestamp_field => "string",
3964-
timestamp_format => "string",
3965-
},
3966-
serialize => "bulk",
3967-
},
3968-
39694002
'ml.flush_job' => {
39704003
body => {},
39714004
doc => "ml-flush-job",
@@ -5115,6 +5148,7 @@ sub api {
51155148
filter_path => "list",
51165149
human => "boolean",
51175150
master_timeout => "time",
5151+
storage => "string",
51185152
wait_for_completion => "boolean",
51195153
},
51205154
},
@@ -5142,7 +5176,8 @@ sub api {
51425176
qs => {
51435177
error_trace => "boolean",
51445178
filter_path => "list",
5145-
human => "boolean"
5179+
human => "boolean",
5180+
level => "enum",
51465181
},
51475182
},
51485183

@@ -5982,6 +6017,34 @@ sub api {
59826017
},
59836018
},
59846019

6020+
'text_structure.find_structure' => {
6021+
body => { required => 1 },
6022+
doc => "find-structure",
6023+
method => "POST",
6024+
parts => {},
6025+
paths => [ [ {}, "_text_structure", "find_structure" ] ],
6026+
qs => {
6027+
charset => "string",
6028+
column_names => "list",
6029+
delimiter => "string",
6030+
error_trace => "boolean",
6031+
explain => "boolean",
6032+
filter_path => "list",
6033+
format => "enum",
6034+
grok_pattern => "string",
6035+
has_header_row => "boolean",
6036+
human => "boolean",
6037+
line_merge_size_limit => "int",
6038+
lines_to_sample => "int",
6039+
quote => "string",
6040+
should_trim_fields => "boolean",
6041+
timeout => "time",
6042+
timestamp_field => "string",
6043+
timestamp_format => "string",
6044+
},
6045+
serialize => "bulk",
6046+
},
6047+
59856048
'transform.delete_transform' => {
59866049
doc => "delete-transform",
59876050
method => "DELETE",

0 commit comments

Comments
 (0)