Skip to content

Commit d58f3f8

Browse files
authored
Prepare version 9.1 (#261)
* Bump version * Update API to 9.1 * Add missing file
1 parent b344d87 commit d58f3f8

Some content is hidden

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

56 files changed

+4077
-1576
lines changed

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Makefile.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,19 @@ fn update_docs(old_version: &str, new_version: &Version) {
270270
Err(e) => panic!("{:?}", e),
271271
}
272272
}
273+
274+
for entry in glob("docs/docset.yml").unwrap() {
275+
match entry {
276+
Ok(path) => {
277+
let mut content = read_file(&path);
278+
content = content.replace(
279+
&format!("version: \"{}\"", old_version),
280+
&format!("version: \"{}\"", new_version.to_string()));
281+
write_file(&path, content);
282+
}
283+
Err(e) => panic!("{:?}", e),
284+
}
285+
}
273286
}
274287
275288
fn update_cargo_toml(new_version: &Version) -> String {

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ that is compatible with the version of Elasticsearch you're using
4646

4747
```toml
4848
[dependencies]
49-
elasticsearch = "9.0.0-alpha.1"
49+
elasticsearch = "9.1.0-alpha.1"
5050
```
5151

5252
The following _optional_ dependencies may also be useful to create requests and read responses

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 = "9.0.0-alpha.1"
3+
version = "9.1.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"

docs/docset.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ toc:
77
- toc: reference
88
subs:
99
es: "Elasticsearch"
10-
version: "9.0.0-alpha.1"
10+
version: "9.1.0-alpha.1"

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 = "9.0.0-alpha.1"
3+
version = "9.1.0-alpha.1"
44
edition = "2018"
55
authors = ["Elastic and Contributors"]
66
description = "Official Elasticsearch Rust client"

elasticsearch/src/.generated.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ written = [
3535
"snapshot.rs",
3636
"sql.rs",
3737
"ssl.rs",
38+
"streams.rs",
3839
"synonyms.rs",
3940
"tasks.rs",
4041
"text_structure.rs",

elasticsearch/src/async_search.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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/9.0/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/9.1/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,
@@ -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/9.0/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/9.1/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,
@@ -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/9.0/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/9.1/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,
@@ -462,7 +462,7 @@ impl<'b> AsyncSearchSubmitParts<'b> {
462462
}
463463
}
464464
}
465-
#[doc = "Builder for the [Async Search Submit API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/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/9.1/async-search.html)\n\nExecutes a search request asynchronously."]
466466
#[derive(Clone, Debug)]
467467
pub struct AsyncSearchSubmit<'a, 'b, B> {
468468
transport: &'a Transport,
@@ -1034,19 +1034,19 @@ impl<'a> AsyncSearch<'a> {
10341034
pub fn transport(&self) -> &Transport {
10351035
self.transport
10361036
}
1037-
#[doc = "[Async Search Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/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."]
1037+
#[doc = "[Async Search Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/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."]
10381038
pub fn delete<'b>(&'a self, parts: AsyncSearchDeleteParts<'b>) -> AsyncSearchDelete<'a, 'b> {
10391039
AsyncSearchDelete::new(self.transport(), parts)
10401040
}
1041-
#[doc = "[Async Search Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/async-search.html)\n\nRetrieves the results of a previously submitted async search request given its ID."]
1041+
#[doc = "[Async Search Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/async-search.html)\n\nRetrieves the results of a previously submitted async search request given its ID."]
10421042
pub fn get<'b>(&'a self, parts: AsyncSearchGetParts<'b>) -> AsyncSearchGet<'a, 'b> {
10431043
AsyncSearchGet::new(self.transport(), parts)
10441044
}
1045-
#[doc = "[Async Search Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/async-search.html)\n\nRetrieves the status of a previously submitted async search request given its ID."]
1045+
#[doc = "[Async Search Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/async-search.html)\n\nRetrieves the status of a previously submitted async search request given its ID."]
10461046
pub fn status<'b>(&'a self, parts: AsyncSearchStatusParts<'b>) -> AsyncSearchStatus<'a, 'b> {
10471047
AsyncSearchStatus::new(self.transport(), parts)
10481048
}
1049-
#[doc = "[Async Search Submit API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/async-search.html)\n\nExecutes a search request asynchronously."]
1049+
#[doc = "[Async Search Submit API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/async-search.html)\n\nExecutes a search request asynchronously."]
10501050
pub fn submit<'b>(
10511051
&'a self,
10521052
parts: AsyncSearchSubmitParts<'b>,

