Skip to content

Commit a15f168

Browse files
committed
Bump version and generate code for 8.15.0
1 parent fefdf8d commit a15f168

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+19639
-3211
lines changed

api_generator/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "api_generator"
3-
version = "8.7.0-alpha.1"
3+
version = "8.15.0-alpha.1"
44
publish = false
55
description = "Generates source code for elasticsearch package, from the Elasticsearch REST API specs"
66
repository = "https://github.com/elastic/elasticsearch-rs"

elasticsearch/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "elasticsearch"
3-
version = "8.6.0-alpha.1"
3+
version = "8.15.0-alpha.1"
44
edition = "2018"
55
authors = ["Elastic and Contributors"]
66
description = "Official Elasticsearch Rust client"

elasticsearch/src/.generated.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,38 @@ written = [
44
'cat.rs',
55
'ccr.rs',
66
'cluster.rs',
7+
'connector.rs',
78
'dangling_indices.rs',
89
'enrich.rs',
910
'eql.rs',
11+
'esql.rs',
1012
'features.rs',
1113
'fleet.rs',
1214
'graph.rs',
1315
'ilm.rs',
1416
'indices.rs',
17+
'inference.rs',
1518
'ingest.rs',
1619
'license.rs',
1720
'logstash.rs',
1821
'migration.rs',
1922
'ml.rs',
2023
'monitoring.rs',
2124
'nodes.rs',
25+
'profiling.rs',
26+
'query_rules.rs',
2227
'rollup.rs',
2328
'root/mod.rs',
29+
'search_application.rs',
2430
'searchable_snapshots.rs',
2531
'security.rs',
2632
'shutdown.rs',
33+
'simulate.rs',
2734
'slm.rs',
2835
'snapshot.rs',
2936
'sql.rs',
3037
'ssl.rs',
38+
'synonyms.rs',
3139
'tasks.rs',
3240
'text_structure.rs',
3341
'transform.rs',

elasticsearch/src/async_search.rs

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ use crate::{
3535
client::Elasticsearch,
3636
error::Error,
3737
http::{
38+
self,
3839
headers::{HeaderMap, HeaderName, HeaderValue, ACCEPT, CONTENT_TYPE},
3940
request::{Body, JsonBody, NdBody, PARTS_ENCODED},
4041
response::Response,
4142
transport::Transport,
42-
Method,
4343
},
4444
params::*,
4545
};
@@ -66,7 +66,7 @@ impl<'b> AsyncSearchDeleteParts<'b> {
6666
}
6767
}
6868
}
69-
#[doc = "Builder for the [Async Search Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/8.3/async-search.html)\n\nDeletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted."]
69+
#[doc = "Builder for the [Async Search Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/async-search.html)\n\nDeletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted."]
7070
#[derive(Clone, Debug)]
7171
pub struct AsyncSearchDelete<'a, 'b> {
7272
transport: &'a Transport,
@@ -133,7 +133,7 @@ impl<'a, 'b> AsyncSearchDelete<'a, 'b> {
133133
#[doc = "Creates an asynchronous call to the Async Search Delete API that can be awaited"]
134134
pub async fn send(self) -> Result<Response, Error> {
135135
let path = self.parts.url();
136-
let method = Method::Delete;
136+
let method = http::Method::Delete;
137137
let headers = self.headers;
138138
let timeout = self.request_timeout;
139139
let query_string = {
@@ -184,7 +184,7 @@ impl<'b> AsyncSearchGetParts<'b> {
184184
}
185185
}
186186
}
187-
#[doc = "Builder for the [Async Search Get API](https://www.elastic.co/guide/en/elasticsearch/reference/8.3/async-search.html)\n\nRetrieves the results of a previously submitted async search request given its ID."]
187+
#[doc = "Builder for the [Async Search Get API](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/async-search.html)\n\nRetrieves the results of a previously submitted async search request given its ID."]
188188
#[derive(Clone, Debug)]
189189
pub struct AsyncSearchGet<'a, 'b> {
190190
transport: &'a Transport,
@@ -272,7 +272,7 @@ impl<'a, 'b> AsyncSearchGet<'a, 'b> {
272272
#[doc = "Creates an asynchronous call to the Async Search Get API that can be awaited"]
273273
pub async fn send(self) -> Result<Response, Error> {
274274
let path = self.parts.url();
275-
let method = Method::Get;
275+
let method = http::Method::Get;
276276
let headers = self.headers;
277277
let timeout = self.request_timeout;
278278
let query_string = {
@@ -329,7 +329,7 @@ impl<'b> AsyncSearchStatusParts<'b> {
329329
}
330330
}
331331
}
332-
#[doc = "Builder for the [Async Search Status API](https://www.elastic.co/guide/en/elasticsearch/reference/8.3/async-search.html)\n\nRetrieves the status of a previously submitted async search request given its ID."]
332+
#[doc = "Builder for the [Async Search Status API](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/async-search.html)\n\nRetrieves the status of a previously submitted async search request given its ID."]
333333
#[derive(Clone, Debug)]
334334
pub struct AsyncSearchStatus<'a, 'b> {
335335
transport: &'a Transport,
@@ -338,6 +338,7 @@ pub struct AsyncSearchStatus<'a, 'b> {
338338
filter_path: Option<&'b [&'b str]>,
339339
headers: HeaderMap,
340340
human: Option<bool>,
341+
keep_alive: Option<&'b str>,
341342
pretty: Option<bool>,
342343
request_timeout: Option<Duration>,
343344
source: Option<&'b str>,
@@ -353,6 +354,7 @@ impl<'a, 'b> AsyncSearchStatus<'a, 'b> {
353354
error_trace: None,
354355
filter_path: None,
355356
human: None,
357+
keep_alive: None,
356358
pretty: None,
357359
request_timeout: None,
358360
source: None,
@@ -378,6 +380,11 @@ impl<'a, 'b> AsyncSearchStatus<'a, 'b> {
378380
self.human = Some(human);
379381
self
380382
}
383+
#[doc = "Specify the time interval in which the results (partial or final) for this search will be available"]
384+
pub fn keep_alive(mut self, keep_alive: &'b str) -> Self {
385+
self.keep_alive = Some(keep_alive);
386+
self
387+
}
381388
#[doc = "Pretty format the returned JSON response."]
382389
pub fn pretty(mut self, pretty: bool) -> Self {
383390
self.pretty = Some(pretty);
@@ -396,7 +403,7 @@ impl<'a, 'b> AsyncSearchStatus<'a, 'b> {
396403
#[doc = "Creates an asynchronous call to the Async Search Status API that can be awaited"]
397404
pub async fn send(self) -> Result<Response, Error> {
398405
let path = self.parts.url();
399-
let method = Method::Get;
406+
let method = http::Method::Get;
400407
let headers = self.headers;
401408
let timeout = self.request_timeout;
402409
let query_string = {
@@ -407,13 +414,15 @@ impl<'a, 'b> AsyncSearchStatus<'a, 'b> {
407414
#[serde(serialize_with = "crate::client::serialize_coll_qs")]
408415
filter_path: Option<&'b [&'b str]>,
409416
human: Option<bool>,
417+
keep_alive: Option<&'b str>,
410418
pretty: Option<bool>,
411419
source: Option<&'b str>,
412420
}
413421
let query_params = QueryParams {
414422
error_trace: self.error_trace,
415423
filter_path: self.filter_path,
416424
human: self.human,
425+
keep_alive: self.keep_alive,
417426
pretty: self.pretty,
418427
source: self.source,
419428
};
@@ -453,7 +462,7 @@ impl<'b> AsyncSearchSubmitParts<'b> {
453462
}
454463
}
455464
}
456-
#[doc = "Builder for the [Async Search Submit API](https://www.elastic.co/guide/en/elasticsearch/reference/8.3/async-search.html)\n\nExecutes a search request asynchronously."]
465+
#[doc = "Builder for the [Async Search Submit API](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/async-search.html)\n\nExecutes a search request asynchronously."]
457466
#[derive(Clone, Debug)]
458467
pub struct AsyncSearchSubmit<'a, 'b, B> {
459468
transport: &'a Transport,
@@ -871,7 +880,7 @@ where
871880
#[doc = "Creates an asynchronous call to the Async Search Submit API that can be awaited"]
872881
pub async fn send(self) -> Result<Response, Error> {
873882
let path = self.parts.url();
874-
let method = Method::Post;
883+
let method = http::Method::Post;
875884
let headers = self.headers;
876885
let timeout = self.request_timeout;
877886
let query_string = {
@@ -1005,19 +1014,19 @@ impl<'a> AsyncSearch<'a> {
10051014
pub fn transport(&self) -> &Transport {
10061015
self.transport
10071016
}
1008-
#[doc = "[Async Search Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/8.3/async-search.html)\n\nDeletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted."]
1017+
#[doc = "[Async Search Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/async-search.html)\n\nDeletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted."]
10091018
pub fn delete<'b>(&'a self, parts: AsyncSearchDeleteParts<'b>) -> AsyncSearchDelete<'a, 'b> {
10101019
AsyncSearchDelete::new(self.transport(), parts)
10111020
}
1012-
#[doc = "[Async Search Get API](https://www.elastic.co/guide/en/elasticsearch/reference/8.3/async-search.html)\n\nRetrieves the results of a previously submitted async search request given its ID."]
1021+
#[doc = "[Async Search Get API](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/async-search.html)\n\nRetrieves the results of a previously submitted async search request given its ID."]
10131022
pub fn get<'b>(&'a self, parts: AsyncSearchGetParts<'b>) -> AsyncSearchGet<'a, 'b> {
10141023
AsyncSearchGet::new(self.transport(), parts)
10151024
}
1016-
#[doc = "[Async Search Status API](https://www.elastic.co/guide/en/elasticsearch/reference/8.3/async-search.html)\n\nRetrieves the status of a previously submitted async search request given its ID."]
1025+
#[doc = "[Async Search Status API](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/async-search.html)\n\nRetrieves the status of a previously submitted async search request given its ID."]
10171026
pub fn status<'b>(&'a self, parts: AsyncSearchStatusParts<'b>) -> AsyncSearchStatus<'a, 'b> {
10181027
AsyncSearchStatus::new(self.transport(), parts)
10191028
}
1020-
#[doc = "[Async Search Submit API](https://www.elastic.co/guide/en/elasticsearch/reference/8.3/async-search.html)\n\nExecutes a search request asynchronously."]
1029+
#[doc = "[Async Search Submit API](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/async-search.html)\n\nExecutes a search request asynchronously."]
10211030
pub fn submit<'b>(
10221031
&'a self,
10231032
parts: AsyncSearchSubmitParts<'b>,

0 commit comments

Comments
 (0)