diff --git a/Cargo.lock b/Cargo.lock index 17142816..b4eee64e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -120,7 +120,7 @@ checksum = "e16d2d3311acee920a9eb8d33b8cbc1787ce4a264e85f964c2404b969bdcd487" [[package]] name = "api_generator" -version = "9.0.0-alpha.1" +version = "9.1.0-alpha.1" dependencies = [ "Inflector", "anyhow", @@ -627,7 +627,7 @@ checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719" [[package]] name = "elasticsearch" -version = "9.0.0-alpha.1" +version = "9.1.0-alpha.1" dependencies = [ "anyhow", "axum", @@ -3085,7 +3085,7 @@ checksum = "32ac00cd3f8ec9c1d33fb3e7958a82df6989c42d747bd326c822b1d625283547" [[package]] name = "xtask" -version = "9.0.0-alpha.1" +version = "9.1.0-alpha.1" dependencies = [ "anyhow", "chrono", @@ -3119,7 +3119,7 @@ dependencies = [ [[package]] name = "yaml_test_runner" -version = "9.0.0-alpha.1" +version = "9.1.0-alpha.1" dependencies = [ "Inflector", "anyhow", diff --git a/Makefile.toml b/Makefile.toml index a438b6f0..f9dae7b2 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -270,6 +270,19 @@ fn update_docs(old_version: &str, new_version: &Version) { Err(e) => panic!("{:?}", e), } } + + for entry in glob("docs/docset.yml").unwrap() { + match entry { + Ok(path) => { + let mut content = read_file(&path); + content = content.replace( + &format!("version: \"{}\"", old_version), + &format!("version: \"{}\"", new_version.to_string())); + write_file(&path, content); + } + Err(e) => panic!("{:?}", e), + } + } } fn update_cargo_toml(new_version: &Version) -> String { diff --git a/README.md b/README.md index e943f15b..113b6398 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ that is compatible with the version of Elasticsearch you're using ```toml [dependencies] -elasticsearch = "9.0.0-alpha.1" +elasticsearch = "9.1.0-alpha.1" ``` The following _optional_ dependencies may also be useful to create requests and read responses diff --git a/api_generator/Cargo.toml b/api_generator/Cargo.toml index 5f7e1604..0955c927 100644 --- a/api_generator/Cargo.toml +++ b/api_generator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "api_generator" -version = "9.0.0-alpha.1" +version = "9.1.0-alpha.1" publish = false description = "Generates source code for elasticsearch package, from the Elasticsearch REST API specs" repository = "https://github.com/elastic/elasticsearch-rs" diff --git a/docs/docset.yml b/docs/docset.yml index fe028e8d..4b9612ab 100644 --- a/docs/docset.yml +++ b/docs/docset.yml @@ -7,4 +7,4 @@ toc: - toc: reference subs: es: "Elasticsearch" - version: "9.0.0-alpha.1" + version: "9.1.0-alpha.1" diff --git a/elasticsearch/Cargo.toml b/elasticsearch/Cargo.toml index 2d2ac706..c1205d97 100644 --- a/elasticsearch/Cargo.toml +++ b/elasticsearch/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "elasticsearch" -version = "9.0.0-alpha.1" +version = "9.1.0-alpha.1" edition = "2018" authors = ["Elastic and Contributors"] description = "Official Elasticsearch Rust client" diff --git a/elasticsearch/src/.generated.toml b/elasticsearch/src/.generated.toml index d3de017d..6c780353 100644 --- a/elasticsearch/src/.generated.toml +++ b/elasticsearch/src/.generated.toml @@ -35,6 +35,7 @@ written = [ "snapshot.rs", "sql.rs", "ssl.rs", + "streams.rs", "synonyms.rs", "tasks.rs", "text_structure.rs", diff --git a/elasticsearch/src/async_search.rs b/elasticsearch/src/async_search.rs index b4852e55..30df25e3 100644 --- a/elasticsearch/src/async_search.rs +++ b/elasticsearch/src/async_search.rs @@ -66,7 +66,7 @@ impl<'b> AsyncSearchDeleteParts<'b> { } } } -#[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."] +#[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."] #[derive(Clone, Debug)] pub struct AsyncSearchDelete<'a, 'b> { transport: &'a Transport, @@ -184,7 +184,7 @@ impl<'b> AsyncSearchGetParts<'b> { } } } -#[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."] +#[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."] #[derive(Clone, Debug)] pub struct AsyncSearchGet<'a, 'b> { transport: &'a Transport, @@ -329,7 +329,7 @@ impl<'b> AsyncSearchStatusParts<'b> { } } } -#[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."] +#[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."] #[derive(Clone, Debug)] pub struct AsyncSearchStatus<'a, 'b> { transport: &'a Transport, @@ -462,7 +462,7 @@ impl<'b> AsyncSearchSubmitParts<'b> { } } } -#[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."] +#[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."] #[derive(Clone, Debug)] pub struct AsyncSearchSubmit<'a, 'b, B> { transport: &'a Transport, @@ -1034,19 +1034,19 @@ impl<'a> AsyncSearch<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[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."] + #[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."] pub fn delete<'b>(&'a self, parts: AsyncSearchDeleteParts<'b>) -> AsyncSearchDelete<'a, 'b> { AsyncSearchDelete::new(self.transport(), parts) } - #[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."] + #[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."] pub fn get<'b>(&'a self, parts: AsyncSearchGetParts<'b>) -> AsyncSearchGet<'a, 'b> { AsyncSearchGet::new(self.transport(), parts) } - #[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."] + #[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."] pub fn status<'b>(&'a self, parts: AsyncSearchStatusParts<'b>) -> AsyncSearchStatus<'a, 'b> { AsyncSearchStatus::new(self.transport(), parts) } - #[doc = "[Async Search Submit API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/async-search.html)\n\nExecutes a search request asynchronously."] + #[doc = "[Async Search Submit API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/async-search.html)\n\nExecutes a search request asynchronously."] pub fn submit<'b>( &'a self, parts: AsyncSearchSubmitParts<'b>, diff --git a/elasticsearch/src/autoscaling.rs b/elasticsearch/src/autoscaling.rs index 26230be4..95993100 100644 --- a/elasticsearch/src/autoscaling.rs +++ b/elasticsearch/src/autoscaling.rs @@ -66,7 +66,7 @@ impl<'b> AutoscalingDeleteAutoscalingPolicyParts<'b> { } } } -#[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."] +#[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."] #[derive(Clone, Debug)] pub struct AutoscalingDeleteAutoscalingPolicy<'a, 'b> { transport: &'a Transport, @@ -199,7 +199,7 @@ impl AutoscalingGetAutoscalingCapacityParts { } } } -#[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."] +#[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."] #[derive(Clone, Debug)] pub struct AutoscalingGetAutoscalingCapacity<'a, 'b> { transport: &'a Transport, @@ -326,7 +326,7 @@ impl<'b> AutoscalingGetAutoscalingPolicyParts<'b> { } } } -#[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."] +#[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."] #[derive(Clone, Debug)] pub struct AutoscalingGetAutoscalingPolicy<'a, 'b> { transport: &'a Transport, @@ -453,7 +453,7 @@ impl<'b> AutoscalingPutAutoscalingPolicyParts<'b> { } } } -#[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."] +#[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."] #[derive(Clone, Debug)] pub struct AutoscalingPutAutoscalingPolicy<'a, 'b, B> { transport: &'a Transport, @@ -606,25 +606,25 @@ impl<'a> Autoscaling<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[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."] + #[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."] pub fn delete_autoscaling_policy<'b>( &'a self, parts: AutoscalingDeleteAutoscalingPolicyParts<'b>, ) -> AutoscalingDeleteAutoscalingPolicy<'a, 'b> { AutoscalingDeleteAutoscalingPolicy::new(self.transport(), parts) } - #[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."] + #[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."] pub fn get_autoscaling_capacity<'b>(&'a self) -> AutoscalingGetAutoscalingCapacity<'a, 'b> { AutoscalingGetAutoscalingCapacity::new(self.transport()) } - #[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."] + #[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."] pub fn get_autoscaling_policy<'b>( &'a self, parts: AutoscalingGetAutoscalingPolicyParts<'b>, ) -> AutoscalingGetAutoscalingPolicy<'a, 'b> { AutoscalingGetAutoscalingPolicy::new(self.transport(), parts) } - #[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."] + #[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."] pub fn put_autoscaling_policy<'b>( &'a self, parts: AutoscalingPutAutoscalingPolicyParts<'b>, diff --git a/elasticsearch/src/cat.rs b/elasticsearch/src/cat.rs index c0011dde..e97fda07 100644 --- a/elasticsearch/src/cat.rs +++ b/elasticsearch/src/cat.rs @@ -160,7 +160,7 @@ impl<'b> CatAliasesParts<'b> { } } } -#[doc = "Builder for the [Cat Aliases API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-alias.html)\n\nShows information about currently configured aliases to indices including filter and routing infos."] +#[doc = "Builder for the [Cat Aliases API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-alias.html)\n\nShows information about currently configured aliases to indices including filter and routing infos."] #[derive(Clone, Debug)] pub struct CatAliases<'a, 'b> { transport: &'a Transport, @@ -351,7 +351,7 @@ impl<'b> CatAllocationParts<'b> { } } } -#[doc = "Builder for the [Cat Allocation API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-allocation.html)\n\nProvides a snapshot of how many shards are allocated to each data node and how much disk space they are using."] +#[doc = "Builder for the [Cat Allocation API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-allocation.html)\n\nProvides a snapshot of how many shards are allocated to each data node and how much disk space they are using."] #[derive(Clone, Debug)] pub struct CatAllocation<'a, 'b> { transport: &'a Transport, @@ -548,7 +548,7 @@ impl<'b> CatComponentTemplatesParts<'b> { } } } -#[doc = "Builder for the [Cat Component Templates API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-component-templates.html)\n\nReturns information about existing component_templates templates."] +#[doc = "Builder for the [Cat Component Templates API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-component-templates.html)\n\nReturns information about existing component_templates templates."] #[derive(Clone, Debug)] pub struct CatComponentTemplates<'a, 'b> { transport: &'a Transport, @@ -738,7 +738,7 @@ impl<'b> CatCountParts<'b> { } } } -#[doc = "Builder for the [Cat Count API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-count.html)\n\nProvides quick access to the document count of the entire cluster, or individual indices."] +#[doc = "Builder for the [Cat Count API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-count.html)\n\nProvides quick access to the document count of the entire cluster, or individual indices."] #[derive(Clone, Debug)] pub struct CatCount<'a, 'b> { transport: &'a Transport, @@ -910,7 +910,7 @@ impl<'b> CatFielddataParts<'b> { } } } -#[doc = "Builder for the [Cat Fielddata API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-fielddata.html)\n\nShows how much heap memory is currently being used by fielddata on every data node in the cluster."] +#[doc = "Builder for the [Cat Fielddata API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-fielddata.html)\n\nShows how much heap memory is currently being used by fielddata on every data node in the cluster."] #[derive(Clone, Debug)] pub struct CatFielddata<'a, 'b> { transport: &'a Transport, @@ -1090,7 +1090,7 @@ impl CatHealthParts { } } } -#[doc = "Builder for the [Cat Health API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-health.html)\n\nReturns a concise representation of the cluster health."] +#[doc = "Builder for the [Cat Health API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-health.html)\n\nReturns a concise representation of the cluster health."] #[derive(Clone, Debug)] pub struct CatHealth<'a, 'b> { transport: &'a Transport, @@ -1269,7 +1269,7 @@ impl CatHelpParts { } } } -#[doc = "Builder for the [Cat Help API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat.html)\n\nReturns help for the Cat APIs."] +#[doc = "Builder for the [Cat Help API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat.html)\n\nReturns help for the Cat APIs."] #[derive(Clone, Debug)] pub struct CatHelp<'a, 'b> { transport: &'a Transport, @@ -1394,7 +1394,7 @@ impl<'b> CatIndicesParts<'b> { } } } -#[doc = "Builder for the [Cat Indices API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-indices.html)\n\nReturns information about indices: number of primaries and replicas, document counts, disk size, ..."] +#[doc = "Builder for the [Cat Indices API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-indices.html)\n\nReturns information about indices: number of primaries and replicas, document counts, disk size, ..."] #[derive(Clone, Debug)] pub struct CatIndices<'a, 'b> { transport: &'a Transport, @@ -1619,7 +1619,7 @@ impl CatMasterParts { } } } -#[doc = "Builder for the [Cat Master API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-master.html)\n\nReturns information about the master node."] +#[doc = "Builder for the [Cat Master API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-master.html)\n\nReturns information about the master node."] #[derive(Clone, Debug)] pub struct CatMaster<'a, 'b> { transport: &'a Transport, @@ -1807,7 +1807,7 @@ impl<'b> CatMlDataFrameAnalyticsParts<'b> { } } } -#[doc = "Builder for the [Cat Ml Data Frame Analytics API](http://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-dfanalytics.html)\n\nGets configuration and usage information about data frame analytics jobs."] +#[doc = "Builder for the [Cat Ml Data Frame Analytics API](http://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-dfanalytics.html)\n\nGets configuration and usage information about data frame analytics jobs."] #[derive(Clone, Debug)] pub struct CatMlDataFrameAnalytics<'a, 'b> { transport: &'a Transport, @@ -2005,7 +2005,7 @@ impl<'b> CatMlDatafeedsParts<'b> { } } } -#[doc = "Builder for the [Cat Ml Datafeeds API](http://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-datafeeds.html)\n\nGets configuration and usage information about datafeeds."] +#[doc = "Builder for the [Cat Ml Datafeeds API](http://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-datafeeds.html)\n\nGets configuration and usage information about datafeeds."] #[derive(Clone, Debug)] pub struct CatMlDatafeeds<'a, 'b> { transport: &'a Transport, @@ -2194,7 +2194,7 @@ impl<'b> CatMlJobsParts<'b> { } } } -#[doc = "Builder for the [Cat Ml Jobs API](http://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-anomaly-detectors.html)\n\nGets configuration and usage information about anomaly detection jobs."] +#[doc = "Builder for the [Cat Ml Jobs API](http://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-anomaly-detectors.html)\n\nGets configuration and usage information about anomaly detection jobs."] #[derive(Clone, Debug)] pub struct CatMlJobs<'a, 'b> { transport: &'a Transport, @@ -2392,7 +2392,7 @@ impl<'b> CatMlTrainedModelsParts<'b> { } } } -#[doc = "Builder for the [Cat Ml Trained Models API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-trained-model.html)\n\nGets configuration and usage information about inference trained models."] +#[doc = "Builder for the [Cat Ml Trained Models API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-trained-model.html)\n\nGets configuration and usage information about inference trained models."] #[derive(Clone, Debug)] pub struct CatMlTrainedModels<'a, 'b> { transport: &'a Transport, @@ -2598,7 +2598,7 @@ impl CatNodeattrsParts { } } } -#[doc = "Builder for the [Cat Nodeattrs API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-nodeattrs.html)\n\nReturns information about custom node attributes."] +#[doc = "Builder for the [Cat Nodeattrs API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-nodeattrs.html)\n\nReturns information about custom node attributes."] #[derive(Clone, Debug)] pub struct CatNodeattrs<'a, 'b> { transport: &'a Transport, @@ -2777,7 +2777,7 @@ impl CatNodesParts { } } } -#[doc = "Builder for the [Cat Nodes API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-nodes.html)\n\nReturns basic statistics about performance of cluster nodes."] +#[doc = "Builder for the [Cat Nodes API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-nodes.html)\n\nReturns basic statistics about performance of cluster nodes."] #[derive(Clone, Debug)] pub struct CatNodes<'a, 'b> { transport: &'a Transport, @@ -2983,7 +2983,7 @@ impl CatPendingTasksParts { } } } -#[doc = "Builder for the [Cat Pending Tasks API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-pending-tasks.html)\n\nReturns a concise representation of the cluster pending tasks."] +#[doc = "Builder for the [Cat Pending Tasks API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-pending-tasks.html)\n\nReturns a concise representation of the cluster pending tasks."] #[derive(Clone, Debug)] pub struct CatPendingTasks<'a, 'b> { transport: &'a Transport, @@ -3171,7 +3171,7 @@ impl CatPluginsParts { } } } -#[doc = "Builder for the [Cat Plugins API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-plugins.html)\n\nReturns information about installed plugins across nodes node."] +#[doc = "Builder for the [Cat Plugins API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-plugins.html)\n\nReturns information about installed plugins across nodes node."] #[derive(Clone, Debug)] pub struct CatPlugins<'a, 'b> { transport: &'a Transport, @@ -3370,7 +3370,7 @@ impl<'b> CatRecoveryParts<'b> { } } } -#[doc = "Builder for the [Cat Recovery API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-recovery.html)\n\nReturns information about index shard recoveries, both on-going completed."] +#[doc = "Builder for the [Cat Recovery API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-recovery.html)\n\nReturns information about index shard recoveries, both on-going completed."] #[derive(Clone, Debug)] pub struct CatRecovery<'a, 'b> { transport: &'a Transport, @@ -3577,7 +3577,7 @@ impl CatRepositoriesParts { } } } -#[doc = "Builder for the [Cat Repositories API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-repositories.html)\n\nReturns information about snapshot repositories registered in the cluster."] +#[doc = "Builder for the [Cat Repositories API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-repositories.html)\n\nReturns information about snapshot repositories registered in the cluster."] #[derive(Clone, Debug)] pub struct CatRepositories<'a, 'b> { transport: &'a Transport, @@ -3767,7 +3767,7 @@ impl<'b> CatSegmentsParts<'b> { } } } -#[doc = "Builder for the [Cat Segments API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-segments.html)\n\nProvides low-level information about the segments in the shards of an index."] +#[doc = "Builder for the [Cat Segments API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-segments.html)\n\nProvides low-level information about the segments in the shards of an index."] #[derive(Clone, Debug)] pub struct CatSegments<'a, 'b> { transport: &'a Transport, @@ -3966,7 +3966,7 @@ impl<'b> CatShardsParts<'b> { } } } -#[doc = "Builder for the [Cat Shards API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-shards.html)\n\nProvides a detailed view of shard allocation on nodes."] +#[doc = "Builder for the [Cat Shards API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-shards.html)\n\nProvides a detailed view of shard allocation on nodes."] #[derive(Clone, Debug)] pub struct CatShards<'a, 'b> { transport: &'a Transport, @@ -4165,7 +4165,7 @@ impl<'b> CatSnapshotsParts<'b> { } } } -#[doc = "Builder for the [Cat Snapshots API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-snapshots.html)\n\nReturns all snapshots in a specific repository."] +#[doc = "Builder for the [Cat Snapshots API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-snapshots.html)\n\nReturns all snapshots in a specific repository."] #[derive(Clone, Debug)] pub struct CatSnapshots<'a, 'b> { transport: &'a Transport, @@ -4355,7 +4355,7 @@ impl CatTasksParts { } } } -#[doc = "Builder for the [Cat Tasks API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/tasks.html)\n\nReturns information about the tasks currently executing on one or more nodes in the cluster."] +#[doc = "Builder for the [Cat Tasks API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/tasks.html)\n\nReturns information about the tasks currently executing on one or more nodes in the cluster."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -4593,7 +4593,7 @@ impl<'b> CatTemplatesParts<'b> { } } } -#[doc = "Builder for the [Cat Templates API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-templates.html)\n\nReturns information about existing templates."] +#[doc = "Builder for the [Cat Templates API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-templates.html)\n\nReturns information about existing templates."] #[derive(Clone, Debug)] pub struct CatTemplates<'a, 'b> { transport: &'a Transport, @@ -4783,7 +4783,7 @@ impl<'b> CatThreadPoolParts<'b> { } } } -#[doc = "Builder for the [Cat Thread Pool API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-thread-pool.html)\n\nReturns cluster-wide thread pool statistics per node.\nBy default the active, queue and rejected statistics are returned for all thread pools."] +#[doc = "Builder for the [Cat Thread Pool API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-thread-pool.html)\n\nReturns cluster-wide thread pool statistics per node.\nBy default the active, queue and rejected statistics are returned for all thread pools."] #[derive(Clone, Debug)] pub struct CatThreadPool<'a, 'b> { transport: &'a Transport, @@ -4981,7 +4981,7 @@ impl<'b> CatTransformsParts<'b> { } } } -#[doc = "Builder for the [Cat Transforms API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-transforms.html)\n\nGets configuration and usage information about transforms."] +#[doc = "Builder for the [Cat Transforms API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-transforms.html)\n\nGets configuration and usage information about transforms."] #[derive(Clone, Debug)] pub struct CatTransforms<'a, 'b> { transport: &'a Transport, @@ -5176,118 +5176,118 @@ impl<'a> Cat<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Cat Aliases API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-alias.html)\n\nShows information about currently configured aliases to indices including filter and routing infos."] + #[doc = "[Cat Aliases API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-alias.html)\n\nShows information about currently configured aliases to indices including filter and routing infos."] pub fn aliases<'b>(&'a self, parts: CatAliasesParts<'b>) -> CatAliases<'a, 'b> { CatAliases::new(self.transport(), parts) } - #[doc = "[Cat Allocation API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-allocation.html)\n\nProvides a snapshot of how many shards are allocated to each data node and how much disk space they are using."] + #[doc = "[Cat Allocation API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-allocation.html)\n\nProvides a snapshot of how many shards are allocated to each data node and how much disk space they are using."] pub fn allocation<'b>(&'a self, parts: CatAllocationParts<'b>) -> CatAllocation<'a, 'b> { CatAllocation::new(self.transport(), parts) } - #[doc = "[Cat Component Templates API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-component-templates.html)\n\nReturns information about existing component_templates templates."] + #[doc = "[Cat Component Templates API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-component-templates.html)\n\nReturns information about existing component_templates templates."] pub fn component_templates<'b>( &'a self, parts: CatComponentTemplatesParts<'b>, ) -> CatComponentTemplates<'a, 'b> { CatComponentTemplates::new(self.transport(), parts) } - #[doc = "[Cat Count API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-count.html)\n\nProvides quick access to the document count of the entire cluster, or individual indices."] + #[doc = "[Cat Count API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-count.html)\n\nProvides quick access to the document count of the entire cluster, or individual indices."] pub fn count<'b>(&'a self, parts: CatCountParts<'b>) -> CatCount<'a, 'b> { CatCount::new(self.transport(), parts) } - #[doc = "[Cat Fielddata API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-fielddata.html)\n\nShows how much heap memory is currently being used by fielddata on every data node in the cluster."] + #[doc = "[Cat Fielddata API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-fielddata.html)\n\nShows how much heap memory is currently being used by fielddata on every data node in the cluster."] pub fn fielddata<'b>(&'a self, parts: CatFielddataParts<'b>) -> CatFielddata<'a, 'b> { CatFielddata::new(self.transport(), parts) } - #[doc = "[Cat Health API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-health.html)\n\nReturns a concise representation of the cluster health."] + #[doc = "[Cat Health API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-health.html)\n\nReturns a concise representation of the cluster health."] pub fn health<'b>(&'a self) -> CatHealth<'a, 'b> { CatHealth::new(self.transport()) } - #[doc = "[Cat Help API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat.html)\n\nReturns help for the Cat APIs."] + #[doc = "[Cat Help API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat.html)\n\nReturns help for the Cat APIs."] pub fn help<'b>(&'a self) -> CatHelp<'a, 'b> { CatHelp::new(self.transport()) } - #[doc = "[Cat Indices API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-indices.html)\n\nReturns information about indices: number of primaries and replicas, document counts, disk size, ..."] + #[doc = "[Cat Indices API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-indices.html)\n\nReturns information about indices: number of primaries and replicas, document counts, disk size, ..."] pub fn indices<'b>(&'a self, parts: CatIndicesParts<'b>) -> CatIndices<'a, 'b> { CatIndices::new(self.transport(), parts) } - #[doc = "[Cat Master API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-master.html)\n\nReturns information about the master node."] + #[doc = "[Cat Master API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-master.html)\n\nReturns information about the master node."] pub fn master<'b>(&'a self) -> CatMaster<'a, 'b> { CatMaster::new(self.transport()) } - #[doc = "[Cat Ml Data Frame Analytics API](http://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-dfanalytics.html)\n\nGets configuration and usage information about data frame analytics jobs."] + #[doc = "[Cat Ml Data Frame Analytics API](http://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-dfanalytics.html)\n\nGets configuration and usage information about data frame analytics jobs."] pub fn ml_data_frame_analytics<'b>( &'a self, parts: CatMlDataFrameAnalyticsParts<'b>, ) -> CatMlDataFrameAnalytics<'a, 'b> { CatMlDataFrameAnalytics::new(self.transport(), parts) } - #[doc = "[Cat Ml Datafeeds API](http://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-datafeeds.html)\n\nGets configuration and usage information about datafeeds."] + #[doc = "[Cat Ml Datafeeds API](http://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-datafeeds.html)\n\nGets configuration and usage information about datafeeds."] pub fn ml_datafeeds<'b>(&'a self, parts: CatMlDatafeedsParts<'b>) -> CatMlDatafeeds<'a, 'b> { CatMlDatafeeds::new(self.transport(), parts) } - #[doc = "[Cat Ml Jobs API](http://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-anomaly-detectors.html)\n\nGets configuration and usage information about anomaly detection jobs."] + #[doc = "[Cat Ml Jobs API](http://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-anomaly-detectors.html)\n\nGets configuration and usage information about anomaly detection jobs."] pub fn ml_jobs<'b>(&'a self, parts: CatMlJobsParts<'b>) -> CatMlJobs<'a, 'b> { CatMlJobs::new(self.transport(), parts) } - #[doc = "[Cat Ml Trained Models API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-trained-model.html)\n\nGets configuration and usage information about inference trained models."] + #[doc = "[Cat Ml Trained Models API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-trained-model.html)\n\nGets configuration and usage information about inference trained models."] pub fn ml_trained_models<'b>( &'a self, parts: CatMlTrainedModelsParts<'b>, ) -> CatMlTrainedModels<'a, 'b> { CatMlTrainedModels::new(self.transport(), parts) } - #[doc = "[Cat Nodeattrs API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-nodeattrs.html)\n\nReturns information about custom node attributes."] + #[doc = "[Cat Nodeattrs API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-nodeattrs.html)\n\nReturns information about custom node attributes."] pub fn nodeattrs<'b>(&'a self) -> CatNodeattrs<'a, 'b> { CatNodeattrs::new(self.transport()) } - #[doc = "[Cat Nodes API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-nodes.html)\n\nReturns basic statistics about performance of cluster nodes."] + #[doc = "[Cat Nodes API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-nodes.html)\n\nReturns basic statistics about performance of cluster nodes."] pub fn nodes<'b>(&'a self) -> CatNodes<'a, 'b> { CatNodes::new(self.transport()) } - #[doc = "[Cat Pending Tasks API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-pending-tasks.html)\n\nReturns a concise representation of the cluster pending tasks."] + #[doc = "[Cat Pending Tasks API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-pending-tasks.html)\n\nReturns a concise representation of the cluster pending tasks."] pub fn pending_tasks<'b>(&'a self) -> CatPendingTasks<'a, 'b> { CatPendingTasks::new(self.transport()) } - #[doc = "[Cat Plugins API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-plugins.html)\n\nReturns information about installed plugins across nodes node."] + #[doc = "[Cat Plugins API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-plugins.html)\n\nReturns information about installed plugins across nodes node."] pub fn plugins<'b>(&'a self) -> CatPlugins<'a, 'b> { CatPlugins::new(self.transport()) } - #[doc = "[Cat Recovery API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-recovery.html)\n\nReturns information about index shard recoveries, both on-going completed."] + #[doc = "[Cat Recovery API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-recovery.html)\n\nReturns information about index shard recoveries, both on-going completed."] pub fn recovery<'b>(&'a self, parts: CatRecoveryParts<'b>) -> CatRecovery<'a, 'b> { CatRecovery::new(self.transport(), parts) } - #[doc = "[Cat Repositories API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-repositories.html)\n\nReturns information about snapshot repositories registered in the cluster."] + #[doc = "[Cat Repositories API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-repositories.html)\n\nReturns information about snapshot repositories registered in the cluster."] pub fn repositories<'b>(&'a self) -> CatRepositories<'a, 'b> { CatRepositories::new(self.transport()) } - #[doc = "[Cat Segments API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-segments.html)\n\nProvides low-level information about the segments in the shards of an index."] + #[doc = "[Cat Segments API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-segments.html)\n\nProvides low-level information about the segments in the shards of an index."] pub fn segments<'b>(&'a self, parts: CatSegmentsParts<'b>) -> CatSegments<'a, 'b> { CatSegments::new(self.transport(), parts) } - #[doc = "[Cat Shards API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-shards.html)\n\nProvides a detailed view of shard allocation on nodes."] + #[doc = "[Cat Shards API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-shards.html)\n\nProvides a detailed view of shard allocation on nodes."] pub fn shards<'b>(&'a self, parts: CatShardsParts<'b>) -> CatShards<'a, 'b> { CatShards::new(self.transport(), parts) } - #[doc = "[Cat Snapshots API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-snapshots.html)\n\nReturns all snapshots in a specific repository."] + #[doc = "[Cat Snapshots API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-snapshots.html)\n\nReturns all snapshots in a specific repository."] pub fn snapshots<'b>(&'a self, parts: CatSnapshotsParts<'b>) -> CatSnapshots<'a, 'b> { CatSnapshots::new(self.transport(), parts) } - #[doc = "[Cat Tasks API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/tasks.html)\n\nReturns information about the tasks currently executing on one or more nodes in the cluster."] + #[doc = "[Cat Tasks API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/tasks.html)\n\nReturns information about the tasks currently executing on one or more nodes in the cluster."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn tasks<'b>(&'a self) -> CatTasks<'a, 'b> { CatTasks::new(self.transport()) } - #[doc = "[Cat Templates API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-templates.html)\n\nReturns information about existing templates."] + #[doc = "[Cat Templates API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-templates.html)\n\nReturns information about existing templates."] pub fn templates<'b>(&'a self, parts: CatTemplatesParts<'b>) -> CatTemplates<'a, 'b> { CatTemplates::new(self.transport(), parts) } - #[doc = "[Cat Thread Pool API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-thread-pool.html)\n\nReturns cluster-wide thread pool statistics per node.\nBy default the active, queue and rejected statistics are returned for all thread pools."] + #[doc = "[Cat Thread Pool API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-thread-pool.html)\n\nReturns cluster-wide thread pool statistics per node.\nBy default the active, queue and rejected statistics are returned for all thread pools."] pub fn thread_pool<'b>(&'a self, parts: CatThreadPoolParts<'b>) -> CatThreadPool<'a, 'b> { CatThreadPool::new(self.transport(), parts) } - #[doc = "[Cat Transforms API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-transforms.html)\n\nGets configuration and usage information about transforms."] + #[doc = "[Cat Transforms API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cat-transforms.html)\n\nGets configuration and usage information about transforms."] pub fn transforms<'b>(&'a self, parts: CatTransformsParts<'b>) -> CatTransforms<'a, 'b> { CatTransforms::new(self.transport(), parts) } diff --git a/elasticsearch/src/ccr.rs b/elasticsearch/src/ccr.rs index 5fc39d51..5ccbb5cd 100644 --- a/elasticsearch/src/ccr.rs +++ b/elasticsearch/src/ccr.rs @@ -68,7 +68,7 @@ impl<'b> CcrDeleteAutoFollowPatternParts<'b> { } } } -#[doc = "Builder for the [Ccr Delete Auto Follow Pattern API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ccr-delete-auto-follow-pattern.html)\n\nDeletes auto-follow patterns."] +#[doc = "Builder for the [Ccr Delete Auto Follow Pattern API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ccr-delete-auto-follow-pattern.html)\n\nDeletes auto-follow patterns."] #[derive(Clone, Debug)] pub struct CcrDeleteAutoFollowPattern<'a, 'b> { transport: &'a Transport, @@ -197,7 +197,7 @@ impl<'b> CcrFollowParts<'b> { } } } -#[doc = "Builder for the [Ccr Follow API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ccr-put-follow.html)\n\nCreates a new follower index configured to follow the referenced leader index."] +#[doc = "Builder for the [Ccr Follow API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ccr-put-follow.html)\n\nCreates a new follower index configured to follow the referenced leader index."] #[derive(Clone, Debug)] pub struct CcrFollow<'a, 'b, B> { transport: &'a Transport, @@ -361,7 +361,7 @@ impl<'b> CcrFollowInfoParts<'b> { } } } -#[doc = "Builder for the [Ccr Follow Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ccr-get-follow-info.html)\n\nRetrieves information about all follower indices, including parameters and status for each follower index"] +#[doc = "Builder for the [Ccr Follow Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ccr-get-follow-info.html)\n\nRetrieves information about all follower indices, including parameters and status for each follower index"] #[derive(Clone, Debug)] pub struct CcrFollowInfo<'a, 'b> { transport: &'a Transport, @@ -491,7 +491,7 @@ impl<'b> CcrFollowStatsParts<'b> { } } } -#[doc = "Builder for the [Ccr Follow Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ccr-get-follow-stats.html)\n\nRetrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices."] +#[doc = "Builder for the [Ccr Follow Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ccr-get-follow-stats.html)\n\nRetrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices."] #[derive(Clone, Debug)] pub struct CcrFollowStats<'a, 'b> { transport: &'a Transport, @@ -620,7 +620,7 @@ impl<'b> CcrForgetFollowerParts<'b> { } } } -#[doc = "Builder for the [Ccr Forget Follower API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ccr-post-forget-follower.html)\n\nRemoves the follower retention leases from the leader."] +#[doc = "Builder for the [Ccr Forget Follower API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ccr-post-forget-follower.html)\n\nRemoves the follower retention leases from the leader."] #[derive(Clone, Debug)] pub struct CcrForgetFollower<'a, 'b, B> { transport: &'a Transport, @@ -774,7 +774,7 @@ impl<'b> CcrGetAutoFollowPatternParts<'b> { } } } -#[doc = "Builder for the [Ccr Get Auto Follow Pattern API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ccr-get-auto-follow-pattern.html)\n\nGets configured auto-follow patterns. Returns the specified auto-follow pattern collection."] +#[doc = "Builder for the [Ccr Get Auto Follow Pattern API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ccr-get-auto-follow-pattern.html)\n\nGets configured auto-follow patterns. Returns the specified auto-follow pattern collection."] #[derive(Clone, Debug)] pub struct CcrGetAutoFollowPattern<'a, 'b> { transport: &'a Transport, @@ -902,7 +902,7 @@ impl<'b> CcrPauseAutoFollowPatternParts<'b> { } } } -#[doc = "Builder for the [Ccr Pause Auto Follow Pattern API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ccr-pause-auto-follow-pattern.html)\n\nPauses an auto-follow pattern"] +#[doc = "Builder for the [Ccr Pause Auto Follow Pattern API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ccr-pause-auto-follow-pattern.html)\n\nPauses an auto-follow pattern"] #[derive(Clone, Debug)] pub struct CcrPauseAutoFollowPattern<'a, 'b, B> { transport: &'a Transport, @@ -1055,7 +1055,7 @@ impl<'b> CcrPauseFollowParts<'b> { } } } -#[doc = "Builder for the [Ccr Pause Follow API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ccr-post-pause-follow.html)\n\nPauses a follower index. The follower index will not fetch any additional operations from the leader index."] +#[doc = "Builder for the [Ccr Pause Follow API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ccr-post-pause-follow.html)\n\nPauses a follower index. The follower index will not fetch any additional operations from the leader index."] #[derive(Clone, Debug)] pub struct CcrPauseFollow<'a, 'b, B> { transport: &'a Transport, @@ -1206,7 +1206,7 @@ impl<'b> CcrPutAutoFollowPatternParts<'b> { } } } -#[doc = "Builder for the [Ccr Put Auto Follow Pattern API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ccr-put-auto-follow-pattern.html)\n\nCreates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices."] +#[doc = "Builder for the [Ccr Put Auto Follow Pattern API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ccr-put-auto-follow-pattern.html)\n\nCreates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices."] #[derive(Clone, Debug)] pub struct CcrPutAutoFollowPattern<'a, 'b, B> { transport: &'a Transport, @@ -1358,7 +1358,7 @@ impl<'b> CcrResumeAutoFollowPatternParts<'b> { } } } -#[doc = "Builder for the [Ccr Resume Auto Follow Pattern API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ccr-resume-auto-follow-pattern.html)\n\nResumes an auto-follow pattern that has been paused"] +#[doc = "Builder for the [Ccr Resume Auto Follow Pattern API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ccr-resume-auto-follow-pattern.html)\n\nResumes an auto-follow pattern that has been paused"] #[derive(Clone, Debug)] pub struct CcrResumeAutoFollowPattern<'a, 'b, B> { transport: &'a Transport, @@ -1511,7 +1511,7 @@ impl<'b> CcrResumeFollowParts<'b> { } } } -#[doc = "Builder for the [Ccr Resume Follow API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ccr-post-resume-follow.html)\n\nResumes a follower index that has been paused"] +#[doc = "Builder for the [Ccr Resume Follow API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ccr-post-resume-follow.html)\n\nResumes a follower index that has been paused"] #[derive(Clone, Debug)] pub struct CcrResumeFollow<'a, 'b, B> { transport: &'a Transport, @@ -1656,7 +1656,7 @@ impl CcrStatsParts { } } } -#[doc = "Builder for the [Ccr Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ccr-get-stats.html)\n\nGets all stats related to cross-cluster replication."] +#[doc = "Builder for the [Ccr Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ccr-get-stats.html)\n\nGets all stats related to cross-cluster replication."] #[derive(Clone, Debug)] pub struct CcrStats<'a, 'b> { transport: &'a Transport, @@ -1794,7 +1794,7 @@ impl<'b> CcrUnfollowParts<'b> { } } } -#[doc = "Builder for the [Ccr Unfollow API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ccr-post-unfollow.html)\n\nStops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication."] +#[doc = "Builder for the [Ccr Unfollow API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ccr-post-unfollow.html)\n\nStops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication."] #[derive(Clone, Debug)] pub struct CcrUnfollow<'a, 'b, B> { transport: &'a Transport, @@ -1937,79 +1937,79 @@ impl<'a> Ccr<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Ccr Delete Auto Follow Pattern API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ccr-delete-auto-follow-pattern.html)\n\nDeletes auto-follow patterns."] + #[doc = "[Ccr Delete Auto Follow Pattern API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ccr-delete-auto-follow-pattern.html)\n\nDeletes auto-follow patterns."] pub fn delete_auto_follow_pattern<'b>( &'a self, parts: CcrDeleteAutoFollowPatternParts<'b>, ) -> CcrDeleteAutoFollowPattern<'a, 'b> { CcrDeleteAutoFollowPattern::new(self.transport(), parts) } - #[doc = "[Ccr Follow API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ccr-put-follow.html)\n\nCreates a new follower index configured to follow the referenced leader index."] + #[doc = "[Ccr Follow API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ccr-put-follow.html)\n\nCreates a new follower index configured to follow the referenced leader index."] pub fn follow<'b>(&'a self, parts: CcrFollowParts<'b>) -> CcrFollow<'a, 'b, ()> { CcrFollow::new(self.transport(), parts) } - #[doc = "[Ccr Follow Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ccr-get-follow-info.html)\n\nRetrieves information about all follower indices, including parameters and status for each follower index"] + #[doc = "[Ccr Follow Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ccr-get-follow-info.html)\n\nRetrieves information about all follower indices, including parameters and status for each follower index"] pub fn follow_info<'b>(&'a self, parts: CcrFollowInfoParts<'b>) -> CcrFollowInfo<'a, 'b> { CcrFollowInfo::new(self.transport(), parts) } - #[doc = "[Ccr Follow Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ccr-get-follow-stats.html)\n\nRetrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices."] + #[doc = "[Ccr Follow Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ccr-get-follow-stats.html)\n\nRetrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices."] pub fn follow_stats<'b>(&'a self, parts: CcrFollowStatsParts<'b>) -> CcrFollowStats<'a, 'b> { CcrFollowStats::new(self.transport(), parts) } - #[doc = "[Ccr Forget Follower API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ccr-post-forget-follower.html)\n\nRemoves the follower retention leases from the leader."] + #[doc = "[Ccr Forget Follower API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ccr-post-forget-follower.html)\n\nRemoves the follower retention leases from the leader."] pub fn forget_follower<'b>( &'a self, parts: CcrForgetFollowerParts<'b>, ) -> CcrForgetFollower<'a, 'b, ()> { CcrForgetFollower::new(self.transport(), parts) } - #[doc = "[Ccr Get Auto Follow Pattern API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ccr-get-auto-follow-pattern.html)\n\nGets configured auto-follow patterns. Returns the specified auto-follow pattern collection."] + #[doc = "[Ccr Get Auto Follow Pattern API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ccr-get-auto-follow-pattern.html)\n\nGets configured auto-follow patterns. Returns the specified auto-follow pattern collection."] pub fn get_auto_follow_pattern<'b>( &'a self, parts: CcrGetAutoFollowPatternParts<'b>, ) -> CcrGetAutoFollowPattern<'a, 'b> { CcrGetAutoFollowPattern::new(self.transport(), parts) } - #[doc = "[Ccr Pause Auto Follow Pattern API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ccr-pause-auto-follow-pattern.html)\n\nPauses an auto-follow pattern"] + #[doc = "[Ccr Pause Auto Follow Pattern API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ccr-pause-auto-follow-pattern.html)\n\nPauses an auto-follow pattern"] pub fn pause_auto_follow_pattern<'b>( &'a self, parts: CcrPauseAutoFollowPatternParts<'b>, ) -> CcrPauseAutoFollowPattern<'a, 'b, ()> { CcrPauseAutoFollowPattern::new(self.transport(), parts) } - #[doc = "[Ccr Pause Follow API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ccr-post-pause-follow.html)\n\nPauses a follower index. The follower index will not fetch any additional operations from the leader index."] + #[doc = "[Ccr Pause Follow API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ccr-post-pause-follow.html)\n\nPauses a follower index. The follower index will not fetch any additional operations from the leader index."] pub fn pause_follow<'b>( &'a self, parts: CcrPauseFollowParts<'b>, ) -> CcrPauseFollow<'a, 'b, ()> { CcrPauseFollow::new(self.transport(), parts) } - #[doc = "[Ccr Put Auto Follow Pattern API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ccr-put-auto-follow-pattern.html)\n\nCreates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices."] + #[doc = "[Ccr Put Auto Follow Pattern API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ccr-put-auto-follow-pattern.html)\n\nCreates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices."] pub fn put_auto_follow_pattern<'b>( &'a self, parts: CcrPutAutoFollowPatternParts<'b>, ) -> CcrPutAutoFollowPattern<'a, 'b, ()> { CcrPutAutoFollowPattern::new(self.transport(), parts) } - #[doc = "[Ccr Resume Auto Follow Pattern API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ccr-resume-auto-follow-pattern.html)\n\nResumes an auto-follow pattern that has been paused"] + #[doc = "[Ccr Resume Auto Follow Pattern API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ccr-resume-auto-follow-pattern.html)\n\nResumes an auto-follow pattern that has been paused"] pub fn resume_auto_follow_pattern<'b>( &'a self, parts: CcrResumeAutoFollowPatternParts<'b>, ) -> CcrResumeAutoFollowPattern<'a, 'b, ()> { CcrResumeAutoFollowPattern::new(self.transport(), parts) } - #[doc = "[Ccr Resume Follow API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ccr-post-resume-follow.html)\n\nResumes a follower index that has been paused"] + #[doc = "[Ccr Resume Follow API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ccr-post-resume-follow.html)\n\nResumes a follower index that has been paused"] pub fn resume_follow<'b>( &'a self, parts: CcrResumeFollowParts<'b>, ) -> CcrResumeFollow<'a, 'b, ()> { CcrResumeFollow::new(self.transport(), parts) } - #[doc = "[Ccr Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ccr-get-stats.html)\n\nGets all stats related to cross-cluster replication."] + #[doc = "[Ccr Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ccr-get-stats.html)\n\nGets all stats related to cross-cluster replication."] pub fn stats<'b>(&'a self) -> CcrStats<'a, 'b> { CcrStats::new(self.transport()) } - #[doc = "[Ccr Unfollow API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ccr-post-unfollow.html)\n\nStops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication."] + #[doc = "[Ccr Unfollow API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ccr-post-unfollow.html)\n\nStops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication."] pub fn unfollow<'b>(&'a self, parts: CcrUnfollowParts<'b>) -> CcrUnfollow<'a, 'b, ()> { CcrUnfollow::new(self.transport(), parts) } diff --git a/elasticsearch/src/cluster.rs b/elasticsearch/src/cluster.rs index 5816dcea..8194a6da 100644 --- a/elasticsearch/src/cluster.rs +++ b/elasticsearch/src/cluster.rs @@ -59,7 +59,7 @@ impl ClusterAllocationExplainParts { } } } -#[doc = "Builder for the [Cluster Allocation Explain API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cluster-allocation-explain.html)\n\nProvides explanations for shard allocations in the cluster."] +#[doc = "Builder for the [Cluster Allocation Explain API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cluster-allocation-explain.html)\n\nProvides explanations for shard allocations in the cluster."] #[derive(Clone, Debug)] pub struct ClusterAllocationExplain<'a, 'b, B> { transport: &'a Transport, @@ -233,7 +233,7 @@ impl<'b> ClusterDeleteComponentTemplateParts<'b> { } } } -#[doc = "Builder for the [Cluster Delete Component Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-component-template.html)\n\nDeletes a component template"] +#[doc = "Builder for the [Cluster Delete Component Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-component-template.html)\n\nDeletes a component template"] #[derive(Clone, Debug)] pub struct ClusterDeleteComponentTemplate<'a, 'b> { transport: &'a Transport, @@ -365,7 +365,7 @@ impl ClusterDeleteVotingConfigExclusionsParts { } } } -#[doc = "Builder for the [Cluster Delete Voting Config Exclusions API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/voting-config-exclusions.html)\n\nClears cluster voting config exclusions."] +#[doc = "Builder for the [Cluster Delete Voting Config Exclusions API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/voting-config-exclusions.html)\n\nClears cluster voting config exclusions."] #[derive(Clone, Debug)] pub struct ClusterDeleteVotingConfigExclusions<'a, 'b> { transport: &'a Transport, @@ -501,7 +501,7 @@ impl<'b> ClusterExistsComponentTemplateParts<'b> { } } } -#[doc = "Builder for the [Cluster Exists Component Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-component-template.html)\n\nReturns information about whether a particular component template exist"] +#[doc = "Builder for the [Cluster Exists Component Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-component-template.html)\n\nReturns information about whether a particular component template exist"] #[derive(Clone, Debug)] pub struct ClusterExistsComponentTemplate<'a, 'b> { transport: &'a Transport, @@ -642,13 +642,14 @@ impl<'b> ClusterGetComponentTemplateParts<'b> { } } } -#[doc = "Builder for the [Cluster Get Component Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-component-template.html)\n\nReturns one or more component templates"] +#[doc = "Builder for the [Cluster Get Component Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-component-template.html)\n\nReturns one or more component templates"] #[derive(Clone, Debug)] pub struct ClusterGetComponentTemplate<'a, 'b> { transport: &'a Transport, parts: ClusterGetComponentTemplateParts<'b>, error_trace: Option, filter_path: Option<&'b [&'b str]>, + flat_settings: Option, headers: HeaderMap, human: Option, include_defaults: Option, @@ -656,6 +657,7 @@ pub struct ClusterGetComponentTemplate<'a, 'b> { master_timeout: Option<&'b str>, pretty: Option, request_timeout: Option, + settings_filter: Option<&'b str>, source: Option<&'b str>, } impl<'a, 'b> ClusterGetComponentTemplate<'a, 'b> { @@ -668,12 +670,14 @@ impl<'a, 'b> ClusterGetComponentTemplate<'a, 'b> { headers, error_trace: None, filter_path: None, + flat_settings: None, human: None, include_defaults: None, local: None, master_timeout: None, pretty: None, request_timeout: None, + settings_filter: None, source: None, } } @@ -687,6 +691,11 @@ impl<'a, 'b> ClusterGetComponentTemplate<'a, 'b> { self.filter_path = Some(filter_path); self } + #[doc = "Return settings in flat format (default: false)"] + pub fn flat_settings(mut self, flat_settings: bool) -> Self { + self.flat_settings = Some(flat_settings); + self + } #[doc = "Adds a HTTP header"] pub fn header(mut self, key: HeaderName, value: HeaderValue) -> Self { self.headers.insert(key, value); @@ -722,6 +731,11 @@ impl<'a, 'b> ClusterGetComponentTemplate<'a, 'b> { self.request_timeout = Some(timeout); self } + #[doc = "Filter out results, for example to filter out sensitive information. Supports wildcards or full settings keys"] + pub fn settings_filter(mut self, settings_filter: &'b str) -> Self { + self.settings_filter = Some(settings_filter); + self + } #[doc = "The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests."] pub fn source(mut self, source: &'b str) -> Self { self.source = Some(source); @@ -740,21 +754,25 @@ impl<'a, 'b> ClusterGetComponentTemplate<'a, 'b> { error_trace: Option, #[serde(serialize_with = "crate::client::serialize_coll_qs")] filter_path: Option<&'b [&'b str]>, + flat_settings: Option, human: Option, include_defaults: Option, local: Option, master_timeout: Option<&'b str>, pretty: Option, + settings_filter: Option<&'b str>, source: Option<&'b str>, } let query_params = QueryParams { error_trace: self.error_trace, filter_path: self.filter_path, + flat_settings: self.flat_settings, human: self.human, include_defaults: self.include_defaults, local: self.local, master_timeout: self.master_timeout, pretty: self.pretty, + settings_filter: self.settings_filter, source: self.source, }; Some(query_params) @@ -781,7 +799,7 @@ impl ClusterGetSettingsParts { } } } -#[doc = "Builder for the [Cluster Get Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cluster-get-settings.html)\n\nReturns cluster settings."] +#[doc = "Builder for the [Cluster Get Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cluster-get-settings.html)\n\nReturns cluster settings."] #[derive(Clone, Debug)] pub struct ClusterGetSettings<'a, 'b> { transport: &'a Transport, @@ -940,7 +958,7 @@ impl<'b> ClusterHealthParts<'b> { } } } -#[doc = "Builder for the [Cluster Health API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cluster-health.html)\n\nReturns basic information about the health of the cluster."] +#[doc = "Builder for the [Cluster Health API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cluster-health.html)\n\nReturns basic information about the health of the cluster."] #[derive(Clone, Debug)] pub struct ClusterHealth<'a, 'b> { transport: &'a Transport, @@ -1163,7 +1181,7 @@ impl<'b> ClusterInfoParts<'b> { } } } -#[doc = "Builder for the [Cluster Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cluster-info.html)\n\nReturns different information about the cluster."] +#[doc = "Builder for the [Cluster Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cluster-info.html)\n\nReturns different information about the cluster."] #[derive(Clone, Debug)] pub struct ClusterInfo<'a, 'b> { transport: &'a Transport, @@ -1275,7 +1293,7 @@ impl ClusterPendingTasksParts { } } } -#[doc = "Builder for the [Cluster Pending Tasks API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cluster-pending.html)\n\nReturns a list of any cluster-level changes (e.g. create index, update mapping,\nallocate or fail shard) which have not yet been executed."] +#[doc = "Builder for the [Cluster Pending Tasks API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cluster-pending.html)\n\nReturns a list of any cluster-level changes (e.g. create index, update mapping,\nallocate or fail shard) which have not yet been executed."] #[derive(Clone, Debug)] pub struct ClusterPendingTasks<'a, 'b> { transport: &'a Transport, @@ -1407,7 +1425,7 @@ impl ClusterPostVotingConfigExclusionsParts { } } } -#[doc = "Builder for the [Cluster Post Voting Config Exclusions API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/voting-config-exclusions.html)\n\nUpdates the cluster voting config exclusions by node ids or node names."] +#[doc = "Builder for the [Cluster Post Voting Config Exclusions API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/voting-config-exclusions.html)\n\nUpdates the cluster voting config exclusions by node ids or node names."] #[derive(Clone, Debug)] pub struct ClusterPostVotingConfigExclusions<'a, 'b, B> { transport: &'a Transport, @@ -1588,12 +1606,13 @@ impl<'b> ClusterPutComponentTemplateParts<'b> { } } } -#[doc = "Builder for the [Cluster Put Component Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-component-template.html)\n\nCreates or updates a component template"] +#[doc = "Builder for the [Cluster Put Component Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-component-template.html)\n\nCreates or updates a component template"] #[derive(Clone, Debug)] pub struct ClusterPutComponentTemplate<'a, 'b, B> { transport: &'a Transport, parts: ClusterPutComponentTemplateParts<'b>, body: Option, + cause: Option<&'b str>, create: Option, error_trace: Option, filter_path: Option<&'b [&'b str]>, @@ -1603,7 +1622,6 @@ pub struct ClusterPutComponentTemplate<'a, 'b, B> { pretty: Option, request_timeout: Option, source: Option<&'b str>, - timeout: Option<&'b str>, } impl<'a, 'b, B> ClusterPutComponentTemplate<'a, 'b, B> where @@ -1617,6 +1635,7 @@ where parts, headers, body: None, + cause: None, create: None, error_trace: None, filter_path: None, @@ -1625,7 +1644,6 @@ where pretty: None, request_timeout: None, source: None, - timeout: None, } } #[doc = "The body for the API call"] @@ -1637,6 +1655,7 @@ where transport: self.transport, parts: self.parts, body: Some(body.into()), + cause: self.cause, create: self.create, error_trace: self.error_trace, filter_path: self.filter_path, @@ -1646,9 +1665,13 @@ where pretty: self.pretty, request_timeout: self.request_timeout, source: self.source, - timeout: self.timeout, } } + #[doc = "User defined reason for create the component template"] + pub fn cause(mut self, cause: &'b str) -> Self { + self.cause = Some(cause); + self + } #[doc = "Whether the index template should only be added if new or can also replace an existing one"] pub fn create(mut self, create: bool) -> Self { self.create = Some(create); @@ -1694,11 +1717,6 @@ where self.source = Some(source); self } - #[doc = "Explicit operation timeout"] - pub fn timeout(mut self, timeout: &'b str) -> Self { - self.timeout = Some(timeout); - self - } #[doc = "Creates an asynchronous call to the Cluster Put Component Template API that can be awaited"] pub async fn send(self) -> Result { let path = self.parts.url(); @@ -1709,6 +1727,7 @@ where #[serde_with::skip_serializing_none] #[derive(Serialize)] struct QueryParams<'b> { + cause: Option<&'b str>, create: Option, error_trace: Option, #[serde(serialize_with = "crate::client::serialize_coll_qs")] @@ -1717,9 +1736,9 @@ where master_timeout: Option<&'b str>, pretty: Option, source: Option<&'b str>, - timeout: Option<&'b str>, } let query_params = QueryParams { + cause: self.cause, create: self.create, error_trace: self.error_trace, filter_path: self.filter_path, @@ -1727,7 +1746,6 @@ where master_timeout: self.master_timeout, pretty: self.pretty, source: self.source, - timeout: self.timeout, }; Some(query_params) }; @@ -1753,7 +1771,7 @@ impl ClusterPutSettingsParts { } } } -#[doc = "Builder for the [Cluster Put Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cluster-update-settings.html)\n\nUpdates the cluster settings."] +#[doc = "Builder for the [Cluster Put Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cluster-update-settings.html)\n\nUpdates the cluster settings."] #[derive(Clone, Debug)] pub struct ClusterPutSettings<'a, 'b, B> { transport: &'a Transport, @@ -1918,7 +1936,7 @@ impl ClusterRemoteInfoParts { } } } -#[doc = "Builder for the [Cluster Remote Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cluster-remote-info.html)\n\nReturns the information about configured remote clusters."] +#[doc = "Builder for the [Cluster Remote Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cluster-remote-info.html)\n\nReturns the information about configured remote clusters."] #[derive(Clone, Debug)] pub struct ClusterRemoteInfo<'a, 'b> { transport: &'a Transport, @@ -2030,7 +2048,7 @@ impl ClusterRerouteParts { } } } -#[doc = "Builder for the [Cluster Reroute API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cluster-reroute.html)\n\nAllows to manually change the allocation of individual shards in the cluster."] +#[doc = "Builder for the [Cluster Reroute API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cluster-reroute.html)\n\nAllows to manually change the allocation of individual shards in the cluster."] #[derive(Clone, Debug)] pub struct ClusterReroute<'a, 'b, B> { transport: &'a Transport, @@ -2254,7 +2272,7 @@ impl<'b> ClusterStateParts<'b> { } } } -#[doc = "Builder for the [Cluster State API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cluster-state.html)\n\nReturns a comprehensive information about the state of the cluster."] +#[doc = "Builder for the [Cluster State API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cluster-state.html)\n\nReturns a comprehensive information about the state of the cluster."] #[derive(Clone, Debug)] pub struct ClusterState<'a, 'b> { transport: &'a Transport, @@ -2450,7 +2468,7 @@ impl<'b> ClusterStatsParts<'b> { } } } -#[doc = "Builder for the [Cluster Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cluster-stats.html)\n\nReturns high-level overview of cluster statistics."] +#[doc = "Builder for the [Cluster Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cluster-stats.html)\n\nReturns high-level overview of cluster statistics."] #[derive(Clone, Debug)] pub struct ClusterStats<'a, 'b> { transport: &'a Transport, @@ -2578,83 +2596,83 @@ impl<'a> Cluster<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Cluster Allocation Explain API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cluster-allocation-explain.html)\n\nProvides explanations for shard allocations in the cluster."] + #[doc = "[Cluster Allocation Explain API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cluster-allocation-explain.html)\n\nProvides explanations for shard allocations in the cluster."] pub fn allocation_explain<'b>(&'a self) -> ClusterAllocationExplain<'a, 'b, ()> { ClusterAllocationExplain::new(self.transport()) } - #[doc = "[Cluster Delete Component Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-component-template.html)\n\nDeletes a component template"] + #[doc = "[Cluster Delete Component Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-component-template.html)\n\nDeletes a component template"] pub fn delete_component_template<'b>( &'a self, parts: ClusterDeleteComponentTemplateParts<'b>, ) -> ClusterDeleteComponentTemplate<'a, 'b> { ClusterDeleteComponentTemplate::new(self.transport(), parts) } - #[doc = "[Cluster Delete Voting Config Exclusions API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/voting-config-exclusions.html)\n\nClears cluster voting config exclusions."] + #[doc = "[Cluster Delete Voting Config Exclusions API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/voting-config-exclusions.html)\n\nClears cluster voting config exclusions."] pub fn delete_voting_config_exclusions<'b>( &'a self, ) -> ClusterDeleteVotingConfigExclusions<'a, 'b> { ClusterDeleteVotingConfigExclusions::new(self.transport()) } - #[doc = "[Cluster Exists Component Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-component-template.html)\n\nReturns information about whether a particular component template exist"] + #[doc = "[Cluster Exists Component Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-component-template.html)\n\nReturns information about whether a particular component template exist"] pub fn exists_component_template<'b>( &'a self, parts: ClusterExistsComponentTemplateParts<'b>, ) -> ClusterExistsComponentTemplate<'a, 'b> { ClusterExistsComponentTemplate::new(self.transport(), parts) } - #[doc = "[Cluster Get Component Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-component-template.html)\n\nReturns one or more component templates"] + #[doc = "[Cluster Get Component Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-component-template.html)\n\nReturns one or more component templates"] pub fn get_component_template<'b>( &'a self, parts: ClusterGetComponentTemplateParts<'b>, ) -> ClusterGetComponentTemplate<'a, 'b> { ClusterGetComponentTemplate::new(self.transport(), parts) } - #[doc = "[Cluster Get Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cluster-get-settings.html)\n\nReturns cluster settings."] + #[doc = "[Cluster Get Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cluster-get-settings.html)\n\nReturns cluster settings."] pub fn get_settings<'b>(&'a self) -> ClusterGetSettings<'a, 'b> { ClusterGetSettings::new(self.transport()) } - #[doc = "[Cluster Health API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cluster-health.html)\n\nReturns basic information about the health of the cluster."] + #[doc = "[Cluster Health API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cluster-health.html)\n\nReturns basic information about the health of the cluster."] pub fn health<'b>(&'a self, parts: ClusterHealthParts<'b>) -> ClusterHealth<'a, 'b> { ClusterHealth::new(self.transport(), parts) } - #[doc = "[Cluster Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cluster-info.html)\n\nReturns different information about the cluster."] + #[doc = "[Cluster Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cluster-info.html)\n\nReturns different information about the cluster."] pub fn info<'b>(&'a self, parts: ClusterInfoParts<'b>) -> ClusterInfo<'a, 'b> { ClusterInfo::new(self.transport(), parts) } - #[doc = "[Cluster Pending Tasks API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cluster-pending.html)\n\nReturns a list of any cluster-level changes (e.g. create index, update mapping,\nallocate or fail shard) which have not yet been executed."] + #[doc = "[Cluster Pending Tasks API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cluster-pending.html)\n\nReturns a list of any cluster-level changes (e.g. create index, update mapping,\nallocate or fail shard) which have not yet been executed."] pub fn pending_tasks<'b>(&'a self) -> ClusterPendingTasks<'a, 'b> { ClusterPendingTasks::new(self.transport()) } - #[doc = "[Cluster Post Voting Config Exclusions API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/voting-config-exclusions.html)\n\nUpdates the cluster voting config exclusions by node ids or node names."] + #[doc = "[Cluster Post Voting Config Exclusions API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/voting-config-exclusions.html)\n\nUpdates the cluster voting config exclusions by node ids or node names."] pub fn post_voting_config_exclusions<'b>( &'a self, ) -> ClusterPostVotingConfigExclusions<'a, 'b, ()> { ClusterPostVotingConfigExclusions::new(self.transport()) } - #[doc = "[Cluster Put Component Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-component-template.html)\n\nCreates or updates a component template"] + #[doc = "[Cluster Put Component Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-component-template.html)\n\nCreates or updates a component template"] pub fn put_component_template<'b>( &'a self, parts: ClusterPutComponentTemplateParts<'b>, ) -> ClusterPutComponentTemplate<'a, 'b, ()> { ClusterPutComponentTemplate::new(self.transport(), parts) } - #[doc = "[Cluster Put Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cluster-update-settings.html)\n\nUpdates the cluster settings."] + #[doc = "[Cluster Put Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cluster-update-settings.html)\n\nUpdates the cluster settings."] pub fn put_settings<'b>(&'a self) -> ClusterPutSettings<'a, 'b, ()> { ClusterPutSettings::new(self.transport()) } - #[doc = "[Cluster Remote Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cluster-remote-info.html)\n\nReturns the information about configured remote clusters."] + #[doc = "[Cluster Remote Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cluster-remote-info.html)\n\nReturns the information about configured remote clusters."] pub fn remote_info<'b>(&'a self) -> ClusterRemoteInfo<'a, 'b> { ClusterRemoteInfo::new(self.transport()) } - #[doc = "[Cluster Reroute API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cluster-reroute.html)\n\nAllows to manually change the allocation of individual shards in the cluster."] + #[doc = "[Cluster Reroute API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cluster-reroute.html)\n\nAllows to manually change the allocation of individual shards in the cluster."] pub fn reroute<'b>(&'a self) -> ClusterReroute<'a, 'b, ()> { ClusterReroute::new(self.transport()) } - #[doc = "[Cluster State API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cluster-state.html)\n\nReturns a comprehensive information about the state of the cluster."] + #[doc = "[Cluster State API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cluster-state.html)\n\nReturns a comprehensive information about the state of the cluster."] pub fn state<'b>(&'a self, parts: ClusterStateParts<'b>) -> ClusterState<'a, 'b> { ClusterState::new(self.transport(), parts) } - #[doc = "[Cluster Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cluster-stats.html)\n\nReturns high-level overview of cluster statistics."] + #[doc = "[Cluster Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cluster-stats.html)\n\nReturns high-level overview of cluster statistics."] pub fn stats<'b>(&'a self, parts: ClusterStatsParts<'b>) -> ClusterStats<'a, 'b> { ClusterStats::new(self.transport(), parts) } diff --git a/elasticsearch/src/connector.rs b/elasticsearch/src/connector.rs index 74d8e1ee..5e5dcf41 100644 --- a/elasticsearch/src/connector.rs +++ b/elasticsearch/src/connector.rs @@ -77,7 +77,7 @@ impl<'b> ConnectorCheckInParts<'b> { } } } -#[doc = "Builder for the [Connector Check In API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/check-in-connector-api.html)\n\nUpdates the last_seen timestamp in the connector document."] +#[doc = "Builder for the [Connector Check In API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/check-in-connector-api.html)\n\nUpdates the last_seen timestamp in the connector document."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -224,7 +224,7 @@ impl<'b> ConnectorDeleteParts<'b> { } } } -#[doc = "Builder for the [Connector Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-connector-api.html)\n\nDeletes a connector."] +#[doc = "Builder for the [Connector Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-connector-api.html)\n\nDeletes a connector."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -366,7 +366,7 @@ impl<'b> ConnectorGetParts<'b> { } } } -#[doc = "Builder for the [Connector Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-connector-api.html)\n\nReturns the details about a connector."] +#[doc = "Builder for the [Connector Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-connector-api.html)\n\nReturns the details about a connector."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -500,7 +500,7 @@ impl<'b> ConnectorLastSyncParts<'b> { } } } -#[doc = "Builder for the [Connector Last Sync API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-last-sync-api.html)\n\nUpdates the stats of last sync in the connector document."] +#[doc = "Builder for the [Connector Last Sync API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-connector-last-sync-api.html)\n\nUpdates the stats of last sync in the connector document."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -640,7 +640,7 @@ impl ConnectorListParts { } } } -#[doc = "Builder for the [Connector List API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/list-connector-api.html)\n\nLists all connectors."] +#[doc = "Builder for the [Connector List API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/list-connector-api.html)\n\nLists all connectors."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -823,7 +823,7 @@ impl ConnectorPostParts { } } } -#[doc = "Builder for the [Connector Post API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/create-connector-api.html)\n\nCreates a connector."] +#[doc = "Builder for the [Connector Post API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/create-connector-api.html)\n\nCreates a connector."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -973,7 +973,7 @@ impl<'b> ConnectorPutParts<'b> { } } } -#[doc = "Builder for the [Connector Put API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/create-connector-api.html)\n\nCreates or updates a connector."] +#[doc = "Builder for the [Connector Put API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/create-connector-api.html)\n\nCreates or updates a connector."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -1653,7 +1653,7 @@ impl<'b> ConnectorSyncJobCancelParts<'b> { } } } -#[doc = "Builder for the [Connector Sync Job Cancel API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cancel-connector-sync-job-api.html)\n\nCancels a connector sync job."] +#[doc = "Builder for the [Connector Sync Job Cancel API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cancel-connector-sync-job-api.html)\n\nCancels a connector sync job."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -1801,7 +1801,7 @@ impl<'b> ConnectorSyncJobCheckInParts<'b> { } } } -#[doc = "Builder for the [Connector Sync Job Check In API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/check-in-connector-sync-job-api.html)\n\nChecks in a connector sync job (refreshes 'last_seen')."] +#[doc = "Builder for the [Connector Sync Job Check In API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/check-in-connector-sync-job-api.html)\n\nChecks in a connector sync job (refreshes 'last_seen')."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -1949,7 +1949,7 @@ impl<'b> ConnectorSyncJobClaimParts<'b> { } } } -#[doc = "Builder for the [Connector Sync Job Claim API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/claim-connector-sync-job-api.html)\n\nClaims a connector sync job."] +#[doc = "Builder for the [Connector Sync Job Claim API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/claim-connector-sync-job-api.html)\n\nClaims a connector sync job."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -2096,7 +2096,7 @@ impl<'b> ConnectorSyncJobDeleteParts<'b> { } } } -#[doc = "Builder for the [Connector Sync Job Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-connector-sync-job-api.html)\n\nDeletes a connector sync job."] +#[doc = "Builder for the [Connector Sync Job Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-connector-sync-job-api.html)\n\nDeletes a connector sync job."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -2221,7 +2221,7 @@ impl<'b> ConnectorSyncJobErrorParts<'b> { } } } -#[doc = "Builder for the [Connector Sync Job Error API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/set-connector-sync-job-error-api.html)\n\nSets an error for a connector sync job."] +#[doc = "Builder for the [Connector Sync Job Error API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/set-connector-sync-job-error-api.html)\n\nSets an error for a connector sync job."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -2368,7 +2368,7 @@ impl<'b> ConnectorSyncJobGetParts<'b> { } } } -#[doc = "Builder for the [Connector Sync Job Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-connector-sync-job-api.html)\n\nReturns the details about a connector sync job."] +#[doc = "Builder for the [Connector Sync Job Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-connector-sync-job-api.html)\n\nReturns the details about a connector sync job."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -2485,7 +2485,7 @@ impl ConnectorSyncJobListParts { } } } -#[doc = "Builder for the [Connector Sync Job List API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/list-connector-sync-jobs-api.html)\n\nLists all connector sync jobs."] +#[doc = "Builder for the [Connector Sync Job List API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/list-connector-sync-jobs-api.html)\n\nLists all connector sync jobs."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -2648,7 +2648,7 @@ impl ConnectorSyncJobPostParts { } } } -#[doc = "Builder for the [Connector Sync Job Post API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/create-connector-sync-job-api.html)\n\nCreates a connector sync job."] +#[doc = "Builder for the [Connector Sync Job Post API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/create-connector-sync-job-api.html)\n\nCreates a connector sync job."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -2796,7 +2796,7 @@ impl<'b> ConnectorSyncJobUpdateStatsParts<'b> { } } } -#[doc = "Builder for the [Connector Sync Job Update Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/set-connector-sync-job-stats-api.html)\n\nUpdates the stats fields in the connector sync job document."] +#[doc = "Builder for the [Connector Sync Job Update Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/set-connector-sync-job-stats-api.html)\n\nUpdates the stats fields in the connector sync job document."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -2944,7 +2944,7 @@ impl<'b> ConnectorUpdateActiveFilteringParts<'b> { } } } -#[doc = "Builder for the [Connector Update Active Filtering API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-filtering-api.html)\n\nActivates the draft filtering rules if they are in a validated state."] +#[doc = "Builder for the [Connector Update Active Filtering API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-connector-filtering-api.html)\n\nActivates the draft filtering rules if they are in a validated state."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -3092,7 +3092,7 @@ impl<'b> ConnectorUpdateApiKeyIdParts<'b> { } } } -#[doc = "Builder for the [Connector Update Api Key Id API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-api-key-id-api.html)\n\nUpdates the API key id and/or API key secret id fields in the connector document."] +#[doc = "Builder for the [Connector Update Api Key Id API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-connector-api-key-id-api.html)\n\nUpdates the API key id and/or API key secret id fields in the connector document."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -3240,7 +3240,7 @@ impl<'b> ConnectorUpdateConfigurationParts<'b> { } } } -#[doc = "Builder for the [Connector Update Configuration API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-configuration-api.html)\n\nUpdates the connector configuration."] +#[doc = "Builder for the [Connector Update Configuration API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-connector-configuration-api.html)\n\nUpdates the connector configuration."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -3388,7 +3388,7 @@ impl<'b> ConnectorUpdateErrorParts<'b> { } } } -#[doc = "Builder for the [Connector Update Error API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-error-api.html)\n\nUpdates the error field in the connector document."] +#[doc = "Builder for the [Connector Update Error API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-connector-error-api.html)\n\nUpdates the error field in the connector document."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -3536,7 +3536,7 @@ impl<'b> ConnectorUpdateFeaturesParts<'b> { } } } -#[doc = "Builder for the [Connector Update Features API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-features-api.html)\n\nUpdates the connector features in the connector document."] +#[doc = "Builder for the [Connector Update Features API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-connector-features-api.html)\n\nUpdates the connector features in the connector document."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -3684,7 +3684,7 @@ impl<'b> ConnectorUpdateFilteringParts<'b> { } } } -#[doc = "Builder for the [Connector Update Filtering API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-filtering-api.html)\n\nUpdates the filtering field in the connector document."] +#[doc = "Builder for the [Connector Update Filtering API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-connector-filtering-api.html)\n\nUpdates the filtering field in the connector document."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -3832,7 +3832,7 @@ impl<'b> ConnectorUpdateFilteringValidationParts<'b> { } } } -#[doc = "Builder for the [Connector Update Filtering Validation API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-filtering-api.html)\n\nUpdates the validation info of the draft filtering rules."] +#[doc = "Builder for the [Connector Update Filtering Validation API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-connector-filtering-api.html)\n\nUpdates the validation info of the draft filtering rules."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -3983,7 +3983,7 @@ impl<'b> ConnectorUpdateIndexNameParts<'b> { } } } -#[doc = "Builder for the [Connector Update Index Name API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-index-name-api.html)\n\nUpdates the index name of the connector."] +#[doc = "Builder for the [Connector Update Index Name API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-connector-index-name-api.html)\n\nUpdates the index name of the connector."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -4131,7 +4131,7 @@ impl<'b> ConnectorUpdateNameParts<'b> { } } } -#[doc = "Builder for the [Connector Update Name API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-name-description-api.html)\n\nUpdates the name and/or description fields in the connector document."] +#[doc = "Builder for the [Connector Update Name API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-connector-name-description-api.html)\n\nUpdates the name and/or description fields in the connector document."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -4279,7 +4279,7 @@ impl<'b> ConnectorUpdateNativeParts<'b> { } } } -#[doc = "Builder for the [Connector Update Native API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/connector-apis.html)\n\nUpdates the is_native flag of the connector."] +#[doc = "Builder for the [Connector Update Native API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/connector-apis.html)\n\nUpdates the is_native flag of the connector."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -4427,7 +4427,7 @@ impl<'b> ConnectorUpdatePipelineParts<'b> { } } } -#[doc = "Builder for the [Connector Update Pipeline API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-pipeline-api.html)\n\nUpdates the pipeline field in the connector document."] +#[doc = "Builder for the [Connector Update Pipeline API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-connector-pipeline-api.html)\n\nUpdates the pipeline field in the connector document."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -4575,7 +4575,7 @@ impl<'b> ConnectorUpdateSchedulingParts<'b> { } } } -#[doc = "Builder for the [Connector Update Scheduling API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-scheduling-api.html)\n\nUpdates the scheduling field in the connector document."] +#[doc = "Builder for the [Connector Update Scheduling API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-connector-scheduling-api.html)\n\nUpdates the scheduling field in the connector document."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -4723,7 +4723,7 @@ impl<'b> ConnectorUpdateServiceTypeParts<'b> { } } } -#[doc = "Builder for the [Connector Update Service Type API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-service-type-api.html)\n\nUpdates the service type of the connector."] +#[doc = "Builder for the [Connector Update Service Type API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-connector-service-type-api.html)\n\nUpdates the service type of the connector."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -4871,7 +4871,7 @@ impl<'b> ConnectorUpdateStatusParts<'b> { } } } -#[doc = "Builder for the [Connector Update Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-status-api.html)\n\nUpdates the status of the connector."] +#[doc = "Builder for the [Connector Update Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-connector-status-api.html)\n\nUpdates the status of the connector."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -5010,7 +5010,7 @@ impl<'a> Connector<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Connector Check In API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/check-in-connector-api.html)\n\nUpdates the last_seen timestamp in the connector document."] + #[doc = "[Connector Check In API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/check-in-connector-api.html)\n\nUpdates the last_seen timestamp in the connector document."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn check_in<'b>( @@ -5019,19 +5019,19 @@ impl<'a> Connector<'a> { ) -> ConnectorCheckIn<'a, 'b, ()> { ConnectorCheckIn::new(self.transport(), parts) } - #[doc = "[Connector Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-connector-api.html)\n\nDeletes a connector."] + #[doc = "[Connector Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-connector-api.html)\n\nDeletes a connector."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn delete<'b>(&'a self, parts: ConnectorDeleteParts<'b>) -> ConnectorDelete<'a, 'b> { ConnectorDelete::new(self.transport(), parts) } - #[doc = "[Connector Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-connector-api.html)\n\nReturns the details about a connector."] + #[doc = "[Connector Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-connector-api.html)\n\nReturns the details about a connector."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn get<'b>(&'a self, parts: ConnectorGetParts<'b>) -> ConnectorGet<'a, 'b> { ConnectorGet::new(self.transport(), parts) } - #[doc = "[Connector Last Sync API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-last-sync-api.html)\n\nUpdates the stats of last sync in the connector document."] + #[doc = "[Connector Last Sync API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-connector-last-sync-api.html)\n\nUpdates the stats of last sync in the connector document."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn last_sync<'b>( @@ -5040,19 +5040,19 @@ impl<'a> Connector<'a> { ) -> ConnectorLastSync<'a, 'b, ()> { ConnectorLastSync::new(self.transport(), parts) } - #[doc = "[Connector List API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/list-connector-api.html)\n\nLists all connectors."] + #[doc = "[Connector List API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/list-connector-api.html)\n\nLists all connectors."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn list<'b>(&'a self) -> ConnectorList<'a, 'b> { ConnectorList::new(self.transport()) } - #[doc = "[Connector Post API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/create-connector-api.html)\n\nCreates a connector."] + #[doc = "[Connector Post API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/create-connector-api.html)\n\nCreates a connector."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn post<'b>(&'a self) -> ConnectorPost<'a, 'b, ()> { ConnectorPost::new(self.transport()) } - #[doc = "[Connector Put API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/create-connector-api.html)\n\nCreates or updates a connector."] + #[doc = "[Connector Put API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/create-connector-api.html)\n\nCreates or updates a connector."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn put<'b>(&'a self, parts: ConnectorPutParts<'b>) -> ConnectorPut<'a, 'b, ()> { @@ -5091,7 +5091,7 @@ impl<'a> Connector<'a> { ) -> ConnectorSecretPut<'a, 'b, ()> { ConnectorSecretPut::new(self.transport(), parts) } - #[doc = "[Connector Sync Job Cancel API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cancel-connector-sync-job-api.html)\n\nCancels a connector sync job."] + #[doc = "[Connector Sync Job Cancel API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cancel-connector-sync-job-api.html)\n\nCancels a connector sync job."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn sync_job_cancel<'b>( @@ -5100,7 +5100,7 @@ impl<'a> Connector<'a> { ) -> ConnectorSyncJobCancel<'a, 'b, ()> { ConnectorSyncJobCancel::new(self.transport(), parts) } - #[doc = "[Connector Sync Job Check In API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/check-in-connector-sync-job-api.html)\n\nChecks in a connector sync job (refreshes 'last_seen')."] + #[doc = "[Connector Sync Job Check In API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/check-in-connector-sync-job-api.html)\n\nChecks in a connector sync job (refreshes 'last_seen')."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn sync_job_check_in<'b>( @@ -5109,7 +5109,7 @@ impl<'a> Connector<'a> { ) -> ConnectorSyncJobCheckIn<'a, 'b, ()> { ConnectorSyncJobCheckIn::new(self.transport(), parts) } - #[doc = "[Connector Sync Job Claim API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/claim-connector-sync-job-api.html)\n\nClaims a connector sync job."] + #[doc = "[Connector Sync Job Claim API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/claim-connector-sync-job-api.html)\n\nClaims a connector sync job."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn sync_job_claim<'b>( @@ -5118,7 +5118,7 @@ impl<'a> Connector<'a> { ) -> ConnectorSyncJobClaim<'a, 'b, ()> { ConnectorSyncJobClaim::new(self.transport(), parts) } - #[doc = "[Connector Sync Job Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-connector-sync-job-api.html)\n\nDeletes a connector sync job."] + #[doc = "[Connector Sync Job Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-connector-sync-job-api.html)\n\nDeletes a connector sync job."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn sync_job_delete<'b>( @@ -5127,7 +5127,7 @@ impl<'a> Connector<'a> { ) -> ConnectorSyncJobDelete<'a, 'b> { ConnectorSyncJobDelete::new(self.transport(), parts) } - #[doc = "[Connector Sync Job Error API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/set-connector-sync-job-error-api.html)\n\nSets an error for a connector sync job."] + #[doc = "[Connector Sync Job Error API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/set-connector-sync-job-error-api.html)\n\nSets an error for a connector sync job."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn sync_job_error<'b>( @@ -5136,7 +5136,7 @@ impl<'a> Connector<'a> { ) -> ConnectorSyncJobError<'a, 'b, ()> { ConnectorSyncJobError::new(self.transport(), parts) } - #[doc = "[Connector Sync Job Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-connector-sync-job-api.html)\n\nReturns the details about a connector sync job."] + #[doc = "[Connector Sync Job Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-connector-sync-job-api.html)\n\nReturns the details about a connector sync job."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn sync_job_get<'b>( @@ -5145,19 +5145,19 @@ impl<'a> Connector<'a> { ) -> ConnectorSyncJobGet<'a, 'b> { ConnectorSyncJobGet::new(self.transport(), parts) } - #[doc = "[Connector Sync Job List API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/list-connector-sync-jobs-api.html)\n\nLists all connector sync jobs."] + #[doc = "[Connector Sync Job List API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/list-connector-sync-jobs-api.html)\n\nLists all connector sync jobs."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn sync_job_list<'b>(&'a self) -> ConnectorSyncJobList<'a, 'b> { ConnectorSyncJobList::new(self.transport()) } - #[doc = "[Connector Sync Job Post API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/create-connector-sync-job-api.html)\n\nCreates a connector sync job."] + #[doc = "[Connector Sync Job Post API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/create-connector-sync-job-api.html)\n\nCreates a connector sync job."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn sync_job_post<'b>(&'a self) -> ConnectorSyncJobPost<'a, 'b, ()> { ConnectorSyncJobPost::new(self.transport()) } - #[doc = "[Connector Sync Job Update Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/set-connector-sync-job-stats-api.html)\n\nUpdates the stats fields in the connector sync job document."] + #[doc = "[Connector Sync Job Update Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/set-connector-sync-job-stats-api.html)\n\nUpdates the stats fields in the connector sync job document."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn sync_job_update_stats<'b>( @@ -5166,7 +5166,7 @@ impl<'a> Connector<'a> { ) -> ConnectorSyncJobUpdateStats<'a, 'b, ()> { ConnectorSyncJobUpdateStats::new(self.transport(), parts) } - #[doc = "[Connector Update Active Filtering API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-filtering-api.html)\n\nActivates the draft filtering rules if they are in a validated state."] + #[doc = "[Connector Update Active Filtering API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-connector-filtering-api.html)\n\nActivates the draft filtering rules if they are in a validated state."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn update_active_filtering<'b>( @@ -5175,7 +5175,7 @@ impl<'a> Connector<'a> { ) -> ConnectorUpdateActiveFiltering<'a, 'b, ()> { ConnectorUpdateActiveFiltering::new(self.transport(), parts) } - #[doc = "[Connector Update Api Key Id API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-api-key-id-api.html)\n\nUpdates the API key id and/or API key secret id fields in the connector document."] + #[doc = "[Connector Update Api Key Id API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-connector-api-key-id-api.html)\n\nUpdates the API key id and/or API key secret id fields in the connector document."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn update_api_key_id<'b>( @@ -5184,7 +5184,7 @@ impl<'a> Connector<'a> { ) -> ConnectorUpdateApiKeyId<'a, 'b, ()> { ConnectorUpdateApiKeyId::new(self.transport(), parts) } - #[doc = "[Connector Update Configuration API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-configuration-api.html)\n\nUpdates the connector configuration."] + #[doc = "[Connector Update Configuration API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-connector-configuration-api.html)\n\nUpdates the connector configuration."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn update_configuration<'b>( @@ -5193,7 +5193,7 @@ impl<'a> Connector<'a> { ) -> ConnectorUpdateConfiguration<'a, 'b, ()> { ConnectorUpdateConfiguration::new(self.transport(), parts) } - #[doc = "[Connector Update Error API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-error-api.html)\n\nUpdates the error field in the connector document."] + #[doc = "[Connector Update Error API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-connector-error-api.html)\n\nUpdates the error field in the connector document."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn update_error<'b>( @@ -5202,7 +5202,7 @@ impl<'a> Connector<'a> { ) -> ConnectorUpdateError<'a, 'b, ()> { ConnectorUpdateError::new(self.transport(), parts) } - #[doc = "[Connector Update Features API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-features-api.html)\n\nUpdates the connector features in the connector document."] + #[doc = "[Connector Update Features API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-connector-features-api.html)\n\nUpdates the connector features in the connector document."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn update_features<'b>( @@ -5211,7 +5211,7 @@ impl<'a> Connector<'a> { ) -> ConnectorUpdateFeatures<'a, 'b, ()> { ConnectorUpdateFeatures::new(self.transport(), parts) } - #[doc = "[Connector Update Filtering API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-filtering-api.html)\n\nUpdates the filtering field in the connector document."] + #[doc = "[Connector Update Filtering API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-connector-filtering-api.html)\n\nUpdates the filtering field in the connector document."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn update_filtering<'b>( @@ -5220,7 +5220,7 @@ impl<'a> Connector<'a> { ) -> ConnectorUpdateFiltering<'a, 'b, ()> { ConnectorUpdateFiltering::new(self.transport(), parts) } - #[doc = "[Connector Update Filtering Validation API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-filtering-api.html)\n\nUpdates the validation info of the draft filtering rules."] + #[doc = "[Connector Update Filtering Validation API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-connector-filtering-api.html)\n\nUpdates the validation info of the draft filtering rules."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn update_filtering_validation<'b>( @@ -5229,7 +5229,7 @@ impl<'a> Connector<'a> { ) -> ConnectorUpdateFilteringValidation<'a, 'b, ()> { ConnectorUpdateFilteringValidation::new(self.transport(), parts) } - #[doc = "[Connector Update Index Name API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-index-name-api.html)\n\nUpdates the index name of the connector."] + #[doc = "[Connector Update Index Name API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-connector-index-name-api.html)\n\nUpdates the index name of the connector."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn update_index_name<'b>( @@ -5238,7 +5238,7 @@ impl<'a> Connector<'a> { ) -> ConnectorUpdateIndexName<'a, 'b, ()> { ConnectorUpdateIndexName::new(self.transport(), parts) } - #[doc = "[Connector Update Name API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-name-description-api.html)\n\nUpdates the name and/or description fields in the connector document."] + #[doc = "[Connector Update Name API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-connector-name-description-api.html)\n\nUpdates the name and/or description fields in the connector document."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn update_name<'b>( @@ -5247,7 +5247,7 @@ impl<'a> Connector<'a> { ) -> ConnectorUpdateName<'a, 'b, ()> { ConnectorUpdateName::new(self.transport(), parts) } - #[doc = "[Connector Update Native API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/connector-apis.html)\n\nUpdates the is_native flag of the connector."] + #[doc = "[Connector Update Native API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/connector-apis.html)\n\nUpdates the is_native flag of the connector."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn update_native<'b>( @@ -5256,7 +5256,7 @@ impl<'a> Connector<'a> { ) -> ConnectorUpdateNative<'a, 'b, ()> { ConnectorUpdateNative::new(self.transport(), parts) } - #[doc = "[Connector Update Pipeline API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-pipeline-api.html)\n\nUpdates the pipeline field in the connector document."] + #[doc = "[Connector Update Pipeline API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-connector-pipeline-api.html)\n\nUpdates the pipeline field in the connector document."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn update_pipeline<'b>( @@ -5265,7 +5265,7 @@ impl<'a> Connector<'a> { ) -> ConnectorUpdatePipeline<'a, 'b, ()> { ConnectorUpdatePipeline::new(self.transport(), parts) } - #[doc = "[Connector Update Scheduling API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-scheduling-api.html)\n\nUpdates the scheduling field in the connector document."] + #[doc = "[Connector Update Scheduling API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-connector-scheduling-api.html)\n\nUpdates the scheduling field in the connector document."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn update_scheduling<'b>( @@ -5274,7 +5274,7 @@ impl<'a> Connector<'a> { ) -> ConnectorUpdateScheduling<'a, 'b, ()> { ConnectorUpdateScheduling::new(self.transport(), parts) } - #[doc = "[Connector Update Service Type API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-service-type-api.html)\n\nUpdates the service type of the connector."] + #[doc = "[Connector Update Service Type API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-connector-service-type-api.html)\n\nUpdates the service type of the connector."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn update_service_type<'b>( @@ -5283,7 +5283,7 @@ impl<'a> Connector<'a> { ) -> ConnectorUpdateServiceType<'a, 'b, ()> { ConnectorUpdateServiceType::new(self.transport(), parts) } - #[doc = "[Connector Update Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-connector-status-api.html)\n\nUpdates the status of the connector."] + #[doc = "[Connector Update Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-connector-status-api.html)\n\nUpdates the status of the connector."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn update_status<'b>( diff --git a/elasticsearch/src/dangling_indices.rs b/elasticsearch/src/dangling_indices.rs index a544b63f..f512bc91 100644 --- a/elasticsearch/src/dangling_indices.rs +++ b/elasticsearch/src/dangling_indices.rs @@ -70,7 +70,7 @@ impl<'b> DanglingIndicesDeleteDanglingIndexParts<'b> { } } } -#[doc = "Builder for the [Dangling Indices Delete Dangling Index API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-gateway-dangling-indices.html)\n\nDeletes the specified dangling index"] +#[doc = "Builder for the [Dangling Indices Delete Dangling Index API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-gateway-dangling-indices.html)\n\nDeletes the specified dangling index"] #[derive(Clone, Debug)] pub struct DanglingIndicesDeleteDanglingIndex<'a, 'b> { transport: &'a Transport, @@ -219,7 +219,7 @@ impl<'b> DanglingIndicesImportDanglingIndexParts<'b> { } } } -#[doc = "Builder for the [Dangling Indices Import Dangling Index API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-gateway-dangling-indices.html)\n\nImports the specified dangling index"] +#[doc = "Builder for the [Dangling Indices Import Dangling Index API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-gateway-dangling-indices.html)\n\nImports the specified dangling index"] #[derive(Clone, Debug)] pub struct DanglingIndicesImportDanglingIndex<'a, 'b, B> { transport: &'a Transport, @@ -387,7 +387,7 @@ impl DanglingIndicesListDanglingIndicesParts { } } } -#[doc = "Builder for the [Dangling Indices List Dangling Indices API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-gateway-dangling-indices.html)\n\nReturns all dangling indices."] +#[doc = "Builder for the [Dangling Indices List Dangling Indices API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-gateway-dangling-indices.html)\n\nReturns all dangling indices."] #[derive(Clone, Debug)] pub struct DanglingIndicesListDanglingIndices<'a, 'b> { transport: &'a Transport, @@ -497,21 +497,21 @@ impl<'a> DanglingIndices<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Dangling Indices Delete Dangling Index API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-gateway-dangling-indices.html)\n\nDeletes the specified dangling index"] + #[doc = "[Dangling Indices Delete Dangling Index API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-gateway-dangling-indices.html)\n\nDeletes the specified dangling index"] pub fn delete_dangling_index<'b>( &'a self, parts: DanglingIndicesDeleteDanglingIndexParts<'b>, ) -> DanglingIndicesDeleteDanglingIndex<'a, 'b> { DanglingIndicesDeleteDanglingIndex::new(self.transport(), parts) } - #[doc = "[Dangling Indices Import Dangling Index API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-gateway-dangling-indices.html)\n\nImports the specified dangling index"] + #[doc = "[Dangling Indices Import Dangling Index API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-gateway-dangling-indices.html)\n\nImports the specified dangling index"] pub fn import_dangling_index<'b>( &'a self, parts: DanglingIndicesImportDanglingIndexParts<'b>, ) -> DanglingIndicesImportDanglingIndex<'a, 'b, ()> { DanglingIndicesImportDanglingIndex::new(self.transport(), parts) } - #[doc = "[Dangling Indices List Dangling Indices API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-gateway-dangling-indices.html)\n\nReturns all dangling indices."] + #[doc = "[Dangling Indices List Dangling Indices API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-gateway-dangling-indices.html)\n\nReturns all dangling indices."] pub fn list_dangling_indices<'b>(&'a self) -> DanglingIndicesListDanglingIndices<'a, 'b> { DanglingIndicesListDanglingIndices::new(self.transport()) } diff --git a/elasticsearch/src/enrich.rs b/elasticsearch/src/enrich.rs index afddb63d..d9394aea 100644 --- a/elasticsearch/src/enrich.rs +++ b/elasticsearch/src/enrich.rs @@ -67,7 +67,7 @@ impl<'b> EnrichDeletePolicyParts<'b> { } } } -#[doc = "Builder for the [Enrich Delete Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-enrich-policy-api.html)\n\nDeletes an existing enrich policy and its enrich index."] +#[doc = "Builder for the [Enrich Delete Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-enrich-policy-api.html)\n\nDeletes an existing enrich policy and its enrich index."] #[derive(Clone, Debug)] pub struct EnrichDeletePolicy<'a, 'b> { transport: &'a Transport, @@ -195,7 +195,7 @@ impl<'b> EnrichExecutePolicyParts<'b> { } } } -#[doc = "Builder for the [Enrich Execute Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/execute-enrich-policy-api.html)\n\nCreates the enrich index for an existing enrich policy."] +#[doc = "Builder for the [Enrich Execute Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/execute-enrich-policy-api.html)\n\nCreates the enrich index for an existing enrich policy."] #[derive(Clone, Debug)] pub struct EnrichExecutePolicy<'a, 'b, B> { transport: &'a Transport, @@ -361,7 +361,7 @@ impl<'b> EnrichGetPolicyParts<'b> { } } } -#[doc = "Builder for the [Enrich Get Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-enrich-policy-api.html)\n\nGets information about an enrich policy."] +#[doc = "Builder for the [Enrich Get Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-enrich-policy-api.html)\n\nGets information about an enrich policy."] #[derive(Clone, Debug)] pub struct EnrichGetPolicy<'a, 'b> { transport: &'a Transport, @@ -488,7 +488,7 @@ impl<'b> EnrichPutPolicyParts<'b> { } } } -#[doc = "Builder for the [Enrich Put Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-enrich-policy-api.html)\n\nCreates a new enrich policy."] +#[doc = "Builder for the [Enrich Put Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-enrich-policy-api.html)\n\nCreates a new enrich policy."] #[derive(Clone, Debug)] pub struct EnrichPutPolicy<'a, 'b, B> { transport: &'a Transport, @@ -633,7 +633,7 @@ impl EnrichStatsParts { } } } -#[doc = "Builder for the [Enrich Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/enrich-stats-api.html)\n\nGets enrich coordinator statistics and information about enrich policies that are currently executing."] +#[doc = "Builder for the [Enrich Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/enrich-stats-api.html)\n\nGets enrich coordinator statistics and information about enrich policies that are currently executing."] #[derive(Clone, Debug)] pub struct EnrichStats<'a, 'b> { transport: &'a Transport, @@ -684,7 +684,7 @@ impl<'a, 'b> EnrichStats<'a, 'b> { self.human = Some(human); self } - #[doc = "Timeout for processing on master node"] + #[doc = "Timeout for waiting for new cluster state in case it is blocked"] pub fn master_timeout(mut self, master_timeout: &'b str) -> Self { self.master_timeout = Some(master_timeout); self @@ -752,32 +752,32 @@ impl<'a> Enrich<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Enrich Delete Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-enrich-policy-api.html)\n\nDeletes an existing enrich policy and its enrich index."] + #[doc = "[Enrich Delete Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-enrich-policy-api.html)\n\nDeletes an existing enrich policy and its enrich index."] pub fn delete_policy<'b>( &'a self, parts: EnrichDeletePolicyParts<'b>, ) -> EnrichDeletePolicy<'a, 'b> { EnrichDeletePolicy::new(self.transport(), parts) } - #[doc = "[Enrich Execute Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/execute-enrich-policy-api.html)\n\nCreates the enrich index for an existing enrich policy."] + #[doc = "[Enrich Execute Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/execute-enrich-policy-api.html)\n\nCreates the enrich index for an existing enrich policy."] pub fn execute_policy<'b>( &'a self, parts: EnrichExecutePolicyParts<'b>, ) -> EnrichExecutePolicy<'a, 'b, ()> { EnrichExecutePolicy::new(self.transport(), parts) } - #[doc = "[Enrich Get Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-enrich-policy-api.html)\n\nGets information about an enrich policy."] + #[doc = "[Enrich Get Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-enrich-policy-api.html)\n\nGets information about an enrich policy."] pub fn get_policy<'b>(&'a self, parts: EnrichGetPolicyParts<'b>) -> EnrichGetPolicy<'a, 'b> { EnrichGetPolicy::new(self.transport(), parts) } - #[doc = "[Enrich Put Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-enrich-policy-api.html)\n\nCreates a new enrich policy."] + #[doc = "[Enrich Put Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-enrich-policy-api.html)\n\nCreates a new enrich policy."] pub fn put_policy<'b>( &'a self, parts: EnrichPutPolicyParts<'b>, ) -> EnrichPutPolicy<'a, 'b, ()> { EnrichPutPolicy::new(self.transport(), parts) } - #[doc = "[Enrich Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/enrich-stats-api.html)\n\nGets enrich coordinator statistics and information about enrich policies that are currently executing."] + #[doc = "[Enrich Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/enrich-stats-api.html)\n\nGets enrich coordinator statistics and information about enrich policies that are currently executing."] pub fn stats<'b>(&'a self) -> EnrichStats<'a, 'b> { EnrichStats::new(self.transport()) } diff --git a/elasticsearch/src/eql.rs b/elasticsearch/src/eql.rs index 6aed880b..54cb0131 100644 --- a/elasticsearch/src/eql.rs +++ b/elasticsearch/src/eql.rs @@ -67,7 +67,7 @@ impl<'b> EqlDeleteParts<'b> { } } } -#[doc = "Builder for the [Eql Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/eql-search-api.html)\n\nDeletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted."] +#[doc = "Builder for the [Eql Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/eql-search-api.html)\n\nDeletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted."] #[derive(Clone, Debug)] pub struct EqlDelete<'a, 'b> { transport: &'a Transport, @@ -185,7 +185,7 @@ impl<'b> EqlGetParts<'b> { } } } -#[doc = "Builder for the [Eql Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/eql-search-api.html)\n\nReturns async results from previously executed Event Query Language (EQL) search"] +#[doc = "Builder for the [Eql Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/eql-search-api.html)\n\nReturns async results from previously executed Event Query Language (EQL) search"] #[derive(Clone, Debug)] pub struct EqlGet<'a, 'b> { transport: &'a Transport, @@ -321,7 +321,7 @@ impl<'b> EqlGetStatusParts<'b> { } } } -#[doc = "Builder for the [Eql Get Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/eql-search-api.html)\n\nReturns the status of a previously submitted async or stored Event Query Language (EQL) search"] +#[doc = "Builder for the [Eql Get Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/eql-search-api.html)\n\nReturns the status of a previously submitted async or stored Event Query Language (EQL) search"] #[derive(Clone, Debug)] pub struct EqlGetStatus<'a, 'b> { transport: &'a Transport, @@ -441,18 +441,22 @@ impl<'b> EqlSearchParts<'b> { } } } -#[doc = "Builder for the [Eql Search API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/eql-search-api.html)\n\nReturns results matching a query expressed in Event Query Language (EQL)"] +#[doc = "Builder for the [Eql Search API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/eql-search-api.html)\n\nReturns results matching a query expressed in Event Query Language (EQL)"] #[derive(Clone, Debug)] pub struct EqlSearch<'a, 'b, B> { transport: &'a Transport, parts: EqlSearchParts<'b>, + allow_no_indices: Option, allow_partial_search_results: Option, allow_partial_sequence_results: Option, body: Option, + ccs_minimize_roundtrips: Option, error_trace: Option, + expand_wildcards: Option<&'b [ExpandWildcards]>, filter_path: Option<&'b [&'b str]>, headers: HeaderMap, human: Option, + ignore_unavailable: Option, keep_alive: Option<&'b str>, keep_on_completion: Option, pretty: Option, @@ -471,12 +475,16 @@ where transport, parts, headers, + allow_no_indices: None, allow_partial_search_results: None, allow_partial_sequence_results: None, body: None, + ccs_minimize_roundtrips: None, error_trace: None, + expand_wildcards: None, filter_path: None, human: None, + ignore_unavailable: None, keep_alive: None, keep_on_completion: None, pretty: None, @@ -485,6 +493,11 @@ where wait_for_completion_timeout: None, } } + #[doc = "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)"] + pub fn allow_no_indices(mut self, allow_no_indices: bool) -> Self { + self.allow_no_indices = Some(allow_no_indices); + self + } #[doc = "Control whether the query should keep running in case of shard failures, and return partial results"] pub fn allow_partial_search_results(mut self, allow_partial_search_results: bool) -> Self { self.allow_partial_search_results = Some(allow_partial_search_results); @@ -504,12 +517,16 @@ where transport: self.transport, parts: self.parts, body: Some(body.into()), + allow_no_indices: self.allow_no_indices, allow_partial_search_results: self.allow_partial_search_results, allow_partial_sequence_results: self.allow_partial_sequence_results, + ccs_minimize_roundtrips: self.ccs_minimize_roundtrips, error_trace: self.error_trace, + expand_wildcards: self.expand_wildcards, filter_path: self.filter_path, headers: self.headers, human: self.human, + ignore_unavailable: self.ignore_unavailable, keep_alive: self.keep_alive, keep_on_completion: self.keep_on_completion, pretty: self.pretty, @@ -518,11 +535,21 @@ where wait_for_completion_timeout: self.wait_for_completion_timeout, } } + #[doc = "Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution"] + pub fn ccs_minimize_roundtrips(mut self, ccs_minimize_roundtrips: bool) -> Self { + self.ccs_minimize_roundtrips = Some(ccs_minimize_roundtrips); + self + } #[doc = "Include the stack trace of returned errors."] pub fn error_trace(mut self, error_trace: bool) -> Self { self.error_trace = Some(error_trace); self } + #[doc = "Whether to expand wildcard expression to concrete indices that are open, closed or both."] + pub fn expand_wildcards(mut self, expand_wildcards: &'b [ExpandWildcards]) -> Self { + self.expand_wildcards = Some(expand_wildcards); + self + } #[doc = "A comma-separated list of filters used to reduce the response."] pub fn filter_path(mut self, filter_path: &'b [&'b str]) -> Self { self.filter_path = Some(filter_path); @@ -538,6 +565,11 @@ where self.human = Some(human); self } + #[doc = "Whether specified concrete indices should be ignored when unavailable (missing or closed)"] + pub fn ignore_unavailable(mut self, ignore_unavailable: bool) -> Self { + self.ignore_unavailable = Some(ignore_unavailable); + self + } #[doc = "Update the time interval in which the results (partial or final) for this search will be available"] pub fn keep_alive(mut self, keep_alive: &'b str) -> Self { self.keep_alive = Some(keep_alive); @@ -581,12 +613,17 @@ where #[serde_with::skip_serializing_none] #[derive(Serialize)] struct QueryParams<'b> { + allow_no_indices: Option, allow_partial_search_results: Option, allow_partial_sequence_results: Option, + ccs_minimize_roundtrips: Option, error_trace: Option, #[serde(serialize_with = "crate::client::serialize_coll_qs")] + expand_wildcards: Option<&'b [ExpandWildcards]>, + #[serde(serialize_with = "crate::client::serialize_coll_qs")] filter_path: Option<&'b [&'b str]>, human: Option, + ignore_unavailable: Option, keep_alive: Option<&'b str>, keep_on_completion: Option, pretty: Option, @@ -594,11 +631,15 @@ where wait_for_completion_timeout: Option<&'b str>, } let query_params = QueryParams { + allow_no_indices: self.allow_no_indices, allow_partial_search_results: self.allow_partial_search_results, allow_partial_sequence_results: self.allow_partial_sequence_results, + ccs_minimize_roundtrips: self.ccs_minimize_roundtrips, error_trace: self.error_trace, + expand_wildcards: self.expand_wildcards, filter_path: self.filter_path, human: self.human, + ignore_unavailable: self.ignore_unavailable, keep_alive: self.keep_alive, keep_on_completion: self.keep_on_completion, pretty: self.pretty, @@ -627,19 +668,19 @@ impl<'a> Eql<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Eql Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/eql-search-api.html)\n\nDeletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted."] + #[doc = "[Eql Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/eql-search-api.html)\n\nDeletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted."] pub fn delete<'b>(&'a self, parts: EqlDeleteParts<'b>) -> EqlDelete<'a, 'b> { EqlDelete::new(self.transport(), parts) } - #[doc = "[Eql Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/eql-search-api.html)\n\nReturns async results from previously executed Event Query Language (EQL) search"] + #[doc = "[Eql Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/eql-search-api.html)\n\nReturns async results from previously executed Event Query Language (EQL) search"] pub fn get<'b>(&'a self, parts: EqlGetParts<'b>) -> EqlGet<'a, 'b> { EqlGet::new(self.transport(), parts) } - #[doc = "[Eql Get Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/eql-search-api.html)\n\nReturns the status of a previously submitted async or stored Event Query Language (EQL) search"] + #[doc = "[Eql Get Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/eql-search-api.html)\n\nReturns the status of a previously submitted async or stored Event Query Language (EQL) search"] pub fn get_status<'b>(&'a self, parts: EqlGetStatusParts<'b>) -> EqlGetStatus<'a, 'b> { EqlGetStatus::new(self.transport(), parts) } - #[doc = "[Eql Search API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/eql-search-api.html)\n\nReturns results matching a query expressed in Event Query Language (EQL)"] + #[doc = "[Eql Search API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/eql-search-api.html)\n\nReturns results matching a query expressed in Event Query Language (EQL)"] pub fn search<'b>(&'a self, parts: EqlSearchParts<'b>) -> EqlSearch<'a, 'b, ()> { EqlSearch::new(self.transport(), parts) } diff --git a/elasticsearch/src/esql.rs b/elasticsearch/src/esql.rs index 704ca6b4..b006b700 100644 --- a/elasticsearch/src/esql.rs +++ b/elasticsearch/src/esql.rs @@ -58,11 +58,12 @@ impl EsqlAsyncQueryParts { } } } -#[doc = "Builder for the [Esql Async Query API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/esql-async-query-api.html)\n\nExecutes an ESQL request asynchronously"] +#[doc = "Builder for the [Esql Async Query API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/esql-async-query-api.html)\n\nExecutes an ESQL request asynchronously"] #[derive(Clone, Debug)] pub struct EsqlAsyncQuery<'a, 'b, B> { transport: &'a Transport, parts: EsqlAsyncQueryParts, + allow_partial_results: Option, body: Option, delimiter: Option<&'b str>, drop_null_columns: Option, @@ -86,6 +87,7 @@ where transport, parts: EsqlAsyncQueryParts::None, headers, + allow_partial_results: None, body: None, delimiter: None, drop_null_columns: None, @@ -98,6 +100,11 @@ where source: None, } } + #[doc = "If `true`, partial results will be returned if there are shard failures, but\nthe query can continue to execute on other clusters and shards.\nIf `false`, the entire query will fail if there are\nany failures."] + pub fn allow_partial_results(mut self, allow_partial_results: bool) -> Self { + self.allow_partial_results = Some(allow_partial_results); + self + } #[doc = "The body for the API call"] pub fn body(self, body: T) -> EsqlAsyncQuery<'a, 'b, JsonBody> where @@ -107,6 +114,7 @@ where transport: self.transport, parts: self.parts, body: Some(body.into()), + allow_partial_results: self.allow_partial_results, delimiter: self.delimiter, drop_null_columns: self.drop_null_columns, error_trace: self.error_trace, @@ -179,6 +187,7 @@ where #[serde_with::skip_serializing_none] #[derive(Serialize)] struct QueryParams<'b> { + allow_partial_results: Option, delimiter: Option<&'b str>, drop_null_columns: Option, error_trace: Option, @@ -190,6 +199,7 @@ where source: Option<&'b str>, } let query_params = QueryParams { + allow_partial_results: self.allow_partial_results, delimiter: self.delimiter, drop_null_columns: self.drop_null_columns, error_trace: self.error_trace, @@ -229,7 +239,7 @@ impl<'b> EsqlAsyncQueryDeleteParts<'b> { } } } -#[doc = "Builder for the [Esql Async Query Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/esql-async-query-delete-api.html)\n\nDelete an async query request given its ID."] +#[doc = "Builder for the [Esql Async Query Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/esql-async-query-delete-api.html)\n\nDelete an async query request given its ID."] #[derive(Clone, Debug)] pub struct EsqlAsyncQueryDelete<'a, 'b> { transport: &'a Transport, @@ -347,7 +357,7 @@ impl<'b> EsqlAsyncQueryGetParts<'b> { } } } -#[doc = "Builder for the [Esql Async Query Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/esql-async-query-get-api.html)\n\nRetrieves the results of a previously submitted async query request given its ID."] +#[doc = "Builder for the [Esql Async Query Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/esql-async-query-get-api.html)\n\nRetrieves the results of a previously submitted async query request given its ID."] #[derive(Clone, Debug)] pub struct EsqlAsyncQueryGet<'a, 'b> { transport: &'a Transport, @@ -355,6 +365,7 @@ pub struct EsqlAsyncQueryGet<'a, 'b> { drop_null_columns: Option, error_trace: Option, filter_path: Option<&'b [&'b str]>, + format: Option<&'b str>, headers: HeaderMap, human: Option, keep_alive: Option<&'b str>, @@ -374,6 +385,7 @@ impl<'a, 'b> EsqlAsyncQueryGet<'a, 'b> { drop_null_columns: None, error_trace: None, filter_path: None, + format: None, human: None, keep_alive: None, pretty: None, @@ -397,6 +409,11 @@ impl<'a, 'b> EsqlAsyncQueryGet<'a, 'b> { self.filter_path = Some(filter_path); self } + #[doc = "a short version of the Accept header, e.g. json, yaml"] + pub fn format(mut self, format: &'b str) -> Self { + self.format = Some(format); + self + } #[doc = "Adds a HTTP header"] pub fn header(mut self, key: HeaderName, value: HeaderValue) -> Self { self.headers.insert(key, value); @@ -446,6 +463,7 @@ impl<'a, 'b> EsqlAsyncQueryGet<'a, 'b> { error_trace: Option, #[serde(serialize_with = "crate::client::serialize_coll_qs")] filter_path: Option<&'b [&'b str]>, + format: Option<&'b str>, human: Option, keep_alive: Option<&'b str>, pretty: Option, @@ -456,6 +474,7 @@ impl<'a, 'b> EsqlAsyncQueryGet<'a, 'b> { drop_null_columns: self.drop_null_columns, error_trace: self.error_trace, filter_path: self.filter_path, + format: self.format, human: self.human, keep_alive: self.keep_alive, pretty: self.pretty, @@ -493,7 +512,7 @@ impl<'b> EsqlAsyncQueryStopParts<'b> { } } } -#[doc = "Builder for the [Esql Async Query Stop API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/esql-async-query-stop-api.html)\n\nStops a previously submitted async query request given its ID and collects the results."] +#[doc = "Builder for the [Esql Async Query Stop API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/esql-async-query-stop-api.html)\n\nStops a previously submitted async query request given its ID and collects the results."] #[derive(Clone, Debug)] pub struct EsqlAsyncQueryStop<'a, 'b, B> { transport: &'a Transport, @@ -614,6 +633,246 @@ where Ok(response) } } +#[cfg(feature = "experimental-apis")] +#[derive(Debug, Clone, PartialEq, Eq)] +#[doc = "API parts for the Esql Get Query API"] +pub enum EsqlGetQueryParts<'b> { + #[doc = "Id"] + Id(&'b str), +} +#[cfg(feature = "experimental-apis")] +impl<'b> EsqlGetQueryParts<'b> { + #[doc = "Builds a relative URL path to the Esql Get Query API"] + pub fn url(self) -> Cow<'static, str> { + match self { + EsqlGetQueryParts::Id(id) => { + let encoded_id: Cow = percent_encode(id.as_bytes(), PARTS_ENCODED).into(); + let mut p = String::with_capacity(16usize + encoded_id.len()); + p.push_str("/_query/queries/"); + p.push_str(encoded_id.as_ref()); + p.into() + } + } + } +} +#[doc = "Builder for the Esql Get Query API\n\nExecutes a get ESQL query request"] +#[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] +#[cfg(feature = "experimental-apis")] +#[derive(Clone, Debug)] +pub struct EsqlGetQuery<'a, 'b> { + transport: &'a Transport, + parts: EsqlGetQueryParts<'b>, + error_trace: Option, + filter_path: Option<&'b [&'b str]>, + headers: HeaderMap, + human: Option, + pretty: Option, + request_timeout: Option, + source: Option<&'b str>, +} +#[cfg(feature = "experimental-apis")] +impl<'a, 'b> EsqlGetQuery<'a, 'b> { + #[doc = "Creates a new instance of [EsqlGetQuery] with the specified API parts"] + pub fn new(transport: &'a Transport, parts: EsqlGetQueryParts<'b>) -> Self { + let headers = HeaderMap::new(); + EsqlGetQuery { + transport, + parts, + headers, + error_trace: None, + filter_path: None, + human: None, + pretty: None, + request_timeout: None, + source: None, + } + } + #[doc = "Include the stack trace of returned errors."] + pub fn error_trace(mut self, error_trace: bool) -> Self { + self.error_trace = Some(error_trace); + self + } + #[doc = "A comma-separated list of filters used to reduce the response."] + pub fn filter_path(mut self, filter_path: &'b [&'b str]) -> Self { + self.filter_path = Some(filter_path); + self + } + #[doc = "Adds a HTTP header"] + pub fn header(mut self, key: HeaderName, value: HeaderValue) -> Self { + self.headers.insert(key, value); + self + } + #[doc = "Return human readable values for statistics."] + pub fn human(mut self, human: bool) -> Self { + self.human = Some(human); + self + } + #[doc = "Pretty format the returned JSON response."] + pub fn pretty(mut self, pretty: bool) -> Self { + self.pretty = Some(pretty); + self + } + #[doc = "Sets a request timeout for this API call.\n\nThe timeout is applied from when the request starts connecting until the response body has finished."] + pub fn request_timeout(mut self, timeout: Duration) -> Self { + self.request_timeout = Some(timeout); + self + } + #[doc = "The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests."] + pub fn source(mut self, source: &'b str) -> Self { + self.source = Some(source); + self + } + #[doc = "Creates an asynchronous call to the Esql Get Query API that can be awaited"] + pub async fn send(self) -> Result { + let path = self.parts.url(); + let method = http::Method::Get; + let headers = self.headers; + let timeout = self.request_timeout; + let query_string = { + #[serde_with::skip_serializing_none] + #[derive(Serialize)] + struct QueryParams<'b> { + error_trace: Option, + #[serde(serialize_with = "crate::client::serialize_coll_qs")] + filter_path: Option<&'b [&'b str]>, + human: Option, + pretty: Option, + source: Option<&'b str>, + } + let query_params = QueryParams { + error_trace: self.error_trace, + filter_path: self.filter_path, + human: self.human, + pretty: self.pretty, + source: self.source, + }; + Some(query_params) + }; + let body = Option::<()>::None; + let response = self + .transport + .send(method, &path, headers, query_string.as_ref(), body, timeout) + .await?; + Ok(response) + } +} +#[cfg(feature = "experimental-apis")] +#[derive(Debug, Clone, PartialEq, Eq)] +#[doc = "API parts for the Esql List Queries API"] +pub enum EsqlListQueriesParts { + #[doc = "No parts"] + None, +} +#[cfg(feature = "experimental-apis")] +impl EsqlListQueriesParts { + #[doc = "Builds a relative URL path to the Esql List Queries API"] + pub fn url(self) -> Cow<'static, str> { + match self { + EsqlListQueriesParts::None => "/_query/queries".into(), + } + } +} +#[doc = "Builder for the Esql List Queries API\n\nExecutes a list ESQL queries request"] +#[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] +#[cfg(feature = "experimental-apis")] +#[derive(Clone, Debug)] +pub struct EsqlListQueries<'a, 'b> { + transport: &'a Transport, + parts: EsqlListQueriesParts, + error_trace: Option, + filter_path: Option<&'b [&'b str]>, + headers: HeaderMap, + human: Option, + pretty: Option, + request_timeout: Option, + source: Option<&'b str>, +} +#[cfg(feature = "experimental-apis")] +impl<'a, 'b> EsqlListQueries<'a, 'b> { + #[doc = "Creates a new instance of [EsqlListQueries]"] + pub fn new(transport: &'a Transport) -> Self { + let headers = HeaderMap::new(); + EsqlListQueries { + transport, + parts: EsqlListQueriesParts::None, + headers, + error_trace: None, + filter_path: None, + human: None, + pretty: None, + request_timeout: None, + source: None, + } + } + #[doc = "Include the stack trace of returned errors."] + pub fn error_trace(mut self, error_trace: bool) -> Self { + self.error_trace = Some(error_trace); + self + } + #[doc = "A comma-separated list of filters used to reduce the response."] + pub fn filter_path(mut self, filter_path: &'b [&'b str]) -> Self { + self.filter_path = Some(filter_path); + self + } + #[doc = "Adds a HTTP header"] + pub fn header(mut self, key: HeaderName, value: HeaderValue) -> Self { + self.headers.insert(key, value); + self + } + #[doc = "Return human readable values for statistics."] + pub fn human(mut self, human: bool) -> Self { + self.human = Some(human); + self + } + #[doc = "Pretty format the returned JSON response."] + pub fn pretty(mut self, pretty: bool) -> Self { + self.pretty = Some(pretty); + self + } + #[doc = "Sets a request timeout for this API call.\n\nThe timeout is applied from when the request starts connecting until the response body has finished."] + pub fn request_timeout(mut self, timeout: Duration) -> Self { + self.request_timeout = Some(timeout); + self + } + #[doc = "The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests."] + pub fn source(mut self, source: &'b str) -> Self { + self.source = Some(source); + self + } + #[doc = "Creates an asynchronous call to the Esql List Queries API that can be awaited"] + pub async fn send(self) -> Result { + let path = self.parts.url(); + let method = http::Method::Get; + let headers = self.headers; + let timeout = self.request_timeout; + let query_string = { + #[serde_with::skip_serializing_none] + #[derive(Serialize)] + struct QueryParams<'b> { + error_trace: Option, + #[serde(serialize_with = "crate::client::serialize_coll_qs")] + filter_path: Option<&'b [&'b str]>, + human: Option, + pretty: Option, + source: Option<&'b str>, + } + let query_params = QueryParams { + error_trace: self.error_trace, + filter_path: self.filter_path, + human: self.human, + pretty: self.pretty, + source: self.source, + }; + Some(query_params) + }; + let body = Option::<()>::None; + let response = self + .transport + .send(method, &path, headers, query_string.as_ref(), body, timeout) + .await?; + Ok(response) + } +} #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "API parts for the Esql Query API"] pub enum EsqlQueryParts { @@ -628,11 +887,12 @@ impl EsqlQueryParts { } } } -#[doc = "Builder for the [Esql Query API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/esql-query-api.html)\n\nExecutes an ESQL request"] +#[doc = "Builder for the [Esql Query API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/esql-query-api.html)\n\nExecutes an ESQL request"] #[derive(Clone, Debug)] pub struct EsqlQuery<'a, 'b, B> { transport: &'a Transport, parts: EsqlQueryParts, + allow_partial_results: Option, body: Option, delimiter: Option<&'b str>, drop_null_columns: Option, @@ -656,6 +916,7 @@ where transport, parts: EsqlQueryParts::None, headers, + allow_partial_results: None, body: None, delimiter: None, drop_null_columns: None, @@ -668,6 +929,11 @@ where source: None, } } + #[doc = "If `true`, partial results will be returned if there are shard failures, but\nthe query can continue to execute on other clusters and shards.\nIf `false`, the entire query will fail if there are\nany failures."] + pub fn allow_partial_results(mut self, allow_partial_results: bool) -> Self { + self.allow_partial_results = Some(allow_partial_results); + self + } #[doc = "The body for the API call"] pub fn body(self, body: T) -> EsqlQuery<'a, 'b, JsonBody> where @@ -677,6 +943,7 @@ where transport: self.transport, parts: self.parts, body: Some(body.into()), + allow_partial_results: self.allow_partial_results, delimiter: self.delimiter, drop_null_columns: self.drop_null_columns, error_trace: self.error_trace, @@ -749,6 +1016,7 @@ where #[serde_with::skip_serializing_none] #[derive(Serialize)] struct QueryParams<'b> { + allow_partial_results: Option, delimiter: Option<&'b str>, drop_null_columns: Option, error_trace: Option, @@ -760,6 +1028,7 @@ where source: Option<&'b str>, } let query_params = QueryParams { + allow_partial_results: self.allow_partial_results, delimiter: self.delimiter, drop_null_columns: self.drop_null_columns, error_trace: self.error_trace, @@ -791,32 +1060,44 @@ impl<'a> Esql<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Esql Async Query API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/esql-async-query-api.html)\n\nExecutes an ESQL request asynchronously"] + #[doc = "[Esql Async Query API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/esql-async-query-api.html)\n\nExecutes an ESQL request asynchronously"] pub fn async_query<'b>(&'a self) -> EsqlAsyncQuery<'a, 'b, ()> { EsqlAsyncQuery::new(self.transport()) } - #[doc = "[Esql Async Query Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/esql-async-query-delete-api.html)\n\nDelete an async query request given its ID."] + #[doc = "[Esql Async Query Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/esql-async-query-delete-api.html)\n\nDelete an async query request given its ID."] pub fn async_query_delete<'b>( &'a self, parts: EsqlAsyncQueryDeleteParts<'b>, ) -> EsqlAsyncQueryDelete<'a, 'b> { EsqlAsyncQueryDelete::new(self.transport(), parts) } - #[doc = "[Esql Async Query Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/esql-async-query-get-api.html)\n\nRetrieves the results of a previously submitted async query request given its ID."] + #[doc = "[Esql Async Query Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/esql-async-query-get-api.html)\n\nRetrieves the results of a previously submitted async query request given its ID."] pub fn async_query_get<'b>( &'a self, parts: EsqlAsyncQueryGetParts<'b>, ) -> EsqlAsyncQueryGet<'a, 'b> { EsqlAsyncQueryGet::new(self.transport(), parts) } - #[doc = "[Esql Async Query Stop API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/esql-async-query-stop-api.html)\n\nStops a previously submitted async query request given its ID and collects the results."] + #[doc = "[Esql Async Query Stop API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/esql-async-query-stop-api.html)\n\nStops a previously submitted async query request given its ID and collects the results."] pub fn async_query_stop<'b>( &'a self, parts: EsqlAsyncQueryStopParts<'b>, ) -> EsqlAsyncQueryStop<'a, 'b, ()> { EsqlAsyncQueryStop::new(self.transport(), parts) } - #[doc = "[Esql Query API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/esql-query-api.html)\n\nExecutes an ESQL request"] + #[doc = "Esql Get Query API\n\nExecutes a get ESQL query request"] + #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] + #[cfg(feature = "experimental-apis")] + pub fn get_query<'b>(&'a self, parts: EsqlGetQueryParts<'b>) -> EsqlGetQuery<'a, 'b> { + EsqlGetQuery::new(self.transport(), parts) + } + #[doc = "Esql List Queries API\n\nExecutes a list ESQL queries request"] + #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] + #[cfg(feature = "experimental-apis")] + pub fn list_queries<'b>(&'a self) -> EsqlListQueries<'a, 'b> { + EsqlListQueries::new(self.transport()) + } + #[doc = "[Esql Query API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/esql-query-api.html)\n\nExecutes an ESQL request"] pub fn query<'b>(&'a self) -> EsqlQuery<'a, 'b, ()> { EsqlQuery::new(self.transport()) } diff --git a/elasticsearch/src/features.rs b/elasticsearch/src/features.rs index cf3fb96a..d15697ea 100644 --- a/elasticsearch/src/features.rs +++ b/elasticsearch/src/features.rs @@ -58,7 +58,7 @@ impl FeaturesGetFeaturesParts { } } } -#[doc = "Builder for the [Features Get Features API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-features-api.html)\n\nGets a list of features which can be included in snapshots using the feature_states field when creating a snapshot"] +#[doc = "Builder for the [Features Get Features API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-features-api.html)\n\nGets a list of features which can be included in snapshots using the feature_states field when creating a snapshot"] #[derive(Clone, Debug)] pub struct FeaturesGetFeatures<'a, 'b> { transport: &'a Transport, @@ -181,7 +181,7 @@ impl FeaturesResetFeaturesParts { } } } -#[doc = "Builder for the [Features Reset Features API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-snapshots.html)\n\nResets the internal state of features, usually by deleting system indices"] +#[doc = "Builder for the [Features Reset Features API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-snapshots.html)\n\nResets the internal state of features, usually by deleting system indices"] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -327,11 +327,11 @@ impl<'a> Features<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Features Get Features API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-features-api.html)\n\nGets a list of features which can be included in snapshots using the feature_states field when creating a snapshot"] + #[doc = "[Features Get Features API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-features-api.html)\n\nGets a list of features which can be included in snapshots using the feature_states field when creating a snapshot"] pub fn get_features<'b>(&'a self) -> FeaturesGetFeatures<'a, 'b> { FeaturesGetFeatures::new(self.transport()) } - #[doc = "[Features Reset Features API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-snapshots.html)\n\nResets the internal state of features, usually by deleting system indices"] + #[doc = "[Features Reset Features API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-snapshots.html)\n\nResets the internal state of features, usually by deleting system indices"] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn reset_features<'b>(&'a self) -> FeaturesResetFeatures<'a, 'b, ()> { diff --git a/elasticsearch/src/fleet.rs b/elasticsearch/src/fleet.rs index b8d93b6d..5a51d91c 100644 --- a/elasticsearch/src/fleet.rs +++ b/elasticsearch/src/fleet.rs @@ -310,7 +310,7 @@ impl<'b> FleetGlobalCheckpointsParts<'b> { } } } -#[doc = "Builder for the [Fleet Global Checkpoints API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-global-checkpoints.html)\n\nReturns the current global checkpoints for an index. This API is design for internal use by the fleet server project."] +#[doc = "Builder for the [Fleet Global Checkpoints API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-global-checkpoints.html)\n\nReturns the current global checkpoints for an index. This API is design for internal use by the fleet server project."] #[derive(Clone, Debug)] pub struct FleetGlobalCheckpoints<'a, 'b> { transport: &'a Transport, @@ -948,7 +948,7 @@ impl<'a> Fleet<'a> { pub fn get_secret<'b>(&'a self, parts: FleetGetSecretParts<'b>) -> FleetGetSecret<'a, 'b> { FleetGetSecret::new(self.transport(), parts) } - #[doc = "[Fleet Global Checkpoints API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-global-checkpoints.html)\n\nReturns the current global checkpoints for an index. This API is design for internal use by the fleet server project."] + #[doc = "[Fleet Global Checkpoints API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-global-checkpoints.html)\n\nReturns the current global checkpoints for an index. This API is design for internal use by the fleet server project."] pub fn global_checkpoints<'b>( &'a self, parts: FleetGlobalCheckpointsParts<'b>, diff --git a/elasticsearch/src/graph.rs b/elasticsearch/src/graph.rs index 7ef06645..1728b6fa 100644 --- a/elasticsearch/src/graph.rs +++ b/elasticsearch/src/graph.rs @@ -69,7 +69,7 @@ impl<'b> GraphExploreParts<'b> { } } } -#[doc = "Builder for the [Graph Explore API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/graph-explore-api.html)\n\nExplore extracted and summarized information about the documents and terms in an index."] +#[doc = "Builder for the [Graph Explore API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/graph-explore-api.html)\n\nExplore extracted and summarized information about the documents and terms in an index."] #[derive(Clone, Debug)] pub struct GraphExplore<'a, 'b, B> { transport: &'a Transport, @@ -225,7 +225,7 @@ impl<'a> Graph<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Graph Explore API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/graph-explore-api.html)\n\nExplore extracted and summarized information about the documents and terms in an index."] + #[doc = "[Graph Explore API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/graph-explore-api.html)\n\nExplore extracted and summarized information about the documents and terms in an index."] pub fn explore<'b>(&'a self, parts: GraphExploreParts<'b>) -> GraphExplore<'a, 'b, ()> { GraphExplore::new(self.transport(), parts) } diff --git a/elasticsearch/src/http/transport.rs b/elasticsearch/src/http/transport.rs index 29f3d4e5..2183a0a4 100644 --- a/elasticsearch/src/http/transport.rs +++ b/elasticsearch/src/http/transport.rs @@ -45,6 +45,7 @@ use base64::{engine::general_purpose::STANDARD as BASE64_STANDARD, write::Encode use bytes::BytesMut; use flate2::{write::GzEncoder, Compression}; use lazy_static::lazy_static; +use parking_lot::RwLock; use serde::Serialize; use serde_json::Value; use std::{ @@ -58,7 +59,6 @@ use std::{ }, time::{Duration, Instant}, }; -use parking_lot::RwLock; use url::Url; /// Error that can occur when building a [Transport] @@ -344,7 +344,11 @@ impl TransportBuilder { if let Some(c) = self.proxy_credentials { proxy = match c { Credentials::Basic(u, p) => proxy.basic_auth(&u, &p), - _ => return Err(BuildError::Config("Only Basic Authentication is supported for proxies".into())), + _ => { + return Err(BuildError::Config( + "Only Basic Authentication is supported for proxies".into(), + )) + } }; } client_builder = client_builder.proxy(proxy); diff --git a/elasticsearch/src/ilm.rs b/elasticsearch/src/ilm.rs index 99b06fed..bc57e28c 100644 --- a/elasticsearch/src/ilm.rs +++ b/elasticsearch/src/ilm.rs @@ -71,7 +71,7 @@ impl<'b> IlmDeleteLifecycleParts<'b> { } } } -#[doc = "Builder for the [Ilm Delete Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ilm-delete-lifecycle.html)\n\nDeletes the specified lifecycle policy definition. A currently used policy cannot be deleted."] +#[doc = "Builder for the [Ilm Delete Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ilm-delete-lifecycle.html)\n\nDeletes the specified lifecycle policy definition. A currently used policy cannot be deleted."] #[derive(Clone, Debug)] pub struct IlmDeleteLifecycle<'a, 'b> { transport: &'a Transport, @@ -209,7 +209,7 @@ impl<'b> IlmExplainLifecycleParts<'b> { } } } -#[doc = "Builder for the [Ilm Explain Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ilm-explain-lifecycle.html)\n\nRetrieves information about the index's current lifecycle state, such as the currently executing phase, action, and step."] +#[doc = "Builder for the [Ilm Explain Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ilm-explain-lifecycle.html)\n\nRetrieves information about the index's current lifecycle state, such as the currently executing phase, action, and step."] #[derive(Clone, Debug)] pub struct IlmExplainLifecycle<'a, 'b> { transport: &'a Transport, @@ -358,7 +358,7 @@ impl<'b> IlmGetLifecycleParts<'b> { } } } -#[doc = "Builder for the [Ilm Get Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ilm-get-lifecycle.html)\n\nReturns the specified policy definition. Includes the policy version and last modified date."] +#[doc = "Builder for the [Ilm Get Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ilm-get-lifecycle.html)\n\nReturns the specified policy definition. Includes the policy version and last modified date."] #[derive(Clone, Debug)] pub struct IlmGetLifecycle<'a, 'b> { transport: &'a Transport, @@ -488,7 +488,7 @@ impl IlmGetStatusParts { } } } -#[doc = "Builder for the [Ilm Get Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ilm-get-status.html)\n\nRetrieves the current index lifecycle management (ILM) status."] +#[doc = "Builder for the [Ilm Get Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ilm-get-status.html)\n\nRetrieves the current index lifecycle management (ILM) status."] #[derive(Clone, Debug)] pub struct IlmGetStatus<'a, 'b> { transport: &'a Transport, @@ -600,7 +600,7 @@ impl IlmMigrateToDataTiersParts { } } } -#[doc = "Builder for the [Ilm Migrate To Data Tiers API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ilm-migrate-to-data-tiers.html)\n\nMigrates the indices and ILM policies away from custom node attribute allocation routing to data tiers routing"] +#[doc = "Builder for the [Ilm Migrate To Data Tiers API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ilm-migrate-to-data-tiers.html)\n\nMigrates the indices and ILM policies away from custom node attribute allocation routing to data tiers routing"] #[derive(Clone, Debug)] pub struct IlmMigrateToDataTiers<'a, 'b, B> { transport: &'a Transport, @@ -762,7 +762,7 @@ impl<'b> IlmMoveToStepParts<'b> { } } } -#[doc = "Builder for the [Ilm Move To Step API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ilm-move-to-step.html)\n\nManually moves an index into the specified step and executes that step."] +#[doc = "Builder for the [Ilm Move To Step API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ilm-move-to-step.html)\n\nManually moves an index into the specified step and executes that step."] #[derive(Clone, Debug)] pub struct IlmMoveToStep<'a, 'b, B> { transport: &'a Transport, @@ -904,7 +904,7 @@ impl<'b> IlmPutLifecycleParts<'b> { } } } -#[doc = "Builder for the [Ilm Put Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ilm-put-lifecycle.html)\n\nCreates a lifecycle policy"] +#[doc = "Builder for the [Ilm Put Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ilm-put-lifecycle.html)\n\nCreates a lifecycle policy"] #[derive(Clone, Debug)] pub struct IlmPutLifecycle<'a, 'b, B> { transport: &'a Transport, @@ -1067,7 +1067,7 @@ impl<'b> IlmRemovePolicyParts<'b> { } } } -#[doc = "Builder for the [Ilm Remove Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ilm-remove-policy.html)\n\nRemoves the assigned lifecycle policy and stops managing the specified index"] +#[doc = "Builder for the [Ilm Remove Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ilm-remove-policy.html)\n\nRemoves the assigned lifecycle policy and stops managing the specified index"] #[derive(Clone, Debug)] pub struct IlmRemovePolicy<'a, 'b, B> { transport: &'a Transport, @@ -1210,7 +1210,7 @@ impl<'b> IlmRetryParts<'b> { } } } -#[doc = "Builder for the [Ilm Retry API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ilm-retry-policy.html)\n\nRetries executing the policy for an index that is in the ERROR step."] +#[doc = "Builder for the [Ilm Retry API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ilm-retry-policy.html)\n\nRetries executing the policy for an index that is in the ERROR step."] #[derive(Clone, Debug)] pub struct IlmRetry<'a, 'b, B> { transport: &'a Transport, @@ -1345,7 +1345,7 @@ impl IlmStartParts { } } } -#[doc = "Builder for the [Ilm Start API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ilm-start.html)\n\nStart the index lifecycle management (ILM) plugin."] +#[doc = "Builder for the [Ilm Start API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ilm-start.html)\n\nStart the index lifecycle management (ILM) plugin."] #[derive(Clone, Debug)] pub struct IlmStart<'a, 'b, B> { transport: &'a Transport, @@ -1500,7 +1500,7 @@ impl IlmStopParts { } } } -#[doc = "Builder for the [Ilm Stop API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ilm-stop.html)\n\nHalts all lifecycle management operations and stops the index lifecycle management (ILM) plugin"] +#[doc = "Builder for the [Ilm Stop API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ilm-stop.html)\n\nHalts all lifecycle management operations and stops the index lifecycle management (ILM) plugin"] #[derive(Clone, Debug)] pub struct IlmStop<'a, 'b, B> { transport: &'a Transport, @@ -1653,59 +1653,59 @@ impl<'a> Ilm<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Ilm Delete Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ilm-delete-lifecycle.html)\n\nDeletes the specified lifecycle policy definition. A currently used policy cannot be deleted."] + #[doc = "[Ilm Delete Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ilm-delete-lifecycle.html)\n\nDeletes the specified lifecycle policy definition. A currently used policy cannot be deleted."] pub fn delete_lifecycle<'b>( &'a self, parts: IlmDeleteLifecycleParts<'b>, ) -> IlmDeleteLifecycle<'a, 'b> { IlmDeleteLifecycle::new(self.transport(), parts) } - #[doc = "[Ilm Explain Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ilm-explain-lifecycle.html)\n\nRetrieves information about the index's current lifecycle state, such as the currently executing phase, action, and step."] + #[doc = "[Ilm Explain Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ilm-explain-lifecycle.html)\n\nRetrieves information about the index's current lifecycle state, such as the currently executing phase, action, and step."] pub fn explain_lifecycle<'b>( &'a self, parts: IlmExplainLifecycleParts<'b>, ) -> IlmExplainLifecycle<'a, 'b> { IlmExplainLifecycle::new(self.transport(), parts) } - #[doc = "[Ilm Get Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ilm-get-lifecycle.html)\n\nReturns the specified policy definition. Includes the policy version and last modified date."] + #[doc = "[Ilm Get Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ilm-get-lifecycle.html)\n\nReturns the specified policy definition. Includes the policy version and last modified date."] pub fn get_lifecycle<'b>(&'a self, parts: IlmGetLifecycleParts<'b>) -> IlmGetLifecycle<'a, 'b> { IlmGetLifecycle::new(self.transport(), parts) } - #[doc = "[Ilm Get Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ilm-get-status.html)\n\nRetrieves the current index lifecycle management (ILM) status."] + #[doc = "[Ilm Get Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ilm-get-status.html)\n\nRetrieves the current index lifecycle management (ILM) status."] pub fn get_status<'b>(&'a self) -> IlmGetStatus<'a, 'b> { IlmGetStatus::new(self.transport()) } - #[doc = "[Ilm Migrate To Data Tiers API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ilm-migrate-to-data-tiers.html)\n\nMigrates the indices and ILM policies away from custom node attribute allocation routing to data tiers routing"] + #[doc = "[Ilm Migrate To Data Tiers API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ilm-migrate-to-data-tiers.html)\n\nMigrates the indices and ILM policies away from custom node attribute allocation routing to data tiers routing"] pub fn migrate_to_data_tiers<'b>(&'a self) -> IlmMigrateToDataTiers<'a, 'b, ()> { IlmMigrateToDataTiers::new(self.transport()) } - #[doc = "[Ilm Move To Step API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ilm-move-to-step.html)\n\nManually moves an index into the specified step and executes that step."] + #[doc = "[Ilm Move To Step API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ilm-move-to-step.html)\n\nManually moves an index into the specified step and executes that step."] pub fn move_to_step<'b>(&'a self, parts: IlmMoveToStepParts<'b>) -> IlmMoveToStep<'a, 'b, ()> { IlmMoveToStep::new(self.transport(), parts) } - #[doc = "[Ilm Put Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ilm-put-lifecycle.html)\n\nCreates a lifecycle policy"] + #[doc = "[Ilm Put Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ilm-put-lifecycle.html)\n\nCreates a lifecycle policy"] pub fn put_lifecycle<'b>( &'a self, parts: IlmPutLifecycleParts<'b>, ) -> IlmPutLifecycle<'a, 'b, ()> { IlmPutLifecycle::new(self.transport(), parts) } - #[doc = "[Ilm Remove Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ilm-remove-policy.html)\n\nRemoves the assigned lifecycle policy and stops managing the specified index"] + #[doc = "[Ilm Remove Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ilm-remove-policy.html)\n\nRemoves the assigned lifecycle policy and stops managing the specified index"] pub fn remove_policy<'b>( &'a self, parts: IlmRemovePolicyParts<'b>, ) -> IlmRemovePolicy<'a, 'b, ()> { IlmRemovePolicy::new(self.transport(), parts) } - #[doc = "[Ilm Retry API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ilm-retry-policy.html)\n\nRetries executing the policy for an index that is in the ERROR step."] + #[doc = "[Ilm Retry API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ilm-retry-policy.html)\n\nRetries executing the policy for an index that is in the ERROR step."] pub fn retry<'b>(&'a self, parts: IlmRetryParts<'b>) -> IlmRetry<'a, 'b, ()> { IlmRetry::new(self.transport(), parts) } - #[doc = "[Ilm Start API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ilm-start.html)\n\nStart the index lifecycle management (ILM) plugin."] + #[doc = "[Ilm Start API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ilm-start.html)\n\nStart the index lifecycle management (ILM) plugin."] pub fn start<'b>(&'a self) -> IlmStart<'a, 'b, ()> { IlmStart::new(self.transport()) } - #[doc = "[Ilm Stop API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ilm-stop.html)\n\nHalts all lifecycle management operations and stops the index lifecycle management (ILM) plugin"] + #[doc = "[Ilm Stop API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ilm-stop.html)\n\nHalts all lifecycle management operations and stops the index lifecycle management (ILM) plugin"] pub fn stop<'b>(&'a self) -> IlmStop<'a, 'b, ()> { IlmStop::new(self.transport()) } diff --git a/elasticsearch/src/indices.rs b/elasticsearch/src/indices.rs index 739062d7..539fc22b 100644 --- a/elasticsearch/src/indices.rs +++ b/elasticsearch/src/indices.rs @@ -72,7 +72,7 @@ impl<'b> IndicesAddBlockParts<'b> { } } } -#[doc = "Builder for the [Indices Add Block API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/index-modules-blocks.html)\n\nAdds a block to an index."] +#[doc = "Builder for the [Indices Add Block API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/index-modules-blocks.html)\n\nAdds a block to an index."] #[derive(Clone, Debug)] pub struct IndicesAddBlock<'a, 'b, B> { transport: &'a Transport, @@ -269,7 +269,7 @@ impl<'b> IndicesAnalyzeParts<'b> { } } } -#[doc = "Builder for the [Indices Analyze API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-analyze.html)\n\nPerforms the analysis process on a text and return the tokens breakdown of the text."] +#[doc = "Builder for the [Indices Analyze API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-analyze.html)\n\nPerforms the analysis process on a text and return the tokens breakdown of the text."] #[derive(Clone, Debug)] pub struct IndicesAnalyze<'a, 'b, B> { transport: &'a Transport, @@ -427,7 +427,7 @@ impl<'b> IndicesCancelMigrateReindexParts<'b> { } } } -#[doc = "Builder for the [Indices Cancel Migrate Reindex API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/data-stream-reindex-cancel-api.html)\n\nThis API returns the status of a migration reindex attempt for a data stream or index"] +#[doc = "Builder for the [Indices Cancel Migrate Reindex API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-stream-reindex-cancel-api.html)\n\nThis API returns the status of a migration reindex attempt for a data stream or index"] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -577,7 +577,7 @@ impl<'b> IndicesClearCacheParts<'b> { } } } -#[doc = "Builder for the [Indices Clear Cache API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-clearcache.html)\n\nClears all or specific caches for one or more indices."] +#[doc = "Builder for the [Indices Clear Cache API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-clearcache.html)\n\nClears all or specific caches for one or more indices."] #[derive(Clone, Debug)] pub struct IndicesClearCache<'a, 'b, B> { transport: &'a Transport, @@ -807,7 +807,7 @@ impl<'b> IndicesCloneParts<'b> { } } } -#[doc = "Builder for the [Indices Clone API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-clone-index.html)\n\nClones an index"] +#[doc = "Builder for the [Indices Clone API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-clone-index.html)\n\nClones an index"] #[derive(Clone, Debug)] pub struct IndicesClone<'a, 'b, B> { transport: &'a Transport, @@ -981,7 +981,7 @@ impl<'b> IndicesCloseParts<'b> { } } } -#[doc = "Builder for the [Indices Close API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-open-close.html)\n\nCloses an index."] +#[doc = "Builder for the [Indices Close API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-open-close.html)\n\nCloses an index."] #[derive(Clone, Debug)] pub struct IndicesClose<'a, 'b, B> { transport: &'a Transport, @@ -1184,7 +1184,7 @@ impl<'b> IndicesCreateParts<'b> { } } } -#[doc = "Builder for the [Indices Create API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-create-index.html)\n\nCreates an index with optional settings and mappings."] +#[doc = "Builder for the [Indices Create API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-create-index.html)\n\nCreates an index with optional settings and mappings."] #[derive(Clone, Debug)] pub struct IndicesCreate<'a, 'b, B> { transport: &'a Transport, @@ -1355,7 +1355,7 @@ impl<'b> IndicesCreateDataStreamParts<'b> { } } } -#[doc = "Builder for the [Indices Create Data Stream API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/data-streams.html)\n\nCreates a data stream"] +#[doc = "Builder for the [Indices Create Data Stream API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-streams.html)\n\nCreates a data stream"] #[derive(Clone, Debug)] pub struct IndicesCreateDataStream<'a, 'b, B> { transport: &'a Transport, @@ -1523,7 +1523,7 @@ impl<'b> IndicesCreateFromParts<'b> { } } } -#[doc = "Builder for the [Indices Create From API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-create-index-from-source.html)\n\nThis API creates a destination from a source index. It copies the mappings and settings from the source index while allowing request settings and mappings to override the source values."] +#[doc = "Builder for the [Indices Create From API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-create-index-from-source.html)\n\nThis API creates a destination from a source index. It copies the mappings and settings from the source index while allowing request settings and mappings to override the source values."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -1673,7 +1673,7 @@ impl<'b> IndicesDataStreamsStatsParts<'b> { } } } -#[doc = "Builder for the [Indices Data Streams Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/data-streams.html)\n\nProvides statistics on operations happening in a data stream."] +#[doc = "Builder for the [Indices Data Streams Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-streams.html)\n\nProvides statistics on operations happening in a data stream."] #[derive(Clone, Debug)] pub struct IndicesDataStreamsStats<'a, 'b> { transport: &'a Transport, @@ -1793,7 +1793,7 @@ impl<'b> IndicesDeleteParts<'b> { } } } -#[doc = "Builder for the [Indices Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-delete-index.html)\n\nDeletes an index."] +#[doc = "Builder for the [Indices Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-delete-index.html)\n\nDeletes an index."] #[derive(Clone, Debug)] pub struct IndicesDelete<'a, 'b> { transport: &'a Transport, @@ -1965,7 +1965,7 @@ impl<'b> IndicesDeleteAliasParts<'b> { } } } -#[doc = "Builder for the [Indices Delete Alias API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-aliases.html)\n\nDeletes an alias."] +#[doc = "Builder for the [Indices Delete Alias API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-aliases.html)\n\nDeletes an alias."] #[derive(Clone, Debug)] pub struct IndicesDeleteAlias<'a, 'b> { transport: &'a Transport, @@ -2104,7 +2104,7 @@ impl<'b> IndicesDeleteDataLifecycleParts<'b> { } } } -#[doc = "Builder for the [Indices Delete Data Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/data-streams-delete-lifecycle.html)\n\nDeletes the data stream lifecycle of the selected data streams."] +#[doc = "Builder for the [Indices Delete Data Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-streams-delete-lifecycle.html)\n\nDeletes the data stream lifecycle of the selected data streams."] #[derive(Clone, Debug)] pub struct IndicesDeleteDataLifecycle<'a, 'b> { transport: &'a Transport, @@ -2252,7 +2252,7 @@ impl<'b> IndicesDeleteDataStreamParts<'b> { } } } -#[doc = "Builder for the [Indices Delete Data Stream API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/data-streams.html)\n\nDeletes a data stream."] +#[doc = "Builder for the [Indices Delete Data Stream API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-streams.html)\n\nDeletes a data stream."] #[derive(Clone, Debug)] pub struct IndicesDeleteDataStream<'a, 'b> { transport: &'a Transport, @@ -2370,6 +2370,155 @@ impl<'a, 'b> IndicesDeleteDataStream<'a, 'b> { } } #[derive(Debug, Clone, PartialEq, Eq)] +#[doc = "API parts for the Indices Delete Data Stream Options API"] +pub enum IndicesDeleteDataStreamOptionsParts<'b> { + #[doc = "Name"] + Name(&'b [&'b str]), +} +impl<'b> IndicesDeleteDataStreamOptionsParts<'b> { + #[doc = "Builds a relative URL path to the Indices Delete Data Stream Options API"] + pub fn url(self) -> Cow<'static, str> { + match self { + IndicesDeleteDataStreamOptionsParts::Name(name) => { + let name_str = name.join(","); + let encoded_name: Cow = + percent_encode(name_str.as_bytes(), PARTS_ENCODED).into(); + let mut p = String::with_capacity(23usize + encoded_name.len()); + p.push_str("/_data_stream/"); + p.push_str(encoded_name.as_ref()); + p.push_str("/_options"); + p.into() + } + } + } +} +#[doc = "Builder for the [Indices Delete Data Stream Options API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/index.html)\n\nDeletes the data stream options of the selected data streams."] +#[derive(Clone, Debug)] +pub struct IndicesDeleteDataStreamOptions<'a, 'b> { + transport: &'a Transport, + parts: IndicesDeleteDataStreamOptionsParts<'b>, + error_trace: Option, + expand_wildcards: Option<&'b [ExpandWildcards]>, + filter_path: Option<&'b [&'b str]>, + headers: HeaderMap, + human: Option, + master_timeout: Option<&'b str>, + pretty: Option, + request_timeout: Option, + source: Option<&'b str>, + timeout: Option<&'b str>, +} +impl<'a, 'b> IndicesDeleteDataStreamOptions<'a, 'b> { + #[doc = "Creates a new instance of [IndicesDeleteDataStreamOptions] with the specified API parts"] + pub fn new(transport: &'a Transport, parts: IndicesDeleteDataStreamOptionsParts<'b>) -> Self { + let headers = HeaderMap::new(); + IndicesDeleteDataStreamOptions { + transport, + parts, + headers, + error_trace: None, + expand_wildcards: None, + filter_path: None, + human: None, + master_timeout: None, + pretty: None, + request_timeout: None, + source: None, + timeout: None, + } + } + #[doc = "Include the stack trace of returned errors."] + pub fn error_trace(mut self, error_trace: bool) -> Self { + self.error_trace = Some(error_trace); + self + } + #[doc = "Whether wildcard expressions should get expanded to open or closed indices (default: open)"] + pub fn expand_wildcards(mut self, expand_wildcards: &'b [ExpandWildcards]) -> Self { + self.expand_wildcards = Some(expand_wildcards); + self + } + #[doc = "A comma-separated list of filters used to reduce the response."] + pub fn filter_path(mut self, filter_path: &'b [&'b str]) -> Self { + self.filter_path = Some(filter_path); + self + } + #[doc = "Adds a HTTP header"] + pub fn header(mut self, key: HeaderName, value: HeaderValue) -> Self { + self.headers.insert(key, value); + self + } + #[doc = "Return human readable values for statistics."] + pub fn human(mut self, human: bool) -> Self { + self.human = Some(human); + self + } + #[doc = "Specify timeout for connection to master"] + pub fn master_timeout(mut self, master_timeout: &'b str) -> Self { + self.master_timeout = Some(master_timeout); + self + } + #[doc = "Pretty format the returned JSON response."] + pub fn pretty(mut self, pretty: bool) -> Self { + self.pretty = Some(pretty); + self + } + #[doc = "Sets a request timeout for this API call.\n\nThe timeout is applied from when the request starts connecting until the response body has finished."] + pub fn request_timeout(mut self, timeout: Duration) -> Self { + self.request_timeout = Some(timeout); + self + } + #[doc = "The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests."] + pub fn source(mut self, source: &'b str) -> Self { + self.source = Some(source); + self + } + #[doc = "Explicit timestamp for the document"] + pub fn timeout(mut self, timeout: &'b str) -> Self { + self.timeout = Some(timeout); + self + } + #[doc = "Creates an asynchronous call to the Indices Delete Data Stream Options API that can be awaited"] + pub async fn send(self) -> Result { + let path = self.parts.url(); + let method = http::Method::Delete; + let headers = self.headers; + let timeout = self.request_timeout; + let query_string = { + #[serde_with::skip_serializing_none] + #[derive(Serialize)] + struct QueryParams<'b> { + error_trace: Option, + #[serde(serialize_with = "crate::client::serialize_coll_qs")] + expand_wildcards: Option<&'b [ExpandWildcards]>, + #[serde(serialize_with = "crate::client::serialize_coll_qs")] + filter_path: Option<&'b [&'b str]>, + human: Option, + master_timeout: Option<&'b str>, + pretty: Option, + source: Option<&'b str>, + timeout: Option<&'b str>, + } + let query_params = QueryParams { + error_trace: self.error_trace, + expand_wildcards: self.expand_wildcards, + filter_path: self.filter_path, + human: self.human, + master_timeout: self.master_timeout, + pretty: self.pretty, + source: self.source, + timeout: self.timeout, + }; + Some(query_params) + }; + let body = Option::<()>::None; + let response = self + .transport + .send(method, &path, headers, query_string.as_ref(), body, timeout) + .await?; + Ok(response) + } +} +#[derive(Debug, Clone, PartialEq, Eq)] #[doc = "API parts for the Indices Delete Index Template API"] pub enum IndicesDeleteIndexTemplateParts<'b> { #[doc = "Name"] @@ -2389,7 +2538,7 @@ impl<'b> IndicesDeleteIndexTemplateParts<'b> { } } } -#[doc = "Builder for the [Indices Delete Index Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-delete-template.html)\n\nDeletes an index template."] +#[doc = "Builder for the [Indices Delete Index Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-delete-template.html)\n\nDeletes an index template."] #[derive(Clone, Debug)] pub struct IndicesDeleteIndexTemplate<'a, 'b> { transport: &'a Transport, @@ -2525,7 +2674,7 @@ impl<'b> IndicesDeleteTemplateParts<'b> { } } } -#[doc = "Builder for the [Indices Delete Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-delete-template-v1.html)\n\nDeletes an index template."] +#[doc = "Builder for the [Indices Delete Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-delete-template-v1.html)\n\nDeletes an index template."] #[derive(Clone, Debug)] pub struct IndicesDeleteTemplate<'a, 'b> { transport: &'a Transport, @@ -2665,7 +2814,7 @@ impl<'b> IndicesDiskUsageParts<'b> { } } } -#[doc = "Builder for the [Indices Disk Usage API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-disk-usage.html)\n\nAnalyzes the disk usage of each field of an index or data stream"] +#[doc = "Builder for the [Indices Disk Usage API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-disk-usage.html)\n\nAnalyzes the disk usage of each field of an index or data stream"] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -2869,7 +3018,7 @@ impl<'b> IndicesDownsampleParts<'b> { } } } -#[doc = "Builder for the [Indices Downsample API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/xpack-rollup.html)\n\nDownsample an index"] +#[doc = "Builder for the [Indices Downsample API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/xpack-rollup.html)\n\nDownsample an index"] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -3015,7 +3164,7 @@ impl<'b> IndicesExistsParts<'b> { } } } -#[doc = "Builder for the [Indices Exists API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-exists.html)\n\nReturns information about whether a particular index exists."] +#[doc = "Builder for the [Indices Exists API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-exists.html)\n\nReturns information about whether a particular index exists."] #[derive(Clone, Debug)] pub struct IndicesExists<'a, 'b> { transport: &'a Transport, @@ -3207,7 +3356,7 @@ impl<'b> IndicesExistsAliasParts<'b> { } } } -#[doc = "Builder for the [Indices Exists Alias API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-aliases.html)\n\nReturns information about whether a particular alias exists."] +#[doc = "Builder for the [Indices Exists Alias API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-aliases.html)\n\nReturns information about whether a particular alias exists."] #[derive(Clone, Debug)] pub struct IndicesExistsAlias<'a, 'b> { transport: &'a Transport, @@ -3362,7 +3511,7 @@ impl<'b> IndicesExistsIndexTemplateParts<'b> { } } } -#[doc = "Builder for the [Indices Exists Index Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/index-templates.html)\n\nReturns information about whether a particular index template exists."] +#[doc = "Builder for the [Indices Exists Index Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/index-templates.html)\n\nReturns information about whether a particular index template exists."] #[derive(Clone, Debug)] pub struct IndicesExistsIndexTemplate<'a, 'b> { transport: &'a Transport, @@ -3509,7 +3658,7 @@ impl<'b> IndicesExistsTemplateParts<'b> { } } } -#[doc = "Builder for the [Indices Exists Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-template-exists-v1.html)\n\nReturns information about whether a particular index template exists."] +#[doc = "Builder for the [Indices Exists Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-template-exists-v1.html)\n\nReturns information about whether a particular index template exists."] #[derive(Clone, Debug)] pub struct IndicesExistsTemplate<'a, 'b> { transport: &'a Transport, @@ -3656,7 +3805,7 @@ impl<'b> IndicesExplainDataLifecycleParts<'b> { } } } -#[doc = "Builder for the [Indices Explain Data Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/data-streams-explain-lifecycle.html)\n\nRetrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc."] +#[doc = "Builder for the [Indices Explain Data Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-streams-explain-lifecycle.html)\n\nRetrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc."] #[derive(Clone, Debug)] pub struct IndicesExplainDataLifecycle<'a, 'b> { transport: &'a Transport, @@ -3796,7 +3945,7 @@ impl<'b> IndicesFieldUsageStatsParts<'b> { } } } -#[doc = "Builder for the [Indices Field Usage Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/field-usage-stats.html)\n\nReturns the field usage stats for each field of an index"] +#[doc = "Builder for the [Indices Field Usage Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/field-usage-stats.html)\n\nReturns the field usage stats for each field of an index"] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -3961,7 +4110,7 @@ impl<'b> IndicesFlushParts<'b> { } } } -#[doc = "Builder for the [Indices Flush API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-flush.html)\n\nPerforms the flush operation on one or more indices."] +#[doc = "Builder for the [Indices Flush API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-flush.html)\n\nPerforms the flush operation on one or more indices."] #[derive(Clone, Debug)] pub struct IndicesFlush<'a, 'b, B> { transport: &'a Transport, @@ -4162,7 +4311,7 @@ impl<'b> IndicesForcemergeParts<'b> { } } } -#[doc = "Builder for the [Indices Forcemerge API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-forcemerge.html)\n\nPerforms the force merge operation on one or more indices."] +#[doc = "Builder for the [Indices Forcemerge API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-forcemerge.html)\n\nPerforms the force merge operation on one or more indices."] #[derive(Clone, Debug)] pub struct IndicesForcemerge<'a, 'b, B> { transport: &'a Transport, @@ -4376,7 +4525,7 @@ impl<'b> IndicesGetParts<'b> { } } } -#[doc = "Builder for the [Indices Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-get-index.html)\n\nReturns information about one or more indices."] +#[doc = "Builder for the [Indices Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-get-index.html)\n\nReturns information about one or more indices."] #[derive(Clone, Debug)] pub struct IndicesGet<'a, 'b> { transport: &'a Transport, @@ -4601,7 +4750,7 @@ impl<'b> IndicesGetAliasParts<'b> { } } } -#[doc = "Builder for the [Indices Get Alias API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-aliases.html)\n\nReturns an alias."] +#[doc = "Builder for the [Indices Get Alias API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-aliases.html)\n\nReturns an alias."] #[derive(Clone, Debug)] pub struct IndicesGetAlias<'a, 'b> { transport: &'a Transport, @@ -4759,7 +4908,7 @@ impl<'b> IndicesGetDataLifecycleParts<'b> { } } } -#[doc = "Builder for the [Indices Get Data Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/data-streams-get-lifecycle.html)\n\nReturns the data stream lifecycle of the selected data streams."] +#[doc = "Builder for the [Indices Get Data Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-streams-get-lifecycle.html)\n\nReturns the data stream lifecycle of the selected data streams."] #[derive(Clone, Debug)] pub struct IndicesGetDataLifecycle<'a, 'b> { transport: &'a Transport, @@ -4899,7 +5048,7 @@ impl IndicesGetDataLifecycleStatsParts { } } } -#[doc = "Builder for the [Indices Get Data Lifecycle Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/data-streams-get-lifecycle-stats.html)\n\nGet data stream lifecycle statistics."] +#[doc = "Builder for the [Indices Get Data Lifecycle Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-streams-get-lifecycle-stats.html)\n\nGet data stream lifecycle statistics."] #[derive(Clone, Debug)] pub struct IndicesGetDataLifecycleStats<'a, 'b> { transport: &'a Transport, @@ -5022,7 +5171,7 @@ impl<'b> IndicesGetDataStreamParts<'b> { } } } -#[doc = "Builder for the [Indices Get Data Stream API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/data-streams.html)\n\nReturns data streams."] +#[doc = "Builder for the [Indices Get Data Stream API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-streams.html)\n\nReturns data streams."] #[derive(Clone, Debug)] pub struct IndicesGetDataStream<'a, 'b> { transport: &'a Transport, @@ -5158,94 +5307,67 @@ impl<'a, 'b> IndicesGetDataStream<'a, 'b> { } } #[derive(Debug, Clone, PartialEq, Eq)] -#[doc = "API parts for the Indices Get Field Mapping API"] -pub enum IndicesGetFieldMappingParts<'b> { - #[doc = "Fields"] - Fields(&'b [&'b str]), - #[doc = "Index and Fields"] - IndexFields(&'b [&'b str], &'b [&'b str]), +#[doc = "API parts for the Indices Get Data Stream Options API"] +pub enum IndicesGetDataStreamOptionsParts<'b> { + #[doc = "Name"] + Name(&'b [&'b str]), } -impl<'b> IndicesGetFieldMappingParts<'b> { - #[doc = "Builds a relative URL path to the Indices Get Field Mapping API"] +impl<'b> IndicesGetDataStreamOptionsParts<'b> { + #[doc = "Builds a relative URL path to the Indices Get Data Stream Options API"] pub fn url(self) -> Cow<'static, str> { match self { - IndicesGetFieldMappingParts::Fields(fields) => { - let fields_str = fields.join(","); - let encoded_fields: Cow = - percent_encode(fields_str.as_bytes(), PARTS_ENCODED).into(); - let mut p = String::with_capacity(16usize + encoded_fields.len()); - p.push_str("/_mapping/field/"); - p.push_str(encoded_fields.as_ref()); - p.into() - } - IndicesGetFieldMappingParts::IndexFields(index, fields) => { - let index_str = index.join(","); - let fields_str = fields.join(","); - let encoded_index: Cow = - percent_encode(index_str.as_bytes(), PARTS_ENCODED).into(); - let encoded_fields: Cow = - percent_encode(fields_str.as_bytes(), PARTS_ENCODED).into(); - let mut p = - String::with_capacity(17usize + encoded_index.len() + encoded_fields.len()); - p.push('/'); - p.push_str(encoded_index.as_ref()); - p.push_str("/_mapping/field/"); - p.push_str(encoded_fields.as_ref()); + IndicesGetDataStreamOptionsParts::Name(name) => { + let name_str = name.join(","); + let encoded_name: Cow = + percent_encode(name_str.as_bytes(), PARTS_ENCODED).into(); + let mut p = String::with_capacity(23usize + encoded_name.len()); + p.push_str("/_data_stream/"); + p.push_str(encoded_name.as_ref()); + p.push_str("/_options"); p.into() } } } } -#[doc = "Builder for the [Indices Get Field Mapping API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-get-field-mapping.html)\n\nReturns mapping for one or more fields."] +#[doc = "Builder for the [Indices Get Data Stream Options API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/index.html)\n\nReturns the data stream options of the selected data streams."] #[derive(Clone, Debug)] -pub struct IndicesGetFieldMapping<'a, 'b> { +pub struct IndicesGetDataStreamOptions<'a, 'b> { transport: &'a Transport, - parts: IndicesGetFieldMappingParts<'b>, - allow_no_indices: Option, + parts: IndicesGetDataStreamOptionsParts<'b>, error_trace: Option, expand_wildcards: Option<&'b [ExpandWildcards]>, filter_path: Option<&'b [&'b str]>, headers: HeaderMap, human: Option, - ignore_unavailable: Option, - include_defaults: Option, - local: Option, + master_timeout: Option<&'b str>, pretty: Option, request_timeout: Option, source: Option<&'b str>, } -impl<'a, 'b> IndicesGetFieldMapping<'a, 'b> { - #[doc = "Creates a new instance of [IndicesGetFieldMapping] with the specified API parts"] - pub fn new(transport: &'a Transport, parts: IndicesGetFieldMappingParts<'b>) -> Self { +impl<'a, 'b> IndicesGetDataStreamOptions<'a, 'b> { + #[doc = "Creates a new instance of [IndicesGetDataStreamOptions] with the specified API parts"] + pub fn new(transport: &'a Transport, parts: IndicesGetDataStreamOptionsParts<'b>) -> Self { let headers = HeaderMap::new(); - IndicesGetFieldMapping { + IndicesGetDataStreamOptions { transport, parts, headers, - allow_no_indices: None, error_trace: None, expand_wildcards: None, filter_path: None, human: None, - ignore_unavailable: None, - include_defaults: None, - local: None, + master_timeout: None, pretty: None, request_timeout: None, source: None, } } - #[doc = "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)"] - pub fn allow_no_indices(mut self, allow_no_indices: bool) -> Self { - self.allow_no_indices = Some(allow_no_indices); - self - } #[doc = "Include the stack trace of returned errors."] pub fn error_trace(mut self, error_trace: bool) -> Self { self.error_trace = Some(error_trace); self } - #[doc = "Whether to expand wildcard expression to concrete indices that are open, closed or both."] + #[doc = "Whether wildcard expressions should get expanded to open or closed indices (default: open)"] pub fn expand_wildcards(mut self, expand_wildcards: &'b [ExpandWildcards]) -> Self { self.expand_wildcards = Some(expand_wildcards); self @@ -5265,19 +5387,9 @@ impl<'a, 'b> IndicesGetFieldMapping<'a, 'b> { self.human = Some(human); self } - #[doc = "Whether specified concrete indices should be ignored when unavailable (missing or closed)"] - pub fn ignore_unavailable(mut self, ignore_unavailable: bool) -> Self { - self.ignore_unavailable = Some(ignore_unavailable); - self - } - #[doc = "Whether the default mapping values should be returned as well"] - pub fn include_defaults(mut self, include_defaults: bool) -> Self { - self.include_defaults = Some(include_defaults); - self - } - #[doc = "Return local information, do not retrieve the state from master node (default: false)"] - pub fn local(mut self, local: bool) -> Self { - self.local = Some(local); + #[doc = "Specify timeout for connection to master"] + pub fn master_timeout(mut self, master_timeout: &'b str) -> Self { + self.master_timeout = Some(master_timeout); self } #[doc = "Pretty format the returned JSON response."] @@ -5295,7 +5407,7 @@ impl<'a, 'b> IndicesGetFieldMapping<'a, 'b> { self.source = Some(source); self } - #[doc = "Creates an asynchronous call to the Indices Get Field Mapping API that can be awaited"] + #[doc = "Creates an asynchronous call to the Indices Get Data Stream Options API that can be awaited"] pub async fn send(self) -> Result { let path = self.parts.url(); let method = http::Method::Get; @@ -5305,28 +5417,22 @@ impl<'a, 'b> IndicesGetFieldMapping<'a, 'b> { #[serde_with::skip_serializing_none] #[derive(Serialize)] struct QueryParams<'b> { - allow_no_indices: Option, error_trace: Option, #[serde(serialize_with = "crate::client::serialize_coll_qs")] expand_wildcards: Option<&'b [ExpandWildcards]>, #[serde(serialize_with = "crate::client::serialize_coll_qs")] filter_path: Option<&'b [&'b str]>, human: Option, - ignore_unavailable: Option, - include_defaults: Option, - local: Option, + master_timeout: Option<&'b str>, pretty: Option, source: Option<&'b str>, } let query_params = QueryParams { - allow_no_indices: self.allow_no_indices, error_trace: self.error_trace, expand_wildcards: self.expand_wildcards, filter_path: self.filter_path, human: self.human, - ignore_unavailable: self.ignore_unavailable, - include_defaults: self.include_defaults, - local: self.local, + master_timeout: self.master_timeout, pretty: self.pretty, source: self.source, }; @@ -5341,59 +5447,51 @@ impl<'a, 'b> IndicesGetFieldMapping<'a, 'b> { } } #[derive(Debug, Clone, PartialEq, Eq)] -#[doc = "API parts for the Indices Get Index Template API"] -pub enum IndicesGetIndexTemplateParts<'b> { - #[doc = "No parts"] - None, +#[doc = "API parts for the Indices Get Data Stream Settings API"] +pub enum IndicesGetDataStreamSettingsParts<'b> { #[doc = "Name"] Name(&'b str), } -impl<'b> IndicesGetIndexTemplateParts<'b> { - #[doc = "Builds a relative URL path to the Indices Get Index Template API"] +impl<'b> IndicesGetDataStreamSettingsParts<'b> { + #[doc = "Builds a relative URL path to the Indices Get Data Stream Settings API"] pub fn url(self) -> Cow<'static, str> { match self { - IndicesGetIndexTemplateParts::None => "/_index_template".into(), - IndicesGetIndexTemplateParts::Name(name) => { + IndicesGetDataStreamSettingsParts::Name(name) => { let encoded_name: Cow = percent_encode(name.as_bytes(), PARTS_ENCODED).into(); - let mut p = String::with_capacity(17usize + encoded_name.len()); - p.push_str("/_index_template/"); + let mut p = String::with_capacity(24usize + encoded_name.len()); + p.push_str("/_data_stream/"); p.push_str(encoded_name.as_ref()); + p.push_str("/_settings"); p.into() } } } } -#[doc = "Builder for the [Indices Get Index Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-get-template.html)\n\nReturns an index template."] +#[doc = "Builder for the [Indices Get Data Stream Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-streams.html)\n\nGets a data stream's settings"] #[derive(Clone, Debug)] -pub struct IndicesGetIndexTemplate<'a, 'b> { +pub struct IndicesGetDataStreamSettings<'a, 'b> { transport: &'a Transport, - parts: IndicesGetIndexTemplateParts<'b>, + parts: IndicesGetDataStreamSettingsParts<'b>, error_trace: Option, filter_path: Option<&'b [&'b str]>, - flat_settings: Option, headers: HeaderMap, human: Option, - include_defaults: Option, - local: Option, master_timeout: Option<&'b str>, pretty: Option, request_timeout: Option, source: Option<&'b str>, } -impl<'a, 'b> IndicesGetIndexTemplate<'a, 'b> { - #[doc = "Creates a new instance of [IndicesGetIndexTemplate] with the specified API parts"] - pub fn new(transport: &'a Transport, parts: IndicesGetIndexTemplateParts<'b>) -> Self { +impl<'a, 'b> IndicesGetDataStreamSettings<'a, 'b> { + #[doc = "Creates a new instance of [IndicesGetDataStreamSettings] with the specified API parts"] + pub fn new(transport: &'a Transport, parts: IndicesGetDataStreamSettingsParts<'b>) -> Self { let headers = HeaderMap::new(); - IndicesGetIndexTemplate { + IndicesGetDataStreamSettings { transport, parts, headers, error_trace: None, filter_path: None, - flat_settings: None, human: None, - include_defaults: None, - local: None, master_timeout: None, pretty: None, request_timeout: None, @@ -5410,11 +5508,6 @@ impl<'a, 'b> IndicesGetIndexTemplate<'a, 'b> { self.filter_path = Some(filter_path); self } - #[doc = "Return settings in flat format (default: false)"] - pub fn flat_settings(mut self, flat_settings: bool) -> Self { - self.flat_settings = Some(flat_settings); - self - } #[doc = "Adds a HTTP header"] pub fn header(mut self, key: HeaderName, value: HeaderValue) -> Self { self.headers.insert(key, value); @@ -5425,17 +5518,7 @@ impl<'a, 'b> IndicesGetIndexTemplate<'a, 'b> { self.human = Some(human); self } - #[doc = "Return all relevant default configurations for the index template (default: false)"] - pub fn include_defaults(mut self, include_defaults: bool) -> Self { - self.include_defaults = Some(include_defaults); - self - } - #[doc = "Return local information, do not retrieve the state from master node (default: false)"] - pub fn local(mut self, local: bool) -> Self { - self.local = Some(local); - self - } - #[doc = "Timeout for waiting for new cluster state in case it is blocked"] + #[doc = "Period to wait for a connection to the master node"] pub fn master_timeout(mut self, master_timeout: &'b str) -> Self { self.master_timeout = Some(master_timeout); self @@ -5455,7 +5538,7 @@ impl<'a, 'b> IndicesGetIndexTemplate<'a, 'b> { self.source = Some(source); self } - #[doc = "Creates an asynchronous call to the Indices Get Index Template API that can be awaited"] + #[doc = "Creates an asynchronous call to the Indices Get Data Stream Settings API that can be awaited"] pub async fn send(self) -> Result { let path = self.parts.url(); let method = http::Method::Get; @@ -5468,10 +5551,7 @@ impl<'a, 'b> IndicesGetIndexTemplate<'a, 'b> { error_trace: Option, #[serde(serialize_with = "crate::client::serialize_coll_qs")] filter_path: Option<&'b [&'b str]>, - flat_settings: Option, human: Option, - include_defaults: Option, - local: Option, master_timeout: Option<&'b str>, pretty: Option, source: Option<&'b str>, @@ -5479,10 +5559,7 @@ impl<'a, 'b> IndicesGetIndexTemplate<'a, 'b> { let query_params = QueryParams { error_trace: self.error_trace, filter_path: self.filter_path, - flat_settings: self.flat_settings, human: self.human, - include_defaults: self.include_defaults, - local: self.local, master_timeout: self.master_timeout, pretty: self.pretty, source: self.source, @@ -5498,36 +5575,49 @@ impl<'a, 'b> IndicesGetIndexTemplate<'a, 'b> { } } #[derive(Debug, Clone, PartialEq, Eq)] -#[doc = "API parts for the Indices Get Mapping API"] -pub enum IndicesGetMappingParts<'b> { - #[doc = "No parts"] - None, - #[doc = "Index"] - Index(&'b [&'b str]), +#[doc = "API parts for the Indices Get Field Mapping API"] +pub enum IndicesGetFieldMappingParts<'b> { + #[doc = "Fields"] + Fields(&'b [&'b str]), + #[doc = "Index and Fields"] + IndexFields(&'b [&'b str], &'b [&'b str]), } -impl<'b> IndicesGetMappingParts<'b> { - #[doc = "Builds a relative URL path to the Indices Get Mapping API"] +impl<'b> IndicesGetFieldMappingParts<'b> { + #[doc = "Builds a relative URL path to the Indices Get Field Mapping API"] pub fn url(self) -> Cow<'static, str> { match self { - IndicesGetMappingParts::None => "/_mapping".into(), - IndicesGetMappingParts::Index(index) => { + IndicesGetFieldMappingParts::Fields(fields) => { + let fields_str = fields.join(","); + let encoded_fields: Cow = + percent_encode(fields_str.as_bytes(), PARTS_ENCODED).into(); + let mut p = String::with_capacity(16usize + encoded_fields.len()); + p.push_str("/_mapping/field/"); + p.push_str(encoded_fields.as_ref()); + p.into() + } + IndicesGetFieldMappingParts::IndexFields(index, fields) => { let index_str = index.join(","); + let fields_str = fields.join(","); let encoded_index: Cow = percent_encode(index_str.as_bytes(), PARTS_ENCODED).into(); - let mut p = String::with_capacity(10usize + encoded_index.len()); + let encoded_fields: Cow = + percent_encode(fields_str.as_bytes(), PARTS_ENCODED).into(); + let mut p = + String::with_capacity(17usize + encoded_index.len() + encoded_fields.len()); p.push('/'); p.push_str(encoded_index.as_ref()); - p.push_str("/_mapping"); + p.push_str("/_mapping/field/"); + p.push_str(encoded_fields.as_ref()); p.into() } } } } -#[doc = "Builder for the [Indices Get Mapping API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-get-mapping.html)\n\nReturns mappings for one or more indices."] +#[doc = "Builder for the [Indices Get Field Mapping API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-get-field-mapping.html)\n\nReturns mapping for one or more fields."] #[derive(Clone, Debug)] -pub struct IndicesGetMapping<'a, 'b> { +pub struct IndicesGetFieldMapping<'a, 'b> { transport: &'a Transport, - parts: IndicesGetMappingParts<'b>, + parts: IndicesGetFieldMappingParts<'b>, allow_no_indices: Option, error_trace: Option, expand_wildcards: Option<&'b [ExpandWildcards]>, @@ -5535,17 +5625,16 @@ pub struct IndicesGetMapping<'a, 'b> { headers: HeaderMap, human: Option, ignore_unavailable: Option, - local: Option, - master_timeout: Option<&'b str>, + include_defaults: Option, pretty: Option, request_timeout: Option, source: Option<&'b str>, } -impl<'a, 'b> IndicesGetMapping<'a, 'b> { - #[doc = "Creates a new instance of [IndicesGetMapping] with the specified API parts"] - pub fn new(transport: &'a Transport, parts: IndicesGetMappingParts<'b>) -> Self { +impl<'a, 'b> IndicesGetFieldMapping<'a, 'b> { + #[doc = "Creates a new instance of [IndicesGetFieldMapping] with the specified API parts"] + pub fn new(transport: &'a Transport, parts: IndicesGetFieldMappingParts<'b>) -> Self { let headers = HeaderMap::new(); - IndicesGetMapping { + IndicesGetFieldMapping { transport, parts, headers, @@ -5555,8 +5644,7 @@ impl<'a, 'b> IndicesGetMapping<'a, 'b> { filter_path: None, human: None, ignore_unavailable: None, - local: None, - master_timeout: None, + include_defaults: None, pretty: None, request_timeout: None, source: None, @@ -5597,14 +5685,9 @@ impl<'a, 'b> IndicesGetMapping<'a, 'b> { self.ignore_unavailable = Some(ignore_unavailable); self } - #[doc = "Return local information, do not retrieve the state from master node (default: false)"] - pub fn local(mut self, local: bool) -> Self { - self.local = Some(local); - self - } - #[doc = "Specify timeout for connection to master"] - pub fn master_timeout(mut self, master_timeout: &'b str) -> Self { - self.master_timeout = Some(master_timeout); + #[doc = "Whether the default mapping values should be returned as well"] + pub fn include_defaults(mut self, include_defaults: bool) -> Self { + self.include_defaults = Some(include_defaults); self } #[doc = "Pretty format the returned JSON response."] @@ -5622,7 +5705,7 @@ impl<'a, 'b> IndicesGetMapping<'a, 'b> { self.source = Some(source); self } - #[doc = "Creates an asynchronous call to the Indices Get Mapping API that can be awaited"] + #[doc = "Creates an asynchronous call to the Indices Get Field Mapping API that can be awaited"] pub async fn send(self) -> Result { let path = self.parts.url(); let method = http::Method::Get; @@ -5640,8 +5723,7 @@ impl<'a, 'b> IndicesGetMapping<'a, 'b> { filter_path: Option<&'b [&'b str]>, human: Option, ignore_unavailable: Option, - local: Option, - master_timeout: Option<&'b str>, + include_defaults: Option, pretty: Option, source: Option<&'b str>, } @@ -5652,8 +5734,7 @@ impl<'a, 'b> IndicesGetMapping<'a, 'b> { filter_path: self.filter_path, human: self.human, ignore_unavailable: self.ignore_unavailable, - local: self.local, - master_timeout: self.master_timeout, + include_defaults: self.include_defaults, pretty: self.pretty, source: self.source, }; @@ -5667,57 +5748,61 @@ impl<'a, 'b> IndicesGetMapping<'a, 'b> { Ok(response) } } -#[cfg(feature = "experimental-apis")] #[derive(Debug, Clone, PartialEq, Eq)] -#[doc = "API parts for the Indices Get Migrate Reindex Status API"] -pub enum IndicesGetMigrateReindexStatusParts<'b> { - #[doc = "Index"] - Index(&'b str), +#[doc = "API parts for the Indices Get Index Template API"] +pub enum IndicesGetIndexTemplateParts<'b> { + #[doc = "No parts"] + None, + #[doc = "Name"] + Name(&'b str), } -#[cfg(feature = "experimental-apis")] -impl<'b> IndicesGetMigrateReindexStatusParts<'b> { - #[doc = "Builds a relative URL path to the Indices Get Migrate Reindex Status API"] +impl<'b> IndicesGetIndexTemplateParts<'b> { + #[doc = "Builds a relative URL path to the Indices Get Index Template API"] pub fn url(self) -> Cow<'static, str> { match self { - IndicesGetMigrateReindexStatusParts::Index(index) => { - let encoded_index: Cow = - percent_encode(index.as_bytes(), PARTS_ENCODED).into(); - let mut p = String::with_capacity(28usize + encoded_index.len()); - p.push_str("/_migration/reindex/"); - p.push_str(encoded_index.as_ref()); - p.push_str("/_status"); + IndicesGetIndexTemplateParts::None => "/_index_template".into(), + IndicesGetIndexTemplateParts::Name(name) => { + let encoded_name: Cow = percent_encode(name.as_bytes(), PARTS_ENCODED).into(); + let mut p = String::with_capacity(17usize + encoded_name.len()); + p.push_str("/_index_template/"); + p.push_str(encoded_name.as_ref()); p.into() } } } } -#[doc = "Builder for the [Indices Get Migrate Reindex Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/data-stream-reindex-status-api.html)\n\nThis API returns the status of a migration reindex attempt for a data stream or index"] -#[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] -#[cfg(feature = "experimental-apis")] +#[doc = "Builder for the [Indices Get Index Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-get-template.html)\n\nReturns an index template."] #[derive(Clone, Debug)] -pub struct IndicesGetMigrateReindexStatus<'a, 'b> { +pub struct IndicesGetIndexTemplate<'a, 'b> { transport: &'a Transport, - parts: IndicesGetMigrateReindexStatusParts<'b>, + parts: IndicesGetIndexTemplateParts<'b>, error_trace: Option, filter_path: Option<&'b [&'b str]>, + flat_settings: Option, headers: HeaderMap, human: Option, + include_defaults: Option, + local: Option, + master_timeout: Option<&'b str>, pretty: Option, request_timeout: Option, source: Option<&'b str>, } -#[cfg(feature = "experimental-apis")] -impl<'a, 'b> IndicesGetMigrateReindexStatus<'a, 'b> { - #[doc = "Creates a new instance of [IndicesGetMigrateReindexStatus] with the specified API parts"] - pub fn new(transport: &'a Transport, parts: IndicesGetMigrateReindexStatusParts<'b>) -> Self { +impl<'a, 'b> IndicesGetIndexTemplate<'a, 'b> { + #[doc = "Creates a new instance of [IndicesGetIndexTemplate] with the specified API parts"] + pub fn new(transport: &'a Transport, parts: IndicesGetIndexTemplateParts<'b>) -> Self { let headers = HeaderMap::new(); - IndicesGetMigrateReindexStatus { + IndicesGetIndexTemplate { transport, parts, headers, error_trace: None, filter_path: None, + flat_settings: None, human: None, + include_defaults: None, + local: None, + master_timeout: None, pretty: None, request_timeout: None, source: None, @@ -5733,6 +5818,11 @@ impl<'a, 'b> IndicesGetMigrateReindexStatus<'a, 'b> { self.filter_path = Some(filter_path); self } + #[doc = "Return settings in flat format (default: false)"] + pub fn flat_settings(mut self, flat_settings: bool) -> Self { + self.flat_settings = Some(flat_settings); + self + } #[doc = "Adds a HTTP header"] pub fn header(mut self, key: HeaderName, value: HeaderValue) -> Self { self.headers.insert(key, value); @@ -5743,6 +5833,21 @@ impl<'a, 'b> IndicesGetMigrateReindexStatus<'a, 'b> { self.human = Some(human); self } + #[doc = "Return all relevant default configurations for the index template (default: false)"] + pub fn include_defaults(mut self, include_defaults: bool) -> Self { + self.include_defaults = Some(include_defaults); + self + } + #[doc = "Return local information, do not retrieve the state from master node (default: false)"] + pub fn local(mut self, local: bool) -> Self { + self.local = Some(local); + self + } + #[doc = "Timeout for waiting for new cluster state in case it is blocked"] + pub fn master_timeout(mut self, master_timeout: &'b str) -> Self { + self.master_timeout = Some(master_timeout); + self + } #[doc = "Pretty format the returned JSON response."] pub fn pretty(mut self, pretty: bool) -> Self { self.pretty = Some(pretty); @@ -5758,7 +5863,7 @@ impl<'a, 'b> IndicesGetMigrateReindexStatus<'a, 'b> { self.source = Some(source); self } - #[doc = "Creates an asynchronous call to the Indices Get Migrate Reindex Status API that can be awaited"] + #[doc = "Creates an asynchronous call to the Indices Get Index Template API that can be awaited"] pub async fn send(self) -> Result { let path = self.parts.url(); let method = http::Method::Get; @@ -5771,14 +5876,22 @@ impl<'a, 'b> IndicesGetMigrateReindexStatus<'a, 'b> { error_trace: Option, #[serde(serialize_with = "crate::client::serialize_coll_qs")] filter_path: Option<&'b [&'b str]>, + flat_settings: Option, human: Option, + include_defaults: Option, + local: Option, + master_timeout: Option<&'b str>, pretty: Option, source: Option<&'b str>, } let query_params = QueryParams { error_trace: self.error_trace, filter_path: self.filter_path, + flat_settings: self.flat_settings, human: self.human, + include_defaults: self.include_defaults, + local: self.local, + master_timeout: self.master_timeout, pretty: self.pretty, source: self.source, }; @@ -5793,84 +5906,54 @@ impl<'a, 'b> IndicesGetMigrateReindexStatus<'a, 'b> { } } #[derive(Debug, Clone, PartialEq, Eq)] -#[doc = "API parts for the Indices Get Settings API"] -pub enum IndicesGetSettingsParts<'b> { +#[doc = "API parts for the Indices Get Mapping API"] +pub enum IndicesGetMappingParts<'b> { #[doc = "No parts"] None, #[doc = "Index"] Index(&'b [&'b str]), - #[doc = "Index and Name"] - IndexName(&'b [&'b str], &'b [&'b str]), - #[doc = "Name"] - Name(&'b [&'b str]), } -impl<'b> IndicesGetSettingsParts<'b> { - #[doc = "Builds a relative URL path to the Indices Get Settings API"] +impl<'b> IndicesGetMappingParts<'b> { + #[doc = "Builds a relative URL path to the Indices Get Mapping API"] pub fn url(self) -> Cow<'static, str> { match self { - IndicesGetSettingsParts::None => "/_settings".into(), - IndicesGetSettingsParts::Index(index) => { - let index_str = index.join(","); - let encoded_index: Cow = - percent_encode(index_str.as_bytes(), PARTS_ENCODED).into(); - let mut p = String::with_capacity(11usize + encoded_index.len()); - p.push('/'); - p.push_str(encoded_index.as_ref()); - p.push_str("/_settings"); - p.into() - } - IndicesGetSettingsParts::IndexName(index, name) => { + IndicesGetMappingParts::None => "/_mapping".into(), + IndicesGetMappingParts::Index(index) => { let index_str = index.join(","); - let name_str = name.join(","); let encoded_index: Cow = percent_encode(index_str.as_bytes(), PARTS_ENCODED).into(); - let encoded_name: Cow = - percent_encode(name_str.as_bytes(), PARTS_ENCODED).into(); - let mut p = - String::with_capacity(12usize + encoded_index.len() + encoded_name.len()); + let mut p = String::with_capacity(10usize + encoded_index.len()); p.push('/'); p.push_str(encoded_index.as_ref()); - p.push_str("/_settings/"); - p.push_str(encoded_name.as_ref()); - p.into() - } - IndicesGetSettingsParts::Name(name) => { - let name_str = name.join(","); - let encoded_name: Cow = - percent_encode(name_str.as_bytes(), PARTS_ENCODED).into(); - let mut p = String::with_capacity(11usize + encoded_name.len()); - p.push_str("/_settings/"); - p.push_str(encoded_name.as_ref()); + p.push_str("/_mapping"); p.into() } } } } -#[doc = "Builder for the [Indices Get Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-get-settings.html)\n\nReturns settings for one or more indices."] +#[doc = "Builder for the [Indices Get Mapping API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-get-mapping.html)\n\nReturns mappings for one or more indices."] #[derive(Clone, Debug)] -pub struct IndicesGetSettings<'a, 'b> { +pub struct IndicesGetMapping<'a, 'b> { transport: &'a Transport, - parts: IndicesGetSettingsParts<'b>, + parts: IndicesGetMappingParts<'b>, allow_no_indices: Option, error_trace: Option, expand_wildcards: Option<&'b [ExpandWildcards]>, filter_path: Option<&'b [&'b str]>, - flat_settings: Option, headers: HeaderMap, human: Option, ignore_unavailable: Option, - include_defaults: Option, local: Option, master_timeout: Option<&'b str>, pretty: Option, request_timeout: Option, source: Option<&'b str>, } -impl<'a, 'b> IndicesGetSettings<'a, 'b> { - #[doc = "Creates a new instance of [IndicesGetSettings] with the specified API parts"] - pub fn new(transport: &'a Transport, parts: IndicesGetSettingsParts<'b>) -> Self { +impl<'a, 'b> IndicesGetMapping<'a, 'b> { + #[doc = "Creates a new instance of [IndicesGetMapping] with the specified API parts"] + pub fn new(transport: &'a Transport, parts: IndicesGetMappingParts<'b>) -> Self { let headers = HeaderMap::new(); - IndicesGetSettings { + IndicesGetMapping { transport, parts, headers, @@ -5878,10 +5961,8 @@ impl<'a, 'b> IndicesGetSettings<'a, 'b> { error_trace: None, expand_wildcards: None, filter_path: None, - flat_settings: None, human: None, ignore_unavailable: None, - include_defaults: None, local: None, master_timeout: None, pretty: None, @@ -5909,11 +5990,6 @@ impl<'a, 'b> IndicesGetSettings<'a, 'b> { self.filter_path = Some(filter_path); self } - #[doc = "Return settings in flat format (default: false)"] - pub fn flat_settings(mut self, flat_settings: bool) -> Self { - self.flat_settings = Some(flat_settings); - self - } #[doc = "Adds a HTTP header"] pub fn header(mut self, key: HeaderName, value: HeaderValue) -> Self { self.headers.insert(key, value); @@ -5929,17 +6005,12 @@ impl<'a, 'b> IndicesGetSettings<'a, 'b> { self.ignore_unavailable = Some(ignore_unavailable); self } - #[doc = "Whether to return all default setting for each of the indices."] - pub fn include_defaults(mut self, include_defaults: bool) -> Self { - self.include_defaults = Some(include_defaults); - self - } #[doc = "Return local information, do not retrieve the state from master node (default: false)"] pub fn local(mut self, local: bool) -> Self { self.local = Some(local); self } - #[doc = "Specify timeout for connection to master"] + #[doc = "Timeout for waiting for new cluster state in case it is blocked"] pub fn master_timeout(mut self, master_timeout: &'b str) -> Self { self.master_timeout = Some(master_timeout); self @@ -5959,7 +6030,7 @@ impl<'a, 'b> IndicesGetSettings<'a, 'b> { self.source = Some(source); self } - #[doc = "Creates an asynchronous call to the Indices Get Settings API that can be awaited"] + #[doc = "Creates an asynchronous call to the Indices Get Mapping API that can be awaited"] pub async fn send(self) -> Result { let path = self.parts.url(); let method = http::Method::Get; @@ -5975,10 +6046,8 @@ impl<'a, 'b> IndicesGetSettings<'a, 'b> { expand_wildcards: Option<&'b [ExpandWildcards]>, #[serde(serialize_with = "crate::client::serialize_coll_qs")] filter_path: Option<&'b [&'b str]>, - flat_settings: Option, human: Option, ignore_unavailable: Option, - include_defaults: Option, local: Option, master_timeout: Option<&'b str>, pretty: Option, @@ -5989,10 +6058,8 @@ impl<'a, 'b> IndicesGetSettings<'a, 'b> { error_trace: self.error_trace, expand_wildcards: self.expand_wildcards, filter_path: self.filter_path, - flat_settings: self.flat_settings, human: self.human, ignore_unavailable: self.ignore_unavailable, - include_defaults: self.include_defaults, local: self.local, master_timeout: self.master_timeout, pretty: self.pretty, @@ -6008,64 +6075,713 @@ impl<'a, 'b> IndicesGetSettings<'a, 'b> { Ok(response) } } +#[cfg(feature = "experimental-apis")] #[derive(Debug, Clone, PartialEq, Eq)] -#[doc = "API parts for the Indices Get Template API"] -pub enum IndicesGetTemplateParts<'b> { - #[doc = "No parts"] - None, - #[doc = "Name"] - Name(&'b [&'b str]), -} +#[doc = "API parts for the Indices Get Migrate Reindex Status API"] +pub enum IndicesGetMigrateReindexStatusParts<'b> { + #[doc = "Index"] + Index(&'b str), +} +#[cfg(feature = "experimental-apis")] +impl<'b> IndicesGetMigrateReindexStatusParts<'b> { + #[doc = "Builds a relative URL path to the Indices Get Migrate Reindex Status API"] + pub fn url(self) -> Cow<'static, str> { + match self { + IndicesGetMigrateReindexStatusParts::Index(index) => { + let encoded_index: Cow = + percent_encode(index.as_bytes(), PARTS_ENCODED).into(); + let mut p = String::with_capacity(28usize + encoded_index.len()); + p.push_str("/_migration/reindex/"); + p.push_str(encoded_index.as_ref()); + p.push_str("/_status"); + p.into() + } + } + } +} +#[doc = "Builder for the [Indices Get Migrate Reindex Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-stream-reindex-status-api.html)\n\nThis API returns the status of a migration reindex attempt for a data stream or index"] +#[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] +#[cfg(feature = "experimental-apis")] +#[derive(Clone, Debug)] +pub struct IndicesGetMigrateReindexStatus<'a, 'b> { + transport: &'a Transport, + parts: IndicesGetMigrateReindexStatusParts<'b>, + error_trace: Option, + filter_path: Option<&'b [&'b str]>, + headers: HeaderMap, + human: Option, + pretty: Option, + request_timeout: Option, + source: Option<&'b str>, +} +#[cfg(feature = "experimental-apis")] +impl<'a, 'b> IndicesGetMigrateReindexStatus<'a, 'b> { + #[doc = "Creates a new instance of [IndicesGetMigrateReindexStatus] with the specified API parts"] + pub fn new(transport: &'a Transport, parts: IndicesGetMigrateReindexStatusParts<'b>) -> Self { + let headers = HeaderMap::new(); + IndicesGetMigrateReindexStatus { + transport, + parts, + headers, + error_trace: None, + filter_path: None, + human: None, + pretty: None, + request_timeout: None, + source: None, + } + } + #[doc = "Include the stack trace of returned errors."] + pub fn error_trace(mut self, error_trace: bool) -> Self { + self.error_trace = Some(error_trace); + self + } + #[doc = "A comma-separated list of filters used to reduce the response."] + pub fn filter_path(mut self, filter_path: &'b [&'b str]) -> Self { + self.filter_path = Some(filter_path); + self + } + #[doc = "Adds a HTTP header"] + pub fn header(mut self, key: HeaderName, value: HeaderValue) -> Self { + self.headers.insert(key, value); + self + } + #[doc = "Return human readable values for statistics."] + pub fn human(mut self, human: bool) -> Self { + self.human = Some(human); + self + } + #[doc = "Pretty format the returned JSON response."] + pub fn pretty(mut self, pretty: bool) -> Self { + self.pretty = Some(pretty); + self + } + #[doc = "Sets a request timeout for this API call.\n\nThe timeout is applied from when the request starts connecting until the response body has finished."] + pub fn request_timeout(mut self, timeout: Duration) -> Self { + self.request_timeout = Some(timeout); + self + } + #[doc = "The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests."] + pub fn source(mut self, source: &'b str) -> Self { + self.source = Some(source); + self + } + #[doc = "Creates an asynchronous call to the Indices Get Migrate Reindex Status API that can be awaited"] + pub async fn send(self) -> Result { + let path = self.parts.url(); + let method = http::Method::Get; + let headers = self.headers; + let timeout = self.request_timeout; + let query_string = { + #[serde_with::skip_serializing_none] + #[derive(Serialize)] + struct QueryParams<'b> { + error_trace: Option, + #[serde(serialize_with = "crate::client::serialize_coll_qs")] + filter_path: Option<&'b [&'b str]>, + human: Option, + pretty: Option, + source: Option<&'b str>, + } + let query_params = QueryParams { + error_trace: self.error_trace, + filter_path: self.filter_path, + human: self.human, + pretty: self.pretty, + source: self.source, + }; + Some(query_params) + }; + let body = Option::<()>::None; + let response = self + .transport + .send(method, &path, headers, query_string.as_ref(), body, timeout) + .await?; + Ok(response) + } +} +#[derive(Debug, Clone, PartialEq, Eq)] +#[doc = "API parts for the Indices Get Settings API"] +pub enum IndicesGetSettingsParts<'b> { + #[doc = "No parts"] + None, + #[doc = "Index"] + Index(&'b [&'b str]), + #[doc = "Index and Name"] + IndexName(&'b [&'b str], &'b [&'b str]), + #[doc = "Name"] + Name(&'b [&'b str]), +} +impl<'b> IndicesGetSettingsParts<'b> { + #[doc = "Builds a relative URL path to the Indices Get Settings API"] + pub fn url(self) -> Cow<'static, str> { + match self { + IndicesGetSettingsParts::None => "/_settings".into(), + IndicesGetSettingsParts::Index(index) => { + let index_str = index.join(","); + let encoded_index: Cow = + percent_encode(index_str.as_bytes(), PARTS_ENCODED).into(); + let mut p = String::with_capacity(11usize + encoded_index.len()); + p.push('/'); + p.push_str(encoded_index.as_ref()); + p.push_str("/_settings"); + p.into() + } + IndicesGetSettingsParts::IndexName(index, name) => { + let index_str = index.join(","); + let name_str = name.join(","); + let encoded_index: Cow = + percent_encode(index_str.as_bytes(), PARTS_ENCODED).into(); + let encoded_name: Cow = + percent_encode(name_str.as_bytes(), PARTS_ENCODED).into(); + let mut p = + String::with_capacity(12usize + encoded_index.len() + encoded_name.len()); + p.push('/'); + p.push_str(encoded_index.as_ref()); + p.push_str("/_settings/"); + p.push_str(encoded_name.as_ref()); + p.into() + } + IndicesGetSettingsParts::Name(name) => { + let name_str = name.join(","); + let encoded_name: Cow = + percent_encode(name_str.as_bytes(), PARTS_ENCODED).into(); + let mut p = String::with_capacity(11usize + encoded_name.len()); + p.push_str("/_settings/"); + p.push_str(encoded_name.as_ref()); + p.into() + } + } + } +} +#[doc = "Builder for the [Indices Get Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-get-settings.html)\n\nReturns settings for one or more indices."] +#[derive(Clone, Debug)] +pub struct IndicesGetSettings<'a, 'b> { + transport: &'a Transport, + parts: IndicesGetSettingsParts<'b>, + allow_no_indices: Option, + error_trace: Option, + expand_wildcards: Option<&'b [ExpandWildcards]>, + filter_path: Option<&'b [&'b str]>, + flat_settings: Option, + headers: HeaderMap, + human: Option, + ignore_unavailable: Option, + include_defaults: Option, + local: Option, + master_timeout: Option<&'b str>, + pretty: Option, + request_timeout: Option, + source: Option<&'b str>, +} +impl<'a, 'b> IndicesGetSettings<'a, 'b> { + #[doc = "Creates a new instance of [IndicesGetSettings] with the specified API parts"] + pub fn new(transport: &'a Transport, parts: IndicesGetSettingsParts<'b>) -> Self { + let headers = HeaderMap::new(); + IndicesGetSettings { + transport, + parts, + headers, + allow_no_indices: None, + error_trace: None, + expand_wildcards: None, + filter_path: None, + flat_settings: None, + human: None, + ignore_unavailable: None, + include_defaults: None, + local: None, + master_timeout: None, + pretty: None, + request_timeout: None, + source: None, + } + } + #[doc = "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)"] + pub fn allow_no_indices(mut self, allow_no_indices: bool) -> Self { + self.allow_no_indices = Some(allow_no_indices); + self + } + #[doc = "Include the stack trace of returned errors."] + pub fn error_trace(mut self, error_trace: bool) -> Self { + self.error_trace = Some(error_trace); + self + } + #[doc = "Whether to expand wildcard expression to concrete indices that are open, closed or both."] + pub fn expand_wildcards(mut self, expand_wildcards: &'b [ExpandWildcards]) -> Self { + self.expand_wildcards = Some(expand_wildcards); + self + } + #[doc = "A comma-separated list of filters used to reduce the response."] + pub fn filter_path(mut self, filter_path: &'b [&'b str]) -> Self { + self.filter_path = Some(filter_path); + self + } + #[doc = "Return settings in flat format (default: false)"] + pub fn flat_settings(mut self, flat_settings: bool) -> Self { + self.flat_settings = Some(flat_settings); + self + } + #[doc = "Adds a HTTP header"] + pub fn header(mut self, key: HeaderName, value: HeaderValue) -> Self { + self.headers.insert(key, value); + self + } + #[doc = "Return human readable values for statistics."] + pub fn human(mut self, human: bool) -> Self { + self.human = Some(human); + self + } + #[doc = "Whether specified concrete indices should be ignored when unavailable (missing or closed)"] + pub fn ignore_unavailable(mut self, ignore_unavailable: bool) -> Self { + self.ignore_unavailable = Some(ignore_unavailable); + self + } + #[doc = "Whether to return all default setting for each of the indices."] + pub fn include_defaults(mut self, include_defaults: bool) -> Self { + self.include_defaults = Some(include_defaults); + self + } + #[doc = "Return local information, do not retrieve the state from master node (default: false)"] + pub fn local(mut self, local: bool) -> Self { + self.local = Some(local); + self + } + #[doc = "Specify timeout for connection to master"] + pub fn master_timeout(mut self, master_timeout: &'b str) -> Self { + self.master_timeout = Some(master_timeout); + self + } + #[doc = "Pretty format the returned JSON response."] + pub fn pretty(mut self, pretty: bool) -> Self { + self.pretty = Some(pretty); + self + } + #[doc = "Sets a request timeout for this API call.\n\nThe timeout is applied from when the request starts connecting until the response body has finished."] + pub fn request_timeout(mut self, timeout: Duration) -> Self { + self.request_timeout = Some(timeout); + self + } + #[doc = "The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests."] + pub fn source(mut self, source: &'b str) -> Self { + self.source = Some(source); + self + } + #[doc = "Creates an asynchronous call to the Indices Get Settings API that can be awaited"] + pub async fn send(self) -> Result { + let path = self.parts.url(); + let method = http::Method::Get; + let headers = self.headers; + let timeout = self.request_timeout; + let query_string = { + #[serde_with::skip_serializing_none] + #[derive(Serialize)] + struct QueryParams<'b> { + allow_no_indices: Option, + error_trace: Option, + #[serde(serialize_with = "crate::client::serialize_coll_qs")] + expand_wildcards: Option<&'b [ExpandWildcards]>, + #[serde(serialize_with = "crate::client::serialize_coll_qs")] + filter_path: Option<&'b [&'b str]>, + flat_settings: Option, + human: Option, + ignore_unavailable: Option, + include_defaults: Option, + local: Option, + master_timeout: Option<&'b str>, + pretty: Option, + source: Option<&'b str>, + } + let query_params = QueryParams { + allow_no_indices: self.allow_no_indices, + error_trace: self.error_trace, + expand_wildcards: self.expand_wildcards, + filter_path: self.filter_path, + flat_settings: self.flat_settings, + human: self.human, + ignore_unavailable: self.ignore_unavailable, + include_defaults: self.include_defaults, + local: self.local, + master_timeout: self.master_timeout, + pretty: self.pretty, + source: self.source, + }; + Some(query_params) + }; + let body = Option::<()>::None; + let response = self + .transport + .send(method, &path, headers, query_string.as_ref(), body, timeout) + .await?; + Ok(response) + } +} +#[derive(Debug, Clone, PartialEq, Eq)] +#[doc = "API parts for the Indices Get Template API"] +pub enum IndicesGetTemplateParts<'b> { + #[doc = "No parts"] + None, + #[doc = "Name"] + Name(&'b [&'b str]), +} impl<'b> IndicesGetTemplateParts<'b> { #[doc = "Builds a relative URL path to the Indices Get Template API"] pub fn url(self) -> Cow<'static, str> { match self { - IndicesGetTemplateParts::None => "/_template".into(), - IndicesGetTemplateParts::Name(name) => { - let name_str = name.join(","); - let encoded_name: Cow = - percent_encode(name_str.as_bytes(), PARTS_ENCODED).into(); - let mut p = String::with_capacity(11usize + encoded_name.len()); - p.push_str("/_template/"); + IndicesGetTemplateParts::None => "/_template".into(), + IndicesGetTemplateParts::Name(name) => { + let name_str = name.join(","); + let encoded_name: Cow = + percent_encode(name_str.as_bytes(), PARTS_ENCODED).into(); + let mut p = String::with_capacity(11usize + encoded_name.len()); + p.push_str("/_template/"); + p.push_str(encoded_name.as_ref()); + p.into() + } + } + } +} +#[doc = "Builder for the [Indices Get Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-get-template-v1.html)\n\nReturns an index template."] +#[derive(Clone, Debug)] +pub struct IndicesGetTemplate<'a, 'b> { + transport: &'a Transport, + parts: IndicesGetTemplateParts<'b>, + error_trace: Option, + filter_path: Option<&'b [&'b str]>, + flat_settings: Option, + headers: HeaderMap, + human: Option, + local: Option, + master_timeout: Option<&'b str>, + pretty: Option, + request_timeout: Option, + source: Option<&'b str>, +} +impl<'a, 'b> IndicesGetTemplate<'a, 'b> { + #[doc = "Creates a new instance of [IndicesGetTemplate] with the specified API parts"] + pub fn new(transport: &'a Transport, parts: IndicesGetTemplateParts<'b>) -> Self { + let headers = HeaderMap::new(); + IndicesGetTemplate { + transport, + parts, + headers, + error_trace: None, + filter_path: None, + flat_settings: None, + human: None, + local: None, + master_timeout: None, + pretty: None, + request_timeout: None, + source: None, + } + } + #[doc = "Include the stack trace of returned errors."] + pub fn error_trace(mut self, error_trace: bool) -> Self { + self.error_trace = Some(error_trace); + self + } + #[doc = "A comma-separated list of filters used to reduce the response."] + pub fn filter_path(mut self, filter_path: &'b [&'b str]) -> Self { + self.filter_path = Some(filter_path); + self + } + #[doc = "Return settings in flat format (default: false)"] + pub fn flat_settings(mut self, flat_settings: bool) -> Self { + self.flat_settings = Some(flat_settings); + self + } + #[doc = "Adds a HTTP header"] + pub fn header(mut self, key: HeaderName, value: HeaderValue) -> Self { + self.headers.insert(key, value); + self + } + #[doc = "Return human readable values for statistics."] + pub fn human(mut self, human: bool) -> Self { + self.human = Some(human); + self + } + #[doc = "Return local information, do not retrieve the state from master node (default: false)"] + pub fn local(mut self, local: bool) -> Self { + self.local = Some(local); + self + } + #[doc = "Timeout for waiting for new cluster state in case it is blocked"] + pub fn master_timeout(mut self, master_timeout: &'b str) -> Self { + self.master_timeout = Some(master_timeout); + self + } + #[doc = "Pretty format the returned JSON response."] + pub fn pretty(mut self, pretty: bool) -> Self { + self.pretty = Some(pretty); + self + } + #[doc = "Sets a request timeout for this API call.\n\nThe timeout is applied from when the request starts connecting until the response body has finished."] + pub fn request_timeout(mut self, timeout: Duration) -> Self { + self.request_timeout = Some(timeout); + self + } + #[doc = "The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests."] + pub fn source(mut self, source: &'b str) -> Self { + self.source = Some(source); + self + } + #[doc = "Creates an asynchronous call to the Indices Get Template API that can be awaited"] + pub async fn send(self) -> Result { + let path = self.parts.url(); + let method = http::Method::Get; + let headers = self.headers; + let timeout = self.request_timeout; + let query_string = { + #[serde_with::skip_serializing_none] + #[derive(Serialize)] + struct QueryParams<'b> { + error_trace: Option, + #[serde(serialize_with = "crate::client::serialize_coll_qs")] + filter_path: Option<&'b [&'b str]>, + flat_settings: Option, + human: Option, + local: Option, + master_timeout: Option<&'b str>, + pretty: Option, + source: Option<&'b str>, + } + let query_params = QueryParams { + error_trace: self.error_trace, + filter_path: self.filter_path, + flat_settings: self.flat_settings, + human: self.human, + local: self.local, + master_timeout: self.master_timeout, + pretty: self.pretty, + source: self.source, + }; + Some(query_params) + }; + let body = Option::<()>::None; + let response = self + .transport + .send(method, &path, headers, query_string.as_ref(), body, timeout) + .await?; + Ok(response) + } +} +#[cfg(feature = "experimental-apis")] +#[derive(Debug, Clone, PartialEq, Eq)] +#[doc = "API parts for the Indices Migrate Reindex API"] +pub enum IndicesMigrateReindexParts { + #[doc = "No parts"] + None, +} +#[cfg(feature = "experimental-apis")] +impl IndicesMigrateReindexParts { + #[doc = "Builds a relative URL path to the Indices Migrate Reindex API"] + pub fn url(self) -> Cow<'static, str> { + match self { + IndicesMigrateReindexParts::None => "/_migration/reindex".into(), + } + } +} +#[doc = "Builder for the [Indices Migrate Reindex API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-stream-reindex-api.html)\n\nThis API reindexes all legacy backing indices for a data stream. It does this in a persistent task. The persistent task id is returned immediately, and the reindexing work is completed in that task"] +#[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] +#[cfg(feature = "experimental-apis")] +#[derive(Clone, Debug)] +pub struct IndicesMigrateReindex<'a, 'b, B> { + transport: &'a Transport, + parts: IndicesMigrateReindexParts, + body: Option, + error_trace: Option, + filter_path: Option<&'b [&'b str]>, + headers: HeaderMap, + human: Option, + pretty: Option, + request_timeout: Option, + source: Option<&'b str>, +} +#[cfg(feature = "experimental-apis")] +impl<'a, 'b, B> IndicesMigrateReindex<'a, 'b, B> +where + B: Body, +{ + #[doc = "Creates a new instance of [IndicesMigrateReindex]"] + pub fn new(transport: &'a Transport) -> Self { + let headers = HeaderMap::new(); + IndicesMigrateReindex { + transport, + parts: IndicesMigrateReindexParts::None, + headers, + body: None, + error_trace: None, + filter_path: None, + human: None, + pretty: None, + request_timeout: None, + source: None, + } + } + #[doc = "The body for the API call"] + pub fn body(self, body: T) -> IndicesMigrateReindex<'a, 'b, JsonBody> + where + T: Serialize, + { + IndicesMigrateReindex { + transport: self.transport, + parts: self.parts, + body: Some(body.into()), + error_trace: self.error_trace, + filter_path: self.filter_path, + headers: self.headers, + human: self.human, + pretty: self.pretty, + request_timeout: self.request_timeout, + source: self.source, + } + } + #[doc = "Include the stack trace of returned errors."] + pub fn error_trace(mut self, error_trace: bool) -> Self { + self.error_trace = Some(error_trace); + self + } + #[doc = "A comma-separated list of filters used to reduce the response."] + pub fn filter_path(mut self, filter_path: &'b [&'b str]) -> Self { + self.filter_path = Some(filter_path); + self + } + #[doc = "Adds a HTTP header"] + pub fn header(mut self, key: HeaderName, value: HeaderValue) -> Self { + self.headers.insert(key, value); + self + } + #[doc = "Return human readable values for statistics."] + pub fn human(mut self, human: bool) -> Self { + self.human = Some(human); + self + } + #[doc = "Pretty format the returned JSON response."] + pub fn pretty(mut self, pretty: bool) -> Self { + self.pretty = Some(pretty); + self + } + #[doc = "Sets a request timeout for this API call.\n\nThe timeout is applied from when the request starts connecting until the response body has finished."] + pub fn request_timeout(mut self, timeout: Duration) -> Self { + self.request_timeout = Some(timeout); + self + } + #[doc = "The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests."] + pub fn source(mut self, source: &'b str) -> Self { + self.source = Some(source); + self + } + #[doc = "Creates an asynchronous call to the Indices Migrate Reindex API that can be awaited"] + pub async fn send(self) -> Result { + let path = self.parts.url(); + let method = http::Method::Post; + let headers = self.headers; + let timeout = self.request_timeout; + let query_string = { + #[serde_with::skip_serializing_none] + #[derive(Serialize)] + struct QueryParams<'b> { + error_trace: Option, + #[serde(serialize_with = "crate::client::serialize_coll_qs")] + filter_path: Option<&'b [&'b str]>, + human: Option, + pretty: Option, + source: Option<&'b str>, + } + let query_params = QueryParams { + error_trace: self.error_trace, + filter_path: self.filter_path, + human: self.human, + pretty: self.pretty, + source: self.source, + }; + Some(query_params) + }; + let body = self.body; + let response = self + .transport + .send(method, &path, headers, query_string.as_ref(), body, timeout) + .await?; + Ok(response) + } +} +#[derive(Debug, Clone, PartialEq, Eq)] +#[doc = "API parts for the Indices Migrate To Data Stream API"] +pub enum IndicesMigrateToDataStreamParts<'b> { + #[doc = "Name"] + Name(&'b str), +} +impl<'b> IndicesMigrateToDataStreamParts<'b> { + #[doc = "Builds a relative URL path to the Indices Migrate To Data Stream API"] + pub fn url(self) -> Cow<'static, str> { + match self { + IndicesMigrateToDataStreamParts::Name(name) => { + let encoded_name: Cow = percent_encode(name.as_bytes(), PARTS_ENCODED).into(); + let mut p = String::with_capacity(23usize + encoded_name.len()); + p.push_str("/_data_stream/_migrate/"); p.push_str(encoded_name.as_ref()); p.into() } } } } -#[doc = "Builder for the [Indices Get Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-get-template-v1.html)\n\nReturns an index template."] +#[doc = "Builder for the [Indices Migrate To Data Stream API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-streams.html)\n\nMigrates an alias to a data stream"] #[derive(Clone, Debug)] -pub struct IndicesGetTemplate<'a, 'b> { +pub struct IndicesMigrateToDataStream<'a, 'b, B> { transport: &'a Transport, - parts: IndicesGetTemplateParts<'b>, + parts: IndicesMigrateToDataStreamParts<'b>, + body: Option, error_trace: Option, filter_path: Option<&'b [&'b str]>, - flat_settings: Option, headers: HeaderMap, human: Option, - local: Option, master_timeout: Option<&'b str>, pretty: Option, request_timeout: Option, source: Option<&'b str>, + timeout: Option<&'b str>, } -impl<'a, 'b> IndicesGetTemplate<'a, 'b> { - #[doc = "Creates a new instance of [IndicesGetTemplate] with the specified API parts"] - pub fn new(transport: &'a Transport, parts: IndicesGetTemplateParts<'b>) -> Self { +impl<'a, 'b, B> IndicesMigrateToDataStream<'a, 'b, B> +where + B: Body, +{ + #[doc = "Creates a new instance of [IndicesMigrateToDataStream] with the specified API parts"] + pub fn new(transport: &'a Transport, parts: IndicesMigrateToDataStreamParts<'b>) -> Self { let headers = HeaderMap::new(); - IndicesGetTemplate { + IndicesMigrateToDataStream { transport, parts, headers, + body: None, error_trace: None, filter_path: None, - flat_settings: None, human: None, - local: None, master_timeout: None, pretty: None, request_timeout: None, source: None, + timeout: None, + } + } + #[doc = "The body for the API call"] + pub fn body(self, body: T) -> IndicesMigrateToDataStream<'a, 'b, JsonBody> + where + T: Serialize, + { + IndicesMigrateToDataStream { + transport: self.transport, + parts: self.parts, + body: Some(body.into()), + error_trace: self.error_trace, + filter_path: self.filter_path, + headers: self.headers, + human: self.human, + master_timeout: self.master_timeout, + pretty: self.pretty, + request_timeout: self.request_timeout, + source: self.source, + timeout: self.timeout, } } #[doc = "Include the stack trace of returned errors."] @@ -6078,11 +6794,6 @@ impl<'a, 'b> IndicesGetTemplate<'a, 'b> { self.filter_path = Some(filter_path); self } - #[doc = "Return settings in flat format (default: false)"] - pub fn flat_settings(mut self, flat_settings: bool) -> Self { - self.flat_settings = Some(flat_settings); - self - } #[doc = "Adds a HTTP header"] pub fn header(mut self, key: HeaderName, value: HeaderValue) -> Self { self.headers.insert(key, value); @@ -6093,12 +6804,7 @@ impl<'a, 'b> IndicesGetTemplate<'a, 'b> { self.human = Some(human); self } - #[doc = "Return local information, do not retrieve the state from master node (default: false)"] - pub fn local(mut self, local: bool) -> Self { - self.local = Some(local); - self - } - #[doc = "Timeout for waiting for new cluster state in case it is blocked"] + #[doc = "Specify timeout for connection to master"] pub fn master_timeout(mut self, master_timeout: &'b str) -> Self { self.master_timeout = Some(master_timeout); self @@ -6118,10 +6824,15 @@ impl<'a, 'b> IndicesGetTemplate<'a, 'b> { self.source = Some(source); self } - #[doc = "Creates an asynchronous call to the Indices Get Template API that can be awaited"] + #[doc = "Specify timeout for acknowledging the cluster state update"] + pub fn timeout(mut self, timeout: &'b str) -> Self { + self.timeout = Some(timeout); + self + } + #[doc = "Creates an asynchronous call to the Indices Migrate To Data Stream API that can be awaited"] pub async fn send(self) -> Result { let path = self.parts.url(); - let method = http::Method::Get; + let method = http::Method::Post; let headers = self.headers; let timeout = self.request_timeout; let query_string = { @@ -6131,26 +6842,24 @@ impl<'a, 'b> IndicesGetTemplate<'a, 'b> { error_trace: Option, #[serde(serialize_with = "crate::client::serialize_coll_qs")] filter_path: Option<&'b [&'b str]>, - flat_settings: Option, human: Option, - local: Option, master_timeout: Option<&'b str>, pretty: Option, source: Option<&'b str>, + timeout: Option<&'b str>, } let query_params = QueryParams { error_trace: self.error_trace, filter_path: self.filter_path, - flat_settings: self.flat_settings, human: self.human, - local: self.local, master_timeout: self.master_timeout, pretty: self.pretty, source: self.source, + timeout: self.timeout, }; Some(query_params) }; - let body = Option::<()>::None; + let body = self.body; let response = self .transport .send(method, &path, headers, query_string.as_ref(), body, timeout) @@ -6158,29 +6867,25 @@ impl<'a, 'b> IndicesGetTemplate<'a, 'b> { Ok(response) } } -#[cfg(feature = "experimental-apis")] #[derive(Debug, Clone, PartialEq, Eq)] -#[doc = "API parts for the Indices Migrate Reindex API"] -pub enum IndicesMigrateReindexParts { +#[doc = "API parts for the Indices Modify Data Stream API"] +pub enum IndicesModifyDataStreamParts { #[doc = "No parts"] None, } -#[cfg(feature = "experimental-apis")] -impl IndicesMigrateReindexParts { - #[doc = "Builds a relative URL path to the Indices Migrate Reindex API"] +impl IndicesModifyDataStreamParts { + #[doc = "Builds a relative URL path to the Indices Modify Data Stream API"] pub fn url(self) -> Cow<'static, str> { match self { - IndicesMigrateReindexParts::None => "/_migration/reindex".into(), + IndicesModifyDataStreamParts::None => "/_data_stream/_modify".into(), } } } -#[doc = "Builder for the [Indices Migrate Reindex API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/data-stream-reindex-api.html)\n\nThis API reindexes all legacy backing indices for a data stream. It does this in a persistent task. The persistent task id is returned immediately, and the reindexing work is completed in that task"] -#[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] -#[cfg(feature = "experimental-apis")] +#[doc = "Builder for the [Indices Modify Data Stream API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-streams.html)\n\nModifies a data stream"] #[derive(Clone, Debug)] -pub struct IndicesMigrateReindex<'a, 'b, B> { +pub struct IndicesModifyDataStream<'a, 'b, B> { transport: &'a Transport, - parts: IndicesMigrateReindexParts, + parts: IndicesModifyDataStreamParts, body: Option, error_trace: Option, filter_path: Option<&'b [&'b str]>, @@ -6190,17 +6895,16 @@ pub struct IndicesMigrateReindex<'a, 'b, B> { request_timeout: Option, source: Option<&'b str>, } -#[cfg(feature = "experimental-apis")] -impl<'a, 'b, B> IndicesMigrateReindex<'a, 'b, B> +impl<'a, 'b, B> IndicesModifyDataStream<'a, 'b, B> where B: Body, { - #[doc = "Creates a new instance of [IndicesMigrateReindex]"] + #[doc = "Creates a new instance of [IndicesModifyDataStream]"] pub fn new(transport: &'a Transport) -> Self { let headers = HeaderMap::new(); - IndicesMigrateReindex { + IndicesModifyDataStream { transport, - parts: IndicesMigrateReindexParts::None, + parts: IndicesModifyDataStreamParts::None, headers, body: None, error_trace: None, @@ -6212,11 +6916,11 @@ where } } #[doc = "The body for the API call"] - pub fn body(self, body: T) -> IndicesMigrateReindex<'a, 'b, JsonBody> + pub fn body(self, body: T) -> IndicesModifyDataStream<'a, 'b, JsonBody> where T: Serialize, { - IndicesMigrateReindex { + IndicesModifyDataStream { transport: self.transport, parts: self.parts, body: Some(body.into()), @@ -6264,7 +6968,7 @@ where self.source = Some(source); self } - #[doc = "Creates an asynchronous call to the Indices Migrate Reindex API that can be awaited"] + #[doc = "Creates an asynchronous call to the Indices Modify Data Stream API that can be awaited"] pub async fn send(self) -> Result { let path = self.parts.url(); let method = http::Method::Post; @@ -6299,81 +7003,101 @@ where } } #[derive(Debug, Clone, PartialEq, Eq)] -#[doc = "API parts for the Indices Migrate To Data Stream API"] -pub enum IndicesMigrateToDataStreamParts<'b> { - #[doc = "Name"] - Name(&'b str), +#[doc = "API parts for the Indices Open API"] +pub enum IndicesOpenParts<'b> { + #[doc = "Index"] + Index(&'b [&'b str]), } -impl<'b> IndicesMigrateToDataStreamParts<'b> { - #[doc = "Builds a relative URL path to the Indices Migrate To Data Stream API"] +impl<'b> IndicesOpenParts<'b> { + #[doc = "Builds a relative URL path to the Indices Open API"] pub fn url(self) -> Cow<'static, str> { match self { - IndicesMigrateToDataStreamParts::Name(name) => { - let encoded_name: Cow = percent_encode(name.as_bytes(), PARTS_ENCODED).into(); - let mut p = String::with_capacity(23usize + encoded_name.len()); - p.push_str("/_data_stream/_migrate/"); - p.push_str(encoded_name.as_ref()); + IndicesOpenParts::Index(index) => { + let index_str = index.join(","); + let encoded_index: Cow = + percent_encode(index_str.as_bytes(), PARTS_ENCODED).into(); + let mut p = String::with_capacity(7usize + encoded_index.len()); + p.push('/'); + p.push_str(encoded_index.as_ref()); + p.push_str("/_open"); p.into() } } } } -#[doc = "Builder for the [Indices Migrate To Data Stream API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/data-streams.html)\n\nMigrates an alias to a data stream"] +#[doc = "Builder for the [Indices Open API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-open-close.html)\n\nOpens an index."] #[derive(Clone, Debug)] -pub struct IndicesMigrateToDataStream<'a, 'b, B> { +pub struct IndicesOpen<'a, 'b, B> { transport: &'a Transport, - parts: IndicesMigrateToDataStreamParts<'b>, + parts: IndicesOpenParts<'b>, + allow_no_indices: Option, body: Option, error_trace: Option, + expand_wildcards: Option<&'b [ExpandWildcards]>, filter_path: Option<&'b [&'b str]>, headers: HeaderMap, human: Option, + ignore_unavailable: Option, master_timeout: Option<&'b str>, pretty: Option, request_timeout: Option, source: Option<&'b str>, timeout: Option<&'b str>, + wait_for_active_shards: Option<&'b str>, } -impl<'a, 'b, B> IndicesMigrateToDataStream<'a, 'b, B> +impl<'a, 'b, B> IndicesOpen<'a, 'b, B> where B: Body, { - #[doc = "Creates a new instance of [IndicesMigrateToDataStream] with the specified API parts"] - pub fn new(transport: &'a Transport, parts: IndicesMigrateToDataStreamParts<'b>) -> Self { + #[doc = "Creates a new instance of [IndicesOpen] with the specified API parts"] + pub fn new(transport: &'a Transport, parts: IndicesOpenParts<'b>) -> Self { let headers = HeaderMap::new(); - IndicesMigrateToDataStream { + IndicesOpen { transport, parts, headers, + allow_no_indices: None, body: None, error_trace: None, + expand_wildcards: None, filter_path: None, human: None, + ignore_unavailable: None, master_timeout: None, pretty: None, request_timeout: None, source: None, timeout: None, + wait_for_active_shards: None, } } + #[doc = "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)"] + pub fn allow_no_indices(mut self, allow_no_indices: bool) -> Self { + self.allow_no_indices = Some(allow_no_indices); + self + } #[doc = "The body for the API call"] - pub fn body(self, body: T) -> IndicesMigrateToDataStream<'a, 'b, JsonBody> + pub fn body(self, body: T) -> IndicesOpen<'a, 'b, JsonBody> where T: Serialize, { - IndicesMigrateToDataStream { + IndicesOpen { transport: self.transport, parts: self.parts, body: Some(body.into()), + allow_no_indices: self.allow_no_indices, error_trace: self.error_trace, + expand_wildcards: self.expand_wildcards, filter_path: self.filter_path, headers: self.headers, human: self.human, + ignore_unavailable: self.ignore_unavailable, master_timeout: self.master_timeout, pretty: self.pretty, request_timeout: self.request_timeout, source: self.source, timeout: self.timeout, + wait_for_active_shards: self.wait_for_active_shards, } } #[doc = "Include the stack trace of returned errors."] @@ -6381,6 +7105,11 @@ where self.error_trace = Some(error_trace); self } + #[doc = "Whether to expand wildcard expression to concrete indices that are open, closed or both."] + pub fn expand_wildcards(mut self, expand_wildcards: &'b [ExpandWildcards]) -> Self { + self.expand_wildcards = Some(expand_wildcards); + self + } #[doc = "A comma-separated list of filters used to reduce the response."] pub fn filter_path(mut self, filter_path: &'b [&'b str]) -> Self { self.filter_path = Some(filter_path); @@ -6396,6 +7125,11 @@ where self.human = Some(human); self } + #[doc = "Whether specified concrete indices should be ignored when unavailable (missing or closed)"] + pub fn ignore_unavailable(mut self, ignore_unavailable: bool) -> Self { + self.ignore_unavailable = Some(ignore_unavailable); + self + } #[doc = "Specify timeout for connection to master"] pub fn master_timeout(mut self, master_timeout: &'b str) -> Self { self.master_timeout = Some(master_timeout); @@ -6416,12 +7150,17 @@ where self.source = Some(source); self } - #[doc = "Specify timeout for acknowledging the cluster state update"] + #[doc = "Explicit operation timeout"] pub fn timeout(mut self, timeout: &'b str) -> Self { self.timeout = Some(timeout); self } - #[doc = "Creates an asynchronous call to the Indices Migrate To Data Stream API that can be awaited"] + #[doc = "Sets the number of active shards to wait for before the operation returns."] + pub fn wait_for_active_shards(mut self, wait_for_active_shards: &'b str) -> Self { + self.wait_for_active_shards = Some(wait_for_active_shards); + self + } + #[doc = "Creates an asynchronous call to the Indices Open API that can be awaited"] pub async fn send(self) -> Result { let path = self.parts.url(); let method = http::Method::Post; @@ -6431,23 +7170,32 @@ where #[serde_with::skip_serializing_none] #[derive(Serialize)] struct QueryParams<'b> { + allow_no_indices: Option, error_trace: Option, #[serde(serialize_with = "crate::client::serialize_coll_qs")] + expand_wildcards: Option<&'b [ExpandWildcards]>, + #[serde(serialize_with = "crate::client::serialize_coll_qs")] filter_path: Option<&'b [&'b str]>, human: Option, + ignore_unavailable: Option, master_timeout: Option<&'b str>, pretty: Option, source: Option<&'b str>, timeout: Option<&'b str>, + wait_for_active_shards: Option<&'b str>, } let query_params = QueryParams { + allow_no_indices: self.allow_no_indices, error_trace: self.error_trace, + expand_wildcards: self.expand_wildcards, filter_path: self.filter_path, human: self.human, + ignore_unavailable: self.ignore_unavailable, master_timeout: self.master_timeout, pretty: self.pretty, source: self.source, timeout: self.timeout, + wait_for_active_shards: self.wait_for_active_shards, }; Some(query_params) }; @@ -6460,59 +7208,67 @@ where } } #[derive(Debug, Clone, PartialEq, Eq)] -#[doc = "API parts for the Indices Modify Data Stream API"] -pub enum IndicesModifyDataStreamParts { - #[doc = "No parts"] - None, +#[doc = "API parts for the Indices Promote Data Stream API"] +pub enum IndicesPromoteDataStreamParts<'b> { + #[doc = "Name"] + Name(&'b str), } -impl IndicesModifyDataStreamParts { - #[doc = "Builds a relative URL path to the Indices Modify Data Stream API"] +impl<'b> IndicesPromoteDataStreamParts<'b> { + #[doc = "Builds a relative URL path to the Indices Promote Data Stream API"] pub fn url(self) -> Cow<'static, str> { match self { - IndicesModifyDataStreamParts::None => "/_data_stream/_modify".into(), + IndicesPromoteDataStreamParts::Name(name) => { + let encoded_name: Cow = percent_encode(name.as_bytes(), PARTS_ENCODED).into(); + let mut p = String::with_capacity(23usize + encoded_name.len()); + p.push_str("/_data_stream/_promote/"); + p.push_str(encoded_name.as_ref()); + p.into() + } } } } -#[doc = "Builder for the [Indices Modify Data Stream API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/data-streams.html)\n\nModifies a data stream"] +#[doc = "Builder for the [Indices Promote Data Stream API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-streams.html)\n\nPromotes a data stream from a replicated data stream managed by CCR to a regular data stream"] #[derive(Clone, Debug)] -pub struct IndicesModifyDataStream<'a, 'b, B> { +pub struct IndicesPromoteDataStream<'a, 'b, B> { transport: &'a Transport, - parts: IndicesModifyDataStreamParts, + parts: IndicesPromoteDataStreamParts<'b>, body: Option, error_trace: Option, filter_path: Option<&'b [&'b str]>, headers: HeaderMap, human: Option, + master_timeout: Option<&'b str>, pretty: Option, request_timeout: Option, source: Option<&'b str>, } -impl<'a, 'b, B> IndicesModifyDataStream<'a, 'b, B> +impl<'a, 'b, B> IndicesPromoteDataStream<'a, 'b, B> where B: Body, { - #[doc = "Creates a new instance of [IndicesModifyDataStream]"] - pub fn new(transport: &'a Transport) -> Self { + #[doc = "Creates a new instance of [IndicesPromoteDataStream] with the specified API parts"] + pub fn new(transport: &'a Transport, parts: IndicesPromoteDataStreamParts<'b>) -> Self { let headers = HeaderMap::new(); - IndicesModifyDataStream { + IndicesPromoteDataStream { transport, - parts: IndicesModifyDataStreamParts::None, + parts, headers, body: None, error_trace: None, filter_path: None, human: None, + master_timeout: None, pretty: None, request_timeout: None, source: None, } } #[doc = "The body for the API call"] - pub fn body(self, body: T) -> IndicesModifyDataStream<'a, 'b, JsonBody> + pub fn body(self, body: T) -> IndicesPromoteDataStream<'a, 'b, JsonBody> where T: Serialize, { - IndicesModifyDataStream { + IndicesPromoteDataStream { transport: self.transport, parts: self.parts, body: Some(body.into()), @@ -6520,6 +7276,7 @@ where filter_path: self.filter_path, headers: self.headers, human: self.human, + master_timeout: self.master_timeout, pretty: self.pretty, request_timeout: self.request_timeout, source: self.source, @@ -6545,6 +7302,11 @@ where self.human = Some(human); self } + #[doc = "Specify timeout for connection to master"] + pub fn master_timeout(mut self, master_timeout: &'b str) -> Self { + self.master_timeout = Some(master_timeout); + self + } #[doc = "Pretty format the returned JSON response."] pub fn pretty(mut self, pretty: bool) -> Self { self.pretty = Some(pretty); @@ -6560,7 +7322,7 @@ where self.source = Some(source); self } - #[doc = "Creates an asynchronous call to the Indices Modify Data Stream API that can be awaited"] + #[doc = "Creates an asynchronous call to the Indices Promote Data Stream API that can be awaited"] pub async fn send(self) -> Result { let path = self.parts.url(); let method = http::Method::Post; @@ -6574,6 +7336,7 @@ where #[serde(serialize_with = "crate::client::serialize_coll_qs")] filter_path: Option<&'b [&'b str]>, human: Option, + master_timeout: Option<&'b str>, pretty: Option, source: Option<&'b str>, } @@ -6581,6 +7344,7 @@ where error_trace: self.error_trace, filter_path: self.filter_path, human: self.human, + master_timeout: self.master_timeout, pretty: self.pretty, source: self.source, }; @@ -6595,101 +7359,87 @@ where } } #[derive(Debug, Clone, PartialEq, Eq)] -#[doc = "API parts for the Indices Open API"] -pub enum IndicesOpenParts<'b> { - #[doc = "Index"] - Index(&'b [&'b str]), +#[doc = "API parts for the Indices Put Alias API"] +pub enum IndicesPutAliasParts<'b> { + #[doc = "Index and Name"] + IndexName(&'b [&'b str], &'b str), } -impl<'b> IndicesOpenParts<'b> { - #[doc = "Builds a relative URL path to the Indices Open API"] +impl<'b> IndicesPutAliasParts<'b> { + #[doc = "Builds a relative URL path to the Indices Put Alias API"] pub fn url(self) -> Cow<'static, str> { match self { - IndicesOpenParts::Index(index) => { + IndicesPutAliasParts::IndexName(index, name) => { let index_str = index.join(","); let encoded_index: Cow = percent_encode(index_str.as_bytes(), PARTS_ENCODED).into(); - let mut p = String::with_capacity(7usize + encoded_index.len()); + let encoded_name: Cow = percent_encode(name.as_bytes(), PARTS_ENCODED).into(); + let mut p = + String::with_capacity(9usize + encoded_index.len() + encoded_name.len()); p.push('/'); p.push_str(encoded_index.as_ref()); - p.push_str("/_open"); + p.push_str("/_alias/"); + p.push_str(encoded_name.as_ref()); p.into() } } } } -#[doc = "Builder for the [Indices Open API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-open-close.html)\n\nOpens an index."] +#[doc = "Builder for the [Indices Put Alias API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-aliases.html)\n\nCreates or updates an alias."] #[derive(Clone, Debug)] -pub struct IndicesOpen<'a, 'b, B> { +pub struct IndicesPutAlias<'a, 'b, B> { transport: &'a Transport, - parts: IndicesOpenParts<'b>, - allow_no_indices: Option, + parts: IndicesPutAliasParts<'b>, body: Option, error_trace: Option, - expand_wildcards: Option<&'b [ExpandWildcards]>, filter_path: Option<&'b [&'b str]>, headers: HeaderMap, human: Option, - ignore_unavailable: Option, master_timeout: Option<&'b str>, pretty: Option, request_timeout: Option, source: Option<&'b str>, timeout: Option<&'b str>, - wait_for_active_shards: Option<&'b str>, } -impl<'a, 'b, B> IndicesOpen<'a, 'b, B> +impl<'a, 'b, B> IndicesPutAlias<'a, 'b, B> where B: Body, { - #[doc = "Creates a new instance of [IndicesOpen] with the specified API parts"] - pub fn new(transport: &'a Transport, parts: IndicesOpenParts<'b>) -> Self { + #[doc = "Creates a new instance of [IndicesPutAlias] with the specified API parts"] + pub fn new(transport: &'a Transport, parts: IndicesPutAliasParts<'b>) -> Self { let headers = HeaderMap::new(); - IndicesOpen { + IndicesPutAlias { transport, parts, headers, - allow_no_indices: None, body: None, error_trace: None, - expand_wildcards: None, filter_path: None, human: None, - ignore_unavailable: None, master_timeout: None, pretty: None, request_timeout: None, source: None, timeout: None, - wait_for_active_shards: None, } } - #[doc = "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)"] - pub fn allow_no_indices(mut self, allow_no_indices: bool) -> Self { - self.allow_no_indices = Some(allow_no_indices); - self - } #[doc = "The body for the API call"] - pub fn body(self, body: T) -> IndicesOpen<'a, 'b, JsonBody> + pub fn body(self, body: T) -> IndicesPutAlias<'a, 'b, JsonBody> where T: Serialize, { - IndicesOpen { + IndicesPutAlias { transport: self.transport, parts: self.parts, body: Some(body.into()), - allow_no_indices: self.allow_no_indices, error_trace: self.error_trace, - expand_wildcards: self.expand_wildcards, filter_path: self.filter_path, headers: self.headers, human: self.human, - ignore_unavailable: self.ignore_unavailable, master_timeout: self.master_timeout, pretty: self.pretty, request_timeout: self.request_timeout, source: self.source, timeout: self.timeout, - wait_for_active_shards: self.wait_for_active_shards, } } #[doc = "Include the stack trace of returned errors."] @@ -6697,11 +7447,6 @@ where self.error_trace = Some(error_trace); self } - #[doc = "Whether to expand wildcard expression to concrete indices that are open, closed or both."] - pub fn expand_wildcards(mut self, expand_wildcards: &'b [ExpandWildcards]) -> Self { - self.expand_wildcards = Some(expand_wildcards); - self - } #[doc = "A comma-separated list of filters used to reduce the response."] pub fn filter_path(mut self, filter_path: &'b [&'b str]) -> Self { self.filter_path = Some(filter_path); @@ -6717,11 +7462,6 @@ where self.human = Some(human); self } - #[doc = "Whether specified concrete indices should be ignored when unavailable (missing or closed)"] - pub fn ignore_unavailable(mut self, ignore_unavailable: bool) -> Self { - self.ignore_unavailable = Some(ignore_unavailable); - self - } #[doc = "Specify timeout for connection to master"] pub fn master_timeout(mut self, master_timeout: &'b str) -> Self { self.master_timeout = Some(master_timeout); @@ -6742,52 +7482,38 @@ where self.source = Some(source); self } - #[doc = "Explicit operation timeout"] + #[doc = "Explicit timestamp for the document"] pub fn timeout(mut self, timeout: &'b str) -> Self { self.timeout = Some(timeout); self } - #[doc = "Sets the number of active shards to wait for before the operation returns."] - pub fn wait_for_active_shards(mut self, wait_for_active_shards: &'b str) -> Self { - self.wait_for_active_shards = Some(wait_for_active_shards); - self - } - #[doc = "Creates an asynchronous call to the Indices Open API that can be awaited"] + #[doc = "Creates an asynchronous call to the Indices Put Alias API that can be awaited"] pub async fn send(self) -> Result { let path = self.parts.url(); - let method = http::Method::Post; + let method = http::Method::Put; let headers = self.headers; let timeout = self.request_timeout; let query_string = { #[serde_with::skip_serializing_none] #[derive(Serialize)] struct QueryParams<'b> { - allow_no_indices: Option, error_trace: Option, #[serde(serialize_with = "crate::client::serialize_coll_qs")] - expand_wildcards: Option<&'b [ExpandWildcards]>, - #[serde(serialize_with = "crate::client::serialize_coll_qs")] filter_path: Option<&'b [&'b str]>, human: Option, - ignore_unavailable: Option, master_timeout: Option<&'b str>, pretty: Option, source: Option<&'b str>, timeout: Option<&'b str>, - wait_for_active_shards: Option<&'b str>, } let query_params = QueryParams { - allow_no_indices: self.allow_no_indices, error_trace: self.error_trace, - expand_wildcards: self.expand_wildcards, filter_path: self.filter_path, human: self.human, - ignore_unavailable: self.ignore_unavailable, master_timeout: self.master_timeout, pretty: self.pretty, source: self.source, timeout: self.timeout, - wait_for_active_shards: self.wait_for_active_shards, }; Some(query_params) }; @@ -6800,32 +7526,36 @@ where } } #[derive(Debug, Clone, PartialEq, Eq)] -#[doc = "API parts for the Indices Promote Data Stream API"] -pub enum IndicesPromoteDataStreamParts<'b> { +#[doc = "API parts for the Indices Put Data Lifecycle API"] +pub enum IndicesPutDataLifecycleParts<'b> { #[doc = "Name"] - Name(&'b str), + Name(&'b [&'b str]), } -impl<'b> IndicesPromoteDataStreamParts<'b> { - #[doc = "Builds a relative URL path to the Indices Promote Data Stream API"] +impl<'b> IndicesPutDataLifecycleParts<'b> { + #[doc = "Builds a relative URL path to the Indices Put Data Lifecycle API"] pub fn url(self) -> Cow<'static, str> { match self { - IndicesPromoteDataStreamParts::Name(name) => { - let encoded_name: Cow = percent_encode(name.as_bytes(), PARTS_ENCODED).into(); - let mut p = String::with_capacity(23usize + encoded_name.len()); - p.push_str("/_data_stream/_promote/"); + IndicesPutDataLifecycleParts::Name(name) => { + let name_str = name.join(","); + let encoded_name: Cow = + percent_encode(name_str.as_bytes(), PARTS_ENCODED).into(); + let mut p = String::with_capacity(25usize + encoded_name.len()); + p.push_str("/_data_stream/"); p.push_str(encoded_name.as_ref()); + p.push_str("/_lifecycle"); p.into() } } } } -#[doc = "Builder for the [Indices Promote Data Stream API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/data-streams.html)\n\nPromotes a data stream from a replicated data stream managed by CCR to a regular data stream"] +#[doc = "Builder for the [Indices Put Data Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-streams-put-lifecycle.html)\n\nUpdates the data stream lifecycle of the selected data streams."] #[derive(Clone, Debug)] -pub struct IndicesPromoteDataStream<'a, 'b, B> { +pub struct IndicesPutDataLifecycle<'a, 'b, B> { transport: &'a Transport, - parts: IndicesPromoteDataStreamParts<'b>, + parts: IndicesPutDataLifecycleParts<'b>, body: Option, error_trace: Option, + expand_wildcards: Option<&'b [ExpandWildcards]>, filter_path: Option<&'b [&'b str]>, headers: HeaderMap, human: Option, @@ -6833,38 +7563,42 @@ pub struct IndicesPromoteDataStream<'a, 'b, B> { pretty: Option, request_timeout: Option, source: Option<&'b str>, + timeout: Option<&'b str>, } -impl<'a, 'b, B> IndicesPromoteDataStream<'a, 'b, B> +impl<'a, 'b, B> IndicesPutDataLifecycle<'a, 'b, B> where B: Body, { - #[doc = "Creates a new instance of [IndicesPromoteDataStream] with the specified API parts"] - pub fn new(transport: &'a Transport, parts: IndicesPromoteDataStreamParts<'b>) -> Self { + #[doc = "Creates a new instance of [IndicesPutDataLifecycle] with the specified API parts"] + pub fn new(transport: &'a Transport, parts: IndicesPutDataLifecycleParts<'b>) -> Self { let headers = HeaderMap::new(); - IndicesPromoteDataStream { + IndicesPutDataLifecycle { transport, parts, headers, body: None, error_trace: None, + expand_wildcards: None, filter_path: None, human: None, master_timeout: None, pretty: None, request_timeout: None, source: None, + timeout: None, } } #[doc = "The body for the API call"] - pub fn body(self, body: T) -> IndicesPromoteDataStream<'a, 'b, JsonBody> + pub fn body(self, body: T) -> IndicesPutDataLifecycle<'a, 'b, JsonBody> where T: Serialize, { - IndicesPromoteDataStream { + IndicesPutDataLifecycle { transport: self.transport, parts: self.parts, body: Some(body.into()), error_trace: self.error_trace, + expand_wildcards: self.expand_wildcards, filter_path: self.filter_path, headers: self.headers, human: self.human, @@ -6872,6 +7606,7 @@ where pretty: self.pretty, request_timeout: self.request_timeout, source: self.source, + timeout: self.timeout, } } #[doc = "Include the stack trace of returned errors."] @@ -6879,6 +7614,11 @@ where self.error_trace = Some(error_trace); self } + #[doc = "Whether wildcard expressions should get expanded to open or closed indices (default: open)"] + pub fn expand_wildcards(mut self, expand_wildcards: &'b [ExpandWildcards]) -> Self { + self.expand_wildcards = Some(expand_wildcards); + self + } #[doc = "A comma-separated list of filters used to reduce the response."] pub fn filter_path(mut self, filter_path: &'b [&'b str]) -> Self { self.filter_path = Some(filter_path); @@ -6914,10 +7654,15 @@ where self.source = Some(source); self } - #[doc = "Creates an asynchronous call to the Indices Promote Data Stream API that can be awaited"] + #[doc = "Explicit timestamp for the document"] + pub fn timeout(mut self, timeout: &'b str) -> Self { + self.timeout = Some(timeout); + self + } + #[doc = "Creates an asynchronous call to the Indices Put Data Lifecycle API that can be awaited"] pub async fn send(self) -> Result { let path = self.parts.url(); - let method = http::Method::Post; + let method = http::Method::Put; let headers = self.headers; let timeout = self.request_timeout; let query_string = { @@ -6926,19 +7671,24 @@ where struct QueryParams<'b> { error_trace: Option, #[serde(serialize_with = "crate::client::serialize_coll_qs")] + expand_wildcards: Option<&'b [ExpandWildcards]>, + #[serde(serialize_with = "crate::client::serialize_coll_qs")] filter_path: Option<&'b [&'b str]>, human: Option, master_timeout: Option<&'b str>, pretty: Option, source: Option<&'b str>, + timeout: Option<&'b str>, } let query_params = QueryParams { error_trace: self.error_trace, + expand_wildcards: self.expand_wildcards, filter_path: self.filter_path, human: self.human, master_timeout: self.master_timeout, pretty: self.pretty, source: self.source, + timeout: self.timeout, }; Some(query_params) }; @@ -6951,38 +7701,36 @@ where } } #[derive(Debug, Clone, PartialEq, Eq)] -#[doc = "API parts for the Indices Put Alias API"] -pub enum IndicesPutAliasParts<'b> { - #[doc = "Index and Name"] - IndexName(&'b [&'b str], &'b str), +#[doc = "API parts for the Indices Put Data Stream Options API"] +pub enum IndicesPutDataStreamOptionsParts<'b> { + #[doc = "Name"] + Name(&'b [&'b str]), } -impl<'b> IndicesPutAliasParts<'b> { - #[doc = "Builds a relative URL path to the Indices Put Alias API"] +impl<'b> IndicesPutDataStreamOptionsParts<'b> { + #[doc = "Builds a relative URL path to the Indices Put Data Stream Options API"] pub fn url(self) -> Cow<'static, str> { match self { - IndicesPutAliasParts::IndexName(index, name) => { - let index_str = index.join(","); - let encoded_index: Cow = - percent_encode(index_str.as_bytes(), PARTS_ENCODED).into(); - let encoded_name: Cow = percent_encode(name.as_bytes(), PARTS_ENCODED).into(); - let mut p = - String::with_capacity(9usize + encoded_index.len() + encoded_name.len()); - p.push('/'); - p.push_str(encoded_index.as_ref()); - p.push_str("/_alias/"); + IndicesPutDataStreamOptionsParts::Name(name) => { + let name_str = name.join(","); + let encoded_name: Cow = + percent_encode(name_str.as_bytes(), PARTS_ENCODED).into(); + let mut p = String::with_capacity(23usize + encoded_name.len()); + p.push_str("/_data_stream/"); p.push_str(encoded_name.as_ref()); + p.push_str("/_options"); p.into() } } } } -#[doc = "Builder for the [Indices Put Alias API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-aliases.html)\n\nCreates or updates an alias."] +#[doc = "Builder for the [Indices Put Data Stream Options API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/index.html)\n\nUpdates the data stream options of the selected data streams."] #[derive(Clone, Debug)] -pub struct IndicesPutAlias<'a, 'b, B> { +pub struct IndicesPutDataStreamOptions<'a, 'b, B> { transport: &'a Transport, - parts: IndicesPutAliasParts<'b>, + parts: IndicesPutDataStreamOptionsParts<'b>, body: Option, error_trace: Option, + expand_wildcards: Option<&'b [ExpandWildcards]>, filter_path: Option<&'b [&'b str]>, headers: HeaderMap, human: Option, @@ -6992,19 +7740,20 @@ pub struct IndicesPutAlias<'a, 'b, B> { source: Option<&'b str>, timeout: Option<&'b str>, } -impl<'a, 'b, B> IndicesPutAlias<'a, 'b, B> +impl<'a, 'b, B> IndicesPutDataStreamOptions<'a, 'b, B> where B: Body, { - #[doc = "Creates a new instance of [IndicesPutAlias] with the specified API parts"] - pub fn new(transport: &'a Transport, parts: IndicesPutAliasParts<'b>) -> Self { + #[doc = "Creates a new instance of [IndicesPutDataStreamOptions] with the specified API parts"] + pub fn new(transport: &'a Transport, parts: IndicesPutDataStreamOptionsParts<'b>) -> Self { let headers = HeaderMap::new(); - IndicesPutAlias { + IndicesPutDataStreamOptions { transport, parts, headers, body: None, error_trace: None, + expand_wildcards: None, filter_path: None, human: None, master_timeout: None, @@ -7015,15 +7764,16 @@ where } } #[doc = "The body for the API call"] - pub fn body(self, body: T) -> IndicesPutAlias<'a, 'b, JsonBody> + pub fn body(self, body: T) -> IndicesPutDataStreamOptions<'a, 'b, JsonBody> where T: Serialize, { - IndicesPutAlias { + IndicesPutDataStreamOptions { transport: self.transport, parts: self.parts, body: Some(body.into()), error_trace: self.error_trace, + expand_wildcards: self.expand_wildcards, filter_path: self.filter_path, headers: self.headers, human: self.human, @@ -7039,6 +7789,11 @@ where self.error_trace = Some(error_trace); self } + #[doc = "Whether wildcard expressions should get expanded to open or closed indices (default: open)"] + pub fn expand_wildcards(mut self, expand_wildcards: &'b [ExpandWildcards]) -> Self { + self.expand_wildcards = Some(expand_wildcards); + self + } #[doc = "A comma-separated list of filters used to reduce the response."] pub fn filter_path(mut self, filter_path: &'b [&'b str]) -> Self { self.filter_path = Some(filter_path); @@ -7079,7 +7834,7 @@ where self.timeout = Some(timeout); self } - #[doc = "Creates an asynchronous call to the Indices Put Alias API that can be awaited"] + #[doc = "Creates an asynchronous call to the Indices Put Data Stream Options API that can be awaited"] pub async fn send(self) -> Result { let path = self.parts.url(); let method = http::Method::Put; @@ -7091,6 +7846,8 @@ where struct QueryParams<'b> { error_trace: Option, #[serde(serialize_with = "crate::client::serialize_coll_qs")] + expand_wildcards: Option<&'b [ExpandWildcards]>, + #[serde(serialize_with = "crate::client::serialize_coll_qs")] filter_path: Option<&'b [&'b str]>, human: Option, master_timeout: Option<&'b str>, @@ -7100,6 +7857,7 @@ where } let query_params = QueryParams { error_trace: self.error_trace, + expand_wildcards: self.expand_wildcards, filter_path: self.filter_path, human: self.human, master_timeout: self.master_timeout, @@ -7118,36 +7876,34 @@ where } } #[derive(Debug, Clone, PartialEq, Eq)] -#[doc = "API parts for the Indices Put Data Lifecycle API"] -pub enum IndicesPutDataLifecycleParts<'b> { +#[doc = "API parts for the Indices Put Data Stream Settings API"] +pub enum IndicesPutDataStreamSettingsParts<'b> { #[doc = "Name"] - Name(&'b [&'b str]), + Name(&'b str), } -impl<'b> IndicesPutDataLifecycleParts<'b> { - #[doc = "Builds a relative URL path to the Indices Put Data Lifecycle API"] +impl<'b> IndicesPutDataStreamSettingsParts<'b> { + #[doc = "Builds a relative URL path to the Indices Put Data Stream Settings API"] pub fn url(self) -> Cow<'static, str> { match self { - IndicesPutDataLifecycleParts::Name(name) => { - let name_str = name.join(","); - let encoded_name: Cow = - percent_encode(name_str.as_bytes(), PARTS_ENCODED).into(); - let mut p = String::with_capacity(25usize + encoded_name.len()); + IndicesPutDataStreamSettingsParts::Name(name) => { + let encoded_name: Cow = percent_encode(name.as_bytes(), PARTS_ENCODED).into(); + let mut p = String::with_capacity(24usize + encoded_name.len()); p.push_str("/_data_stream/"); p.push_str(encoded_name.as_ref()); - p.push_str("/_lifecycle"); + p.push_str("/_settings"); p.into() } } } } -#[doc = "Builder for the [Indices Put Data Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/data-streams-put-lifecycle.html)\n\nUpdates the data stream lifecycle of the selected data streams."] +#[doc = "Builder for the [Indices Put Data Stream Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-streams.html)\n\nUpdates a data stream's settings"] #[derive(Clone, Debug)] -pub struct IndicesPutDataLifecycle<'a, 'b, B> { +pub struct IndicesPutDataStreamSettings<'a, 'b, B> { transport: &'a Transport, - parts: IndicesPutDataLifecycleParts<'b>, + parts: IndicesPutDataStreamSettingsParts<'b>, body: Option, + dry_run: Option, error_trace: Option, - expand_wildcards: Option<&'b [ExpandWildcards]>, filter_path: Option<&'b [&'b str]>, headers: HeaderMap, human: Option, @@ -7157,20 +7913,20 @@ pub struct IndicesPutDataLifecycle<'a, 'b, B> { source: Option<&'b str>, timeout: Option<&'b str>, } -impl<'a, 'b, B> IndicesPutDataLifecycle<'a, 'b, B> +impl<'a, 'b, B> IndicesPutDataStreamSettings<'a, 'b, B> where B: Body, { - #[doc = "Creates a new instance of [IndicesPutDataLifecycle] with the specified API parts"] - pub fn new(transport: &'a Transport, parts: IndicesPutDataLifecycleParts<'b>) -> Self { + #[doc = "Creates a new instance of [IndicesPutDataStreamSettings] with the specified API parts"] + pub fn new(transport: &'a Transport, parts: IndicesPutDataStreamSettingsParts<'b>) -> Self { let headers = HeaderMap::new(); - IndicesPutDataLifecycle { + IndicesPutDataStreamSettings { transport, parts, headers, body: None, + dry_run: None, error_trace: None, - expand_wildcards: None, filter_path: None, human: None, master_timeout: None, @@ -7181,16 +7937,16 @@ where } } #[doc = "The body for the API call"] - pub fn body(self, body: T) -> IndicesPutDataLifecycle<'a, 'b, JsonBody> + pub fn body(self, body: T) -> IndicesPutDataStreamSettings<'a, 'b, JsonBody> where T: Serialize, { - IndicesPutDataLifecycle { + IndicesPutDataStreamSettings { transport: self.transport, parts: self.parts, body: Some(body.into()), + dry_run: self.dry_run, error_trace: self.error_trace, - expand_wildcards: self.expand_wildcards, filter_path: self.filter_path, headers: self.headers, human: self.human, @@ -7201,16 +7957,16 @@ where timeout: self.timeout, } } + #[doc = "Whether this request should only be a dry run rather than actually applying settings"] + pub fn dry_run(mut self, dry_run: bool) -> Self { + self.dry_run = Some(dry_run); + self + } #[doc = "Include the stack trace of returned errors."] pub fn error_trace(mut self, error_trace: bool) -> Self { self.error_trace = Some(error_trace); self } - #[doc = "Whether wildcard expressions should get expanded to open or closed indices (default: open)"] - pub fn expand_wildcards(mut self, expand_wildcards: &'b [ExpandWildcards]) -> Self { - self.expand_wildcards = Some(expand_wildcards); - self - } #[doc = "A comma-separated list of filters used to reduce the response."] pub fn filter_path(mut self, filter_path: &'b [&'b str]) -> Self { self.filter_path = Some(filter_path); @@ -7226,7 +7982,7 @@ where self.human = Some(human); self } - #[doc = "Specify timeout for connection to master"] + #[doc = "Period to wait for a connection to the master node"] pub fn master_timeout(mut self, master_timeout: &'b str) -> Self { self.master_timeout = Some(master_timeout); self @@ -7246,12 +8002,12 @@ where self.source = Some(source); self } - #[doc = "Explicit timestamp for the document"] + #[doc = "Period to wait for a response"] pub fn timeout(mut self, timeout: &'b str) -> Self { self.timeout = Some(timeout); self } - #[doc = "Creates an asynchronous call to the Indices Put Data Lifecycle API that can be awaited"] + #[doc = "Creates an asynchronous call to the Indices Put Data Stream Settings API that can be awaited"] pub async fn send(self) -> Result { let path = self.parts.url(); let method = http::Method::Put; @@ -7261,10 +8017,9 @@ where #[serde_with::skip_serializing_none] #[derive(Serialize)] struct QueryParams<'b> { + dry_run: Option, error_trace: Option, #[serde(serialize_with = "crate::client::serialize_coll_qs")] - expand_wildcards: Option<&'b [ExpandWildcards]>, - #[serde(serialize_with = "crate::client::serialize_coll_qs")] filter_path: Option<&'b [&'b str]>, human: Option, master_timeout: Option<&'b str>, @@ -7273,8 +8028,8 @@ where timeout: Option<&'b str>, } let query_params = QueryParams { + dry_run: self.dry_run, error_trace: self.error_trace, - expand_wildcards: self.expand_wildcards, filter_path: self.filter_path, human: self.human, master_timeout: self.master_timeout, @@ -7312,7 +8067,7 @@ impl<'b> IndicesPutIndexTemplateParts<'b> { } } } -#[doc = "Builder for the [Indices Put Index Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-put-template.html)\n\nCreates or updates an index template."] +#[doc = "Builder for the [Indices Put Index Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-put-template.html)\n\nCreates or updates an index template."] #[derive(Clone, Debug)] pub struct IndicesPutIndexTemplate<'a, 'b, B> { transport: &'a Transport, @@ -7486,7 +8241,7 @@ impl<'b> IndicesPutMappingParts<'b> { } } } -#[doc = "Builder for the [Indices Put Mapping API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-put-mapping.html)\n\nUpdates the index mappings."] +#[doc = "Builder for the [Indices Put Mapping API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-put-mapping.html)\n\nUpdates the index mappings."] #[derive(Clone, Debug)] pub struct IndicesPutMapping<'a, 'b, B> { transport: &'a Transport, @@ -7694,7 +8449,7 @@ impl<'b> IndicesPutSettingsParts<'b> { } } } -#[doc = "Builder for the [Indices Put Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-update-settings.html)\n\nUpdates the index settings."] +#[doc = "Builder for the [Indices Put Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-update-settings.html)\n\nUpdates the index settings."] #[derive(Clone, Debug)] pub struct IndicesPutSettings<'a, 'b, B> { transport: &'a Transport, @@ -7916,7 +8671,7 @@ impl<'b> IndicesPutTemplateParts<'b> { } } } -#[doc = "Builder for the [Indices Put Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-templates-v1.html)\n\nCreates or updates an index template."] +#[doc = "Builder for the [Indices Put Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-templates-v1.html)\n\nCreates or updates an index template."] #[derive(Clone, Debug)] pub struct IndicesPutTemplate<'a, 'b, B> { transport: &'a Transport, @@ -8103,17 +8858,20 @@ impl<'b> IndicesRecoveryParts<'b> { } } } -#[doc = "Builder for the [Indices Recovery API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-recovery.html)\n\nReturns information about ongoing index shard recoveries."] +#[doc = "Builder for the [Indices Recovery API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-recovery.html)\n\nReturns information about ongoing index shard recoveries."] #[derive(Clone, Debug)] pub struct IndicesRecovery<'a, 'b> { transport: &'a Transport, parts: IndicesRecoveryParts<'b>, active_only: Option, + allow_no_indices: Option, detailed: Option, error_trace: Option, + expand_wildcards: Option<&'b [ExpandWildcards]>, filter_path: Option<&'b [&'b str]>, headers: HeaderMap, human: Option, + ignore_unavailable: Option, pretty: Option, request_timeout: Option, source: Option<&'b str>, @@ -8127,10 +8885,13 @@ impl<'a, 'b> IndicesRecovery<'a, 'b> { parts, headers, active_only: None, + allow_no_indices: None, detailed: None, error_trace: None, + expand_wildcards: None, filter_path: None, human: None, + ignore_unavailable: None, pretty: None, request_timeout: None, source: None, @@ -8141,6 +8902,11 @@ impl<'a, 'b> IndicesRecovery<'a, 'b> { self.active_only = Some(active_only); self } + #[doc = "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)"] + pub fn allow_no_indices(mut self, allow_no_indices: bool) -> Self { + self.allow_no_indices = Some(allow_no_indices); + self + } #[doc = "Whether to display detailed information about shard recovery"] pub fn detailed(mut self, detailed: bool) -> Self { self.detailed = Some(detailed); @@ -8151,6 +8917,11 @@ impl<'a, 'b> IndicesRecovery<'a, 'b> { self.error_trace = Some(error_trace); self } + #[doc = "Whether to expand wildcard expression to concrete indices that are open, closed or both."] + pub fn expand_wildcards(mut self, expand_wildcards: &'b [ExpandWildcards]) -> Self { + self.expand_wildcards = Some(expand_wildcards); + self + } #[doc = "A comma-separated list of filters used to reduce the response."] pub fn filter_path(mut self, filter_path: &'b [&'b str]) -> Self { self.filter_path = Some(filter_path); @@ -8166,6 +8937,11 @@ impl<'a, 'b> IndicesRecovery<'a, 'b> { self.human = Some(human); self } + #[doc = "Whether specified concrete indices should be ignored when unavailable (missing or closed)"] + pub fn ignore_unavailable(mut self, ignore_unavailable: bool) -> Self { + self.ignore_unavailable = Some(ignore_unavailable); + self + } #[doc = "Pretty format the returned JSON response."] pub fn pretty(mut self, pretty: bool) -> Self { self.pretty = Some(pretty); @@ -8192,20 +8968,27 @@ impl<'a, 'b> IndicesRecovery<'a, 'b> { #[derive(Serialize)] struct QueryParams<'b> { active_only: Option, + allow_no_indices: Option, detailed: Option, error_trace: Option, #[serde(serialize_with = "crate::client::serialize_coll_qs")] + expand_wildcards: Option<&'b [ExpandWildcards]>, + #[serde(serialize_with = "crate::client::serialize_coll_qs")] filter_path: Option<&'b [&'b str]>, human: Option, + ignore_unavailable: Option, pretty: Option, source: Option<&'b str>, } let query_params = QueryParams { active_only: self.active_only, + allow_no_indices: self.allow_no_indices, detailed: self.detailed, error_trace: self.error_trace, + expand_wildcards: self.expand_wildcards, filter_path: self.filter_path, human: self.human, + ignore_unavailable: self.ignore_unavailable, pretty: self.pretty, source: self.source, }; @@ -8245,7 +9028,7 @@ impl<'b> IndicesRefreshParts<'b> { } } } -#[doc = "Builder for the [Indices Refresh API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-refresh.html)\n\nPerforms the refresh operation in one or more indices."] +#[doc = "Builder for the [Indices Refresh API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-refresh.html)\n\nPerforms the refresh operation in one or more indices."] #[derive(Clone, Debug)] pub struct IndicesRefresh<'a, 'b, B> { transport: &'a Transport, @@ -8423,7 +9206,7 @@ impl<'b> IndicesReloadSearchAnalyzersParts<'b> { } } } -#[doc = "Builder for the [Indices Reload Search Analyzers API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-reload-analyzers.html)\n\nReloads an index's search analyzers and their resources."] +#[doc = "Builder for the [Indices Reload Search Analyzers API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-reload-analyzers.html)\n\nReloads an index's search analyzers and their resources."] #[derive(Clone, Debug)] pub struct IndicesReloadSearchAnalyzers<'a, 'b, B> { transport: &'a Transport, @@ -8589,6 +9372,177 @@ where } } #[derive(Debug, Clone, PartialEq, Eq)] +#[doc = "API parts for the Indices Remove Block API"] +pub enum IndicesRemoveBlockParts<'b> { + #[doc = "Index and Block"] + IndexBlock(&'b [&'b str], &'b str), +} +impl<'b> IndicesRemoveBlockParts<'b> { + #[doc = "Builds a relative URL path to the Indices Remove Block API"] + pub fn url(self) -> Cow<'static, str> { + match self { + IndicesRemoveBlockParts::IndexBlock(index, block) => { + let index_str = index.join(","); + let encoded_index: Cow = + percent_encode(index_str.as_bytes(), PARTS_ENCODED).into(); + let encoded_block: Cow = + percent_encode(block.as_bytes(), PARTS_ENCODED).into(); + let mut p = + String::with_capacity(9usize + encoded_index.len() + encoded_block.len()); + p.push('/'); + p.push_str(encoded_index.as_ref()); + p.push_str("/_block/"); + p.push_str(encoded_block.as_ref()); + p.into() + } + } + } +} +#[doc = "Builder for the [Indices Remove Block API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/index-modules-blocks.html)\n\nRemoves a block from an index."] +#[derive(Clone, Debug)] +pub struct IndicesRemoveBlock<'a, 'b> { + transport: &'a Transport, + parts: IndicesRemoveBlockParts<'b>, + allow_no_indices: Option, + error_trace: Option, + expand_wildcards: Option<&'b [ExpandWildcards]>, + filter_path: Option<&'b [&'b str]>, + headers: HeaderMap, + human: Option, + ignore_unavailable: Option, + master_timeout: Option<&'b str>, + pretty: Option, + request_timeout: Option, + source: Option<&'b str>, + timeout: Option<&'b str>, +} +impl<'a, 'b> IndicesRemoveBlock<'a, 'b> { + #[doc = "Creates a new instance of [IndicesRemoveBlock] with the specified API parts"] + pub fn new(transport: &'a Transport, parts: IndicesRemoveBlockParts<'b>) -> Self { + let headers = HeaderMap::new(); + IndicesRemoveBlock { + transport, + parts, + headers, + allow_no_indices: None, + error_trace: None, + expand_wildcards: None, + filter_path: None, + human: None, + ignore_unavailable: None, + master_timeout: None, + pretty: None, + request_timeout: None, + source: None, + timeout: None, + } + } + #[doc = "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)"] + pub fn allow_no_indices(mut self, allow_no_indices: bool) -> Self { + self.allow_no_indices = Some(allow_no_indices); + self + } + #[doc = "Include the stack trace of returned errors."] + pub fn error_trace(mut self, error_trace: bool) -> Self { + self.error_trace = Some(error_trace); + self + } + #[doc = "Whether to expand wildcard expression to concrete indices that are open, closed or both."] + pub fn expand_wildcards(mut self, expand_wildcards: &'b [ExpandWildcards]) -> Self { + self.expand_wildcards = Some(expand_wildcards); + self + } + #[doc = "A comma-separated list of filters used to reduce the response."] + pub fn filter_path(mut self, filter_path: &'b [&'b str]) -> Self { + self.filter_path = Some(filter_path); + self + } + #[doc = "Adds a HTTP header"] + pub fn header(mut self, key: HeaderName, value: HeaderValue) -> Self { + self.headers.insert(key, value); + self + } + #[doc = "Return human readable values for statistics."] + pub fn human(mut self, human: bool) -> Self { + self.human = Some(human); + self + } + #[doc = "Whether specified concrete indices should be ignored when unavailable (missing or closed)"] + pub fn ignore_unavailable(mut self, ignore_unavailable: bool) -> Self { + self.ignore_unavailable = Some(ignore_unavailable); + self + } + #[doc = "Specify timeout for connection to master"] + pub fn master_timeout(mut self, master_timeout: &'b str) -> Self { + self.master_timeout = Some(master_timeout); + self + } + #[doc = "Pretty format the returned JSON response."] + pub fn pretty(mut self, pretty: bool) -> Self { + self.pretty = Some(pretty); + self + } + #[doc = "Sets a request timeout for this API call.\n\nThe timeout is applied from when the request starts connecting until the response body has finished."] + pub fn request_timeout(mut self, timeout: Duration) -> Self { + self.request_timeout = Some(timeout); + self + } + #[doc = "The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests."] + pub fn source(mut self, source: &'b str) -> Self { + self.source = Some(source); + self + } + #[doc = "Explicit operation timeout"] + pub fn timeout(mut self, timeout: &'b str) -> Self { + self.timeout = Some(timeout); + self + } + #[doc = "Creates an asynchronous call to the Indices Remove Block API that can be awaited"] + pub async fn send(self) -> Result { + let path = self.parts.url(); + let method = http::Method::Delete; + let headers = self.headers; + let timeout = self.request_timeout; + let query_string = { + #[serde_with::skip_serializing_none] + #[derive(Serialize)] + struct QueryParams<'b> { + allow_no_indices: Option, + error_trace: Option, + #[serde(serialize_with = "crate::client::serialize_coll_qs")] + expand_wildcards: Option<&'b [ExpandWildcards]>, + #[serde(serialize_with = "crate::client::serialize_coll_qs")] + filter_path: Option<&'b [&'b str]>, + human: Option, + ignore_unavailable: Option, + master_timeout: Option<&'b str>, + pretty: Option, + source: Option<&'b str>, + timeout: Option<&'b str>, + } + let query_params = QueryParams { + allow_no_indices: self.allow_no_indices, + error_trace: self.error_trace, + expand_wildcards: self.expand_wildcards, + filter_path: self.filter_path, + human: self.human, + ignore_unavailable: self.ignore_unavailable, + master_timeout: self.master_timeout, + pretty: self.pretty, + source: self.source, + timeout: self.timeout, + }; + Some(query_params) + }; + let body = Option::<()>::None; + let response = self + .transport + .send(method, &path, headers, query_string.as_ref(), body, timeout) + .await?; + Ok(response) + } +} +#[derive(Debug, Clone, PartialEq, Eq)] #[doc = "API parts for the Indices Resolve Cluster API"] pub enum IndicesResolveClusterParts<'b> { #[doc = "No parts"] @@ -8613,7 +9567,7 @@ impl<'b> IndicesResolveClusterParts<'b> { } } } -#[doc = "Builder for the [Indices Resolve Cluster API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-resolve-cluster-api.html)\n\nResolves the specified index expressions to return information about each cluster. If no index expression is provided, this endpoint will return information about all the remote clusters that are configured on the local cluster."] +#[doc = "Builder for the [Indices Resolve Cluster API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-resolve-cluster-api.html)\n\nResolves the specified index expressions to return information about each cluster. If no index expression is provided, this endpoint will return information about all the remote clusters that are configured on the local cluster."] #[derive(Clone, Debug)] pub struct IndicesResolveCluster<'a, 'b> { transport: &'a Transport, @@ -8779,7 +9733,7 @@ impl<'b> IndicesResolveIndexParts<'b> { } } } -#[doc = "Builder for the [Indices Resolve Index API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-resolve-index-api.html)\n\nReturns information about any matching indices, aliases, and data streams"] +#[doc = "Builder for the [Indices Resolve Index API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-resolve-index-api.html)\n\nReturns information about any matching indices, aliases, and data streams"] #[derive(Clone, Debug)] pub struct IndicesResolveIndex<'a, 'b> { transport: &'a Transport, @@ -8942,7 +9896,7 @@ impl<'b> IndicesRolloverParts<'b> { } } } -#[doc = "Builder for the [Indices Rollover API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-rollover-index.html)\n\nUpdates an alias to point to a new index when the existing index\nis considered to be too large or too old."] +#[doc = "Builder for the [Indices Rollover API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-rollover-index.html)\n\nUpdates an alias to point to a new index when the existing index\nis considered to be too large or too old."] #[derive(Clone, Debug)] pub struct IndicesRollover<'a, 'b, B> { transport: &'a Transport, @@ -9139,7 +10093,7 @@ impl<'b> IndicesSegmentsParts<'b> { } } } -#[doc = "Builder for the [Indices Segments API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-segments.html)\n\nProvides low-level information about segments in a Lucene index."] +#[doc = "Builder for the [Indices Segments API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-segments.html)\n\nProvides low-level information about segments in a Lucene index."] #[derive(Clone, Debug)] pub struct IndicesSegments<'a, 'b> { transport: &'a Transport, @@ -9291,7 +10245,7 @@ impl<'b> IndicesShardStoresParts<'b> { } } } -#[doc = "Builder for the [Indices Shard Stores API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-shards-stores.html)\n\nProvides store information for shard copies of indices."] +#[doc = "Builder for the [Indices Shard Stores API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-shards-stores.html)\n\nProvides store information for shard copies of indices."] #[derive(Clone, Debug)] pub struct IndicesShardStores<'a, 'b> { transport: &'a Transport, @@ -9453,7 +10407,7 @@ impl<'b> IndicesShrinkParts<'b> { } } } -#[doc = "Builder for the [Indices Shrink API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-shrink-index.html)\n\nAllow to shrink an existing index into a new index with fewer primary shards."] +#[doc = "Builder for the [Indices Shrink API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-shrink-index.html)\n\nAllow to shrink an existing index into a new index with fewer primary shards."] #[derive(Clone, Debug)] pub struct IndicesShrink<'a, 'b, B> { transport: &'a Transport, @@ -9624,7 +10578,7 @@ impl<'b> IndicesSimulateIndexTemplateParts<'b> { } } } -#[doc = "Builder for the [Indices Simulate Index Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-simulate-index.html)\n\nSimulate matching the given index name against the index templates in the system"] +#[doc = "Builder for the [Indices Simulate Index Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-simulate-index.html)\n\nSimulate matching the given index name against the index templates in the system"] #[derive(Clone, Debug)] pub struct IndicesSimulateIndexTemplate<'a, 'b, B> { transport: &'a Transport, @@ -9808,7 +10762,7 @@ impl<'b> IndicesSimulateTemplateParts<'b> { } } } -#[doc = "Builder for the [Indices Simulate Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-simulate-template.html)\n\nSimulate resolving the given template name or body"] +#[doc = "Builder for the [Indices Simulate Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-simulate-template.html)\n\nSimulate resolving the given template name or body"] #[derive(Clone, Debug)] pub struct IndicesSimulateTemplate<'a, 'b, B> { transport: &'a Transport, @@ -9995,7 +10949,7 @@ impl<'b> IndicesSplitParts<'b> { } } } -#[doc = "Builder for the [Indices Split API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-split-index.html)\n\nAllows you to split an existing index into a new index with more primary shards."] +#[doc = "Builder for the [Indices Split API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-split-index.html)\n\nAllows you to split an existing index into a new index with more primary shards."] #[derive(Clone, Debug)] pub struct IndicesSplit<'a, 'b, B> { transport: &'a Transport, @@ -10200,7 +11154,7 @@ impl<'b> IndicesStatsParts<'b> { } } } -#[doc = "Builder for the [Indices Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-stats.html)\n\nProvides statistics on operations happening in an index."] +#[doc = "Builder for the [Indices Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-stats.html)\n\nProvides statistics on operations happening in an index."] #[derive(Clone, Debug)] pub struct IndicesStats<'a, 'b> { transport: &'a Transport, @@ -10398,7 +11352,7 @@ impl IndicesUpdateAliasesParts { } } } -#[doc = "Builder for the [Indices Update Aliases API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-aliases.html)\n\nUpdates index aliases."] +#[doc = "Builder for the [Indices Update Aliases API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-aliases.html)\n\nUpdates index aliases."] #[derive(Clone, Debug)] pub struct IndicesUpdateAliases<'a, 'b, B> { transport: &'a Transport, @@ -10565,7 +11519,7 @@ impl<'b> IndicesValidateQueryParts<'b> { } } } -#[doc = "Builder for the [Indices Validate Query API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/search-validate.html)\n\nAllows a user to validate a potentially expensive query without executing it."] +#[doc = "Builder for the [Indices Validate Query API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/search-validate.html)\n\nAllows a user to validate a potentially expensive query without executing it."] #[derive(Clone, Debug)] pub struct IndicesValidateQuery<'a, 'b, B> { transport: &'a Transport, @@ -10822,15 +11776,15 @@ impl<'a> Indices<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Indices Add Block API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/index-modules-blocks.html)\n\nAdds a block to an index."] + #[doc = "[Indices Add Block API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/index-modules-blocks.html)\n\nAdds a block to an index."] pub fn add_block<'b>(&'a self, parts: IndicesAddBlockParts<'b>) -> IndicesAddBlock<'a, 'b, ()> { IndicesAddBlock::new(self.transport(), parts) } - #[doc = "[Indices Analyze API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-analyze.html)\n\nPerforms the analysis process on a text and return the tokens breakdown of the text."] + #[doc = "[Indices Analyze API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-analyze.html)\n\nPerforms the analysis process on a text and return the tokens breakdown of the text."] pub fn analyze<'b>(&'a self, parts: IndicesAnalyzeParts<'b>) -> IndicesAnalyze<'a, 'b, ()> { IndicesAnalyze::new(self.transport(), parts) } - #[doc = "[Indices Cancel Migrate Reindex API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/data-stream-reindex-cancel-api.html)\n\nThis API returns the status of a migration reindex attempt for a data stream or index"] + #[doc = "[Indices Cancel Migrate Reindex API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-stream-reindex-cancel-api.html)\n\nThis API returns the status of a migration reindex attempt for a data stream or index"] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn cancel_migrate_reindex<'b>( @@ -10839,33 +11793,33 @@ impl<'a> Indices<'a> { ) -> IndicesCancelMigrateReindex<'a, 'b, ()> { IndicesCancelMigrateReindex::new(self.transport(), parts) } - #[doc = "[Indices Clear Cache API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-clearcache.html)\n\nClears all or specific caches for one or more indices."] + #[doc = "[Indices Clear Cache API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-clearcache.html)\n\nClears all or specific caches for one or more indices."] pub fn clear_cache<'b>( &'a self, parts: IndicesClearCacheParts<'b>, ) -> IndicesClearCache<'a, 'b, ()> { IndicesClearCache::new(self.transport(), parts) } - #[doc = "[Indices Clone API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-clone-index.html)\n\nClones an index"] + #[doc = "[Indices Clone API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-clone-index.html)\n\nClones an index"] pub fn clone<'b>(&'a self, parts: IndicesCloneParts<'b>) -> IndicesClone<'a, 'b, ()> { IndicesClone::new(self.transport(), parts) } - #[doc = "[Indices Close API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-open-close.html)\n\nCloses an index."] + #[doc = "[Indices Close API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-open-close.html)\n\nCloses an index."] pub fn close<'b>(&'a self, parts: IndicesCloseParts<'b>) -> IndicesClose<'a, 'b, ()> { IndicesClose::new(self.transport(), parts) } - #[doc = "[Indices Create API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-create-index.html)\n\nCreates an index with optional settings and mappings.\n\n# Examples\n\nCreate an index with a mapping\n\n```rust,no_run\n# use elasticsearch::{Elasticsearch, Error, indices::IndicesCreateParts};\n# use serde_json::{json, Value};\n# async fn doc() -> Result<(), Box> {\nlet client = Elasticsearch::default();\nlet response = client\n .indices()\n .create(IndicesCreateParts::Index(\"test_index\"))\n .body(json!({\n \"mappings\" : {\n \"properties\" : {\n \"field1\" : { \"type\" : \"text\" }\n }\n }\n }))\n .send()\n .await?;\n \n# Ok(())\n# }\n```"] + #[doc = "[Indices Create API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-create-index.html)\n\nCreates an index with optional settings and mappings.\n\n# Examples\n\nCreate an index with a mapping\n\n```rust,no_run\n# use elasticsearch::{Elasticsearch, Error, indices::IndicesCreateParts};\n# use serde_json::{json, Value};\n# async fn doc() -> Result<(), Box> {\nlet client = Elasticsearch::default();\nlet response = client\n .indices()\n .create(IndicesCreateParts::Index(\"test_index\"))\n .body(json!({\n \"mappings\" : {\n \"properties\" : {\n \"field1\" : { \"type\" : \"text\" }\n }\n }\n }))\n .send()\n .await?;\n \n# Ok(())\n# }\n```"] pub fn create<'b>(&'a self, parts: IndicesCreateParts<'b>) -> IndicesCreate<'a, 'b, ()> { IndicesCreate::new(self.transport(), parts) } - #[doc = "[Indices Create Data Stream API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/data-streams.html)\n\nCreates a data stream"] + #[doc = "[Indices Create Data Stream API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-streams.html)\n\nCreates a data stream"] pub fn create_data_stream<'b>( &'a self, parts: IndicesCreateDataStreamParts<'b>, ) -> IndicesCreateDataStream<'a, 'b, ()> { IndicesCreateDataStream::new(self.transport(), parts) } - #[doc = "[Indices Create From API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-create-index-from-source.html)\n\nThis API creates a destination from a source index. It copies the mappings and settings from the source index while allowing request settings and mappings to override the source values."] + #[doc = "[Indices Create From API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-create-index-from-source.html)\n\nThis API creates a destination from a source index. It copies the mappings and settings from the source index while allowing request settings and mappings to override the source values."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn create_from<'b>( @@ -10874,53 +11828,60 @@ impl<'a> Indices<'a> { ) -> IndicesCreateFrom<'a, 'b, ()> { IndicesCreateFrom::new(self.transport(), parts) } - #[doc = "[Indices Data Streams Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/data-streams.html)\n\nProvides statistics on operations happening in a data stream."] + #[doc = "[Indices Data Streams Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-streams.html)\n\nProvides statistics on operations happening in a data stream."] pub fn data_streams_stats<'b>( &'a self, parts: IndicesDataStreamsStatsParts<'b>, ) -> IndicesDataStreamsStats<'a, 'b> { IndicesDataStreamsStats::new(self.transport(), parts) } - #[doc = "[Indices Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-delete-index.html)\n\nDeletes an index."] + #[doc = "[Indices Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-delete-index.html)\n\nDeletes an index."] pub fn delete<'b>(&'a self, parts: IndicesDeleteParts<'b>) -> IndicesDelete<'a, 'b> { IndicesDelete::new(self.transport(), parts) } - #[doc = "[Indices Delete Alias API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-aliases.html)\n\nDeletes an alias."] + #[doc = "[Indices Delete Alias API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-aliases.html)\n\nDeletes an alias."] pub fn delete_alias<'b>( &'a self, parts: IndicesDeleteAliasParts<'b>, ) -> IndicesDeleteAlias<'a, 'b> { IndicesDeleteAlias::new(self.transport(), parts) } - #[doc = "[Indices Delete Data Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/data-streams-delete-lifecycle.html)\n\nDeletes the data stream lifecycle of the selected data streams."] + #[doc = "[Indices Delete Data Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-streams-delete-lifecycle.html)\n\nDeletes the data stream lifecycle of the selected data streams."] pub fn delete_data_lifecycle<'b>( &'a self, parts: IndicesDeleteDataLifecycleParts<'b>, ) -> IndicesDeleteDataLifecycle<'a, 'b> { IndicesDeleteDataLifecycle::new(self.transport(), parts) } - #[doc = "[Indices Delete Data Stream API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/data-streams.html)\n\nDeletes a data stream."] + #[doc = "[Indices Delete Data Stream API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-streams.html)\n\nDeletes a data stream."] pub fn delete_data_stream<'b>( &'a self, parts: IndicesDeleteDataStreamParts<'b>, ) -> IndicesDeleteDataStream<'a, 'b> { IndicesDeleteDataStream::new(self.transport(), parts) } - #[doc = "[Indices Delete Index Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-delete-template.html)\n\nDeletes an index template."] + #[doc = "[Indices Delete Data Stream Options API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/index.html)\n\nDeletes the data stream options of the selected data streams."] + pub fn delete_data_stream_options<'b>( + &'a self, + parts: IndicesDeleteDataStreamOptionsParts<'b>, + ) -> IndicesDeleteDataStreamOptions<'a, 'b> { + IndicesDeleteDataStreamOptions::new(self.transport(), parts) + } + #[doc = "[Indices Delete Index Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-delete-template.html)\n\nDeletes an index template."] pub fn delete_index_template<'b>( &'a self, parts: IndicesDeleteIndexTemplateParts<'b>, ) -> IndicesDeleteIndexTemplate<'a, 'b> { IndicesDeleteIndexTemplate::new(self.transport(), parts) } - #[doc = "[Indices Delete Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-delete-template-v1.html)\n\nDeletes an index template."] + #[doc = "[Indices Delete Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-delete-template-v1.html)\n\nDeletes an index template."] pub fn delete_template<'b>( &'a self, parts: IndicesDeleteTemplateParts<'b>, ) -> IndicesDeleteTemplate<'a, 'b> { IndicesDeleteTemplate::new(self.transport(), parts) } - #[doc = "[Indices Disk Usage API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-disk-usage.html)\n\nAnalyzes the disk usage of each field of an index or data stream"] + #[doc = "[Indices Disk Usage API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-disk-usage.html)\n\nAnalyzes the disk usage of each field of an index or data stream"] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn disk_usage<'b>( @@ -10929,7 +11890,7 @@ impl<'a> Indices<'a> { ) -> IndicesDiskUsage<'a, 'b, ()> { IndicesDiskUsage::new(self.transport(), parts) } - #[doc = "[Indices Downsample API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/xpack-rollup.html)\n\nDownsample an index"] + #[doc = "[Indices Downsample API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/xpack-rollup.html)\n\nDownsample an index"] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn downsample<'b>( @@ -10938,39 +11899,39 @@ impl<'a> Indices<'a> { ) -> IndicesDownsample<'a, 'b, ()> { IndicesDownsample::new(self.transport(), parts) } - #[doc = "[Indices Exists API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-exists.html)\n\nReturns information about whether a particular index exists."] + #[doc = "[Indices Exists API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-exists.html)\n\nReturns information about whether a particular index exists."] pub fn exists<'b>(&'a self, parts: IndicesExistsParts<'b>) -> IndicesExists<'a, 'b> { IndicesExists::new(self.transport(), parts) } - #[doc = "[Indices Exists Alias API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-aliases.html)\n\nReturns information about whether a particular alias exists."] + #[doc = "[Indices Exists Alias API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-aliases.html)\n\nReturns information about whether a particular alias exists."] pub fn exists_alias<'b>( &'a self, parts: IndicesExistsAliasParts<'b>, ) -> IndicesExistsAlias<'a, 'b> { IndicesExistsAlias::new(self.transport(), parts) } - #[doc = "[Indices Exists Index Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/index-templates.html)\n\nReturns information about whether a particular index template exists."] + #[doc = "[Indices Exists Index Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/index-templates.html)\n\nReturns information about whether a particular index template exists."] pub fn exists_index_template<'b>( &'a self, parts: IndicesExistsIndexTemplateParts<'b>, ) -> IndicesExistsIndexTemplate<'a, 'b> { IndicesExistsIndexTemplate::new(self.transport(), parts) } - #[doc = "[Indices Exists Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-template-exists-v1.html)\n\nReturns information about whether a particular index template exists."] + #[doc = "[Indices Exists Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-template-exists-v1.html)\n\nReturns information about whether a particular index template exists."] pub fn exists_template<'b>( &'a self, parts: IndicesExistsTemplateParts<'b>, ) -> IndicesExistsTemplate<'a, 'b> { IndicesExistsTemplate::new(self.transport(), parts) } - #[doc = "[Indices Explain Data Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/data-streams-explain-lifecycle.html)\n\nRetrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc."] + #[doc = "[Indices Explain Data Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-streams-explain-lifecycle.html)\n\nRetrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc."] pub fn explain_data_lifecycle<'b>( &'a self, parts: IndicesExplainDataLifecycleParts<'b>, ) -> IndicesExplainDataLifecycle<'a, 'b> { IndicesExplainDataLifecycle::new(self.transport(), parts) } - #[doc = "[Indices Field Usage Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/field-usage-stats.html)\n\nReturns the field usage stats for each field of an index"] + #[doc = "[Indices Field Usage Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/field-usage-stats.html)\n\nReturns the field usage stats for each field of an index"] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn field_usage_stats<'b>( @@ -10979,65 +11940,79 @@ impl<'a> Indices<'a> { ) -> IndicesFieldUsageStats<'a, 'b> { IndicesFieldUsageStats::new(self.transport(), parts) } - #[doc = "[Indices Flush API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-flush.html)\n\nPerforms the flush operation on one or more indices."] + #[doc = "[Indices Flush API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-flush.html)\n\nPerforms the flush operation on one or more indices."] pub fn flush<'b>(&'a self, parts: IndicesFlushParts<'b>) -> IndicesFlush<'a, 'b, ()> { IndicesFlush::new(self.transport(), parts) } - #[doc = "[Indices Forcemerge API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-forcemerge.html)\n\nPerforms the force merge operation on one or more indices."] + #[doc = "[Indices Forcemerge API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-forcemerge.html)\n\nPerforms the force merge operation on one or more indices."] pub fn forcemerge<'b>( &'a self, parts: IndicesForcemergeParts<'b>, ) -> IndicesForcemerge<'a, 'b, ()> { IndicesForcemerge::new(self.transport(), parts) } - #[doc = "[Indices Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-get-index.html)\n\nReturns information about one or more indices."] + #[doc = "[Indices Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-get-index.html)\n\nReturns information about one or more indices."] pub fn get<'b>(&'a self, parts: IndicesGetParts<'b>) -> IndicesGet<'a, 'b> { IndicesGet::new(self.transport(), parts) } - #[doc = "[Indices Get Alias API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-aliases.html)\n\nReturns an alias."] + #[doc = "[Indices Get Alias API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-aliases.html)\n\nReturns an alias."] pub fn get_alias<'b>(&'a self, parts: IndicesGetAliasParts<'b>) -> IndicesGetAlias<'a, 'b> { IndicesGetAlias::new(self.transport(), parts) } - #[doc = "[Indices Get Data Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/data-streams-get-lifecycle.html)\n\nReturns the data stream lifecycle of the selected data streams."] + #[doc = "[Indices Get Data Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-streams-get-lifecycle.html)\n\nReturns the data stream lifecycle of the selected data streams."] pub fn get_data_lifecycle<'b>( &'a self, parts: IndicesGetDataLifecycleParts<'b>, ) -> IndicesGetDataLifecycle<'a, 'b> { IndicesGetDataLifecycle::new(self.transport(), parts) } - #[doc = "[Indices Get Data Lifecycle Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/data-streams-get-lifecycle-stats.html)\n\nGet data stream lifecycle statistics."] + #[doc = "[Indices Get Data Lifecycle Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-streams-get-lifecycle-stats.html)\n\nGet data stream lifecycle statistics."] pub fn get_data_lifecycle_stats<'b>(&'a self) -> IndicesGetDataLifecycleStats<'a, 'b> { IndicesGetDataLifecycleStats::new(self.transport()) } - #[doc = "[Indices Get Data Stream API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/data-streams.html)\n\nReturns data streams."] + #[doc = "[Indices Get Data Stream API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-streams.html)\n\nReturns data streams."] pub fn get_data_stream<'b>( &'a self, parts: IndicesGetDataStreamParts<'b>, ) -> IndicesGetDataStream<'a, 'b> { IndicesGetDataStream::new(self.transport(), parts) } - #[doc = "[Indices Get Field Mapping API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-get-field-mapping.html)\n\nReturns mapping for one or more fields."] + #[doc = "[Indices Get Data Stream Options API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/index.html)\n\nReturns the data stream options of the selected data streams."] + pub fn get_data_stream_options<'b>( + &'a self, + parts: IndicesGetDataStreamOptionsParts<'b>, + ) -> IndicesGetDataStreamOptions<'a, 'b> { + IndicesGetDataStreamOptions::new(self.transport(), parts) + } + #[doc = "[Indices Get Data Stream Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-streams.html)\n\nGets a data stream's settings"] + pub fn get_data_stream_settings<'b>( + &'a self, + parts: IndicesGetDataStreamSettingsParts<'b>, + ) -> IndicesGetDataStreamSettings<'a, 'b> { + IndicesGetDataStreamSettings::new(self.transport(), parts) + } + #[doc = "[Indices Get Field Mapping API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-get-field-mapping.html)\n\nReturns mapping for one or more fields."] pub fn get_field_mapping<'b>( &'a self, parts: IndicesGetFieldMappingParts<'b>, ) -> IndicesGetFieldMapping<'a, 'b> { IndicesGetFieldMapping::new(self.transport(), parts) } - #[doc = "[Indices Get Index Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-get-template.html)\n\nReturns an index template."] + #[doc = "[Indices Get Index Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-get-template.html)\n\nReturns an index template."] pub fn get_index_template<'b>( &'a self, parts: IndicesGetIndexTemplateParts<'b>, ) -> IndicesGetIndexTemplate<'a, 'b> { IndicesGetIndexTemplate::new(self.transport(), parts) } - #[doc = "[Indices Get Mapping API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-get-mapping.html)\n\nReturns mappings for one or more indices."] + #[doc = "[Indices Get Mapping API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-get-mapping.html)\n\nReturns mappings for one or more indices."] pub fn get_mapping<'b>( &'a self, parts: IndicesGetMappingParts<'b>, ) -> IndicesGetMapping<'a, 'b> { IndicesGetMapping::new(self.transport(), parts) } - #[doc = "[Indices Get Migrate Reindex Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/data-stream-reindex-status-api.html)\n\nThis API returns the status of a migration reindex attempt for a data stream or index"] + #[doc = "[Indices Get Migrate Reindex Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-stream-reindex-status-api.html)\n\nThis API returns the status of a migration reindex attempt for a data stream or index"] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn get_migrate_reindex_status<'b>( @@ -11046,162 +12021,183 @@ impl<'a> Indices<'a> { ) -> IndicesGetMigrateReindexStatus<'a, 'b> { IndicesGetMigrateReindexStatus::new(self.transport(), parts) } - #[doc = "[Indices Get Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-get-settings.html)\n\nReturns settings for one or more indices."] + #[doc = "[Indices Get Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-get-settings.html)\n\nReturns settings for one or more indices."] pub fn get_settings<'b>( &'a self, parts: IndicesGetSettingsParts<'b>, ) -> IndicesGetSettings<'a, 'b> { IndicesGetSettings::new(self.transport(), parts) } - #[doc = "[Indices Get Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-get-template-v1.html)\n\nReturns an index template."] + #[doc = "[Indices Get Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-get-template-v1.html)\n\nReturns an index template."] pub fn get_template<'b>( &'a self, parts: IndicesGetTemplateParts<'b>, ) -> IndicesGetTemplate<'a, 'b> { IndicesGetTemplate::new(self.transport(), parts) } - #[doc = "[Indices Migrate Reindex API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/data-stream-reindex-api.html)\n\nThis API reindexes all legacy backing indices for a data stream. It does this in a persistent task. The persistent task id is returned immediately, and the reindexing work is completed in that task"] + #[doc = "[Indices Migrate Reindex API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-stream-reindex-api.html)\n\nThis API reindexes all legacy backing indices for a data stream. It does this in a persistent task. The persistent task id is returned immediately, and the reindexing work is completed in that task"] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn migrate_reindex<'b>(&'a self) -> IndicesMigrateReindex<'a, 'b, ()> { IndicesMigrateReindex::new(self.transport()) } - #[doc = "[Indices Migrate To Data Stream API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/data-streams.html)\n\nMigrates an alias to a data stream"] + #[doc = "[Indices Migrate To Data Stream API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-streams.html)\n\nMigrates an alias to a data stream"] pub fn migrate_to_data_stream<'b>( &'a self, parts: IndicesMigrateToDataStreamParts<'b>, ) -> IndicesMigrateToDataStream<'a, 'b, ()> { IndicesMigrateToDataStream::new(self.transport(), parts) } - #[doc = "[Indices Modify Data Stream API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/data-streams.html)\n\nModifies a data stream"] + #[doc = "[Indices Modify Data Stream API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-streams.html)\n\nModifies a data stream"] pub fn modify_data_stream<'b>(&'a self) -> IndicesModifyDataStream<'a, 'b, ()> { IndicesModifyDataStream::new(self.transport()) } - #[doc = "[Indices Open API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-open-close.html)\n\nOpens an index."] + #[doc = "[Indices Open API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-open-close.html)\n\nOpens an index."] pub fn open<'b>(&'a self, parts: IndicesOpenParts<'b>) -> IndicesOpen<'a, 'b, ()> { IndicesOpen::new(self.transport(), parts) } - #[doc = "[Indices Promote Data Stream API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/data-streams.html)\n\nPromotes a data stream from a replicated data stream managed by CCR to a regular data stream"] + #[doc = "[Indices Promote Data Stream API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-streams.html)\n\nPromotes a data stream from a replicated data stream managed by CCR to a regular data stream"] pub fn promote_data_stream<'b>( &'a self, parts: IndicesPromoteDataStreamParts<'b>, ) -> IndicesPromoteDataStream<'a, 'b, ()> { IndicesPromoteDataStream::new(self.transport(), parts) } - #[doc = "[Indices Put Alias API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-aliases.html)\n\nCreates or updates an alias."] + #[doc = "[Indices Put Alias API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-aliases.html)\n\nCreates or updates an alias."] pub fn put_alias<'b>(&'a self, parts: IndicesPutAliasParts<'b>) -> IndicesPutAlias<'a, 'b, ()> { IndicesPutAlias::new(self.transport(), parts) } - #[doc = "[Indices Put Data Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/data-streams-put-lifecycle.html)\n\nUpdates the data stream lifecycle of the selected data streams."] + #[doc = "[Indices Put Data Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-streams-put-lifecycle.html)\n\nUpdates the data stream lifecycle of the selected data streams."] pub fn put_data_lifecycle<'b>( &'a self, parts: IndicesPutDataLifecycleParts<'b>, ) -> IndicesPutDataLifecycle<'a, 'b, ()> { IndicesPutDataLifecycle::new(self.transport(), parts) } - #[doc = "[Indices Put Index Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-put-template.html)\n\nCreates or updates an index template."] + #[doc = "[Indices Put Data Stream Options API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/index.html)\n\nUpdates the data stream options of the selected data streams."] + pub fn put_data_stream_options<'b>( + &'a self, + parts: IndicesPutDataStreamOptionsParts<'b>, + ) -> IndicesPutDataStreamOptions<'a, 'b, ()> { + IndicesPutDataStreamOptions::new(self.transport(), parts) + } + #[doc = "[Indices Put Data Stream Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/data-streams.html)\n\nUpdates a data stream's settings"] + pub fn put_data_stream_settings<'b>( + &'a self, + parts: IndicesPutDataStreamSettingsParts<'b>, + ) -> IndicesPutDataStreamSettings<'a, 'b, ()> { + IndicesPutDataStreamSettings::new(self.transport(), parts) + } + #[doc = "[Indices Put Index Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-put-template.html)\n\nCreates or updates an index template."] pub fn put_index_template<'b>( &'a self, parts: IndicesPutIndexTemplateParts<'b>, ) -> IndicesPutIndexTemplate<'a, 'b, ()> { IndicesPutIndexTemplate::new(self.transport(), parts) } - #[doc = "[Indices Put Mapping API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-put-mapping.html)\n\nUpdates the index mappings.\n\n# Examples\n\nPut a mapping into an existing index, assuming the index does not have a mapping, \nor that any properties specified do not conflict with existing properties\n\n```rust,no_run\n# use elasticsearch::{Elasticsearch, Error, indices::IndicesPutMappingParts};\n# use serde_json::{json, Value};\n# async fn doc() -> Result<(), Box> {\nlet client = Elasticsearch::default();\nlet response = client\n .indices()\n .put_mapping(IndicesPutMappingParts::Index(&[\"test_index\"]))\n .body(json!({\n \"properties\" : {\n \"field1\" : { \"type\" : \"text\" }\n }\n }))\n .send()\n .await?;\n \n# Ok(())\n# }\n```"] + #[doc = "[Indices Put Mapping API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-put-mapping.html)\n\nUpdates the index mappings.\n\n# Examples\n\nPut a mapping into an existing index, assuming the index does not have a mapping, \nor that any properties specified do not conflict with existing properties\n\n```rust,no_run\n# use elasticsearch::{Elasticsearch, Error, indices::IndicesPutMappingParts};\n# use serde_json::{json, Value};\n# async fn doc() -> Result<(), Box> {\nlet client = Elasticsearch::default();\nlet response = client\n .indices()\n .put_mapping(IndicesPutMappingParts::Index(&[\"test_index\"]))\n .body(json!({\n \"properties\" : {\n \"field1\" : { \"type\" : \"text\" }\n }\n }))\n .send()\n .await?;\n \n# Ok(())\n# }\n```"] pub fn put_mapping<'b>( &'a self, parts: IndicesPutMappingParts<'b>, ) -> IndicesPutMapping<'a, 'b, ()> { IndicesPutMapping::new(self.transport(), parts) } - #[doc = "[Indices Put Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-update-settings.html)\n\nUpdates the index settings."] + #[doc = "[Indices Put Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-update-settings.html)\n\nUpdates the index settings."] pub fn put_settings<'b>( &'a self, parts: IndicesPutSettingsParts<'b>, ) -> IndicesPutSettings<'a, 'b, ()> { IndicesPutSettings::new(self.transport(), parts) } - #[doc = "[Indices Put Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-templates-v1.html)\n\nCreates or updates an index template."] + #[doc = "[Indices Put Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-templates-v1.html)\n\nCreates or updates an index template."] pub fn put_template<'b>( &'a self, parts: IndicesPutTemplateParts<'b>, ) -> IndicesPutTemplate<'a, 'b, ()> { IndicesPutTemplate::new(self.transport(), parts) } - #[doc = "[Indices Recovery API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-recovery.html)\n\nReturns information about ongoing index shard recoveries."] + #[doc = "[Indices Recovery API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-recovery.html)\n\nReturns information about ongoing index shard recoveries."] pub fn recovery<'b>(&'a self, parts: IndicesRecoveryParts<'b>) -> IndicesRecovery<'a, 'b> { IndicesRecovery::new(self.transport(), parts) } - #[doc = "[Indices Refresh API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-refresh.html)\n\nPerforms the refresh operation in one or more indices."] + #[doc = "[Indices Refresh API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-refresh.html)\n\nPerforms the refresh operation in one or more indices."] pub fn refresh<'b>(&'a self, parts: IndicesRefreshParts<'b>) -> IndicesRefresh<'a, 'b, ()> { IndicesRefresh::new(self.transport(), parts) } - #[doc = "[Indices Reload Search Analyzers API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-reload-analyzers.html)\n\nReloads an index's search analyzers and their resources."] + #[doc = "[Indices Reload Search Analyzers API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-reload-analyzers.html)\n\nReloads an index's search analyzers and their resources."] pub fn reload_search_analyzers<'b>( &'a self, parts: IndicesReloadSearchAnalyzersParts<'b>, ) -> IndicesReloadSearchAnalyzers<'a, 'b, ()> { IndicesReloadSearchAnalyzers::new(self.transport(), parts) } - #[doc = "[Indices Resolve Cluster API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-resolve-cluster-api.html)\n\nResolves the specified index expressions to return information about each cluster. If no index expression is provided, this endpoint will return information about all the remote clusters that are configured on the local cluster."] + #[doc = "[Indices Remove Block API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/index-modules-blocks.html)\n\nRemoves a block from an index."] + pub fn remove_block<'b>( + &'a self, + parts: IndicesRemoveBlockParts<'b>, + ) -> IndicesRemoveBlock<'a, 'b> { + IndicesRemoveBlock::new(self.transport(), parts) + } + #[doc = "[Indices Resolve Cluster API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-resolve-cluster-api.html)\n\nResolves the specified index expressions to return information about each cluster. If no index expression is provided, this endpoint will return information about all the remote clusters that are configured on the local cluster."] pub fn resolve_cluster<'b>( &'a self, parts: IndicesResolveClusterParts<'b>, ) -> IndicesResolveCluster<'a, 'b> { IndicesResolveCluster::new(self.transport(), parts) } - #[doc = "[Indices Resolve Index API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-resolve-index-api.html)\n\nReturns information about any matching indices, aliases, and data streams"] + #[doc = "[Indices Resolve Index API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-resolve-index-api.html)\n\nReturns information about any matching indices, aliases, and data streams"] pub fn resolve_index<'b>( &'a self, parts: IndicesResolveIndexParts<'b>, ) -> IndicesResolveIndex<'a, 'b> { IndicesResolveIndex::new(self.transport(), parts) } - #[doc = "[Indices Rollover API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-rollover-index.html)\n\nUpdates an alias to point to a new index when the existing index\nis considered to be too large or too old."] + #[doc = "[Indices Rollover API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-rollover-index.html)\n\nUpdates an alias to point to a new index when the existing index\nis considered to be too large or too old."] pub fn rollover<'b>(&'a self, parts: IndicesRolloverParts<'b>) -> IndicesRollover<'a, 'b, ()> { IndicesRollover::new(self.transport(), parts) } - #[doc = "[Indices Segments API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-segments.html)\n\nProvides low-level information about segments in a Lucene index."] + #[doc = "[Indices Segments API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-segments.html)\n\nProvides low-level information about segments in a Lucene index."] pub fn segments<'b>(&'a self, parts: IndicesSegmentsParts<'b>) -> IndicesSegments<'a, 'b> { IndicesSegments::new(self.transport(), parts) } - #[doc = "[Indices Shard Stores API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-shards-stores.html)\n\nProvides store information for shard copies of indices."] + #[doc = "[Indices Shard Stores API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-shards-stores.html)\n\nProvides store information for shard copies of indices."] pub fn shard_stores<'b>( &'a self, parts: IndicesShardStoresParts<'b>, ) -> IndicesShardStores<'a, 'b> { IndicesShardStores::new(self.transport(), parts) } - #[doc = "[Indices Shrink API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-shrink-index.html)\n\nAllow to shrink an existing index into a new index with fewer primary shards."] + #[doc = "[Indices Shrink API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-shrink-index.html)\n\nAllow to shrink an existing index into a new index with fewer primary shards."] pub fn shrink<'b>(&'a self, parts: IndicesShrinkParts<'b>) -> IndicesShrink<'a, 'b, ()> { IndicesShrink::new(self.transport(), parts) } - #[doc = "[Indices Simulate Index Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-simulate-index.html)\n\nSimulate matching the given index name against the index templates in the system"] + #[doc = "[Indices Simulate Index Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-simulate-index.html)\n\nSimulate matching the given index name against the index templates in the system"] pub fn simulate_index_template<'b>( &'a self, parts: IndicesSimulateIndexTemplateParts<'b>, ) -> IndicesSimulateIndexTemplate<'a, 'b, ()> { IndicesSimulateIndexTemplate::new(self.transport(), parts) } - #[doc = "[Indices Simulate Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-simulate-template.html)\n\nSimulate resolving the given template name or body"] + #[doc = "[Indices Simulate Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-simulate-template.html)\n\nSimulate resolving the given template name or body"] pub fn simulate_template<'b>( &'a self, parts: IndicesSimulateTemplateParts<'b>, ) -> IndicesSimulateTemplate<'a, 'b, ()> { IndicesSimulateTemplate::new(self.transport(), parts) } - #[doc = "[Indices Split API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-split-index.html)\n\nAllows you to split an existing index into a new index with more primary shards."] + #[doc = "[Indices Split API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-split-index.html)\n\nAllows you to split an existing index into a new index with more primary shards."] pub fn split<'b>(&'a self, parts: IndicesSplitParts<'b>) -> IndicesSplit<'a, 'b, ()> { IndicesSplit::new(self.transport(), parts) } - #[doc = "[Indices Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-stats.html)\n\nProvides statistics on operations happening in an index."] + #[doc = "[Indices Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-stats.html)\n\nProvides statistics on operations happening in an index."] pub fn stats<'b>(&'a self, parts: IndicesStatsParts<'b>) -> IndicesStats<'a, 'b> { IndicesStats::new(self.transport(), parts) } - #[doc = "[Indices Update Aliases API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-aliases.html)\n\nUpdates index aliases."] + #[doc = "[Indices Update Aliases API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/indices-aliases.html)\n\nUpdates index aliases."] pub fn update_aliases<'b>(&'a self) -> IndicesUpdateAliases<'a, 'b, ()> { IndicesUpdateAliases::new(self.transport()) } - #[doc = "[Indices Validate Query API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/search-validate.html)\n\nAllows a user to validate a potentially expensive query without executing it."] + #[doc = "[Indices Validate Query API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/search-validate.html)\n\nAllows a user to validate a potentially expensive query without executing it."] pub fn validate_query<'b>( &'a self, parts: IndicesValidateQueryParts<'b>, diff --git a/elasticsearch/src/inference.rs b/elasticsearch/src/inference.rs index e8ae44f5..fa5bdc4e 100644 --- a/elasticsearch/src/inference.rs +++ b/elasticsearch/src/inference.rs @@ -66,7 +66,7 @@ impl<'b> InferenceChatCompletionUnifiedParts<'b> { } } } -#[doc = "Builder for the [Inference Chat Completion Unified API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/chat-completion-inference.html)\n\nPerform chat completion inference"] +#[doc = "Builder for the [Inference Chat Completion Unified API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/chat-completion-inference.html)\n\nPerform chat completion inference"] #[derive(Clone, Debug)] pub struct InferenceChatCompletionUnified<'a, 'b, B> { transport: &'a Transport, @@ -208,7 +208,7 @@ impl<'b> InferenceCompletionParts<'b> { } } } -#[doc = "Builder for the [Inference Completion API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/post-inference-api.html)\n\nPerform completion inference"] +#[doc = "Builder for the [Inference Completion API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/post-inference-api.html)\n\nPerform completion inference"] #[derive(Clone, Debug)] pub struct InferenceCompletion<'a, 'b, B> { transport: &'a Transport, @@ -366,7 +366,7 @@ impl<'b> InferenceDeleteParts<'b> { } } } -#[doc = "Builder for the [Inference Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-inference-api.html)\n\nDelete an inference endpoint"] +#[doc = "Builder for the [Inference Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-inference-api.html)\n\nDelete an inference endpoint"] #[derive(Clone, Debug)] pub struct InferenceDelete<'a, 'b> { transport: &'a Transport, @@ -522,7 +522,7 @@ impl<'b> InferenceGetParts<'b> { } } } -#[doc = "Builder for the [Inference Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-inference-api.html)\n\nGet an inference endpoint"] +#[doc = "Builder for the [Inference Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-inference-api.html)\n\nGet an inference endpoint"] #[derive(Clone, Debug)] pub struct InferenceGet<'a, 'b> { transport: &'a Transport, @@ -657,7 +657,7 @@ impl<'b> InferenceInferenceParts<'b> { } } } -#[doc = "Builder for the [Inference Inference API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/post-inference-api.html)\n\nPerform inference"] +#[doc = "Builder for the [Inference Inference API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/post-inference-api.html)\n\nPerform inference"] #[derive(Clone, Debug)] pub struct InferenceInference<'a, 'b, B> { transport: &'a Transport, @@ -815,7 +815,7 @@ impl<'b> InferencePutParts<'b> { } } } -#[doc = "Builder for the [Inference Put API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-inference-api.html)\n\nConfigure an inference endpoint for use in the Inference API"] +#[doc = "Builder for the [Inference Put API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-inference-api.html)\n\nConfigure an inference endpoint for use in the Inference API"] #[derive(Clone, Debug)] pub struct InferencePut<'a, 'b, B> { transport: &'a Transport, @@ -966,7 +966,7 @@ impl<'b> InferencePutAlibabacloudParts<'b> { } } } -#[doc = "Builder for the [Inference Put Alibabacloud API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-service-alibabacloud-ai-search.html)\n\nConfigure an AlibabaCloud AI Search inference endpoint"] +#[doc = "Builder for the [Inference Put Alibabacloud API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-alibabacloud-ai-search.html)\n\nConfigure an AlibabaCloud AI Search inference endpoint"] #[derive(Clone, Debug)] pub struct InferencePutAlibabacloud<'a, 'b, B> { transport: &'a Transport, @@ -1117,7 +1117,7 @@ impl<'b> InferencePutAmazonbedrockParts<'b> { } } } -#[doc = "Builder for the [Inference Put Amazonbedrock API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-service-amazon-bedrock.html)\n\nConfigure an Amazon Bedrock inference endpoint"] +#[doc = "Builder for the [Inference Put Amazonbedrock API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-amazon-bedrock.html)\n\nConfigure an Amazon Bedrock inference endpoint"] #[derive(Clone, Debug)] pub struct InferencePutAmazonbedrock<'a, 'b, B> { transport: &'a Transport, @@ -1239,6 +1239,157 @@ where } } #[derive(Debug, Clone, PartialEq, Eq)] +#[doc = "API parts for the Inference Put Amazonsagemaker API"] +pub enum InferencePutAmazonsagemakerParts<'b> { + #[doc = "TaskType and AmazonsagemakerInferenceId"] + TaskTypeAmazonsagemakerInferenceId(&'b str, &'b str), +} +impl<'b> InferencePutAmazonsagemakerParts<'b> { + #[doc = "Builds a relative URL path to the Inference Put Amazonsagemaker API"] + pub fn url(self) -> Cow<'static, str> { + match self { + InferencePutAmazonsagemakerParts::TaskTypeAmazonsagemakerInferenceId( + task_type, + amazonsagemaker_inference_id, + ) => { + let encoded_task_type: Cow = + percent_encode(task_type.as_bytes(), PARTS_ENCODED).into(); + let encoded_amazonsagemaker_inference_id: Cow = + percent_encode(amazonsagemaker_inference_id.as_bytes(), PARTS_ENCODED).into(); + let mut p = String::with_capacity( + 13usize + encoded_task_type.len() + encoded_amazonsagemaker_inference_id.len(), + ); + p.push_str("/_inference/"); + p.push_str(encoded_task_type.as_ref()); + p.push('/'); + p.push_str(encoded_amazonsagemaker_inference_id.as_ref()); + p.into() + } + } + } +} +#[doc = "Builder for the [Inference Put Amazonsagemaker API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-amazon-sagemaker.html)\n\nConfigure a Amazon SageMaker inference endpoint"] +#[derive(Clone, Debug)] +pub struct InferencePutAmazonsagemaker<'a, 'b, B> { + transport: &'a Transport, + parts: InferencePutAmazonsagemakerParts<'b>, + body: Option, + error_trace: Option, + filter_path: Option<&'b [&'b str]>, + headers: HeaderMap, + human: Option, + pretty: Option, + request_timeout: Option, + source: Option<&'b str>, +} +impl<'a, 'b, B> InferencePutAmazonsagemaker<'a, 'b, B> +where + B: Body, +{ + #[doc = "Creates a new instance of [InferencePutAmazonsagemaker] with the specified API parts"] + pub fn new(transport: &'a Transport, parts: InferencePutAmazonsagemakerParts<'b>) -> Self { + let headers = HeaderMap::new(); + InferencePutAmazonsagemaker { + transport, + parts, + headers, + body: None, + error_trace: None, + filter_path: None, + human: None, + pretty: None, + request_timeout: None, + source: None, + } + } + #[doc = "The body for the API call"] + pub fn body(self, body: T) -> InferencePutAmazonsagemaker<'a, 'b, JsonBody> + where + T: Serialize, + { + InferencePutAmazonsagemaker { + transport: self.transport, + parts: self.parts, + body: Some(body.into()), + error_trace: self.error_trace, + filter_path: self.filter_path, + headers: self.headers, + human: self.human, + pretty: self.pretty, + request_timeout: self.request_timeout, + source: self.source, + } + } + #[doc = "Include the stack trace of returned errors."] + pub fn error_trace(mut self, error_trace: bool) -> Self { + self.error_trace = Some(error_trace); + self + } + #[doc = "A comma-separated list of filters used to reduce the response."] + pub fn filter_path(mut self, filter_path: &'b [&'b str]) -> Self { + self.filter_path = Some(filter_path); + self + } + #[doc = "Adds a HTTP header"] + pub fn header(mut self, key: HeaderName, value: HeaderValue) -> Self { + self.headers.insert(key, value); + self + } + #[doc = "Return human readable values for statistics."] + pub fn human(mut self, human: bool) -> Self { + self.human = Some(human); + self + } + #[doc = "Pretty format the returned JSON response."] + pub fn pretty(mut self, pretty: bool) -> Self { + self.pretty = Some(pretty); + self + } + #[doc = "Sets a request timeout for this API call.\n\nThe timeout is applied from when the request starts connecting until the response body has finished."] + pub fn request_timeout(mut self, timeout: Duration) -> Self { + self.request_timeout = Some(timeout); + self + } + #[doc = "The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests."] + pub fn source(mut self, source: &'b str) -> Self { + self.source = Some(source); + self + } + #[doc = "Creates an asynchronous call to the Inference Put Amazonsagemaker API that can be awaited"] + pub async fn send(self) -> Result { + let path = self.parts.url(); + let method = http::Method::Put; + let headers = self.headers; + let timeout = self.request_timeout; + let query_string = { + #[serde_with::skip_serializing_none] + #[derive(Serialize)] + struct QueryParams<'b> { + error_trace: Option, + #[serde(serialize_with = "crate::client::serialize_coll_qs")] + filter_path: Option<&'b [&'b str]>, + human: Option, + pretty: Option, + source: Option<&'b str>, + } + let query_params = QueryParams { + error_trace: self.error_trace, + filter_path: self.filter_path, + human: self.human, + pretty: self.pretty, + source: self.source, + }; + Some(query_params) + }; + let body = self.body; + let response = self + .transport + .send(method, &path, headers, query_string.as_ref(), body, timeout) + .await?; + Ok(response) + } +} +#[derive(Debug, Clone, PartialEq, Eq)] #[doc = "API parts for the Inference Put Anthropic API"] pub enum InferencePutAnthropicParts<'b> { #[doc = "TaskType and AnthropicInferenceId"] @@ -1268,7 +1419,7 @@ impl<'b> InferencePutAnthropicParts<'b> { } } } -#[doc = "Builder for the [Inference Put Anthropic API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-service-anthropic.html)\n\nConfigure an Anthropic inference endpoint"] +#[doc = "Builder for the [Inference Put Anthropic API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-anthropic.html)\n\nConfigure an Anthropic inference endpoint"] #[derive(Clone, Debug)] pub struct InferencePutAnthropic<'a, 'b, B> { transport: &'a Transport, @@ -1419,7 +1570,7 @@ impl<'b> InferencePutAzureaistudioParts<'b> { } } } -#[doc = "Builder for the [Inference Put Azureaistudio API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-service-azure-ai-studio.html)\n\nConfigure an Azure AI Studio inference endpoint"] +#[doc = "Builder for the [Inference Put Azureaistudio API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-azure-ai-studio.html)\n\nConfigure an Azure AI Studio inference endpoint"] #[derive(Clone, Debug)] pub struct InferencePutAzureaistudio<'a, 'b, B> { transport: &'a Transport, @@ -1570,7 +1721,7 @@ impl<'b> InferencePutAzureopenaiParts<'b> { } } } -#[doc = "Builder for the [Inference Put Azureopenai API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-service-azure-openai.html)\n\nConfigure an Azure OpenAI inference endpoint"] +#[doc = "Builder for the [Inference Put Azureopenai API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-azure-openai.html)\n\nConfigure an Azure OpenAI inference endpoint"] #[derive(Clone, Debug)] pub struct InferencePutAzureopenai<'a, 'b, B> { transport: &'a Transport, @@ -1718,7 +1869,7 @@ impl<'b> InferencePutCohereParts<'b> { } } } -#[doc = "Builder for the [Inference Put Cohere API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-service-cohere.html)\n\nConfigure a Cohere inference endpoint"] +#[doc = "Builder for the [Inference Put Cohere API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-cohere.html)\n\nConfigure a Cohere inference endpoint"] #[derive(Clone, Debug)] pub struct InferencePutCohere<'a, 'b, B> { transport: &'a Transport, @@ -1840,6 +1991,305 @@ where } } #[derive(Debug, Clone, PartialEq, Eq)] +#[doc = "API parts for the Inference Put Custom API"] +pub enum InferencePutCustomParts<'b> { + #[doc = "TaskType and CustomInferenceId"] + TaskTypeCustomInferenceId(&'b str, &'b str), +} +impl<'b> InferencePutCustomParts<'b> { + #[doc = "Builds a relative URL path to the Inference Put Custom API"] + pub fn url(self) -> Cow<'static, str> { + match self { + InferencePutCustomParts::TaskTypeCustomInferenceId(task_type, custom_inference_id) => { + let encoded_task_type: Cow = + percent_encode(task_type.as_bytes(), PARTS_ENCODED).into(); + let encoded_custom_inference_id: Cow = + percent_encode(custom_inference_id.as_bytes(), PARTS_ENCODED).into(); + let mut p = String::with_capacity( + 13usize + encoded_task_type.len() + encoded_custom_inference_id.len(), + ); + p.push_str("/_inference/"); + p.push_str(encoded_task_type.as_ref()); + p.push('/'); + p.push_str(encoded_custom_inference_id.as_ref()); + p.into() + } + } + } +} +#[doc = "Builder for the [Inference Put Custom API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-custom)\n\nConfigure a custom inference endpoint"] +#[derive(Clone, Debug)] +pub struct InferencePutCustom<'a, 'b, B> { + transport: &'a Transport, + parts: InferencePutCustomParts<'b>, + body: Option, + error_trace: Option, + filter_path: Option<&'b [&'b str]>, + headers: HeaderMap, + human: Option, + pretty: Option, + request_timeout: Option, + source: Option<&'b str>, +} +impl<'a, 'b, B> InferencePutCustom<'a, 'b, B> +where + B: Body, +{ + #[doc = "Creates a new instance of [InferencePutCustom] with the specified API parts"] + pub fn new(transport: &'a Transport, parts: InferencePutCustomParts<'b>) -> Self { + let headers = HeaderMap::new(); + InferencePutCustom { + transport, + parts, + headers, + body: None, + error_trace: None, + filter_path: None, + human: None, + pretty: None, + request_timeout: None, + source: None, + } + } + #[doc = "The body for the API call"] + pub fn body(self, body: T) -> InferencePutCustom<'a, 'b, JsonBody> + where + T: Serialize, + { + InferencePutCustom { + transport: self.transport, + parts: self.parts, + body: Some(body.into()), + error_trace: self.error_trace, + filter_path: self.filter_path, + headers: self.headers, + human: self.human, + pretty: self.pretty, + request_timeout: self.request_timeout, + source: self.source, + } + } + #[doc = "Include the stack trace of returned errors."] + pub fn error_trace(mut self, error_trace: bool) -> Self { + self.error_trace = Some(error_trace); + self + } + #[doc = "A comma-separated list of filters used to reduce the response."] + pub fn filter_path(mut self, filter_path: &'b [&'b str]) -> Self { + self.filter_path = Some(filter_path); + self + } + #[doc = "Adds a HTTP header"] + pub fn header(mut self, key: HeaderName, value: HeaderValue) -> Self { + self.headers.insert(key, value); + self + } + #[doc = "Return human readable values for statistics."] + pub fn human(mut self, human: bool) -> Self { + self.human = Some(human); + self + } + #[doc = "Pretty format the returned JSON response."] + pub fn pretty(mut self, pretty: bool) -> Self { + self.pretty = Some(pretty); + self + } + #[doc = "Sets a request timeout for this API call.\n\nThe timeout is applied from when the request starts connecting until the response body has finished."] + pub fn request_timeout(mut self, timeout: Duration) -> Self { + self.request_timeout = Some(timeout); + self + } + #[doc = "The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests."] + pub fn source(mut self, source: &'b str) -> Self { + self.source = Some(source); + self + } + #[doc = "Creates an asynchronous call to the Inference Put Custom API that can be awaited"] + pub async fn send(self) -> Result { + let path = self.parts.url(); + let method = http::Method::Put; + let headers = self.headers; + let timeout = self.request_timeout; + let query_string = { + #[serde_with::skip_serializing_none] + #[derive(Serialize)] + struct QueryParams<'b> { + error_trace: Option, + #[serde(serialize_with = "crate::client::serialize_coll_qs")] + filter_path: Option<&'b [&'b str]>, + human: Option, + pretty: Option, + source: Option<&'b str>, + } + let query_params = QueryParams { + error_trace: self.error_trace, + filter_path: self.filter_path, + human: self.human, + pretty: self.pretty, + source: self.source, + }; + Some(query_params) + }; + let body = self.body; + let response = self + .transport + .send(method, &path, headers, query_string.as_ref(), body, timeout) + .await?; + Ok(response) + } +} +#[derive(Debug, Clone, PartialEq, Eq)] +#[doc = "API parts for the Inference Put Deepseek API"] +pub enum InferencePutDeepseekParts<'b> { + #[doc = "TaskType and DeepseekInferenceId"] + TaskTypeDeepseekInferenceId(&'b str, &'b str), +} +impl<'b> InferencePutDeepseekParts<'b> { + #[doc = "Builds a relative URL path to the Inference Put Deepseek API"] + pub fn url(self) -> Cow<'static, str> { + match self { + InferencePutDeepseekParts::TaskTypeDeepseekInferenceId( + task_type, + deepseek_inference_id, + ) => { + let encoded_task_type: Cow = + percent_encode(task_type.as_bytes(), PARTS_ENCODED).into(); + let encoded_deepseek_inference_id: Cow = + percent_encode(deepseek_inference_id.as_bytes(), PARTS_ENCODED).into(); + let mut p = String::with_capacity( + 13usize + encoded_task_type.len() + encoded_deepseek_inference_id.len(), + ); + p.push_str("/_inference/"); + p.push_str(encoded_task_type.as_ref()); + p.push('/'); + p.push_str(encoded_deepseek_inference_id.as_ref()); + p.into() + } + } + } +} +#[doc = "Builder for the [Inference Put Deepseek API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-deepseek.html)\n\nConfigure a DeepSeek inference endpoint"] +#[derive(Clone, Debug)] +pub struct InferencePutDeepseek<'a, 'b, B> { + transport: &'a Transport, + parts: InferencePutDeepseekParts<'b>, + body: Option, + error_trace: Option, + filter_path: Option<&'b [&'b str]>, + headers: HeaderMap, + human: Option, + pretty: Option, + request_timeout: Option, + source: Option<&'b str>, +} +impl<'a, 'b, B> InferencePutDeepseek<'a, 'b, B> +where + B: Body, +{ + #[doc = "Creates a new instance of [InferencePutDeepseek] with the specified API parts"] + pub fn new(transport: &'a Transport, parts: InferencePutDeepseekParts<'b>) -> Self { + let headers = HeaderMap::new(); + InferencePutDeepseek { + transport, + parts, + headers, + body: None, + error_trace: None, + filter_path: None, + human: None, + pretty: None, + request_timeout: None, + source: None, + } + } + #[doc = "The body for the API call"] + pub fn body(self, body: T) -> InferencePutDeepseek<'a, 'b, JsonBody> + where + T: Serialize, + { + InferencePutDeepseek { + transport: self.transport, + parts: self.parts, + body: Some(body.into()), + error_trace: self.error_trace, + filter_path: self.filter_path, + headers: self.headers, + human: self.human, + pretty: self.pretty, + request_timeout: self.request_timeout, + source: self.source, + } + } + #[doc = "Include the stack trace of returned errors."] + pub fn error_trace(mut self, error_trace: bool) -> Self { + self.error_trace = Some(error_trace); + self + } + #[doc = "A comma-separated list of filters used to reduce the response."] + pub fn filter_path(mut self, filter_path: &'b [&'b str]) -> Self { + self.filter_path = Some(filter_path); + self + } + #[doc = "Adds a HTTP header"] + pub fn header(mut self, key: HeaderName, value: HeaderValue) -> Self { + self.headers.insert(key, value); + self + } + #[doc = "Return human readable values for statistics."] + pub fn human(mut self, human: bool) -> Self { + self.human = Some(human); + self + } + #[doc = "Pretty format the returned JSON response."] + pub fn pretty(mut self, pretty: bool) -> Self { + self.pretty = Some(pretty); + self + } + #[doc = "Sets a request timeout for this API call.\n\nThe timeout is applied from when the request starts connecting until the response body has finished."] + pub fn request_timeout(mut self, timeout: Duration) -> Self { + self.request_timeout = Some(timeout); + self + } + #[doc = "The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests."] + pub fn source(mut self, source: &'b str) -> Self { + self.source = Some(source); + self + } + #[doc = "Creates an asynchronous call to the Inference Put Deepseek API that can be awaited"] + pub async fn send(self) -> Result { + let path = self.parts.url(); + let method = http::Method::Put; + let headers = self.headers; + let timeout = self.request_timeout; + let query_string = { + #[serde_with::skip_serializing_none] + #[derive(Serialize)] + struct QueryParams<'b> { + error_trace: Option, + #[serde(serialize_with = "crate::client::serialize_coll_qs")] + filter_path: Option<&'b [&'b str]>, + human: Option, + pretty: Option, + source: Option<&'b str>, + } + let query_params = QueryParams { + error_trace: self.error_trace, + filter_path: self.filter_path, + human: self.human, + pretty: self.pretty, + source: self.source, + }; + Some(query_params) + }; + let body = self.body; + let response = self + .transport + .send(method, &path, headers, query_string.as_ref(), body, timeout) + .await?; + Ok(response) + } +} +#[derive(Debug, Clone, PartialEq, Eq)] #[doc = "API parts for the Inference Put Elasticsearch API"] pub enum InferencePutElasticsearchParts<'b> { #[doc = "TaskType and ElasticsearchInferenceId"] @@ -1869,7 +2319,7 @@ impl<'b> InferencePutElasticsearchParts<'b> { } } } -#[doc = "Builder for the [Inference Put Elasticsearch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-service-elasticsearch.html)\n\nConfigure an Elasticsearch inference endpoint"] +#[doc = "Builder for the [Inference Put Elasticsearch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-elasticsearch.html)\n\nConfigure an Elasticsearch inference endpoint"] #[derive(Clone, Debug)] pub struct InferencePutElasticsearch<'a, 'b, B> { transport: &'a Transport, @@ -2017,7 +2467,7 @@ impl<'b> InferencePutElserParts<'b> { } } } -#[doc = "Builder for the [Inference Put Elser API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-service-elser.html)\n\nConfigure an ELSER inference endpoint"] +#[doc = "Builder for the [Inference Put Elser API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-elser.html)\n\nConfigure an ELSER inference endpoint"] #[derive(Clone, Debug)] pub struct InferencePutElser<'a, 'b, B> { transport: &'a Transport, @@ -2168,7 +2618,7 @@ impl<'b> InferencePutGoogleaistudioParts<'b> { } } } -#[doc = "Builder for the [Inference Put Googleaistudio API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-service-google-ai-studio.html)\n\nConfigure a Google AI Studio inference endpoint"] +#[doc = "Builder for the [Inference Put Googleaistudio API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-google-ai-studio.html)\n\nConfigure a Google AI Studio inference endpoint"] #[derive(Clone, Debug)] pub struct InferencePutGoogleaistudio<'a, 'b, B> { transport: &'a Transport, @@ -2319,7 +2769,7 @@ impl<'b> InferencePutGooglevertexaiParts<'b> { } } } -#[doc = "Builder for the [Inference Put Googlevertexai API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-service-google-vertex-ai.html)\n\nConfigure a Google Vertex AI inference endpoint"] +#[doc = "Builder for the [Inference Put Googlevertexai API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-google-vertex-ai.html)\n\nConfigure a Google Vertex AI inference endpoint"] #[derive(Clone, Debug)] pub struct InferencePutGooglevertexai<'a, 'b, B> { transport: &'a Transport, @@ -2470,7 +2920,7 @@ impl<'b> InferencePutHuggingFaceParts<'b> { } } } -#[doc = "Builder for the [Inference Put Hugging Face API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-service-hugging-face.html)\n\nConfigure a HuggingFace inference endpoint"] +#[doc = "Builder for the [Inference Put Hugging Face API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-hugging-face.html)\n\nConfigure a HuggingFace inference endpoint"] #[derive(Clone, Debug)] pub struct InferencePutHuggingFace<'a, 'b, B> { transport: &'a Transport, @@ -2618,7 +3068,7 @@ impl<'b> InferencePutJinaaiParts<'b> { } } } -#[doc = "Builder for the [Inference Put Jinaai API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-service-jinaai.html)\n\nConfigure a JinaAI inference endpoint"] +#[doc = "Builder for the [Inference Put Jinaai API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-jinaai.html)\n\nConfigure a JinaAI inference endpoint"] #[derive(Clone, Debug)] pub struct InferencePutJinaai<'a, 'b, B> { transport: &'a Transport, @@ -2769,7 +3219,7 @@ impl<'b> InferencePutMistralParts<'b> { } } } -#[doc = "Builder for the [Inference Put Mistral API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-service-mistral.html)\n\nConfigure a Mistral inference endpoint"] +#[doc = "Builder for the [Inference Put Mistral API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-mistral.html)\n\nConfigure a Mistral inference endpoint"] #[derive(Clone, Debug)] pub struct InferencePutMistral<'a, 'b, B> { transport: &'a Transport, @@ -2917,7 +3367,7 @@ impl<'b> InferencePutOpenaiParts<'b> { } } } -#[doc = "Builder for the [Inference Put Openai API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-service-openai.html)\n\nConfigure an OpenAI inference endpoint"] +#[doc = "Builder for the [Inference Put Openai API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-openai.html)\n\nConfigure an OpenAI inference endpoint"] #[derive(Clone, Debug)] pub struct InferencePutOpenai<'a, 'b, B> { transport: &'a Transport, @@ -3068,7 +3518,7 @@ impl<'b> InferencePutVoyageaiParts<'b> { } } } -#[doc = "Builder for the [Inference Put Voyageai API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/inference-apis.html)\n\nConfigure a VoyageAI inference endpoint"] +#[doc = "Builder for the [Inference Put Voyageai API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/inference-apis.html)\n\nConfigure a VoyageAI inference endpoint"] #[derive(Clone, Debug)] pub struct InferencePutVoyageai<'a, 'b, B> { transport: &'a Transport, @@ -3219,7 +3669,7 @@ impl<'b> InferencePutWatsonxParts<'b> { } } } -#[doc = "Builder for the [Inference Put Watsonx API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-service-watsonx-ai.html)\n\nConfigure a Watsonx inference endpoint"] +#[doc = "Builder for the [Inference Put Watsonx API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-watsonx-ai.html)\n\nConfigure a Watsonx inference endpoint"] #[derive(Clone, Debug)] pub struct InferencePutWatsonx<'a, 'b, B> { transport: &'a Transport, @@ -3361,7 +3811,7 @@ impl<'b> InferenceRerankParts<'b> { } } } -#[doc = "Builder for the [Inference Rerank API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/post-inference-api.html)\n\nPerform reranking inference"] +#[doc = "Builder for the [Inference Rerank API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/post-inference-api.html)\n\nPerform reranking inference"] #[derive(Clone, Debug)] pub struct InferenceRerank<'a, 'b, B> { transport: &'a Transport, @@ -3503,7 +3953,7 @@ impl<'b> InferenceSparseEmbeddingParts<'b> { } } } -#[doc = "Builder for the [Inference Sparse Embedding API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/post-inference-api.html)\n\nPerform sparse embedding inference"] +#[doc = "Builder for the [Inference Sparse Embedding API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/post-inference-api.html)\n\nPerform sparse embedding inference"] #[derive(Clone, Debug)] pub struct InferenceSparseEmbedding<'a, 'b, B> { transport: &'a Transport, @@ -3646,7 +4096,7 @@ impl<'b> InferenceStreamCompletionParts<'b> { } } } -#[doc = "Builder for the [Inference Stream Completion API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/post-stream-inference-api.html)\n\nPerform streaming completion inference"] +#[doc = "Builder for the [Inference Stream Completion API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/post-stream-inference-api.html)\n\nPerform streaming completion inference"] #[derive(Clone, Debug)] pub struct InferenceStreamCompletion<'a, 'b, B> { transport: &'a Transport, @@ -3788,7 +4238,7 @@ impl<'b> InferenceTextEmbeddingParts<'b> { } } } -#[doc = "Builder for the [Inference Text Embedding API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/post-inference-api.html)\n\nPerform text embedding inference"] +#[doc = "Builder for the [Inference Text Embedding API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/post-inference-api.html)\n\nPerform text embedding inference"] #[derive(Clone, Debug)] pub struct InferenceTextEmbedding<'a, 'b, B> { transport: &'a Transport, @@ -3948,7 +4398,7 @@ impl<'b> InferenceUpdateParts<'b> { } } } -#[doc = "Builder for the [Inference Update API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-inference-api.html)\n\nUpdate inference"] +#[doc = "Builder for the [Inference Update API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-inference-api.html)\n\nUpdate inference"] #[derive(Clone, Debug)] pub struct InferenceUpdate<'a, 'b, B> { transport: &'a Transport, @@ -4081,177 +4531,198 @@ impl<'a> Inference<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Inference Chat Completion Unified API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/chat-completion-inference.html)\n\nPerform chat completion inference"] + #[doc = "[Inference Chat Completion Unified API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/chat-completion-inference.html)\n\nPerform chat completion inference"] pub fn chat_completion_unified<'b>( &'a self, parts: InferenceChatCompletionUnifiedParts<'b>, ) -> InferenceChatCompletionUnified<'a, 'b, ()> { InferenceChatCompletionUnified::new(self.transport(), parts) } - #[doc = "[Inference Completion API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/post-inference-api.html)\n\nPerform completion inference"] + #[doc = "[Inference Completion API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/post-inference-api.html)\n\nPerform completion inference"] pub fn completion<'b>( &'a self, parts: InferenceCompletionParts<'b>, ) -> InferenceCompletion<'a, 'b, ()> { InferenceCompletion::new(self.transport(), parts) } - #[doc = "[Inference Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-inference-api.html)\n\nDelete an inference endpoint"] + #[doc = "[Inference Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-inference-api.html)\n\nDelete an inference endpoint"] pub fn delete<'b>(&'a self, parts: InferenceDeleteParts<'b>) -> InferenceDelete<'a, 'b> { InferenceDelete::new(self.transport(), parts) } - #[doc = "[Inference Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-inference-api.html)\n\nGet an inference endpoint"] + #[doc = "[Inference Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-inference-api.html)\n\nGet an inference endpoint"] pub fn get<'b>(&'a self, parts: InferenceGetParts<'b>) -> InferenceGet<'a, 'b> { InferenceGet::new(self.transport(), parts) } - #[doc = "[Inference Inference API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/post-inference-api.html)\n\nPerform inference"] + #[doc = "[Inference Inference API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/post-inference-api.html)\n\nPerform inference"] pub fn inference<'b>( &'a self, parts: InferenceInferenceParts<'b>, ) -> InferenceInference<'a, 'b, ()> { InferenceInference::new(self.transport(), parts) } - #[doc = "[Inference Put API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-inference-api.html)\n\nConfigure an inference endpoint for use in the Inference API"] + #[doc = "[Inference Put API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-inference-api.html)\n\nConfigure an inference endpoint for use in the Inference API"] pub fn put<'b>(&'a self, parts: InferencePutParts<'b>) -> InferencePut<'a, 'b, ()> { InferencePut::new(self.transport(), parts) } - #[doc = "[Inference Put Alibabacloud API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-service-alibabacloud-ai-search.html)\n\nConfigure an AlibabaCloud AI Search inference endpoint"] + #[doc = "[Inference Put Alibabacloud API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-alibabacloud-ai-search.html)\n\nConfigure an AlibabaCloud AI Search inference endpoint"] pub fn put_alibabacloud<'b>( &'a self, parts: InferencePutAlibabacloudParts<'b>, ) -> InferencePutAlibabacloud<'a, 'b, ()> { InferencePutAlibabacloud::new(self.transport(), parts) } - #[doc = "[Inference Put Amazonbedrock API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-service-amazon-bedrock.html)\n\nConfigure an Amazon Bedrock inference endpoint"] + #[doc = "[Inference Put Amazonbedrock API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-amazon-bedrock.html)\n\nConfigure an Amazon Bedrock inference endpoint"] pub fn put_amazonbedrock<'b>( &'a self, parts: InferencePutAmazonbedrockParts<'b>, ) -> InferencePutAmazonbedrock<'a, 'b, ()> { InferencePutAmazonbedrock::new(self.transport(), parts) } - #[doc = "[Inference Put Anthropic API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-service-anthropic.html)\n\nConfigure an Anthropic inference endpoint"] + #[doc = "[Inference Put Amazonsagemaker API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-amazon-sagemaker.html)\n\nConfigure a Amazon SageMaker inference endpoint"] + pub fn put_amazonsagemaker<'b>( + &'a self, + parts: InferencePutAmazonsagemakerParts<'b>, + ) -> InferencePutAmazonsagemaker<'a, 'b, ()> { + InferencePutAmazonsagemaker::new(self.transport(), parts) + } + #[doc = "[Inference Put Anthropic API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-anthropic.html)\n\nConfigure an Anthropic inference endpoint"] pub fn put_anthropic<'b>( &'a self, parts: InferencePutAnthropicParts<'b>, ) -> InferencePutAnthropic<'a, 'b, ()> { InferencePutAnthropic::new(self.transport(), parts) } - #[doc = "[Inference Put Azureaistudio API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-service-azure-ai-studio.html)\n\nConfigure an Azure AI Studio inference endpoint"] + #[doc = "[Inference Put Azureaistudio API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-azure-ai-studio.html)\n\nConfigure an Azure AI Studio inference endpoint"] pub fn put_azureaistudio<'b>( &'a self, parts: InferencePutAzureaistudioParts<'b>, ) -> InferencePutAzureaistudio<'a, 'b, ()> { InferencePutAzureaistudio::new(self.transport(), parts) } - #[doc = "[Inference Put Azureopenai API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-service-azure-openai.html)\n\nConfigure an Azure OpenAI inference endpoint"] + #[doc = "[Inference Put Azureopenai API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-azure-openai.html)\n\nConfigure an Azure OpenAI inference endpoint"] pub fn put_azureopenai<'b>( &'a self, parts: InferencePutAzureopenaiParts<'b>, ) -> InferencePutAzureopenai<'a, 'b, ()> { InferencePutAzureopenai::new(self.transport(), parts) } - #[doc = "[Inference Put Cohere API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-service-cohere.html)\n\nConfigure a Cohere inference endpoint"] + #[doc = "[Inference Put Cohere API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-cohere.html)\n\nConfigure a Cohere inference endpoint"] pub fn put_cohere<'b>( &'a self, parts: InferencePutCohereParts<'b>, ) -> InferencePutCohere<'a, 'b, ()> { InferencePutCohere::new(self.transport(), parts) } - #[doc = "[Inference Put Elasticsearch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-service-elasticsearch.html)\n\nConfigure an Elasticsearch inference endpoint"] + #[doc = "[Inference Put Custom API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-custom)\n\nConfigure a custom inference endpoint"] + pub fn put_custom<'b>( + &'a self, + parts: InferencePutCustomParts<'b>, + ) -> InferencePutCustom<'a, 'b, ()> { + InferencePutCustom::new(self.transport(), parts) + } + #[doc = "[Inference Put Deepseek API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-deepseek.html)\n\nConfigure a DeepSeek inference endpoint"] + pub fn put_deepseek<'b>( + &'a self, + parts: InferencePutDeepseekParts<'b>, + ) -> InferencePutDeepseek<'a, 'b, ()> { + InferencePutDeepseek::new(self.transport(), parts) + } + #[doc = "[Inference Put Elasticsearch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-elasticsearch.html)\n\nConfigure an Elasticsearch inference endpoint"] pub fn put_elasticsearch<'b>( &'a self, parts: InferencePutElasticsearchParts<'b>, ) -> InferencePutElasticsearch<'a, 'b, ()> { InferencePutElasticsearch::new(self.transport(), parts) } - #[doc = "[Inference Put Elser API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-service-elser.html)\n\nConfigure an ELSER inference endpoint"] + #[doc = "[Inference Put Elser API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-elser.html)\n\nConfigure an ELSER inference endpoint"] pub fn put_elser<'b>( &'a self, parts: InferencePutElserParts<'b>, ) -> InferencePutElser<'a, 'b, ()> { InferencePutElser::new(self.transport(), parts) } - #[doc = "[Inference Put Googleaistudio API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-service-google-ai-studio.html)\n\nConfigure a Google AI Studio inference endpoint"] + #[doc = "[Inference Put Googleaistudio API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-google-ai-studio.html)\n\nConfigure a Google AI Studio inference endpoint"] pub fn put_googleaistudio<'b>( &'a self, parts: InferencePutGoogleaistudioParts<'b>, ) -> InferencePutGoogleaistudio<'a, 'b, ()> { InferencePutGoogleaistudio::new(self.transport(), parts) } - #[doc = "[Inference Put Googlevertexai API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-service-google-vertex-ai.html)\n\nConfigure a Google Vertex AI inference endpoint"] + #[doc = "[Inference Put Googlevertexai API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-google-vertex-ai.html)\n\nConfigure a Google Vertex AI inference endpoint"] pub fn put_googlevertexai<'b>( &'a self, parts: InferencePutGooglevertexaiParts<'b>, ) -> InferencePutGooglevertexai<'a, 'b, ()> { InferencePutGooglevertexai::new(self.transport(), parts) } - #[doc = "[Inference Put Hugging Face API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-service-hugging-face.html)\n\nConfigure a HuggingFace inference endpoint"] + #[doc = "[Inference Put Hugging Face API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-hugging-face.html)\n\nConfigure a HuggingFace inference endpoint"] pub fn put_hugging_face<'b>( &'a self, parts: InferencePutHuggingFaceParts<'b>, ) -> InferencePutHuggingFace<'a, 'b, ()> { InferencePutHuggingFace::new(self.transport(), parts) } - #[doc = "[Inference Put Jinaai API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-service-jinaai.html)\n\nConfigure a JinaAI inference endpoint"] + #[doc = "[Inference Put Jinaai API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-jinaai.html)\n\nConfigure a JinaAI inference endpoint"] pub fn put_jinaai<'b>( &'a self, parts: InferencePutJinaaiParts<'b>, ) -> InferencePutJinaai<'a, 'b, ()> { InferencePutJinaai::new(self.transport(), parts) } - #[doc = "[Inference Put Mistral API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-service-mistral.html)\n\nConfigure a Mistral inference endpoint"] + #[doc = "[Inference Put Mistral API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-mistral.html)\n\nConfigure a Mistral inference endpoint"] pub fn put_mistral<'b>( &'a self, parts: InferencePutMistralParts<'b>, ) -> InferencePutMistral<'a, 'b, ()> { InferencePutMistral::new(self.transport(), parts) } - #[doc = "[Inference Put Openai API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-service-openai.html)\n\nConfigure an OpenAI inference endpoint"] + #[doc = "[Inference Put Openai API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-openai.html)\n\nConfigure an OpenAI inference endpoint"] pub fn put_openai<'b>( &'a self, parts: InferencePutOpenaiParts<'b>, ) -> InferencePutOpenai<'a, 'b, ()> { InferencePutOpenai::new(self.transport(), parts) } - #[doc = "[Inference Put Voyageai API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/inference-apis.html)\n\nConfigure a VoyageAI inference endpoint"] + #[doc = "[Inference Put Voyageai API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/inference-apis.html)\n\nConfigure a VoyageAI inference endpoint"] pub fn put_voyageai<'b>( &'a self, parts: InferencePutVoyageaiParts<'b>, ) -> InferencePutVoyageai<'a, 'b, ()> { InferencePutVoyageai::new(self.transport(), parts) } - #[doc = "[Inference Put Watsonx API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-service-watsonx-ai.html)\n\nConfigure a Watsonx inference endpoint"] + #[doc = "[Inference Put Watsonx API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-service-watsonx-ai.html)\n\nConfigure a Watsonx inference endpoint"] pub fn put_watsonx<'b>( &'a self, parts: InferencePutWatsonxParts<'b>, ) -> InferencePutWatsonx<'a, 'b, ()> { InferencePutWatsonx::new(self.transport(), parts) } - #[doc = "[Inference Rerank API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/post-inference-api.html)\n\nPerform reranking inference"] + #[doc = "[Inference Rerank API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/post-inference-api.html)\n\nPerform reranking inference"] pub fn rerank<'b>(&'a self, parts: InferenceRerankParts<'b>) -> InferenceRerank<'a, 'b, ()> { InferenceRerank::new(self.transport(), parts) } - #[doc = "[Inference Sparse Embedding API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/post-inference-api.html)\n\nPerform sparse embedding inference"] + #[doc = "[Inference Sparse Embedding API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/post-inference-api.html)\n\nPerform sparse embedding inference"] pub fn sparse_embedding<'b>( &'a self, parts: InferenceSparseEmbeddingParts<'b>, ) -> InferenceSparseEmbedding<'a, 'b, ()> { InferenceSparseEmbedding::new(self.transport(), parts) } - #[doc = "[Inference Stream Completion API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/post-stream-inference-api.html)\n\nPerform streaming completion inference"] + #[doc = "[Inference Stream Completion API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/post-stream-inference-api.html)\n\nPerform streaming completion inference"] pub fn stream_completion<'b>( &'a self, parts: InferenceStreamCompletionParts<'b>, ) -> InferenceStreamCompletion<'a, 'b, ()> { InferenceStreamCompletion::new(self.transport(), parts) } - #[doc = "[Inference Text Embedding API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/post-inference-api.html)\n\nPerform text embedding inference"] + #[doc = "[Inference Text Embedding API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/post-inference-api.html)\n\nPerform text embedding inference"] pub fn text_embedding<'b>( &'a self, parts: InferenceTextEmbeddingParts<'b>, ) -> InferenceTextEmbedding<'a, 'b, ()> { InferenceTextEmbedding::new(self.transport(), parts) } - #[doc = "[Inference Update API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-inference-api.html)\n\nUpdate inference"] + #[doc = "[Inference Update API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-inference-api.html)\n\nUpdate inference"] pub fn update<'b>(&'a self, parts: InferenceUpdateParts<'b>) -> InferenceUpdate<'a, 'b, ()> { InferenceUpdate::new(self.transport(), parts) } diff --git a/elasticsearch/src/ingest.rs b/elasticsearch/src/ingest.rs index 93bcb6d9..631ff097 100644 --- a/elasticsearch/src/ingest.rs +++ b/elasticsearch/src/ingest.rs @@ -79,7 +79,7 @@ impl<'b> IngestDeleteGeoipDatabaseParts<'b> { } } } -#[doc = "Builder for the [Ingest Delete Geoip Database API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-geoip-database-api.html)\n\nDeletes a geoip database configuration"] +#[doc = "Builder for the [Ingest Delete Geoip Database API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-geoip-database-api.html)\n\nDeletes a geoip database configuration"] #[derive(Clone, Debug)] pub struct IngestDeleteGeoipDatabase<'a, 'b> { transport: &'a Transport, @@ -216,7 +216,7 @@ impl<'b> IngestDeleteIpLocationDatabaseParts<'b> { } } } -#[doc = "Builder for the [Ingest Delete Ip Location Database API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-ip-location-database-api.html)\n\nDeletes an ip location database configuration"] +#[doc = "Builder for the [Ingest Delete Ip Location Database API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-ip-location-database-api.html)\n\nDeletes an ip location database configuration"] #[derive(Clone, Debug)] pub struct IngestDeleteIpLocationDatabase<'a, 'b> { transport: &'a Transport, @@ -352,7 +352,7 @@ impl<'b> IngestDeletePipelineParts<'b> { } } } -#[doc = "Builder for the [Ingest Delete Pipeline API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-pipeline-api.html)\n\nDeletes a pipeline."] +#[doc = "Builder for the [Ingest Delete Pipeline API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-pipeline-api.html)\n\nDeletes a pipeline."] #[derive(Clone, Debug)] pub struct IngestDeletePipeline<'a, 'b> { transport: &'a Transport, @@ -482,7 +482,7 @@ impl IngestGeoIpStatsParts { } } } -#[doc = "Builder for the [Ingest Geo Ip Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/geoip-stats-api.html)\n\nReturns statistical information about geoip databases"] +#[doc = "Builder for the [Ingest Geo Ip Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/geoip-stats-api.html)\n\nReturns statistical information about geoip databases"] #[derive(Clone, Debug)] pub struct IngestGeoIpStats<'a, 'b> { transport: &'a Transport, @@ -604,7 +604,7 @@ impl<'b> IngestGetGeoipDatabaseParts<'b> { } } } -#[doc = "Builder for the [Ingest Get Geoip Database API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-geoip-database-api.html)\n\nReturns geoip database configuration."] +#[doc = "Builder for the [Ingest Get Geoip Database API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-geoip-database-api.html)\n\nReturns geoip database configuration."] #[derive(Clone, Debug)] pub struct IngestGetGeoipDatabase<'a, 'b> { transport: &'a Transport, @@ -726,7 +726,7 @@ impl<'b> IngestGetIpLocationDatabaseParts<'b> { } } } -#[doc = "Builder for the [Ingest Get Ip Location Database API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-ip-location-database-api.html)\n\nReturns the specified ip location database configuration"] +#[doc = "Builder for the [Ingest Get Ip Location Database API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-ip-location-database-api.html)\n\nReturns the specified ip location database configuration"] #[derive(Clone, Debug)] pub struct IngestGetIpLocationDatabase<'a, 'b> { transport: &'a Transport, @@ -847,7 +847,7 @@ impl<'b> IngestGetPipelineParts<'b> { } } } -#[doc = "Builder for the [Ingest Get Pipeline API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-pipeline-api.html)\n\nReturns a pipeline."] +#[doc = "Builder for the [Ingest Get Pipeline API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-pipeline-api.html)\n\nReturns a pipeline."] #[derive(Clone, Debug)] pub struct IngestGetPipeline<'a, 'b> { transport: &'a Transport, @@ -977,7 +977,7 @@ impl IngestProcessorGrokParts { } } } -#[doc = "Builder for the [Ingest Processor Grok API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/grok-processor.html#grok-processor-rest-get)\n\nReturns a list of the built-in patterns."] +#[doc = "Builder for the [Ingest Processor Grok API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/grok-processor.html#grok-processor-rest-get)\n\nReturns a list of the built-in patterns."] #[derive(Clone, Debug)] pub struct IngestProcessorGrok<'a, 'b> { transport: &'a Transport, @@ -1095,7 +1095,7 @@ impl<'b> IngestPutGeoipDatabaseParts<'b> { } } } -#[doc = "Builder for the [Ingest Put Geoip Database API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-geoip-database-api.html)\n\nPuts the configuration for a geoip database to be downloaded"] +#[doc = "Builder for the [Ingest Put Geoip Database API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-geoip-database-api.html)\n\nPuts the configuration for a geoip database to be downloaded"] #[derive(Clone, Debug)] pub struct IngestPutGeoipDatabase<'a, 'b, B> { transport: &'a Transport, @@ -1256,7 +1256,7 @@ impl<'b> IngestPutIpLocationDatabaseParts<'b> { } } } -#[doc = "Builder for the [Ingest Put Ip Location Database API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-ip-location-database-api.html)\n\nPuts the configuration for a ip location database to be downloaded"] +#[doc = "Builder for the [Ingest Put Ip Location Database API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-ip-location-database-api.html)\n\nPuts the configuration for a ip location database to be downloaded"] #[derive(Clone, Debug)] pub struct IngestPutIpLocationDatabase<'a, 'b, B> { transport: &'a Transport, @@ -1417,7 +1417,7 @@ impl<'b> IngestPutPipelineParts<'b> { } } } -#[doc = "Builder for the [Ingest Put Pipeline API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-pipeline-api.html)\n\nCreates or updates a pipeline."] +#[doc = "Builder for the [Ingest Put Pipeline API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-pipeline-api.html)\n\nCreates or updates a pipeline."] #[derive(Clone, Debug)] pub struct IngestPutPipeline<'a, 'b, B> { transport: &'a Transport, @@ -1592,7 +1592,7 @@ impl<'b> IngestSimulateParts<'b> { } } } -#[doc = "Builder for the [Ingest Simulate API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/simulate-pipeline-api.html)\n\nAllows to simulate a pipeline with example documents."] +#[doc = "Builder for the [Ingest Simulate API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/simulate-pipeline-api.html)\n\nAllows to simulate a pipeline with example documents."] #[derive(Clone, Debug)] pub struct IngestSimulate<'a, 'b, B> { transport: &'a Transport, @@ -1738,78 +1738,78 @@ impl<'a> Ingest<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Ingest Delete Geoip Database API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-geoip-database-api.html)\n\nDeletes a geoip database configuration"] + #[doc = "[Ingest Delete Geoip Database API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-geoip-database-api.html)\n\nDeletes a geoip database configuration"] pub fn delete_geoip_database<'b>( &'a self, parts: IngestDeleteGeoipDatabaseParts<'b>, ) -> IngestDeleteGeoipDatabase<'a, 'b> { IngestDeleteGeoipDatabase::new(self.transport(), parts) } - #[doc = "[Ingest Delete Ip Location Database API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-ip-location-database-api.html)\n\nDeletes an ip location database configuration"] + #[doc = "[Ingest Delete Ip Location Database API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-ip-location-database-api.html)\n\nDeletes an ip location database configuration"] pub fn delete_ip_location_database<'b>( &'a self, parts: IngestDeleteIpLocationDatabaseParts<'b>, ) -> IngestDeleteIpLocationDatabase<'a, 'b> { IngestDeleteIpLocationDatabase::new(self.transport(), parts) } - #[doc = "[Ingest Delete Pipeline API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-pipeline-api.html)\n\nDeletes a pipeline."] + #[doc = "[Ingest Delete Pipeline API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-pipeline-api.html)\n\nDeletes a pipeline."] pub fn delete_pipeline<'b>( &'a self, parts: IngestDeletePipelineParts<'b>, ) -> IngestDeletePipeline<'a, 'b> { IngestDeletePipeline::new(self.transport(), parts) } - #[doc = "[Ingest Geo Ip Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/geoip-stats-api.html)\n\nReturns statistical information about geoip databases"] + #[doc = "[Ingest Geo Ip Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/geoip-stats-api.html)\n\nReturns statistical information about geoip databases"] pub fn geo_ip_stats<'b>(&'a self) -> IngestGeoIpStats<'a, 'b> { IngestGeoIpStats::new(self.transport()) } - #[doc = "[Ingest Get Geoip Database API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-geoip-database-api.html)\n\nReturns geoip database configuration."] + #[doc = "[Ingest Get Geoip Database API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-geoip-database-api.html)\n\nReturns geoip database configuration."] pub fn get_geoip_database<'b>( &'a self, parts: IngestGetGeoipDatabaseParts<'b>, ) -> IngestGetGeoipDatabase<'a, 'b> { IngestGetGeoipDatabase::new(self.transport(), parts) } - #[doc = "[Ingest Get Ip Location Database API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-ip-location-database-api.html)\n\nReturns the specified ip location database configuration"] + #[doc = "[Ingest Get Ip Location Database API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-ip-location-database-api.html)\n\nReturns the specified ip location database configuration"] pub fn get_ip_location_database<'b>( &'a self, parts: IngestGetIpLocationDatabaseParts<'b>, ) -> IngestGetIpLocationDatabase<'a, 'b> { IngestGetIpLocationDatabase::new(self.transport(), parts) } - #[doc = "[Ingest Get Pipeline API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-pipeline-api.html)\n\nReturns a pipeline."] + #[doc = "[Ingest Get Pipeline API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-pipeline-api.html)\n\nReturns a pipeline."] pub fn get_pipeline<'b>( &'a self, parts: IngestGetPipelineParts<'b>, ) -> IngestGetPipeline<'a, 'b> { IngestGetPipeline::new(self.transport(), parts) } - #[doc = "[Ingest Processor Grok API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/grok-processor.html#grok-processor-rest-get)\n\nReturns a list of the built-in patterns."] + #[doc = "[Ingest Processor Grok API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/grok-processor.html#grok-processor-rest-get)\n\nReturns a list of the built-in patterns."] pub fn processor_grok<'b>(&'a self) -> IngestProcessorGrok<'a, 'b> { IngestProcessorGrok::new(self.transport()) } - #[doc = "[Ingest Put Geoip Database API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-geoip-database-api.html)\n\nPuts the configuration for a geoip database to be downloaded"] + #[doc = "[Ingest Put Geoip Database API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-geoip-database-api.html)\n\nPuts the configuration for a geoip database to be downloaded"] pub fn put_geoip_database<'b>( &'a self, parts: IngestPutGeoipDatabaseParts<'b>, ) -> IngestPutGeoipDatabase<'a, 'b, ()> { IngestPutGeoipDatabase::new(self.transport(), parts) } - #[doc = "[Ingest Put Ip Location Database API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-ip-location-database-api.html)\n\nPuts the configuration for a ip location database to be downloaded"] + #[doc = "[Ingest Put Ip Location Database API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-ip-location-database-api.html)\n\nPuts the configuration for a ip location database to be downloaded"] pub fn put_ip_location_database<'b>( &'a self, parts: IngestPutIpLocationDatabaseParts<'b>, ) -> IngestPutIpLocationDatabase<'a, 'b, ()> { IngestPutIpLocationDatabase::new(self.transport(), parts) } - #[doc = "[Ingest Put Pipeline API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-pipeline-api.html)\n\nCreates or updates a pipeline."] + #[doc = "[Ingest Put Pipeline API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-pipeline-api.html)\n\nCreates or updates a pipeline."] pub fn put_pipeline<'b>( &'a self, parts: IngestPutPipelineParts<'b>, ) -> IngestPutPipeline<'a, 'b, ()> { IngestPutPipeline::new(self.transport(), parts) } - #[doc = "[Ingest Simulate API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/simulate-pipeline-api.html)\n\nAllows to simulate a pipeline with example documents."] + #[doc = "[Ingest Simulate API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/simulate-pipeline-api.html)\n\nAllows to simulate a pipeline with example documents."] pub fn simulate<'b>(&'a self, parts: IngestSimulateParts<'b>) -> IngestSimulate<'a, 'b, ()> { IngestSimulate::new(self.transport(), parts) } diff --git a/elasticsearch/src/lib.rs b/elasticsearch/src/lib.rs index b668b8c9..55cee6f1 100644 --- a/elasticsearch/src/lib.rs +++ b/elasticsearch/src/lib.rs @@ -62,7 +62,7 @@ //! //! ```toml,no_run //! [dependencies] -//! elasticsearch = "9.0.0-alpha.1" +//! elasticsearch = "9.1.0-alpha.1" //! ``` //! The following _optional_ dependencies may also be useful to create requests and read responses //! @@ -411,6 +411,7 @@ pub mod slm; pub mod snapshot; pub mod sql; pub mod ssl; +pub mod streams; pub mod synonyms; pub mod tasks; pub mod text_structure; diff --git a/elasticsearch/src/license.rs b/elasticsearch/src/license.rs index f48ad607..52ccfe15 100644 --- a/elasticsearch/src/license.rs +++ b/elasticsearch/src/license.rs @@ -63,7 +63,7 @@ impl LicenseDeleteParts { } } } -#[doc = "Builder for the [License Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-license.html)\n\nDeletes licensing information for the cluster"] +#[doc = "Builder for the [License Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-license.html)\n\nDeletes licensing information for the cluster"] #[derive(Clone, Debug)] pub struct LicenseDelete<'a, 'b> { transport: &'a Transport, @@ -193,7 +193,7 @@ impl LicenseGetParts { } } } -#[doc = "Builder for the [License Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-license.html)\n\nRetrieves licensing information for the cluster"] +#[doc = "Builder for the [License Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-license.html)\n\nRetrieves licensing information for the cluster"] #[derive(Clone, Debug)] pub struct LicenseGet<'a, 'b> { transport: &'a Transport, @@ -323,7 +323,7 @@ impl LicenseGetBasicStatusParts { } } } -#[doc = "Builder for the [License Get Basic Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-basic-status.html)\n\nRetrieves information about the status of the basic license."] +#[doc = "Builder for the [License Get Basic Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-basic-status.html)\n\nRetrieves information about the status of the basic license."] #[derive(Clone, Debug)] pub struct LicenseGetBasicStatus<'a, 'b> { transport: &'a Transport, @@ -435,7 +435,7 @@ impl LicenseGetTrialStatusParts { } } } -#[doc = "Builder for the [License Get Trial Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-trial-status.html)\n\nRetrieves information about the status of the trial license."] +#[doc = "Builder for the [License Get Trial Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-trial-status.html)\n\nRetrieves information about the status of the trial license."] #[derive(Clone, Debug)] pub struct LicenseGetTrialStatus<'a, 'b> { transport: &'a Transport, @@ -547,7 +547,7 @@ impl LicensePostParts { } } } -#[doc = "Builder for the [License Post API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-license.html)\n\nUpdates the license for the cluster."] +#[doc = "Builder for the [License Post API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-license.html)\n\nUpdates the license for the cluster."] #[derive(Clone, Debug)] pub struct LicensePost<'a, 'b, B> { transport: &'a Transport, @@ -712,7 +712,7 @@ impl LicensePostStartBasicParts { } } } -#[doc = "Builder for the [License Post Start Basic API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/start-basic.html)\n\nStarts an indefinite basic license."] +#[doc = "Builder for the [License Post Start Basic API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/start-basic.html)\n\nStarts an indefinite basic license."] #[derive(Clone, Debug)] pub struct LicensePostStartBasic<'a, 'b, B> { transport: &'a Transport, @@ -877,7 +877,7 @@ impl LicensePostStartTrialParts { } } } -#[doc = "Builder for the [License Post Start Trial API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/start-trial.html)\n\nstarts a limited time trial license."] +#[doc = "Builder for the [License Post Start Trial API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/start-trial.html)\n\nstarts a limited time trial license."] #[derive(Clone, Debug)] pub struct LicensePostStartTrial<'a, 'b, B> { transport: &'a Transport, @@ -1041,31 +1041,31 @@ impl<'a> License<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[License Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-license.html)\n\nDeletes licensing information for the cluster"] + #[doc = "[License Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-license.html)\n\nDeletes licensing information for the cluster"] pub fn delete<'b>(&'a self) -> LicenseDelete<'a, 'b> { LicenseDelete::new(self.transport()) } - #[doc = "[License Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-license.html)\n\nRetrieves licensing information for the cluster"] + #[doc = "[License Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-license.html)\n\nRetrieves licensing information for the cluster"] pub fn get<'b>(&'a self) -> LicenseGet<'a, 'b> { LicenseGet::new(self.transport()) } - #[doc = "[License Get Basic Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-basic-status.html)\n\nRetrieves information about the status of the basic license."] + #[doc = "[License Get Basic Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-basic-status.html)\n\nRetrieves information about the status of the basic license."] pub fn get_basic_status<'b>(&'a self) -> LicenseGetBasicStatus<'a, 'b> { LicenseGetBasicStatus::new(self.transport()) } - #[doc = "[License Get Trial Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-trial-status.html)\n\nRetrieves information about the status of the trial license."] + #[doc = "[License Get Trial Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-trial-status.html)\n\nRetrieves information about the status of the trial license."] pub fn get_trial_status<'b>(&'a self) -> LicenseGetTrialStatus<'a, 'b> { LicenseGetTrialStatus::new(self.transport()) } - #[doc = "[License Post API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-license.html)\n\nUpdates the license for the cluster."] + #[doc = "[License Post API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-license.html)\n\nUpdates the license for the cluster."] pub fn post<'b>(&'a self) -> LicensePost<'a, 'b, ()> { LicensePost::new(self.transport()) } - #[doc = "[License Post Start Basic API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/start-basic.html)\n\nStarts an indefinite basic license."] + #[doc = "[License Post Start Basic API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/start-basic.html)\n\nStarts an indefinite basic license."] pub fn post_start_basic<'b>(&'a self) -> LicensePostStartBasic<'a, 'b, ()> { LicensePostStartBasic::new(self.transport()) } - #[doc = "[License Post Start Trial API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/start-trial.html)\n\nstarts a limited time trial license."] + #[doc = "[License Post Start Trial API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/start-trial.html)\n\nstarts a limited time trial license."] pub fn post_start_trial<'b>(&'a self) -> LicensePostStartTrial<'a, 'b, ()> { LicensePostStartTrial::new(self.transport()) } diff --git a/elasticsearch/src/logstash.rs b/elasticsearch/src/logstash.rs index c095f1a9..eda31b72 100644 --- a/elasticsearch/src/logstash.rs +++ b/elasticsearch/src/logstash.rs @@ -65,7 +65,7 @@ impl<'b> LogstashDeletePipelineParts<'b> { } } } -#[doc = "Builder for the [Logstash Delete Pipeline API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/logstash-api-delete-pipeline.html)\n\nDeletes Logstash Pipelines used by Central Management"] +#[doc = "Builder for the [Logstash Delete Pipeline API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/logstash-api-delete-pipeline.html)\n\nDeletes Logstash Pipelines used by Central Management"] #[derive(Clone, Debug)] pub struct LogstashDeletePipeline<'a, 'b> { transport: &'a Transport, @@ -186,7 +186,7 @@ impl<'b> LogstashGetPipelineParts<'b> { } } } -#[doc = "Builder for the [Logstash Get Pipeline API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/logstash-api-get-pipeline.html)\n\nRetrieves Logstash Pipelines used by Central Management"] +#[doc = "Builder for the [Logstash Get Pipeline API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/logstash-api-get-pipeline.html)\n\nRetrieves Logstash Pipelines used by Central Management"] #[derive(Clone, Debug)] pub struct LogstashGetPipeline<'a, 'b> { transport: &'a Transport, @@ -304,7 +304,7 @@ impl<'b> LogstashPutPipelineParts<'b> { } } } -#[doc = "Builder for the [Logstash Put Pipeline API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/logstash-api-put-pipeline.html)\n\nAdds and updates Logstash Pipelines used for Central Management"] +#[doc = "Builder for the [Logstash Put Pipeline API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/logstash-api-put-pipeline.html)\n\nAdds and updates Logstash Pipelines used for Central Management"] #[derive(Clone, Debug)] pub struct LogstashPutPipeline<'a, 'b, B> { transport: &'a Transport, @@ -437,21 +437,21 @@ impl<'a> Logstash<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Logstash Delete Pipeline API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/logstash-api-delete-pipeline.html)\n\nDeletes Logstash Pipelines used by Central Management"] + #[doc = "[Logstash Delete Pipeline API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/logstash-api-delete-pipeline.html)\n\nDeletes Logstash Pipelines used by Central Management"] pub fn delete_pipeline<'b>( &'a self, parts: LogstashDeletePipelineParts<'b>, ) -> LogstashDeletePipeline<'a, 'b> { LogstashDeletePipeline::new(self.transport(), parts) } - #[doc = "[Logstash Get Pipeline API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/logstash-api-get-pipeline.html)\n\nRetrieves Logstash Pipelines used by Central Management"] + #[doc = "[Logstash Get Pipeline API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/logstash-api-get-pipeline.html)\n\nRetrieves Logstash Pipelines used by Central Management"] pub fn get_pipeline<'b>( &'a self, parts: LogstashGetPipelineParts<'b>, ) -> LogstashGetPipeline<'a, 'b> { LogstashGetPipeline::new(self.transport(), parts) } - #[doc = "[Logstash Put Pipeline API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/logstash-api-put-pipeline.html)\n\nAdds and updates Logstash Pipelines used for Central Management"] + #[doc = "[Logstash Put Pipeline API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/logstash-api-put-pipeline.html)\n\nAdds and updates Logstash Pipelines used for Central Management"] pub fn put_pipeline<'b>( &'a self, parts: LogstashPutPipelineParts<'b>, diff --git a/elasticsearch/src/migration.rs b/elasticsearch/src/migration.rs index 5059f667..d01fa5c1 100644 --- a/elasticsearch/src/migration.rs +++ b/elasticsearch/src/migration.rs @@ -69,7 +69,7 @@ impl<'b> MigrationDeprecationsParts<'b> { } } } -#[doc = "Builder for the [Migration Deprecations API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/migration-api-deprecation.html)\n\nRetrieves information about different cluster, node, and index level settings that use deprecated features that will be removed or changed in the next major version."] +#[doc = "Builder for the [Migration Deprecations API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/migration-api-deprecation.html)\n\nRetrieves information about different cluster, node, and index level settings that use deprecated features that will be removed or changed in the next major version."] #[derive(Clone, Debug)] pub struct MigrationDeprecations<'a, 'b> { transport: &'a Transport, @@ -181,7 +181,7 @@ impl MigrationGetFeatureUpgradeStatusParts { } } } -#[doc = "Builder for the [Migration Get Feature Upgrade Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/migration-api-feature-upgrade.html)\n\nFind out whether system features need to be upgraded or not"] +#[doc = "Builder for the [Migration Get Feature Upgrade Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/migration-api-feature-upgrade.html)\n\nFind out whether system features need to be upgraded or not"] #[derive(Clone, Debug)] pub struct MigrationGetFeatureUpgradeStatus<'a, 'b> { transport: &'a Transport, @@ -293,7 +293,7 @@ impl MigrationPostFeatureUpgradeParts { } } } -#[doc = "Builder for the [Migration Post Feature Upgrade API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/migration-api-feature-upgrade.html)\n\nBegin upgrades for system features"] +#[doc = "Builder for the [Migration Post Feature Upgrade API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/migration-api-feature-upgrade.html)\n\nBegin upgrades for system features"] #[derive(Clone, Debug)] pub struct MigrationPostFeatureUpgrade<'a, 'b, B> { transport: &'a Transport, @@ -426,18 +426,18 @@ impl<'a> Migration<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Migration Deprecations API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/migration-api-deprecation.html)\n\nRetrieves information about different cluster, node, and index level settings that use deprecated features that will be removed or changed in the next major version."] + #[doc = "[Migration Deprecations API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/migration-api-deprecation.html)\n\nRetrieves information about different cluster, node, and index level settings that use deprecated features that will be removed or changed in the next major version."] pub fn deprecations<'b>( &'a self, parts: MigrationDeprecationsParts<'b>, ) -> MigrationDeprecations<'a, 'b> { MigrationDeprecations::new(self.transport(), parts) } - #[doc = "[Migration Get Feature Upgrade Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/migration-api-feature-upgrade.html)\n\nFind out whether system features need to be upgraded or not"] + #[doc = "[Migration Get Feature Upgrade Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/migration-api-feature-upgrade.html)\n\nFind out whether system features need to be upgraded or not"] pub fn get_feature_upgrade_status<'b>(&'a self) -> MigrationGetFeatureUpgradeStatus<'a, 'b> { MigrationGetFeatureUpgradeStatus::new(self.transport()) } - #[doc = "[Migration Post Feature Upgrade API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/migration-api-feature-upgrade.html)\n\nBegin upgrades for system features"] + #[doc = "[Migration Post Feature Upgrade API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/migration-api-feature-upgrade.html)\n\nBegin upgrades for system features"] pub fn post_feature_upgrade<'b>(&'a self) -> MigrationPostFeatureUpgrade<'a, 'b, ()> { MigrationPostFeatureUpgrade::new(self.transport()) } diff --git a/elasticsearch/src/ml.rs b/elasticsearch/src/ml.rs index ca0f9e74..5c3c0a0b 100644 --- a/elasticsearch/src/ml.rs +++ b/elasticsearch/src/ml.rs @@ -66,7 +66,7 @@ impl<'b> MlClearTrainedModelDeploymentCacheParts<'b> { } } } -#[doc = "Builder for the [Ml Clear Trained Model Deployment Cache API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/clear-trained-model-deployment-cache.html)\n\nClear the cached results from a trained model deployment"] +#[doc = "Builder for the [Ml Clear Trained Model Deployment Cache API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/clear-trained-model-deployment-cache.html)\n\nClear the cached results from a trained model deployment"] #[derive(Clone, Debug)] pub struct MlClearTrainedModelDeploymentCache<'a, 'b, B> { transport: &'a Transport, @@ -212,7 +212,7 @@ impl<'b> MlCloseJobParts<'b> { } } } -#[doc = "Builder for the [Ml Close Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-close-job.html)\n\nCloses one or more anomaly detection jobs. A job can be opened and closed multiple times throughout its lifecycle."] +#[doc = "Builder for the [Ml Close Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-close-job.html)\n\nCloses one or more anomaly detection jobs. A job can be opened and closed multiple times throughout its lifecycle."] #[derive(Clone, Debug)] pub struct MlCloseJob<'a, 'b, B> { transport: &'a Transport, @@ -384,7 +384,7 @@ impl<'b> MlDeleteCalendarParts<'b> { } } } -#[doc = "Builder for the [Ml Delete Calendar API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-delete-calendar.html)\n\nDeletes a calendar."] +#[doc = "Builder for the [Ml Delete Calendar API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-delete-calendar.html)\n\nDeletes a calendar."] #[derive(Clone, Debug)] pub struct MlDeleteCalendar<'a, 'b> { transport: &'a Transport, @@ -509,7 +509,7 @@ impl<'b> MlDeleteCalendarEventParts<'b> { } } } -#[doc = "Builder for the [Ml Delete Calendar Event API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-delete-calendar-event.html)\n\nDeletes scheduled events from a calendar."] +#[doc = "Builder for the [Ml Delete Calendar Event API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-delete-calendar-event.html)\n\nDeletes scheduled events from a calendar."] #[derive(Clone, Debug)] pub struct MlDeleteCalendarEvent<'a, 'b> { transport: &'a Transport, @@ -634,7 +634,7 @@ impl<'b> MlDeleteCalendarJobParts<'b> { } } } -#[doc = "Builder for the [Ml Delete Calendar Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-delete-calendar-job.html)\n\nDeletes anomaly detection jobs from a calendar."] +#[doc = "Builder for the [Ml Delete Calendar Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-delete-calendar-job.html)\n\nDeletes anomaly detection jobs from a calendar."] #[derive(Clone, Debug)] pub struct MlDeleteCalendarJob<'a, 'b> { transport: &'a Transport, @@ -752,7 +752,7 @@ impl<'b> MlDeleteDataFrameAnalyticsParts<'b> { } } } -#[doc = "Builder for the [Ml Delete Data Frame Analytics API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-dfanalytics.html)\n\nDeletes an existing data frame analytics job."] +#[doc = "Builder for the [Ml Delete Data Frame Analytics API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-dfanalytics.html)\n\nDeletes an existing data frame analytics job."] #[derive(Clone, Debug)] pub struct MlDeleteDataFrameAnalytics<'a, 'b> { transport: &'a Transport, @@ -889,7 +889,7 @@ impl<'b> MlDeleteDatafeedParts<'b> { } } } -#[doc = "Builder for the [Ml Delete Datafeed API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-delete-datafeed.html)\n\nDeletes an existing datafeed."] +#[doc = "Builder for the [Ml Delete Datafeed API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-delete-datafeed.html)\n\nDeletes an existing datafeed."] #[derive(Clone, Debug)] pub struct MlDeleteDatafeed<'a, 'b> { transport: &'a Transport, @@ -1020,7 +1020,7 @@ impl<'b> MlDeleteExpiredDataParts<'b> { } } } -#[doc = "Builder for the [Ml Delete Expired Data API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-delete-expired-data.html)\n\nDeletes expired and unused machine learning data."] +#[doc = "Builder for the [Ml Delete Expired Data API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-delete-expired-data.html)\n\nDeletes expired and unused machine learning data."] #[derive(Clone, Debug)] pub struct MlDeleteExpiredData<'a, 'b, B> { transport: &'a Transport, @@ -1182,7 +1182,7 @@ impl<'b> MlDeleteFilterParts<'b> { } } } -#[doc = "Builder for the [Ml Delete Filter API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-delete-filter.html)\n\nDeletes a filter."] +#[doc = "Builder for the [Ml Delete Filter API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-delete-filter.html)\n\nDeletes a filter."] #[derive(Clone, Debug)] pub struct MlDeleteFilter<'a, 'b> { transport: &'a Transport, @@ -1318,7 +1318,7 @@ impl<'b> MlDeleteForecastParts<'b> { } } } -#[doc = "Builder for the [Ml Delete Forecast API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-delete-forecast.html)\n\nDeletes forecasts from a machine learning job."] +#[doc = "Builder for the [Ml Delete Forecast API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-delete-forecast.html)\n\nDeletes forecasts from a machine learning job."] #[derive(Clone, Debug)] pub struct MlDeleteForecast<'a, 'b> { transport: &'a Transport, @@ -1455,7 +1455,7 @@ impl<'b> MlDeleteJobParts<'b> { } } } -#[doc = "Builder for the [Ml Delete Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-delete-job.html)\n\nDeletes an existing anomaly detection job."] +#[doc = "Builder for the [Ml Delete Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-delete-job.html)\n\nDeletes an existing anomaly detection job."] #[derive(Clone, Debug)] pub struct MlDeleteJob<'a, 'b> { transport: &'a Transport, @@ -1607,7 +1607,7 @@ impl<'b> MlDeleteModelSnapshotParts<'b> { } } } -#[doc = "Builder for the [Ml Delete Model Snapshot API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-delete-snapshot.html)\n\nDeletes an existing model snapshot."] +#[doc = "Builder for the [Ml Delete Model Snapshot API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-delete-snapshot.html)\n\nDeletes an existing model snapshot."] #[derive(Clone, Debug)] pub struct MlDeleteModelSnapshot<'a, 'b> { transport: &'a Transport, @@ -1726,7 +1726,7 @@ impl<'b> MlDeleteTrainedModelParts<'b> { } } } -#[doc = "Builder for the [Ml Delete Trained Model API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-trained-models.html)\n\nDeletes an existing trained inference model that is currently not referenced by an ingest pipeline."] +#[doc = "Builder for the [Ml Delete Trained Model API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-trained-models.html)\n\nDeletes an existing trained inference model that is currently not referenced by an ingest pipeline."] #[derive(Clone, Debug)] pub struct MlDeleteTrainedModel<'a, 'b> { transport: &'a Transport, @@ -1869,7 +1869,7 @@ impl<'b> MlDeleteTrainedModelAliasParts<'b> { } } } -#[doc = "Builder for the [Ml Delete Trained Model Alias API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-trained-models-aliases.html)\n\nDeletes a model alias that refers to the trained model"] +#[doc = "Builder for the [Ml Delete Trained Model Alias API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-trained-models-aliases.html)\n\nDeletes a model alias that refers to the trained model"] #[derive(Clone, Debug)] pub struct MlDeleteTrainedModelAlias<'a, 'b> { transport: &'a Transport, @@ -1983,7 +1983,7 @@ impl MlEstimateModelMemoryParts { } } } -#[doc = "Builder for the [Ml Estimate Model Memory API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-apis.html)\n\nEstimates the model memory"] +#[doc = "Builder for the [Ml Estimate Model Memory API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-apis.html)\n\nEstimates the model memory"] #[derive(Clone, Debug)] pub struct MlEstimateModelMemory<'a, 'b, B> { transport: &'a Transport, @@ -2118,7 +2118,7 @@ impl MlEvaluateDataFrameParts { } } } -#[doc = "Builder for the [Ml Evaluate Data Frame API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/evaluate-dfanalytics.html)\n\nEvaluates the data frame analytics for an annotated index."] +#[doc = "Builder for the [Ml Evaluate Data Frame API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/evaluate-dfanalytics.html)\n\nEvaluates the data frame analytics for an annotated index."] #[derive(Clone, Debug)] pub struct MlEvaluateDataFrame<'a, 'b, B> { transport: &'a Transport, @@ -2263,7 +2263,7 @@ impl<'b> MlExplainDataFrameAnalyticsParts<'b> { } } } -#[doc = "Builder for the [Ml Explain Data Frame Analytics API](http://www.elastic.co/guide/en/elasticsearch/reference/9.0/explain-dfanalytics.html)\n\nExplains a data frame analytics config."] +#[doc = "Builder for the [Ml Explain Data Frame Analytics API](http://www.elastic.co/guide/en/elasticsearch/reference/9.1/explain-dfanalytics.html)\n\nExplains a data frame analytics config."] #[derive(Clone, Debug)] pub struct MlExplainDataFrameAnalytics<'a, 'b, B> { transport: &'a Transport, @@ -2409,7 +2409,7 @@ impl<'b> MlFlushJobParts<'b> { } } } -#[doc = "Builder for the [Ml Flush Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-flush-job.html)\n\nForces any buffered data to be processed by the job."] +#[doc = "Builder for the [Ml Flush Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-flush-job.html)\n\nForces any buffered data to be processed by the job."] #[derive(Clone, Debug)] pub struct MlFlushJob<'a, 'b, B> { transport: &'a Transport, @@ -2602,7 +2602,7 @@ impl<'b> MlForecastParts<'b> { } } } -#[doc = "Builder for the [Ml Forecast API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-forecast.html)\n\nPredicts the future behavior of a time series by using its historical behavior."] +#[doc = "Builder for the [Ml Forecast API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-forecast.html)\n\nPredicts the future behavior of a time series by using its historical behavior."] #[derive(Clone, Debug)] pub struct MlForecast<'a, 'b, B> { transport: &'a Transport, @@ -2790,7 +2790,7 @@ impl<'b> MlGetBucketsParts<'b> { } } } -#[doc = "Builder for the [Ml Get Buckets API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-get-bucket.html)\n\nRetrieves anomaly detection job results for one or more buckets."] +#[doc = "Builder for the [Ml Get Buckets API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-get-bucket.html)\n\nRetrieves anomaly detection job results for one or more buckets."] #[derive(Clone, Debug)] pub struct MlGetBuckets<'a, 'b, B> { transport: &'a Transport, @@ -3026,7 +3026,7 @@ impl<'b> MlGetCalendarEventsParts<'b> { } } } -#[doc = "Builder for the [Ml Get Calendar Events API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-get-calendar-event.html)\n\nRetrieves information about the scheduled events in calendars."] +#[doc = "Builder for the [Ml Get Calendar Events API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-get-calendar-event.html)\n\nRetrieves information about the scheduled events in calendars."] #[derive(Clone, Debug)] pub struct MlGetCalendarEvents<'a, 'b> { transport: &'a Transport, @@ -3193,7 +3193,7 @@ impl<'b> MlGetCalendarsParts<'b> { } } } -#[doc = "Builder for the [Ml Get Calendars API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-get-calendar.html)\n\nRetrieves configuration information for calendars."] +#[doc = "Builder for the [Ml Get Calendars API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-get-calendar.html)\n\nRetrieves configuration information for calendars."] #[derive(Clone, Debug)] pub struct MlGetCalendars<'a, 'b, B> { transport: &'a Transport, @@ -3376,7 +3376,7 @@ impl<'b> MlGetCategoriesParts<'b> { } } } -#[doc = "Builder for the [Ml Get Categories API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-get-category.html)\n\nRetrieves anomaly detection job results for one or more categories."] +#[doc = "Builder for the [Ml Get Categories API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-get-category.html)\n\nRetrieves anomaly detection job results for one or more categories."] #[derive(Clone, Debug)] pub struct MlGetCategories<'a, 'b, B> { transport: &'a Transport, @@ -3553,7 +3553,7 @@ impl<'b> MlGetDataFrameAnalyticsParts<'b> { } } } -#[doc = "Builder for the [Ml Get Data Frame Analytics API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-dfanalytics.html)\n\nRetrieves configuration information for data frame analytics jobs."] +#[doc = "Builder for the [Ml Get Data Frame Analytics API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-dfanalytics.html)\n\nRetrieves configuration information for data frame analytics jobs."] #[derive(Clone, Debug)] pub struct MlGetDataFrameAnalytics<'a, 'b> { transport: &'a Transport, @@ -3711,7 +3711,7 @@ impl<'b> MlGetDataFrameAnalyticsStatsParts<'b> { } } } -#[doc = "Builder for the [Ml Get Data Frame Analytics Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-dfanalytics-stats.html)\n\nRetrieves usage information for data frame analytics jobs."] +#[doc = "Builder for the [Ml Get Data Frame Analytics Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-dfanalytics-stats.html)\n\nRetrieves usage information for data frame analytics jobs."] #[derive(Clone, Debug)] pub struct MlGetDataFrameAnalyticsStats<'a, 'b> { transport: &'a Transport, @@ -3870,7 +3870,7 @@ impl<'b> MlGetDatafeedStatsParts<'b> { } } } -#[doc = "Builder for the [Ml Get Datafeed Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-get-datafeed-stats.html)\n\nRetrieves usage information for datafeeds."] +#[doc = "Builder for the [Ml Get Datafeed Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-get-datafeed-stats.html)\n\nRetrieves usage information for datafeeds."] #[derive(Clone, Debug)] pub struct MlGetDatafeedStats<'a, 'b> { transport: &'a Transport, @@ -4001,7 +4001,7 @@ impl<'b> MlGetDatafeedsParts<'b> { } } } -#[doc = "Builder for the [Ml Get Datafeeds API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-get-datafeed.html)\n\nRetrieves configuration information for datafeeds."] +#[doc = "Builder for the [Ml Get Datafeeds API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-get-datafeed.html)\n\nRetrieves configuration information for datafeeds."] #[derive(Clone, Debug)] pub struct MlGetDatafeeds<'a, 'b> { transport: &'a Transport, @@ -4141,7 +4141,7 @@ impl<'b> MlGetFiltersParts<'b> { } } } -#[doc = "Builder for the [Ml Get Filters API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-get-filter.html)\n\nRetrieves filters."] +#[doc = "Builder for the [Ml Get Filters API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-get-filter.html)\n\nRetrieves filters."] #[derive(Clone, Debug)] pub struct MlGetFilters<'a, 'b> { transport: &'a Transport, @@ -4279,7 +4279,7 @@ impl<'b> MlGetInfluencersParts<'b> { } } } -#[doc = "Builder for the [Ml Get Influencers API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-get-influencer.html)\n\nRetrieves anomaly detection job results for one or more influencers."] +#[doc = "Builder for the [Ml Get Influencers API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-get-influencer.html)\n\nRetrieves anomaly detection job results for one or more influencers."] #[derive(Clone, Debug)] pub struct MlGetInfluencers<'a, 'b, B> { transport: &'a Transport, @@ -4508,7 +4508,7 @@ impl<'b> MlGetJobStatsParts<'b> { } } } -#[doc = "Builder for the [Ml Get Job Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-get-job-stats.html)\n\nRetrieves usage information for anomaly detection jobs."] +#[doc = "Builder for the [Ml Get Job Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-get-job-stats.html)\n\nRetrieves usage information for anomaly detection jobs."] #[derive(Clone, Debug)] pub struct MlGetJobStats<'a, 'b> { transport: &'a Transport, @@ -4639,7 +4639,7 @@ impl<'b> MlGetJobsParts<'b> { } } } -#[doc = "Builder for the [Ml Get Jobs API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-get-job.html)\n\nRetrieves configuration information for anomaly detection jobs."] +#[doc = "Builder for the [Ml Get Jobs API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-get-job.html)\n\nRetrieves configuration information for anomaly detection jobs."] #[derive(Clone, Debug)] pub struct MlGetJobs<'a, 'b> { transport: &'a Transport, @@ -4780,7 +4780,7 @@ impl<'b> MlGetMemoryStatsParts<'b> { } } } -#[doc = "Builder for the [Ml Get Memory Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-ml-memory.html)\n\nReturns information on how ML is using memory."] +#[doc = "Builder for the [Ml Get Memory Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-ml-memory.html)\n\nReturns information on how ML is using memory."] #[derive(Clone, Debug)] pub struct MlGetMemoryStats<'a, 'b> { transport: &'a Transport, @@ -4924,7 +4924,7 @@ impl<'b> MlGetModelSnapshotUpgradeStatsParts<'b> { } } } -#[doc = "Builder for the [Ml Get Model Snapshot Upgrade Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-get-job-model-snapshot-upgrade-stats.html)\n\nGets stats for anomaly detection job model snapshot upgrades that are in progress."] +#[doc = "Builder for the [Ml Get Model Snapshot Upgrade Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-get-job-model-snapshot-upgrade-stats.html)\n\nGets stats for anomaly detection job model snapshot upgrades that are in progress."] #[derive(Clone, Debug)] pub struct MlGetModelSnapshotUpgradeStats<'a, 'b> { transport: &'a Transport, @@ -5069,7 +5069,7 @@ impl<'b> MlGetModelSnapshotsParts<'b> { } } } -#[doc = "Builder for the [Ml Get Model Snapshots API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-get-snapshot.html)\n\nRetrieves information about model snapshots."] +#[doc = "Builder for the [Ml Get Model Snapshots API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-get-snapshot.html)\n\nRetrieves information about model snapshots."] #[derive(Clone, Debug)] pub struct MlGetModelSnapshots<'a, 'b, B> { transport: &'a Transport, @@ -5275,7 +5275,7 @@ impl<'b> MlGetOverallBucketsParts<'b> { } } } -#[doc = "Builder for the [Ml Get Overall Buckets API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-get-overall-buckets.html)\n\nRetrieves overall bucket results that summarize the bucket results of multiple anomaly detection jobs."] +#[doc = "Builder for the [Ml Get Overall Buckets API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-get-overall-buckets.html)\n\nRetrieves overall bucket results that summarize the bucket results of multiple anomaly detection jobs."] #[derive(Clone, Debug)] pub struct MlGetOverallBuckets<'a, 'b, B> { transport: &'a Transport, @@ -5491,7 +5491,7 @@ impl<'b> MlGetRecordsParts<'b> { } } } -#[doc = "Builder for the [Ml Get Records API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-get-record.html)\n\nRetrieves anomaly records for an anomaly detection job."] +#[doc = "Builder for the [Ml Get Records API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-get-record.html)\n\nRetrieves anomaly records for an anomaly detection job."] #[derive(Clone, Debug)] pub struct MlGetRecords<'a, 'b, B> { transport: &'a Transport, @@ -5719,7 +5719,7 @@ impl<'b> MlGetTrainedModelsParts<'b> { } } } -#[doc = "Builder for the [Ml Get Trained Models API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-trained-models.html)\n\nRetrieves configuration information for a trained inference model."] +#[doc = "Builder for the [Ml Get Trained Models API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-trained-models.html)\n\nRetrieves configuration information for a trained inference model."] #[derive(Clone, Debug)] pub struct MlGetTrainedModels<'a, 'b> { transport: &'a Transport, @@ -5906,7 +5906,7 @@ impl<'b> MlGetTrainedModelsStatsParts<'b> { } } } -#[doc = "Builder for the [Ml Get Trained Models Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-trained-models-stats.html)\n\nRetrieves usage information for trained inference models."] +#[doc = "Builder for the [Ml Get Trained Models Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-trained-models-stats.html)\n\nRetrieves usage information for trained inference models."] #[derive(Clone, Debug)] pub struct MlGetTrainedModelsStats<'a, 'b> { transport: &'a Transport, @@ -6053,7 +6053,7 @@ impl<'b> MlInferTrainedModelParts<'b> { } } } -#[doc = "Builder for the [Ml Infer Trained Model API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-trained-model.html)\n\nEvaluate a trained model."] +#[doc = "Builder for the [Ml Infer Trained Model API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-trained-model.html)\n\nEvaluate a trained model."] #[derive(Clone, Debug)] pub struct MlInferTrainedModel<'a, 'b, B> { transport: &'a Transport, @@ -6198,7 +6198,7 @@ impl MlInfoParts { } } } -#[doc = "Builder for the [Ml Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-ml-info.html)\n\nReturns defaults and limits used by machine learning."] +#[doc = "Builder for the [Ml Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-ml-info.html)\n\nReturns defaults and limits used by machine learning."] #[derive(Clone, Debug)] pub struct MlInfo<'a, 'b> { transport: &'a Transport, @@ -6318,7 +6318,7 @@ impl<'b> MlOpenJobParts<'b> { } } } -#[doc = "Builder for the [Ml Open Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-open-job.html)\n\nOpens one or more anomaly detection jobs."] +#[doc = "Builder for the [Ml Open Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-open-job.html)\n\nOpens one or more anomaly detection jobs."] #[derive(Clone, Debug)] pub struct MlOpenJob<'a, 'b, B> { transport: &'a Transport, @@ -6461,7 +6461,7 @@ impl<'b> MlPostCalendarEventsParts<'b> { } } } -#[doc = "Builder for the [Ml Post Calendar Events API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-post-calendar-event.html)\n\nPosts scheduled events in a calendar."] +#[doc = "Builder for the [Ml Post Calendar Events API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-post-calendar-event.html)\n\nPosts scheduled events in a calendar."] #[derive(Clone, Debug)] pub struct MlPostCalendarEvents<'a, 'b, B> { transport: &'a Transport, @@ -6604,7 +6604,7 @@ impl<'b> MlPostDataParts<'b> { } } } -#[doc = "Builder for the [Ml Post Data API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-post-data.html)\n\nSends data to an anomaly detection job for analysis."] +#[doc = "Builder for the [Ml Post Data API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-post-data.html)\n\nSends data to an anomaly detection job for analysis."] #[derive(Clone, Debug)] pub struct MlPostData<'a, 'b, B> { transport: &'a Transport, @@ -6769,7 +6769,7 @@ impl<'b> MlPreviewDataFrameAnalyticsParts<'b> { } } } -#[doc = "Builder for the [Ml Preview Data Frame Analytics API](http://www.elastic.co/guide/en/elasticsearch/reference/9.0/preview-dfanalytics.html)\n\nPreviews that will be analyzed given a data frame analytics config."] +#[doc = "Builder for the [Ml Preview Data Frame Analytics API](http://www.elastic.co/guide/en/elasticsearch/reference/9.1/preview-dfanalytics.html)\n\nPreviews that will be analyzed given a data frame analytics config."] #[derive(Clone, Debug)] pub struct MlPreviewDataFrameAnalytics<'a, 'b, B> { transport: &'a Transport, @@ -6918,7 +6918,7 @@ impl<'b> MlPreviewDatafeedParts<'b> { } } } -#[doc = "Builder for the [Ml Preview Datafeed API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-preview-datafeed.html)\n\nPreviews a datafeed."] +#[doc = "Builder for the [Ml Preview Datafeed API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-preview-datafeed.html)\n\nPreviews a datafeed."] #[derive(Clone, Debug)] pub struct MlPreviewDatafeed<'a, 'b, B> { transport: &'a Transport, @@ -7083,7 +7083,7 @@ impl<'b> MlPutCalendarParts<'b> { } } } -#[doc = "Builder for the [Ml Put Calendar API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-put-calendar.html)\n\nInstantiates a calendar."] +#[doc = "Builder for the [Ml Put Calendar API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-put-calendar.html)\n\nInstantiates a calendar."] #[derive(Clone, Debug)] pub struct MlPutCalendar<'a, 'b, B> { transport: &'a Transport, @@ -7231,7 +7231,7 @@ impl<'b> MlPutCalendarJobParts<'b> { } } } -#[doc = "Builder for the [Ml Put Calendar Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-put-calendar-job.html)\n\nAdds an anomaly detection job to a calendar."] +#[doc = "Builder for the [Ml Put Calendar Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-put-calendar-job.html)\n\nAdds an anomaly detection job to a calendar."] #[derive(Clone, Debug)] pub struct MlPutCalendarJob<'a, 'b, B> { transport: &'a Transport, @@ -7372,7 +7372,7 @@ impl<'b> MlPutDataFrameAnalyticsParts<'b> { } } } -#[doc = "Builder for the [Ml Put Data Frame Analytics API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-dfanalytics.html)\n\nInstantiates a data frame analytics job."] +#[doc = "Builder for the [Ml Put Data Frame Analytics API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-dfanalytics.html)\n\nInstantiates a data frame analytics job."] #[derive(Clone, Debug)] pub struct MlPutDataFrameAnalytics<'a, 'b, B> { transport: &'a Transport, @@ -7514,7 +7514,7 @@ impl<'b> MlPutDatafeedParts<'b> { } } } -#[doc = "Builder for the [Ml Put Datafeed API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-put-datafeed.html)\n\nInstantiates a datafeed."] +#[doc = "Builder for the [Ml Put Datafeed API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-put-datafeed.html)\n\nInstantiates a datafeed."] #[derive(Clone, Debug)] pub struct MlPutDatafeed<'a, 'b, B> { transport: &'a Transport, @@ -7697,7 +7697,7 @@ impl<'b> MlPutFilterParts<'b> { } } } -#[doc = "Builder for the [Ml Put Filter API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-put-filter.html)\n\nInstantiates a filter."] +#[doc = "Builder for the [Ml Put Filter API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-put-filter.html)\n\nInstantiates a filter."] #[derive(Clone, Debug)] pub struct MlPutFilter<'a, 'b, B> { transport: &'a Transport, @@ -7839,7 +7839,7 @@ impl<'b> MlPutJobParts<'b> { } } } -#[doc = "Builder for the [Ml Put Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-put-job.html)\n\nInstantiates an anomaly detection job."] +#[doc = "Builder for the [Ml Put Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-put-job.html)\n\nInstantiates an anomaly detection job."] #[derive(Clone, Debug)] pub struct MlPutJob<'a, 'b, B> { transport: &'a Transport, @@ -8022,7 +8022,7 @@ impl<'b> MlPutTrainedModelParts<'b> { } } } -#[doc = "Builder for the [Ml Put Trained Model API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-trained-models.html)\n\nCreates an inference trained model."] +#[doc = "Builder for the [Ml Put Trained Model API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-trained-models.html)\n\nCreates an inference trained model."] #[derive(Clone, Debug)] pub struct MlPutTrainedModel<'a, 'b, B> { transport: &'a Transport, @@ -8190,7 +8190,7 @@ impl<'b> MlPutTrainedModelAliasParts<'b> { } } } -#[doc = "Builder for the [Ml Put Trained Model Alias API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-trained-models-aliases.html)\n\nCreates a new model alias (or reassigns an existing one) to refer to the trained model"] +#[doc = "Builder for the [Ml Put Trained Model Alias API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-trained-models-aliases.html)\n\nCreates a new model alias (or reassigns an existing one) to refer to the trained model"] #[derive(Clone, Debug)] pub struct MlPutTrainedModelAlias<'a, 'b, B> { transport: &'a Transport, @@ -8348,7 +8348,7 @@ impl<'b> MlPutTrainedModelDefinitionPartParts<'b> { } } } -#[doc = "Builder for the [Ml Put Trained Model Definition Part API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-trained-model-definition-part.html)\n\nCreates part of a trained model definition"] +#[doc = "Builder for the [Ml Put Trained Model Definition Part API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-trained-model-definition-part.html)\n\nCreates part of a trained model definition"] #[derive(Clone, Debug)] pub struct MlPutTrainedModelDefinitionPart<'a, 'b, B> { transport: &'a Transport, @@ -8491,7 +8491,7 @@ impl<'b> MlPutTrainedModelVocabularyParts<'b> { } } } -#[doc = "Builder for the [Ml Put Trained Model Vocabulary API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-trained-model-vocabulary.html)\n\nCreates a trained model vocabulary"] +#[doc = "Builder for the [Ml Put Trained Model Vocabulary API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-trained-model-vocabulary.html)\n\nCreates a trained model vocabulary"] #[derive(Clone, Debug)] pub struct MlPutTrainedModelVocabulary<'a, 'b, B> { transport: &'a Transport, @@ -8634,7 +8634,7 @@ impl<'b> MlResetJobParts<'b> { } } } -#[doc = "Builder for the [Ml Reset Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-reset-job.html)\n\nResets an existing anomaly detection job."] +#[doc = "Builder for the [Ml Reset Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-reset-job.html)\n\nResets an existing anomaly detection job."] #[derive(Clone, Debug)] pub struct MlResetJob<'a, 'b, B> { transport: &'a Transport, @@ -8803,7 +8803,7 @@ impl<'b> MlRevertModelSnapshotParts<'b> { } } } -#[doc = "Builder for the [Ml Revert Model Snapshot API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-revert-snapshot.html)\n\nReverts to a specific snapshot."] +#[doc = "Builder for the [Ml Revert Model Snapshot API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-revert-snapshot.html)\n\nReverts to a specific snapshot."] #[derive(Clone, Debug)] pub struct MlRevertModelSnapshot<'a, 'b, B> { transport: &'a Transport, @@ -8948,7 +8948,7 @@ impl MlSetUpgradeModeParts { } } } -#[doc = "Builder for the [Ml Set Upgrade Mode API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-set-upgrade-mode.html)\n\nSets a cluster wide upgrade_mode setting that prepares machine learning indices for an upgrade."] +#[doc = "Builder for the [Ml Set Upgrade Mode API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-set-upgrade-mode.html)\n\nSets a cluster wide upgrade_mode setting that prepares machine learning indices for an upgrade."] #[derive(Clone, Debug)] pub struct MlSetUpgradeMode<'a, 'b, B> { transport: &'a Transport, @@ -9110,7 +9110,7 @@ impl<'b> MlStartDataFrameAnalyticsParts<'b> { } } } -#[doc = "Builder for the [Ml Start Data Frame Analytics API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/start-dfanalytics.html)\n\nStarts a data frame analytics job."] +#[doc = "Builder for the [Ml Start Data Frame Analytics API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/start-dfanalytics.html)\n\nStarts a data frame analytics job."] #[derive(Clone, Debug)] pub struct MlStartDataFrameAnalytics<'a, 'b, B> { transport: &'a Transport, @@ -9263,7 +9263,7 @@ impl<'b> MlStartDatafeedParts<'b> { } } } -#[doc = "Builder for the [Ml Start Datafeed API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-start-datafeed.html)\n\nStarts one or more datafeeds."] +#[doc = "Builder for the [Ml Start Datafeed API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-start-datafeed.html)\n\nStarts one or more datafeeds."] #[derive(Clone, Debug)] pub struct MlStartDatafeed<'a, 'b, B> { transport: &'a Transport, @@ -9436,7 +9436,7 @@ impl<'b> MlStartTrainedModelDeploymentParts<'b> { } } } -#[doc = "Builder for the [Ml Start Trained Model Deployment API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/start-trained-model-deployment.html)\n\nStart a trained model deployment."] +#[doc = "Builder for the [Ml Start Trained Model Deployment API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/start-trained-model-deployment.html)\n\nStart a trained model deployment."] #[derive(Clone, Debug)] pub struct MlStartTrainedModelDeployment<'a, 'b, B> { transport: &'a Transport, @@ -9658,7 +9658,7 @@ impl<'b> MlStopDataFrameAnalyticsParts<'b> { } } } -#[doc = "Builder for the [Ml Stop Data Frame Analytics API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/stop-dfanalytics.html)\n\nStops one or more data frame analytics jobs."] +#[doc = "Builder for the [Ml Stop Data Frame Analytics API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/stop-dfanalytics.html)\n\nStops one or more data frame analytics jobs."] #[derive(Clone, Debug)] pub struct MlStopDataFrameAnalytics<'a, 'b, B> { transport: &'a Transport, @@ -9831,7 +9831,7 @@ impl<'b> MlStopDatafeedParts<'b> { } } } -#[doc = "Builder for the [Ml Stop Datafeed API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-stop-datafeed.html)\n\nStops one or more datafeeds."] +#[doc = "Builder for the [Ml Stop Datafeed API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-stop-datafeed.html)\n\nStops one or more datafeeds."] #[derive(Clone, Debug)] pub struct MlStopDatafeed<'a, 'b, B> { transport: &'a Transport, @@ -10004,7 +10004,7 @@ impl<'b> MlStopTrainedModelDeploymentParts<'b> { } } } -#[doc = "Builder for the [Ml Stop Trained Model Deployment API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/stop-trained-model-deployment.html)\n\nStop a trained model deployment."] +#[doc = "Builder for the [Ml Stop Trained Model Deployment API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/stop-trained-model-deployment.html)\n\nStop a trained model deployment."] #[derive(Clone, Debug)] pub struct MlStopTrainedModelDeployment<'a, 'b, B> { transport: &'a Transport, @@ -10166,7 +10166,7 @@ impl<'b> MlUpdateDataFrameAnalyticsParts<'b> { } } } -#[doc = "Builder for the [Ml Update Data Frame Analytics API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-dfanalytics.html)\n\nUpdates certain properties of a data frame analytics job."] +#[doc = "Builder for the [Ml Update Data Frame Analytics API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-dfanalytics.html)\n\nUpdates certain properties of a data frame analytics job."] #[derive(Clone, Debug)] pub struct MlUpdateDataFrameAnalytics<'a, 'b, B> { transport: &'a Transport, @@ -10309,7 +10309,7 @@ impl<'b> MlUpdateDatafeedParts<'b> { } } } -#[doc = "Builder for the [Ml Update Datafeed API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-update-datafeed.html)\n\nUpdates certain properties of a datafeed."] +#[doc = "Builder for the [Ml Update Datafeed API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-update-datafeed.html)\n\nUpdates certain properties of a datafeed."] #[derive(Clone, Debug)] pub struct MlUpdateDatafeed<'a, 'b, B> { transport: &'a Transport, @@ -10493,7 +10493,7 @@ impl<'b> MlUpdateFilterParts<'b> { } } } -#[doc = "Builder for the [Ml Update Filter API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-update-filter.html)\n\nUpdates the description of a filter, adds items, or removes items."] +#[doc = "Builder for the [Ml Update Filter API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-update-filter.html)\n\nUpdates the description of a filter, adds items, or removes items."] #[derive(Clone, Debug)] pub struct MlUpdateFilter<'a, 'b, B> { transport: &'a Transport, @@ -10636,7 +10636,7 @@ impl<'b> MlUpdateJobParts<'b> { } } } -#[doc = "Builder for the [Ml Update Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-update-job.html)\n\nUpdates certain properties of an anomaly detection job."] +#[doc = "Builder for the [Ml Update Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-update-job.html)\n\nUpdates certain properties of an anomaly detection job."] #[derive(Clone, Debug)] pub struct MlUpdateJob<'a, 'b, B> { transport: &'a Transport, @@ -10785,7 +10785,7 @@ impl<'b> MlUpdateModelSnapshotParts<'b> { } } } -#[doc = "Builder for the [Ml Update Model Snapshot API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-update-snapshot.html)\n\nUpdates certain properties of a snapshot."] +#[doc = "Builder for the [Ml Update Model Snapshot API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-update-snapshot.html)\n\nUpdates certain properties of a snapshot."] #[derive(Clone, Debug)] pub struct MlUpdateModelSnapshot<'a, 'b, B> { transport: &'a Transport, @@ -10928,7 +10928,7 @@ impl<'b> MlUpdateTrainedModelDeploymentParts<'b> { } } } -#[doc = "Builder for the [Ml Update Trained Model Deployment API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-trained-model-deployment.html)\n\nUpdates certain properties of trained model deployment."] +#[doc = "Builder for the [Ml Update Trained Model Deployment API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-trained-model-deployment.html)\n\nUpdates certain properties of trained model deployment."] #[derive(Clone, Debug)] pub struct MlUpdateTrainedModelDeployment<'a, 'b, B> { transport: &'a Transport, @@ -11087,7 +11087,7 @@ impl<'b> MlUpgradeJobSnapshotParts<'b> { } } } -#[doc = "Builder for the [Ml Upgrade Job Snapshot API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-upgrade-job-model-snapshot.html)\n\nUpgrades a given job snapshot to the current major version."] +#[doc = "Builder for the [Ml Upgrade Job Snapshot API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-upgrade-job-model-snapshot.html)\n\nUpgrades a given job snapshot to the current major version."] #[derive(Clone, Debug)] pub struct MlUpgradeJobSnapshot<'a, 'b, B> { transport: &'a Transport, @@ -11242,7 +11242,7 @@ impl MlValidateParts { } } } -#[doc = "Builder for the [Ml Validate API](https://www.elastic.co/guide/en/machine-learning/9.0/ml-jobs.html)\n\nValidates an anomaly detection job."] +#[doc = "Builder for the [Ml Validate API](https://www.elastic.co/guide/en/machine-learning/9.1/ml-jobs.html)\n\nValidates an anomaly detection job."] #[derive(Clone, Debug)] pub struct MlValidate<'a, 'b, B> { transport: &'a Transport, @@ -11377,7 +11377,7 @@ impl MlValidateDetectorParts { } } } -#[doc = "Builder for the [Ml Validate Detector API](https://www.elastic.co/guide/en/machine-learning/9.0/ml-jobs.html)\n\nValidates an anomaly detection detector."] +#[doc = "Builder for the [Ml Validate Detector API](https://www.elastic.co/guide/en/machine-learning/9.1/ml-jobs.html)\n\nValidates an anomaly detection detector."] #[derive(Clone, Debug)] pub struct MlValidateDetector<'a, 'b, B> { transport: &'a Transport, @@ -11510,439 +11510,439 @@ impl<'a> Ml<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Ml Clear Trained Model Deployment Cache API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/clear-trained-model-deployment-cache.html)\n\nClear the cached results from a trained model deployment"] + #[doc = "[Ml Clear Trained Model Deployment Cache API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/clear-trained-model-deployment-cache.html)\n\nClear the cached results from a trained model deployment"] pub fn clear_trained_model_deployment_cache<'b>( &'a self, parts: MlClearTrainedModelDeploymentCacheParts<'b>, ) -> MlClearTrainedModelDeploymentCache<'a, 'b, ()> { MlClearTrainedModelDeploymentCache::new(self.transport(), parts) } - #[doc = "[Ml Close Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-close-job.html)\n\nCloses one or more anomaly detection jobs. A job can be opened and closed multiple times throughout its lifecycle."] + #[doc = "[Ml Close Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-close-job.html)\n\nCloses one or more anomaly detection jobs. A job can be opened and closed multiple times throughout its lifecycle."] pub fn close_job<'b>(&'a self, parts: MlCloseJobParts<'b>) -> MlCloseJob<'a, 'b, ()> { MlCloseJob::new(self.transport(), parts) } - #[doc = "[Ml Delete Calendar API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-delete-calendar.html)\n\nDeletes a calendar."] + #[doc = "[Ml Delete Calendar API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-delete-calendar.html)\n\nDeletes a calendar."] pub fn delete_calendar<'b>( &'a self, parts: MlDeleteCalendarParts<'b>, ) -> MlDeleteCalendar<'a, 'b> { MlDeleteCalendar::new(self.transport(), parts) } - #[doc = "[Ml Delete Calendar Event API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-delete-calendar-event.html)\n\nDeletes scheduled events from a calendar."] + #[doc = "[Ml Delete Calendar Event API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-delete-calendar-event.html)\n\nDeletes scheduled events from a calendar."] pub fn delete_calendar_event<'b>( &'a self, parts: MlDeleteCalendarEventParts<'b>, ) -> MlDeleteCalendarEvent<'a, 'b> { MlDeleteCalendarEvent::new(self.transport(), parts) } - #[doc = "[Ml Delete Calendar Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-delete-calendar-job.html)\n\nDeletes anomaly detection jobs from a calendar."] + #[doc = "[Ml Delete Calendar Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-delete-calendar-job.html)\n\nDeletes anomaly detection jobs from a calendar."] pub fn delete_calendar_job<'b>( &'a self, parts: MlDeleteCalendarJobParts<'b>, ) -> MlDeleteCalendarJob<'a, 'b> { MlDeleteCalendarJob::new(self.transport(), parts) } - #[doc = "[Ml Delete Data Frame Analytics API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-dfanalytics.html)\n\nDeletes an existing data frame analytics job."] + #[doc = "[Ml Delete Data Frame Analytics API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-dfanalytics.html)\n\nDeletes an existing data frame analytics job."] pub fn delete_data_frame_analytics<'b>( &'a self, parts: MlDeleteDataFrameAnalyticsParts<'b>, ) -> MlDeleteDataFrameAnalytics<'a, 'b> { MlDeleteDataFrameAnalytics::new(self.transport(), parts) } - #[doc = "[Ml Delete Datafeed API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-delete-datafeed.html)\n\nDeletes an existing datafeed."] + #[doc = "[Ml Delete Datafeed API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-delete-datafeed.html)\n\nDeletes an existing datafeed."] pub fn delete_datafeed<'b>( &'a self, parts: MlDeleteDatafeedParts<'b>, ) -> MlDeleteDatafeed<'a, 'b> { MlDeleteDatafeed::new(self.transport(), parts) } - #[doc = "[Ml Delete Expired Data API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-delete-expired-data.html)\n\nDeletes expired and unused machine learning data."] + #[doc = "[Ml Delete Expired Data API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-delete-expired-data.html)\n\nDeletes expired and unused machine learning data."] pub fn delete_expired_data<'b>( &'a self, parts: MlDeleteExpiredDataParts<'b>, ) -> MlDeleteExpiredData<'a, 'b, ()> { MlDeleteExpiredData::new(self.transport(), parts) } - #[doc = "[Ml Delete Filter API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-delete-filter.html)\n\nDeletes a filter."] + #[doc = "[Ml Delete Filter API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-delete-filter.html)\n\nDeletes a filter."] pub fn delete_filter<'b>(&'a self, parts: MlDeleteFilterParts<'b>) -> MlDeleteFilter<'a, 'b> { MlDeleteFilter::new(self.transport(), parts) } - #[doc = "[Ml Delete Forecast API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-delete-forecast.html)\n\nDeletes forecasts from a machine learning job."] + #[doc = "[Ml Delete Forecast API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-delete-forecast.html)\n\nDeletes forecasts from a machine learning job."] pub fn delete_forecast<'b>( &'a self, parts: MlDeleteForecastParts<'b>, ) -> MlDeleteForecast<'a, 'b> { MlDeleteForecast::new(self.transport(), parts) } - #[doc = "[Ml Delete Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-delete-job.html)\n\nDeletes an existing anomaly detection job."] + #[doc = "[Ml Delete Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-delete-job.html)\n\nDeletes an existing anomaly detection job."] pub fn delete_job<'b>(&'a self, parts: MlDeleteJobParts<'b>) -> MlDeleteJob<'a, 'b> { MlDeleteJob::new(self.transport(), parts) } - #[doc = "[Ml Delete Model Snapshot API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-delete-snapshot.html)\n\nDeletes an existing model snapshot."] + #[doc = "[Ml Delete Model Snapshot API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-delete-snapshot.html)\n\nDeletes an existing model snapshot."] pub fn delete_model_snapshot<'b>( &'a self, parts: MlDeleteModelSnapshotParts<'b>, ) -> MlDeleteModelSnapshot<'a, 'b> { MlDeleteModelSnapshot::new(self.transport(), parts) } - #[doc = "[Ml Delete Trained Model API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-trained-models.html)\n\nDeletes an existing trained inference model that is currently not referenced by an ingest pipeline."] + #[doc = "[Ml Delete Trained Model API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-trained-models.html)\n\nDeletes an existing trained inference model that is currently not referenced by an ingest pipeline."] pub fn delete_trained_model<'b>( &'a self, parts: MlDeleteTrainedModelParts<'b>, ) -> MlDeleteTrainedModel<'a, 'b> { MlDeleteTrainedModel::new(self.transport(), parts) } - #[doc = "[Ml Delete Trained Model Alias API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-trained-models-aliases.html)\n\nDeletes a model alias that refers to the trained model"] + #[doc = "[Ml Delete Trained Model Alias API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-trained-models-aliases.html)\n\nDeletes a model alias that refers to the trained model"] pub fn delete_trained_model_alias<'b>( &'a self, parts: MlDeleteTrainedModelAliasParts<'b>, ) -> MlDeleteTrainedModelAlias<'a, 'b> { MlDeleteTrainedModelAlias::new(self.transport(), parts) } - #[doc = "[Ml Estimate Model Memory API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-apis.html)\n\nEstimates the model memory"] + #[doc = "[Ml Estimate Model Memory API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-apis.html)\n\nEstimates the model memory"] pub fn estimate_model_memory<'b>(&'a self) -> MlEstimateModelMemory<'a, 'b, ()> { MlEstimateModelMemory::new(self.transport()) } - #[doc = "[Ml Evaluate Data Frame API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/evaluate-dfanalytics.html)\n\nEvaluates the data frame analytics for an annotated index."] + #[doc = "[Ml Evaluate Data Frame API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/evaluate-dfanalytics.html)\n\nEvaluates the data frame analytics for an annotated index."] pub fn evaluate_data_frame<'b>(&'a self) -> MlEvaluateDataFrame<'a, 'b, ()> { MlEvaluateDataFrame::new(self.transport()) } - #[doc = "[Ml Explain Data Frame Analytics API](http://www.elastic.co/guide/en/elasticsearch/reference/9.0/explain-dfanalytics.html)\n\nExplains a data frame analytics config."] + #[doc = "[Ml Explain Data Frame Analytics API](http://www.elastic.co/guide/en/elasticsearch/reference/9.1/explain-dfanalytics.html)\n\nExplains a data frame analytics config."] pub fn explain_data_frame_analytics<'b>( &'a self, parts: MlExplainDataFrameAnalyticsParts<'b>, ) -> MlExplainDataFrameAnalytics<'a, 'b, ()> { MlExplainDataFrameAnalytics::new(self.transport(), parts) } - #[doc = "[Ml Flush Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-flush-job.html)\n\nForces any buffered data to be processed by the job."] + #[doc = "[Ml Flush Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-flush-job.html)\n\nForces any buffered data to be processed by the job."] pub fn flush_job<'b>(&'a self, parts: MlFlushJobParts<'b>) -> MlFlushJob<'a, 'b, ()> { MlFlushJob::new(self.transport(), parts) } - #[doc = "[Ml Forecast API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-forecast.html)\n\nPredicts the future behavior of a time series by using its historical behavior."] + #[doc = "[Ml Forecast API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-forecast.html)\n\nPredicts the future behavior of a time series by using its historical behavior."] pub fn forecast<'b>(&'a self, parts: MlForecastParts<'b>) -> MlForecast<'a, 'b, ()> { MlForecast::new(self.transport(), parts) } - #[doc = "[Ml Get Buckets API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-get-bucket.html)\n\nRetrieves anomaly detection job results for one or more buckets."] + #[doc = "[Ml Get Buckets API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-get-bucket.html)\n\nRetrieves anomaly detection job results for one or more buckets."] pub fn get_buckets<'b>(&'a self, parts: MlGetBucketsParts<'b>) -> MlGetBuckets<'a, 'b, ()> { MlGetBuckets::new(self.transport(), parts) } - #[doc = "[Ml Get Calendar Events API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-get-calendar-event.html)\n\nRetrieves information about the scheduled events in calendars."] + #[doc = "[Ml Get Calendar Events API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-get-calendar-event.html)\n\nRetrieves information about the scheduled events in calendars."] pub fn get_calendar_events<'b>( &'a self, parts: MlGetCalendarEventsParts<'b>, ) -> MlGetCalendarEvents<'a, 'b> { MlGetCalendarEvents::new(self.transport(), parts) } - #[doc = "[Ml Get Calendars API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-get-calendar.html)\n\nRetrieves configuration information for calendars."] + #[doc = "[Ml Get Calendars API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-get-calendar.html)\n\nRetrieves configuration information for calendars."] pub fn get_calendars<'b>( &'a self, parts: MlGetCalendarsParts<'b>, ) -> MlGetCalendars<'a, 'b, ()> { MlGetCalendars::new(self.transport(), parts) } - #[doc = "[Ml Get Categories API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-get-category.html)\n\nRetrieves anomaly detection job results for one or more categories."] + #[doc = "[Ml Get Categories API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-get-category.html)\n\nRetrieves anomaly detection job results for one or more categories."] pub fn get_categories<'b>( &'a self, parts: MlGetCategoriesParts<'b>, ) -> MlGetCategories<'a, 'b, ()> { MlGetCategories::new(self.transport(), parts) } - #[doc = "[Ml Get Data Frame Analytics API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-dfanalytics.html)\n\nRetrieves configuration information for data frame analytics jobs."] + #[doc = "[Ml Get Data Frame Analytics API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-dfanalytics.html)\n\nRetrieves configuration information for data frame analytics jobs."] pub fn get_data_frame_analytics<'b>( &'a self, parts: MlGetDataFrameAnalyticsParts<'b>, ) -> MlGetDataFrameAnalytics<'a, 'b> { MlGetDataFrameAnalytics::new(self.transport(), parts) } - #[doc = "[Ml Get Data Frame Analytics Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-dfanalytics-stats.html)\n\nRetrieves usage information for data frame analytics jobs."] + #[doc = "[Ml Get Data Frame Analytics Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-dfanalytics-stats.html)\n\nRetrieves usage information for data frame analytics jobs."] pub fn get_data_frame_analytics_stats<'b>( &'a self, parts: MlGetDataFrameAnalyticsStatsParts<'b>, ) -> MlGetDataFrameAnalyticsStats<'a, 'b> { MlGetDataFrameAnalyticsStats::new(self.transport(), parts) } - #[doc = "[Ml Get Datafeed Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-get-datafeed-stats.html)\n\nRetrieves usage information for datafeeds."] + #[doc = "[Ml Get Datafeed Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-get-datafeed-stats.html)\n\nRetrieves usage information for datafeeds."] pub fn get_datafeed_stats<'b>( &'a self, parts: MlGetDatafeedStatsParts<'b>, ) -> MlGetDatafeedStats<'a, 'b> { MlGetDatafeedStats::new(self.transport(), parts) } - #[doc = "[Ml Get Datafeeds API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-get-datafeed.html)\n\nRetrieves configuration information for datafeeds."] + #[doc = "[Ml Get Datafeeds API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-get-datafeed.html)\n\nRetrieves configuration information for datafeeds."] pub fn get_datafeeds<'b>(&'a self, parts: MlGetDatafeedsParts<'b>) -> MlGetDatafeeds<'a, 'b> { MlGetDatafeeds::new(self.transport(), parts) } - #[doc = "[Ml Get Filters API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-get-filter.html)\n\nRetrieves filters."] + #[doc = "[Ml Get Filters API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-get-filter.html)\n\nRetrieves filters."] pub fn get_filters<'b>(&'a self, parts: MlGetFiltersParts<'b>) -> MlGetFilters<'a, 'b> { MlGetFilters::new(self.transport(), parts) } - #[doc = "[Ml Get Influencers API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-get-influencer.html)\n\nRetrieves anomaly detection job results for one or more influencers."] + #[doc = "[Ml Get Influencers API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-get-influencer.html)\n\nRetrieves anomaly detection job results for one or more influencers."] pub fn get_influencers<'b>( &'a self, parts: MlGetInfluencersParts<'b>, ) -> MlGetInfluencers<'a, 'b, ()> { MlGetInfluencers::new(self.transport(), parts) } - #[doc = "[Ml Get Job Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-get-job-stats.html)\n\nRetrieves usage information for anomaly detection jobs."] + #[doc = "[Ml Get Job Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-get-job-stats.html)\n\nRetrieves usage information for anomaly detection jobs."] pub fn get_job_stats<'b>(&'a self, parts: MlGetJobStatsParts<'b>) -> MlGetJobStats<'a, 'b> { MlGetJobStats::new(self.transport(), parts) } - #[doc = "[Ml Get Jobs API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-get-job.html)\n\nRetrieves configuration information for anomaly detection jobs."] + #[doc = "[Ml Get Jobs API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-get-job.html)\n\nRetrieves configuration information for anomaly detection jobs."] pub fn get_jobs<'b>(&'a self, parts: MlGetJobsParts<'b>) -> MlGetJobs<'a, 'b> { MlGetJobs::new(self.transport(), parts) } - #[doc = "[Ml Get Memory Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-ml-memory.html)\n\nReturns information on how ML is using memory."] + #[doc = "[Ml Get Memory Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-ml-memory.html)\n\nReturns information on how ML is using memory."] pub fn get_memory_stats<'b>( &'a self, parts: MlGetMemoryStatsParts<'b>, ) -> MlGetMemoryStats<'a, 'b> { MlGetMemoryStats::new(self.transport(), parts) } - #[doc = "[Ml Get Model Snapshot Upgrade Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-get-job-model-snapshot-upgrade-stats.html)\n\nGets stats for anomaly detection job model snapshot upgrades that are in progress."] + #[doc = "[Ml Get Model Snapshot Upgrade Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-get-job-model-snapshot-upgrade-stats.html)\n\nGets stats for anomaly detection job model snapshot upgrades that are in progress."] pub fn get_model_snapshot_upgrade_stats<'b>( &'a self, parts: MlGetModelSnapshotUpgradeStatsParts<'b>, ) -> MlGetModelSnapshotUpgradeStats<'a, 'b> { MlGetModelSnapshotUpgradeStats::new(self.transport(), parts) } - #[doc = "[Ml Get Model Snapshots API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-get-snapshot.html)\n\nRetrieves information about model snapshots."] + #[doc = "[Ml Get Model Snapshots API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-get-snapshot.html)\n\nRetrieves information about model snapshots."] pub fn get_model_snapshots<'b>( &'a self, parts: MlGetModelSnapshotsParts<'b>, ) -> MlGetModelSnapshots<'a, 'b, ()> { MlGetModelSnapshots::new(self.transport(), parts) } - #[doc = "[Ml Get Overall Buckets API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-get-overall-buckets.html)\n\nRetrieves overall bucket results that summarize the bucket results of multiple anomaly detection jobs."] + #[doc = "[Ml Get Overall Buckets API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-get-overall-buckets.html)\n\nRetrieves overall bucket results that summarize the bucket results of multiple anomaly detection jobs."] pub fn get_overall_buckets<'b>( &'a self, parts: MlGetOverallBucketsParts<'b>, ) -> MlGetOverallBuckets<'a, 'b, ()> { MlGetOverallBuckets::new(self.transport(), parts) } - #[doc = "[Ml Get Records API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-get-record.html)\n\nRetrieves anomaly records for an anomaly detection job."] + #[doc = "[Ml Get Records API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-get-record.html)\n\nRetrieves anomaly records for an anomaly detection job."] pub fn get_records<'b>(&'a self, parts: MlGetRecordsParts<'b>) -> MlGetRecords<'a, 'b, ()> { MlGetRecords::new(self.transport(), parts) } - #[doc = "[Ml Get Trained Models API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-trained-models.html)\n\nRetrieves configuration information for a trained inference model."] + #[doc = "[Ml Get Trained Models API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-trained-models.html)\n\nRetrieves configuration information for a trained inference model."] pub fn get_trained_models<'b>( &'a self, parts: MlGetTrainedModelsParts<'b>, ) -> MlGetTrainedModels<'a, 'b> { MlGetTrainedModels::new(self.transport(), parts) } - #[doc = "[Ml Get Trained Models Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-trained-models-stats.html)\n\nRetrieves usage information for trained inference models."] + #[doc = "[Ml Get Trained Models Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-trained-models-stats.html)\n\nRetrieves usage information for trained inference models."] pub fn get_trained_models_stats<'b>( &'a self, parts: MlGetTrainedModelsStatsParts<'b>, ) -> MlGetTrainedModelsStats<'a, 'b> { MlGetTrainedModelsStats::new(self.transport(), parts) } - #[doc = "[Ml Infer Trained Model API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/infer-trained-model.html)\n\nEvaluate a trained model."] + #[doc = "[Ml Infer Trained Model API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/infer-trained-model.html)\n\nEvaluate a trained model."] pub fn infer_trained_model<'b>( &'a self, parts: MlInferTrainedModelParts<'b>, ) -> MlInferTrainedModel<'a, 'b, ()> { MlInferTrainedModel::new(self.transport(), parts) } - #[doc = "[Ml Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-ml-info.html)\n\nReturns defaults and limits used by machine learning."] + #[doc = "[Ml Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-ml-info.html)\n\nReturns defaults and limits used by machine learning."] pub fn info<'b>(&'a self) -> MlInfo<'a, 'b> { MlInfo::new(self.transport()) } - #[doc = "[Ml Open Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-open-job.html)\n\nOpens one or more anomaly detection jobs."] + #[doc = "[Ml Open Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-open-job.html)\n\nOpens one or more anomaly detection jobs."] pub fn open_job<'b>(&'a self, parts: MlOpenJobParts<'b>) -> MlOpenJob<'a, 'b, ()> { MlOpenJob::new(self.transport(), parts) } - #[doc = "[Ml Post Calendar Events API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-post-calendar-event.html)\n\nPosts scheduled events in a calendar."] + #[doc = "[Ml Post Calendar Events API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-post-calendar-event.html)\n\nPosts scheduled events in a calendar."] pub fn post_calendar_events<'b>( &'a self, parts: MlPostCalendarEventsParts<'b>, ) -> MlPostCalendarEvents<'a, 'b, ()> { MlPostCalendarEvents::new(self.transport(), parts) } - #[doc = "[Ml Post Data API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-post-data.html)\n\nSends data to an anomaly detection job for analysis."] + #[doc = "[Ml Post Data API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-post-data.html)\n\nSends data to an anomaly detection job for analysis."] pub fn post_data<'b>(&'a self, parts: MlPostDataParts<'b>) -> MlPostData<'a, 'b, ()> { MlPostData::new(self.transport(), parts) } - #[doc = "[Ml Preview Data Frame Analytics API](http://www.elastic.co/guide/en/elasticsearch/reference/9.0/preview-dfanalytics.html)\n\nPreviews that will be analyzed given a data frame analytics config."] + #[doc = "[Ml Preview Data Frame Analytics API](http://www.elastic.co/guide/en/elasticsearch/reference/9.1/preview-dfanalytics.html)\n\nPreviews that will be analyzed given a data frame analytics config."] pub fn preview_data_frame_analytics<'b>( &'a self, parts: MlPreviewDataFrameAnalyticsParts<'b>, ) -> MlPreviewDataFrameAnalytics<'a, 'b, ()> { MlPreviewDataFrameAnalytics::new(self.transport(), parts) } - #[doc = "[Ml Preview Datafeed API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-preview-datafeed.html)\n\nPreviews a datafeed."] + #[doc = "[Ml Preview Datafeed API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-preview-datafeed.html)\n\nPreviews a datafeed."] pub fn preview_datafeed<'b>( &'a self, parts: MlPreviewDatafeedParts<'b>, ) -> MlPreviewDatafeed<'a, 'b, ()> { MlPreviewDatafeed::new(self.transport(), parts) } - #[doc = "[Ml Put Calendar API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-put-calendar.html)\n\nInstantiates a calendar."] + #[doc = "[Ml Put Calendar API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-put-calendar.html)\n\nInstantiates a calendar."] pub fn put_calendar<'b>(&'a self, parts: MlPutCalendarParts<'b>) -> MlPutCalendar<'a, 'b, ()> { MlPutCalendar::new(self.transport(), parts) } - #[doc = "[Ml Put Calendar Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-put-calendar-job.html)\n\nAdds an anomaly detection job to a calendar."] + #[doc = "[Ml Put Calendar Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-put-calendar-job.html)\n\nAdds an anomaly detection job to a calendar."] pub fn put_calendar_job<'b>( &'a self, parts: MlPutCalendarJobParts<'b>, ) -> MlPutCalendarJob<'a, 'b, ()> { MlPutCalendarJob::new(self.transport(), parts) } - #[doc = "[Ml Put Data Frame Analytics API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-dfanalytics.html)\n\nInstantiates a data frame analytics job."] + #[doc = "[Ml Put Data Frame Analytics API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-dfanalytics.html)\n\nInstantiates a data frame analytics job."] pub fn put_data_frame_analytics<'b>( &'a self, parts: MlPutDataFrameAnalyticsParts<'b>, ) -> MlPutDataFrameAnalytics<'a, 'b, ()> { MlPutDataFrameAnalytics::new(self.transport(), parts) } - #[doc = "[Ml Put Datafeed API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-put-datafeed.html)\n\nInstantiates a datafeed."] + #[doc = "[Ml Put Datafeed API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-put-datafeed.html)\n\nInstantiates a datafeed."] pub fn put_datafeed<'b>(&'a self, parts: MlPutDatafeedParts<'b>) -> MlPutDatafeed<'a, 'b, ()> { MlPutDatafeed::new(self.transport(), parts) } - #[doc = "[Ml Put Filter API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-put-filter.html)\n\nInstantiates a filter."] + #[doc = "[Ml Put Filter API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-put-filter.html)\n\nInstantiates a filter."] pub fn put_filter<'b>(&'a self, parts: MlPutFilterParts<'b>) -> MlPutFilter<'a, 'b, ()> { MlPutFilter::new(self.transport(), parts) } - #[doc = "[Ml Put Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-put-job.html)\n\nInstantiates an anomaly detection job."] + #[doc = "[Ml Put Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-put-job.html)\n\nInstantiates an anomaly detection job."] pub fn put_job<'b>(&'a self, parts: MlPutJobParts<'b>) -> MlPutJob<'a, 'b, ()> { MlPutJob::new(self.transport(), parts) } - #[doc = "[Ml Put Trained Model API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-trained-models.html)\n\nCreates an inference trained model."] + #[doc = "[Ml Put Trained Model API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-trained-models.html)\n\nCreates an inference trained model."] pub fn put_trained_model<'b>( &'a self, parts: MlPutTrainedModelParts<'b>, ) -> MlPutTrainedModel<'a, 'b, ()> { MlPutTrainedModel::new(self.transport(), parts) } - #[doc = "[Ml Put Trained Model Alias API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-trained-models-aliases.html)\n\nCreates a new model alias (or reassigns an existing one) to refer to the trained model"] + #[doc = "[Ml Put Trained Model Alias API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-trained-models-aliases.html)\n\nCreates a new model alias (or reassigns an existing one) to refer to the trained model"] pub fn put_trained_model_alias<'b>( &'a self, parts: MlPutTrainedModelAliasParts<'b>, ) -> MlPutTrainedModelAlias<'a, 'b, ()> { MlPutTrainedModelAlias::new(self.transport(), parts) } - #[doc = "[Ml Put Trained Model Definition Part API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-trained-model-definition-part.html)\n\nCreates part of a trained model definition"] + #[doc = "[Ml Put Trained Model Definition Part API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-trained-model-definition-part.html)\n\nCreates part of a trained model definition"] pub fn put_trained_model_definition_part<'b>( &'a self, parts: MlPutTrainedModelDefinitionPartParts<'b>, ) -> MlPutTrainedModelDefinitionPart<'a, 'b, ()> { MlPutTrainedModelDefinitionPart::new(self.transport(), parts) } - #[doc = "[Ml Put Trained Model Vocabulary API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-trained-model-vocabulary.html)\n\nCreates a trained model vocabulary"] + #[doc = "[Ml Put Trained Model Vocabulary API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-trained-model-vocabulary.html)\n\nCreates a trained model vocabulary"] pub fn put_trained_model_vocabulary<'b>( &'a self, parts: MlPutTrainedModelVocabularyParts<'b>, ) -> MlPutTrainedModelVocabulary<'a, 'b, ()> { MlPutTrainedModelVocabulary::new(self.transport(), parts) } - #[doc = "[Ml Reset Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-reset-job.html)\n\nResets an existing anomaly detection job."] + #[doc = "[Ml Reset Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-reset-job.html)\n\nResets an existing anomaly detection job."] pub fn reset_job<'b>(&'a self, parts: MlResetJobParts<'b>) -> MlResetJob<'a, 'b, ()> { MlResetJob::new(self.transport(), parts) } - #[doc = "[Ml Revert Model Snapshot API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-revert-snapshot.html)\n\nReverts to a specific snapshot."] + #[doc = "[Ml Revert Model Snapshot API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-revert-snapshot.html)\n\nReverts to a specific snapshot."] pub fn revert_model_snapshot<'b>( &'a self, parts: MlRevertModelSnapshotParts<'b>, ) -> MlRevertModelSnapshot<'a, 'b, ()> { MlRevertModelSnapshot::new(self.transport(), parts) } - #[doc = "[Ml Set Upgrade Mode API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-set-upgrade-mode.html)\n\nSets a cluster wide upgrade_mode setting that prepares machine learning indices for an upgrade."] + #[doc = "[Ml Set Upgrade Mode API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-set-upgrade-mode.html)\n\nSets a cluster wide upgrade_mode setting that prepares machine learning indices for an upgrade."] pub fn set_upgrade_mode<'b>(&'a self) -> MlSetUpgradeMode<'a, 'b, ()> { MlSetUpgradeMode::new(self.transport()) } - #[doc = "[Ml Start Data Frame Analytics API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/start-dfanalytics.html)\n\nStarts a data frame analytics job."] + #[doc = "[Ml Start Data Frame Analytics API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/start-dfanalytics.html)\n\nStarts a data frame analytics job."] pub fn start_data_frame_analytics<'b>( &'a self, parts: MlStartDataFrameAnalyticsParts<'b>, ) -> MlStartDataFrameAnalytics<'a, 'b, ()> { MlStartDataFrameAnalytics::new(self.transport(), parts) } - #[doc = "[Ml Start Datafeed API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-start-datafeed.html)\n\nStarts one or more datafeeds."] + #[doc = "[Ml Start Datafeed API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-start-datafeed.html)\n\nStarts one or more datafeeds."] pub fn start_datafeed<'b>( &'a self, parts: MlStartDatafeedParts<'b>, ) -> MlStartDatafeed<'a, 'b, ()> { MlStartDatafeed::new(self.transport(), parts) } - #[doc = "[Ml Start Trained Model Deployment API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/start-trained-model-deployment.html)\n\nStart a trained model deployment."] + #[doc = "[Ml Start Trained Model Deployment API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/start-trained-model-deployment.html)\n\nStart a trained model deployment."] pub fn start_trained_model_deployment<'b>( &'a self, parts: MlStartTrainedModelDeploymentParts<'b>, ) -> MlStartTrainedModelDeployment<'a, 'b, ()> { MlStartTrainedModelDeployment::new(self.transport(), parts) } - #[doc = "[Ml Stop Data Frame Analytics API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/stop-dfanalytics.html)\n\nStops one or more data frame analytics jobs."] + #[doc = "[Ml Stop Data Frame Analytics API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/stop-dfanalytics.html)\n\nStops one or more data frame analytics jobs."] pub fn stop_data_frame_analytics<'b>( &'a self, parts: MlStopDataFrameAnalyticsParts<'b>, ) -> MlStopDataFrameAnalytics<'a, 'b, ()> { MlStopDataFrameAnalytics::new(self.transport(), parts) } - #[doc = "[Ml Stop Datafeed API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-stop-datafeed.html)\n\nStops one or more datafeeds."] + #[doc = "[Ml Stop Datafeed API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-stop-datafeed.html)\n\nStops one or more datafeeds."] pub fn stop_datafeed<'b>( &'a self, parts: MlStopDatafeedParts<'b>, ) -> MlStopDatafeed<'a, 'b, ()> { MlStopDatafeed::new(self.transport(), parts) } - #[doc = "[Ml Stop Trained Model Deployment API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/stop-trained-model-deployment.html)\n\nStop a trained model deployment."] + #[doc = "[Ml Stop Trained Model Deployment API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/stop-trained-model-deployment.html)\n\nStop a trained model deployment."] pub fn stop_trained_model_deployment<'b>( &'a self, parts: MlStopTrainedModelDeploymentParts<'b>, ) -> MlStopTrainedModelDeployment<'a, 'b, ()> { MlStopTrainedModelDeployment::new(self.transport(), parts) } - #[doc = "[Ml Update Data Frame Analytics API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-dfanalytics.html)\n\nUpdates certain properties of a data frame analytics job."] + #[doc = "[Ml Update Data Frame Analytics API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-dfanalytics.html)\n\nUpdates certain properties of a data frame analytics job."] pub fn update_data_frame_analytics<'b>( &'a self, parts: MlUpdateDataFrameAnalyticsParts<'b>, ) -> MlUpdateDataFrameAnalytics<'a, 'b, ()> { MlUpdateDataFrameAnalytics::new(self.transport(), parts) } - #[doc = "[Ml Update Datafeed API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-update-datafeed.html)\n\nUpdates certain properties of a datafeed."] + #[doc = "[Ml Update Datafeed API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-update-datafeed.html)\n\nUpdates certain properties of a datafeed."] pub fn update_datafeed<'b>( &'a self, parts: MlUpdateDatafeedParts<'b>, ) -> MlUpdateDatafeed<'a, 'b, ()> { MlUpdateDatafeed::new(self.transport(), parts) } - #[doc = "[Ml Update Filter API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-update-filter.html)\n\nUpdates the description of a filter, adds items, or removes items."] + #[doc = "[Ml Update Filter API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-update-filter.html)\n\nUpdates the description of a filter, adds items, or removes items."] pub fn update_filter<'b>( &'a self, parts: MlUpdateFilterParts<'b>, ) -> MlUpdateFilter<'a, 'b, ()> { MlUpdateFilter::new(self.transport(), parts) } - #[doc = "[Ml Update Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-update-job.html)\n\nUpdates certain properties of an anomaly detection job."] + #[doc = "[Ml Update Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-update-job.html)\n\nUpdates certain properties of an anomaly detection job."] pub fn update_job<'b>(&'a self, parts: MlUpdateJobParts<'b>) -> MlUpdateJob<'a, 'b, ()> { MlUpdateJob::new(self.transport(), parts) } - #[doc = "[Ml Update Model Snapshot API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-update-snapshot.html)\n\nUpdates certain properties of a snapshot."] + #[doc = "[Ml Update Model Snapshot API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-update-snapshot.html)\n\nUpdates certain properties of a snapshot."] pub fn update_model_snapshot<'b>( &'a self, parts: MlUpdateModelSnapshotParts<'b>, ) -> MlUpdateModelSnapshot<'a, 'b, ()> { MlUpdateModelSnapshot::new(self.transport(), parts) } - #[doc = "[Ml Update Trained Model Deployment API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-trained-model-deployment.html)\n\nUpdates certain properties of trained model deployment."] + #[doc = "[Ml Update Trained Model Deployment API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-trained-model-deployment.html)\n\nUpdates certain properties of trained model deployment."] pub fn update_trained_model_deployment<'b>( &'a self, parts: MlUpdateTrainedModelDeploymentParts<'b>, ) -> MlUpdateTrainedModelDeployment<'a, 'b, ()> { MlUpdateTrainedModelDeployment::new(self.transport(), parts) } - #[doc = "[Ml Upgrade Job Snapshot API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/ml-upgrade-job-model-snapshot.html)\n\nUpgrades a given job snapshot to the current major version."] + #[doc = "[Ml Upgrade Job Snapshot API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/ml-upgrade-job-model-snapshot.html)\n\nUpgrades a given job snapshot to the current major version."] pub fn upgrade_job_snapshot<'b>( &'a self, parts: MlUpgradeJobSnapshotParts<'b>, ) -> MlUpgradeJobSnapshot<'a, 'b, ()> { MlUpgradeJobSnapshot::new(self.transport(), parts) } - #[doc = "[Ml Validate API](https://www.elastic.co/guide/en/machine-learning/9.0/ml-jobs.html)\n\nValidates an anomaly detection job."] + #[doc = "[Ml Validate API](https://www.elastic.co/guide/en/machine-learning/9.1/ml-jobs.html)\n\nValidates an anomaly detection job."] pub fn validate<'b>(&'a self) -> MlValidate<'a, 'b, ()> { MlValidate::new(self.transport()) } - #[doc = "[Ml Validate Detector API](https://www.elastic.co/guide/en/machine-learning/9.0/ml-jobs.html)\n\nValidates an anomaly detection detector."] + #[doc = "[Ml Validate Detector API](https://www.elastic.co/guide/en/machine-learning/9.1/ml-jobs.html)\n\nValidates an anomaly detection detector."] pub fn validate_detector<'b>(&'a self) -> MlValidateDetector<'a, 'b, ()> { MlValidateDetector::new(self.transport()) } diff --git a/elasticsearch/src/monitoring.rs b/elasticsearch/src/monitoring.rs index 3b01bd38..0687a9a6 100644 --- a/elasticsearch/src/monitoring.rs +++ b/elasticsearch/src/monitoring.rs @@ -69,7 +69,7 @@ impl<'b> MonitoringBulkParts<'b> { } } } -#[doc = "Builder for the [Monitoring Bulk API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/monitor-elasticsearch-cluster.html)\n\nUsed by the monitoring features to send monitoring data."] +#[doc = "Builder for the [Monitoring Bulk API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/monitor-elasticsearch-cluster.html)\n\nUsed by the monitoring features to send monitoring data."] #[derive(Clone, Debug)] pub struct MonitoringBulk<'a, 'b, B> { transport: &'a Transport, @@ -232,7 +232,7 @@ impl<'a> Monitoring<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Monitoring Bulk API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/monitor-elasticsearch-cluster.html)\n\nUsed by the monitoring features to send monitoring data."] + #[doc = "[Monitoring Bulk API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/monitor-elasticsearch-cluster.html)\n\nUsed by the monitoring features to send monitoring data."] pub fn bulk<'b>(&'a self, parts: MonitoringBulkParts<'b>) -> MonitoringBulk<'a, 'b, ()> { MonitoringBulk::new(self.transport(), parts) } diff --git a/elasticsearch/src/nodes.rs b/elasticsearch/src/nodes.rs index 461771f3..fb7a38b7 100644 --- a/elasticsearch/src/nodes.rs +++ b/elasticsearch/src/nodes.rs @@ -79,7 +79,7 @@ impl<'b> NodesClearRepositoriesMeteringArchiveParts<'b> { } } } -#[doc = "Builder for the [Nodes Clear Repositories Metering Archive API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/clear-repositories-metering-archive-api.html)\n\nRemoves the archived repositories metering information present in the cluster."] +#[doc = "Builder for the [Nodes Clear Repositories Metering Archive API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/clear-repositories-metering-archive-api.html)\n\nRemoves the archived repositories metering information present in the cluster."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -208,7 +208,7 @@ impl<'b> NodesGetRepositoriesMeteringInfoParts<'b> { } } } -#[doc = "Builder for the [Nodes Get Repositories Metering Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-repositories-metering-api.html)\n\nReturns cluster repositories metering information."] +#[doc = "Builder for the [Nodes Get Repositories Metering Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-repositories-metering-api.html)\n\nReturns cluster repositories metering information."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -335,7 +335,7 @@ impl<'b> NodesHotThreadsParts<'b> { } } } -#[doc = "Builder for the [Nodes Hot Threads API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cluster-nodes-hot-threads.html)\n\nReturns information about hot threads on each node in the cluster."] +#[doc = "Builder for the [Nodes Hot Threads API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cluster-nodes-hot-threads.html)\n\nReturns information about hot threads on each node in the cluster."] #[derive(Clone, Debug)] pub struct NodesHotThreads<'a, 'b> { transport: &'a Transport, @@ -550,7 +550,7 @@ impl<'b> NodesInfoParts<'b> { } } } -#[doc = "Builder for the [Nodes Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cluster-nodes-info.html)\n\nReturns information about nodes in the cluster."] +#[doc = "Builder for the [Nodes Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cluster-nodes-info.html)\n\nReturns information about nodes in the cluster."] #[derive(Clone, Debug)] pub struct NodesInfo<'a, 'b> { transport: &'a Transport, @@ -692,7 +692,7 @@ impl<'b> NodesReloadSecureSettingsParts<'b> { } } } -#[doc = "Builder for the [Nodes Reload Secure Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/secure-settings.html#reloadable-secure-settings)\n\nReloads secure settings."] +#[doc = "Builder for the [Nodes Reload Secure Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/secure-settings.html#reloadable-secure-settings)\n\nReloads secure settings."] #[derive(Clone, Debug)] pub struct NodesReloadSecureSettings<'a, 'b, B> { transport: &'a Transport, @@ -921,7 +921,7 @@ impl<'b> NodesStatsParts<'b> { } } } -#[doc = "Builder for the [Nodes Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cluster-nodes-stats.html)\n\nReturns statistical information about nodes in the cluster."] +#[doc = "Builder for the [Nodes Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cluster-nodes-stats.html)\n\nReturns statistical information about nodes in the cluster."] #[derive(Clone, Debug)] pub struct NodesStats<'a, 'b> { transport: &'a Transport, @@ -1158,7 +1158,7 @@ impl<'b> NodesUsageParts<'b> { } } } -#[doc = "Builder for the [Nodes Usage API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cluster-nodes-usage.html)\n\nReturns low-level information about REST actions usage on nodes."] +#[doc = "Builder for the [Nodes Usage API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cluster-nodes-usage.html)\n\nReturns low-level information about REST actions usage on nodes."] #[derive(Clone, Debug)] pub struct NodesUsage<'a, 'b> { transport: &'a Transport, @@ -1277,7 +1277,7 @@ impl<'a> Nodes<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Nodes Clear Repositories Metering Archive API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/clear-repositories-metering-archive-api.html)\n\nRemoves the archived repositories metering information present in the cluster."] + #[doc = "[Nodes Clear Repositories Metering Archive API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/clear-repositories-metering-archive-api.html)\n\nRemoves the archived repositories metering information present in the cluster."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn clear_repositories_metering_archive<'b>( @@ -1286,7 +1286,7 @@ impl<'a> Nodes<'a> { ) -> NodesClearRepositoriesMeteringArchive<'a, 'b> { NodesClearRepositoriesMeteringArchive::new(self.transport(), parts) } - #[doc = "[Nodes Get Repositories Metering Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-repositories-metering-api.html)\n\nReturns cluster repositories metering information."] + #[doc = "[Nodes Get Repositories Metering Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-repositories-metering-api.html)\n\nReturns cluster repositories metering information."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn get_repositories_metering_info<'b>( @@ -1295,26 +1295,26 @@ impl<'a> Nodes<'a> { ) -> NodesGetRepositoriesMeteringInfo<'a, 'b> { NodesGetRepositoriesMeteringInfo::new(self.transport(), parts) } - #[doc = "[Nodes Hot Threads API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cluster-nodes-hot-threads.html)\n\nReturns information about hot threads on each node in the cluster."] + #[doc = "[Nodes Hot Threads API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cluster-nodes-hot-threads.html)\n\nReturns information about hot threads on each node in the cluster."] pub fn hot_threads<'b>(&'a self, parts: NodesHotThreadsParts<'b>) -> NodesHotThreads<'a, 'b> { NodesHotThreads::new(self.transport(), parts) } - #[doc = "[Nodes Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cluster-nodes-info.html)\n\nReturns information about nodes in the cluster."] + #[doc = "[Nodes Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cluster-nodes-info.html)\n\nReturns information about nodes in the cluster."] pub fn info<'b>(&'a self, parts: NodesInfoParts<'b>) -> NodesInfo<'a, 'b> { NodesInfo::new(self.transport(), parts) } - #[doc = "[Nodes Reload Secure Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/secure-settings.html#reloadable-secure-settings)\n\nReloads secure settings."] + #[doc = "[Nodes Reload Secure Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/secure-settings.html#reloadable-secure-settings)\n\nReloads secure settings."] pub fn reload_secure_settings<'b>( &'a self, parts: NodesReloadSecureSettingsParts<'b>, ) -> NodesReloadSecureSettings<'a, 'b, ()> { NodesReloadSecureSettings::new(self.transport(), parts) } - #[doc = "[Nodes Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cluster-nodes-stats.html)\n\nReturns statistical information about nodes in the cluster."] + #[doc = "[Nodes Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cluster-nodes-stats.html)\n\nReturns statistical information about nodes in the cluster."] pub fn stats<'b>(&'a self, parts: NodesStatsParts<'b>) -> NodesStats<'a, 'b> { NodesStats::new(self.transport(), parts) } - #[doc = "[Nodes Usage API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cluster-nodes-usage.html)\n\nReturns low-level information about REST actions usage on nodes."] + #[doc = "[Nodes Usage API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/cluster-nodes-usage.html)\n\nReturns low-level information about REST actions usage on nodes."] pub fn usage<'b>(&'a self, parts: NodesUsageParts<'b>) -> NodesUsage<'a, 'b> { NodesUsage::new(self.transport(), parts) } diff --git a/elasticsearch/src/params.rs b/elasticsearch/src/params.rs index e49064fa..0ea15127 100644 --- a/elasticsearch/src/params.rs +++ b/elasticsearch/src/params.rs @@ -103,6 +103,16 @@ pub enum Format { #[serde(rename = "semi_structured_text")] SemiStructuredText, } +#[doc = "Aggregation used to create a grid for `field`."] +#[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] +#[cfg(feature = "experimental-apis")] +#[derive(Debug, PartialEq, Deserialize, Serialize, Clone, Copy)] +pub enum GridAgg { + #[serde(rename = "geotile")] + Geotile, + #[serde(rename = "geohex")] + Geohex, +} #[doc = "Determines the geometry type for features in the aggs layer."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] diff --git a/elasticsearch/src/profiling.rs b/elasticsearch/src/profiling.rs index 1634a8cf..a139e261 100644 --- a/elasticsearch/src/profiling.rs +++ b/elasticsearch/src/profiling.rs @@ -54,7 +54,7 @@ impl ProfilingFlamegraphParts { } } } -#[doc = "Builder for the [Profiling Flamegraph API](https://www.elastic.co/guide/en/observability/9.0/universal-profiling.html)\n\nExtracts a UI-optimized structure to render flamegraphs from Universal Profiling."] +#[doc = "Builder for the [Profiling Flamegraph API](https://www.elastic.co/guide/en/observability/9.1/universal-profiling.html)\n\nExtracts a UI-optimized structure to render flamegraphs from Universal Profiling."] #[derive(Clone, Debug)] pub struct ProfilingFlamegraph<'a, 'b, B> { transport: &'a Transport, @@ -189,7 +189,7 @@ impl ProfilingStacktracesParts { } } } -#[doc = "Builder for the [Profiling Stacktraces API](https://www.elastic.co/guide/en/observability/9.0/universal-profiling.html)\n\nExtracts raw stacktrace information from Universal Profiling."] +#[doc = "Builder for the [Profiling Stacktraces API](https://www.elastic.co/guide/en/observability/9.1/universal-profiling.html)\n\nExtracts raw stacktrace information from Universal Profiling."] #[derive(Clone, Debug)] pub struct ProfilingStacktraces<'a, 'b, B> { transport: &'a Transport, @@ -324,7 +324,7 @@ impl ProfilingStatusParts { } } } -#[doc = "Builder for the [Profiling Status API](https://www.elastic.co/guide/en/observability/9.0/universal-profiling.html)\n\nReturns basic information about the status of Universal Profiling."] +#[doc = "Builder for the [Profiling Status API](https://www.elastic.co/guide/en/observability/9.1/universal-profiling.html)\n\nReturns basic information about the status of Universal Profiling."] #[derive(Clone, Debug)] pub struct ProfilingStatus<'a, 'b> { transport: &'a Transport, @@ -463,7 +463,7 @@ impl ProfilingTopnFunctionsParts { } } } -#[doc = "Builder for the [Profiling Topn Functions API](https://www.elastic.co/guide/en/observability/9.0/universal-profiling.html)\n\nExtracts a list of topN functions from Universal Profiling."] +#[doc = "Builder for the [Profiling Topn Functions API](https://www.elastic.co/guide/en/observability/9.1/universal-profiling.html)\n\nExtracts a list of topN functions from Universal Profiling."] #[derive(Clone, Debug)] pub struct ProfilingTopnFunctions<'a, 'b, B> { transport: &'a Transport, @@ -596,19 +596,19 @@ impl<'a> Profiling<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Profiling Flamegraph API](https://www.elastic.co/guide/en/observability/9.0/universal-profiling.html)\n\nExtracts a UI-optimized structure to render flamegraphs from Universal Profiling."] + #[doc = "[Profiling Flamegraph API](https://www.elastic.co/guide/en/observability/9.1/universal-profiling.html)\n\nExtracts a UI-optimized structure to render flamegraphs from Universal Profiling."] pub fn flamegraph<'b>(&'a self) -> ProfilingFlamegraph<'a, 'b, ()> { ProfilingFlamegraph::new(self.transport()) } - #[doc = "[Profiling Stacktraces API](https://www.elastic.co/guide/en/observability/9.0/universal-profiling.html)\n\nExtracts raw stacktrace information from Universal Profiling."] + #[doc = "[Profiling Stacktraces API](https://www.elastic.co/guide/en/observability/9.1/universal-profiling.html)\n\nExtracts raw stacktrace information from Universal Profiling."] pub fn stacktraces<'b>(&'a self) -> ProfilingStacktraces<'a, 'b, ()> { ProfilingStacktraces::new(self.transport()) } - #[doc = "[Profiling Status API](https://www.elastic.co/guide/en/observability/9.0/universal-profiling.html)\n\nReturns basic information about the status of Universal Profiling."] + #[doc = "[Profiling Status API](https://www.elastic.co/guide/en/observability/9.1/universal-profiling.html)\n\nReturns basic information about the status of Universal Profiling."] pub fn status<'b>(&'a self) -> ProfilingStatus<'a, 'b> { ProfilingStatus::new(self.transport()) } - #[doc = "[Profiling Topn Functions API](https://www.elastic.co/guide/en/observability/9.0/universal-profiling.html)\n\nExtracts a list of topN functions from Universal Profiling."] + #[doc = "[Profiling Topn Functions API](https://www.elastic.co/guide/en/observability/9.1/universal-profiling.html)\n\nExtracts a list of topN functions from Universal Profiling."] pub fn topn_functions<'b>(&'a self) -> ProfilingTopnFunctions<'a, 'b, ()> { ProfilingTopnFunctions::new(self.transport()) } diff --git a/elasticsearch/src/query_rules.rs b/elasticsearch/src/query_rules.rs index 40fb823f..9f31a7dc 100644 --- a/elasticsearch/src/query_rules.rs +++ b/elasticsearch/src/query_rules.rs @@ -73,7 +73,7 @@ impl<'b> QueryRulesDeleteRuleParts<'b> { } } } -#[doc = "Builder for the [Query Rules Delete Rule API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-query-rule.html)\n\nDeletes an individual query rule within a ruleset."] +#[doc = "Builder for the [Query Rules Delete Rule API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-query-rule.html)\n\nDeletes an individual query rule within a ruleset."] #[derive(Clone, Debug)] pub struct QueryRulesDeleteRule<'a, 'b> { transport: &'a Transport, @@ -192,7 +192,7 @@ impl<'b> QueryRulesDeleteRulesetParts<'b> { } } } -#[doc = "Builder for the [Query Rules Delete Ruleset API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-query-ruleset.html)\n\nDeletes a query ruleset."] +#[doc = "Builder for the [Query Rules Delete Ruleset API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-query-ruleset.html)\n\nDeletes a query ruleset."] #[derive(Clone, Debug)] pub struct QueryRulesDeleteRuleset<'a, 'b> { transport: &'a Transport, @@ -317,7 +317,7 @@ impl<'b> QueryRulesGetRuleParts<'b> { } } } -#[doc = "Builder for the [Query Rules Get Rule API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-query-rule.html)\n\nReturns the details about an individual query rule within a ruleset."] +#[doc = "Builder for the [Query Rules Get Rule API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-query-rule.html)\n\nReturns the details about an individual query rule within a ruleset."] #[derive(Clone, Debug)] pub struct QueryRulesGetRule<'a, 'b> { transport: &'a Transport, @@ -436,7 +436,7 @@ impl<'b> QueryRulesGetRulesetParts<'b> { } } } -#[doc = "Builder for the [Query Rules Get Ruleset API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-query-ruleset.html)\n\nReturns the details about a query ruleset."] +#[doc = "Builder for the [Query Rules Get Ruleset API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-query-ruleset.html)\n\nReturns the details about a query ruleset."] #[derive(Clone, Debug)] pub struct QueryRulesGetRuleset<'a, 'b> { transport: &'a Transport, @@ -548,7 +548,7 @@ impl QueryRulesListRulesetsParts { } } } -#[doc = "Builder for the [Query Rules List Rulesets API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/list-query-rulesets.html)\n\nLists query rulesets."] +#[doc = "Builder for the [Query Rules List Rulesets API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/list-query-rulesets.html)\n\nLists query rulesets."] #[derive(Clone, Debug)] pub struct QueryRulesListRulesets<'a, 'b> { transport: &'a Transport, @@ -691,7 +691,7 @@ impl<'b> QueryRulesPutRuleParts<'b> { } } } -#[doc = "Builder for the [Query Rules Put Rule API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-query-rule.html)\n\nCreates or updates a query rule within a ruleset."] +#[doc = "Builder for the [Query Rules Put Rule API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-query-rule.html)\n\nCreates or updates a query rule within a ruleset."] #[derive(Clone, Debug)] pub struct QueryRulesPutRule<'a, 'b, B> { transport: &'a Transport, @@ -833,7 +833,7 @@ impl<'b> QueryRulesPutRulesetParts<'b> { } } } -#[doc = "Builder for the [Query Rules Put Ruleset API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-query-ruleset.html)\n\nCreates or updates a query ruleset."] +#[doc = "Builder for the [Query Rules Put Ruleset API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-query-ruleset.html)\n\nCreates or updates a query ruleset."] #[derive(Clone, Debug)] pub struct QueryRulesPutRuleset<'a, 'b, B> { transport: &'a Transport, @@ -978,7 +978,7 @@ impl<'b> QueryRulesTestParts<'b> { } } } -#[doc = "Builder for the [Query Rules Test API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/test-query-ruleset.html)\n\nTests a query ruleset to identify the rules that would match input criteria"] +#[doc = "Builder for the [Query Rules Test API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/test-query-ruleset.html)\n\nTests a query ruleset to identify the rules that would match input criteria"] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -1114,50 +1114,50 @@ impl<'a> QueryRules<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Query Rules Delete Rule API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-query-rule.html)\n\nDeletes an individual query rule within a ruleset."] + #[doc = "[Query Rules Delete Rule API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-query-rule.html)\n\nDeletes an individual query rule within a ruleset."] pub fn delete_rule<'b>( &'a self, parts: QueryRulesDeleteRuleParts<'b>, ) -> QueryRulesDeleteRule<'a, 'b> { QueryRulesDeleteRule::new(self.transport(), parts) } - #[doc = "[Query Rules Delete Ruleset API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-query-ruleset.html)\n\nDeletes a query ruleset."] + #[doc = "[Query Rules Delete Ruleset API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-query-ruleset.html)\n\nDeletes a query ruleset."] pub fn delete_ruleset<'b>( &'a self, parts: QueryRulesDeleteRulesetParts<'b>, ) -> QueryRulesDeleteRuleset<'a, 'b> { QueryRulesDeleteRuleset::new(self.transport(), parts) } - #[doc = "[Query Rules Get Rule API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-query-rule.html)\n\nReturns the details about an individual query rule within a ruleset."] + #[doc = "[Query Rules Get Rule API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-query-rule.html)\n\nReturns the details about an individual query rule within a ruleset."] pub fn get_rule<'b>(&'a self, parts: QueryRulesGetRuleParts<'b>) -> QueryRulesGetRule<'a, 'b> { QueryRulesGetRule::new(self.transport(), parts) } - #[doc = "[Query Rules Get Ruleset API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-query-ruleset.html)\n\nReturns the details about a query ruleset."] + #[doc = "[Query Rules Get Ruleset API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-query-ruleset.html)\n\nReturns the details about a query ruleset."] pub fn get_ruleset<'b>( &'a self, parts: QueryRulesGetRulesetParts<'b>, ) -> QueryRulesGetRuleset<'a, 'b> { QueryRulesGetRuleset::new(self.transport(), parts) } - #[doc = "[Query Rules List Rulesets API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/list-query-rulesets.html)\n\nLists query rulesets."] + #[doc = "[Query Rules List Rulesets API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/list-query-rulesets.html)\n\nLists query rulesets."] pub fn list_rulesets<'b>(&'a self) -> QueryRulesListRulesets<'a, 'b> { QueryRulesListRulesets::new(self.transport()) } - #[doc = "[Query Rules Put Rule API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-query-rule.html)\n\nCreates or updates a query rule within a ruleset."] + #[doc = "[Query Rules Put Rule API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-query-rule.html)\n\nCreates or updates a query rule within a ruleset."] pub fn put_rule<'b>( &'a self, parts: QueryRulesPutRuleParts<'b>, ) -> QueryRulesPutRule<'a, 'b, ()> { QueryRulesPutRule::new(self.transport(), parts) } - #[doc = "[Query Rules Put Ruleset API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-query-ruleset.html)\n\nCreates or updates a query ruleset."] + #[doc = "[Query Rules Put Ruleset API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-query-ruleset.html)\n\nCreates or updates a query ruleset."] pub fn put_ruleset<'b>( &'a self, parts: QueryRulesPutRulesetParts<'b>, ) -> QueryRulesPutRuleset<'a, 'b, ()> { QueryRulesPutRuleset::new(self.transport(), parts) } - #[doc = "[Query Rules Test API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/test-query-ruleset.html)\n\nTests a query ruleset to identify the rules that would match input criteria"] + #[doc = "[Query Rules Test API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/test-query-ruleset.html)\n\nTests a query ruleset to identify the rules that would match input criteria"] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn test<'b>(&'a self, parts: QueryRulesTestParts<'b>) -> QueryRulesTest<'a, 'b, ()> { diff --git a/elasticsearch/src/rollup.rs b/elasticsearch/src/rollup.rs index 6d1b1c31..d872681b 100644 --- a/elasticsearch/src/rollup.rs +++ b/elasticsearch/src/rollup.rs @@ -70,7 +70,7 @@ impl<'b> RollupDeleteJobParts<'b> { } } } -#[doc = "Builder for the [Rollup Delete Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/rollup-delete-job.html)\n\nDeletes an existing rollup job."] +#[doc = "Builder for the [Rollup Delete Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/rollup-delete-job.html)\n\nDeletes an existing rollup job."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -196,7 +196,7 @@ impl<'b> RollupGetJobsParts<'b> { } } } -#[doc = "Builder for the [Rollup Get Jobs API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/rollup-get-job.html)\n\nRetrieves the configuration, stats, and status of rollup jobs."] +#[doc = "Builder for the [Rollup Get Jobs API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/rollup-get-job.html)\n\nRetrieves the configuration, stats, and status of rollup jobs."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -322,7 +322,7 @@ impl<'b> RollupGetRollupCapsParts<'b> { } } } -#[doc = "Builder for the [Rollup Get Rollup Caps API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/rollup-get-rollup-caps.html)\n\nReturns the capabilities of any rollup jobs that have been configured for a specific index or index pattern."] +#[doc = "Builder for the [Rollup Get Rollup Caps API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/rollup-get-rollup-caps.html)\n\nReturns the capabilities of any rollup jobs that have been configured for a specific index or index pattern."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -447,7 +447,7 @@ impl<'b> RollupGetRollupIndexCapsParts<'b> { } } } -#[doc = "Builder for the [Rollup Get Rollup Index Caps API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/rollup-get-rollup-index-caps.html)\n\nReturns the rollup capabilities of all jobs inside of a rollup index (e.g. the index where rollup data is stored)."] +#[doc = "Builder for the [Rollup Get Rollup Index Caps API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/rollup-get-rollup-index-caps.html)\n\nReturns the rollup capabilities of all jobs inside of a rollup index (e.g. the index where rollup data is stored)."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -570,7 +570,7 @@ impl<'b> RollupPutJobParts<'b> { } } } -#[doc = "Builder for the [Rollup Put Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/rollup-put-job.html)\n\nCreates a rollup job."] +#[doc = "Builder for the [Rollup Put Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/rollup-put-job.html)\n\nCreates a rollup job."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -719,7 +719,7 @@ impl<'b> RollupRollupSearchParts<'b> { } } } -#[doc = "Builder for the [Rollup Rollup Search API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/rollup-search.html)\n\nEnables searching rolled-up data using the standard query DSL."] +#[doc = "Builder for the [Rollup Rollup Search API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/rollup-search.html)\n\nEnables searching rolled-up data using the standard query DSL."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -889,7 +889,7 @@ impl<'b> RollupStartJobParts<'b> { } } } -#[doc = "Builder for the [Rollup Start Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/rollup-start-job.html)\n\nStarts an existing, stopped rollup job."] +#[doc = "Builder for the [Rollup Start Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/rollup-start-job.html)\n\nStarts an existing, stopped rollup job."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -1036,7 +1036,7 @@ impl<'b> RollupStopJobParts<'b> { } } } -#[doc = "Builder for the [Rollup Stop Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/rollup-stop-job.html)\n\nStops an existing, started rollup job."] +#[doc = "Builder for the [Rollup Stop Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/rollup-stop-job.html)\n\nStops an existing, started rollup job."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -1195,19 +1195,19 @@ impl<'a> Rollup<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Rollup Delete Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/rollup-delete-job.html)\n\nDeletes an existing rollup job."] + #[doc = "[Rollup Delete Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/rollup-delete-job.html)\n\nDeletes an existing rollup job."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn delete_job<'b>(&'a self, parts: RollupDeleteJobParts<'b>) -> RollupDeleteJob<'a, 'b> { RollupDeleteJob::new(self.transport(), parts) } - #[doc = "[Rollup Get Jobs API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/rollup-get-job.html)\n\nRetrieves the configuration, stats, and status of rollup jobs."] + #[doc = "[Rollup Get Jobs API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/rollup-get-job.html)\n\nRetrieves the configuration, stats, and status of rollup jobs."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn get_jobs<'b>(&'a self, parts: RollupGetJobsParts<'b>) -> RollupGetJobs<'a, 'b> { RollupGetJobs::new(self.transport(), parts) } - #[doc = "[Rollup Get Rollup Caps API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/rollup-get-rollup-caps.html)\n\nReturns the capabilities of any rollup jobs that have been configured for a specific index or index pattern."] + #[doc = "[Rollup Get Rollup Caps API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/rollup-get-rollup-caps.html)\n\nReturns the capabilities of any rollup jobs that have been configured for a specific index or index pattern."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn get_rollup_caps<'b>( @@ -1216,7 +1216,7 @@ impl<'a> Rollup<'a> { ) -> RollupGetRollupCaps<'a, 'b> { RollupGetRollupCaps::new(self.transport(), parts) } - #[doc = "[Rollup Get Rollup Index Caps API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/rollup-get-rollup-index-caps.html)\n\nReturns the rollup capabilities of all jobs inside of a rollup index (e.g. the index where rollup data is stored)."] + #[doc = "[Rollup Get Rollup Index Caps API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/rollup-get-rollup-index-caps.html)\n\nReturns the rollup capabilities of all jobs inside of a rollup index (e.g. the index where rollup data is stored)."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn get_rollup_index_caps<'b>( @@ -1225,13 +1225,13 @@ impl<'a> Rollup<'a> { ) -> RollupGetRollupIndexCaps<'a, 'b> { RollupGetRollupIndexCaps::new(self.transport(), parts) } - #[doc = "[Rollup Put Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/rollup-put-job.html)\n\nCreates a rollup job."] + #[doc = "[Rollup Put Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/rollup-put-job.html)\n\nCreates a rollup job."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn put_job<'b>(&'a self, parts: RollupPutJobParts<'b>) -> RollupPutJob<'a, 'b, ()> { RollupPutJob::new(self.transport(), parts) } - #[doc = "[Rollup Rollup Search API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/rollup-search.html)\n\nEnables searching rolled-up data using the standard query DSL."] + #[doc = "[Rollup Rollup Search API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/rollup-search.html)\n\nEnables searching rolled-up data using the standard query DSL."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn rollup_search<'b>( @@ -1240,13 +1240,13 @@ impl<'a> Rollup<'a> { ) -> RollupRollupSearch<'a, 'b, ()> { RollupRollupSearch::new(self.transport(), parts) } - #[doc = "[Rollup Start Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/rollup-start-job.html)\n\nStarts an existing, stopped rollup job."] + #[doc = "[Rollup Start Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/rollup-start-job.html)\n\nStarts an existing, stopped rollup job."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn start_job<'b>(&'a self, parts: RollupStartJobParts<'b>) -> RollupStartJob<'a, 'b, ()> { RollupStartJob::new(self.transport(), parts) } - #[doc = "[Rollup Stop Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/rollup-stop-job.html)\n\nStops an existing, started rollup job."] + #[doc = "[Rollup Stop Job API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/rollup-stop-job.html)\n\nStops an existing, started rollup job."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn stop_job<'b>(&'a self, parts: RollupStopJobParts<'b>) -> RollupStopJob<'a, 'b, ()> { diff --git a/elasticsearch/src/root/mod.rs b/elasticsearch/src/root/mod.rs index feddd4e5..e742d50f 100644 --- a/elasticsearch/src/root/mod.rs +++ b/elasticsearch/src/root/mod.rs @@ -65,7 +65,7 @@ impl<'b> BulkParts<'b> { } } } -#[doc = "Builder for the [Bulk API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-bulk.html)\n\nAllows to perform multiple index/update/delete operations in a single request."] +#[doc = "Builder for the [Bulk API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-bulk.html)\n\nAllows to perform multiple index/update/delete operations in a single request."] #[derive(Clone, Debug)] pub struct Bulk<'a, 'b, B> { transport: &'a Transport, @@ -496,7 +496,7 @@ impl<'b> ClearScrollParts<'b> { } } } -#[doc = "Builder for the [Clear Scroll API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/clear-scroll-api.html)\n\nExplicitly clears the search context for a scroll."] +#[doc = "Builder for the [Clear Scroll API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/clear-scroll-api.html)\n\nExplicitly clears the search context for a scroll."] #[derive(Clone, Debug)] pub struct ClearScroll<'a, 'b, B> { transport: &'a Transport, @@ -631,7 +631,7 @@ impl ClosePointInTimeParts { } } } -#[doc = "Builder for the [Close Point In Time API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/point-in-time-api.html)\n\nClose a point in time"] +#[doc = "Builder for the [Close Point In Time API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/point-in-time-api.html)\n\nClose a point in time"] #[derive(Clone, Debug)] pub struct ClosePointInTime<'a, 'b, B> { transport: &'a Transport, @@ -778,7 +778,7 @@ impl<'b> CountParts<'b> { } } } -#[doc = "Builder for the [Count API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/search-count.html)\n\nReturns number of documents matching a query."] +#[doc = "Builder for the [Count API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/search-count.html)\n\nReturns number of documents matching a query."] #[derive(Clone, Debug)] pub struct Count<'a, 'b, B> { transport: &'a Transport, @@ -1068,7 +1068,7 @@ impl<'b> CreateParts<'b> { } } } -#[doc = "Builder for the [Create API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-index_.html)\n\nCreates a new document in the index.\n\nReturns a 409 response when a document with a same ID already exists in the index."] +#[doc = "Builder for the [Create API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-index_.html)\n\nCreates a new document in the index.\n\nReturns a 409 response when a document with a same ID already exists in the index."] #[derive(Clone, Debug)] pub struct Create<'a, 'b, B> { transport: &'a Transport, @@ -1083,6 +1083,8 @@ pub struct Create<'a, 'b, B> { pretty: Option, refresh: Option, request_timeout: Option, + require_alias: Option, + require_data_stream: Option, routing: Option<&'b str>, source: Option<&'b str>, timeout: Option<&'b str>, @@ -1110,6 +1112,8 @@ where pretty: None, refresh: None, request_timeout: None, + require_alias: None, + require_data_stream: None, routing: None, source: None, timeout: None, @@ -1136,6 +1140,8 @@ where pretty: self.pretty, refresh: self.refresh, request_timeout: self.request_timeout, + require_alias: self.require_alias, + require_data_stream: self.require_data_stream, routing: self.routing, source: self.source, timeout: self.timeout, @@ -1189,6 +1195,16 @@ where self.request_timeout = Some(timeout); self } + #[doc = "When true, requires destination to be an alias. Default is false"] + pub fn require_alias(mut self, require_alias: bool) -> Self { + self.require_alias = Some(require_alias); + self + } + #[doc = "When true, requires destination to be a data stream (existing or to be created). Default is false"] + pub fn require_data_stream(mut self, require_data_stream: bool) -> Self { + self.require_data_stream = Some(require_data_stream); + self + } #[doc = "Specific routing value"] pub fn routing(mut self, routing: &'b str) -> Self { self.routing = Some(routing); @@ -1237,6 +1253,8 @@ where pipeline: Option<&'b str>, pretty: Option, refresh: Option, + require_alias: Option, + require_data_stream: Option, routing: Option<&'b str>, source: Option<&'b str>, timeout: Option<&'b str>, @@ -1252,6 +1270,8 @@ where pipeline: self.pipeline, pretty: self.pretty, refresh: self.refresh, + require_alias: self.require_alias, + require_data_stream: self.require_data_stream, routing: self.routing, source: self.source, timeout: self.timeout, @@ -1293,7 +1313,7 @@ impl<'b> DeleteParts<'b> { } } } -#[doc = "Builder for the [Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-delete.html)\n\nRemoves a document from the index."] +#[doc = "Builder for the [Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-delete.html)\n\nRemoves a document from the index."] #[derive(Clone, Debug)] pub struct Delete<'a, 'b> { transport: &'a Transport, @@ -1486,7 +1506,7 @@ impl<'b> DeleteByQueryParts<'b> { } } } -#[doc = "Builder for the [Delete By Query API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-delete-by-query.html)\n\nDeletes documents matching the provided query."] +#[doc = "Builder for the [Delete By Query API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-delete-by-query.html)\n\nDeletes documents matching the provided query."] #[derive(Clone, Debug)] pub struct DeleteByQuery<'a, 'b, B> { transport: &'a Transport, @@ -1923,7 +1943,7 @@ impl<'b> DeleteByQueryRethrottleParts<'b> { } } } -#[doc = "Builder for the [Delete By Query Rethrottle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-delete-by-query.html)\n\nChanges the number of requests per second for a particular Delete By Query operation."] +#[doc = "Builder for the [Delete By Query Rethrottle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-delete-by-query.html)\n\nChanges the number of requests per second for a particular Delete By Query operation."] #[derive(Clone, Debug)] pub struct DeleteByQueryRethrottle<'a, 'b, B> { transport: &'a Transport, @@ -2074,7 +2094,7 @@ impl<'b> DeleteScriptParts<'b> { } } } -#[doc = "Builder for the [Delete Script API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-scripting.html)\n\nDeletes a script."] +#[doc = "Builder for the [Delete Script API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-scripting.html)\n\nDeletes a script."] #[derive(Clone, Debug)] pub struct DeleteScript<'a, 'b> { transport: &'a Transport, @@ -2214,7 +2234,7 @@ impl<'b> ExistsParts<'b> { } } } -#[doc = "Builder for the [Exists API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-get.html)\n\nReturns information about whether a document exists in an index."] +#[doc = "Builder for the [Exists API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-get.html)\n\nReturns information about whether a document exists in an index."] #[derive(Clone, Debug)] pub struct Exists<'a, 'b> { transport: &'a Transport, @@ -2430,7 +2450,7 @@ impl<'b> ExistsSourceParts<'b> { } } } -#[doc = "Builder for the [Exists Source API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-get.html)\n\nReturns information about whether a document source exists in an index."] +#[doc = "Builder for the [Exists Source API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-get.html)\n\nReturns information about whether a document source exists in an index."] #[derive(Clone, Debug)] pub struct ExistsSource<'a, 'b> { transport: &'a Transport, @@ -2636,7 +2656,7 @@ impl<'b> ExplainParts<'b> { } } } -#[doc = "Builder for the [Explain API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/search-explain.html)\n\nReturns information about why a specific matches (or doesn't match) a query."] +#[doc = "Builder for the [Explain API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/search-explain.html)\n\nReturns information about why a specific matches (or doesn't match) a query."] #[derive(Clone, Debug)] pub struct Explain<'a, 'b, B> { transport: &'a Transport, @@ -2910,7 +2930,7 @@ impl<'b> FieldCapsParts<'b> { } } } -#[doc = "Builder for the [Field Caps API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/search-field-caps.html)\n\nReturns the information about the capabilities of fields among multiple indices."] +#[doc = "Builder for the [Field Caps API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/search-field-caps.html)\n\nReturns the information about the capabilities of fields among multiple indices."] #[derive(Clone, Debug)] pub struct FieldCaps<'a, 'b, B> { transport: &'a Transport, @@ -3142,7 +3162,7 @@ impl<'b> GetParts<'b> { } } } -#[doc = "Builder for the [Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-get.html)\n\nReturns a document."] +#[doc = "Builder for the [Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-get.html)\n\nReturns a document."] #[derive(Clone, Debug)] pub struct Get<'a, 'b> { transport: &'a Transport, @@ -3363,7 +3383,7 @@ impl<'b> GetScriptParts<'b> { } } } -#[doc = "Builder for the [Get Script API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-scripting.html)\n\nReturns a script."] +#[doc = "Builder for the [Get Script API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-scripting.html)\n\nReturns a script."] #[derive(Clone, Debug)] pub struct GetScript<'a, 'b> { transport: &'a Transport, @@ -3484,7 +3504,7 @@ impl GetScriptContextParts { } } } -#[doc = "Builder for the [Get Script Context API](https://www.elastic.co/guide/en/elasticsearch/painless/9.0/painless-contexts.html)\n\nReturns all script contexts."] +#[doc = "Builder for the [Get Script Context API](https://www.elastic.co/guide/en/elasticsearch/painless/9.1/painless-contexts.html)\n\nReturns all script contexts."] #[derive(Clone, Debug)] pub struct GetScriptContext<'a, 'b> { transport: &'a Transport, @@ -3596,7 +3616,7 @@ impl GetScriptLanguagesParts { } } } -#[doc = "Builder for the [Get Script Languages API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-scripting.html)\n\nReturns available script types, languages and contexts"] +#[doc = "Builder for the [Get Script Languages API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-scripting.html)\n\nReturns available script types, languages and contexts"] #[derive(Clone, Debug)] pub struct GetScriptLanguages<'a, 'b> { transport: &'a Transport, @@ -3718,7 +3738,7 @@ impl<'b> GetSourceParts<'b> { } } } -#[doc = "Builder for the [Get Source API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-get.html)\n\nReturns the source of a document."] +#[doc = "Builder for the [Get Source API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-get.html)\n\nReturns the source of a document."] #[derive(Clone, Debug)] pub struct GetSource<'a, 'b> { transport: &'a Transport, @@ -3924,7 +3944,7 @@ impl<'b> HealthReportParts<'b> { } } } -#[doc = "Builder for the [Health Report API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/health-api.html)\n\nReturns the health of the cluster."] +#[doc = "Builder for the [Health Report API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/health-api.html)\n\nReturns the health of the cluster."] #[derive(Clone, Debug)] pub struct HealthReport<'a, 'b> { transport: &'a Transport, @@ -4084,7 +4104,7 @@ impl<'b> IndexParts<'b> { } } } -#[doc = "Builder for the [Index API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-index_.html)\n\nCreates or updates a document in an index."] +#[doc = "Builder for the [Index API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-index_.html)\n\nCreates or updates a document in an index."] #[derive(Clone, Debug)] pub struct Index<'a, 'b, B> { transport: &'a Transport, @@ -4349,7 +4369,7 @@ impl InfoParts { } } } -#[doc = "Builder for the [Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/index.html)\n\nReturns basic information about the cluster."] +#[doc = "Builder for the [Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/index.html)\n\nReturns basic information about the cluster."] #[derive(Clone, Debug)] pub struct Info<'a, 'b> { transport: &'a Transport, @@ -4472,7 +4492,7 @@ impl<'b> MgetParts<'b> { } } } -#[doc = "Builder for the [Mget API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-multi-get.html)\n\nAllows to get multiple documents in one request."] +#[doc = "Builder for the [Mget API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-multi-get.html)\n\nAllows to get multiple documents in one request."] #[derive(Clone, Debug)] pub struct Mget<'a, 'b, B> { transport: &'a Transport, @@ -4716,23 +4736,30 @@ impl<'b> MsearchParts<'b> { } } } -#[doc = "Builder for the [Msearch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/search-multi-search.html)\n\nAllows to execute several search operations in one request."] +#[doc = "Builder for the [Msearch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/search-multi-search.html)\n\nAllows to execute several search operations in one request."] #[derive(Clone, Debug)] pub struct Msearch<'a, 'b, B> { transport: &'a Transport, parts: MsearchParts<'b>, + allow_no_indices: Option, body: Option, ccs_minimize_roundtrips: Option, error_trace: Option, + expand_wildcards: Option<&'b [ExpandWildcards]>, filter_path: Option<&'b [&'b str]>, headers: HeaderMap, human: Option, + ignore_throttled: Option, + ignore_unavailable: Option, + include_named_queries_score: Option, + index: Option<&'b [&'b str]>, max_concurrent_searches: Option, max_concurrent_shard_requests: Option, pre_filter_shard_size: Option, pretty: Option, request_timeout: Option, rest_total_hits_as_int: Option, + routing: Option<&'b [&'b str]>, search_type: Option, source: Option<&'b str>, typed_keys: Option, @@ -4748,22 +4775,34 @@ where transport, parts, headers, + allow_no_indices: None, body: None, ccs_minimize_roundtrips: None, error_trace: None, + expand_wildcards: None, filter_path: None, human: None, + ignore_throttled: None, + ignore_unavailable: None, + include_named_queries_score: None, + index: None, max_concurrent_searches: None, max_concurrent_shard_requests: None, pre_filter_shard_size: None, pretty: None, request_timeout: None, rest_total_hits_as_int: None, + routing: None, search_type: None, source: None, typed_keys: None, } } + #[doc = "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)"] + pub fn allow_no_indices(mut self, allow_no_indices: bool) -> Self { + self.allow_no_indices = Some(allow_no_indices); + self + } #[doc = "The body for the API call"] pub fn body(self, body: Vec) -> Msearch<'a, 'b, NdBody> where @@ -4773,17 +4812,24 @@ where transport: self.transport, parts: self.parts, body: Some(NdBody::new(body)), + allow_no_indices: self.allow_no_indices, ccs_minimize_roundtrips: self.ccs_minimize_roundtrips, error_trace: self.error_trace, + expand_wildcards: self.expand_wildcards, filter_path: self.filter_path, headers: self.headers, human: self.human, + ignore_throttled: self.ignore_throttled, + ignore_unavailable: self.ignore_unavailable, + include_named_queries_score: self.include_named_queries_score, + index: self.index, max_concurrent_searches: self.max_concurrent_searches, max_concurrent_shard_requests: self.max_concurrent_shard_requests, pre_filter_shard_size: self.pre_filter_shard_size, pretty: self.pretty, request_timeout: self.request_timeout, rest_total_hits_as_int: self.rest_total_hits_as_int, + routing: self.routing, search_type: self.search_type, source: self.source, typed_keys: self.typed_keys, @@ -4799,6 +4845,11 @@ where self.error_trace = Some(error_trace); self } + #[doc = "Whether to expand wildcard expression to concrete indices that are open, closed or both."] + pub fn expand_wildcards(mut self, expand_wildcards: &'b [ExpandWildcards]) -> Self { + self.expand_wildcards = Some(expand_wildcards); + self + } #[doc = "A comma-separated list of filters used to reduce the response."] pub fn filter_path(mut self, filter_path: &'b [&'b str]) -> Self { self.filter_path = Some(filter_path); @@ -4814,6 +4865,26 @@ where self.human = Some(human); self } + #[doc = "Whether specified concrete, expanded or aliased indices should be ignored when throttled"] + pub fn ignore_throttled(mut self, ignore_throttled: bool) -> Self { + self.ignore_throttled = Some(ignore_throttled); + self + } + #[doc = "Whether specified concrete indices should be ignored when unavailable (missing or closed)"] + pub fn ignore_unavailable(mut self, ignore_unavailable: bool) -> Self { + self.ignore_unavailable = Some(ignore_unavailable); + self + } + #[doc = "Indicates whether hit.matched_queries should be rendered as a map that includes the name of the matched query associated with its score (true) or as an array containing the name of the matched queries (false)"] + pub fn include_named_queries_score(mut self, include_named_queries_score: bool) -> Self { + self.include_named_queries_score = Some(include_named_queries_score); + self + } + #[doc = "A comma-separated list of index names to use as default"] + pub fn index(mut self, index: &'b [&'b str]) -> Self { + self.index = Some(index); + self + } #[doc = "Controls the maximum number of concurrent searches the multi search api will execute"] pub fn max_concurrent_searches(mut self, max_concurrent_searches: i64) -> Self { self.max_concurrent_searches = Some(max_concurrent_searches); @@ -4844,6 +4915,11 @@ where self.rest_total_hits_as_int = Some(rest_total_hits_as_int); self } + #[doc = "A comma-separated list of specific routing values"] + pub fn routing(mut self, routing: &'b [&'b str]) -> Self { + self.routing = Some(routing); + self + } #[doc = "Search operation type"] pub fn search_type(mut self, search_type: SearchType) -> Self { self.search_type = Some(search_type); @@ -4872,30 +4948,47 @@ where #[serde_with::skip_serializing_none] #[derive(Serialize)] struct QueryParams<'b> { + allow_no_indices: Option, ccs_minimize_roundtrips: Option, error_trace: Option, #[serde(serialize_with = "crate::client::serialize_coll_qs")] + expand_wildcards: Option<&'b [ExpandWildcards]>, + #[serde(serialize_with = "crate::client::serialize_coll_qs")] filter_path: Option<&'b [&'b str]>, human: Option, + ignore_throttled: Option, + ignore_unavailable: Option, + include_named_queries_score: Option, + #[serde(serialize_with = "crate::client::serialize_coll_qs")] + index: Option<&'b [&'b str]>, max_concurrent_searches: Option, max_concurrent_shard_requests: Option, pre_filter_shard_size: Option, pretty: Option, rest_total_hits_as_int: Option, + #[serde(serialize_with = "crate::client::serialize_coll_qs")] + routing: Option<&'b [&'b str]>, search_type: Option, source: Option<&'b str>, typed_keys: Option, } let query_params = QueryParams { + allow_no_indices: self.allow_no_indices, ccs_minimize_roundtrips: self.ccs_minimize_roundtrips, error_trace: self.error_trace, + expand_wildcards: self.expand_wildcards, filter_path: self.filter_path, human: self.human, + ignore_throttled: self.ignore_throttled, + ignore_unavailable: self.ignore_unavailable, + include_named_queries_score: self.include_named_queries_score, + index: self.index, max_concurrent_searches: self.max_concurrent_searches, max_concurrent_shard_requests: self.max_concurrent_shard_requests, pre_filter_shard_size: self.pre_filter_shard_size, pretty: self.pretty, rest_total_hits_as_int: self.rest_total_hits_as_int, + routing: self.routing, search_type: self.search_type, source: self.source, typed_keys: self.typed_keys, @@ -4936,7 +5029,7 @@ impl<'b> MsearchTemplateParts<'b> { } } } -#[doc = "Builder for the [Msearch Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/search-multi-search.html)\n\nAllows to execute several search template operations in one request."] +#[doc = "Builder for the [Msearch Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/search-multi-search.html)\n\nAllows to execute several search template operations in one request."] #[derive(Clone, Debug)] pub struct MsearchTemplate<'a, 'b, B> { transport: &'a Transport, @@ -5135,7 +5228,7 @@ impl<'b> MtermvectorsParts<'b> { } } } -#[doc = "Builder for the [Mtermvectors API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-multi-termvectors.html)\n\nReturns multiple termvectors in one request."] +#[doc = "Builder for the [Mtermvectors API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-multi-termvectors.html)\n\nReturns multiple termvectors in one request."] #[derive(Clone, Debug)] pub struct Mtermvectors<'a, 'b, B> { transport: &'a Transport, @@ -5404,7 +5497,7 @@ impl<'b> OpenPointInTimeParts<'b> { } } } -#[doc = "Builder for the [Open Point In Time API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/point-in-time-api.html)\n\nOpen a point in time that can be used in subsequent searches"] +#[doc = "Builder for the [Open Point In Time API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/point-in-time-api.html)\n\nOpen a point in time that can be used in subsequent searches"] #[derive(Clone, Debug)] pub struct OpenPointInTime<'a, 'b, B> { transport: &'a Transport, @@ -5418,6 +5511,7 @@ pub struct OpenPointInTime<'a, 'b, B> { human: Option, ignore_unavailable: Option, keep_alive: Option<&'b str>, + max_concurrent_shard_requests: Option, preference: Option<&'b str>, pretty: Option, request_timeout: Option, @@ -5443,6 +5537,7 @@ where human: None, ignore_unavailable: None, keep_alive: None, + max_concurrent_shard_requests: None, preference: None, pretty: None, request_timeout: None, @@ -5472,6 +5567,7 @@ where human: self.human, ignore_unavailable: self.ignore_unavailable, keep_alive: self.keep_alive, + max_concurrent_shard_requests: self.max_concurrent_shard_requests, preference: self.preference, pretty: self.pretty, request_timeout: self.request_timeout, @@ -5514,6 +5610,11 @@ where self.keep_alive = Some(keep_alive); self } + #[doc = "The number of concurrent shard requests per node executed concurrently when opening this point-in-time. This value should be used to limit the impact of opening the point-in-time on the cluster"] + pub fn max_concurrent_shard_requests(mut self, max_concurrent_shard_requests: i64) -> Self { + self.max_concurrent_shard_requests = Some(max_concurrent_shard_requests); + self + } #[doc = "Specify the node or shard the operation should be performed on (default: random)"] pub fn preference(mut self, preference: &'b str) -> Self { self.preference = Some(preference); @@ -5558,6 +5659,7 @@ where human: Option, ignore_unavailable: Option, keep_alive: Option<&'b str>, + max_concurrent_shard_requests: Option, preference: Option<&'b str>, pretty: Option, routing: Option<&'b str>, @@ -5571,6 +5673,7 @@ where human: self.human, ignore_unavailable: self.ignore_unavailable, keep_alive: self.keep_alive, + max_concurrent_shard_requests: self.max_concurrent_shard_requests, preference: self.preference, pretty: self.pretty, routing: self.routing, @@ -5600,7 +5703,7 @@ impl PingParts { } } } -#[doc = "Builder for the [Ping API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/index.html)\n\nReturns whether the cluster is running."] +#[doc = "Builder for the [Ping API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/index.html)\n\nReturns whether the cluster is running."] #[derive(Clone, Debug)] pub struct Ping<'a, 'b> { transport: &'a Transport, @@ -5732,7 +5835,7 @@ impl<'b> PutScriptParts<'b> { } } } -#[doc = "Builder for the [Put Script API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-scripting.html)\n\nCreates or updates a script."] +#[doc = "Builder for the [Put Script API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-scripting.html)\n\nCreates or updates a script."] #[derive(Clone, Debug)] pub struct PutScript<'a, 'b, B> { transport: &'a Transport, @@ -5909,7 +6012,7 @@ impl<'b> RankEvalParts<'b> { } } } -#[doc = "Builder for the [Rank Eval API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/search-rank-eval.html)\n\nAllows to evaluate the quality of ranked search results over a set of typical search queries"] +#[doc = "Builder for the [Rank Eval API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/search-rank-eval.html)\n\nAllows to evaluate the quality of ranked search results over a set of typical search queries"] #[derive(Clone, Debug)] pub struct RankEval<'a, 'b, B> { transport: &'a Transport, @@ -6088,7 +6191,7 @@ impl ReindexParts { } } } -#[doc = "Builder for the [Reindex API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-reindex.html)\n\nAllows to copy documents from one index to another, optionally filtering the source\ndocuments by a query, changing the destination index settings, or fetching the\ndocuments from a remote cluster."] +#[doc = "Builder for the [Reindex API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-reindex.html)\n\nAllows to copy documents from one index to another, optionally filtering the source\ndocuments by a query, changing the destination index settings, or fetching the\ndocuments from a remote cluster."] #[derive(Clone, Debug)] pub struct Reindex<'a, 'b, B> { transport: &'a Transport, @@ -6103,6 +6206,7 @@ pub struct Reindex<'a, 'b, B> { refresh: Option, request_timeout: Option, requests_per_second: Option, + require_alias: Option, scroll: Option<&'b str>, slices: Option, source: Option<&'b str>, @@ -6130,6 +6234,7 @@ where refresh: None, request_timeout: None, requests_per_second: None, + require_alias: None, scroll: None, slices: None, source: None, @@ -6156,6 +6261,7 @@ where refresh: self.refresh, request_timeout: self.request_timeout, requests_per_second: self.requests_per_second, + require_alias: self.require_alias, scroll: self.scroll, slices: self.slices, source: self.source, @@ -6209,6 +6315,11 @@ where self.requests_per_second = Some(requests_per_second); self } + #[doc = "When true, requires destination to be an alias."] + pub fn require_alias(mut self, require_alias: bool) -> Self { + self.require_alias = Some(require_alias); + self + } #[doc = "Control how long to keep the search context alive"] pub fn scroll(mut self, scroll: &'b str) -> Self { self.scroll = Some(scroll); @@ -6257,6 +6368,7 @@ where pretty: Option, refresh: Option, requests_per_second: Option, + require_alias: Option, scroll: Option<&'b str>, slices: Option, source: Option<&'b str>, @@ -6272,6 +6384,7 @@ where pretty: self.pretty, refresh: self.refresh, requests_per_second: self.requests_per_second, + require_alias: self.require_alias, scroll: self.scroll, slices: self.slices, source: self.source, @@ -6311,7 +6424,7 @@ impl<'b> ReindexRethrottleParts<'b> { } } } -#[doc = "Builder for the [Reindex Rethrottle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-reindex.html)\n\nChanges the number of requests per second for a particular Reindex operation."] +#[doc = "Builder for the [Reindex Rethrottle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-reindex.html)\n\nChanges the number of requests per second for a particular Reindex operation."] #[derive(Clone, Debug)] pub struct ReindexRethrottle<'a, 'b, B> { transport: &'a Transport, @@ -6465,7 +6578,7 @@ impl<'b> RenderSearchTemplateParts<'b> { } } } -#[doc = "Builder for the [Render Search Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/render-search-template-api.html)\n\nAllows to use the Mustache language to pre-render a search definition."] +#[doc = "Builder for the [Render Search Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/render-search-template-api.html)\n\nAllows to use the Mustache language to pre-render a search definition."] #[derive(Clone, Debug)] pub struct RenderSearchTemplate<'a, 'b, B> { transport: &'a Transport, @@ -6605,7 +6718,7 @@ impl ScriptsPainlessExecuteParts { } } } -#[doc = "Builder for the [Scripts Painless Execute API](https://www.elastic.co/guide/en/elasticsearch/painless/9.0/painless-execute-api.html)\n\nAllows an arbitrary script to be executed and a result to be returned"] +#[doc = "Builder for the [Scripts Painless Execute API](https://www.elastic.co/guide/en/elasticsearch/painless/9.1/painless-execute-api.html)\n\nAllows an arbitrary script to be executed and a result to be returned"] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -6756,7 +6869,7 @@ impl<'b> ScrollParts<'b> { } } } -#[doc = "Builder for the [Scroll API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/search-request-body.html#request-body-search-scroll)\n\nAllows to retrieve a large numbers of results from a single search request."] +#[doc = "Builder for the [Scroll API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/search-request-body.html#request-body-search-scroll)\n\nAllows to retrieve a large numbers of results from a single search request."] #[derive(Clone, Debug)] pub struct Scroll<'a, 'b, B> { transport: &'a Transport, @@ -6936,7 +7049,7 @@ impl<'b> SearchParts<'b> { } } } -#[doc = "Builder for the [Search API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/search-search.html)\n\nReturns results matching a query."] +#[doc = "Builder for the [Search API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/search-search.html)\n\nReturns results matching a query."] #[derive(Clone, Debug)] pub struct Search<'a, 'b, B> { transport: &'a Transport, @@ -7557,7 +7670,7 @@ impl<'b> SearchMvtParts<'b> { } } } -#[doc = "Builder for the [Search Mvt API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/search-vector-tile-api.html)\n\nSearches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile."] +#[doc = "Builder for the [Search Mvt API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/search-vector-tile-api.html)\n\nSearches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -7569,6 +7682,7 @@ pub struct SearchMvt<'a, 'b, B> { exact_bounds: Option, extent: Option, filter_path: Option<&'b [&'b str]>, + grid_agg: Option, grid_precision: Option, grid_type: Option, headers: HeaderMap, @@ -7597,6 +7711,7 @@ where exact_bounds: None, extent: None, filter_path: None, + grid_agg: None, grid_precision: None, grid_type: None, human: None, @@ -7621,6 +7736,7 @@ where exact_bounds: self.exact_bounds, extent: self.extent, filter_path: self.filter_path, + grid_agg: self.grid_agg, grid_precision: self.grid_precision, grid_type: self.grid_type, headers: self.headers, @@ -7653,6 +7769,11 @@ where self.filter_path = Some(filter_path); self } + #[doc = "Aggregation used to create a grid for `field`."] + pub fn grid_agg(mut self, grid_agg: GridAgg) -> Self { + self.grid_agg = Some(grid_agg); + self + } #[doc = "Additional zoom levels available through the aggs layer. Accepts 0-8."] pub fn grid_precision(mut self, grid_precision: i32) -> Self { self.grid_precision = Some(grid_precision); @@ -7721,6 +7842,7 @@ where extent: Option, #[serde(serialize_with = "crate::client::serialize_coll_qs")] filter_path: Option<&'b [&'b str]>, + grid_agg: Option, grid_precision: Option, grid_type: Option, human: Option, @@ -7735,6 +7857,7 @@ where exact_bounds: self.exact_bounds, extent: self.extent, filter_path: self.filter_path, + grid_agg: self.grid_agg, grid_precision: self.grid_precision, grid_type: self.grid_type, human: self.human, @@ -7780,7 +7903,7 @@ impl<'b> SearchShardsParts<'b> { } } } -#[doc = "Builder for the [Search Shards API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/search-shards.html)\n\nReturns information about the indices and shards that a search request would be executed against."] +#[doc = "Builder for the [Search Shards API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/search-shards.html)\n\nReturns information about the indices and shards that a search request would be executed against."] #[derive(Clone, Debug)] pub struct SearchShards<'a, 'b, B> { transport: &'a Transport, @@ -8001,7 +8124,7 @@ impl<'b> SearchTemplateParts<'b> { } } } -#[doc = "Builder for the [Search Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/search-template.html)\n\nAllows to use the Mustache language to pre-render a search definition."] +#[doc = "Builder for the [Search Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/search-template.html)\n\nAllows to use the Mustache language to pre-render a search definition."] #[derive(Clone, Debug)] pub struct SearchTemplate<'a, 'b, B> { transport: &'a Transport, @@ -8280,7 +8403,7 @@ impl<'b> TermsEnumParts<'b> { } } } -#[doc = "Builder for the [Terms Enum API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/search-terms-enum.html)\n\nThe terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios."] +#[doc = "Builder for the [Terms Enum API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/search-terms-enum.html)\n\nThe terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios."] #[derive(Clone, Debug)] pub struct TermsEnum<'a, 'b, B> { transport: &'a Transport, @@ -8439,7 +8562,7 @@ impl<'b> TermvectorsParts<'b> { } } } -#[doc = "Builder for the [Termvectors API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-termvectors.html)\n\nReturns information and statistics about terms in the fields of a particular document."] +#[doc = "Builder for the [Termvectors API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-termvectors.html)\n\nReturns information and statistics about terms in the fields of a particular document."] #[derive(Clone, Debug)] pub struct Termvectors<'a, 'b, B> { transport: &'a Transport, @@ -8698,7 +8821,7 @@ impl<'b> UpdateParts<'b> { } } } -#[doc = "Builder for the [Update API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-update.html)\n\nUpdates a document with a script or partial document."] +#[doc = "Builder for the [Update API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-update.html)\n\nUpdates a document with a script or partial document."] #[derive(Clone, Debug)] pub struct Update<'a, 'b, B> { transport: &'a Transport, @@ -8975,7 +9098,7 @@ impl<'b> UpdateByQueryParts<'b> { } } } -#[doc = "Builder for the [Update By Query API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-update-by-query.html)\n\nPerforms an update on every document in the index without changing the source,\nfor example to pick up a mapping change."] +#[doc = "Builder for the [Update By Query API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-update-by-query.html)\n\nPerforms an update on every document in the index without changing the source,\nfor example to pick up a mapping change."] #[derive(Clone, Debug)] pub struct UpdateByQuery<'a, 'b, B> { transport: &'a Transport, @@ -9432,7 +9555,7 @@ impl<'b> UpdateByQueryRethrottleParts<'b> { } } } -#[doc = "Builder for the [Update By Query Rethrottle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-update-by-query.html)\n\nChanges the number of requests per second for a particular Update By Query operation."] +#[doc = "Builder for the [Update By Query Rethrottle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-update-by-query.html)\n\nChanges the number of requests per second for a particular Update By Query operation."] #[derive(Clone, Debug)] pub struct UpdateByQueryRethrottle<'a, 'b, B> { transport: &'a Transport, @@ -9565,7 +9688,7 @@ where } #[allow(clippy::needless_lifetimes)] impl Elasticsearch { - #[doc = "[Bulk API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-bulk.html)\n\nAllows to perform multiple index/update/delete operations in a single request."] + #[doc = "[Bulk API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-bulk.html)\n\nAllows to perform multiple index/update/delete operations in a single request."] pub fn bulk<'a, 'b>(&'a self, parts: BulkParts<'b>) -> Bulk<'a, 'b, ()> { Bulk::new(self.transport(), parts) } @@ -9575,205 +9698,205 @@ impl Elasticsearch { pub fn capabilities<'a, 'b>(&'a self) -> Capabilities<'a, 'b> { Capabilities::new(self.transport()) } - #[doc = "[Clear Scroll API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/clear-scroll-api.html)\n\nExplicitly clears the search context for a scroll."] + #[doc = "[Clear Scroll API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/clear-scroll-api.html)\n\nExplicitly clears the search context for a scroll."] pub fn clear_scroll<'a, 'b>(&'a self, parts: ClearScrollParts<'b>) -> ClearScroll<'a, 'b, ()> { ClearScroll::new(self.transport(), parts) } - #[doc = "[Close Point In Time API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/point-in-time-api.html)\n\nClose a point in time"] + #[doc = "[Close Point In Time API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/point-in-time-api.html)\n\nClose a point in time"] pub fn close_point_in_time<'a, 'b>(&'a self) -> ClosePointInTime<'a, 'b, ()> { ClosePointInTime::new(self.transport()) } - #[doc = "[Count API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/search-count.html)\n\nReturns number of documents matching a query."] + #[doc = "[Count API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/search-count.html)\n\nReturns number of documents matching a query."] pub fn count<'a, 'b>(&'a self, parts: CountParts<'b>) -> Count<'a, 'b, ()> { Count::new(self.transport(), parts) } - #[doc = "[Create API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-index_.html)\n\nCreates a new document in the index.\n\nReturns a 409 response when a document with a same ID already exists in the index."] + #[doc = "[Create API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-index_.html)\n\nCreates a new document in the index.\n\nReturns a 409 response when a document with a same ID already exists in the index."] pub fn create<'a, 'b>(&'a self, parts: CreateParts<'b>) -> Create<'a, 'b, ()> { Create::new(self.transport(), parts) } - #[doc = "[Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-delete.html)\n\nRemoves a document from the index."] + #[doc = "[Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-delete.html)\n\nRemoves a document from the index."] pub fn delete<'a, 'b>(&'a self, parts: DeleteParts<'b>) -> Delete<'a, 'b> { Delete::new(self.transport(), parts) } - #[doc = "[Delete By Query API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-delete-by-query.html)\n\nDeletes documents matching the provided query."] + #[doc = "[Delete By Query API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-delete-by-query.html)\n\nDeletes documents matching the provided query."] pub fn delete_by_query<'a, 'b>( &'a self, parts: DeleteByQueryParts<'b>, ) -> DeleteByQuery<'a, 'b, ()> { DeleteByQuery::new(self.transport(), parts) } - #[doc = "[Delete By Query Rethrottle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-delete-by-query.html)\n\nChanges the number of requests per second for a particular Delete By Query operation."] + #[doc = "[Delete By Query Rethrottle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-delete-by-query.html)\n\nChanges the number of requests per second for a particular Delete By Query operation."] pub fn delete_by_query_rethrottle<'a, 'b>( &'a self, parts: DeleteByQueryRethrottleParts<'b>, ) -> DeleteByQueryRethrottle<'a, 'b, ()> { DeleteByQueryRethrottle::new(self.transport(), parts) } - #[doc = "[Delete Script API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-scripting.html)\n\nDeletes a script."] + #[doc = "[Delete Script API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-scripting.html)\n\nDeletes a script."] pub fn delete_script<'a, 'b>(&'a self, parts: DeleteScriptParts<'b>) -> DeleteScript<'a, 'b> { DeleteScript::new(self.transport(), parts) } - #[doc = "[Exists API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-get.html)\n\nReturns information about whether a document exists in an index."] + #[doc = "[Exists API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-get.html)\n\nReturns information about whether a document exists in an index."] pub fn exists<'a, 'b>(&'a self, parts: ExistsParts<'b>) -> Exists<'a, 'b> { Exists::new(self.transport(), parts) } - #[doc = "[Exists Source API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-get.html)\n\nReturns information about whether a document source exists in an index."] + #[doc = "[Exists Source API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-get.html)\n\nReturns information about whether a document source exists in an index."] pub fn exists_source<'a, 'b>(&'a self, parts: ExistsSourceParts<'b>) -> ExistsSource<'a, 'b> { ExistsSource::new(self.transport(), parts) } - #[doc = "[Explain API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/search-explain.html)\n\nReturns information about why a specific matches (or doesn't match) a query."] + #[doc = "[Explain API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/search-explain.html)\n\nReturns information about why a specific matches (or doesn't match) a query."] pub fn explain<'a, 'b>(&'a self, parts: ExplainParts<'b>) -> Explain<'a, 'b, ()> { Explain::new(self.transport(), parts) } - #[doc = "[Field Caps API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/search-field-caps.html)\n\nReturns the information about the capabilities of fields among multiple indices."] + #[doc = "[Field Caps API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/search-field-caps.html)\n\nReturns the information about the capabilities of fields among multiple indices."] pub fn field_caps<'a, 'b>(&'a self, parts: FieldCapsParts<'b>) -> FieldCaps<'a, 'b, ()> { FieldCaps::new(self.transport(), parts) } - #[doc = "[Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-get.html)\n\nReturns a document."] + #[doc = "[Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-get.html)\n\nReturns a document."] pub fn get<'a, 'b>(&'a self, parts: GetParts<'b>) -> Get<'a, 'b> { Get::new(self.transport(), parts) } - #[doc = "[Get Script API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-scripting.html)\n\nReturns a script."] + #[doc = "[Get Script API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-scripting.html)\n\nReturns a script."] pub fn get_script<'a, 'b>(&'a self, parts: GetScriptParts<'b>) -> GetScript<'a, 'b> { GetScript::new(self.transport(), parts) } - #[doc = "[Get Script Context API](https://www.elastic.co/guide/en/elasticsearch/painless/9.0/painless-contexts.html)\n\nReturns all script contexts."] + #[doc = "[Get Script Context API](https://www.elastic.co/guide/en/elasticsearch/painless/9.1/painless-contexts.html)\n\nReturns all script contexts."] pub fn get_script_context<'a, 'b>(&'a self) -> GetScriptContext<'a, 'b> { GetScriptContext::new(self.transport()) } - #[doc = "[Get Script Languages API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-scripting.html)\n\nReturns available script types, languages and contexts"] + #[doc = "[Get Script Languages API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-scripting.html)\n\nReturns available script types, languages and contexts"] pub fn get_script_languages<'a, 'b>(&'a self) -> GetScriptLanguages<'a, 'b> { GetScriptLanguages::new(self.transport()) } - #[doc = "[Get Source API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-get.html)\n\nReturns the source of a document."] + #[doc = "[Get Source API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-get.html)\n\nReturns the source of a document."] pub fn get_source<'a, 'b>(&'a self, parts: GetSourceParts<'b>) -> GetSource<'a, 'b> { GetSource::new(self.transport(), parts) } - #[doc = "[Health Report API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/health-api.html)\n\nReturns the health of the cluster."] + #[doc = "[Health Report API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/health-api.html)\n\nReturns the health of the cluster."] pub fn health_report<'a, 'b>(&'a self, parts: HealthReportParts<'b>) -> HealthReport<'a, 'b> { HealthReport::new(self.transport(), parts) } - #[doc = "[Index API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-index_.html)\n\nCreates or updates a document in an index."] + #[doc = "[Index API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-index_.html)\n\nCreates or updates a document in an index."] pub fn index<'a, 'b>(&'a self, parts: IndexParts<'b>) -> Index<'a, 'b, ()> { Index::new(self.transport(), parts) } - #[doc = "[Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/index.html)\n\nReturns basic information about the cluster."] + #[doc = "[Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/index.html)\n\nReturns basic information about the cluster."] pub fn info<'a, 'b>(&'a self) -> Info<'a, 'b> { Info::new(self.transport()) } - #[doc = "[Mget API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-multi-get.html)\n\nAllows to get multiple documents in one request."] + #[doc = "[Mget API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-multi-get.html)\n\nAllows to get multiple documents in one request."] pub fn mget<'a, 'b>(&'a self, parts: MgetParts<'b>) -> Mget<'a, 'b, ()> { Mget::new(self.transport(), parts) } - #[doc = "[Msearch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/search-multi-search.html)\n\nAllows to execute several search operations in one request.\n\n# Examples\n\nTo make a multi-search request, specify the headers and bodies\nfor the search requests in the body. The body accepts a\n`Vec` where `T` implements the [Body] trait.\n\n```rust,no_run\n# use elasticsearch::{Elasticsearch, Error, MsearchParts};\n# use elasticsearch::http::request::JsonBody;\n# use serde_json::{json, Value};\n# async fn doc() -> Result<(), Box> {\nlet client = Elasticsearch::default();\n\nfn print_hits(hits: &[Value]) {\n for hit in hits {\n println!(\n \"id: '{}', source: '{}', score: '{}'\",\n hit[\"_id\"].as_str().unwrap(),\n hit[\"_source\"],\n hit[\"_score\"].as_f64().unwrap()\n );\n }\n}\n\nlet msearch_response = client\n .msearch(MsearchParts::None)\n .body::>(vec![\n json!({\"index\":\"cat_food\"}).into(),\n json!({\"query\":{\"term\":{\"name\":{\"term\":\"Whiskers\"}}}}).into(),\n json!({\"index\":\"cat_food\"}).into(),\n json!({\"query\":{\"term\":{\"name\":{\"term\":\"Chicken\"}}}}).into(),\n json!({\"index\":\"cat_food\"}).into(),\n json!({\"query\":{\"term\":{\"name\":{\"term\":\"Turkey\"}}}}).into(),\n ])\n .send()\n .await?;\n\nlet json: Value = msearch_response.json().await?;\n\n// iterate over the responses\nfor response in json[\"responses\"].as_array().unwrap()\n{\n print_hits(response[\"hits\"][\"hits\"].as_array().unwrap());\n}\n \n# Ok(())\n# }\n```\n"] + #[doc = "[Msearch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/search-multi-search.html)\n\nAllows to execute several search operations in one request.\n\n# Examples\n\nTo make a multi-search request, specify the headers and bodies\nfor the search requests in the body. The body accepts a\n`Vec` where `T` implements the [Body] trait.\n\n```rust,no_run\n# use elasticsearch::{Elasticsearch, Error, MsearchParts};\n# use elasticsearch::http::request::JsonBody;\n# use serde_json::{json, Value};\n# async fn doc() -> Result<(), Box> {\nlet client = Elasticsearch::default();\n\nfn print_hits(hits: &[Value]) {\n for hit in hits {\n println!(\n \"id: '{}', source: '{}', score: '{}'\",\n hit[\"_id\"].as_str().unwrap(),\n hit[\"_source\"],\n hit[\"_score\"].as_f64().unwrap()\n );\n }\n}\n\nlet msearch_response = client\n .msearch(MsearchParts::None)\n .body::>(vec![\n json!({\"index\":\"cat_food\"}).into(),\n json!({\"query\":{\"term\":{\"name\":{\"term\":\"Whiskers\"}}}}).into(),\n json!({\"index\":\"cat_food\"}).into(),\n json!({\"query\":{\"term\":{\"name\":{\"term\":\"Chicken\"}}}}).into(),\n json!({\"index\":\"cat_food\"}).into(),\n json!({\"query\":{\"term\":{\"name\":{\"term\":\"Turkey\"}}}}).into(),\n ])\n .send()\n .await?;\n\nlet json: Value = msearch_response.json().await?;\n\n// iterate over the responses\nfor response in json[\"responses\"].as_array().unwrap()\n{\n print_hits(response[\"hits\"][\"hits\"].as_array().unwrap());\n}\n \n# Ok(())\n# }\n```\n"] pub fn msearch<'a, 'b>(&'a self, parts: MsearchParts<'b>) -> Msearch<'a, 'b, ()> { Msearch::new(self.transport(), parts) } - #[doc = "[Msearch Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/search-multi-search.html)\n\nAllows to execute several search template operations in one request."] + #[doc = "[Msearch Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/search-multi-search.html)\n\nAllows to execute several search template operations in one request."] pub fn msearch_template<'a, 'b>( &'a self, parts: MsearchTemplateParts<'b>, ) -> MsearchTemplate<'a, 'b, ()> { MsearchTemplate::new(self.transport(), parts) } - #[doc = "[Mtermvectors API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-multi-termvectors.html)\n\nReturns multiple termvectors in one request."] + #[doc = "[Mtermvectors API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-multi-termvectors.html)\n\nReturns multiple termvectors in one request."] pub fn mtermvectors<'a, 'b>( &'a self, parts: MtermvectorsParts<'b>, ) -> Mtermvectors<'a, 'b, ()> { Mtermvectors::new(self.transport(), parts) } - #[doc = "[Open Point In Time API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/point-in-time-api.html)\n\nOpen a point in time that can be used in subsequent searches"] + #[doc = "[Open Point In Time API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/point-in-time-api.html)\n\nOpen a point in time that can be used in subsequent searches"] pub fn open_point_in_time<'a, 'b>( &'a self, parts: OpenPointInTimeParts<'b>, ) -> OpenPointInTime<'a, 'b, ()> { OpenPointInTime::new(self.transport(), parts) } - #[doc = "[Ping API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/index.html)\n\nReturns whether the cluster is running."] + #[doc = "[Ping API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/index.html)\n\nReturns whether the cluster is running."] pub fn ping<'a, 'b>(&'a self) -> Ping<'a, 'b> { Ping::new(self.transport()) } - #[doc = "[Put Script API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-scripting.html)\n\nCreates or updates a script."] + #[doc = "[Put Script API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-scripting.html)\n\nCreates or updates a script."] pub fn put_script<'a, 'b>(&'a self, parts: PutScriptParts<'b>) -> PutScript<'a, 'b, ()> { PutScript::new(self.transport(), parts) } - #[doc = "[Rank Eval API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/search-rank-eval.html)\n\nAllows to evaluate the quality of ranked search results over a set of typical search queries"] + #[doc = "[Rank Eval API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/search-rank-eval.html)\n\nAllows to evaluate the quality of ranked search results over a set of typical search queries"] pub fn rank_eval<'a, 'b>(&'a self, parts: RankEvalParts<'b>) -> RankEval<'a, 'b, ()> { RankEval::new(self.transport(), parts) } - #[doc = "[Reindex API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-reindex.html)\n\nAllows to copy documents from one index to another, optionally filtering the source\ndocuments by a query, changing the destination index settings, or fetching the\ndocuments from a remote cluster."] + #[doc = "[Reindex API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-reindex.html)\n\nAllows to copy documents from one index to another, optionally filtering the source\ndocuments by a query, changing the destination index settings, or fetching the\ndocuments from a remote cluster."] pub fn reindex<'a, 'b>(&'a self) -> Reindex<'a, 'b, ()> { Reindex::new(self.transport()) } - #[doc = "[Reindex Rethrottle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-reindex.html)\n\nChanges the number of requests per second for a particular Reindex operation."] + #[doc = "[Reindex Rethrottle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-reindex.html)\n\nChanges the number of requests per second for a particular Reindex operation."] pub fn reindex_rethrottle<'a, 'b>( &'a self, parts: ReindexRethrottleParts<'b>, ) -> ReindexRethrottle<'a, 'b, ()> { ReindexRethrottle::new(self.transport(), parts) } - #[doc = "[Render Search Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/render-search-template-api.html)\n\nAllows to use the Mustache language to pre-render a search definition."] + #[doc = "[Render Search Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/render-search-template-api.html)\n\nAllows to use the Mustache language to pre-render a search definition."] pub fn render_search_template<'a, 'b>( &'a self, parts: RenderSearchTemplateParts<'b>, ) -> RenderSearchTemplate<'a, 'b, ()> { RenderSearchTemplate::new(self.transport(), parts) } - #[doc = "[Scripts Painless Execute API](https://www.elastic.co/guide/en/elasticsearch/painless/9.0/painless-execute-api.html)\n\nAllows an arbitrary script to be executed and a result to be returned"] + #[doc = "[Scripts Painless Execute API](https://www.elastic.co/guide/en/elasticsearch/painless/9.1/painless-execute-api.html)\n\nAllows an arbitrary script to be executed and a result to be returned"] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn scripts_painless_execute<'a, 'b>(&'a self) -> ScriptsPainlessExecute<'a, 'b, ()> { ScriptsPainlessExecute::new(self.transport()) } - #[doc = "[Scroll API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/search-request-body.html#request-body-search-scroll)\n\nAllows to retrieve a large numbers of results from a single search request.\n\n# Examples\n\nTo initiate a scroll, make search API call with a specified `scroll` timeout,\nthen fetch the next set of hits using the `_scroll_id` returned in\nthe response. Once no more hits are returned, clear the scroll.\n\n```rust,no_run\n# use elasticsearch::{Elasticsearch, Error, SearchParts, ScrollParts, ClearScrollParts};\n# use serde_json::{json, Value};\n# async fn doc() -> Result<(), Box> {\nlet client = Elasticsearch::default();\n\nfn print_hits(hits: &[Value]) {\n for hit in hits {\n println!(\n \"id: '{}', source: '{}', score: '{}'\",\n hit[\"_id\"].as_str().unwrap(),\n hit[\"_source\"],\n hit[\"_score\"].as_f64().unwrap()\n );\n }\n}\n\nlet scroll = \"1m\";\nlet mut response = client\n .search(SearchParts::Index(&[\"tweets\"]))\n .scroll(scroll)\n .body(json!({\n \"query\": {\n \"match\": {\n \"body\": {\n \"query\": \"Elasticsearch rust\",\n \"operator\": \"AND\"\n }\n }\n }\n }))\n .send()\n .await?;\n\nlet mut response_body = response.json::().await?;\nlet mut scroll_id = response_body[\"_scroll_id\"].as_str().unwrap();\nlet mut hits = response_body[\"hits\"][\"hits\"].as_array().unwrap();\n\nprint_hits(hits);\n\nwhile hits.len() > 0 {\n response = client\n .scroll(ScrollParts::None)\n .body(json!({\n \"scroll\": scroll,\n \"scroll_id\": scroll_id\n }))\n .send()\n .await?;\n\n response_body = response.json::().await?;\n scroll_id = response_body[\"_scroll_id\"].as_str().unwrap();\n hits = response_body[\"hits\"][\"hits\"].as_array().unwrap();\n print_hits(hits);\n}\n\nresponse = client\n .clear_scroll(ClearScrollParts::None)\n .body(json!({\n \"scroll_id\": scroll_id\n }))\n .send()\n .await?;\n \n# Ok(())\n# }\n```"] + #[doc = "[Scroll API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/search-request-body.html#request-body-search-scroll)\n\nAllows to retrieve a large numbers of results from a single search request.\n\n# Examples\n\nTo initiate a scroll, make search API call with a specified `scroll` timeout,\nthen fetch the next set of hits using the `_scroll_id` returned in\nthe response. Once no more hits are returned, clear the scroll.\n\n```rust,no_run\n# use elasticsearch::{Elasticsearch, Error, SearchParts, ScrollParts, ClearScrollParts};\n# use serde_json::{json, Value};\n# async fn doc() -> Result<(), Box> {\nlet client = Elasticsearch::default();\n\nfn print_hits(hits: &[Value]) {\n for hit in hits {\n println!(\n \"id: '{}', source: '{}', score: '{}'\",\n hit[\"_id\"].as_str().unwrap(),\n hit[\"_source\"],\n hit[\"_score\"].as_f64().unwrap()\n );\n }\n}\n\nlet scroll = \"1m\";\nlet mut response = client\n .search(SearchParts::Index(&[\"tweets\"]))\n .scroll(scroll)\n .body(json!({\n \"query\": {\n \"match\": {\n \"body\": {\n \"query\": \"Elasticsearch rust\",\n \"operator\": \"AND\"\n }\n }\n }\n }))\n .send()\n .await?;\n\nlet mut response_body = response.json::().await?;\nlet mut scroll_id = response_body[\"_scroll_id\"].as_str().unwrap();\nlet mut hits = response_body[\"hits\"][\"hits\"].as_array().unwrap();\n\nprint_hits(hits);\n\nwhile hits.len() > 0 {\n response = client\n .scroll(ScrollParts::None)\n .body(json!({\n \"scroll\": scroll,\n \"scroll_id\": scroll_id\n }))\n .send()\n .await?;\n\n response_body = response.json::().await?;\n scroll_id = response_body[\"_scroll_id\"].as_str().unwrap();\n hits = response_body[\"hits\"][\"hits\"].as_array().unwrap();\n print_hits(hits);\n}\n\nresponse = client\n .clear_scroll(ClearScrollParts::None)\n .body(json!({\n \"scroll_id\": scroll_id\n }))\n .send()\n .await?;\n \n# Ok(())\n# }\n```"] pub fn scroll<'a, 'b>(&'a self, parts: ScrollParts<'b>) -> Scroll<'a, 'b, ()> { Scroll::new(self.transport(), parts) } - #[doc = "[Search API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/search-search.html)\n\nReturns results matching a query."] + #[doc = "[Search API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/search-search.html)\n\nReturns results matching a query."] pub fn search<'a, 'b>(&'a self, parts: SearchParts<'b>) -> Search<'a, 'b, ()> { Search::new(self.transport(), parts) } - #[doc = "[Search Mvt API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/search-vector-tile-api.html)\n\nSearches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile."] + #[doc = "[Search Mvt API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/search-vector-tile-api.html)\n\nSearches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn search_mvt<'a, 'b>(&'a self, parts: SearchMvtParts<'b>) -> SearchMvt<'a, 'b, ()> { SearchMvt::new(self.transport(), parts) } - #[doc = "[Search Shards API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/search-shards.html)\n\nReturns information about the indices and shards that a search request would be executed against."] + #[doc = "[Search Shards API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/search-shards.html)\n\nReturns information about the indices and shards that a search request would be executed against."] pub fn search_shards<'a, 'b>( &'a self, parts: SearchShardsParts<'b>, ) -> SearchShards<'a, 'b, ()> { SearchShards::new(self.transport(), parts) } - #[doc = "[Search Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/search-template.html)\n\nAllows to use the Mustache language to pre-render a search definition."] + #[doc = "[Search Template API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/search-template.html)\n\nAllows to use the Mustache language to pre-render a search definition."] pub fn search_template<'a, 'b>( &'a self, parts: SearchTemplateParts<'b>, ) -> SearchTemplate<'a, 'b, ()> { SearchTemplate::new(self.transport(), parts) } - #[doc = "[Terms Enum API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/search-terms-enum.html)\n\nThe terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios."] + #[doc = "[Terms Enum API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/search-terms-enum.html)\n\nThe terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios."] pub fn terms_enum<'a, 'b>(&'a self, parts: TermsEnumParts<'b>) -> TermsEnum<'a, 'b, ()> { TermsEnum::new(self.transport(), parts) } - #[doc = "[Termvectors API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-termvectors.html)\n\nReturns information and statistics about terms in the fields of a particular document."] + #[doc = "[Termvectors API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-termvectors.html)\n\nReturns information and statistics about terms in the fields of a particular document."] pub fn termvectors<'a, 'b>(&'a self, parts: TermvectorsParts<'b>) -> Termvectors<'a, 'b, ()> { Termvectors::new(self.transport(), parts) } - #[doc = "[Update API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-update.html)\n\nUpdates a document with a script or partial document."] + #[doc = "[Update API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-update.html)\n\nUpdates a document with a script or partial document."] pub fn update<'a, 'b>(&'a self, parts: UpdateParts<'b>) -> Update<'a, 'b, ()> { Update::new(self.transport(), parts) } - #[doc = "[Update By Query API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-update-by-query.html)\n\nPerforms an update on every document in the index without changing the source,\nfor example to pick up a mapping change."] + #[doc = "[Update By Query API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-update-by-query.html)\n\nPerforms an update on every document in the index without changing the source,\nfor example to pick up a mapping change."] pub fn update_by_query<'a, 'b>( &'a self, parts: UpdateByQueryParts<'b>, ) -> UpdateByQuery<'a, 'b, ()> { UpdateByQuery::new(self.transport(), parts) } - #[doc = "[Update By Query Rethrottle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-update-by-query.html)\n\nChanges the number of requests per second for a particular Update By Query operation."] + #[doc = "[Update By Query Rethrottle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/docs-update-by-query.html)\n\nChanges the number of requests per second for a particular Update By Query operation."] pub fn update_by_query_rethrottle<'a, 'b>( &'a self, parts: UpdateByQueryRethrottleParts<'b>, diff --git a/elasticsearch/src/search_application.rs b/elasticsearch/src/search_application.rs index a92f39a1..59953862 100644 --- a/elasticsearch/src/search_application.rs +++ b/elasticsearch/src/search_application.rs @@ -68,7 +68,7 @@ impl<'b> SearchApplicationDeleteParts<'b> { } } } -#[doc = "Builder for the [Search Application Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-search-application.html)\n\nDeletes a search application."] +#[doc = "Builder for the [Search Application Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-search-application.html)\n\nDeletes a search application."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -191,7 +191,7 @@ impl<'b> SearchApplicationGetParts<'b> { } } } -#[doc = "Builder for the [Search Application Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-search-application.html)\n\nReturns the details about a search application."] +#[doc = "Builder for the [Search Application Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-search-application.html)\n\nReturns the details about a search application."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -308,7 +308,7 @@ impl SearchApplicationListParts { } } } -#[doc = "Builder for the [Search Application List API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/list-search-applications.html)\n\nReturns the existing search applications."] +#[doc = "Builder for the [Search Application List API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/list-search-applications.html)\n\nReturns the existing search applications."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -458,7 +458,7 @@ impl<'b> SearchApplicationPutParts<'b> { } } } -#[doc = "Builder for the [Search Application Put API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-search-application.html)\n\nCreates or updates a search application."] +#[doc = "Builder for the [Search Application Put API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-search-application.html)\n\nCreates or updates a search application."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -615,7 +615,7 @@ impl<'b> SearchApplicationRenderQueryParts<'b> { } } } -#[doc = "Builder for the [Search Application Render Query API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/search-application-render-query.html)\n\nRenders a query for given search application search parameters"] +#[doc = "Builder for the [Search Application Render Query API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/search-application-render-query.html)\n\nRenders a query for given search application search parameters"] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -762,7 +762,7 @@ impl<'b> SearchApplicationSearchParts<'b> { } } } -#[doc = "Builder for the [Search Application Search API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/search-application-search.html)\n\nPerform a search against a search application"] +#[doc = "Builder for the [Search Application Search API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/search-application-search.html)\n\nPerform a search against a search application"] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -914,7 +914,7 @@ impl<'a> SearchApplication<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Search Application Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-search-application.html)\n\nDeletes a search application."] + #[doc = "[Search Application Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-search-application.html)\n\nDeletes a search application."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn delete<'b>( @@ -923,19 +923,19 @@ impl<'a> SearchApplication<'a> { ) -> SearchApplicationDelete<'a, 'b> { SearchApplicationDelete::new(self.transport(), parts) } - #[doc = "[Search Application Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-search-application.html)\n\nReturns the details about a search application."] + #[doc = "[Search Application Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-search-application.html)\n\nReturns the details about a search application."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn get<'b>(&'a self, parts: SearchApplicationGetParts<'b>) -> SearchApplicationGet<'a, 'b> { SearchApplicationGet::new(self.transport(), parts) } - #[doc = "[Search Application List API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/list-search-applications.html)\n\nReturns the existing search applications."] + #[doc = "[Search Application List API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/list-search-applications.html)\n\nReturns the existing search applications."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn list<'b>(&'a self) -> SearchApplicationList<'a, 'b> { SearchApplicationList::new(self.transport()) } - #[doc = "[Search Application Put API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-search-application.html)\n\nCreates or updates a search application."] + #[doc = "[Search Application Put API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-search-application.html)\n\nCreates or updates a search application."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn put<'b>( @@ -944,7 +944,7 @@ impl<'a> SearchApplication<'a> { ) -> SearchApplicationPut<'a, 'b, ()> { SearchApplicationPut::new(self.transport(), parts) } - #[doc = "[Search Application Render Query API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/search-application-render-query.html)\n\nRenders a query for given search application search parameters"] + #[doc = "[Search Application Render Query API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/search-application-render-query.html)\n\nRenders a query for given search application search parameters"] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn render_query<'b>( @@ -953,7 +953,7 @@ impl<'a> SearchApplication<'a> { ) -> SearchApplicationRenderQuery<'a, 'b, ()> { SearchApplicationRenderQuery::new(self.transport(), parts) } - #[doc = "[Search Application Search API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/search-application-search.html)\n\nPerform a search against a search application"] + #[doc = "[Search Application Search API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/search-application-search.html)\n\nPerform a search against a search application"] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn search<'b>( diff --git a/elasticsearch/src/searchable_snapshots.rs b/elasticsearch/src/searchable_snapshots.rs index f2863e19..090f7945 100644 --- a/elasticsearch/src/searchable_snapshots.rs +++ b/elasticsearch/src/searchable_snapshots.rs @@ -75,7 +75,7 @@ impl<'b> SearchableSnapshotsCacheStatsParts<'b> { } } } -#[doc = "Builder for the [Searchable Snapshots Cache Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/searchable-snapshots-apis.html)\n\nRetrieve node-level cache statistics about searchable snapshots."] +#[doc = "Builder for the [Searchable Snapshots Cache Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/searchable-snapshots-apis.html)\n\nRetrieve node-level cache statistics about searchable snapshots."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -204,7 +204,7 @@ impl<'b> SearchableSnapshotsClearCacheParts<'b> { } } } -#[doc = "Builder for the [Searchable Snapshots Clear Cache API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/searchable-snapshots-apis.html)\n\nClear the cache of searchable snapshots."] +#[doc = "Builder for the [Searchable Snapshots Clear Cache API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/searchable-snapshots-apis.html)\n\nClear the cache of searchable snapshots."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -219,7 +219,6 @@ pub struct SearchableSnapshotsClearCache<'a, 'b, B> { headers: HeaderMap, human: Option, ignore_unavailable: Option, - index: Option<&'b [&'b str]>, pretty: Option, request_timeout: Option, source: Option<&'b str>, @@ -243,7 +242,6 @@ where filter_path: None, human: None, ignore_unavailable: None, - index: None, pretty: None, request_timeout: None, source: None, @@ -270,7 +268,6 @@ where headers: self.headers, human: self.human, ignore_unavailable: self.ignore_unavailable, - index: self.index, pretty: self.pretty, request_timeout: self.request_timeout, source: self.source, @@ -306,11 +303,6 @@ where self.ignore_unavailable = Some(ignore_unavailable); self } - #[doc = "A comma-separated list of index name to limit the operation"] - pub fn index(mut self, index: &'b [&'b str]) -> Self { - self.index = Some(index); - self - } #[doc = "Pretty format the returned JSON response."] pub fn pretty(mut self, pretty: bool) -> Self { self.pretty = Some(pretty); @@ -344,8 +336,6 @@ where filter_path: Option<&'b [&'b str]>, human: Option, ignore_unavailable: Option, - #[serde(serialize_with = "crate::client::serialize_coll_qs")] - index: Option<&'b [&'b str]>, pretty: Option, source: Option<&'b str>, } @@ -356,7 +346,6 @@ where filter_path: self.filter_path, human: self.human, ignore_unavailable: self.ignore_unavailable, - index: self.index, pretty: self.pretty, source: self.source, }; @@ -398,7 +387,7 @@ impl<'b> SearchableSnapshotsMountParts<'b> { } } } -#[doc = "Builder for the [Searchable Snapshots Mount API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/searchable-snapshots-api-mount-snapshot.html)\n\nMount a snapshot as a searchable index."] +#[doc = "Builder for the [Searchable Snapshots Mount API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/searchable-snapshots-api-mount-snapshot.html)\n\nMount a snapshot as a searchable index."] #[derive(Clone, Debug)] pub struct SearchableSnapshotsMount<'a, 'b, B> { transport: &'a Transport, @@ -575,7 +564,7 @@ impl<'b> SearchableSnapshotsStatsParts<'b> { } } } -#[doc = "Builder for the [Searchable Snapshots Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/searchable-snapshots-apis.html)\n\nRetrieve shard-level statistics about searchable snapshots."] +#[doc = "Builder for the [Searchable Snapshots Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/searchable-snapshots-apis.html)\n\nRetrieve shard-level statistics about searchable snapshots."] #[derive(Clone, Debug)] pub struct SearchableSnapshotsStats<'a, 'b> { transport: &'a Transport, @@ -694,7 +683,7 @@ impl<'a> SearchableSnapshots<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Searchable Snapshots Cache Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/searchable-snapshots-apis.html)\n\nRetrieve node-level cache statistics about searchable snapshots."] + #[doc = "[Searchable Snapshots Cache Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/searchable-snapshots-apis.html)\n\nRetrieve node-level cache statistics about searchable snapshots."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn cache_stats<'b>( @@ -703,7 +692,7 @@ impl<'a> SearchableSnapshots<'a> { ) -> SearchableSnapshotsCacheStats<'a, 'b> { SearchableSnapshotsCacheStats::new(self.transport(), parts) } - #[doc = "[Searchable Snapshots Clear Cache API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/searchable-snapshots-apis.html)\n\nClear the cache of searchable snapshots."] + #[doc = "[Searchable Snapshots Clear Cache API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/searchable-snapshots-apis.html)\n\nClear the cache of searchable snapshots."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn clear_cache<'b>( @@ -712,14 +701,14 @@ impl<'a> SearchableSnapshots<'a> { ) -> SearchableSnapshotsClearCache<'a, 'b, ()> { SearchableSnapshotsClearCache::new(self.transport(), parts) } - #[doc = "[Searchable Snapshots Mount API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/searchable-snapshots-api-mount-snapshot.html)\n\nMount a snapshot as a searchable index."] + #[doc = "[Searchable Snapshots Mount API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/searchable-snapshots-api-mount-snapshot.html)\n\nMount a snapshot as a searchable index."] pub fn mount<'b>( &'a self, parts: SearchableSnapshotsMountParts<'b>, ) -> SearchableSnapshotsMount<'a, 'b, ()> { SearchableSnapshotsMount::new(self.transport(), parts) } - #[doc = "[Searchable Snapshots Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/searchable-snapshots-apis.html)\n\nRetrieve shard-level statistics about searchable snapshots."] + #[doc = "[Searchable Snapshots Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/searchable-snapshots-apis.html)\n\nRetrieve shard-level statistics about searchable snapshots."] pub fn stats<'b>( &'a self, parts: SearchableSnapshotsStatsParts<'b>, diff --git a/elasticsearch/src/security.rs b/elasticsearch/src/security.rs index e984cf7c..dfdda3cf 100644 --- a/elasticsearch/src/security.rs +++ b/elasticsearch/src/security.rs @@ -66,7 +66,7 @@ impl SecurityActivateUserProfileParts { } } } -#[doc = "Builder for the [Security Activate User Profile API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-activate-user-profile.html)\n\nCreates or updates the user profile on behalf of another user."] +#[doc = "Builder for the [Security Activate User Profile API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-activate-user-profile.html)\n\nCreates or updates the user profile on behalf of another user."] #[derive(Clone, Debug)] pub struct SecurityActivateUserProfile<'a, 'b, B> { transport: &'a Transport, @@ -201,7 +201,7 @@ impl SecurityAuthenticateParts { } } } -#[doc = "Builder for the [Security Authenticate API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-authenticate.html)\n\nEnables authentication as a user and retrieve information about the authenticated user."] +#[doc = "Builder for the [Security Authenticate API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-authenticate.html)\n\nEnables authentication as a user and retrieve information about the authenticated user."] #[derive(Clone, Debug)] pub struct SecurityAuthenticate<'a, 'b> { transport: &'a Transport, @@ -313,7 +313,7 @@ impl SecurityBulkDeleteRoleParts { } } } -#[doc = "Builder for the [Security Bulk Delete Role API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-bulk-delete-role.html)\n\nBulk delete roles in the native realm."] +#[doc = "Builder for the [Security Bulk Delete Role API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-bulk-delete-role.html)\n\nBulk delete roles in the native realm."] #[derive(Clone, Debug)] pub struct SecurityBulkDeleteRole<'a, 'b, B> { transport: &'a Transport, @@ -458,7 +458,7 @@ impl SecurityBulkPutRoleParts { } } } -#[doc = "Builder for the [Security Bulk Put Role API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-bulk-put-role.html)\n\nBulk adds and updates roles in the native realm."] +#[doc = "Builder for the [Security Bulk Put Role API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-bulk-put-role.html)\n\nBulk adds and updates roles in the native realm."] #[derive(Clone, Debug)] pub struct SecurityBulkPutRole<'a, 'b, B> { transport: &'a Transport, @@ -603,7 +603,7 @@ impl SecurityBulkUpdateApiKeysParts { } } } -#[doc = "Builder for the [Security Bulk Update Api Keys API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-bulk-update-api-keys.html)\n\nUpdates the attributes of multiple existing API keys."] +#[doc = "Builder for the [Security Bulk Update Api Keys API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-bulk-update-api-keys.html)\n\nUpdates the attributes of multiple existing API keys."] #[derive(Clone, Debug)] pub struct SecurityBulkUpdateApiKeys<'a, 'b, B> { transport: &'a Transport, @@ -749,7 +749,7 @@ impl<'b> SecurityChangePasswordParts<'b> { } } } -#[doc = "Builder for the [Security Change Password API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-change-password.html)\n\nChanges the passwords of users in the native realm and built-in users."] +#[doc = "Builder for the [Security Change Password API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-change-password.html)\n\nChanges the passwords of users in the native realm and built-in users."] #[derive(Clone, Debug)] pub struct SecurityChangePassword<'a, 'b, B> { transport: &'a Transport, @@ -903,7 +903,7 @@ impl<'b> SecurityClearApiKeyCacheParts<'b> { } } } -#[doc = "Builder for the [Security Clear Api Key Cache API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-clear-api-key-cache.html)\n\nClear a subset or all entries from the API key cache."] +#[doc = "Builder for the [Security Clear Api Key Cache API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-clear-api-key-cache.html)\n\nClear a subset or all entries from the API key cache."] #[derive(Clone, Debug)] pub struct SecurityClearApiKeyCache<'a, 'b, B> { transport: &'a Transport, @@ -1047,7 +1047,7 @@ impl<'b> SecurityClearCachedPrivilegesParts<'b> { } } } -#[doc = "Builder for the [Security Clear Cached Privileges API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-clear-privilege-cache.html)\n\nEvicts application privileges from the native application privileges cache."] +#[doc = "Builder for the [Security Clear Cached Privileges API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-clear-privilege-cache.html)\n\nEvicts application privileges from the native application privileges cache."] #[derive(Clone, Debug)] pub struct SecurityClearCachedPrivileges<'a, 'b, B> { transport: &'a Transport, @@ -1191,7 +1191,7 @@ impl<'b> SecurityClearCachedRealmsParts<'b> { } } } -#[doc = "Builder for the [Security Clear Cached Realms API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-clear-cache.html)\n\nEvicts users from the user cache. Can completely clear the cache or evict specific users."] +#[doc = "Builder for the [Security Clear Cached Realms API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-clear-cache.html)\n\nEvicts users from the user cache. Can completely clear the cache or evict specific users."] #[derive(Clone, Debug)] pub struct SecurityClearCachedRealms<'a, 'b, B> { transport: &'a Transport, @@ -1346,7 +1346,7 @@ impl<'b> SecurityClearCachedRolesParts<'b> { } } } -#[doc = "Builder for the [Security Clear Cached Roles API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-clear-role-cache.html)\n\nEvicts roles from the native role cache."] +#[doc = "Builder for the [Security Clear Cached Roles API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-clear-role-cache.html)\n\nEvicts roles from the native role cache."] #[derive(Clone, Debug)] pub struct SecurityClearCachedRoles<'a, 'b, B> { transport: &'a Transport, @@ -1504,7 +1504,7 @@ impl<'b> SecurityClearCachedServiceTokensParts<'b> { } } } -#[doc = "Builder for the [Security Clear Cached Service Tokens API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-clear-service-token-caches.html)\n\nEvicts tokens from the service account token caches."] +#[doc = "Builder for the [Security Clear Cached Service Tokens API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-clear-service-token-caches.html)\n\nEvicts tokens from the service account token caches."] #[derive(Clone, Debug)] pub struct SecurityClearCachedServiceTokens<'a, 'b, B> { transport: &'a Transport, @@ -1639,7 +1639,7 @@ impl SecurityCreateApiKeyParts { } } } -#[doc = "Builder for the [Security Create Api Key API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-create-api-key.html)\n\nCreates an API key for access without requiring basic authentication."] +#[doc = "Builder for the [Security Create Api Key API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-create-api-key.html)\n\nCreates an API key for access without requiring basic authentication."] #[derive(Clone, Debug)] pub struct SecurityCreateApiKey<'a, 'b, B> { transport: &'a Transport, @@ -1786,7 +1786,7 @@ impl SecurityCreateCrossClusterApiKeyParts { } } } -#[doc = "Builder for the [Security Create Cross Cluster Api Key API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-create-cross-cluster-api-key.html)\n\nCreates a cross-cluster API key for API key based remote cluster access."] +#[doc = "Builder for the [Security Create Cross Cluster Api Key API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-create-cross-cluster-api-key.html)\n\nCreates a cross-cluster API key for API key based remote cluster access."] #[derive(Clone, Debug)] pub struct SecurityCreateCrossClusterApiKey<'a, 'b, B> { transport: &'a Transport, @@ -1954,7 +1954,7 @@ impl<'b> SecurityCreateServiceTokenParts<'b> { } } } -#[doc = "Builder for the [Security Create Service Token API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-create-service-token.html)\n\nCreates a service account token for access without requiring basic authentication."] +#[doc = "Builder for the [Security Create Service Token API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-create-service-token.html)\n\nCreates a service account token for access without requiring basic authentication."] #[derive(Clone, Debug)] pub struct SecurityCreateServiceToken<'a, 'b, B> { transport: &'a Transport, @@ -2099,7 +2099,7 @@ impl SecurityDelegatePkiParts { } } } -#[doc = "Builder for the [Security Delegate Pki API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-delegate-pki-authentication.html)\n\nDelegate PKI authentication."] +#[doc = "Builder for the [Security Delegate Pki API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-delegate-pki-authentication.html)\n\nDelegate PKI authentication."] #[derive(Clone, Debug)] pub struct SecurityDelegatePki<'a, 'b, B> { transport: &'a Transport, @@ -2245,7 +2245,7 @@ impl<'b> SecurityDeletePrivilegesParts<'b> { } } } -#[doc = "Builder for the [Security Delete Privileges API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-delete-privilege.html)\n\nRemoves application privileges."] +#[doc = "Builder for the [Security Delete Privileges API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-delete-privilege.html)\n\nRemoves application privileges."] #[derive(Clone, Debug)] pub struct SecurityDeletePrivileges<'a, 'b> { transport: &'a Transport, @@ -2372,7 +2372,7 @@ impl<'b> SecurityDeleteRoleParts<'b> { } } } -#[doc = "Builder for the [Security Delete Role API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-delete-role.html)\n\nRemoves roles in the native realm."] +#[doc = "Builder for the [Security Delete Role API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-delete-role.html)\n\nRemoves roles in the native realm."] #[derive(Clone, Debug)] pub struct SecurityDeleteRole<'a, 'b> { transport: &'a Transport, @@ -2499,7 +2499,7 @@ impl<'b> SecurityDeleteRoleMappingParts<'b> { } } } -#[doc = "Builder for the [Security Delete Role Mapping API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-delete-role-mapping.html)\n\nRemoves role mappings."] +#[doc = "Builder for the [Security Delete Role Mapping API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-delete-role-mapping.html)\n\nRemoves role mappings."] #[derive(Clone, Debug)] pub struct SecurityDeleteRoleMapping<'a, 'b> { transport: &'a Transport, @@ -2636,7 +2636,7 @@ impl<'b> SecurityDeleteServiceTokenParts<'b> { } } } -#[doc = "Builder for the [Security Delete Service Token API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-delete-service-token.html)\n\nDeletes a service account token."] +#[doc = "Builder for the [Security Delete Service Token API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-delete-service-token.html)\n\nDeletes a service account token."] #[derive(Clone, Debug)] pub struct SecurityDeleteServiceToken<'a, 'b> { transport: &'a Transport, @@ -2764,7 +2764,7 @@ impl<'b> SecurityDeleteUserParts<'b> { } } } -#[doc = "Builder for the [Security Delete User API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-delete-user.html)\n\nDeletes users from the native realm."] +#[doc = "Builder for the [Security Delete User API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-delete-user.html)\n\nDeletes users from the native realm."] #[derive(Clone, Debug)] pub struct SecurityDeleteUser<'a, 'b> { transport: &'a Transport, @@ -2893,7 +2893,7 @@ impl<'b> SecurityDisableUserParts<'b> { } } } -#[doc = "Builder for the [Security Disable User API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-disable-user.html)\n\nDisables users in the native realm."] +#[doc = "Builder for the [Security Disable User API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-disable-user.html)\n\nDisables users in the native realm."] #[derive(Clone, Debug)] pub struct SecurityDisableUser<'a, 'b, B> { transport: &'a Transport, @@ -3045,7 +3045,7 @@ impl<'b> SecurityDisableUserProfileParts<'b> { } } } -#[doc = "Builder for the [Security Disable User Profile API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-disable-user-profile.html)\n\nDisables a user profile so it's not visible in user profile searches."] +#[doc = "Builder for the [Security Disable User Profile API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-disable-user-profile.html)\n\nDisables a user profile so it's not visible in user profile searches."] #[derive(Clone, Debug)] pub struct SecurityDisableUserProfile<'a, 'b, B> { transport: &'a Transport, @@ -3198,7 +3198,7 @@ impl<'b> SecurityEnableUserParts<'b> { } } } -#[doc = "Builder for the [Security Enable User API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-enable-user.html)\n\nEnables users in the native realm."] +#[doc = "Builder for the [Security Enable User API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-enable-user.html)\n\nEnables users in the native realm."] #[derive(Clone, Debug)] pub struct SecurityEnableUser<'a, 'b, B> { transport: &'a Transport, @@ -3350,7 +3350,7 @@ impl<'b> SecurityEnableUserProfileParts<'b> { } } } -#[doc = "Builder for the [Security Enable User Profile API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-enable-user-profile.html)\n\nEnables a user profile so it's visible in user profile searches."] +#[doc = "Builder for the [Security Enable User Profile API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-enable-user-profile.html)\n\nEnables a user profile so it's visible in user profile searches."] #[derive(Clone, Debug)] pub struct SecurityEnableUserProfile<'a, 'b, B> { transport: &'a Transport, @@ -3495,7 +3495,7 @@ impl SecurityEnrollKibanaParts { } } } -#[doc = "Builder for the [Security Enroll Kibana API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-kibana-enrollment.html)\n\nAllows a kibana instance to configure itself to communicate with a secured elasticsearch cluster."] +#[doc = "Builder for the [Security Enroll Kibana API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-kibana-enrollment.html)\n\nAllows a kibana instance to configure itself to communicate with a secured elasticsearch cluster."] #[derive(Clone, Debug)] pub struct SecurityEnrollKibana<'a, 'b> { transport: &'a Transport, @@ -3607,7 +3607,7 @@ impl SecurityEnrollNodeParts { } } } -#[doc = "Builder for the [Security Enroll Node API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-node-enrollment.html)\n\nAllows a new node to enroll to an existing cluster with security enabled."] +#[doc = "Builder for the [Security Enroll Node API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-node-enrollment.html)\n\nAllows a new node to enroll to an existing cluster with security enabled."] #[derive(Clone, Debug)] pub struct SecurityEnrollNode<'a, 'b> { transport: &'a Transport, @@ -3719,7 +3719,7 @@ impl SecurityGetApiKeyParts { } } } -#[doc = "Builder for the [Security Get Api Key API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-get-api-key.html)\n\nRetrieves information for one or more API keys."] +#[doc = "Builder for the [Security Get Api Key API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-get-api-key.html)\n\nRetrieves information for one or more API keys."] #[derive(Clone, Debug)] pub struct SecurityGetApiKey<'a, 'b> { transport: &'a Transport, @@ -3903,7 +3903,7 @@ impl SecurityGetBuiltinPrivilegesParts { } } } -#[doc = "Builder for the [Security Get Builtin Privileges API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-get-builtin-privileges.html)\n\nRetrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch."] +#[doc = "Builder for the [Security Get Builtin Privileges API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-get-builtin-privileges.html)\n\nRetrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch."] #[derive(Clone, Debug)] pub struct SecurityGetBuiltinPrivileges<'a, 'b> { transport: &'a Transport, @@ -4039,7 +4039,7 @@ impl<'b> SecurityGetPrivilegesParts<'b> { } } } -#[doc = "Builder for the [Security Get Privileges API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-get-privileges.html)\n\nRetrieves application privileges."] +#[doc = "Builder for the [Security Get Privileges API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-get-privileges.html)\n\nRetrieves application privileges."] #[derive(Clone, Debug)] pub struct SecurityGetPrivileges<'a, 'b> { transport: &'a Transport, @@ -4162,7 +4162,7 @@ impl<'b> SecurityGetRoleParts<'b> { } } } -#[doc = "Builder for the [Security Get Role API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-get-role.html)\n\nRetrieves roles in the native realm."] +#[doc = "Builder for the [Security Get Role API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-get-role.html)\n\nRetrieves roles in the native realm."] #[derive(Clone, Debug)] pub struct SecurityGetRole<'a, 'b> { transport: &'a Transport, @@ -4285,7 +4285,7 @@ impl<'b> SecurityGetRoleMappingParts<'b> { } } } -#[doc = "Builder for the [Security Get Role Mapping API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-get-role-mapping.html)\n\nRetrieves role mappings."] +#[doc = "Builder for the [Security Get Role Mapping API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-get-role-mapping.html)\n\nRetrieves role mappings."] #[derive(Clone, Debug)] pub struct SecurityGetRoleMapping<'a, 'b> { transport: &'a Transport, @@ -4423,7 +4423,7 @@ impl<'b> SecurityGetServiceAccountsParts<'b> { } } } -#[doc = "Builder for the [Security Get Service Accounts API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-get-service-accounts.html)\n\nRetrieves information about service accounts."] +#[doc = "Builder for the [Security Get Service Accounts API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-get-service-accounts.html)\n\nRetrieves information about service accounts."] #[derive(Clone, Debug)] pub struct SecurityGetServiceAccounts<'a, 'b> { transport: &'a Transport, @@ -4549,7 +4549,7 @@ impl<'b> SecurityGetServiceCredentialsParts<'b> { } } } -#[doc = "Builder for the [Security Get Service Credentials API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-get-service-credentials.html)\n\nRetrieves information of all service credentials for a service account."] +#[doc = "Builder for the [Security Get Service Credentials API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-get-service-credentials.html)\n\nRetrieves information of all service credentials for a service account."] #[derive(Clone, Debug)] pub struct SecurityGetServiceCredentials<'a, 'b> { transport: &'a Transport, @@ -4661,7 +4661,7 @@ impl SecurityGetSettingsParts { } } } -#[doc = "Builder for the [Security Get Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-get-settings.html)\n\nRetrieve settings for the security system indices"] +#[doc = "Builder for the [Security Get Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-get-settings.html)\n\nRetrieve settings for the security system indices"] #[derive(Clone, Debug)] pub struct SecurityGetSettings<'a, 'b> { transport: &'a Transport, @@ -4782,7 +4782,7 @@ impl SecurityGetTokenParts { } } } -#[doc = "Builder for the [Security Get Token API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-get-token.html)\n\nCreates a bearer token for access without requiring basic authentication."] +#[doc = "Builder for the [Security Get Token API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-get-token.html)\n\nCreates a bearer token for access without requiring basic authentication."] #[derive(Clone, Debug)] pub struct SecurityGetToken<'a, 'b, B> { transport: &'a Transport, @@ -4928,7 +4928,7 @@ impl<'b> SecurityGetUserParts<'b> { } } } -#[doc = "Builder for the [Security Get User API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-get-user.html)\n\nRetrieves information about users in the native realm and built-in users."] +#[doc = "Builder for the [Security Get User API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-get-user.html)\n\nRetrieves information about users in the native realm and built-in users."] #[derive(Clone, Debug)] pub struct SecurityGetUser<'a, 'b> { transport: &'a Transport, @@ -5049,7 +5049,7 @@ impl SecurityGetUserPrivilegesParts { } } } -#[doc = "Builder for the [Security Get User Privileges API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-get-user-privileges.html)\n\nRetrieves security privileges for the logged in user."] +#[doc = "Builder for the [Security Get User Privileges API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-get-user-privileges.html)\n\nRetrieves security privileges for the logged in user."] #[derive(Clone, Debug)] pub struct SecurityGetUserPrivileges<'a, 'b> { transport: &'a Transport, @@ -5169,7 +5169,7 @@ impl<'b> SecurityGetUserProfileParts<'b> { } } } -#[doc = "Builder for the [Security Get User Profile API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-get-user-profile.html)\n\nRetrieves user profiles for the given unique ID(s)."] +#[doc = "Builder for the [Security Get User Profile API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-get-user-profile.html)\n\nRetrieves user profiles for the given unique ID(s)."] #[derive(Clone, Debug)] pub struct SecurityGetUserProfile<'a, 'b> { transport: &'a Transport, @@ -5291,7 +5291,7 @@ impl SecurityGrantApiKeyParts { } } } -#[doc = "Builder for the [Security Grant Api Key API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-grant-api-key.html)\n\nCreates an API key on behalf of another user."] +#[doc = "Builder for the [Security Grant Api Key API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-grant-api-key.html)\n\nCreates an API key on behalf of another user."] #[derive(Clone, Debug)] pub struct SecurityGrantApiKey<'a, 'b, B> { transport: &'a Transport, @@ -5446,7 +5446,7 @@ impl<'b> SecurityHasPrivilegesParts<'b> { } } } -#[doc = "Builder for the [Security Has Privileges API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-has-privileges.html)\n\nDetermines whether the specified user has a specified list of privileges."] +#[doc = "Builder for the [Security Has Privileges API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-has-privileges.html)\n\nDetermines whether the specified user has a specified list of privileges."] #[derive(Clone, Debug)] pub struct SecurityHasPrivileges<'a, 'b, B> { transport: &'a Transport, @@ -5586,7 +5586,7 @@ impl SecurityHasPrivilegesUserProfileParts { } } } -#[doc = "Builder for the [Security Has Privileges User Profile API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-has-privileges-user-profile.html)\n\nDetermines whether the users associated with the specified profile IDs have all the requested privileges."] +#[doc = "Builder for the [Security Has Privileges User Profile API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-has-privileges-user-profile.html)\n\nDetermines whether the users associated with the specified profile IDs have all the requested privileges."] #[derive(Clone, Debug)] pub struct SecurityHasPrivilegesUserProfile<'a, 'b, B> { transport: &'a Transport, @@ -5724,7 +5724,7 @@ impl SecurityInvalidateApiKeyParts { } } } -#[doc = "Builder for the [Security Invalidate Api Key API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-invalidate-api-key.html)\n\nInvalidates one or more API keys."] +#[doc = "Builder for the [Security Invalidate Api Key API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-invalidate-api-key.html)\n\nInvalidates one or more API keys."] #[derive(Clone, Debug)] pub struct SecurityInvalidateApiKey<'a, 'b, B> { transport: &'a Transport, @@ -5859,7 +5859,7 @@ impl SecurityInvalidateTokenParts { } } } -#[doc = "Builder for the [Security Invalidate Token API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-invalidate-token.html)\n\nInvalidates one or more access tokens or refresh tokens."] +#[doc = "Builder for the [Security Invalidate Token API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-invalidate-token.html)\n\nInvalidates one or more access tokens or refresh tokens."] #[derive(Clone, Debug)] pub struct SecurityInvalidateToken<'a, 'b, B> { transport: &'a Transport, @@ -5994,7 +5994,7 @@ impl SecurityOidcAuthenticateParts { } } } -#[doc = "Builder for the [Security Oidc Authenticate API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-oidc-authenticate.html)\n\nExchanges an OpenID Connection authentication response message for an Elasticsearch access token and refresh token pair"] +#[doc = "Builder for the [Security Oidc Authenticate API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-oidc-authenticate.html)\n\nExchanges an OpenID Connection authentication response message for an Elasticsearch access token and refresh token pair"] #[derive(Clone, Debug)] pub struct SecurityOidcAuthenticate<'a, 'b, B> { transport: &'a Transport, @@ -6129,7 +6129,7 @@ impl SecurityOidcLogoutParts { } } } -#[doc = "Builder for the [Security Oidc Logout API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-oidc-logout.html)\n\nInvalidates a refresh token and access token that was generated from the OpenID Connect Authenticate API"] +#[doc = "Builder for the [Security Oidc Logout API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-oidc-logout.html)\n\nInvalidates a refresh token and access token that was generated from the OpenID Connect Authenticate API"] #[derive(Clone, Debug)] pub struct SecurityOidcLogout<'a, 'b, B> { transport: &'a Transport, @@ -6264,7 +6264,7 @@ impl SecurityOidcPrepareAuthenticationParts { } } } -#[doc = "Builder for the [Security Oidc Prepare Authentication API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-oidc-prepare-authentication.html)\n\nCreates an OAuth 2.0 authentication request as a URL string"] +#[doc = "Builder for the [Security Oidc Prepare Authentication API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-oidc-prepare-authentication.html)\n\nCreates an OAuth 2.0 authentication request as a URL string"] #[derive(Clone, Debug)] pub struct SecurityOidcPrepareAuthentication<'a, 'b, B> { transport: &'a Transport, @@ -6399,7 +6399,7 @@ impl SecurityPutPrivilegesParts { } } } -#[doc = "Builder for the [Security Put Privileges API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-put-privileges.html)\n\nAdds or updates application privileges."] +#[doc = "Builder for the [Security Put Privileges API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-put-privileges.html)\n\nAdds or updates application privileges."] #[derive(Clone, Debug)] pub struct SecurityPutPrivileges<'a, 'b, B> { transport: &'a Transport, @@ -6550,7 +6550,7 @@ impl<'b> SecurityPutRoleParts<'b> { } } } -#[doc = "Builder for the [Security Put Role API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-put-role.html)\n\nAdds and updates roles in the native realm."] +#[doc = "Builder for the [Security Put Role API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-put-role.html)\n\nAdds and updates roles in the native realm."] #[derive(Clone, Debug)] pub struct SecurityPutRole<'a, 'b, B> { transport: &'a Transport, @@ -6701,7 +6701,7 @@ impl<'b> SecurityPutRoleMappingParts<'b> { } } } -#[doc = "Builder for the [Security Put Role Mapping API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-put-role-mapping.html)\n\nCreates and updates role mappings."] +#[doc = "Builder for the [Security Put Role Mapping API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-put-role-mapping.html)\n\nCreates and updates role mappings."] #[derive(Clone, Debug)] pub struct SecurityPutRoleMapping<'a, 'b, B> { transport: &'a Transport, @@ -6853,7 +6853,7 @@ impl<'b> SecurityPutUserParts<'b> { } } } -#[doc = "Builder for the [Security Put User API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-put-user.html)\n\nAdds and updates users in the native realm. These users are commonly referred to as native users."] +#[doc = "Builder for the [Security Put User API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-put-user.html)\n\nAdds and updates users in the native realm. These users are commonly referred to as native users."] #[derive(Clone, Debug)] pub struct SecurityPutUser<'a, 'b, B> { transport: &'a Transport, @@ -6998,7 +6998,7 @@ impl SecurityQueryApiKeysParts { } } } -#[doc = "Builder for the [Security Query Api Keys API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-query-api-key.html)\n\nRetrieves information for API keys using a subset of query DSL"] +#[doc = "Builder for the [Security Query Api Keys API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-query-api-key.html)\n\nRetrieves information for API keys using a subset of query DSL"] #[derive(Clone, Debug)] pub struct SecurityQueryApiKeys<'a, 'b, B> { transport: &'a Transport, @@ -7166,7 +7166,7 @@ impl SecurityQueryRoleParts { } } } -#[doc = "Builder for the [Security Query Role API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-query-role.html)\n\nRetrieves information for Roles using a subset of query DSL"] +#[doc = "Builder for the [Security Query Role API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-query-role.html)\n\nRetrieves information for Roles using a subset of query DSL"] #[derive(Clone, Debug)] pub struct SecurityQueryRole<'a, 'b, B> { transport: &'a Transport, @@ -7304,7 +7304,7 @@ impl SecurityQueryUserParts { } } } -#[doc = "Builder for the [Security Query User API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-query-user.html)\n\nRetrieves information for Users using a subset of query DSL"] +#[doc = "Builder for the [Security Query User API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-query-user.html)\n\nRetrieves information for Users using a subset of query DSL"] #[derive(Clone, Debug)] pub struct SecurityQueryUser<'a, 'b, B> { transport: &'a Transport, @@ -7452,7 +7452,7 @@ impl SecuritySamlAuthenticateParts { } } } -#[doc = "Builder for the [Security Saml Authenticate API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-saml-authenticate.html)\n\nExchanges a SAML Response message for an Elasticsearch access token and refresh token pair"] +#[doc = "Builder for the [Security Saml Authenticate API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-saml-authenticate.html)\n\nExchanges a SAML Response message for an Elasticsearch access token and refresh token pair"] #[derive(Clone, Debug)] pub struct SecuritySamlAuthenticate<'a, 'b, B> { transport: &'a Transport, @@ -7587,7 +7587,7 @@ impl SecuritySamlCompleteLogoutParts { } } } -#[doc = "Builder for the [Security Saml Complete Logout API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-saml-complete-logout.html)\n\nVerifies the logout response sent from the SAML IdP"] +#[doc = "Builder for the [Security Saml Complete Logout API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-saml-complete-logout.html)\n\nVerifies the logout response sent from the SAML IdP"] #[derive(Clone, Debug)] pub struct SecuritySamlCompleteLogout<'a, 'b, B> { transport: &'a Transport, @@ -7722,7 +7722,7 @@ impl SecuritySamlInvalidateParts { } } } -#[doc = "Builder for the [Security Saml Invalidate API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-saml-invalidate.html)\n\nConsumes a SAML LogoutRequest"] +#[doc = "Builder for the [Security Saml Invalidate API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-saml-invalidate.html)\n\nConsumes a SAML LogoutRequest"] #[derive(Clone, Debug)] pub struct SecuritySamlInvalidate<'a, 'b, B> { transport: &'a Transport, @@ -7857,7 +7857,7 @@ impl SecuritySamlLogoutParts { } } } -#[doc = "Builder for the [Security Saml Logout API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-saml-logout.html)\n\nInvalidates an access token and a refresh token that were generated via the SAML Authenticate API"] +#[doc = "Builder for the [Security Saml Logout API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-saml-logout.html)\n\nInvalidates an access token and a refresh token that were generated via the SAML Authenticate API"] #[derive(Clone, Debug)] pub struct SecuritySamlLogout<'a, 'b, B> { transport: &'a Transport, @@ -7992,7 +7992,7 @@ impl SecuritySamlPrepareAuthenticationParts { } } } -#[doc = "Builder for the [Security Saml Prepare Authentication API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-saml-prepare-authentication.html)\n\nCreates a SAML authentication request"] +#[doc = "Builder for the [Security Saml Prepare Authentication API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-saml-prepare-authentication.html)\n\nCreates a SAML authentication request"] #[derive(Clone, Debug)] pub struct SecuritySamlPrepareAuthentication<'a, 'b, B> { transport: &'a Transport, @@ -8134,7 +8134,7 @@ impl<'b> SecuritySamlServiceProviderMetadataParts<'b> { } } } -#[doc = "Builder for the [Security Saml Service Provider Metadata API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-saml-sp-metadata.html)\n\nGenerates SAML metadata for the Elastic stack SAML 2.0 Service Provider"] +#[doc = "Builder for the [Security Saml Service Provider Metadata API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-saml-sp-metadata.html)\n\nGenerates SAML metadata for the Elastic stack SAML 2.0 Service Provider"] #[derive(Clone, Debug)] pub struct SecuritySamlServiceProviderMetadata<'a, 'b> { transport: &'a Transport, @@ -8249,7 +8249,7 @@ impl SecuritySuggestUserProfilesParts { } } } -#[doc = "Builder for the [Security Suggest User Profiles API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-suggest-user-profile.html)\n\nGet suggestions for user profiles that match specified search criteria."] +#[doc = "Builder for the [Security Suggest User Profiles API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-suggest-user-profile.html)\n\nGet suggestions for user profiles that match specified search criteria."] #[derive(Clone, Debug)] pub struct SecuritySuggestUserProfiles<'a, 'b, B> { transport: &'a Transport, @@ -8404,7 +8404,7 @@ impl<'b> SecurityUpdateApiKeyParts<'b> { } } } -#[doc = "Builder for the [Security Update Api Key API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-update-api-key.html)\n\nUpdates attributes of an existing API key."] +#[doc = "Builder for the [Security Update Api Key API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-update-api-key.html)\n\nUpdates attributes of an existing API key."] #[derive(Clone, Debug)] pub struct SecurityUpdateApiKey<'a, 'b, B> { transport: &'a Transport, @@ -8545,7 +8545,7 @@ impl<'b> SecurityUpdateCrossClusterApiKeyParts<'b> { } } } -#[doc = "Builder for the [Security Update Cross Cluster Api Key API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-update-cross-cluster-api-key.html)\n\nUpdates attributes of an existing cross-cluster API key."] +#[doc = "Builder for the [Security Update Cross Cluster Api Key API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-update-cross-cluster-api-key.html)\n\nUpdates attributes of an existing cross-cluster API key."] #[derive(Clone, Debug)] pub struct SecurityUpdateCrossClusterApiKey<'a, 'b, B> { transport: &'a Transport, @@ -8680,7 +8680,7 @@ impl SecurityUpdateSettingsParts { } } } -#[doc = "Builder for the [Security Update Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-update-settings.html)\n\nUpdate settings for the security system index"] +#[doc = "Builder for the [Security Update Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-update-settings.html)\n\nUpdate settings for the security system index"] #[derive(Clone, Debug)] pub struct SecurityUpdateSettings<'a, 'b, B> { transport: &'a Transport, @@ -8842,7 +8842,7 @@ impl<'b> SecurityUpdateUserProfileDataParts<'b> { } } } -#[doc = "Builder for the [Security Update User Profile Data API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-update-user-profile-data.html)\n\nUpdate application specific data for the user profile of the given unique ID."] +#[doc = "Builder for the [Security Update User Profile Data API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-update-user-profile-data.html)\n\nUpdate application specific data for the user profile of the given unique ID."] #[derive(Clone, Debug)] pub struct SecurityUpdateUserProfileData<'a, 'b, B> { transport: &'a Transport, @@ -9005,345 +9005,345 @@ impl<'a> Security<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Security Activate User Profile API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-activate-user-profile.html)\n\nCreates or updates the user profile on behalf of another user."] + #[doc = "[Security Activate User Profile API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-activate-user-profile.html)\n\nCreates or updates the user profile on behalf of another user."] pub fn activate_user_profile<'b>(&'a self) -> SecurityActivateUserProfile<'a, 'b, ()> { SecurityActivateUserProfile::new(self.transport()) } - #[doc = "[Security Authenticate API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-authenticate.html)\n\nEnables authentication as a user and retrieve information about the authenticated user."] + #[doc = "[Security Authenticate API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-authenticate.html)\n\nEnables authentication as a user and retrieve information about the authenticated user."] pub fn authenticate<'b>(&'a self) -> SecurityAuthenticate<'a, 'b> { SecurityAuthenticate::new(self.transport()) } - #[doc = "[Security Bulk Delete Role API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-bulk-delete-role.html)\n\nBulk delete roles in the native realm."] + #[doc = "[Security Bulk Delete Role API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-bulk-delete-role.html)\n\nBulk delete roles in the native realm."] pub fn bulk_delete_role<'b>(&'a self) -> SecurityBulkDeleteRole<'a, 'b, ()> { SecurityBulkDeleteRole::new(self.transport()) } - #[doc = "[Security Bulk Put Role API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-bulk-put-role.html)\n\nBulk adds and updates roles in the native realm."] + #[doc = "[Security Bulk Put Role API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-bulk-put-role.html)\n\nBulk adds and updates roles in the native realm."] pub fn bulk_put_role<'b>(&'a self) -> SecurityBulkPutRole<'a, 'b, ()> { SecurityBulkPutRole::new(self.transport()) } - #[doc = "[Security Bulk Update Api Keys API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-bulk-update-api-keys.html)\n\nUpdates the attributes of multiple existing API keys."] + #[doc = "[Security Bulk Update Api Keys API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-bulk-update-api-keys.html)\n\nUpdates the attributes of multiple existing API keys."] pub fn bulk_update_api_keys<'b>(&'a self) -> SecurityBulkUpdateApiKeys<'a, 'b, ()> { SecurityBulkUpdateApiKeys::new(self.transport()) } - #[doc = "[Security Change Password API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-change-password.html)\n\nChanges the passwords of users in the native realm and built-in users."] + #[doc = "[Security Change Password API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-change-password.html)\n\nChanges the passwords of users in the native realm and built-in users."] pub fn change_password<'b>( &'a self, parts: SecurityChangePasswordParts<'b>, ) -> SecurityChangePassword<'a, 'b, ()> { SecurityChangePassword::new(self.transport(), parts) } - #[doc = "[Security Clear Api Key Cache API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-clear-api-key-cache.html)\n\nClear a subset or all entries from the API key cache."] + #[doc = "[Security Clear Api Key Cache API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-clear-api-key-cache.html)\n\nClear a subset or all entries from the API key cache."] pub fn clear_api_key_cache<'b>( &'a self, parts: SecurityClearApiKeyCacheParts<'b>, ) -> SecurityClearApiKeyCache<'a, 'b, ()> { SecurityClearApiKeyCache::new(self.transport(), parts) } - #[doc = "[Security Clear Cached Privileges API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-clear-privilege-cache.html)\n\nEvicts application privileges from the native application privileges cache."] + #[doc = "[Security Clear Cached Privileges API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-clear-privilege-cache.html)\n\nEvicts application privileges from the native application privileges cache."] pub fn clear_cached_privileges<'b>( &'a self, parts: SecurityClearCachedPrivilegesParts<'b>, ) -> SecurityClearCachedPrivileges<'a, 'b, ()> { SecurityClearCachedPrivileges::new(self.transport(), parts) } - #[doc = "[Security Clear Cached Realms API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-clear-cache.html)\n\nEvicts users from the user cache. Can completely clear the cache or evict specific users."] + #[doc = "[Security Clear Cached Realms API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-clear-cache.html)\n\nEvicts users from the user cache. Can completely clear the cache or evict specific users."] pub fn clear_cached_realms<'b>( &'a self, parts: SecurityClearCachedRealmsParts<'b>, ) -> SecurityClearCachedRealms<'a, 'b, ()> { SecurityClearCachedRealms::new(self.transport(), parts) } - #[doc = "[Security Clear Cached Roles API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-clear-role-cache.html)\n\nEvicts roles from the native role cache."] + #[doc = "[Security Clear Cached Roles API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-clear-role-cache.html)\n\nEvicts roles from the native role cache."] pub fn clear_cached_roles<'b>( &'a self, parts: SecurityClearCachedRolesParts<'b>, ) -> SecurityClearCachedRoles<'a, 'b, ()> { SecurityClearCachedRoles::new(self.transport(), parts) } - #[doc = "[Security Clear Cached Service Tokens API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-clear-service-token-caches.html)\n\nEvicts tokens from the service account token caches."] + #[doc = "[Security Clear Cached Service Tokens API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-clear-service-token-caches.html)\n\nEvicts tokens from the service account token caches."] pub fn clear_cached_service_tokens<'b>( &'a self, parts: SecurityClearCachedServiceTokensParts<'b>, ) -> SecurityClearCachedServiceTokens<'a, 'b, ()> { SecurityClearCachedServiceTokens::new(self.transport(), parts) } - #[doc = "[Security Create Api Key API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-create-api-key.html)\n\nCreates an API key for access without requiring basic authentication."] + #[doc = "[Security Create Api Key API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-create-api-key.html)\n\nCreates an API key for access without requiring basic authentication."] pub fn create_api_key<'b>(&'a self) -> SecurityCreateApiKey<'a, 'b, ()> { SecurityCreateApiKey::new(self.transport()) } - #[doc = "[Security Create Cross Cluster Api Key API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-create-cross-cluster-api-key.html)\n\nCreates a cross-cluster API key for API key based remote cluster access."] + #[doc = "[Security Create Cross Cluster Api Key API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-create-cross-cluster-api-key.html)\n\nCreates a cross-cluster API key for API key based remote cluster access."] pub fn create_cross_cluster_api_key<'b>( &'a self, ) -> SecurityCreateCrossClusterApiKey<'a, 'b, ()> { SecurityCreateCrossClusterApiKey::new(self.transport()) } - #[doc = "[Security Create Service Token API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-create-service-token.html)\n\nCreates a service account token for access without requiring basic authentication."] + #[doc = "[Security Create Service Token API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-create-service-token.html)\n\nCreates a service account token for access without requiring basic authentication."] pub fn create_service_token<'b>( &'a self, parts: SecurityCreateServiceTokenParts<'b>, ) -> SecurityCreateServiceToken<'a, 'b, ()> { SecurityCreateServiceToken::new(self.transport(), parts) } - #[doc = "[Security Delegate Pki API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-delegate-pki-authentication.html)\n\nDelegate PKI authentication."] + #[doc = "[Security Delegate Pki API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-delegate-pki-authentication.html)\n\nDelegate PKI authentication."] pub fn delegate_pki<'b>(&'a self) -> SecurityDelegatePki<'a, 'b, ()> { SecurityDelegatePki::new(self.transport()) } - #[doc = "[Security Delete Privileges API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-delete-privilege.html)\n\nRemoves application privileges."] + #[doc = "[Security Delete Privileges API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-delete-privilege.html)\n\nRemoves application privileges."] pub fn delete_privileges<'b>( &'a self, parts: SecurityDeletePrivilegesParts<'b>, ) -> SecurityDeletePrivileges<'a, 'b> { SecurityDeletePrivileges::new(self.transport(), parts) } - #[doc = "[Security Delete Role API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-delete-role.html)\n\nRemoves roles in the native realm."] + #[doc = "[Security Delete Role API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-delete-role.html)\n\nRemoves roles in the native realm."] pub fn delete_role<'b>( &'a self, parts: SecurityDeleteRoleParts<'b>, ) -> SecurityDeleteRole<'a, 'b> { SecurityDeleteRole::new(self.transport(), parts) } - #[doc = "[Security Delete Role Mapping API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-delete-role-mapping.html)\n\nRemoves role mappings."] + #[doc = "[Security Delete Role Mapping API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-delete-role-mapping.html)\n\nRemoves role mappings."] pub fn delete_role_mapping<'b>( &'a self, parts: SecurityDeleteRoleMappingParts<'b>, ) -> SecurityDeleteRoleMapping<'a, 'b> { SecurityDeleteRoleMapping::new(self.transport(), parts) } - #[doc = "[Security Delete Service Token API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-delete-service-token.html)\n\nDeletes a service account token."] + #[doc = "[Security Delete Service Token API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-delete-service-token.html)\n\nDeletes a service account token."] pub fn delete_service_token<'b>( &'a self, parts: SecurityDeleteServiceTokenParts<'b>, ) -> SecurityDeleteServiceToken<'a, 'b> { SecurityDeleteServiceToken::new(self.transport(), parts) } - #[doc = "[Security Delete User API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-delete-user.html)\n\nDeletes users from the native realm."] + #[doc = "[Security Delete User API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-delete-user.html)\n\nDeletes users from the native realm."] pub fn delete_user<'b>( &'a self, parts: SecurityDeleteUserParts<'b>, ) -> SecurityDeleteUser<'a, 'b> { SecurityDeleteUser::new(self.transport(), parts) } - #[doc = "[Security Disable User API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-disable-user.html)\n\nDisables users in the native realm."] + #[doc = "[Security Disable User API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-disable-user.html)\n\nDisables users in the native realm."] pub fn disable_user<'b>( &'a self, parts: SecurityDisableUserParts<'b>, ) -> SecurityDisableUser<'a, 'b, ()> { SecurityDisableUser::new(self.transport(), parts) } - #[doc = "[Security Disable User Profile API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-disable-user-profile.html)\n\nDisables a user profile so it's not visible in user profile searches."] + #[doc = "[Security Disable User Profile API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-disable-user-profile.html)\n\nDisables a user profile so it's not visible in user profile searches."] pub fn disable_user_profile<'b>( &'a self, parts: SecurityDisableUserProfileParts<'b>, ) -> SecurityDisableUserProfile<'a, 'b, ()> { SecurityDisableUserProfile::new(self.transport(), parts) } - #[doc = "[Security Enable User API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-enable-user.html)\n\nEnables users in the native realm."] + #[doc = "[Security Enable User API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-enable-user.html)\n\nEnables users in the native realm."] pub fn enable_user<'b>( &'a self, parts: SecurityEnableUserParts<'b>, ) -> SecurityEnableUser<'a, 'b, ()> { SecurityEnableUser::new(self.transport(), parts) } - #[doc = "[Security Enable User Profile API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-enable-user-profile.html)\n\nEnables a user profile so it's visible in user profile searches."] + #[doc = "[Security Enable User Profile API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-enable-user-profile.html)\n\nEnables a user profile so it's visible in user profile searches."] pub fn enable_user_profile<'b>( &'a self, parts: SecurityEnableUserProfileParts<'b>, ) -> SecurityEnableUserProfile<'a, 'b, ()> { SecurityEnableUserProfile::new(self.transport(), parts) } - #[doc = "[Security Enroll Kibana API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-kibana-enrollment.html)\n\nAllows a kibana instance to configure itself to communicate with a secured elasticsearch cluster."] + #[doc = "[Security Enroll Kibana API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-kibana-enrollment.html)\n\nAllows a kibana instance to configure itself to communicate with a secured elasticsearch cluster."] pub fn enroll_kibana<'b>(&'a self) -> SecurityEnrollKibana<'a, 'b> { SecurityEnrollKibana::new(self.transport()) } - #[doc = "[Security Enroll Node API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-node-enrollment.html)\n\nAllows a new node to enroll to an existing cluster with security enabled."] + #[doc = "[Security Enroll Node API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-node-enrollment.html)\n\nAllows a new node to enroll to an existing cluster with security enabled."] pub fn enroll_node<'b>(&'a self) -> SecurityEnrollNode<'a, 'b> { SecurityEnrollNode::new(self.transport()) } - #[doc = "[Security Get Api Key API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-get-api-key.html)\n\nRetrieves information for one or more API keys."] + #[doc = "[Security Get Api Key API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-get-api-key.html)\n\nRetrieves information for one or more API keys."] pub fn get_api_key<'b>(&'a self) -> SecurityGetApiKey<'a, 'b> { SecurityGetApiKey::new(self.transport()) } - #[doc = "[Security Get Builtin Privileges API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-get-builtin-privileges.html)\n\nRetrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch."] + #[doc = "[Security Get Builtin Privileges API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-get-builtin-privileges.html)\n\nRetrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch."] pub fn get_builtin_privileges<'b>(&'a self) -> SecurityGetBuiltinPrivileges<'a, 'b> { SecurityGetBuiltinPrivileges::new(self.transport()) } - #[doc = "[Security Get Privileges API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-get-privileges.html)\n\nRetrieves application privileges."] + #[doc = "[Security Get Privileges API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-get-privileges.html)\n\nRetrieves application privileges."] pub fn get_privileges<'b>( &'a self, parts: SecurityGetPrivilegesParts<'b>, ) -> SecurityGetPrivileges<'a, 'b> { SecurityGetPrivileges::new(self.transport(), parts) } - #[doc = "[Security Get Role API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-get-role.html)\n\nRetrieves roles in the native realm."] + #[doc = "[Security Get Role API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-get-role.html)\n\nRetrieves roles in the native realm."] pub fn get_role<'b>(&'a self, parts: SecurityGetRoleParts<'b>) -> SecurityGetRole<'a, 'b> { SecurityGetRole::new(self.transport(), parts) } - #[doc = "[Security Get Role Mapping API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-get-role-mapping.html)\n\nRetrieves role mappings."] + #[doc = "[Security Get Role Mapping API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-get-role-mapping.html)\n\nRetrieves role mappings."] pub fn get_role_mapping<'b>( &'a self, parts: SecurityGetRoleMappingParts<'b>, ) -> SecurityGetRoleMapping<'a, 'b> { SecurityGetRoleMapping::new(self.transport(), parts) } - #[doc = "[Security Get Service Accounts API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-get-service-accounts.html)\n\nRetrieves information about service accounts."] + #[doc = "[Security Get Service Accounts API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-get-service-accounts.html)\n\nRetrieves information about service accounts."] pub fn get_service_accounts<'b>( &'a self, parts: SecurityGetServiceAccountsParts<'b>, ) -> SecurityGetServiceAccounts<'a, 'b> { SecurityGetServiceAccounts::new(self.transport(), parts) } - #[doc = "[Security Get Service Credentials API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-get-service-credentials.html)\n\nRetrieves information of all service credentials for a service account."] + #[doc = "[Security Get Service Credentials API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-get-service-credentials.html)\n\nRetrieves information of all service credentials for a service account."] pub fn get_service_credentials<'b>( &'a self, parts: SecurityGetServiceCredentialsParts<'b>, ) -> SecurityGetServiceCredentials<'a, 'b> { SecurityGetServiceCredentials::new(self.transport(), parts) } - #[doc = "[Security Get Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-get-settings.html)\n\nRetrieve settings for the security system indices"] + #[doc = "[Security Get Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-get-settings.html)\n\nRetrieve settings for the security system indices"] pub fn get_settings<'b>(&'a self) -> SecurityGetSettings<'a, 'b> { SecurityGetSettings::new(self.transport()) } - #[doc = "[Security Get Token API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-get-token.html)\n\nCreates a bearer token for access without requiring basic authentication."] + #[doc = "[Security Get Token API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-get-token.html)\n\nCreates a bearer token for access without requiring basic authentication."] pub fn get_token<'b>(&'a self) -> SecurityGetToken<'a, 'b, ()> { SecurityGetToken::new(self.transport()) } - #[doc = "[Security Get User API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-get-user.html)\n\nRetrieves information about users in the native realm and built-in users."] + #[doc = "[Security Get User API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-get-user.html)\n\nRetrieves information about users in the native realm and built-in users."] pub fn get_user<'b>(&'a self, parts: SecurityGetUserParts<'b>) -> SecurityGetUser<'a, 'b> { SecurityGetUser::new(self.transport(), parts) } - #[doc = "[Security Get User Privileges API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-get-user-privileges.html)\n\nRetrieves security privileges for the logged in user."] + #[doc = "[Security Get User Privileges API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-get-user-privileges.html)\n\nRetrieves security privileges for the logged in user."] pub fn get_user_privileges<'b>(&'a self) -> SecurityGetUserPrivileges<'a, 'b> { SecurityGetUserPrivileges::new(self.transport()) } - #[doc = "[Security Get User Profile API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-get-user-profile.html)\n\nRetrieves user profiles for the given unique ID(s)."] + #[doc = "[Security Get User Profile API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-get-user-profile.html)\n\nRetrieves user profiles for the given unique ID(s)."] pub fn get_user_profile<'b>( &'a self, parts: SecurityGetUserProfileParts<'b>, ) -> SecurityGetUserProfile<'a, 'b> { SecurityGetUserProfile::new(self.transport(), parts) } - #[doc = "[Security Grant Api Key API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-grant-api-key.html)\n\nCreates an API key on behalf of another user."] + #[doc = "[Security Grant Api Key API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-grant-api-key.html)\n\nCreates an API key on behalf of another user."] pub fn grant_api_key<'b>(&'a self) -> SecurityGrantApiKey<'a, 'b, ()> { SecurityGrantApiKey::new(self.transport()) } - #[doc = "[Security Has Privileges API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-has-privileges.html)\n\nDetermines whether the specified user has a specified list of privileges."] + #[doc = "[Security Has Privileges API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-has-privileges.html)\n\nDetermines whether the specified user has a specified list of privileges."] pub fn has_privileges<'b>( &'a self, parts: SecurityHasPrivilegesParts<'b>, ) -> SecurityHasPrivileges<'a, 'b, ()> { SecurityHasPrivileges::new(self.transport(), parts) } - #[doc = "[Security Has Privileges User Profile API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-has-privileges-user-profile.html)\n\nDetermines whether the users associated with the specified profile IDs have all the requested privileges."] + #[doc = "[Security Has Privileges User Profile API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-has-privileges-user-profile.html)\n\nDetermines whether the users associated with the specified profile IDs have all the requested privileges."] pub fn has_privileges_user_profile<'b>( &'a self, ) -> SecurityHasPrivilegesUserProfile<'a, 'b, ()> { SecurityHasPrivilegesUserProfile::new(self.transport()) } - #[doc = "[Security Invalidate Api Key API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-invalidate-api-key.html)\n\nInvalidates one or more API keys."] + #[doc = "[Security Invalidate Api Key API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-invalidate-api-key.html)\n\nInvalidates one or more API keys."] pub fn invalidate_api_key<'b>(&'a self) -> SecurityInvalidateApiKey<'a, 'b, ()> { SecurityInvalidateApiKey::new(self.transport()) } - #[doc = "[Security Invalidate Token API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-invalidate-token.html)\n\nInvalidates one or more access tokens or refresh tokens."] + #[doc = "[Security Invalidate Token API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-invalidate-token.html)\n\nInvalidates one or more access tokens or refresh tokens."] pub fn invalidate_token<'b>(&'a self) -> SecurityInvalidateToken<'a, 'b, ()> { SecurityInvalidateToken::new(self.transport()) } - #[doc = "[Security Oidc Authenticate API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-oidc-authenticate.html)\n\nExchanges an OpenID Connection authentication response message for an Elasticsearch access token and refresh token pair"] + #[doc = "[Security Oidc Authenticate API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-oidc-authenticate.html)\n\nExchanges an OpenID Connection authentication response message for an Elasticsearch access token and refresh token pair"] pub fn oidc_authenticate<'b>(&'a self) -> SecurityOidcAuthenticate<'a, 'b, ()> { SecurityOidcAuthenticate::new(self.transport()) } - #[doc = "[Security Oidc Logout API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-oidc-logout.html)\n\nInvalidates a refresh token and access token that was generated from the OpenID Connect Authenticate API"] + #[doc = "[Security Oidc Logout API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-oidc-logout.html)\n\nInvalidates a refresh token and access token that was generated from the OpenID Connect Authenticate API"] pub fn oidc_logout<'b>(&'a self) -> SecurityOidcLogout<'a, 'b, ()> { SecurityOidcLogout::new(self.transport()) } - #[doc = "[Security Oidc Prepare Authentication API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-oidc-prepare-authentication.html)\n\nCreates an OAuth 2.0 authentication request as a URL string"] + #[doc = "[Security Oidc Prepare Authentication API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-oidc-prepare-authentication.html)\n\nCreates an OAuth 2.0 authentication request as a URL string"] pub fn oidc_prepare_authentication<'b>( &'a self, ) -> SecurityOidcPrepareAuthentication<'a, 'b, ()> { SecurityOidcPrepareAuthentication::new(self.transport()) } - #[doc = "[Security Put Privileges API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-put-privileges.html)\n\nAdds or updates application privileges."] + #[doc = "[Security Put Privileges API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-put-privileges.html)\n\nAdds or updates application privileges."] pub fn put_privileges<'b>(&'a self) -> SecurityPutPrivileges<'a, 'b, ()> { SecurityPutPrivileges::new(self.transport()) } - #[doc = "[Security Put Role API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-put-role.html)\n\nAdds and updates roles in the native realm."] + #[doc = "[Security Put Role API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-put-role.html)\n\nAdds and updates roles in the native realm."] pub fn put_role<'b>(&'a self, parts: SecurityPutRoleParts<'b>) -> SecurityPutRole<'a, 'b, ()> { SecurityPutRole::new(self.transport(), parts) } - #[doc = "[Security Put Role Mapping API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-put-role-mapping.html)\n\nCreates and updates role mappings."] + #[doc = "[Security Put Role Mapping API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-put-role-mapping.html)\n\nCreates and updates role mappings."] pub fn put_role_mapping<'b>( &'a self, parts: SecurityPutRoleMappingParts<'b>, ) -> SecurityPutRoleMapping<'a, 'b, ()> { SecurityPutRoleMapping::new(self.transport(), parts) } - #[doc = "[Security Put User API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-put-user.html)\n\nAdds and updates users in the native realm. These users are commonly referred to as native users."] + #[doc = "[Security Put User API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-put-user.html)\n\nAdds and updates users in the native realm. These users are commonly referred to as native users."] pub fn put_user<'b>(&'a self, parts: SecurityPutUserParts<'b>) -> SecurityPutUser<'a, 'b, ()> { SecurityPutUser::new(self.transport(), parts) } - #[doc = "[Security Query Api Keys API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-query-api-key.html)\n\nRetrieves information for API keys using a subset of query DSL"] + #[doc = "[Security Query Api Keys API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-query-api-key.html)\n\nRetrieves information for API keys using a subset of query DSL"] pub fn query_api_keys<'b>(&'a self) -> SecurityQueryApiKeys<'a, 'b, ()> { SecurityQueryApiKeys::new(self.transport()) } - #[doc = "[Security Query Role API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-query-role.html)\n\nRetrieves information for Roles using a subset of query DSL"] + #[doc = "[Security Query Role API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-query-role.html)\n\nRetrieves information for Roles using a subset of query DSL"] pub fn query_role<'b>(&'a self) -> SecurityQueryRole<'a, 'b, ()> { SecurityQueryRole::new(self.transport()) } - #[doc = "[Security Query User API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-query-user.html)\n\nRetrieves information for Users using a subset of query DSL"] + #[doc = "[Security Query User API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-query-user.html)\n\nRetrieves information for Users using a subset of query DSL"] pub fn query_user<'b>(&'a self) -> SecurityQueryUser<'a, 'b, ()> { SecurityQueryUser::new(self.transport()) } - #[doc = "[Security Saml Authenticate API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-saml-authenticate.html)\n\nExchanges a SAML Response message for an Elasticsearch access token and refresh token pair"] + #[doc = "[Security Saml Authenticate API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-saml-authenticate.html)\n\nExchanges a SAML Response message for an Elasticsearch access token and refresh token pair"] pub fn saml_authenticate<'b>(&'a self) -> SecuritySamlAuthenticate<'a, 'b, ()> { SecuritySamlAuthenticate::new(self.transport()) } - #[doc = "[Security Saml Complete Logout API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-saml-complete-logout.html)\n\nVerifies the logout response sent from the SAML IdP"] + #[doc = "[Security Saml Complete Logout API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-saml-complete-logout.html)\n\nVerifies the logout response sent from the SAML IdP"] pub fn saml_complete_logout<'b>(&'a self) -> SecuritySamlCompleteLogout<'a, 'b, ()> { SecuritySamlCompleteLogout::new(self.transport()) } - #[doc = "[Security Saml Invalidate API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-saml-invalidate.html)\n\nConsumes a SAML LogoutRequest"] + #[doc = "[Security Saml Invalidate API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-saml-invalidate.html)\n\nConsumes a SAML LogoutRequest"] pub fn saml_invalidate<'b>(&'a self) -> SecuritySamlInvalidate<'a, 'b, ()> { SecuritySamlInvalidate::new(self.transport()) } - #[doc = "[Security Saml Logout API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-saml-logout.html)\n\nInvalidates an access token and a refresh token that were generated via the SAML Authenticate API"] + #[doc = "[Security Saml Logout API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-saml-logout.html)\n\nInvalidates an access token and a refresh token that were generated via the SAML Authenticate API"] pub fn saml_logout<'b>(&'a self) -> SecuritySamlLogout<'a, 'b, ()> { SecuritySamlLogout::new(self.transport()) } - #[doc = "[Security Saml Prepare Authentication API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-saml-prepare-authentication.html)\n\nCreates a SAML authentication request"] + #[doc = "[Security Saml Prepare Authentication API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-saml-prepare-authentication.html)\n\nCreates a SAML authentication request"] pub fn saml_prepare_authentication<'b>( &'a self, ) -> SecuritySamlPrepareAuthentication<'a, 'b, ()> { SecuritySamlPrepareAuthentication::new(self.transport()) } - #[doc = "[Security Saml Service Provider Metadata API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-saml-sp-metadata.html)\n\nGenerates SAML metadata for the Elastic stack SAML 2.0 Service Provider"] + #[doc = "[Security Saml Service Provider Metadata API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-saml-sp-metadata.html)\n\nGenerates SAML metadata for the Elastic stack SAML 2.0 Service Provider"] pub fn saml_service_provider_metadata<'b>( &'a self, parts: SecuritySamlServiceProviderMetadataParts<'b>, ) -> SecuritySamlServiceProviderMetadata<'a, 'b> { SecuritySamlServiceProviderMetadata::new(self.transport(), parts) } - #[doc = "[Security Suggest User Profiles API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-suggest-user-profile.html)\n\nGet suggestions for user profiles that match specified search criteria."] + #[doc = "[Security Suggest User Profiles API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-suggest-user-profile.html)\n\nGet suggestions for user profiles that match specified search criteria."] pub fn suggest_user_profiles<'b>(&'a self) -> SecuritySuggestUserProfiles<'a, 'b, ()> { SecuritySuggestUserProfiles::new(self.transport()) } - #[doc = "[Security Update Api Key API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-update-api-key.html)\n\nUpdates attributes of an existing API key."] + #[doc = "[Security Update Api Key API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-update-api-key.html)\n\nUpdates attributes of an existing API key."] pub fn update_api_key<'b>( &'a self, parts: SecurityUpdateApiKeyParts<'b>, ) -> SecurityUpdateApiKey<'a, 'b, ()> { SecurityUpdateApiKey::new(self.transport(), parts) } - #[doc = "[Security Update Cross Cluster Api Key API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-update-cross-cluster-api-key.html)\n\nUpdates attributes of an existing cross-cluster API key."] + #[doc = "[Security Update Cross Cluster Api Key API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-update-cross-cluster-api-key.html)\n\nUpdates attributes of an existing cross-cluster API key."] pub fn update_cross_cluster_api_key<'b>( &'a self, parts: SecurityUpdateCrossClusterApiKeyParts<'b>, ) -> SecurityUpdateCrossClusterApiKey<'a, 'b, ()> { SecurityUpdateCrossClusterApiKey::new(self.transport(), parts) } - #[doc = "[Security Update Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-update-settings.html)\n\nUpdate settings for the security system index"] + #[doc = "[Security Update Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-update-settings.html)\n\nUpdate settings for the security system index"] pub fn update_settings<'b>(&'a self) -> SecurityUpdateSettings<'a, 'b, ()> { SecurityUpdateSettings::new(self.transport()) } - #[doc = "[Security Update User Profile Data API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-update-user-profile-data.html)\n\nUpdate application specific data for the user profile of the given unique ID."] + #[doc = "[Security Update User Profile Data API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-update-user-profile-data.html)\n\nUpdate application specific data for the user profile of the given unique ID."] pub fn update_user_profile_data<'b>( &'a self, parts: SecurityUpdateUserProfileDataParts<'b>, diff --git a/elasticsearch/src/shutdown.rs b/elasticsearch/src/shutdown.rs index 0680a4cb..48e446d5 100644 --- a/elasticsearch/src/shutdown.rs +++ b/elasticsearch/src/shutdown.rs @@ -64,7 +64,7 @@ impl<'b> ShutdownDeleteNodeParts<'b> { } } } -#[doc = "Builder for the [Shutdown Delete Node API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0)\n\nRemoves a node from the shutdown list. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."] +#[doc = "Builder for the [Shutdown Delete Node API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1)\n\nRemoves a node from the shutdown list. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."] #[derive(Clone, Debug)] pub struct ShutdownDeleteNode<'a, 'b> { transport: &'a Transport, @@ -205,7 +205,7 @@ impl<'b> ShutdownGetNodeParts<'b> { } } } -#[doc = "Builder for the [Shutdown Get Node API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0)\n\nRetrieve status of a node or nodes that are currently marked as shutting down. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."] +#[doc = "Builder for the [Shutdown Get Node API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1)\n\nRetrieve status of a node or nodes that are currently marked as shutting down. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."] #[derive(Clone, Debug)] pub struct ShutdownGetNode<'a, 'b> { transport: &'a Transport, @@ -334,7 +334,7 @@ impl<'b> ShutdownPutNodeParts<'b> { } } } -#[doc = "Builder for the [Shutdown Put Node API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0)\n\nAdds a node to be shut down. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."] +#[doc = "Builder for the [Shutdown Put Node API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1)\n\nAdds a node to be shut down. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."] #[derive(Clone, Debug)] pub struct ShutdownPutNode<'a, 'b, B> { transport: &'a Transport, @@ -487,18 +487,18 @@ impl<'a> Shutdown<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Shutdown Delete Node API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0)\n\nRemoves a node from the shutdown list. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."] + #[doc = "[Shutdown Delete Node API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1)\n\nRemoves a node from the shutdown list. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."] pub fn delete_node<'b>( &'a self, parts: ShutdownDeleteNodeParts<'b>, ) -> ShutdownDeleteNode<'a, 'b> { ShutdownDeleteNode::new(self.transport(), parts) } - #[doc = "[Shutdown Get Node API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0)\n\nRetrieve status of a node or nodes that are currently marked as shutting down. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."] + #[doc = "[Shutdown Get Node API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1)\n\nRetrieve status of a node or nodes that are currently marked as shutting down. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."] pub fn get_node<'b>(&'a self, parts: ShutdownGetNodeParts<'b>) -> ShutdownGetNode<'a, 'b> { ShutdownGetNode::new(self.transport(), parts) } - #[doc = "[Shutdown Put Node API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0)\n\nAdds a node to be shut down. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."] + #[doc = "[Shutdown Put Node API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1)\n\nAdds a node to be shut down. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."] pub fn put_node<'b>(&'a self, parts: ShutdownPutNodeParts<'b>) -> ShutdownPutNode<'a, 'b, ()> { ShutdownPutNode::new(self.transport(), parts) } diff --git a/elasticsearch/src/simulate.rs b/elasticsearch/src/simulate.rs index ed56b591..c24a6238 100644 --- a/elasticsearch/src/simulate.rs +++ b/elasticsearch/src/simulate.rs @@ -71,7 +71,7 @@ impl<'b> SimulateIngestParts<'b> { } } } -#[doc = "Builder for the [Simulate Ingest API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/simulate-ingest-api.html)\n\nSimulates running ingest with example documents."] +#[doc = "Builder for the [Simulate Ingest API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/simulate-ingest-api.html)\n\nSimulates running ingest with example documents."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -223,7 +223,7 @@ impl<'a> Simulate<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Simulate Ingest API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/simulate-ingest-api.html)\n\nSimulates running ingest with example documents."] + #[doc = "[Simulate Ingest API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/simulate-ingest-api.html)\n\nSimulates running ingest with example documents."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn ingest<'b>(&'a self, parts: SimulateIngestParts<'b>) -> SimulateIngest<'a, 'b, ()> { diff --git a/elasticsearch/src/slm.rs b/elasticsearch/src/slm.rs index 1e35db86..b9db3d9f 100644 --- a/elasticsearch/src/slm.rs +++ b/elasticsearch/src/slm.rs @@ -70,7 +70,7 @@ impl<'b> SlmDeleteLifecycleParts<'b> { } } } -#[doc = "Builder for the [Slm Delete Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/slm-api-delete-policy.html)\n\nDeletes an existing snapshot lifecycle policy."] +#[doc = "Builder for the [Slm Delete Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/slm-api-delete-policy.html)\n\nDeletes an existing snapshot lifecycle policy."] #[derive(Clone, Debug)] pub struct SlmDeleteLifecycle<'a, 'b> { transport: &'a Transport, @@ -208,7 +208,7 @@ impl<'b> SlmExecuteLifecycleParts<'b> { } } } -#[doc = "Builder for the [Slm Execute Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/slm-api-execute-lifecycle.html)\n\nImmediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time."] +#[doc = "Builder for the [Slm Execute Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/slm-api-execute-lifecycle.html)\n\nImmediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time."] #[derive(Clone, Debug)] pub struct SlmExecuteLifecycle<'a, 'b, B> { transport: &'a Transport, @@ -363,7 +363,7 @@ impl SlmExecuteRetentionParts { } } } -#[doc = "Builder for the [Slm Execute Retention API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/slm-api-execute-retention.html)\n\nDeletes any snapshots that are expired according to the policy's retention rules."] +#[doc = "Builder for the [Slm Execute Retention API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/slm-api-execute-retention.html)\n\nDeletes any snapshots that are expired according to the policy's retention rules."] #[derive(Clone, Debug)] pub struct SlmExecuteRetention<'a, 'b, B> { transport: &'a Transport, @@ -529,7 +529,7 @@ impl<'b> SlmGetLifecycleParts<'b> { } } } -#[doc = "Builder for the [Slm Get Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/slm-api-get-policy.html)\n\nRetrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts."] +#[doc = "Builder for the [Slm Get Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/slm-api-get-policy.html)\n\nRetrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts."] #[derive(Clone, Debug)] pub struct SlmGetLifecycle<'a, 'b> { transport: &'a Transport, @@ -659,7 +659,7 @@ impl SlmGetStatsParts { } } } -#[doc = "Builder for the [Slm Get Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/slm-api-get-stats.html)\n\nReturns global and policy-level statistics about actions taken by snapshot lifecycle management."] +#[doc = "Builder for the [Slm Get Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/slm-api-get-stats.html)\n\nReturns global and policy-level statistics about actions taken by snapshot lifecycle management."] #[derive(Clone, Debug)] pub struct SlmGetStats<'a, 'b> { transport: &'a Transport, @@ -789,7 +789,7 @@ impl SlmGetStatusParts { } } } -#[doc = "Builder for the [Slm Get Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/slm-api-get-status.html)\n\nRetrieves the status of snapshot lifecycle management (SLM)."] +#[doc = "Builder for the [Slm Get Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/slm-api-get-status.html)\n\nRetrieves the status of snapshot lifecycle management (SLM)."] #[derive(Clone, Debug)] pub struct SlmGetStatus<'a, 'b> { transport: &'a Transport, @@ -926,7 +926,7 @@ impl<'b> SlmPutLifecycleParts<'b> { } } } -#[doc = "Builder for the [Slm Put Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/slm-api-put-policy.html)\n\nCreates or updates a snapshot lifecycle policy."] +#[doc = "Builder for the [Slm Put Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/slm-api-put-policy.html)\n\nCreates or updates a snapshot lifecycle policy."] #[derive(Clone, Debug)] pub struct SlmPutLifecycle<'a, 'b, B> { transport: &'a Transport, @@ -1081,7 +1081,7 @@ impl SlmStartParts { } } } -#[doc = "Builder for the [Slm Start API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/slm-api-start.html)\n\nTurns on snapshot lifecycle management (SLM)."] +#[doc = "Builder for the [Slm Start API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/slm-api-start.html)\n\nTurns on snapshot lifecycle management (SLM)."] #[derive(Clone, Debug)] pub struct SlmStart<'a, 'b, B> { transport: &'a Transport, @@ -1236,7 +1236,7 @@ impl SlmStopParts { } } } -#[doc = "Builder for the [Slm Stop API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/slm-api-stop.html)\n\nTurns off snapshot lifecycle management (SLM)."] +#[doc = "Builder for the [Slm Stop API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/slm-api-stop.html)\n\nTurns off snapshot lifecycle management (SLM)."] #[derive(Clone, Debug)] pub struct SlmStop<'a, 'b, B> { transport: &'a Transport, @@ -1389,48 +1389,48 @@ impl<'a> Slm<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Slm Delete Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/slm-api-delete-policy.html)\n\nDeletes an existing snapshot lifecycle policy."] + #[doc = "[Slm Delete Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/slm-api-delete-policy.html)\n\nDeletes an existing snapshot lifecycle policy."] pub fn delete_lifecycle<'b>( &'a self, parts: SlmDeleteLifecycleParts<'b>, ) -> SlmDeleteLifecycle<'a, 'b> { SlmDeleteLifecycle::new(self.transport(), parts) } - #[doc = "[Slm Execute Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/slm-api-execute-lifecycle.html)\n\nImmediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time."] + #[doc = "[Slm Execute Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/slm-api-execute-lifecycle.html)\n\nImmediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time."] pub fn execute_lifecycle<'b>( &'a self, parts: SlmExecuteLifecycleParts<'b>, ) -> SlmExecuteLifecycle<'a, 'b, ()> { SlmExecuteLifecycle::new(self.transport(), parts) } - #[doc = "[Slm Execute Retention API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/slm-api-execute-retention.html)\n\nDeletes any snapshots that are expired according to the policy's retention rules."] + #[doc = "[Slm Execute Retention API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/slm-api-execute-retention.html)\n\nDeletes any snapshots that are expired according to the policy's retention rules."] pub fn execute_retention<'b>(&'a self) -> SlmExecuteRetention<'a, 'b, ()> { SlmExecuteRetention::new(self.transport()) } - #[doc = "[Slm Get Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/slm-api-get-policy.html)\n\nRetrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts."] + #[doc = "[Slm Get Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/slm-api-get-policy.html)\n\nRetrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts."] pub fn get_lifecycle<'b>(&'a self, parts: SlmGetLifecycleParts<'b>) -> SlmGetLifecycle<'a, 'b> { SlmGetLifecycle::new(self.transport(), parts) } - #[doc = "[Slm Get Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/slm-api-get-stats.html)\n\nReturns global and policy-level statistics about actions taken by snapshot lifecycle management."] + #[doc = "[Slm Get Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/slm-api-get-stats.html)\n\nReturns global and policy-level statistics about actions taken by snapshot lifecycle management."] pub fn get_stats<'b>(&'a self) -> SlmGetStats<'a, 'b> { SlmGetStats::new(self.transport()) } - #[doc = "[Slm Get Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/slm-api-get-status.html)\n\nRetrieves the status of snapshot lifecycle management (SLM)."] + #[doc = "[Slm Get Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/slm-api-get-status.html)\n\nRetrieves the status of snapshot lifecycle management (SLM)."] pub fn get_status<'b>(&'a self) -> SlmGetStatus<'a, 'b> { SlmGetStatus::new(self.transport()) } - #[doc = "[Slm Put Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/slm-api-put-policy.html)\n\nCreates or updates a snapshot lifecycle policy."] + #[doc = "[Slm Put Lifecycle API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/slm-api-put-policy.html)\n\nCreates or updates a snapshot lifecycle policy."] pub fn put_lifecycle<'b>( &'a self, parts: SlmPutLifecycleParts<'b>, ) -> SlmPutLifecycle<'a, 'b, ()> { SlmPutLifecycle::new(self.transport(), parts) } - #[doc = "[Slm Start API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/slm-api-start.html)\n\nTurns on snapshot lifecycle management (SLM)."] + #[doc = "[Slm Start API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/slm-api-start.html)\n\nTurns on snapshot lifecycle management (SLM)."] pub fn start<'b>(&'a self) -> SlmStart<'a, 'b, ()> { SlmStart::new(self.transport()) } - #[doc = "[Slm Stop API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/slm-api-stop.html)\n\nTurns off snapshot lifecycle management (SLM)."] + #[doc = "[Slm Stop API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/slm-api-stop.html)\n\nTurns off snapshot lifecycle management (SLM)."] pub fn stop<'b>(&'a self) -> SlmStop<'a, 'b, ()> { SlmStop::new(self.transport()) } diff --git a/elasticsearch/src/snapshot.rs b/elasticsearch/src/snapshot.rs index 26556b56..30a9d65e 100644 --- a/elasticsearch/src/snapshot.rs +++ b/elasticsearch/src/snapshot.rs @@ -69,7 +69,7 @@ impl<'b> SnapshotCleanupRepositoryParts<'b> { } } } -#[doc = "Builder for the [Snapshot Cleanup Repository API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/clean-up-snapshot-repo-api.html)\n\nRemoves stale data from repository."] +#[doc = "Builder for the [Snapshot Cleanup Repository API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/clean-up-snapshot-repo-api.html)\n\nRemoves stale data from repository."] #[derive(Clone, Debug)] pub struct SnapshotCleanupRepository<'a, 'b, B> { transport: &'a Transport, @@ -248,7 +248,7 @@ impl<'b> SnapshotCloneParts<'b> { } } } -#[doc = "Builder for the [Snapshot Clone API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-snapshots.html)\n\nClones indices from one snapshot into another snapshot in the same repository."] +#[doc = "Builder for the [Snapshot Clone API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-snapshots.html)\n\nClones indices from one snapshot into another snapshot in the same repository."] #[derive(Clone, Debug)] pub struct SnapshotClone<'a, 'b, B> { transport: &'a Transport, @@ -406,7 +406,7 @@ impl<'b> SnapshotCreateParts<'b> { } } } -#[doc = "Builder for the [Snapshot Create API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-snapshots.html)\n\nCreates a snapshot in a repository."] +#[doc = "Builder for the [Snapshot Create API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-snapshots.html)\n\nCreates a snapshot in a repository."] #[derive(Clone, Debug)] pub struct SnapshotCreate<'a, 'b, B> { transport: &'a Transport, @@ -568,7 +568,7 @@ impl<'b> SnapshotCreateRepositoryParts<'b> { } } } -#[doc = "Builder for the [Snapshot Create Repository API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-snapshots.html)\n\nCreates a repository."] +#[doc = "Builder for the [Snapshot Create Repository API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-snapshots.html)\n\nCreates a repository."] #[derive(Clone, Debug)] pub struct SnapshotCreateRepository<'a, 'b, B> { transport: &'a Transport, @@ -747,7 +747,7 @@ impl<'b> SnapshotDeleteParts<'b> { } } } -#[doc = "Builder for the [Snapshot Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-snapshots.html)\n\nDeletes one or more snapshots."] +#[doc = "Builder for the [Snapshot Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-snapshots.html)\n\nDeletes one or more snapshots."] #[derive(Clone, Debug)] pub struct SnapshotDelete<'a, 'b> { transport: &'a Transport, @@ -885,7 +885,7 @@ impl<'b> SnapshotDeleteRepositoryParts<'b> { } } } -#[doc = "Builder for the [Snapshot Delete Repository API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-snapshots.html)\n\nDeletes a repository."] +#[doc = "Builder for the [Snapshot Delete Repository API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-snapshots.html)\n\nDeletes a repository."] #[derive(Clone, Debug)] pub struct SnapshotDeleteRepository<'a, 'b> { transport: &'a Transport, @@ -1029,7 +1029,7 @@ impl<'b> SnapshotGetParts<'b> { } } } -#[doc = "Builder for the [Snapshot Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-snapshots.html)\n\nReturns information about a snapshot."] +#[doc = "Builder for the [Snapshot Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-snapshots.html)\n\nReturns information about a snapshot."] #[derive(Clone, Debug)] pub struct SnapshotGet<'a, 'b> { transport: &'a Transport, @@ -1053,6 +1053,7 @@ pub struct SnapshotGet<'a, 'b> { slm_policy_filter: Option<&'b str>, sort: Option, source: Option<&'b str>, + state: Option<&'b [&'b str]>, verbose: Option, } impl<'a, 'b> SnapshotGet<'a, 'b> { @@ -1081,6 +1082,7 @@ impl<'a, 'b> SnapshotGet<'a, 'b> { slm_policy_filter: None, sort: None, source: None, + state: None, verbose: None, } } @@ -1179,6 +1181,11 @@ impl<'a, 'b> SnapshotGet<'a, 'b> { self.source = Some(source); self } + #[doc = "Filter snapshots by a comma-separated list of states. Valid state values are 'SUCCESS', 'IN_PROGRESS', 'FAILED', 'PARTIAL', or 'INCOMPATIBLE'."] + pub fn state(mut self, state: &'b [&'b str]) -> Self { + self.state = Some(state); + self + } #[doc = "Whether to show verbose snapshot info or only show the basic info found in the repository index blob"] pub fn verbose(mut self, verbose: bool) -> Self { self.verbose = Some(verbose); @@ -1212,6 +1219,8 @@ impl<'a, 'b> SnapshotGet<'a, 'b> { slm_policy_filter: Option<&'b str>, sort: Option, source: Option<&'b str>, + #[serde(serialize_with = "crate::client::serialize_coll_qs")] + state: Option<&'b [&'b str]>, verbose: Option, } let query_params = QueryParams { @@ -1232,6 +1241,7 @@ impl<'a, 'b> SnapshotGet<'a, 'b> { slm_policy_filter: self.slm_policy_filter, sort: self.sort, source: self.source, + state: self.state, verbose: self.verbose, }; Some(query_params) @@ -1269,7 +1279,7 @@ impl<'b> SnapshotGetRepositoryParts<'b> { } } } -#[doc = "Builder for the [Snapshot Get Repository API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-snapshots.html)\n\nReturns information about a repository."] +#[doc = "Builder for the [Snapshot Get Repository API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-snapshots.html)\n\nReturns information about a repository."] #[derive(Clone, Debug)] pub struct SnapshotGetRepository<'a, 'b> { transport: &'a Transport, @@ -1407,7 +1417,7 @@ impl<'b> SnapshotRepositoryAnalyzeParts<'b> { } } } -#[doc = "Builder for the [Snapshot Repository Analyze API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-snapshots.html)\n\nAnalyzes a repository for correctness and performance"] +#[doc = "Builder for the [Snapshot Repository Analyze API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-snapshots.html)\n\nAnalyzes a repository for correctness and performance"] #[derive(Clone, Debug)] pub struct SnapshotRepositoryAnalyze<'a, 'b, B> { transport: &'a Transport, @@ -1427,6 +1437,7 @@ pub struct SnapshotRepositoryAnalyze<'a, 'b, B> { rare_action_probability: Option, rarely_abort_writes: Option, read_node_count: Option, + register_operation_count: Option, request_timeout: Option, seed: Option, source: Option<&'b str>, @@ -1457,6 +1468,7 @@ where rare_action_probability: None, rarely_abort_writes: None, read_node_count: None, + register_operation_count: None, request_timeout: None, seed: None, source: None, @@ -1491,6 +1503,7 @@ where rare_action_probability: self.rare_action_probability, rarely_abort_writes: self.rarely_abort_writes, read_node_count: self.read_node_count, + register_operation_count: self.register_operation_count, request_timeout: self.request_timeout, seed: self.seed, source: self.source, @@ -1562,6 +1575,11 @@ where self.read_node_count = Some(read_node_count); self } + #[doc = "The minimum number of linearizable register operations to perform in total. Defaults to 10."] + pub fn register_operation_count(mut self, register_operation_count: i64) -> Self { + self.register_operation_count = Some(register_operation_count); + self + } #[doc = "Sets a request timeout for this API call.\n\nThe timeout is applied from when the request starts connecting until the response body has finished."] pub fn request_timeout(mut self, timeout: Duration) -> Self { self.request_timeout = Some(timeout); @@ -1606,6 +1624,7 @@ where rare_action_probability: Option, rarely_abort_writes: Option, read_node_count: Option, + register_operation_count: Option, seed: Option, source: Option<&'b str>, timeout: Option<&'b str>, @@ -1624,6 +1643,7 @@ where rare_action_probability: self.rare_action_probability, rarely_abort_writes: self.rarely_abort_writes, read_node_count: self.read_node_count, + register_operation_count: self.register_operation_count, seed: self.seed, source: self.source, timeout: self.timeout, @@ -1662,7 +1682,7 @@ impl<'b> SnapshotRepositoryVerifyIntegrityParts<'b> { } } } -#[doc = "Builder for the [Snapshot Repository Verify Integrity API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-snapshots.html)\n\nVerifies the integrity of the contents of a snapshot repository"] +#[doc = "Builder for the [Snapshot Repository Verify Integrity API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-snapshots.html)\n\nVerifies the integrity of the contents of a snapshot repository"] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -1905,7 +1925,7 @@ impl<'b> SnapshotRestoreParts<'b> { } } } -#[doc = "Builder for the [Snapshot Restore API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-snapshots.html)\n\nRestores a snapshot."] +#[doc = "Builder for the [Snapshot Restore API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-snapshots.html)\n\nRestores a snapshot."] #[derive(Clone, Debug)] pub struct SnapshotRestore<'a, 'b, B> { transport: &'a Transport, @@ -2089,7 +2109,7 @@ impl<'b> SnapshotStatusParts<'b> { } } } -#[doc = "Builder for the [Snapshot Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-snapshots.html)\n\nReturns information about the status of a snapshot."] +#[doc = "Builder for the [Snapshot Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-snapshots.html)\n\nReturns information about the status of a snapshot."] #[derive(Clone, Debug)] pub struct SnapshotStatus<'a, 'b> { transport: &'a Transport, @@ -2227,7 +2247,7 @@ impl<'b> SnapshotVerifyRepositoryParts<'b> { } } } -#[doc = "Builder for the [Snapshot Verify Repository API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-snapshots.html)\n\nVerifies a repository."] +#[doc = "Builder for the [Snapshot Verify Repository API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-snapshots.html)\n\nVerifies a repository."] #[derive(Clone, Debug)] pub struct SnapshotVerifyRepository<'a, 'b, B> { transport: &'a Transport, @@ -2380,58 +2400,58 @@ impl<'a> Snapshot<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Snapshot Cleanup Repository API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/clean-up-snapshot-repo-api.html)\n\nRemoves stale data from repository."] + #[doc = "[Snapshot Cleanup Repository API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/clean-up-snapshot-repo-api.html)\n\nRemoves stale data from repository."] pub fn cleanup_repository<'b>( &'a self, parts: SnapshotCleanupRepositoryParts<'b>, ) -> SnapshotCleanupRepository<'a, 'b, ()> { SnapshotCleanupRepository::new(self.transport(), parts) } - #[doc = "[Snapshot Clone API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-snapshots.html)\n\nClones indices from one snapshot into another snapshot in the same repository."] + #[doc = "[Snapshot Clone API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-snapshots.html)\n\nClones indices from one snapshot into another snapshot in the same repository."] pub fn clone<'b>(&'a self, parts: SnapshotCloneParts<'b>) -> SnapshotClone<'a, 'b, ()> { SnapshotClone::new(self.transport(), parts) } - #[doc = "[Snapshot Create API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-snapshots.html)\n\nCreates a snapshot in a repository."] + #[doc = "[Snapshot Create API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-snapshots.html)\n\nCreates a snapshot in a repository."] pub fn create<'b>(&'a self, parts: SnapshotCreateParts<'b>) -> SnapshotCreate<'a, 'b, ()> { SnapshotCreate::new(self.transport(), parts) } - #[doc = "[Snapshot Create Repository API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-snapshots.html)\n\nCreates a repository."] + #[doc = "[Snapshot Create Repository API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-snapshots.html)\n\nCreates a repository."] pub fn create_repository<'b>( &'a self, parts: SnapshotCreateRepositoryParts<'b>, ) -> SnapshotCreateRepository<'a, 'b, ()> { SnapshotCreateRepository::new(self.transport(), parts) } - #[doc = "[Snapshot Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-snapshots.html)\n\nDeletes one or more snapshots."] + #[doc = "[Snapshot Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-snapshots.html)\n\nDeletes one or more snapshots."] pub fn delete<'b>(&'a self, parts: SnapshotDeleteParts<'b>) -> SnapshotDelete<'a, 'b> { SnapshotDelete::new(self.transport(), parts) } - #[doc = "[Snapshot Delete Repository API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-snapshots.html)\n\nDeletes a repository."] + #[doc = "[Snapshot Delete Repository API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-snapshots.html)\n\nDeletes a repository."] pub fn delete_repository<'b>( &'a self, parts: SnapshotDeleteRepositoryParts<'b>, ) -> SnapshotDeleteRepository<'a, 'b> { SnapshotDeleteRepository::new(self.transport(), parts) } - #[doc = "[Snapshot Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-snapshots.html)\n\nReturns information about a snapshot."] + #[doc = "[Snapshot Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-snapshots.html)\n\nReturns information about a snapshot."] pub fn get<'b>(&'a self, parts: SnapshotGetParts<'b>) -> SnapshotGet<'a, 'b> { SnapshotGet::new(self.transport(), parts) } - #[doc = "[Snapshot Get Repository API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-snapshots.html)\n\nReturns information about a repository."] + #[doc = "[Snapshot Get Repository API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-snapshots.html)\n\nReturns information about a repository."] pub fn get_repository<'b>( &'a self, parts: SnapshotGetRepositoryParts<'b>, ) -> SnapshotGetRepository<'a, 'b> { SnapshotGetRepository::new(self.transport(), parts) } - #[doc = "[Snapshot Repository Analyze API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-snapshots.html)\n\nAnalyzes a repository for correctness and performance"] + #[doc = "[Snapshot Repository Analyze API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-snapshots.html)\n\nAnalyzes a repository for correctness and performance"] pub fn repository_analyze<'b>( &'a self, parts: SnapshotRepositoryAnalyzeParts<'b>, ) -> SnapshotRepositoryAnalyze<'a, 'b, ()> { SnapshotRepositoryAnalyze::new(self.transport(), parts) } - #[doc = "[Snapshot Repository Verify Integrity API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-snapshots.html)\n\nVerifies the integrity of the contents of a snapshot repository"] + #[doc = "[Snapshot Repository Verify Integrity API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-snapshots.html)\n\nVerifies the integrity of the contents of a snapshot repository"] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn repository_verify_integrity<'b>( @@ -2440,15 +2460,15 @@ impl<'a> Snapshot<'a> { ) -> SnapshotRepositoryVerifyIntegrity<'a, 'b, ()> { SnapshotRepositoryVerifyIntegrity::new(self.transport(), parts) } - #[doc = "[Snapshot Restore API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-snapshots.html)\n\nRestores a snapshot."] + #[doc = "[Snapshot Restore API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-snapshots.html)\n\nRestores a snapshot."] pub fn restore<'b>(&'a self, parts: SnapshotRestoreParts<'b>) -> SnapshotRestore<'a, 'b, ()> { SnapshotRestore::new(self.transport(), parts) } - #[doc = "[Snapshot Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-snapshots.html)\n\nReturns information about the status of a snapshot."] + #[doc = "[Snapshot Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-snapshots.html)\n\nReturns information about the status of a snapshot."] pub fn status<'b>(&'a self, parts: SnapshotStatusParts<'b>) -> SnapshotStatus<'a, 'b> { SnapshotStatus::new(self.transport(), parts) } - #[doc = "[Snapshot Verify Repository API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/modules-snapshots.html)\n\nVerifies a repository."] + #[doc = "[Snapshot Verify Repository API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/modules-snapshots.html)\n\nVerifies a repository."] pub fn verify_repository<'b>( &'a self, parts: SnapshotVerifyRepositoryParts<'b>, diff --git a/elasticsearch/src/sql.rs b/elasticsearch/src/sql.rs index 3ca84f27..f14d81ea 100644 --- a/elasticsearch/src/sql.rs +++ b/elasticsearch/src/sql.rs @@ -58,7 +58,7 @@ impl SqlClearCursorParts { } } } -#[doc = "Builder for the [Sql Clear Cursor API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/clear-sql-cursor-api.html)\n\nClears the SQL cursor"] +#[doc = "Builder for the [Sql Clear Cursor API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/clear-sql-cursor-api.html)\n\nClears the SQL cursor"] #[derive(Clone, Debug)] pub struct SqlClearCursor<'a, 'b, B> { transport: &'a Transport, @@ -199,7 +199,7 @@ impl<'b> SqlDeleteAsyncParts<'b> { } } } -#[doc = "Builder for the [Sql Delete Async API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-async-sql-search-api.html)\n\nDeletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it."] +#[doc = "Builder for the [Sql Delete Async API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-async-sql-search-api.html)\n\nDeletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it."] #[derive(Clone, Debug)] pub struct SqlDeleteAsync<'a, 'b> { transport: &'a Transport, @@ -317,7 +317,7 @@ impl<'b> SqlGetAsyncParts<'b> { } } } -#[doc = "Builder for the [Sql Get Async API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-async-sql-search-api.html)\n\nReturns the current status and available results for an async SQL search or stored synchronous SQL search"] +#[doc = "Builder for the [Sql Get Async API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-async-sql-search-api.html)\n\nReturns the current status and available results for an async SQL search or stored synchronous SQL search"] #[derive(Clone, Debug)] pub struct SqlGetAsync<'a, 'b> { transport: &'a Transport, @@ -471,7 +471,7 @@ impl<'b> SqlGetAsyncStatusParts<'b> { } } } -#[doc = "Builder for the [Sql Get Async Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-async-sql-search-status-api.html)\n\nReturns the current status of an async SQL search or a stored synchronous SQL search"] +#[doc = "Builder for the [Sql Get Async Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-async-sql-search-status-api.html)\n\nReturns the current status of an async SQL search or a stored synchronous SQL search"] #[derive(Clone, Debug)] pub struct SqlGetAsyncStatus<'a, 'b> { transport: &'a Transport, @@ -583,7 +583,7 @@ impl SqlQueryParts { } } } -#[doc = "Builder for the [Sql Query API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/sql-search-api.html)\n\nExecutes a SQL request"] +#[doc = "Builder for the [Sql Query API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/sql-search-api.html)\n\nExecutes a SQL request"] #[derive(Clone, Debug)] pub struct SqlQuery<'a, 'b, B> { transport: &'a Transport, @@ -731,7 +731,7 @@ impl SqlTranslateParts { } } } -#[doc = "Builder for the [Sql Translate API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/sql-translate-api.html)\n\nTranslates SQL into Elasticsearch queries"] +#[doc = "Builder for the [Sql Translate API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/sql-translate-api.html)\n\nTranslates SQL into Elasticsearch queries"] #[derive(Clone, Debug)] pub struct SqlTranslate<'a, 'b, B> { transport: &'a Transport, @@ -867,30 +867,30 @@ impl<'a> Sql<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Sql Clear Cursor API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/clear-sql-cursor-api.html)\n\nClears the SQL cursor"] + #[doc = "[Sql Clear Cursor API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/clear-sql-cursor-api.html)\n\nClears the SQL cursor"] pub fn clear_cursor<'b>(&'a self) -> SqlClearCursor<'a, 'b, ()> { SqlClearCursor::new(self.transport()) } - #[doc = "[Sql Delete Async API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-async-sql-search-api.html)\n\nDeletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it."] + #[doc = "[Sql Delete Async API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-async-sql-search-api.html)\n\nDeletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it."] pub fn delete_async<'b>(&'a self, parts: SqlDeleteAsyncParts<'b>) -> SqlDeleteAsync<'a, 'b> { SqlDeleteAsync::new(self.transport(), parts) } - #[doc = "[Sql Get Async API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-async-sql-search-api.html)\n\nReturns the current status and available results for an async SQL search or stored synchronous SQL search"] + #[doc = "[Sql Get Async API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-async-sql-search-api.html)\n\nReturns the current status and available results for an async SQL search or stored synchronous SQL search"] pub fn get_async<'b>(&'a self, parts: SqlGetAsyncParts<'b>) -> SqlGetAsync<'a, 'b> { SqlGetAsync::new(self.transport(), parts) } - #[doc = "[Sql Get Async Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-async-sql-search-status-api.html)\n\nReturns the current status of an async SQL search or a stored synchronous SQL search"] + #[doc = "[Sql Get Async Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-async-sql-search-status-api.html)\n\nReturns the current status of an async SQL search or a stored synchronous SQL search"] pub fn get_async_status<'b>( &'a self, parts: SqlGetAsyncStatusParts<'b>, ) -> SqlGetAsyncStatus<'a, 'b> { SqlGetAsyncStatus::new(self.transport(), parts) } - #[doc = "[Sql Query API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/sql-search-api.html)\n\nExecutes a SQL request"] + #[doc = "[Sql Query API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/sql-search-api.html)\n\nExecutes a SQL request"] pub fn query<'b>(&'a self) -> SqlQuery<'a, 'b, ()> { SqlQuery::new(self.transport()) } - #[doc = "[Sql Translate API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/sql-translate-api.html)\n\nTranslates SQL into Elasticsearch queries"] + #[doc = "[Sql Translate API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/sql-translate-api.html)\n\nTranslates SQL into Elasticsearch queries"] pub fn translate<'b>(&'a self) -> SqlTranslate<'a, 'b, ()> { SqlTranslate::new(self.transport()) } diff --git a/elasticsearch/src/ssl.rs b/elasticsearch/src/ssl.rs index f51759d1..5d59d6c6 100644 --- a/elasticsearch/src/ssl.rs +++ b/elasticsearch/src/ssl.rs @@ -58,7 +58,7 @@ impl SslCertificatesParts { } } } -#[doc = "Builder for the [Ssl Certificates API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-ssl.html)\n\nRetrieves information about the X.509 certificates used to encrypt communications in the cluster."] +#[doc = "Builder for the [Ssl Certificates API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-ssl.html)\n\nRetrieves information about the X.509 certificates used to encrypt communications in the cluster."] #[derive(Clone, Debug)] pub struct SslCertificates<'a, 'b> { transport: &'a Transport, @@ -168,7 +168,7 @@ impl<'a> Ssl<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Ssl Certificates API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/security-api-ssl.html)\n\nRetrieves information about the X.509 certificates used to encrypt communications in the cluster."] + #[doc = "[Ssl Certificates API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/security-api-ssl.html)\n\nRetrieves information about the X.509 certificates used to encrypt communications in the cluster."] pub fn certificates<'b>(&'a self) -> SslCertificates<'a, 'b> { SslCertificates::new(self.transport()) } diff --git a/elasticsearch/src/streams.rs b/elasticsearch/src/streams.rs new file mode 100644 index 00000000..dc591a30 --- /dev/null +++ b/elasticsearch/src/streams.rs @@ -0,0 +1,504 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +// ----------------------------------------------- +// This file is generated, Please do not edit it manually. +// Run the following in the root of the repo to regenerate: +// +// cargo make generate-api +// ----------------------------------------------- + +#![allow(unused_imports)] +use crate::{ + client::Elasticsearch, + error::Error, + http::{ + self, + headers::{HeaderMap, HeaderName, HeaderValue, ACCEPT, CONTENT_TYPE}, + request::{Body, JsonBody, NdBody, PARTS_ENCODED}, + response::Response, + transport::Transport, + }, + params::*, +}; +use percent_encoding::percent_encode; +use serde::Serialize; +use std::{borrow::Cow, time::Duration}; +#[derive(Debug, Clone, PartialEq, Eq)] +#[doc = "API parts for the Streams Logs Disable API"] +pub enum StreamsLogsDisableParts { + #[doc = "No parts"] + None, +} +impl StreamsLogsDisableParts { + #[doc = "Builds a relative URL path to the Streams Logs Disable API"] + pub fn url(self) -> Cow<'static, str> { + match self { + StreamsLogsDisableParts::None => "/_streams/logs/_disable".into(), + } + } +} +#[doc = "Builder for the [Streams Logs Disable API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/streams-logs-disable.html)\n\nDisable the Logs Streams feature for this cluster"] +#[derive(Clone, Debug)] +pub struct StreamsLogsDisable<'a, 'b, B> { + transport: &'a Transport, + parts: StreamsLogsDisableParts, + body: Option, + error_trace: Option, + filter_path: Option<&'b [&'b str]>, + headers: HeaderMap, + human: Option, + master_timeout: Option<&'b str>, + pretty: Option, + request_timeout: Option, + source: Option<&'b str>, + timeout: Option<&'b str>, +} +impl<'a, 'b, B> StreamsLogsDisable<'a, 'b, B> +where + B: Body, +{ + #[doc = "Creates a new instance of [StreamsLogsDisable]"] + pub fn new(transport: &'a Transport) -> Self { + let headers = HeaderMap::new(); + StreamsLogsDisable { + transport, + parts: StreamsLogsDisableParts::None, + headers, + body: None, + error_trace: None, + filter_path: None, + human: None, + master_timeout: None, + pretty: None, + request_timeout: None, + source: None, + timeout: None, + } + } + #[doc = "The body for the API call"] + pub fn body(self, body: T) -> StreamsLogsDisable<'a, 'b, JsonBody> + where + T: Serialize, + { + StreamsLogsDisable { + transport: self.transport, + parts: self.parts, + body: Some(body.into()), + error_trace: self.error_trace, + filter_path: self.filter_path, + headers: self.headers, + human: self.human, + master_timeout: self.master_timeout, + pretty: self.pretty, + request_timeout: self.request_timeout, + source: self.source, + timeout: self.timeout, + } + } + #[doc = "Include the stack trace of returned errors."] + pub fn error_trace(mut self, error_trace: bool) -> Self { + self.error_trace = Some(error_trace); + self + } + #[doc = "A comma-separated list of filters used to reduce the response."] + pub fn filter_path(mut self, filter_path: &'b [&'b str]) -> Self { + self.filter_path = Some(filter_path); + self + } + #[doc = "Adds a HTTP header"] + pub fn header(mut self, key: HeaderName, value: HeaderValue) -> Self { + self.headers.insert(key, value); + self + } + #[doc = "Return human readable values for statistics."] + pub fn human(mut self, human: bool) -> Self { + self.human = Some(human); + self + } + #[doc = "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error."] + pub fn master_timeout(mut self, master_timeout: &'b str) -> Self { + self.master_timeout = Some(master_timeout); + self + } + #[doc = "Pretty format the returned JSON response."] + pub fn pretty(mut self, pretty: bool) -> Self { + self.pretty = Some(pretty); + self + } + #[doc = "Sets a request timeout for this API call.\n\nThe timeout is applied from when the request starts connecting until the response body has finished."] + pub fn request_timeout(mut self, timeout: Duration) -> Self { + self.request_timeout = Some(timeout); + self + } + #[doc = "The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests."] + pub fn source(mut self, source: &'b str) -> Self { + self.source = Some(source); + self + } + #[doc = "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error."] + pub fn timeout(mut self, timeout: &'b str) -> Self { + self.timeout = Some(timeout); + self + } + #[doc = "Creates an asynchronous call to the Streams Logs Disable API that can be awaited"] + pub async fn send(self) -> Result { + let path = self.parts.url(); + let method = http::Method::Post; + let headers = self.headers; + let timeout = self.request_timeout; + let query_string = { + #[serde_with::skip_serializing_none] + #[derive(Serialize)] + struct QueryParams<'b> { + error_trace: Option, + #[serde(serialize_with = "crate::client::serialize_coll_qs")] + filter_path: Option<&'b [&'b str]>, + human: Option, + master_timeout: Option<&'b str>, + pretty: Option, + source: Option<&'b str>, + timeout: Option<&'b str>, + } + let query_params = QueryParams { + error_trace: self.error_trace, + filter_path: self.filter_path, + human: self.human, + master_timeout: self.master_timeout, + pretty: self.pretty, + source: self.source, + timeout: self.timeout, + }; + Some(query_params) + }; + let body = self.body; + let response = self + .transport + .send(method, &path, headers, query_string.as_ref(), body, timeout) + .await?; + Ok(response) + } +} +#[derive(Debug, Clone, PartialEq, Eq)] +#[doc = "API parts for the Streams Logs Enable API"] +pub enum StreamsLogsEnableParts { + #[doc = "No parts"] + None, +} +impl StreamsLogsEnableParts { + #[doc = "Builds a relative URL path to the Streams Logs Enable API"] + pub fn url(self) -> Cow<'static, str> { + match self { + StreamsLogsEnableParts::None => "/_streams/logs/_enable".into(), + } + } +} +#[doc = "Builder for the [Streams Logs Enable API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/streams-logs-enable.html)\n\nEnable the Logs Streams feature for this cluster"] +#[derive(Clone, Debug)] +pub struct StreamsLogsEnable<'a, 'b, B> { + transport: &'a Transport, + parts: StreamsLogsEnableParts, + body: Option, + error_trace: Option, + filter_path: Option<&'b [&'b str]>, + headers: HeaderMap, + human: Option, + master_timeout: Option<&'b str>, + pretty: Option, + request_timeout: Option, + source: Option<&'b str>, + timeout: Option<&'b str>, +} +impl<'a, 'b, B> StreamsLogsEnable<'a, 'b, B> +where + B: Body, +{ + #[doc = "Creates a new instance of [StreamsLogsEnable]"] + pub fn new(transport: &'a Transport) -> Self { + let headers = HeaderMap::new(); + StreamsLogsEnable { + transport, + parts: StreamsLogsEnableParts::None, + headers, + body: None, + error_trace: None, + filter_path: None, + human: None, + master_timeout: None, + pretty: None, + request_timeout: None, + source: None, + timeout: None, + } + } + #[doc = "The body for the API call"] + pub fn body(self, body: T) -> StreamsLogsEnable<'a, 'b, JsonBody> + where + T: Serialize, + { + StreamsLogsEnable { + transport: self.transport, + parts: self.parts, + body: Some(body.into()), + error_trace: self.error_trace, + filter_path: self.filter_path, + headers: self.headers, + human: self.human, + master_timeout: self.master_timeout, + pretty: self.pretty, + request_timeout: self.request_timeout, + source: self.source, + timeout: self.timeout, + } + } + #[doc = "Include the stack trace of returned errors."] + pub fn error_trace(mut self, error_trace: bool) -> Self { + self.error_trace = Some(error_trace); + self + } + #[doc = "A comma-separated list of filters used to reduce the response."] + pub fn filter_path(mut self, filter_path: &'b [&'b str]) -> Self { + self.filter_path = Some(filter_path); + self + } + #[doc = "Adds a HTTP header"] + pub fn header(mut self, key: HeaderName, value: HeaderValue) -> Self { + self.headers.insert(key, value); + self + } + #[doc = "Return human readable values for statistics."] + pub fn human(mut self, human: bool) -> Self { + self.human = Some(human); + self + } + #[doc = "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error."] + pub fn master_timeout(mut self, master_timeout: &'b str) -> Self { + self.master_timeout = Some(master_timeout); + self + } + #[doc = "Pretty format the returned JSON response."] + pub fn pretty(mut self, pretty: bool) -> Self { + self.pretty = Some(pretty); + self + } + #[doc = "Sets a request timeout for this API call.\n\nThe timeout is applied from when the request starts connecting until the response body has finished."] + pub fn request_timeout(mut self, timeout: Duration) -> Self { + self.request_timeout = Some(timeout); + self + } + #[doc = "The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests."] + pub fn source(mut self, source: &'b str) -> Self { + self.source = Some(source); + self + } + #[doc = "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error."] + pub fn timeout(mut self, timeout: &'b str) -> Self { + self.timeout = Some(timeout); + self + } + #[doc = "Creates an asynchronous call to the Streams Logs Enable API that can be awaited"] + pub async fn send(self) -> Result { + let path = self.parts.url(); + let method = http::Method::Post; + let headers = self.headers; + let timeout = self.request_timeout; + let query_string = { + #[serde_with::skip_serializing_none] + #[derive(Serialize)] + struct QueryParams<'b> { + error_trace: Option, + #[serde(serialize_with = "crate::client::serialize_coll_qs")] + filter_path: Option<&'b [&'b str]>, + human: Option, + master_timeout: Option<&'b str>, + pretty: Option, + source: Option<&'b str>, + timeout: Option<&'b str>, + } + let query_params = QueryParams { + error_trace: self.error_trace, + filter_path: self.filter_path, + human: self.human, + master_timeout: self.master_timeout, + pretty: self.pretty, + source: self.source, + timeout: self.timeout, + }; + Some(query_params) + }; + let body = self.body; + let response = self + .transport + .send(method, &path, headers, query_string.as_ref(), body, timeout) + .await?; + Ok(response) + } +} +#[derive(Debug, Clone, PartialEq, Eq)] +#[doc = "API parts for the Streams Status API"] +pub enum StreamsStatusParts { + #[doc = "No parts"] + None, +} +impl StreamsStatusParts { + #[doc = "Builds a relative URL path to the Streams Status API"] + pub fn url(self) -> Cow<'static, str> { + match self { + StreamsStatusParts::None => "/_streams/status".into(), + } + } +} +#[doc = "Builder for the [Streams Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/streams-status.html)\n\nReturn the current status of the streams feature for each streams type"] +#[derive(Clone, Debug)] +pub struct StreamsStatus<'a, 'b> { + transport: &'a Transport, + parts: StreamsStatusParts, + error_trace: Option, + filter_path: Option<&'b [&'b str]>, + headers: HeaderMap, + human: Option, + mater_timeout: Option<&'b str>, + pretty: Option, + request_timeout: Option, + source: Option<&'b str>, +} +impl<'a, 'b> StreamsStatus<'a, 'b> { + #[doc = "Creates a new instance of [StreamsStatus]"] + pub fn new(transport: &'a Transport) -> Self { + let headers = HeaderMap::new(); + StreamsStatus { + transport, + parts: StreamsStatusParts::None, + headers, + error_trace: None, + filter_path: None, + human: None, + mater_timeout: None, + pretty: None, + request_timeout: None, + source: None, + } + } + #[doc = "Include the stack trace of returned errors."] + pub fn error_trace(mut self, error_trace: bool) -> Self { + self.error_trace = Some(error_trace); + self + } + #[doc = "A comma-separated list of filters used to reduce the response."] + pub fn filter_path(mut self, filter_path: &'b [&'b str]) -> Self { + self.filter_path = Some(filter_path); + self + } + #[doc = "Adds a HTTP header"] + pub fn header(mut self, key: HeaderName, value: HeaderValue) -> Self { + self.headers.insert(key, value); + self + } + #[doc = "Return human readable values for statistics."] + pub fn human(mut self, human: bool) -> Self { + self.human = Some(human); + self + } + #[doc = "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error."] + pub fn mater_timeout(mut self, mater_timeout: &'b str) -> Self { + self.mater_timeout = Some(mater_timeout); + self + } + #[doc = "Pretty format the returned JSON response."] + pub fn pretty(mut self, pretty: bool) -> Self { + self.pretty = Some(pretty); + self + } + #[doc = "Sets a request timeout for this API call.\n\nThe timeout is applied from when the request starts connecting until the response body has finished."] + pub fn request_timeout(mut self, timeout: Duration) -> Self { + self.request_timeout = Some(timeout); + self + } + #[doc = "The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests."] + pub fn source(mut self, source: &'b str) -> Self { + self.source = Some(source); + self + } + #[doc = "Creates an asynchronous call to the Streams Status API that can be awaited"] + pub async fn send(self) -> Result { + let path = self.parts.url(); + let method = http::Method::Get; + let headers = self.headers; + let timeout = self.request_timeout; + let query_string = { + #[serde_with::skip_serializing_none] + #[derive(Serialize)] + struct QueryParams<'b> { + error_trace: Option, + #[serde(serialize_with = "crate::client::serialize_coll_qs")] + filter_path: Option<&'b [&'b str]>, + human: Option, + mater_timeout: Option<&'b str>, + pretty: Option, + source: Option<&'b str>, + } + let query_params = QueryParams { + error_trace: self.error_trace, + filter_path: self.filter_path, + human: self.human, + mater_timeout: self.mater_timeout, + pretty: self.pretty, + source: self.source, + }; + Some(query_params) + }; + let body = Option::<()>::None; + let response = self + .transport + .send(method, &path, headers, query_string.as_ref(), body, timeout) + .await?; + Ok(response) + } +} +#[doc = "Namespace client for Streams APIs"] +pub struct Streams<'a> { + transport: &'a Transport, +} +impl<'a> Streams<'a> { + #[doc = "Creates a new instance of [Streams]"] + pub fn new(transport: &'a Transport) -> Self { + Self { transport } + } + pub fn transport(&self) -> &Transport { + self.transport + } + #[doc = "[Streams Logs Disable API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/streams-logs-disable.html)\n\nDisable the Logs Streams feature for this cluster"] + pub fn logs_disable<'b>(&'a self) -> StreamsLogsDisable<'a, 'b, ()> { + StreamsLogsDisable::new(self.transport()) + } + #[doc = "[Streams Logs Enable API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/streams-logs-enable.html)\n\nEnable the Logs Streams feature for this cluster"] + pub fn logs_enable<'b>(&'a self) -> StreamsLogsEnable<'a, 'b, ()> { + StreamsLogsEnable::new(self.transport()) + } + #[doc = "[Streams Status API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/streams-status.html)\n\nReturn the current status of the streams feature for each streams type"] + pub fn status<'b>(&'a self) -> StreamsStatus<'a, 'b> { + StreamsStatus::new(self.transport()) + } +} +impl Elasticsearch { + #[doc = "Creates a namespace client for Streams APIs"] + pub fn streams(&self) -> Streams { + Streams::new(self.transport()) + } +} diff --git a/elasticsearch/src/synonyms.rs b/elasticsearch/src/synonyms.rs index af680ad4..b0458256 100644 --- a/elasticsearch/src/synonyms.rs +++ b/elasticsearch/src/synonyms.rs @@ -72,7 +72,7 @@ impl<'b> SynonymsDeleteSynonymParts<'b> { } } } -#[doc = "Builder for the [Synonyms Delete Synonym API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-synonyms-set.html)\n\nDeletes a synonym set"] +#[doc = "Builder for the [Synonyms Delete Synonym API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-synonyms-set.html)\n\nDeletes a synonym set"] #[derive(Clone, Debug)] pub struct SynonymsDeleteSynonym<'a, 'b> { transport: &'a Transport, @@ -196,7 +196,7 @@ impl<'b> SynonymsDeleteSynonymRuleParts<'b> { } } } -#[doc = "Builder for the [Synonyms Delete Synonym Rule API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-synonym-rule.html)\n\nDeletes a synonym rule in a synonym set"] +#[doc = "Builder for the [Synonyms Delete Synonym Rule API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-synonym-rule.html)\n\nDeletes a synonym rule in a synonym set"] #[derive(Clone, Debug)] pub struct SynonymsDeleteSynonymRule<'a, 'b> { transport: &'a Transport, @@ -206,6 +206,7 @@ pub struct SynonymsDeleteSynonymRule<'a, 'b> { headers: HeaderMap, human: Option, pretty: Option, + refresh: Option, request_timeout: Option, source: Option<&'b str>, } @@ -221,6 +222,7 @@ impl<'a, 'b> SynonymsDeleteSynonymRule<'a, 'b> { filter_path: None, human: None, pretty: None, + refresh: None, request_timeout: None, source: None, } @@ -250,6 +252,11 @@ impl<'a, 'b> SynonymsDeleteSynonymRule<'a, 'b> { self.pretty = Some(pretty); self } + #[doc = "Refresh search analyzers to update synonyms"] + pub fn refresh(mut self, refresh: bool) -> Self { + self.refresh = Some(refresh); + self + } #[doc = "Sets a request timeout for this API call.\n\nThe timeout is applied from when the request starts connecting until the response body has finished."] pub fn request_timeout(mut self, timeout: Duration) -> Self { self.request_timeout = Some(timeout); @@ -275,6 +282,7 @@ impl<'a, 'b> SynonymsDeleteSynonymRule<'a, 'b> { filter_path: Option<&'b [&'b str]>, human: Option, pretty: Option, + refresh: Option, source: Option<&'b str>, } let query_params = QueryParams { @@ -282,6 +290,7 @@ impl<'a, 'b> SynonymsDeleteSynonymRule<'a, 'b> { filter_path: self.filter_path, human: self.human, pretty: self.pretty, + refresh: self.refresh, source: self.source, }; Some(query_params) @@ -314,7 +323,7 @@ impl<'b> SynonymsGetSynonymParts<'b> { } } } -#[doc = "Builder for the [Synonyms Get Synonym API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-synonyms-set.html)\n\nRetrieves a synonym set"] +#[doc = "Builder for the [Synonyms Get Synonym API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-synonyms-set.html)\n\nRetrieves a synonym set"] #[derive(Clone, Debug)] pub struct SynonymsGetSynonym<'a, 'b> { transport: &'a Transport, @@ -456,7 +465,7 @@ impl<'b> SynonymsGetSynonymRuleParts<'b> { } } } -#[doc = "Builder for the [Synonyms Get Synonym Rule API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-synonym-rule.html)\n\nRetrieves a synonym rule from a synonym set"] +#[doc = "Builder for the [Synonyms Get Synonym Rule API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-synonym-rule.html)\n\nRetrieves a synonym rule from a synonym set"] #[derive(Clone, Debug)] pub struct SynonymsGetSynonymRule<'a, 'b> { transport: &'a Transport, @@ -568,7 +577,7 @@ impl SynonymsGetSynonymsSetsParts { } } } -#[doc = "Builder for the [Synonyms Get Synonyms Sets API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/list-synonyms-sets.html)\n\nRetrieves a summary of all defined synonym sets"] +#[doc = "Builder for the [Synonyms Get Synonyms Sets API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/list-synonyms-sets.html)\n\nRetrieves a summary of all defined synonym sets"] #[derive(Clone, Debug)] pub struct SynonymsGetSynonymsSets<'a, 'b> { transport: &'a Transport, @@ -704,7 +713,7 @@ impl<'b> SynonymsPutSynonymParts<'b> { } } } -#[doc = "Builder for the [Synonyms Put Synonym API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-synonyms-set.html)\n\nCreates or updates a synonyms set"] +#[doc = "Builder for the [Synonyms Put Synonym API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-synonyms-set.html)\n\nCreates or updates a synonyms set"] #[derive(Clone, Debug)] pub struct SynonymsPutSynonym<'a, 'b, B> { transport: &'a Transport, @@ -715,6 +724,7 @@ pub struct SynonymsPutSynonym<'a, 'b, B> { headers: HeaderMap, human: Option, pretty: Option, + refresh: Option, request_timeout: Option, source: Option<&'b str>, } @@ -734,6 +744,7 @@ where filter_path: None, human: None, pretty: None, + refresh: None, request_timeout: None, source: None, } @@ -752,6 +763,7 @@ where headers: self.headers, human: self.human, pretty: self.pretty, + refresh: self.refresh, request_timeout: self.request_timeout, source: self.source, } @@ -781,6 +793,11 @@ where self.pretty = Some(pretty); self } + #[doc = "Refresh search analyzers to update synonyms"] + pub fn refresh(mut self, refresh: bool) -> Self { + self.refresh = Some(refresh); + self + } #[doc = "Sets a request timeout for this API call.\n\nThe timeout is applied from when the request starts connecting until the response body has finished."] pub fn request_timeout(mut self, timeout: Duration) -> Self { self.request_timeout = Some(timeout); @@ -806,6 +823,7 @@ where filter_path: Option<&'b [&'b str]>, human: Option, pretty: Option, + refresh: Option, source: Option<&'b str>, } let query_params = QueryParams { @@ -813,6 +831,7 @@ where filter_path: self.filter_path, human: self.human, pretty: self.pretty, + refresh: self.refresh, source: self.source, }; Some(query_params) @@ -851,7 +870,7 @@ impl<'b> SynonymsPutSynonymRuleParts<'b> { } } } -#[doc = "Builder for the [Synonyms Put Synonym Rule API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-synonym-rule.html)\n\nCreates or updates a synonym rule in a synonym set"] +#[doc = "Builder for the [Synonyms Put Synonym Rule API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-synonym-rule.html)\n\nCreates or updates a synonym rule in a synonym set"] #[derive(Clone, Debug)] pub struct SynonymsPutSynonymRule<'a, 'b, B> { transport: &'a Transport, @@ -862,6 +881,7 @@ pub struct SynonymsPutSynonymRule<'a, 'b, B> { headers: HeaderMap, human: Option, pretty: Option, + refresh: Option, request_timeout: Option, source: Option<&'b str>, } @@ -881,6 +901,7 @@ where filter_path: None, human: None, pretty: None, + refresh: None, request_timeout: None, source: None, } @@ -899,6 +920,7 @@ where headers: self.headers, human: self.human, pretty: self.pretty, + refresh: self.refresh, request_timeout: self.request_timeout, source: self.source, } @@ -928,6 +950,11 @@ where self.pretty = Some(pretty); self } + #[doc = "Refresh search analyzers to update synonyms"] + pub fn refresh(mut self, refresh: bool) -> Self { + self.refresh = Some(refresh); + self + } #[doc = "Sets a request timeout for this API call.\n\nThe timeout is applied from when the request starts connecting until the response body has finished."] pub fn request_timeout(mut self, timeout: Duration) -> Self { self.request_timeout = Some(timeout); @@ -953,6 +980,7 @@ where filter_path: Option<&'b [&'b str]>, human: Option, pretty: Option, + refresh: Option, source: Option<&'b str>, } let query_params = QueryParams { @@ -960,6 +988,7 @@ where filter_path: self.filter_path, human: self.human, pretty: self.pretty, + refresh: self.refresh, source: self.source, }; Some(query_params) @@ -984,46 +1013,46 @@ impl<'a> Synonyms<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Synonyms Delete Synonym API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-synonyms-set.html)\n\nDeletes a synonym set"] + #[doc = "[Synonyms Delete Synonym API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-synonyms-set.html)\n\nDeletes a synonym set"] pub fn delete_synonym<'b>( &'a self, parts: SynonymsDeleteSynonymParts<'b>, ) -> SynonymsDeleteSynonym<'a, 'b> { SynonymsDeleteSynonym::new(self.transport(), parts) } - #[doc = "[Synonyms Delete Synonym Rule API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-synonym-rule.html)\n\nDeletes a synonym rule in a synonym set"] + #[doc = "[Synonyms Delete Synonym Rule API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-synonym-rule.html)\n\nDeletes a synonym rule in a synonym set"] pub fn delete_synonym_rule<'b>( &'a self, parts: SynonymsDeleteSynonymRuleParts<'b>, ) -> SynonymsDeleteSynonymRule<'a, 'b> { SynonymsDeleteSynonymRule::new(self.transport(), parts) } - #[doc = "[Synonyms Get Synonym API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-synonyms-set.html)\n\nRetrieves a synonym set"] + #[doc = "[Synonyms Get Synonym API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-synonyms-set.html)\n\nRetrieves a synonym set"] pub fn get_synonym<'b>( &'a self, parts: SynonymsGetSynonymParts<'b>, ) -> SynonymsGetSynonym<'a, 'b> { SynonymsGetSynonym::new(self.transport(), parts) } - #[doc = "[Synonyms Get Synonym Rule API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-synonym-rule.html)\n\nRetrieves a synonym rule from a synonym set"] + #[doc = "[Synonyms Get Synonym Rule API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-synonym-rule.html)\n\nRetrieves a synonym rule from a synonym set"] pub fn get_synonym_rule<'b>( &'a self, parts: SynonymsGetSynonymRuleParts<'b>, ) -> SynonymsGetSynonymRule<'a, 'b> { SynonymsGetSynonymRule::new(self.transport(), parts) } - #[doc = "[Synonyms Get Synonyms Sets API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/list-synonyms-sets.html)\n\nRetrieves a summary of all defined synonym sets"] + #[doc = "[Synonyms Get Synonyms Sets API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/list-synonyms-sets.html)\n\nRetrieves a summary of all defined synonym sets"] pub fn get_synonyms_sets<'b>(&'a self) -> SynonymsGetSynonymsSets<'a, 'b> { SynonymsGetSynonymsSets::new(self.transport()) } - #[doc = "[Synonyms Put Synonym API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-synonyms-set.html)\n\nCreates or updates a synonyms set"] + #[doc = "[Synonyms Put Synonym API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-synonyms-set.html)\n\nCreates or updates a synonyms set"] pub fn put_synonym<'b>( &'a self, parts: SynonymsPutSynonymParts<'b>, ) -> SynonymsPutSynonym<'a, 'b, ()> { SynonymsPutSynonym::new(self.transport(), parts) } - #[doc = "[Synonyms Put Synonym Rule API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-synonym-rule.html)\n\nCreates or updates a synonym rule in a synonym set"] + #[doc = "[Synonyms Put Synonym Rule API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-synonym-rule.html)\n\nCreates or updates a synonym rule in a synonym set"] pub fn put_synonym_rule<'b>( &'a self, parts: SynonymsPutSynonymRuleParts<'b>, diff --git a/elasticsearch/src/tasks.rs b/elasticsearch/src/tasks.rs index 511ffe42..362c92a7 100644 --- a/elasticsearch/src/tasks.rs +++ b/elasticsearch/src/tasks.rs @@ -73,7 +73,7 @@ impl<'b> TasksCancelParts<'b> { } } } -#[doc = "Builder for the [Tasks Cancel API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/tasks.html)\n\nCancels a task, if it can be cancelled through an API."] +#[doc = "Builder for the [Tasks Cancel API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/tasks.html)\n\nCancels a task, if it can be cancelled through an API."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -262,7 +262,7 @@ impl<'b> TasksGetParts<'b> { } } } -#[doc = "Builder for the [Tasks Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/tasks.html)\n\nReturns information about a task."] +#[doc = "Builder for the [Tasks Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/tasks.html)\n\nReturns information about a task."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -397,7 +397,7 @@ impl TasksListParts { } } } -#[doc = "Builder for the [Tasks List API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/tasks.html)\n\nReturns a list of tasks."] +#[doc = "Builder for the [Tasks List API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/tasks.html)\n\nReturns a list of tasks."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] #[derive(Clone, Debug)] @@ -578,19 +578,19 @@ impl<'a> Tasks<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Tasks Cancel API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/tasks.html)\n\nCancels a task, if it can be cancelled through an API."] + #[doc = "[Tasks Cancel API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/tasks.html)\n\nCancels a task, if it can be cancelled through an API."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn cancel<'b>(&'a self, parts: TasksCancelParts<'b>) -> TasksCancel<'a, 'b, ()> { TasksCancel::new(self.transport(), parts) } - #[doc = "[Tasks Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/tasks.html)\n\nReturns information about a task."] + #[doc = "[Tasks Get API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/tasks.html)\n\nReturns information about a task."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn get<'b>(&'a self, parts: TasksGetParts<'b>) -> TasksGet<'a, 'b> { TasksGet::new(self.transport(), parts) } - #[doc = "[Tasks List API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/tasks.html)\n\nReturns a list of tasks."] + #[doc = "[Tasks List API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/tasks.html)\n\nReturns a list of tasks."] #[doc = " \n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "] #[cfg(feature = "experimental-apis")] pub fn list<'b>(&'a self) -> TasksList<'a, 'b> { diff --git a/elasticsearch/src/text_structure.rs b/elasticsearch/src/text_structure.rs index c587064e..3f839ca4 100644 --- a/elasticsearch/src/text_structure.rs +++ b/elasticsearch/src/text_structure.rs @@ -61,7 +61,7 @@ impl TextStructureFindFieldStructureParts { } } } -#[doc = "Builder for the [Text Structure Find Field Structure API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/find-field-structure.html)\n\nFinds the structure of a text field in an index."] +#[doc = "Builder for the [Text Structure Find Field Structure API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/find-field-structure.html)\n\nFinds the structure of a text field in an index."] #[derive(Clone, Debug)] pub struct TextStructureFindFieldStructure<'a, 'b> { transport: &'a Transport, @@ -302,7 +302,7 @@ impl TextStructureFindMessageStructureParts { } } } -#[doc = "Builder for the [Text Structure Find Message Structure API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/find-message-structure.html)\n\nFinds the structure of a list of messages. The messages must contain data that is suitable to be ingested into Elasticsearch."] +#[doc = "Builder for the [Text Structure Find Message Structure API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/find-message-structure.html)\n\nFinds the structure of a list of messages. The messages must contain data that is suitable to be ingested into Elasticsearch."] #[derive(Clone, Debug)] pub struct TextStructureFindMessageStructure<'a, 'b, B> { transport: &'a Transport, @@ -551,7 +551,7 @@ impl TextStructureFindStructureParts { } } } -#[doc = "Builder for the [Text Structure Find Structure API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/find-structure.html)\n\nFinds the structure of a text file. The text file must contain data that is suitable to be ingested into Elasticsearch."] +#[doc = "Builder for the [Text Structure Find Structure API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/find-structure.html)\n\nFinds the structure of a text file. The text file must contain data that is suitable to be ingested into Elasticsearch."] #[derive(Clone, Debug)] pub struct TextStructureFindStructure<'a, 'b, B> { transport: &'a Transport, @@ -837,7 +837,7 @@ impl TextStructureTestGrokPatternParts { } } } -#[doc = "Builder for the [Text Structure Test Grok Pattern API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/test-grok-pattern.html)\n\nTests a Grok pattern on some text."] +#[doc = "Builder for the [Text Structure Test Grok Pattern API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/test-grok-pattern.html)\n\nTests a Grok pattern on some text."] #[derive(Clone, Debug)] pub struct TextStructureTestGrokPattern<'a, 'b, B> { transport: &'a Transport, @@ -983,19 +983,19 @@ impl<'a> TextStructure<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Text Structure Find Field Structure API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/find-field-structure.html)\n\nFinds the structure of a text field in an index."] + #[doc = "[Text Structure Find Field Structure API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/find-field-structure.html)\n\nFinds the structure of a text field in an index."] pub fn find_field_structure<'b>(&'a self) -> TextStructureFindFieldStructure<'a, 'b> { TextStructureFindFieldStructure::new(self.transport()) } - #[doc = "[Text Structure Find Message Structure API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/find-message-structure.html)\n\nFinds the structure of a list of messages. The messages must contain data that is suitable to be ingested into Elasticsearch."] + #[doc = "[Text Structure Find Message Structure API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/find-message-structure.html)\n\nFinds the structure of a list of messages. The messages must contain data that is suitable to be ingested into Elasticsearch."] pub fn find_message_structure<'b>(&'a self) -> TextStructureFindMessageStructure<'a, 'b, ()> { TextStructureFindMessageStructure::new(self.transport()) } - #[doc = "[Text Structure Find Structure API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/find-structure.html)\n\nFinds the structure of a text file. The text file must contain data that is suitable to be ingested into Elasticsearch."] + #[doc = "[Text Structure Find Structure API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/find-structure.html)\n\nFinds the structure of a text file. The text file must contain data that is suitable to be ingested into Elasticsearch."] pub fn find_structure<'b>(&'a self) -> TextStructureFindStructure<'a, 'b, ()> { TextStructureFindStructure::new(self.transport()) } - #[doc = "[Text Structure Test Grok Pattern API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/test-grok-pattern.html)\n\nTests a Grok pattern on some text."] + #[doc = "[Text Structure Test Grok Pattern API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/test-grok-pattern.html)\n\nTests a Grok pattern on some text."] pub fn test_grok_pattern<'b>(&'a self) -> TextStructureTestGrokPattern<'a, 'b, ()> { TextStructureTestGrokPattern::new(self.transport()) } diff --git a/elasticsearch/src/transform.rs b/elasticsearch/src/transform.rs index bb120d3d..d9c46431 100644 --- a/elasticsearch/src/transform.rs +++ b/elasticsearch/src/transform.rs @@ -67,7 +67,7 @@ impl<'b> TransformDeleteTransformParts<'b> { } } } -#[doc = "Builder for the [Transform Delete Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-transform.html)\n\nDeletes an existing transform."] +#[doc = "Builder for the [Transform Delete Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-transform.html)\n\nDeletes an existing transform."] #[derive(Clone, Debug)] pub struct TransformDeleteTransform<'a, 'b> { transport: &'a Transport, @@ -206,7 +206,7 @@ impl TransformGetNodeStatsParts { } } } -#[doc = "Builder for the [Transform Get Node Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-transform-node-stats.html)\n\nRetrieves transform usage information for transform nodes."] +#[doc = "Builder for the [Transform Get Node Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-transform-node-stats.html)\n\nRetrieves transform usage information for transform nodes."] #[derive(Clone, Debug)] pub struct TransformGetNodeStats<'a, 'b> { transport: &'a Transport, @@ -328,7 +328,7 @@ impl<'b> TransformGetTransformParts<'b> { } } } -#[doc = "Builder for the [Transform Get Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-transform.html)\n\nRetrieves configuration information for transforms."] +#[doc = "Builder for the [Transform Get Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-transform.html)\n\nRetrieves configuration information for transforms."] #[derive(Clone, Debug)] pub struct TransformGetTransform<'a, 'b> { transport: &'a Transport, @@ -484,7 +484,7 @@ impl<'b> TransformGetTransformStatsParts<'b> { } } } -#[doc = "Builder for the [Transform Get Transform Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-transform-stats.html)\n\nRetrieves usage information for transforms."] +#[doc = "Builder for the [Transform Get Transform Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-transform-stats.html)\n\nRetrieves usage information for transforms."] #[derive(Clone, Debug)] pub struct TransformGetTransformStats<'a, 'b> { transport: &'a Transport, @@ -643,7 +643,7 @@ impl<'b> TransformPreviewTransformParts<'b> { } } } -#[doc = "Builder for the [Transform Preview Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/preview-transform.html)\n\nPreviews a transform."] +#[doc = "Builder for the [Transform Preview Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/preview-transform.html)\n\nPreviews a transform."] #[derive(Clone, Debug)] pub struct TransformPreviewTransform<'a, 'b, B> { transport: &'a Transport, @@ -798,7 +798,7 @@ impl<'b> TransformPutTransformParts<'b> { } } } -#[doc = "Builder for the [Transform Put Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-transform.html)\n\nInstantiates a transform."] +#[doc = "Builder for the [Transform Put Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-transform.html)\n\nInstantiates a transform."] #[derive(Clone, Debug)] pub struct TransformPutTransform<'a, 'b, B> { transport: &'a Transport, @@ -961,7 +961,7 @@ impl<'b> TransformResetTransformParts<'b> { } } } -#[doc = "Builder for the [Transform Reset Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/reset-transform.html)\n\nResets an existing transform."] +#[doc = "Builder for the [Transform Reset Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/reset-transform.html)\n\nResets an existing transform."] #[derive(Clone, Debug)] pub struct TransformResetTransform<'a, 'b, B> { transport: &'a Transport, @@ -1124,7 +1124,7 @@ impl<'b> TransformScheduleNowTransformParts<'b> { } } } -#[doc = "Builder for the [Transform Schedule Now Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/schedule-now-transform.html)\n\nSchedules now a transform."] +#[doc = "Builder for the [Transform Schedule Now Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/schedule-now-transform.html)\n\nSchedules now a transform."] #[derive(Clone, Debug)] pub struct TransformScheduleNowTransform<'a, 'b, B> { transport: &'a Transport, @@ -1277,7 +1277,7 @@ impl<'b> TransformStartTransformParts<'b> { } } } -#[doc = "Builder for the [Transform Start Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/start-transform.html)\n\nStarts one or more transforms."] +#[doc = "Builder for the [Transform Start Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/start-transform.html)\n\nStarts one or more transforms."] #[derive(Clone, Debug)] pub struct TransformStartTransform<'a, 'b, B> { transport: &'a Transport, @@ -1440,7 +1440,7 @@ impl<'b> TransformStopTransformParts<'b> { } } } -#[doc = "Builder for the [Transform Stop Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/stop-transform.html)\n\nStops one or more transforms."] +#[doc = "Builder for the [Transform Stop Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/stop-transform.html)\n\nStops one or more transforms."] #[derive(Clone, Debug)] pub struct TransformStopTransform<'a, 'b, B> { transport: &'a Transport, @@ -1633,7 +1633,7 @@ impl<'b> TransformUpdateTransformParts<'b> { } } } -#[doc = "Builder for the [Transform Update Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-transform.html)\n\nUpdates certain properties of a transform."] +#[doc = "Builder for the [Transform Update Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-transform.html)\n\nUpdates certain properties of a transform."] #[derive(Clone, Debug)] pub struct TransformUpdateTransform<'a, 'b, B> { transport: &'a Transport, @@ -1788,7 +1788,7 @@ impl TransformUpgradeTransformsParts { } } } -#[doc = "Builder for the [Transform Upgrade Transforms API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/upgrade-transforms.html)\n\nUpgrades all transforms."] +#[doc = "Builder for the [Transform Upgrade Transforms API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/upgrade-transforms.html)\n\nUpgrades all transforms."] #[derive(Clone, Debug)] pub struct TransformUpgradeTransforms<'a, 'b, B> { transport: &'a Transport, @@ -1941,81 +1941,81 @@ impl<'a> Transform<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Transform Delete Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/delete-transform.html)\n\nDeletes an existing transform."] + #[doc = "[Transform Delete Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/delete-transform.html)\n\nDeletes an existing transform."] pub fn delete_transform<'b>( &'a self, parts: TransformDeleteTransformParts<'b>, ) -> TransformDeleteTransform<'a, 'b> { TransformDeleteTransform::new(self.transport(), parts) } - #[doc = "[Transform Get Node Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-transform-node-stats.html)\n\nRetrieves transform usage information for transform nodes."] + #[doc = "[Transform Get Node Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-transform-node-stats.html)\n\nRetrieves transform usage information for transform nodes."] pub fn get_node_stats<'b>(&'a self) -> TransformGetNodeStats<'a, 'b> { TransformGetNodeStats::new(self.transport()) } - #[doc = "[Transform Get Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-transform.html)\n\nRetrieves configuration information for transforms."] + #[doc = "[Transform Get Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-transform.html)\n\nRetrieves configuration information for transforms."] pub fn get_transform<'b>( &'a self, parts: TransformGetTransformParts<'b>, ) -> TransformGetTransform<'a, 'b> { TransformGetTransform::new(self.transport(), parts) } - #[doc = "[Transform Get Transform Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/get-transform-stats.html)\n\nRetrieves usage information for transforms."] + #[doc = "[Transform Get Transform Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/get-transform-stats.html)\n\nRetrieves usage information for transforms."] pub fn get_transform_stats<'b>( &'a self, parts: TransformGetTransformStatsParts<'b>, ) -> TransformGetTransformStats<'a, 'b> { TransformGetTransformStats::new(self.transport(), parts) } - #[doc = "[Transform Preview Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/preview-transform.html)\n\nPreviews a transform."] + #[doc = "[Transform Preview Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/preview-transform.html)\n\nPreviews a transform."] pub fn preview_transform<'b>( &'a self, parts: TransformPreviewTransformParts<'b>, ) -> TransformPreviewTransform<'a, 'b, ()> { TransformPreviewTransform::new(self.transport(), parts) } - #[doc = "[Transform Put Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-transform.html)\n\nInstantiates a transform."] + #[doc = "[Transform Put Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/put-transform.html)\n\nInstantiates a transform."] pub fn put_transform<'b>( &'a self, parts: TransformPutTransformParts<'b>, ) -> TransformPutTransform<'a, 'b, ()> { TransformPutTransform::new(self.transport(), parts) } - #[doc = "[Transform Reset Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/reset-transform.html)\n\nResets an existing transform."] + #[doc = "[Transform Reset Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/reset-transform.html)\n\nResets an existing transform."] pub fn reset_transform<'b>( &'a self, parts: TransformResetTransformParts<'b>, ) -> TransformResetTransform<'a, 'b, ()> { TransformResetTransform::new(self.transport(), parts) } - #[doc = "[Transform Schedule Now Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/schedule-now-transform.html)\n\nSchedules now a transform."] + #[doc = "[Transform Schedule Now Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/schedule-now-transform.html)\n\nSchedules now a transform."] pub fn schedule_now_transform<'b>( &'a self, parts: TransformScheduleNowTransformParts<'b>, ) -> TransformScheduleNowTransform<'a, 'b, ()> { TransformScheduleNowTransform::new(self.transport(), parts) } - #[doc = "[Transform Start Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/start-transform.html)\n\nStarts one or more transforms."] + #[doc = "[Transform Start Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/start-transform.html)\n\nStarts one or more transforms."] pub fn start_transform<'b>( &'a self, parts: TransformStartTransformParts<'b>, ) -> TransformStartTransform<'a, 'b, ()> { TransformStartTransform::new(self.transport(), parts) } - #[doc = "[Transform Stop Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/stop-transform.html)\n\nStops one or more transforms."] + #[doc = "[Transform Stop Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/stop-transform.html)\n\nStops one or more transforms."] pub fn stop_transform<'b>( &'a self, parts: TransformStopTransformParts<'b>, ) -> TransformStopTransform<'a, 'b, ()> { TransformStopTransform::new(self.transport(), parts) } - #[doc = "[Transform Update Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/update-transform.html)\n\nUpdates certain properties of a transform."] + #[doc = "[Transform Update Transform API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/update-transform.html)\n\nUpdates certain properties of a transform."] pub fn update_transform<'b>( &'a self, parts: TransformUpdateTransformParts<'b>, ) -> TransformUpdateTransform<'a, 'b, ()> { TransformUpdateTransform::new(self.transport(), parts) } - #[doc = "[Transform Upgrade Transforms API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/upgrade-transforms.html)\n\nUpgrades all transforms."] + #[doc = "[Transform Upgrade Transforms API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/upgrade-transforms.html)\n\nUpgrades all transforms."] pub fn upgrade_transforms<'b>(&'a self) -> TransformUpgradeTransforms<'a, 'b, ()> { TransformUpgradeTransforms::new(self.transport()) } diff --git a/elasticsearch/src/watcher.rs b/elasticsearch/src/watcher.rs index 7cbbf5fb..37f62097 100644 --- a/elasticsearch/src/watcher.rs +++ b/elasticsearch/src/watcher.rs @@ -84,7 +84,7 @@ impl<'b> WatcherAckWatchParts<'b> { } } } -#[doc = "Builder for the [Watcher Ack Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/watcher-api-ack-watch.html)\n\nAcknowledges a watch, manually throttling the execution of the watch's actions."] +#[doc = "Builder for the [Watcher Ack Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/watcher-api-ack-watch.html)\n\nAcknowledges a watch, manually throttling the execution of the watch's actions."] #[derive(Clone, Debug)] pub struct WatcherAckWatch<'a, 'b, B> { transport: &'a Transport, @@ -227,7 +227,7 @@ impl<'b> WatcherActivateWatchParts<'b> { } } } -#[doc = "Builder for the [Watcher Activate Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/watcher-api-activate-watch.html)\n\nActivates a currently inactive watch."] +#[doc = "Builder for the [Watcher Activate Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/watcher-api-activate-watch.html)\n\nActivates a currently inactive watch."] #[derive(Clone, Debug)] pub struct WatcherActivateWatch<'a, 'b, B> { transport: &'a Transport, @@ -370,7 +370,7 @@ impl<'b> WatcherDeactivateWatchParts<'b> { } } } -#[doc = "Builder for the [Watcher Deactivate Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/watcher-api-deactivate-watch.html)\n\nDeactivates a currently active watch."] +#[doc = "Builder for the [Watcher Deactivate Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/watcher-api-deactivate-watch.html)\n\nDeactivates a currently active watch."] #[derive(Clone, Debug)] pub struct WatcherDeactivateWatch<'a, 'b, B> { transport: &'a Transport, @@ -511,7 +511,7 @@ impl<'b> WatcherDeleteWatchParts<'b> { } } } -#[doc = "Builder for the [Watcher Delete Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/watcher-api-delete-watch.html)\n\nRemoves a watch from Watcher."] +#[doc = "Builder for the [Watcher Delete Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/watcher-api-delete-watch.html)\n\nRemoves a watch from Watcher."] #[derive(Clone, Debug)] pub struct WatcherDeleteWatch<'a, 'b> { transport: &'a Transport, @@ -633,7 +633,7 @@ impl<'b> WatcherExecuteWatchParts<'b> { } } } -#[doc = "Builder for the [Watcher Execute Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/watcher-api-execute-watch.html)\n\nForces the execution of a stored watch."] +#[doc = "Builder for the [Watcher Execute Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/watcher-api-execute-watch.html)\n\nForces the execution of a stored watch."] #[derive(Clone, Debug)] pub struct WatcherExecuteWatch<'a, 'b, B> { transport: &'a Transport, @@ -778,7 +778,7 @@ impl WatcherGetSettingsParts { } } } -#[doc = "Builder for the [Watcher Get Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/watcher-api-get-settings.html)\n\nRetrieve settings for the watcher system index"] +#[doc = "Builder for the [Watcher Get Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/watcher-api-get-settings.html)\n\nRetrieve settings for the watcher system index"] #[derive(Clone, Debug)] pub struct WatcherGetSettings<'a, 'b> { transport: &'a Transport, @@ -905,7 +905,7 @@ impl<'b> WatcherGetWatchParts<'b> { } } } -#[doc = "Builder for the [Watcher Get Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/watcher-api-get-watch.html)\n\nRetrieves a watch by its ID."] +#[doc = "Builder for the [Watcher Get Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/watcher-api-get-watch.html)\n\nRetrieves a watch by its ID."] #[derive(Clone, Debug)] pub struct WatcherGetWatch<'a, 'b> { transport: &'a Transport, @@ -1023,7 +1023,7 @@ impl<'b> WatcherPutWatchParts<'b> { } } } -#[doc = "Builder for the [Watcher Put Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/watcher-api-put-watch.html)\n\nCreates a new watch, or updates an existing one."] +#[doc = "Builder for the [Watcher Put Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/watcher-api-put-watch.html)\n\nCreates a new watch, or updates an existing one."] #[derive(Clone, Debug)] pub struct WatcherPutWatch<'a, 'b, B> { transport: &'a Transport, @@ -1198,7 +1198,7 @@ impl WatcherQueryWatchesParts { } } } -#[doc = "Builder for the [Watcher Query Watches API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/watcher-api-query-watches.html)\n\nRetrieves stored watches."] +#[doc = "Builder for the [Watcher Query Watches API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/watcher-api-query-watches.html)\n\nRetrieves stored watches."] #[derive(Clone, Debug)] pub struct WatcherQueryWatches<'a, 'b, B> { transport: &'a Transport, @@ -1336,7 +1336,7 @@ impl WatcherStartParts { } } } -#[doc = "Builder for the [Watcher Start API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/watcher-api-start.html)\n\nStarts Watcher if it is not already running."] +#[doc = "Builder for the [Watcher Start API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/watcher-api-start.html)\n\nStarts Watcher if it is not already running."] #[derive(Clone, Debug)] pub struct WatcherStart<'a, 'b, B> { transport: &'a Transport, @@ -1492,7 +1492,7 @@ impl<'b> WatcherStatsParts<'b> { } } } -#[doc = "Builder for the [Watcher Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/watcher-api-stats.html)\n\nRetrieves the current Watcher metrics."] +#[doc = "Builder for the [Watcher Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/watcher-api-stats.html)\n\nRetrieves the current Watcher metrics."] #[derive(Clone, Debug)] pub struct WatcherStats<'a, 'b> { transport: &'a Transport, @@ -1623,7 +1623,7 @@ impl WatcherStopParts { } } } -#[doc = "Builder for the [Watcher Stop API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/watcher-api-stop.html)\n\nStops Watcher if it is running."] +#[doc = "Builder for the [Watcher Stop API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/watcher-api-stop.html)\n\nStops Watcher if it is running."] #[derive(Clone, Debug)] pub struct WatcherStop<'a, 'b, B> { transport: &'a Transport, @@ -1768,7 +1768,7 @@ impl WatcherUpdateSettingsParts { } } } -#[doc = "Builder for the [Watcher Update Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/watcher-api-update-settings.html)\n\nUpdate settings for the watcher system index"] +#[doc = "Builder for the [Watcher Update Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/watcher-api-update-settings.html)\n\nUpdate settings for the watcher system index"] #[derive(Clone, Debug)] pub struct WatcherUpdateSettings<'a, 'b, B> { transport: &'a Transport, @@ -1921,67 +1921,67 @@ impl<'a> Watcher<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Watcher Ack Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/watcher-api-ack-watch.html)\n\nAcknowledges a watch, manually throttling the execution of the watch's actions."] + #[doc = "[Watcher Ack Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/watcher-api-ack-watch.html)\n\nAcknowledges a watch, manually throttling the execution of the watch's actions."] pub fn ack_watch<'b>(&'a self, parts: WatcherAckWatchParts<'b>) -> WatcherAckWatch<'a, 'b, ()> { WatcherAckWatch::new(self.transport(), parts) } - #[doc = "[Watcher Activate Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/watcher-api-activate-watch.html)\n\nActivates a currently inactive watch."] + #[doc = "[Watcher Activate Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/watcher-api-activate-watch.html)\n\nActivates a currently inactive watch."] pub fn activate_watch<'b>( &'a self, parts: WatcherActivateWatchParts<'b>, ) -> WatcherActivateWatch<'a, 'b, ()> { WatcherActivateWatch::new(self.transport(), parts) } - #[doc = "[Watcher Deactivate Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/watcher-api-deactivate-watch.html)\n\nDeactivates a currently active watch."] + #[doc = "[Watcher Deactivate Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/watcher-api-deactivate-watch.html)\n\nDeactivates a currently active watch."] pub fn deactivate_watch<'b>( &'a self, parts: WatcherDeactivateWatchParts<'b>, ) -> WatcherDeactivateWatch<'a, 'b, ()> { WatcherDeactivateWatch::new(self.transport(), parts) } - #[doc = "[Watcher Delete Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/watcher-api-delete-watch.html)\n\nRemoves a watch from Watcher."] + #[doc = "[Watcher Delete Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/watcher-api-delete-watch.html)\n\nRemoves a watch from Watcher."] pub fn delete_watch<'b>( &'a self, parts: WatcherDeleteWatchParts<'b>, ) -> WatcherDeleteWatch<'a, 'b> { WatcherDeleteWatch::new(self.transport(), parts) } - #[doc = "[Watcher Execute Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/watcher-api-execute-watch.html)\n\nForces the execution of a stored watch."] + #[doc = "[Watcher Execute Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/watcher-api-execute-watch.html)\n\nForces the execution of a stored watch."] pub fn execute_watch<'b>( &'a self, parts: WatcherExecuteWatchParts<'b>, ) -> WatcherExecuteWatch<'a, 'b, ()> { WatcherExecuteWatch::new(self.transport(), parts) } - #[doc = "[Watcher Get Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/watcher-api-get-settings.html)\n\nRetrieve settings for the watcher system index"] + #[doc = "[Watcher Get Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/watcher-api-get-settings.html)\n\nRetrieve settings for the watcher system index"] pub fn get_settings<'b>(&'a self) -> WatcherGetSettings<'a, 'b> { WatcherGetSettings::new(self.transport()) } - #[doc = "[Watcher Get Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/watcher-api-get-watch.html)\n\nRetrieves a watch by its ID."] + #[doc = "[Watcher Get Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/watcher-api-get-watch.html)\n\nRetrieves a watch by its ID."] pub fn get_watch<'b>(&'a self, parts: WatcherGetWatchParts<'b>) -> WatcherGetWatch<'a, 'b> { WatcherGetWatch::new(self.transport(), parts) } - #[doc = "[Watcher Put Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/watcher-api-put-watch.html)\n\nCreates a new watch, or updates an existing one."] + #[doc = "[Watcher Put Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/watcher-api-put-watch.html)\n\nCreates a new watch, or updates an existing one."] pub fn put_watch<'b>(&'a self, parts: WatcherPutWatchParts<'b>) -> WatcherPutWatch<'a, 'b, ()> { WatcherPutWatch::new(self.transport(), parts) } - #[doc = "[Watcher Query Watches API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/watcher-api-query-watches.html)\n\nRetrieves stored watches."] + #[doc = "[Watcher Query Watches API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/watcher-api-query-watches.html)\n\nRetrieves stored watches."] pub fn query_watches<'b>(&'a self) -> WatcherQueryWatches<'a, 'b, ()> { WatcherQueryWatches::new(self.transport()) } - #[doc = "[Watcher Start API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/watcher-api-start.html)\n\nStarts Watcher if it is not already running."] + #[doc = "[Watcher Start API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/watcher-api-start.html)\n\nStarts Watcher if it is not already running."] pub fn start<'b>(&'a self) -> WatcherStart<'a, 'b, ()> { WatcherStart::new(self.transport()) } - #[doc = "[Watcher Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/watcher-api-stats.html)\n\nRetrieves the current Watcher metrics."] + #[doc = "[Watcher Stats API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/watcher-api-stats.html)\n\nRetrieves the current Watcher metrics."] pub fn stats<'b>(&'a self, parts: WatcherStatsParts<'b>) -> WatcherStats<'a, 'b> { WatcherStats::new(self.transport(), parts) } - #[doc = "[Watcher Stop API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/watcher-api-stop.html)\n\nStops Watcher if it is running."] + #[doc = "[Watcher Stop API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/watcher-api-stop.html)\n\nStops Watcher if it is running."] pub fn stop<'b>(&'a self) -> WatcherStop<'a, 'b, ()> { WatcherStop::new(self.transport()) } - #[doc = "[Watcher Update Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/watcher-api-update-settings.html)\n\nUpdate settings for the watcher system index"] + #[doc = "[Watcher Update Settings API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/watcher-api-update-settings.html)\n\nUpdate settings for the watcher system index"] pub fn update_settings<'b>(&'a self) -> WatcherUpdateSettings<'a, 'b, ()> { WatcherUpdateSettings::new(self.transport()) } diff --git a/elasticsearch/src/xpack.rs b/elasticsearch/src/xpack.rs index 94d79ebc..d36da889 100644 --- a/elasticsearch/src/xpack.rs +++ b/elasticsearch/src/xpack.rs @@ -58,7 +58,7 @@ impl XpackInfoParts { } } } -#[doc = "Builder for the [Xpack Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/info-api.html)\n\nRetrieves information about the installed X-Pack features."] +#[doc = "Builder for the [Xpack Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/info-api.html)\n\nRetrieves information about the installed X-Pack features."] #[derive(Clone, Debug)] pub struct XpackInfo<'a, 'b> { transport: &'a Transport, @@ -189,7 +189,7 @@ impl XpackUsageParts { } } } -#[doc = "Builder for the [Xpack Usage API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/usage-api.html)\n\nRetrieves usage information about the installed X-Pack features."] +#[doc = "Builder for the [Xpack Usage API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/usage-api.html)\n\nRetrieves usage information about the installed X-Pack features."] #[derive(Clone, Debug)] pub struct XpackUsage<'a, 'b> { transport: &'a Transport, @@ -308,11 +308,11 @@ impl<'a> Xpack<'a> { pub fn transport(&self) -> &Transport { self.transport } - #[doc = "[Xpack Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/info-api.html)\n\nRetrieves information about the installed X-Pack features."] + #[doc = "[Xpack Info API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/info-api.html)\n\nRetrieves information about the installed X-Pack features."] pub fn info<'b>(&'a self) -> XpackInfo<'a, 'b> { XpackInfo::new(self.transport()) } - #[doc = "[Xpack Usage API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/usage-api.html)\n\nRetrieves usage information about the installed X-Pack features."] + #[doc = "[Xpack Usage API](https://www.elastic.co/guide/en/elasticsearch/reference/9.1/usage-api.html)\n\nRetrieves usage information about the installed X-Pack features."] pub fn usage<'b>(&'a self) -> XpackUsage<'a, 'b> { XpackUsage::new(self.transport()) } diff --git a/examples/wasm_fetch/Cargo.toml b/examples/wasm_fetch/Cargo.toml index 9c731ad4..13e5a6d5 100644 --- a/examples/wasm_fetch/Cargo.toml +++ b/examples/wasm_fetch/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "example_wasm_fetch" -version = "0.1.0" +version = "9.1.0-alpha.1" publish = false authors = ["Elastic and Contributors"] edition = "2021" diff --git a/xtask/Cargo.toml b/xtask/Cargo.toml index b2658c39..7b4ea2b7 100644 --- a/xtask/Cargo.toml +++ b/xtask/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "xtask" -version = "9.0.0-alpha.1" +version = "9.1.0-alpha.1" edition = "2018" publish = false diff --git a/yaml_test_runner/Cargo.toml b/yaml_test_runner/Cargo.toml index a9635c67..f64a28e0 100644 --- a/yaml_test_runner/Cargo.toml +++ b/yaml_test_runner/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "yaml_test_runner" -version = "9.0.0-alpha.1" +version = "9.1.0-alpha.1" publish = false edition = "2018" authors = ["Elastic and Contributors"]