elasticsearch/src/autoscaling.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ impl<'b> AutoscalingDeleteAutoscalingPolicyParts<'b> {
6666
}
6767
}
6868
}
69-
#[doc = "Builder for the [Autoscaling Delete Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/autoscaling-delete-autoscaling-policy.html)\n\nDeletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
69+
#[doc = "Builder for the [Autoscaling Delete Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/autoscaling-delete-autoscaling-policy.html)\n\nDeletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
7070
#[derive(Clone, Debug)]
7171
pub struct AutoscalingDeleteAutoscalingPolicy<'a, 'b> {
7272
transport: &'a Transport,
@@ -199,7 +199,7 @@ impl AutoscalingGetAutoscalingCapacityParts {
199199
}
200200
}
201201
}
202-
#[doc = "Builder for the [Autoscaling Get Autoscaling Capacity API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/autoscaling-get-autoscaling-capacity.html)\n\nGets the current autoscaling capacity based on the configured autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
202+
#[doc = "Builder for the [Autoscaling Get Autoscaling Capacity API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/autoscaling-get-autoscaling-capacity.html)\n\nGets the current autoscaling capacity based on the configured autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
203203
#[derive(Clone, Debug)]
204204
pub struct AutoscalingGetAutoscalingCapacity<'a, 'b> {
205205
transport: &'a Transport,
@@ -326,7 +326,7 @@ impl<'b> AutoscalingGetAutoscalingPolicyParts<'b> {
326326
}
327327
}
328328
}
329-
#[doc = "Builder for the [Autoscaling Get Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/autoscaling-get-autoscaling-policy.html)\n\nRetrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
329+
#[doc = "Builder for the [Autoscaling Get Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/autoscaling-get-autoscaling-policy.html)\n\nRetrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
330330
#[derive(Clone, Debug)]
331331
pub struct AutoscalingGetAutoscalingPolicy<'a, 'b> {
332332
transport: &'a Transport,
@@ -453,7 +453,7 @@ impl<'b> AutoscalingPutAutoscalingPolicyParts<'b> {
453453
}
454454
}
455455
}
456-
#[doc = "Builder for the [Autoscaling Put Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/autoscaling-put-autoscaling-policy.html)\n\nCreates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
456+
#[doc = "Builder for the [Autoscaling Put Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/autoscaling-put-autoscaling-policy.html)\n\nCreates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
457457
#[derive(Clone, Debug)]
458458
pub struct AutoscalingPutAutoscalingPolicy<'a, 'b, B> {
459459
transport: &'a Transport,
@@ -606,25 +606,25 @@ impl<'a> Autoscaling<'a> {
606606
pub fn transport(&self) -> &Transport {
607607
self.transport
608608
}
609-
#[doc = "[Autoscaling Delete Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/autoscaling-delete-autoscaling-policy.html)\n\nDeletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
609+
#[doc = "[Autoscaling Delete Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/autoscaling-delete-autoscaling-policy.html)\n\nDeletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
610610
pub fn delete_autoscaling_policy<'b>(
611611
&'a self,
612612
parts: AutoscalingDeleteAutoscalingPolicyParts<'b>,
613613
) -> AutoscalingDeleteAutoscalingPolicy<'a, 'b> {
614614
AutoscalingDeleteAutoscalingPolicy::new(self.transport(), parts)
615615
}
616-
#[doc = "[Autoscaling Get Autoscaling Capacity API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/autoscaling-get-autoscaling-capacity.html)\n\nGets the current autoscaling capacity based on the configured autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
616+
#[doc = "[Autoscaling Get Autoscaling Capacity API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/autoscaling-get-autoscaling-capacity.html)\n\nGets the current autoscaling capacity based on the configured autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
617617
pub fn get_autoscaling_capacity<'b>(&'a self) -> AutoscalingGetAutoscalingCapacity<'a, 'b> {
618618
AutoscalingGetAutoscalingCapacity::new(self.transport())
619619
}
620-
#[doc = "[Autoscaling Get Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/autoscaling-get-autoscaling-policy.html)\n\nRetrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
620+
#[doc = "[Autoscaling Get Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/autoscaling-get-autoscaling-policy.html)\n\nRetrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
621621
pub fn get_autoscaling_policy<'b>(
622622
&'a self,
623623
parts: AutoscalingGetAutoscalingPolicyParts<'b>,
624624
) -> AutoscalingGetAutoscalingPolicy<'a, 'b> {
625625
AutoscalingGetAutoscalingPolicy::new(self.transport(), parts)
626626
}
627-
#[doc = "[Autoscaling Put Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/autoscaling-put-autoscaling-policy.html)\n\nCreates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
627+
#[doc = "[Autoscaling Put Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/autoscaling-put-autoscaling-policy.html)\n\nCreates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
628628
pub fn put_autoscaling_policy<'b>(
629629
&'a self,
630630
parts: AutoscalingPutAutoscalingPolicyParts<'b>,

0 commit comments

Comments
 (0)