Skip to content

Commit 8625d9b

Browse files
committed
Updated endpoints to 8.11
1 parent 03e8aae commit 8625d9b

20 files changed

+1715
-232
lines changed

cpanfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ requires "File::Util::Tempdir" => "0";
99
requires "HTTP::Headers" => "0";
1010
requires "HTTP::Parser::XS" => "0";
1111
requires "HTTP::Request" => "0";
12-
requires "HTTP::Tiny" => "0.076";
12+
requires "HTTP::Tiny" => "0.088";
1313
requires "IO::Compress::Deflate" => "0";
1414
requires "IO::Compress::Gzip" => "0";
1515
requires "IO::Uncompress::Unzip" => "0";

lib/Search/Elasticsearch.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use Moo 2.001000 ();
2222
use Search::Elasticsearch::Util qw(parse_params load_plugin);
2323
use namespace::clean;
2424

25-
our $VERSION = '8.00';
25+
our $VERSION = '8.12';
2626

2727
my %Default_Plugins = (
2828
client => [ 'Search::Elasticsearch::Client', '8_0::Direct' ],

lib/Search/Elasticsearch/Async.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
package Search::Elasticsearch::Async;
1919

20-
our $VERSION = '8.00';
20+
our $VERSION = '8.12';
2121
use Search::Elasticsearch 8.00;
2222
use Promises 0.93 ();
2323
use parent 'Search::Elasticsearch';

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
package Search::Elasticsearch::Client::7_0;
1919

20-
our $VERSION='8.00';
20+
our $VERSION='8.12';
2121
use Search::Elasticsearch 8.00 ();
2222

2323
1;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
package Search::Elasticsearch::Client::7_0::Async;
1919

20-
our $VERSION='8.00';
21-
use Search::Elasticsearch::Client::7_0 7.00 ();
20+
our $VERSION='8.12';
21+
use Search::Elasticsearch::Client::7_0 8.12 ();
2222

2323
1;
2424

lib/Search/Elasticsearch/Client/8_0.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
package Search::Elasticsearch::Client::8_0;
1919

20-
our $VERSION='8.00';
20+
our $VERSION='8.12';
2121
use Search::Elasticsearch 8.00 ();
2222

2323
1;

lib/Search/Elasticsearch/Client/8_0/Async.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
package Search::Elasticsearch::Client::8_0::Async;
1919

20-
our $VERSION='8.00';
21-
use Search::Elasticsearch::Client::8_0 8.00 ();
20+
our $VERSION='8.12';
21+
use Search::Elasticsearch::Client::8_0 8.12 ();
2222

2323
1;
2424

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,30 +18,39 @@ has 'autoscaling' => ( is => 'lazy', init_arg => undef );
1818
has 'cat' => ( is => 'lazy', init_arg => undef );
1919
has 'ccr' => ( is => 'lazy', init_arg => undef );
2020
has 'cluster' => ( is => 'lazy', init_arg => undef );
21+
has 'connector' => ( is => 'lazy', init_arg => undef );
2122
has 'dangling_indices' => ( is => 'lazy', init_arg => undef );
2223
has 'enrich' => ( is => 'lazy', init_arg => undef );
2324
has 'eql' => ( is => 'lazy', init_arg => undef );
25+
has 'esql' => ( is => 'lazy', init_arg => undef );
2426
has 'features' => ( is => 'lazy', init_arg => undef );
2527
has 'fleet' => ( is => 'lazy', init_arg => undef );
2628
has 'graph' => ( is => 'lazy', init_arg => undef );
2729
has 'ilm' => ( is => 'lazy', init_arg => undef );
2830
has 'indices' => ( is => 'lazy', init_arg => undef );
31+
has 'inference' => ( is => 'lazy', init_arg => undef );
2932
has 'ingest' => ( is => 'lazy', init_arg => undef );
3033
has 'license' => ( is => 'lazy', init_arg => undef );
3134
has 'logstash' => ( is => 'lazy', init_arg => undef );
3235
has 'migration' => ( is => 'lazy', init_arg => undef );
3336
has 'ml' => ( is => 'lazy', init_arg => undef );
3437
has 'monitoring' => ( is => 'lazy', init_arg => undef );
3538
has 'nodes' => ( is => 'lazy', init_arg => undef );
39+
has 'profiling' => ( is => 'lazy', init_arg => undef );
40+
has 'query_ruleset' => ( is => 'lazy', init_arg => undef );
3641
has 'rollup' => ( is => 'lazy', init_arg => undef );
3742
has 'searchable_snapshots' => ( is => 'lazy', init_arg => undef );
43+
has 'search_application' => ( is => 'lazy', init_arg => undef );
3844
has 'security' => ( is => 'lazy', init_arg => undef );
3945
has 'shutdown' => ( is => 'lazy', init_arg => undef );
46+
has 'simulate' => ( is => 'lazy', init_arg => undef );
4047
has 'snapshot' => ( is => 'lazy', init_arg => undef );
4148
has 'slm' => ( is => 'lazy', init_arg => undef );
4249
has 'sql' => ( is => 'lazy', init_arg => undef );
4350
has 'ssl' => ( is => 'lazy', init_arg => undef );
51+
has 'synonyms' => ( is => 'lazy', init_arg => undef );
4452
has 'tasks' => ( is => 'lazy', init_arg => undef );
53+
has 'text_structure' => ( is => 'lazy', init_arg => undef );
4554
has 'transform' => ( is => 'lazy', init_arg => undef );
4655
has 'watcher' => ( is => 'lazy', init_arg => undef );
4756
has 'xpack' => ( is => 'lazy', init_arg => undef );
@@ -90,30 +99,39 @@ sub _build_async_search { shift->_build_namespace('AsyncSearch') }
9099
sub _build_cat { shift->_build_namespace('Cat') }
91100
sub _build_ccr { shift->_build_namespace('CCR') }
92101
sub _build_cluster { shift->_build_namespace('Cluster') }
102+
sub _build_connector { shift->_build_namespace('Connector') }
93103
sub _build_dangling_indices { shift->_build_namespace('DanglingIndices') }
94104
sub _build_enrich { shift->_build_namespace('Enrich') }
95105
sub _build_eql { shift->_build_namespace('Eql') }
106+
sub _build_esql { shift->_build_namespace('Esql') }
96107
sub _build_features { shift->_build_namespace('Features') }
97108
sub _build_fleet { shift->_build_namespace('Fleet') }
98109
sub _build_graph { shift->_build_namespace('Graph') }
99110
sub _build_ilm { shift->_build_namespace('ILM') }
100111
sub _build_indices { shift->_build_namespace('Indices') }
112+
sub _build_inference { shift->_build_namespace('Inference') }
101113
sub _build_ingest { shift->_build_namespace('Ingest') }
102114
sub _build_license { shift->_build_namespace('License') }
103115
sub _build_logstash { shift->_build_namespace('Logstash') }
104116
sub _build_migration { shift->_build_namespace('Migration') }
105117
sub _build_ml { shift->_build_namespace('ML') }
106118
sub _build_monitoring { shift->_build_namespace('Monitoring') }
107119
sub _build_nodes { shift->_build_namespace('Nodes') }
120+
sub _build_profiling { shift->_build_namespace('Profiling') }
121+
sub _build_query_ruleset { shift->_build_namespace('QueryRuleset') }
108122
sub _build_rollup { shift->_build_namespace('Rollup') }
109123
sub _build_searchable_snapshots { shift->_build_namespace('SearchableSnapshots') }
124+
sub _build_search_application { shift->_build_namespace('SearchApplication') }
110125
sub _build_security { shift->_build_namespace('Security') }
111126
sub _build_shutdown { shift->_build_namespace('Shutdown') }
127+
sub _build_simulate { shift->_build_namespace('Simulate') }
112128
sub _build_snapshot { shift->_build_namespace('Snapshot') }
113129
sub _build_slm { shift->_build_namespace('Slm') }
114130
sub _build_sql { shift->_build_namespace('SQL') }
115131
sub _build_ssl { shift->_build_namespace('SSL') }
132+
sub _build_synonyms { shift->_build_namespace('Synonyms') }
116133
sub _build_tasks { shift->_build_namespace('Tasks') }
134+
sub _build_text_structure { shift->_build_namespace('TextStructure') }
117135
sub _build_transform { shift->_build_namespace('Transform') }
118136
sub _build_watcher { shift->_build_namespace('Watcher') }
119137
sub _build_xpack { shift->_build_namespace('XPack') }
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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::8_0::Direct::Connector;
19+
20+
use Moo;
21+
with 'Search::Elasticsearch::Client::8_0::Role::API';
22+
with 'Search::Elasticsearch::Role::Client::Direct';
23+
__PACKAGE__->_install_api('connector');
24+
25+
1;
26+
27+
__END__
28+
29+
# ABSTRACT: A client for create and manage Elastic connectors
30+
31+
=head1 DESCRIPTION
32+
33+
The connector and sync jobs API provides a convenient way to create
34+
and manage Elastic connectors and sync jobs in an internal index.
35+
36+
This API provides an alternative to relying solely on Kibana UI
37+
for connector and sync job management. The API comes with a set of
38+
validations and assertions to ensure that the state representation
39+
in the internal index remains valid.
40+
41+
The full documentation for Eql feature is available here:
42+
L<https://www.elastic.co/guide/en/elasticsearch/reference/master/connector-apis.html>
43+
44+
It does L<Search::Elasticsearch::Role::Client::Direct>.
45+
46+
=head1 METHODS
47+
48+
=head2 C<put()>
49+
50+
$response = $e->connector->put(
51+
connector_id => "my-connector",
52+
body => {
53+
index_name => "search-google-drive",
54+
name => "My Connector",
55+
service_type => "google_drive"
56+
}
57+
);
58+
59+
The C<put()> method create a connector.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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::8_0::Direct::Esql;
19+
20+
use Moo;
21+
with 'Search::Elasticsearch::Client::8_0::Role::API';
22+
with 'Search::Elasticsearch::Role::Client::Direct';
23+
use namespace::clean;
24+
25+
__PACKAGE__->_install_api('esql');
26+
27+
1;
28+
29+
__END__
30+
31+
# ABSTRACT: The Elasticsearch Query Language (ES|QL) provides a
32+
powerful way to filter, transform, and analyze data stored in
33+
Elasticsearch, and in the future in other runtimes.
34+
It is designed to be easy to learn and use, by end users,
35+
SRE teams, application developers, and administrators.
36+
37+
=head2 DESCRIPTION
38+
39+
The full documentation for ES|QL feature is available here:
40+
L<https://www.elastic.co/guide/en/elasticsearch/reference/master/esql-apis.html>
41+
42+
=head1 FOLLOW METHODS
43+
44+
=head2 C<follow()>
45+
46+
my $response = $es->esql->query(
47+
'body' => {
48+
'query' => 'FROM sample_data'
49+
}
50+
);
51+
52+
An introduction to Elasticsearch Query Language is available here:
53+
L<https://www.elastic.co/guide/en/elasticsearch/reference/current/esql.html>
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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::8_0::Direct::Inference;
19+
20+
use Moo;
21+
with 'Search::Elasticsearch::Client::8_0::Role::API';
22+
with 'Search::Elasticsearch::Role::Client::Direct';
23+
use namespace::clean;
24+
25+
__PACKAGE__->_install_api('inference');
26+
27+
1;
28+
29+
__END__
30+
31+
# ABSTRACT: The inference APIs enable you to use certain services,
32+
such as ELSER, OpenAI, or Hugging Face, in your cluster.
33+
34+
=head2 DESCRIPTION
35+
36+
The full documentation for Inference is available here:
37+
L<https://www.elastic.co/guide/en/elasticsearch/reference/current/inference-apis.html>
38+
39+
=head1 FOLLOW METHODS
40+
41+
=head2 C<follow()>
42+
43+
my $response = $es->inference->put_model(
44+
'task_type' => 'sparse_embedding',
45+
'model_id' => 'my-elser-model',
46+
'body' => {
47+
'service' => 'elser',
48+
'service_settings' => {
49+
'num_allocations' => 1,
50+
'num_threads' => 1
51+
},
52+
'task_settings' => {}
53+
}
54+
);
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::8_0::Direct::Profiling;
19+
20+
use Moo;
21+
with 'Search::Elasticsearch::Client::8_0::Role::API';
22+
with 'Search::Elasticsearch::Role::Client::Direct';
23+
use namespace::clean;
24+
25+
__PACKAGE__->_install_api('profiling');
26+
27+
1;
28+
29+
__END__
30+
31+
# ABSTRACT: The Profile API returns basic information about
32+
the status of Universal Profiling.
33+
34+
=head2 DESCRIPTION
35+
36+
The full documentation for Universal Profiling is available here:
37+
L<https://www.elastic.co/guide/en/observability/current/universal-profiling.html>
38+
39+
=head1 FOLLOW METHODS
40+
41+
=head2 C<follow()>
42+
43+
my $response = $es->profiling->status();

0 commit comments

Comments
 (0)