From 135c8b5804f32aa1740af0e65d920fa0150efe91 Mon Sep 17 00:00:00 2001 From: Sylvain Wallez Date: Fri, 12 Feb 2021 14:02:08 +0100 Subject: [PATCH 1/6] Generate beta and experimental APIs, guarded by Cargo features --- .../generator/code_gen/namespace_clients.rs | 20 +++- .../src/generator/code_gen/params.rs | 3 + .../code_gen/request/request_builder.rs | 10 ++ api_generator/src/generator/code_gen/root.rs | 1 + .../generator/code_gen/url/enum_builder.rs | 4 +- api_generator/src/generator/mod.rs | 105 +++++++++++++++--- elasticsearch/Cargo.toml | 4 + yaml_test_runner/Cargo.toml | 2 +- 8 files changed, 124 insertions(+), 25 deletions(-) diff --git a/api_generator/src/generator/code_gen/namespace_clients.rs b/api_generator/src/generator/code_gen/namespace_clients.rs index b8e3e0c6..ff40a3c0 100644 --- a/api_generator/src/generator/code_gen/namespace_clients.rs +++ b/api_generator/src/generator/code_gen/namespace_clients.rs @@ -28,12 +28,15 @@ use std::path::PathBuf; pub fn generate(api: &Api, docs_dir: &PathBuf) -> Result, failure::Error> { let mut output = Vec::new(); - for (namespace, namespace_methods) in &api.namespaces { + for (namespace_name, namespace) in &api.namespaces { let mut tokens = Tokens::new(); + if let Some(attr) = namespace.stability.inner_cfg_attr() { + tokens.append(attr); + } tokens.append(use_declarations()); - let namespace_pascal_case = namespace.to_pascal_case(); - let namespace_replaced_pascal_case = namespace.replace("_", " ").to_pascal_case(); + let namespace_pascal_case = namespace_name.to_pascal_case(); + let namespace_replaced_pascal_case = namespace_name.replace("_", " ").to_pascal_case(); let namespace_client_name = ident(&namespace_pascal_case); let name_for_docs = match namespace_replaced_pascal_case.as_ref() { "Ccr" => "Cross Cluster Replication", @@ -53,9 +56,10 @@ pub fn generate(api: &Api, docs_dir: &PathBuf) -> Result, "Creates a new instance of [{}]", &namespace_pascal_case )); - let namespace_name = ident(namespace.to_string()); + let namespace_name = ident(namespace_name.to_string()); - let (builders, methods): (Vec, Vec) = namespace_methods + let (builders, methods): (Vec, Vec) = namespace + .endpoints() .iter() .map(|(name, endpoint)| { let builder_name = format!("{}{}", &namespace_pascal_case, name.to_pascal_case()); @@ -72,14 +76,17 @@ pub fn generate(api: &Api, docs_dir: &PathBuf) -> Result, }) .unzip(); + let cfg_attr = namespace.stability.outer_cfg_attr(); tokens.append(quote!( #(#builders)* #namespace_doc + #cfg_attr pub struct #namespace_client_name<'a> { transport: &'a Transport } + #cfg_attr impl<'a> #namespace_client_name<'a> { #new_namespace_client_doc pub fn new(transport: &'a Transport) -> Self { @@ -95,6 +102,7 @@ pub fn generate(api: &Api, docs_dir: &PathBuf) -> Result, #(#methods)* } + #cfg_attr impl Elasticsearch { #namespace_fn_doc pub fn #namespace_name(&self) -> #namespace_client_name { @@ -104,7 +112,7 @@ pub fn generate(api: &Api, docs_dir: &PathBuf) -> Result, )); let generated = tokens.to_string(); - output.push((namespace.to_string(), generated)); + output.push((namespace_name.to_string(), generated)); } Ok(output) diff --git a/api_generator/src/generator/code_gen/params.rs b/api_generator/src/generator/code_gen/params.rs index 169d4e0b..266e2146 100644 --- a/api_generator/src/generator/code_gen/params.rs +++ b/api_generator/src/generator/code_gen/params.rs @@ -64,7 +64,10 @@ fn generate_param(tokens: &mut Tokens, e: &ApiEnum) { None => None, }; + let cfg_attr = e.stability.outer_cfg_attr(); + let generated_enum_tokens = quote!( + #cfg_attr #[derive(Debug, PartialEq, Deserialize, Serialize, Clone, Copy)] #doc pub enum #name { diff --git a/api_generator/src/generator/code_gen/request/request_builder.rs b/api_generator/src/generator/code_gen/request/request_builder.rs index be1cb973..be123113 100644 --- a/api_generator/src/generator/code_gen/request/request_builder.rs +++ b/api_generator/src/generator/code_gen/request/request_builder.rs @@ -626,19 +626,25 @@ impl<'a> RequestBuilder<'a> { api_name_for_docs )); + let cfg_attr = endpoint.stability.outer_cfg_attr(); + quote! { + #cfg_attr #enum_struct + #cfg_attr #enum_impl #[derive(Clone, Debug)] #[doc = #builder_doc] + #cfg_attr pub struct #builder_expr { transport: &'a Transport, parts: #enum_ty, #(#fields),*, } + #cfg_attr #builder_impl { #new_fn #(#builder_fns)* @@ -669,6 +675,8 @@ impl<'a> RequestBuilder<'a> { is_root_method: bool, enum_builder: &EnumBuilder, ) -> Tokens { + let cfg_attr = endpoint.stability.outer_cfg_attr(); + let builder_ident = ident(builder_name); let (fn_name, builder_ident_ret) = { @@ -726,6 +734,7 @@ impl<'a> RequestBuilder<'a> { if enum_builder.contains_single_parameterless_part() { quote!( #method_doc + #cfg_attr pub fn #fn_name(&'a self) -> #builder_ident_ret { #builder_ident::new(#clone_expr) } @@ -734,6 +743,7 @@ impl<'a> RequestBuilder<'a> { let (enum_ty, _, _) = enum_builder.clone().build(); quote!( #method_doc + #cfg_attr pub fn #fn_name(&'a self, parts: #enum_ty) -> #builder_ident_ret { #builder_ident::new(#clone_expr, parts) } diff --git a/api_generator/src/generator/code_gen/root.rs b/api_generator/src/generator/code_gen/root.rs index db36284e..635102de 100644 --- a/api_generator/src/generator/code_gen/root.rs +++ b/api_generator/src/generator/code_gen/root.rs @@ -32,6 +32,7 @@ pub fn generate(api: &Api, docs_dir: &PathBuf) -> Result // AST for builder structs and methods let (builders, methods): (Vec, Vec) = api .root + .endpoints() .iter() .map(|(name, endpoint)| { let builder_name = name.to_pascal_case(); diff --git a/api_generator/src/generator/code_gen/url/enum_builder.rs b/api_generator/src/generator/code_gen/url/enum_builder.rs index 03ac8944..4483906a 100644 --- a/api_generator/src/generator/code_gen/url/enum_builder.rs +++ b/api_generator/src/generator/code_gen/url/enum_builder.rs @@ -311,7 +311,7 @@ mod tests { #![cfg_attr(rustfmt, rustfmt_skip)] use super::*; - use crate::generator::{Url, Path, HttpMethod, Body, Deprecated, Type, TypeKind, Documentation, ast_eq}; + use crate::generator::{Url, Path, HttpMethod, Body, Deprecated, Type, TypeKind, Documentation, ast_eq, Stability}; use std::collections::BTreeMap; use crate::generator::code_gen::url::url_builder::PathString; @@ -326,7 +326,7 @@ mod tests { description: None, url: None, }, - stability: "stable".to_string(), + stability: Stability::Stable, url: Url { paths: vec![ Path { diff --git a/api_generator/src/generator/mod.rs b/api_generator/src/generator/mod.rs index 4e38494a..88e0f6fc 100644 --- a/api_generator/src/generator/mod.rs +++ b/api_generator/src/generator/mod.rs @@ -34,7 +34,8 @@ use std::{ }; #[cfg(test)] -use quote::{ToTokens, Tokens}; +use quote::ToTokens; +use quote::Tokens; use semver::Version; use void::Void; @@ -63,9 +64,9 @@ pub struct Api { /// parameters that are common to all API methods pub common_params: BTreeMap, /// root API methods e.g. Search, Index - pub root: BTreeMap, + pub root: ApiNamespace, /// namespace client methods e.g. Indices.Create, Ml.PutJob - pub namespaces: BTreeMap>, + pub namespaces: BTreeMap, /// enums in parameters pub enums: Vec, } @@ -79,9 +80,9 @@ impl Api { pub fn endpoint_for_api_call(&self, api_call: &str) -> Option<&ApiEndpoint> { let api_call_path: Vec<&str> = api_call.split('.').collect(); match api_call_path.len() { - 1 => self.root.get(api_call_path[0]), + 1 => self.root.endpoints().get(api_call_path[0]), _ => match self.namespaces.get(api_call_path[0]) { - Some(namespace) => namespace.get(api_call_path[1]), + Some(namespace) => namespace.endpoints().get(api_call_path[1]), None => None, }, } @@ -347,13 +348,49 @@ where deserializer.deserialize_any(StringOrStruct(PhantomData)) } +/// Stability level of an API endpoint. Ordering defines increasing stability level, i.e. +/// `beta` is "more stable" than `experimental`. +#[derive(Debug, Eq, PartialEq, Deserialize, Clone, Copy, Ord, PartialOrd)] +pub enum Stability { + #[serde(rename = "experimental")] + Experimental, + #[serde(rename = "beta")] + Beta, + #[serde(rename = "stable")] + Stable, +} + +impl Stability { + pub fn feature_name(self) -> Option<&'static str> { + match self { + Stability::Experimental => Some("experimental-apis"), + Stability::Beta => Some("beta-apis"), + Stability::Stable => None, + } + } + + /// Returns the (optional) feature configuration for this stability level as an outer + /// attribute, for use e.g. on function definitions. + pub fn outer_cfg_attr(self) -> Option { + let feature_name = self.feature_name(); + feature_name.map(|name| quote!(#[cfg(feature = #name)])) + } + + /// Returns the (optional) feature configuration for this stability level as an inner + /// attribute, for use e.g. at the top of a module source file + pub fn inner_cfg_attr(self) -> Option { + let feature_name = self.feature_name(); + feature_name.map(|name| quote!(#![cfg(feature = #name)])) + } +} + /// An API endpoint defined in the REST API specs #[derive(Debug, PartialEq, Deserialize, Clone)] pub struct ApiEndpoint { pub full_name: Option, #[serde(deserialize_with = "string_or_struct")] documentation: Documentation, - pub stability: String, + pub stability: Stability, pub url: Url, #[serde(default = "BTreeMap::new")] pub params: BTreeMap, @@ -382,6 +419,34 @@ impl ApiEndpoint { } } +pub struct ApiNamespace { + stability: Stability, + endpoints: BTreeMap, +} + +impl ApiNamespace { + pub fn new() -> Self { + ApiNamespace { + stability: Stability::Experimental, // will grow in stability as we add endpoints + endpoints: BTreeMap::new(), + } + } + + pub fn add(&mut self, name: String, endpoint: ApiEndpoint) { + // Stability of a namespace is that of the most stable of its endpoints + self.stability = Stability::max(self.stability, endpoint.stability); + self.endpoints.insert(name, endpoint); + } + + pub fn stability(&self) -> Stability { + self.stability + } + + pub fn endpoints(&self) -> &BTreeMap { + &self.endpoints + } +} + /// Common parameters accepted by all API endpoints #[derive(Debug, PartialEq, Deserialize, Clone)] pub struct Common { @@ -396,6 +461,7 @@ pub struct ApiEnum { pub name: String, pub description: Option, pub values: Vec, + pub stability: Stability, // inherited from the declaring API } impl Hash for ApiEnum { @@ -499,7 +565,7 @@ pub use bulk::*; /// Reads Api from a directory of REST Api specs pub fn read_api(branch: &str, download_dir: &PathBuf) -> Result { let paths = fs::read_dir(download_dir)?; - let mut namespaces = BTreeMap::new(); + let mut namespaces = BTreeMap::::new(); let mut enums: HashSet = HashSet::new(); let mut common_params = BTreeMap::new(); let root_key = "root"; @@ -517,11 +583,6 @@ pub fn read_api(branch: &str, download_dir: &PathBuf) -> Result = name.splitn(2, '.').collect(); let (namespace, method_name) = match name_parts.len() { len if len > 1 => (name_parts[0].to_string(), name_parts[1].to_string()), @@ -545,19 +606,20 @@ pub fn read_api(branch: &str, download_dir: &PathBuf) -> Result(expected: Tokens, actual: T) { assert_eq!(expected, quote!(#actual)); } + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn stability_ordering() { + assert!(Stability::Beta > Stability::Experimental); + assert!(Stability::Stable > Stability::Beta); + } +} diff --git a/elasticsearch/Cargo.toml b/elasticsearch/Cargo.toml index 3de71fe3..05416c5f 100644 --- a/elasticsearch/Cargo.toml +++ b/elasticsearch/Cargo.toml @@ -17,6 +17,10 @@ all-features = true [features] default = ["native-tls"] +# beta and experimental APIs +beta-apis = [] +experimental-apis = ["beta-apis"] + # optional TLS native-tls = ["reqwest/native-tls"] rustls-tls = ["reqwest/rustls-tls"] diff --git a/yaml_test_runner/Cargo.toml b/yaml_test_runner/Cargo.toml index a97a4136..39ad80fb 100644 --- a/yaml_test_runner/Cargo.toml +++ b/yaml_test_runner/Cargo.toml @@ -9,7 +9,7 @@ repository = "https://github.com/elastic/elasticsearch-rs" license = "Apache-2.0" [dependencies] -elasticsearch = { path = "./../elasticsearch" } +elasticsearch = { path = "./../elasticsearch", features = ["experimental-apis"]} api_generator = { path = "./../api_generator" } base64 = "^0.11" From 47064c2758777fd093c39ce85719ef1844c006a5 Mon Sep 17 00:00:00 2001 From: Sylvain Wallez Date: Fri, 12 Feb 2021 16:35:34 +0100 Subject: [PATCH 2/6] Update specs & generated code --- .../rest_specs/async_search.delete.json | 4 + .../rest_specs/async_search.get.json | 4 + .../rest_specs/async_search.status.json | 29 + .../rest_specs/async_search.submit.json | 5 + ...autoscaling.delete_autoscaling_policy.json | 8 +- .../autoscaling.get_autoscaling_capacity.json | 8 +- .../autoscaling.get_autoscaling_policy.json | 8 +- .../autoscaling.put_autoscaling_policy.json | 9 +- api_generator/rest_specs/bulk.json | 5 + api_generator/rest_specs/cat.aliases.json | 4 + api_generator/rest_specs/cat.allocation.json | 4 + api_generator/rest_specs/cat.count.json | 4 + api_generator/rest_specs/cat.fielddata.json | 4 + api_generator/rest_specs/cat.health.json | 4 + api_generator/rest_specs/cat.help.json | 4 + api_generator/rest_specs/cat.indices.json | 8 +- api_generator/rest_specs/cat.master.json | 4 + .../cat.ml_data_frame_analytics.json | 4 + .../rest_specs/cat.ml_datafeeds.json | 4 + api_generator/rest_specs/cat.ml_jobs.json | 4 + .../rest_specs/cat.ml_trained_models.json | 4 + api_generator/rest_specs/cat.nodeattrs.json | 4 + api_generator/rest_specs/cat.nodes.json | 4 + .../rest_specs/cat.pending_tasks.json | 4 + api_generator/rest_specs/cat.plugins.json | 9 + api_generator/rest_specs/cat.recovery.json | 4 + .../rest_specs/cat.repositories.json | 4 + api_generator/rest_specs/cat.segments.json | 4 + api_generator/rest_specs/cat.shards.json | 8 +- api_generator/rest_specs/cat.snapshots.json | 4 + api_generator/rest_specs/cat.tasks.json | 14 +- api_generator/rest_specs/cat.templates.json | 4 + api_generator/rest_specs/cat.thread_pool.json | 4 + api_generator/rest_specs/cat.transforms.json | 4 + .../ccr.delete_auto_follow_pattern.json | 4 + api_generator/rest_specs/ccr.follow.json | 5 + api_generator/rest_specs/ccr.follow_info.json | 4 + .../rest_specs/ccr.follow_stats.json | 4 + .../rest_specs/ccr.forget_follower.json | 5 + .../ccr.get_auto_follow_pattern.json | 4 + .../ccr.pause_auto_follow_pattern.json | 4 + .../rest_specs/ccr.pause_follow.json | 4 + .../ccr.put_auto_follow_pattern.json | 5 + .../ccr.resume_auto_follow_pattern.json | 4 + .../rest_specs/ccr.resume_follow.json | 5 + api_generator/rest_specs/ccr.stats.json | 4 + api_generator/rest_specs/ccr.unfollow.json | 4 + api_generator/rest_specs/clear_scroll.json | 5 + .../rest_specs/close_point_in_time.json | 4 + .../cluster.allocation_explain.json | 5 + .../cluster.delete_component_template.json | 6 +- ...uster.delete_voting_config_exclusions.json | 4 + .../cluster.exists_component_template.json | 6 +- .../cluster.get_component_template.json | 6 +- .../rest_specs/cluster.get_settings.json | 4 + api_generator/rest_specs/cluster.health.json | 4 + .../rest_specs/cluster.pending_tasks.json | 4 + ...cluster.post_voting_config_exclusions.json | 4 + .../cluster.put_component_template.json | 7 +- .../rest_specs/cluster.put_settings.json | 5 + .../rest_specs/cluster.remote_info.json | 4 + api_generator/rest_specs/cluster.reroute.json | 5 + api_generator/rest_specs/cluster.state.json | 4 + api_generator/rest_specs/cluster.stats.json | 4 + api_generator/rest_specs/count.json | 5 + api_generator/rest_specs/create.json | 5 + ...angling_indices.delete_dangling_index.json | 4 + ...angling_indices.import_dangling_index.json | 4 + ...angling_indices.list_dangling_indices.json | 4 + ...transform_deprecated.delete_transform.json | 4 + ...me_transform_deprecated.get_transform.json | 4 + ...nsform_deprecated.get_transform_stats.json | 4 + ...ransform_deprecated.preview_transform.json | 5 + ...me_transform_deprecated.put_transform.json | 5 + ..._transform_deprecated.start_transform.json | 4 + ...e_transform_deprecated.stop_transform.json | 4 + ...transform_deprecated.update_transform.json | 5 + api_generator/rest_specs/delete.json | 4 + api_generator/rest_specs/delete_by_query.json | 5 + .../delete_by_query_rethrottle.json | 4 + api_generator/rest_specs/delete_script.json | 4 + .../rest_specs/enrich.delete_policy.json | 4 + .../rest_specs/enrich.execute_policy.json | 4 + .../rest_specs/enrich.get_policy.json | 4 + .../rest_specs/enrich.put_policy.json | 5 + api_generator/rest_specs/enrich.stats.json | 4 + api_generator/rest_specs/eql.delete.json | 6 +- api_generator/rest_specs/eql.get.json | 6 +- api_generator/rest_specs/eql.get_status.json | 31 + api_generator/rest_specs/eql.search.json | 8 +- api_generator/rest_specs/exists.json | 4 + api_generator/rest_specs/exists_source.json | 4 + api_generator/rest_specs/explain.json | 5 + api_generator/rest_specs/field_caps.json | 4 + api_generator/rest_specs/get.json | 4 + api_generator/rest_specs/get_script.json | 4 + .../rest_specs/get_script_context.json | 4 + .../rest_specs/get_script_languages.json | 4 + api_generator/rest_specs/get_source.json | 4 + api_generator/rest_specs/graph.explore.json | 5 + .../rest_specs/ilm.delete_lifecycle.json | 4 + .../rest_specs/ilm.explain_lifecycle.json | 4 + .../rest_specs/ilm.get_lifecycle.json | 4 + api_generator/rest_specs/ilm.get_status.json | 4 + .../rest_specs/ilm.move_to_step.json | 5 + .../rest_specs/ilm.put_lifecycle.json | 5 + .../rest_specs/ilm.remove_policy.json | 4 + api_generator/rest_specs/ilm.retry.json | 4 + api_generator/rest_specs/ilm.start.json | 4 + api_generator/rest_specs/ilm.stop.json | 4 + api_generator/rest_specs/index.json | 5 + .../rest_specs/indices.add_block.json | 4 + api_generator/rest_specs/indices.analyze.json | 5 + .../rest_specs/indices.clear_cache.json | 4 + api_generator/rest_specs/indices.clone.json | 5 + api_generator/rest_specs/indices.close.json | 4 + api_generator/rest_specs/indices.create.json | 5 + .../indices.create_data_stream.json | 4 + .../indices.data_streams_stats.json | 4 + api_generator/rest_specs/indices.delete.json | 4 + .../rest_specs/indices.delete_alias.json | 4 + .../indices.delete_data_stream.json | 19 +- .../indices.delete_index_template.json | 6 +- .../rest_specs/indices.delete_template.json | 4 + api_generator/rest_specs/indices.exists.json | 4 + .../rest_specs/indices.exists_alias.json | 4 + .../indices.exists_index_template.json | 6 +- .../rest_specs/indices.exists_template.json | 4 + .../rest_specs/indices.exists_type.json | 4 + api_generator/rest_specs/indices.flush.json | 4 + .../rest_specs/indices.forcemerge.json | 4 + api_generator/rest_specs/indices.freeze.json | 4 + api_generator/rest_specs/indices.get.json | 4 + .../rest_specs/indices.get_alias.json | 4 + .../rest_specs/indices.get_data_stream.json | 16 + .../rest_specs/indices.get_field_mapping.json | 4 + .../indices.get_index_template.json | 6 +- .../rest_specs/indices.get_mapping.json | 4 + .../rest_specs/indices.get_settings.json | 4 + .../rest_specs/indices.get_template.json | 4 + .../rest_specs/indices.get_upgrade.json | 61 - .../indices.migrate_to_data_stream.json | 31 + api_generator/rest_specs/indices.open.json | 4 + .../indices.promote_data_stream.json | 31 + .../rest_specs/indices.put_alias.json | 5 + .../indices.put_index_template.json | 7 +- .../rest_specs/indices.put_mapping.json | 5 + .../rest_specs/indices.put_settings.json | 5 + .../rest_specs/indices.put_template.json | 5 + .../rest_specs/indices.recovery.json | 4 + api_generator/rest_specs/indices.refresh.json | 4 + .../indices.reload_search_analyzers.json | 4 + .../rest_specs/indices.resolve_index.json | 4 + .../rest_specs/indices.rollover.json | 5 + .../rest_specs/indices.segments.json | 4 + .../rest_specs/indices.shard_stores.json | 4 + api_generator/rest_specs/indices.shrink.json | 5 + .../indices.simulate_index_template.json | 7 +- .../rest_specs/indices.simulate_template.json | 7 +- api_generator/rest_specs/indices.split.json | 5 + api_generator/rest_specs/indices.stats.json | 10 +- .../rest_specs/indices.unfreeze.json | 4 + .../rest_specs/indices.update_aliases.json | 5 + api_generator/rest_specs/indices.upgrade.json | 69 - .../rest_specs/indices.validate_query.json | 5 + api_generator/rest_specs/info.json | 4 + .../rest_specs/ingest.delete_pipeline.json | 4 + .../rest_specs/ingest.get_pipeline.json | 4 + .../rest_specs/ingest.processor_grok.json | 4 + .../rest_specs/ingest.put_pipeline.json | 5 + api_generator/rest_specs/ingest.simulate.json | 5 + api_generator/rest_specs/license.delete.json | 4 + api_generator/rest_specs/license.get.json | 4 + .../rest_specs/license.get_basic_status.json | 4 + .../rest_specs/license.get_trial_status.json | 4 + api_generator/rest_specs/license.post.json | 5 + .../rest_specs/license.post_start_basic.json | 4 + .../rest_specs/license.post_start_trial.json | 4 + .../rest_specs/logstash.delete_pipeline.json | 28 + .../rest_specs/logstash.get_pipeline.json | 28 + .../rest_specs/logstash.put_pipeline.json | 34 + api_generator/rest_specs/mget.json | 5 + .../rest_specs/migration.deprecations.json | 4 + api_generator/rest_specs/ml.close_job.json | 5 + .../rest_specs/ml.delete_calendar.json | 4 + .../rest_specs/ml.delete_calendar_event.json | 4 + .../rest_specs/ml.delete_calendar_job.json | 4 + .../ml.delete_data_frame_analytics.json | 4 + .../rest_specs/ml.delete_datafeed.json | 4 + .../rest_specs/ml.delete_expired_data.json | 4 + .../rest_specs/ml.delete_filter.json | 4 + .../rest_specs/ml.delete_forecast.json | 4 + api_generator/rest_specs/ml.delete_job.json | 4 + .../rest_specs/ml.delete_model_snapshot.json | 4 + .../rest_specs/ml.delete_trained_model.json | 4 + .../rest_specs/ml.estimate_model_memory.json | 5 + .../rest_specs/ml.evaluate_data_frame.json | 5 + .../ml.explain_data_frame_analytics.json | 5 + api_generator/rest_specs/ml.flush_job.json | 5 + api_generator/rest_specs/ml.forecast.json | 4 + api_generator/rest_specs/ml.get_buckets.json | 5 + .../rest_specs/ml.get_calendar_events.json | 4 + .../rest_specs/ml.get_calendars.json | 5 + .../rest_specs/ml.get_categories.json | 5 + .../ml.get_data_frame_analytics.json | 4 + .../ml.get_data_frame_analytics_stats.json | 4 + .../rest_specs/ml.get_datafeed_stats.json | 4 + .../rest_specs/ml.get_datafeeds.json | 4 + api_generator/rest_specs/ml.get_filters.json | 4 + .../rest_specs/ml.get_influencers.json | 5 + .../rest_specs/ml.get_job_stats.json | 4 + api_generator/rest_specs/ml.get_jobs.json | 4 + .../rest_specs/ml.get_model_snapshots.json | 5 + .../rest_specs/ml.get_overall_buckets.json | 5 + api_generator/rest_specs/ml.get_records.json | 5 + .../rest_specs/ml.get_trained_models.json | 4 + .../ml.get_trained_models_stats.json | 4 + api_generator/rest_specs/ml.info.json | 4 + api_generator/rest_specs/ml.open_job.json | 4 + .../rest_specs/ml.post_calendar_events.json | 5 + api_generator/rest_specs/ml.post_data.json | 5 + .../rest_specs/ml.preview_datafeed.json | 4 + api_generator/rest_specs/ml.put_calendar.json | 5 + .../rest_specs/ml.put_calendar_job.json | 4 + .../ml.put_data_frame_analytics.json | 5 + api_generator/rest_specs/ml.put_datafeed.json | 5 + api_generator/rest_specs/ml.put_filter.json | 5 + api_generator/rest_specs/ml.put_job.json | 5 + .../rest_specs/ml.put_trained_model.json | 5 + .../rest_specs/ml.revert_model_snapshot.json | 5 + .../rest_specs/ml.set_upgrade_mode.json | 4 + .../ml.start_data_frame_analytics.json | 5 + .../rest_specs/ml.start_datafeed.json | 5 + .../ml.stop_data_frame_analytics.json | 5 + .../rest_specs/ml.stop_datafeed.json | 4 + .../ml.update_data_frame_analytics.json | 5 + .../rest_specs/ml.update_datafeed.json | 5 + .../rest_specs/ml.update_filter.json | 5 + api_generator/rest_specs/ml.update_job.json | 5 + .../rest_specs/ml.update_model_snapshot.json | 5 + .../rest_specs/ml.upgrade_job_snapshot.json | 45 + api_generator/rest_specs/ml.validate.json | 5 + .../rest_specs/ml.validate_detector.json | 5 + api_generator/rest_specs/monitoring.bulk.json | 5 + api_generator/rest_specs/msearch.json | 5 + .../rest_specs/msearch_template.json | 5 + api_generator/rest_specs/mtermvectors.json | 5 + .../rest_specs/nodes.hot_threads.json | 4 + api_generator/rest_specs/nodes.info.json | 4 + .../nodes.reload_secure_settings.json | 5 + api_generator/rest_specs/nodes.stats.json | 10 +- api_generator/rest_specs/nodes.usage.json | 4 + .../rest_specs/open_point_in_time.json | 4 + api_generator/rest_specs/ping.json | 4 + api_generator/rest_specs/put_script.json | 5 + api_generator/rest_specs/rank_eval.json | 5 + api_generator/rest_specs/reindex.json | 5 + .../rest_specs/reindex_rethrottle.json | 4 + .../rest_specs/render_search_template.json | 5 + .../rest_specs/rollup.delete_job.json | 4 + api_generator/rest_specs/rollup.get_jobs.json | 4 + .../rest_specs/rollup.get_rollup_caps.json | 4 + .../rollup.get_rollup_index_caps.json | 4 + api_generator/rest_specs/rollup.put_job.json | 5 + api_generator/rest_specs/rollup.rollup.json | 41 + .../rest_specs/rollup.rollup_search.json | 5 + .../rest_specs/rollup.start_job.json | 4 + api_generator/rest_specs/rollup.stop_job.json | 4 + .../rest_specs/scripts_painless_execute.json | 5 + api_generator/rest_specs/scroll.json | 5 + api_generator/rest_specs/search.json | 9 + api_generator/rest_specs/search_shards.json | 4 + api_generator/rest_specs/search_template.json | 5 + .../searchable_snapshots.clear_cache.json | 4 + .../searchable_snapshots.mount.json | 10 + .../searchable_snapshots.stats.json | 16 + .../rest_specs/security.authenticate.json | 4 + .../rest_specs/security.change_password.json | 5 + .../security.clear_api_key_cache.json | 4 + .../security.clear_cached_privileges.json | 4 + .../security.clear_cached_realms.json | 4 + .../security.clear_cached_roles.json | 4 + .../rest_specs/security.create_api_key.json | 5 + .../security.delete_privileges.json | 4 + .../rest_specs/security.delete_role.json | 4 + .../security.delete_role_mapping.json | 4 + .../rest_specs/security.delete_user.json | 4 + .../rest_specs/security.disable_user.json | 4 + .../rest_specs/security.enable_user.json | 4 + .../rest_specs/security.get_api_key.json | 4 + .../security.get_builtin_privileges.json | 4 + .../rest_specs/security.get_privileges.json | 4 + .../rest_specs/security.get_role.json | 4 + .../rest_specs/security.get_role_mapping.json | 4 + .../rest_specs/security.get_token.json | 5 + .../rest_specs/security.get_user.json | 4 + .../security.get_user_privileges.json | 4 + .../rest_specs/security.grant_api_key.json | 5 + .../rest_specs/security.has_privileges.json | 5 + .../security.invalidate_api_key.json | 5 + .../rest_specs/security.invalidate_token.json | 5 + .../rest_specs/security.put_privileges.json | 5 + .../rest_specs/security.put_role.json | 5 + .../rest_specs/security.put_role_mapping.json | 5 + .../rest_specs/security.put_user.json | 5 + .../rest_specs/slm.delete_lifecycle.json | 4 + .../rest_specs/slm.execute_lifecycle.json | 4 + .../rest_specs/slm.execute_retention.json | 4 + .../rest_specs/slm.get_lifecycle.json | 4 + api_generator/rest_specs/slm.get_stats.json | 4 + api_generator/rest_specs/slm.get_status.json | 4 + .../rest_specs/slm.put_lifecycle.json | 5 + api_generator/rest_specs/slm.start.json | 4 + api_generator/rest_specs/slm.stop.json | 4 + .../snapshot.cleanup_repository.json | 4 + api_generator/rest_specs/snapshot.clone.json | 5 + api_generator/rest_specs/snapshot.create.json | 5 + .../snapshot.create_repository.json | 5 + api_generator/rest_specs/snapshot.delete.json | 4 + .../snapshot.delete_repository.json | 4 + api_generator/rest_specs/snapshot.get.json | 4 + .../rest_specs/snapshot.get_features.json | 29 + .../rest_specs/snapshot.get_repository.json | 4 + .../rest_specs/snapshot.restore.json | 5 + api_generator/rest_specs/snapshot.status.json | 4 + .../snapshot.verify_repository.json | 4 + .../rest_specs/sql.clear_cursor.json | 5 + api_generator/rest_specs/sql.query.json | 5 + api_generator/rest_specs/sql.translate.json | 5 + .../rest_specs/ssl.certificates.json | 4 + api_generator/rest_specs/tasks.cancel.json | 6 +- api_generator/rest_specs/tasks.get.json | 6 +- api_generator/rest_specs/tasks.list.json | 6 +- api_generator/rest_specs/termvectors.json | 5 + ...son => text_structure.find_structure.json} | 11 +- .../transform.delete_transform.json | 4 + .../rest_specs/transform.get_transform.json | 4 + .../transform.get_transform_stats.json | 4 + .../transform.preview_transform.json | 5 + .../rest_specs/transform.put_transform.json | 5 + .../rest_specs/transform.start_transform.json | 4 + .../rest_specs/transform.stop_transform.json | 4 + .../transform.update_transform.json | 5 + api_generator/rest_specs/update.json | 5 + api_generator/rest_specs/update_by_query.json | 5 + .../update_by_query_rethrottle.json | 4 + .../rest_specs/watcher.ack_watch.json | 4 + .../rest_specs/watcher.activate_watch.json | 4 + .../rest_specs/watcher.deactivate_watch.json | 4 + .../rest_specs/watcher.delete_watch.json | 4 + .../rest_specs/watcher.execute_watch.json | 5 + .../rest_specs/watcher.get_watch.json | 4 + .../rest_specs/watcher.put_watch.json | 5 + .../rest_specs/watcher.query_watches.json | 30 + api_generator/rest_specs/watcher.start.json | 4 + api_generator/rest_specs/watcher.stats.json | 4 + api_generator/rest_specs/watcher.stop.json | 4 + api_generator/rest_specs/xpack.info.json | 4 + api_generator/rest_specs/xpack.usage.json | 4 + elasticsearch/src/.generated.toml | 8 + elasticsearch/src/async_search.rs | 122 + elasticsearch/src/autoscaling.rs | 578 ++ elasticsearch/src/cat.rs | 58 +- elasticsearch/src/cluster.rs | 612 ++ .../src/data_frame_transform_deprecated.rs | 1388 +++++ elasticsearch/src/eql.rs | 625 ++ elasticsearch/src/indices.rs | 3022 +++++++--- elasticsearch/src/lib.rs | 8 + elasticsearch/src/logstash.rs | 459 ++ elasticsearch/src/ml.rs | 5258 ++++++++++++----- elasticsearch/src/monitoring.rs | 249 + elasticsearch/src/nodes.rs | 4 +- elasticsearch/src/params.rs | 14 + elasticsearch/src/rollup.rs | 1401 +++++ elasticsearch/src/root/mod.rs | 599 ++ elasticsearch/src/searchable_snapshots.rs | 602 ++ elasticsearch/src/snapshot.rs | 125 + elasticsearch/src/tasks.rs | 19 + elasticsearch/src/text_structure.rs | 350 ++ elasticsearch/src/watcher.rs | 142 + 380 files changed, 15100 insertions(+), 2671 deletions(-) create mode 100644 api_generator/rest_specs/async_search.status.json create mode 100644 api_generator/rest_specs/eql.get_status.json delete mode 100644 api_generator/rest_specs/indices.get_upgrade.json create mode 100644 api_generator/rest_specs/indices.migrate_to_data_stream.json create mode 100644 api_generator/rest_specs/indices.promote_data_stream.json delete mode 100644 api_generator/rest_specs/indices.upgrade.json create mode 100644 api_generator/rest_specs/logstash.delete_pipeline.json create mode 100644 api_generator/rest_specs/logstash.get_pipeline.json create mode 100644 api_generator/rest_specs/logstash.put_pipeline.json create mode 100644 api_generator/rest_specs/ml.upgrade_job_snapshot.json create mode 100644 api_generator/rest_specs/rollup.rollup.json create mode 100644 api_generator/rest_specs/snapshot.get_features.json rename api_generator/rest_specs/{ml.find_file_structure.json => text_structure.find_structure.json} (92%) create mode 100644 api_generator/rest_specs/watcher.query_watches.json create mode 100644 elasticsearch/src/autoscaling.rs create mode 100644 elasticsearch/src/data_frame_transform_deprecated.rs create mode 100644 elasticsearch/src/eql.rs create mode 100644 elasticsearch/src/logstash.rs create mode 100644 elasticsearch/src/monitoring.rs create mode 100644 elasticsearch/src/rollup.rs create mode 100644 elasticsearch/src/searchable_snapshots.rs create mode 100644 elasticsearch/src/text_structure.rs diff --git a/api_generator/rest_specs/async_search.delete.json b/api_generator/rest_specs/async_search.delete.json index 70794f4a..7cfc1448 100644 --- a/api_generator/rest_specs/async_search.delete.json +++ b/api_generator/rest_specs/async_search.delete.json @@ -5,6 +5,10 @@ "description": "Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/async_search.get.json b/api_generator/rest_specs/async_search.get.json index 76c4650a..41cf08b6 100644 --- a/api_generator/rest_specs/async_search.get.json +++ b/api_generator/rest_specs/async_search.get.json @@ -5,6 +5,10 @@ "description": "Retrieves the results of a previously submitted async search request given its ID." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/async_search.status.json b/api_generator/rest_specs/async_search.status.json new file mode 100644 index 00000000..81993cba --- /dev/null +++ b/api_generator/rest_specs/async_search.status.json @@ -0,0 +1,29 @@ +{ + "async_search.status":{ + "documentation":{ + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html", + "description": "Retrieves the status of a previously submitted async search request given its ID." + }, + "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, + "url":{ + "paths":[ + { + "path":"/_async_search/status/{id}", + "methods":[ + "GET" + ], + "parts":{ + "id":{ + "type":"string", + "description":"The async search ID" + } + } + } + ] + } + } +} diff --git a/api_generator/rest_specs/async_search.submit.json b/api_generator/rest_specs/async_search.submit.json index 70a7e6ee..5cd2b0e2 100644 --- a/api_generator/rest_specs/async_search.submit.json +++ b/api_generator/rest_specs/async_search.submit.json @@ -5,6 +5,11 @@ "description": "Executes a search request asynchronously." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/autoscaling.delete_autoscaling_policy.json b/api_generator/rest_specs/autoscaling.delete_autoscaling_policy.json index aeab8482..7ddb1f1c 100644 --- a/api_generator/rest_specs/autoscaling.delete_autoscaling_policy.json +++ b/api_generator/rest_specs/autoscaling.delete_autoscaling_policy.json @@ -2,9 +2,13 @@ "autoscaling.delete_autoscaling_policy":{ "documentation":{ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-delete-autoscaling-policy.html", - "description":"Deletes an autoscaling policy." + "description":"Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported." + }, + "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] }, - "stability":"experimental", "url":{ "paths":[ { diff --git a/api_generator/rest_specs/autoscaling.get_autoscaling_capacity.json b/api_generator/rest_specs/autoscaling.get_autoscaling_capacity.json index 8e565402..795507ed 100644 --- a/api_generator/rest_specs/autoscaling.get_autoscaling_capacity.json +++ b/api_generator/rest_specs/autoscaling.get_autoscaling_capacity.json @@ -2,9 +2,13 @@ "autoscaling.get_autoscaling_capacity":{ "documentation":{ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-capacity.html", - "description": "Gets the current autoscaling capacity based on the configured autoscaling policy." + "description": "Gets the current autoscaling capacity based on the configured autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported." + }, + "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] }, - "stability":"experimental", "url":{ "paths":[ { diff --git a/api_generator/rest_specs/autoscaling.get_autoscaling_policy.json b/api_generator/rest_specs/autoscaling.get_autoscaling_policy.json index 309f9a9a..e76df1ec 100644 --- a/api_generator/rest_specs/autoscaling.get_autoscaling_policy.json +++ b/api_generator/rest_specs/autoscaling.get_autoscaling_policy.json @@ -2,9 +2,13 @@ "autoscaling.get_autoscaling_policy":{ "documentation":{ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-policy.html", - "description": "Retrieves an autoscaling policy." + "description": "Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported." + }, + "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] }, - "stability":"experimental", "url":{ "paths":[ { diff --git a/api_generator/rest_specs/autoscaling.put_autoscaling_policy.json b/api_generator/rest_specs/autoscaling.put_autoscaling_policy.json index 6d1fe4b6..b51904a1 100644 --- a/api_generator/rest_specs/autoscaling.put_autoscaling_policy.json +++ b/api_generator/rest_specs/autoscaling.put_autoscaling_policy.json @@ -2,9 +2,14 @@ "autoscaling.put_autoscaling_policy":{ "documentation":{ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-put-autoscaling-policy.html", - "description": "Creates a new autoscaling policy." + "description": "Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported." + }, + "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] }, - "stability":"experimental", "url":{ "paths":[ { diff --git a/api_generator/rest_specs/bulk.json b/api_generator/rest_specs/bulk.json index f7c0d698..9f2f1e24 100644 --- a/api_generator/rest_specs/bulk.json +++ b/api_generator/rest_specs/bulk.json @@ -5,6 +5,11 @@ "description":"Allows to perform multiple index/update/delete operations in a single request." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/x-ndjson"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cat.aliases.json b/api_generator/rest_specs/cat.aliases.json index 1ba12b00..db49daee 100644 --- a/api_generator/rest_specs/cat.aliases.json +++ b/api_generator/rest_specs/cat.aliases.json @@ -5,6 +5,10 @@ "description":"Shows information about currently configured aliases to indices including filter and routing infos." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "text/plain", "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cat.allocation.json b/api_generator/rest_specs/cat.allocation.json index 7b3dc70b..9d19d8bb 100644 --- a/api_generator/rest_specs/cat.allocation.json +++ b/api_generator/rest_specs/cat.allocation.json @@ -5,6 +5,10 @@ "description":"Provides a snapshot of how many shards are allocated to each data node and how much disk space they are using." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "text/plain", "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cat.count.json b/api_generator/rest_specs/cat.count.json index 8cfaddf8..64226f87 100644 --- a/api_generator/rest_specs/cat.count.json +++ b/api_generator/rest_specs/cat.count.json @@ -5,6 +5,10 @@ "description":"Provides quick access to the document count of the entire cluster, or individual indices." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "text/plain", "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cat.fielddata.json b/api_generator/rest_specs/cat.fielddata.json index 9fbde473..497287a3 100644 --- a/api_generator/rest_specs/cat.fielddata.json +++ b/api_generator/rest_specs/cat.fielddata.json @@ -5,6 +5,10 @@ "description":"Shows how much heap memory is currently being used by fielddata on every data node in the cluster." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "text/plain", "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cat.health.json b/api_generator/rest_specs/cat.health.json index bd7454b8..6b49c8e4 100644 --- a/api_generator/rest_specs/cat.health.json +++ b/api_generator/rest_specs/cat.health.json @@ -5,6 +5,10 @@ "description":"Returns a concise representation of the cluster health." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "text/plain", "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cat.help.json b/api_generator/rest_specs/cat.help.json index 54ab6d6e..7c929dca 100644 --- a/api_generator/rest_specs/cat.help.json +++ b/api_generator/rest_specs/cat.help.json @@ -5,6 +5,10 @@ "description":"Returns help for the Cat APIs." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "text/plain" ] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cat.indices.json b/api_generator/rest_specs/cat.indices.json index a9218913..a809c96c 100644 --- a/api_generator/rest_specs/cat.indices.json +++ b/api_generator/rest_specs/cat.indices.json @@ -5,6 +5,10 @@ "description":"Returns information about indices: number of primaries and replicas, document counts, disk size, ..." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "text/plain", "application/json"] + }, "url":{ "paths":[ { @@ -49,10 +53,6 @@ "pb" ] }, - "local":{ - "type":"boolean", - "description":"Return local information, do not retrieve the state from master node (default: false)" - }, "master_timeout":{ "type":"time", "description":"Explicit operation timeout for connection to master node" diff --git a/api_generator/rest_specs/cat.master.json b/api_generator/rest_specs/cat.master.json index 63fe159e..9041c48b 100644 --- a/api_generator/rest_specs/cat.master.json +++ b/api_generator/rest_specs/cat.master.json @@ -5,6 +5,10 @@ "description":"Returns information about the master node." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "text/plain", "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cat.ml_data_frame_analytics.json b/api_generator/rest_specs/cat.ml_data_frame_analytics.json index ec041788..ded66961 100644 --- a/api_generator/rest_specs/cat.ml_data_frame_analytics.json +++ b/api_generator/rest_specs/cat.ml_data_frame_analytics.json @@ -5,6 +5,10 @@ "description": "Gets configuration and usage information about data frame analytics jobs." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "text/plain", "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cat.ml_datafeeds.json b/api_generator/rest_specs/cat.ml_datafeeds.json index dac54c52..16f34f46 100644 --- a/api_generator/rest_specs/cat.ml_datafeeds.json +++ b/api_generator/rest_specs/cat.ml_datafeeds.json @@ -5,6 +5,10 @@ "description": "Gets configuration and usage information about datafeeds." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "text/plain", "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cat.ml_jobs.json b/api_generator/rest_specs/cat.ml_jobs.json index 2552b1c2..8b8cddb8 100644 --- a/api_generator/rest_specs/cat.ml_jobs.json +++ b/api_generator/rest_specs/cat.ml_jobs.json @@ -5,6 +5,10 @@ "description": "Gets configuration and usage information about anomaly detection jobs." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "text/plain", "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cat.ml_trained_models.json b/api_generator/rest_specs/cat.ml_trained_models.json index e129d320..5176b9d4 100644 --- a/api_generator/rest_specs/cat.ml_trained_models.json +++ b/api_generator/rest_specs/cat.ml_trained_models.json @@ -5,6 +5,10 @@ "description": "Gets configuration and usage information about inference trained models." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "text/plain", "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cat.nodeattrs.json b/api_generator/rest_specs/cat.nodeattrs.json index e688e23c..b92f0233 100644 --- a/api_generator/rest_specs/cat.nodeattrs.json +++ b/api_generator/rest_specs/cat.nodeattrs.json @@ -5,6 +5,10 @@ "description":"Returns information about custom node attributes." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "text/plain", "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cat.nodes.json b/api_generator/rest_specs/cat.nodes.json index 849d6f24..729d9e80 100644 --- a/api_generator/rest_specs/cat.nodes.json +++ b/api_generator/rest_specs/cat.nodes.json @@ -5,6 +5,10 @@ "description":"Returns basic statistics about performance of cluster nodes." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "text/plain", "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cat.pending_tasks.json b/api_generator/rest_specs/cat.pending_tasks.json index 36fa33be..40601a11 100644 --- a/api_generator/rest_specs/cat.pending_tasks.json +++ b/api_generator/rest_specs/cat.pending_tasks.json @@ -5,6 +5,10 @@ "description":"Returns a concise representation of the cluster pending tasks." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "text/plain", "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cat.plugins.json b/api_generator/rest_specs/cat.plugins.json index d5346c6d..48635d2f 100644 --- a/api_generator/rest_specs/cat.plugins.json +++ b/api_generator/rest_specs/cat.plugins.json @@ -5,6 +5,10 @@ "description":"Returns information about installed plugins across nodes node." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "text/plain", "application/json"] + }, "url":{ "paths":[ { @@ -37,6 +41,11 @@ "description":"Return help information", "default":false }, + "include_bootstrap":{ + "type":"boolean", + "description":"Include bootstrap plugins in the response", + "default":false + }, "s":{ "type":"list", "description":"Comma-separated list of column names or column aliases to sort by" diff --git a/api_generator/rest_specs/cat.recovery.json b/api_generator/rest_specs/cat.recovery.json index 7baf0b8d..87931462 100644 --- a/api_generator/rest_specs/cat.recovery.json +++ b/api_generator/rest_specs/cat.recovery.json @@ -5,6 +5,10 @@ "description":"Returns information about index shard recoveries, both on-going completed." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "text/plain", "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cat.repositories.json b/api_generator/rest_specs/cat.repositories.json index 84d99659..3dad7a00 100644 --- a/api_generator/rest_specs/cat.repositories.json +++ b/api_generator/rest_specs/cat.repositories.json @@ -5,6 +5,10 @@ "description":"Returns information about snapshot repositories registered in the cluster." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "text/plain", "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cat.segments.json b/api_generator/rest_specs/cat.segments.json index 472ef7fd..7fe66ea3 100644 --- a/api_generator/rest_specs/cat.segments.json +++ b/api_generator/rest_specs/cat.segments.json @@ -5,6 +5,10 @@ "description":"Provides low-level information about the segments in the shards of an index." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "text/plain", "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cat.shards.json b/api_generator/rest_specs/cat.shards.json index a13c0f6b..24f4a4be 100644 --- a/api_generator/rest_specs/cat.shards.json +++ b/api_generator/rest_specs/cat.shards.json @@ -5,6 +5,10 @@ "description":"Provides a detailed view of shard allocation on nodes." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "text/plain", "application/json"] + }, "url":{ "paths":[ { @@ -49,10 +53,6 @@ "pb" ] }, - "local":{ - "type":"boolean", - "description":"Return local information, do not retrieve the state from master node (default: false)" - }, "master_timeout":{ "type":"time", "description":"Explicit operation timeout for connection to master node" diff --git a/api_generator/rest_specs/cat.snapshots.json b/api_generator/rest_specs/cat.snapshots.json index 757c2cfb..3b72e8a1 100644 --- a/api_generator/rest_specs/cat.snapshots.json +++ b/api_generator/rest_specs/cat.snapshots.json @@ -5,6 +5,10 @@ "description":"Returns all snapshots in a specific repository." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "text/plain", "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cat.tasks.json b/api_generator/rest_specs/cat.tasks.json index ae25ab10..6969a1c1 100644 --- a/api_generator/rest_specs/cat.tasks.json +++ b/api_generator/rest_specs/cat.tasks.json @@ -4,7 +4,11 @@ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html", "description":"Returns information about the tasks currently executing on one or more nodes in the cluster." }, - "stability":"stable", + "stability":"experimental", + "visibility":"public", + "headers":{ + "accept": [ "text/plain", "application/json"] + }, "url":{ "paths":[ { @@ -20,7 +24,7 @@ "type":"string", "description":"a short version of the Accept header, e.g. json, yaml" }, - "node_id":{ + "nodes":{ "type":"list", "description":"A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes" }, @@ -32,9 +36,9 @@ "type":"boolean", "description":"Return detailed task information (default: false)" }, - "parent_task":{ - "type":"number", - "description":"Return tasks with specified parent task id. Set to -1 to return all." + "parent_task_id":{ + "type":"string", + "description":"Return tasks with specified parent task id (node_id:task_number). Set to -1 to return all." }, "h":{ "type":"list", diff --git a/api_generator/rest_specs/cat.templates.json b/api_generator/rest_specs/cat.templates.json index 53fc872b..e7ac67c8 100644 --- a/api_generator/rest_specs/cat.templates.json +++ b/api_generator/rest_specs/cat.templates.json @@ -5,6 +5,10 @@ "description":"Returns information about existing templates." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "text/plain", "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cat.thread_pool.json b/api_generator/rest_specs/cat.thread_pool.json index 65ffd964..1bd61a29 100644 --- a/api_generator/rest_specs/cat.thread_pool.json +++ b/api_generator/rest_specs/cat.thread_pool.json @@ -5,6 +5,10 @@ "description":"Returns cluster-wide thread pool statistics per node.\nBy default the active, queue and rejected statistics are returned for all thread pools." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "text/plain", "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cat.transforms.json b/api_generator/rest_specs/cat.transforms.json index ad22e646..c0dd769d 100644 --- a/api_generator/rest_specs/cat.transforms.json +++ b/api_generator/rest_specs/cat.transforms.json @@ -5,6 +5,10 @@ "description": "Gets configuration and usage information about transforms." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "text/plain", "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ccr.delete_auto_follow_pattern.json b/api_generator/rest_specs/ccr.delete_auto_follow_pattern.json index f9e70a1f..52f56ca3 100644 --- a/api_generator/rest_specs/ccr.delete_auto_follow_pattern.json +++ b/api_generator/rest_specs/ccr.delete_auto_follow_pattern.json @@ -5,6 +5,10 @@ "description": "Deletes auto-follow patterns." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ccr.follow.json b/api_generator/rest_specs/ccr.follow.json index be3dfc75..6905a53e 100644 --- a/api_generator/rest_specs/ccr.follow.json +++ b/api_generator/rest_specs/ccr.follow.json @@ -5,6 +5,11 @@ "description": "Creates a new follower index configured to follow the referenced leader index." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ccr.follow_info.json b/api_generator/rest_specs/ccr.follow_info.json index 858eab0b..17ecd571 100644 --- a/api_generator/rest_specs/ccr.follow_info.json +++ b/api_generator/rest_specs/ccr.follow_info.json @@ -5,6 +5,10 @@ "description": "Retrieves information about all follower indices, including parameters and status for each follower index" }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ccr.follow_stats.json b/api_generator/rest_specs/ccr.follow_stats.json index 1abe53bd..54de8c4d 100644 --- a/api_generator/rest_specs/ccr.follow_stats.json +++ b/api_generator/rest_specs/ccr.follow_stats.json @@ -5,6 +5,10 @@ "description": "Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ccr.forget_follower.json b/api_generator/rest_specs/ccr.forget_follower.json index d0df2f16..8106a74b 100644 --- a/api_generator/rest_specs/ccr.forget_follower.json +++ b/api_generator/rest_specs/ccr.forget_follower.json @@ -5,6 +5,11 @@ "description": "Removes the follower retention leases from the leader." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ccr.get_auto_follow_pattern.json b/api_generator/rest_specs/ccr.get_auto_follow_pattern.json index b89587d2..8073fd72 100644 --- a/api_generator/rest_specs/ccr.get_auto_follow_pattern.json +++ b/api_generator/rest_specs/ccr.get_auto_follow_pattern.json @@ -5,6 +5,10 @@ "description": "Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ccr.pause_auto_follow_pattern.json b/api_generator/rest_specs/ccr.pause_auto_follow_pattern.json index 711e3deb..93756734 100644 --- a/api_generator/rest_specs/ccr.pause_auto_follow_pattern.json +++ b/api_generator/rest_specs/ccr.pause_auto_follow_pattern.json @@ -5,6 +5,10 @@ "description": "Pauses an auto-follow pattern" }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ccr.pause_follow.json b/api_generator/rest_specs/ccr.pause_follow.json index f45947b1..a4923df2 100644 --- a/api_generator/rest_specs/ccr.pause_follow.json +++ b/api_generator/rest_specs/ccr.pause_follow.json @@ -5,6 +5,10 @@ "description": "Pauses a follower index. The follower index will not fetch any additional operations from the leader index." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ccr.put_auto_follow_pattern.json b/api_generator/rest_specs/ccr.put_auto_follow_pattern.json index 79a498da..6331b4ff 100644 --- a/api_generator/rest_specs/ccr.put_auto_follow_pattern.json +++ b/api_generator/rest_specs/ccr.put_auto_follow_pattern.json @@ -5,6 +5,11 @@ "description": "Creates 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." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ccr.resume_auto_follow_pattern.json b/api_generator/rest_specs/ccr.resume_auto_follow_pattern.json index e6c3d268..b679155b 100644 --- a/api_generator/rest_specs/ccr.resume_auto_follow_pattern.json +++ b/api_generator/rest_specs/ccr.resume_auto_follow_pattern.json @@ -5,6 +5,10 @@ "description": "Resumes an auto-follow pattern that has been paused" }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ccr.resume_follow.json b/api_generator/rest_specs/ccr.resume_follow.json index de1945f3..d6addce1 100644 --- a/api_generator/rest_specs/ccr.resume_follow.json +++ b/api_generator/rest_specs/ccr.resume_follow.json @@ -5,6 +5,11 @@ "description": "Resumes a follower index that has been paused" }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ccr.stats.json b/api_generator/rest_specs/ccr.stats.json index dc70f1a3..ac47e9c3 100644 --- a/api_generator/rest_specs/ccr.stats.json +++ b/api_generator/rest_specs/ccr.stats.json @@ -5,6 +5,10 @@ "description": "Gets all stats related to cross-cluster replication." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ccr.unfollow.json b/api_generator/rest_specs/ccr.unfollow.json index c5db9219..7a49b4a1 100644 --- a/api_generator/rest_specs/ccr.unfollow.json +++ b/api_generator/rest_specs/ccr.unfollow.json @@ -5,6 +5,10 @@ "description": "Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/clear_scroll.json b/api_generator/rest_specs/clear_scroll.json index b0e50045..2d76e1e1 100644 --- a/api_generator/rest_specs/clear_scroll.json +++ b/api_generator/rest_specs/clear_scroll.json @@ -5,6 +5,11 @@ "description":"Explicitly clears the search context for a scroll." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json","text/plain"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/close_point_in_time.json b/api_generator/rest_specs/close_point_in_time.json index 16a4aabd..d3f636a1 100644 --- a/api_generator/rest_specs/close_point_in_time.json +++ b/api_generator/rest_specs/close_point_in_time.json @@ -5,6 +5,10 @@ "description":"Close a point in time" }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cluster.allocation_explain.json b/api_generator/rest_specs/cluster.allocation_explain.json index e46218a7..36f341d7 100644 --- a/api_generator/rest_specs/cluster.allocation_explain.json +++ b/api_generator/rest_specs/cluster.allocation_explain.json @@ -5,6 +5,11 @@ "description":"Provides explanations for shard allocations in the cluster." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cluster.delete_component_template.json b/api_generator/rest_specs/cluster.delete_component_template.json index 9beea52c..041c1b35 100644 --- a/api_generator/rest_specs/cluster.delete_component_template.json +++ b/api_generator/rest_specs/cluster.delete_component_template.json @@ -4,7 +4,11 @@ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html", "description":"Deletes a component template" }, - "stability":"experimental", + "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cluster.delete_voting_config_exclusions.json b/api_generator/rest_specs/cluster.delete_voting_config_exclusions.json index d3db7ded..ff2abbe8 100644 --- a/api_generator/rest_specs/cluster.delete_voting_config_exclusions.json +++ b/api_generator/rest_specs/cluster.delete_voting_config_exclusions.json @@ -5,6 +5,10 @@ "description":"Clears cluster voting config exclusions." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cluster.exists_component_template.json b/api_generator/rest_specs/cluster.exists_component_template.json index cc048ded..818d034c 100644 --- a/api_generator/rest_specs/cluster.exists_component_template.json +++ b/api_generator/rest_specs/cluster.exists_component_template.json @@ -4,7 +4,11 @@ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html", "description":"Returns information about whether a particular component template exist" }, - "stability":"experimental", + "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cluster.get_component_template.json b/api_generator/rest_specs/cluster.get_component_template.json index ecf32f50..67b3c20d 100644 --- a/api_generator/rest_specs/cluster.get_component_template.json +++ b/api_generator/rest_specs/cluster.get_component_template.json @@ -4,7 +4,11 @@ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html", "description":"Returns one or more component templates" }, - "stability":"experimental", + "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cluster.get_settings.json b/api_generator/rest_specs/cluster.get_settings.json index 6f91fbbe..9708a860 100644 --- a/api_generator/rest_specs/cluster.get_settings.json +++ b/api_generator/rest_specs/cluster.get_settings.json @@ -5,6 +5,10 @@ "description":"Returns cluster settings." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cluster.health.json b/api_generator/rest_specs/cluster.health.json index 894b141f..91712bbb 100644 --- a/api_generator/rest_specs/cluster.health.json +++ b/api_generator/rest_specs/cluster.health.json @@ -5,6 +5,10 @@ "description":"Returns basic information about the health of the cluster." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cluster.pending_tasks.json b/api_generator/rest_specs/cluster.pending_tasks.json index d940adf9..0ce718b3 100644 --- a/api_generator/rest_specs/cluster.pending_tasks.json +++ b/api_generator/rest_specs/cluster.pending_tasks.json @@ -5,6 +5,10 @@ "description":"Returns a list of any cluster-level changes (e.g. create index, update mapping,\nallocate or fail shard) which have not yet been executed." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cluster.post_voting_config_exclusions.json b/api_generator/rest_specs/cluster.post_voting_config_exclusions.json index 4dbaf80c..dcdf0f1f 100644 --- a/api_generator/rest_specs/cluster.post_voting_config_exclusions.json +++ b/api_generator/rest_specs/cluster.post_voting_config_exclusions.json @@ -5,6 +5,10 @@ "description":"Updates the cluster voting config exclusions by node ids or node names." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cluster.put_component_template.json b/api_generator/rest_specs/cluster.put_component_template.json index abc83fb1..4b7b032b 100644 --- a/api_generator/rest_specs/cluster.put_component_template.json +++ b/api_generator/rest_specs/cluster.put_component_template.json @@ -4,7 +4,12 @@ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html", "description":"Creates or updates a component template" }, - "stability":"experimental", + "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cluster.put_settings.json b/api_generator/rest_specs/cluster.put_settings.json index f6b9a086..77aac965 100644 --- a/api_generator/rest_specs/cluster.put_settings.json +++ b/api_generator/rest_specs/cluster.put_settings.json @@ -5,6 +5,11 @@ "description":"Updates the cluster settings." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cluster.remote_info.json b/api_generator/rest_specs/cluster.remote_info.json index 4eac0b55..689d1060 100644 --- a/api_generator/rest_specs/cluster.remote_info.json +++ b/api_generator/rest_specs/cluster.remote_info.json @@ -5,6 +5,10 @@ "description":"Returns the information about configured remote clusters." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cluster.reroute.json b/api_generator/rest_specs/cluster.reroute.json index b0e8054f..2f543703 100644 --- a/api_generator/rest_specs/cluster.reroute.json +++ b/api_generator/rest_specs/cluster.reroute.json @@ -5,6 +5,11 @@ "description":"Allows to manually change the allocation of individual shards in the cluster." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cluster.state.json b/api_generator/rest_specs/cluster.state.json index 01770508..faf1aafd 100644 --- a/api_generator/rest_specs/cluster.state.json +++ b/api_generator/rest_specs/cluster.state.json @@ -5,6 +5,10 @@ "description":"Returns a comprehensive information about the state of the cluster." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/cluster.stats.json b/api_generator/rest_specs/cluster.stats.json index f36db097..4a8ca46c 100644 --- a/api_generator/rest_specs/cluster.stats.json +++ b/api_generator/rest_specs/cluster.stats.json @@ -5,6 +5,10 @@ "description":"Returns high-level overview of cluster statistics." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/count.json b/api_generator/rest_specs/count.json index 93a450af..6ebeb572 100644 --- a/api_generator/rest_specs/count.json +++ b/api_generator/rest_specs/count.json @@ -5,6 +5,11 @@ "description":"Returns number of documents matching a query." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/create.json b/api_generator/rest_specs/create.json index 171f3da4..9cdb226f 100644 --- a/api_generator/rest_specs/create.json +++ b/api_generator/rest_specs/create.json @@ -5,6 +5,11 @@ "description":"Creates a new document in the index.\n\nReturns a 409 response when a document with a same ID already exists in the index." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/dangling_indices.delete_dangling_index.json b/api_generator/rest_specs/dangling_indices.delete_dangling_index.json index 1e3d7478..8106e80d 100644 --- a/api_generator/rest_specs/dangling_indices.delete_dangling_index.json +++ b/api_generator/rest_specs/dangling_indices.delete_dangling_index.json @@ -5,6 +5,10 @@ "description": "Deletes the specified dangling index" }, "stability": "stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url": { "paths": [ { diff --git a/api_generator/rest_specs/dangling_indices.import_dangling_index.json b/api_generator/rest_specs/dangling_indices.import_dangling_index.json index e9dce01a..f81afc35 100644 --- a/api_generator/rest_specs/dangling_indices.import_dangling_index.json +++ b/api_generator/rest_specs/dangling_indices.import_dangling_index.json @@ -5,6 +5,10 @@ "description": "Imports the specified dangling index" }, "stability": "stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url": { "paths": [ { diff --git a/api_generator/rest_specs/dangling_indices.list_dangling_indices.json b/api_generator/rest_specs/dangling_indices.list_dangling_indices.json index dfc21f56..4310faa9 100644 --- a/api_generator/rest_specs/dangling_indices.list_dangling_indices.json +++ b/api_generator/rest_specs/dangling_indices.list_dangling_indices.json @@ -5,6 +5,10 @@ "description": "Returns all dangling indices." }, "stability": "stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url": { "paths": [ { diff --git a/api_generator/rest_specs/data_frame_transform_deprecated.delete_transform.json b/api_generator/rest_specs/data_frame_transform_deprecated.delete_transform.json index 28c90b60..ac9962fa 100644 --- a/api_generator/rest_specs/data_frame_transform_deprecated.delete_transform.json +++ b/api_generator/rest_specs/data_frame_transform_deprecated.delete_transform.json @@ -5,6 +5,10 @@ "description":"Deletes an existing transform." }, "stability":"beta", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/data_frame_transform_deprecated.get_transform.json b/api_generator/rest_specs/data_frame_transform_deprecated.get_transform.json index 22726a95..6737a867 100644 --- a/api_generator/rest_specs/data_frame_transform_deprecated.get_transform.json +++ b/api_generator/rest_specs/data_frame_transform_deprecated.get_transform.json @@ -5,6 +5,10 @@ "description":"Retrieves configuration information for transforms." }, "stability":"beta", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/data_frame_transform_deprecated.get_transform_stats.json b/api_generator/rest_specs/data_frame_transform_deprecated.get_transform_stats.json index 7822f3ce..0fbbcce2 100644 --- a/api_generator/rest_specs/data_frame_transform_deprecated.get_transform_stats.json +++ b/api_generator/rest_specs/data_frame_transform_deprecated.get_transform_stats.json @@ -5,6 +5,10 @@ "description":"Retrieves usage information for transforms." }, "stability":"beta", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/data_frame_transform_deprecated.preview_transform.json b/api_generator/rest_specs/data_frame_transform_deprecated.preview_transform.json index 90b9b917..bcf683f1 100644 --- a/api_generator/rest_specs/data_frame_transform_deprecated.preview_transform.json +++ b/api_generator/rest_specs/data_frame_transform_deprecated.preview_transform.json @@ -5,6 +5,11 @@ "description":"Previews a transform." }, "stability":"beta", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/data_frame_transform_deprecated.put_transform.json b/api_generator/rest_specs/data_frame_transform_deprecated.put_transform.json index ce86e733..02d2dc87 100644 --- a/api_generator/rest_specs/data_frame_transform_deprecated.put_transform.json +++ b/api_generator/rest_specs/data_frame_transform_deprecated.put_transform.json @@ -5,6 +5,11 @@ "description":"Instantiates a transform." }, "stability":"beta", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/data_frame_transform_deprecated.start_transform.json b/api_generator/rest_specs/data_frame_transform_deprecated.start_transform.json index fd9e2561..a7be8c6c 100644 --- a/api_generator/rest_specs/data_frame_transform_deprecated.start_transform.json +++ b/api_generator/rest_specs/data_frame_transform_deprecated.start_transform.json @@ -5,6 +5,10 @@ "description":"Starts one or more transforms." }, "stability":"beta", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/data_frame_transform_deprecated.stop_transform.json b/api_generator/rest_specs/data_frame_transform_deprecated.stop_transform.json index 8938ec5b..f479f5a1 100644 --- a/api_generator/rest_specs/data_frame_transform_deprecated.stop_transform.json +++ b/api_generator/rest_specs/data_frame_transform_deprecated.stop_transform.json @@ -5,6 +5,10 @@ "description":"Stops one or more transforms." }, "stability":"beta", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/data_frame_transform_deprecated.update_transform.json b/api_generator/rest_specs/data_frame_transform_deprecated.update_transform.json index 97e1821b..630a50a5 100644 --- a/api_generator/rest_specs/data_frame_transform_deprecated.update_transform.json +++ b/api_generator/rest_specs/data_frame_transform_deprecated.update_transform.json @@ -5,6 +5,11 @@ "description":"Updates certain properties of a transform." }, "stability":"beta", + "visibility":"public", + "headers":{ + "accept":[ "application/json"], + "content_type":["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/delete.json b/api_generator/rest_specs/delete.json index 52ab302c..28f12a7d 100644 --- a/api_generator/rest_specs/delete.json +++ b/api_generator/rest_specs/delete.json @@ -5,6 +5,10 @@ "description":"Removes a document from the index." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/delete_by_query.json b/api_generator/rest_specs/delete_by_query.json index 8641c183..9b57fa6c 100644 --- a/api_generator/rest_specs/delete_by_query.json +++ b/api_generator/rest_specs/delete_by_query.json @@ -5,6 +5,11 @@ "description":"Deletes documents matching the provided query." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/delete_by_query_rethrottle.json b/api_generator/rest_specs/delete_by_query_rethrottle.json index 112bfc8a..e8ff1a61 100644 --- a/api_generator/rest_specs/delete_by_query_rethrottle.json +++ b/api_generator/rest_specs/delete_by_query_rethrottle.json @@ -5,6 +5,10 @@ "description":"Changes the number of requests per second for a particular Delete By Query operation." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/delete_script.json b/api_generator/rest_specs/delete_script.json index b38b97ae..cf657337 100644 --- a/api_generator/rest_specs/delete_script.json +++ b/api_generator/rest_specs/delete_script.json @@ -5,6 +5,10 @@ "description":"Deletes a script." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/enrich.delete_policy.json b/api_generator/rest_specs/enrich.delete_policy.json index f7a18302..3137f6b5 100644 --- a/api_generator/rest_specs/enrich.delete_policy.json +++ b/api_generator/rest_specs/enrich.delete_policy.json @@ -5,6 +5,10 @@ "description": "Deletes an existing enrich policy and its enrich index." }, "stability" : "stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url": { "paths": [ { diff --git a/api_generator/rest_specs/enrich.execute_policy.json b/api_generator/rest_specs/enrich.execute_policy.json index a448d910..5e4c8a22 100644 --- a/api_generator/rest_specs/enrich.execute_policy.json +++ b/api_generator/rest_specs/enrich.execute_policy.json @@ -5,6 +5,10 @@ "description": "Creates the enrich index for an existing enrich policy." }, "stability" : "stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url": { "paths": [ { diff --git a/api_generator/rest_specs/enrich.get_policy.json b/api_generator/rest_specs/enrich.get_policy.json index 32bdf01f..a3eb5194 100644 --- a/api_generator/rest_specs/enrich.get_policy.json +++ b/api_generator/rest_specs/enrich.get_policy.json @@ -5,6 +5,10 @@ "description": "Gets information about an enrich policy." }, "stability" : "stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url": { "paths": [ { diff --git a/api_generator/rest_specs/enrich.put_policy.json b/api_generator/rest_specs/enrich.put_policy.json index 10787158..0d1cefd3 100644 --- a/api_generator/rest_specs/enrich.put_policy.json +++ b/api_generator/rest_specs/enrich.put_policy.json @@ -5,6 +5,11 @@ "description": "Creates a new enrich policy." }, "stability" : "stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url": { "paths": [ { diff --git a/api_generator/rest_specs/enrich.stats.json b/api_generator/rest_specs/enrich.stats.json index 153ee42b..b4218acf 100644 --- a/api_generator/rest_specs/enrich.stats.json +++ b/api_generator/rest_specs/enrich.stats.json @@ -5,6 +5,10 @@ "description": "Gets enrich coordinator statistics and information about enrich policies that are currently executing." }, "stability" : "stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url": { "paths": [ { diff --git a/api_generator/rest_specs/eql.delete.json b/api_generator/rest_specs/eql.delete.json index 47b3990a..18f69022 100644 --- a/api_generator/rest_specs/eql.delete.json +++ b/api_generator/rest_specs/eql.delete.json @@ -4,7 +4,11 @@ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html", "description": "Deletes 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." }, - "stability":"beta", + "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/eql.get.json b/api_generator/rest_specs/eql.get.json index 9271f43e..c7a228da 100644 --- a/api_generator/rest_specs/eql.get.json +++ b/api_generator/rest_specs/eql.get.json @@ -4,7 +4,11 @@ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html", "description": "Returns async results from previously executed Event Query Language (EQL) search" }, - "stability": "beta", + "stability": "stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/eql.get_status.json b/api_generator/rest_specs/eql.get_status.json new file mode 100644 index 00000000..be8a4398 --- /dev/null +++ b/api_generator/rest_specs/eql.get_status.json @@ -0,0 +1,31 @@ +{ + "eql.get_status": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html", + "description": "Returns the status of a previously submitted async or stored Event Query Language (EQL) search" + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": [ + "application/json" + ] + }, + "url": { + "paths": [ + { + "path": "/_eql/search/status/{id}", + "methods": [ + "GET" + ], + "parts": { + "id": { + "type": "string", + "description": "The async search ID" + } + } + } + ] + } + } +} diff --git a/api_generator/rest_specs/eql.search.json b/api_generator/rest_specs/eql.search.json index c371851d..6748dfd4 100644 --- a/api_generator/rest_specs/eql.search.json +++ b/api_generator/rest_specs/eql.search.json @@ -4,7 +4,13 @@ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html", "description": "Returns results matching a query expressed in Event Query Language (EQL)" }, - "stability": "beta", + "stability": "stable", + "visibility":"feature_flag", + "feature_flag":"es.eql_feature_flag_registered", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/exists.json b/api_generator/rest_specs/exists.json index a8e6b678..99e9793e 100644 --- a/api_generator/rest_specs/exists.json +++ b/api_generator/rest_specs/exists.json @@ -5,6 +5,10 @@ "description":"Returns information about whether a document exists in an index." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/exists_source.json b/api_generator/rest_specs/exists_source.json index 3ae8d60e..aff6a275 100644 --- a/api_generator/rest_specs/exists_source.json +++ b/api_generator/rest_specs/exists_source.json @@ -5,6 +5,10 @@ "description":"Returns information about whether a document source exists in an index." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/explain.json b/api_generator/rest_specs/explain.json index 7f630f76..8b25836d 100644 --- a/api_generator/rest_specs/explain.json +++ b/api_generator/rest_specs/explain.json @@ -5,6 +5,11 @@ "description":"Returns information about why a specific matches (or doesn't match) a query." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/field_caps.json b/api_generator/rest_specs/field_caps.json index 20a87c7d..d2632a12 100644 --- a/api_generator/rest_specs/field_caps.json +++ b/api_generator/rest_specs/field_caps.json @@ -5,6 +5,10 @@ "description":"Returns the information about the capabilities of fields among multiple indices." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/get.json b/api_generator/rest_specs/get.json index 36d08c03..f529c8b5 100644 --- a/api_generator/rest_specs/get.json +++ b/api_generator/rest_specs/get.json @@ -5,6 +5,10 @@ "description":"Returns a document." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/get_script.json b/api_generator/rest_specs/get_script.json index 14307bea..ae11aa07 100644 --- a/api_generator/rest_specs/get_script.json +++ b/api_generator/rest_specs/get_script.json @@ -5,6 +5,10 @@ "description":"Returns a script." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/get_script_context.json b/api_generator/rest_specs/get_script_context.json index aa770ee9..5f62e057 100644 --- a/api_generator/rest_specs/get_script_context.json +++ b/api_generator/rest_specs/get_script_context.json @@ -5,6 +5,10 @@ "description":"Returns all script contexts." }, "stability":"experimental", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/get_script_languages.json b/api_generator/rest_specs/get_script_languages.json index a5e06cb8..f8df1e76 100644 --- a/api_generator/rest_specs/get_script_languages.json +++ b/api_generator/rest_specs/get_script_languages.json @@ -5,6 +5,10 @@ "description":"Returns available script types, languages and contexts" }, "stability":"experimental", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/get_source.json b/api_generator/rest_specs/get_source.json index d99a1882..a17ae4b0 100644 --- a/api_generator/rest_specs/get_source.json +++ b/api_generator/rest_specs/get_source.json @@ -5,6 +5,10 @@ "description":"Returns the source of a document." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/graph.explore.json b/api_generator/rest_specs/graph.explore.json index 575ba9c6..311716fd 100644 --- a/api_generator/rest_specs/graph.explore.json +++ b/api_generator/rest_specs/graph.explore.json @@ -5,6 +5,11 @@ "description": "Explore extracted and summarized information about the documents and terms in an index." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ilm.delete_lifecycle.json b/api_generator/rest_specs/ilm.delete_lifecycle.json index 59c14b3c..2ff1031a 100644 --- a/api_generator/rest_specs/ilm.delete_lifecycle.json +++ b/api_generator/rest_specs/ilm.delete_lifecycle.json @@ -5,6 +5,10 @@ "description": "Deletes the specified lifecycle policy definition. A currently used policy cannot be deleted." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ilm.explain_lifecycle.json b/api_generator/rest_specs/ilm.explain_lifecycle.json index 9a8f11ae..c793ed09 100644 --- a/api_generator/rest_specs/ilm.explain_lifecycle.json +++ b/api_generator/rest_specs/ilm.explain_lifecycle.json @@ -5,6 +5,10 @@ "description": "Retrieves information about the index's current lifecycle state, such as the currently executing phase, action, and step." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ilm.get_lifecycle.json b/api_generator/rest_specs/ilm.get_lifecycle.json index 6846d92b..17bf8130 100644 --- a/api_generator/rest_specs/ilm.get_lifecycle.json +++ b/api_generator/rest_specs/ilm.get_lifecycle.json @@ -5,6 +5,10 @@ "description": "Returns the specified policy definition. Includes the policy version and last modified date." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ilm.get_status.json b/api_generator/rest_specs/ilm.get_status.json index 1808e903..eba1b93c 100644 --- a/api_generator/rest_specs/ilm.get_status.json +++ b/api_generator/rest_specs/ilm.get_status.json @@ -5,6 +5,10 @@ "description":"Retrieves the current index lifecycle management (ILM) status." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ilm.move_to_step.json b/api_generator/rest_specs/ilm.move_to_step.json index c3b397ba..3f46b8fa 100644 --- a/api_generator/rest_specs/ilm.move_to_step.json +++ b/api_generator/rest_specs/ilm.move_to_step.json @@ -5,6 +5,11 @@ "description":"Manually moves an index into the specified step and executes that step." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ilm.put_lifecycle.json b/api_generator/rest_specs/ilm.put_lifecycle.json index 26029211..5a12a778 100644 --- a/api_generator/rest_specs/ilm.put_lifecycle.json +++ b/api_generator/rest_specs/ilm.put_lifecycle.json @@ -5,6 +5,11 @@ "description":"Creates a lifecycle policy" }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ilm.remove_policy.json b/api_generator/rest_specs/ilm.remove_policy.json index e39c95f6..bc684186 100644 --- a/api_generator/rest_specs/ilm.remove_policy.json +++ b/api_generator/rest_specs/ilm.remove_policy.json @@ -5,6 +5,10 @@ "description":"Removes the assigned lifecycle policy and stops managing the specified index" }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ilm.retry.json b/api_generator/rest_specs/ilm.retry.json index ab957713..b567d9b7 100644 --- a/api_generator/rest_specs/ilm.retry.json +++ b/api_generator/rest_specs/ilm.retry.json @@ -5,6 +5,10 @@ "description":"Retries executing the policy for an index that is in the ERROR step." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ilm.start.json b/api_generator/rest_specs/ilm.start.json index 56ca5a4a..88b02007 100644 --- a/api_generator/rest_specs/ilm.start.json +++ b/api_generator/rest_specs/ilm.start.json @@ -5,6 +5,10 @@ "description":"Start the index lifecycle management (ILM) plugin." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ilm.stop.json b/api_generator/rest_specs/ilm.stop.json index 9604499c..8401f93b 100644 --- a/api_generator/rest_specs/ilm.stop.json +++ b/api_generator/rest_specs/ilm.stop.json @@ -5,6 +5,10 @@ "description":"Halts all lifecycle management operations and stops the index lifecycle management (ILM) plugin" }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/index.json b/api_generator/rest_specs/index.json index b4865403..bd94d653 100644 --- a/api_generator/rest_specs/index.json +++ b/api_generator/rest_specs/index.json @@ -5,6 +5,11 @@ "description":"Creates or updates a document in an index." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.add_block.json b/api_generator/rest_specs/indices.add_block.json index 7389fb13..24738d1f 100644 --- a/api_generator/rest_specs/indices.add_block.json +++ b/api_generator/rest_specs/indices.add_block.json @@ -5,6 +5,10 @@ "description":"Adds a block to an index." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.analyze.json b/api_generator/rest_specs/indices.analyze.json index aa8e84c1..a6d8cf6c 100644 --- a/api_generator/rest_specs/indices.analyze.json +++ b/api_generator/rest_specs/indices.analyze.json @@ -5,6 +5,11 @@ "description":"Performs the analysis process on a text and return the tokens breakdown of the text." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.clear_cache.json b/api_generator/rest_specs/indices.clear_cache.json index 64c10a52..064a7573 100644 --- a/api_generator/rest_specs/indices.clear_cache.json +++ b/api_generator/rest_specs/indices.clear_cache.json @@ -5,6 +5,10 @@ "description":"Clears all or specific caches for one or more indices." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.clone.json b/api_generator/rest_specs/indices.clone.json index d3a24958..43a6383a 100644 --- a/api_generator/rest_specs/indices.clone.json +++ b/api_generator/rest_specs/indices.clone.json @@ -5,6 +5,11 @@ "description": "Clones an index" }, "stability": "stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url": { "paths": [ { diff --git a/api_generator/rest_specs/indices.close.json b/api_generator/rest_specs/indices.close.json index f26c8e77..0738216d 100644 --- a/api_generator/rest_specs/indices.close.json +++ b/api_generator/rest_specs/indices.close.json @@ -5,6 +5,10 @@ "description":"Closes an index." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.create.json b/api_generator/rest_specs/indices.create.json index 922183d6..3a3f2797 100644 --- a/api_generator/rest_specs/indices.create.json +++ b/api_generator/rest_specs/indices.create.json @@ -5,6 +5,11 @@ "description":"Creates an index with optional settings and mappings." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.create_data_stream.json b/api_generator/rest_specs/indices.create_data_stream.json index 693f91a5..f8f3e238 100644 --- a/api_generator/rest_specs/indices.create_data_stream.json +++ b/api_generator/rest_specs/indices.create_data_stream.json @@ -5,6 +5,10 @@ "description":"Creates a data stream" }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.data_streams_stats.json b/api_generator/rest_specs/indices.data_streams_stats.json index 75922e30..90a3574d 100644 --- a/api_generator/rest_specs/indices.data_streams_stats.json +++ b/api_generator/rest_specs/indices.data_streams_stats.json @@ -5,6 +5,10 @@ "description":"Provides statistics on operations happening in a data stream." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.delete.json b/api_generator/rest_specs/indices.delete.json index 53fdf44b..252ba754 100644 --- a/api_generator/rest_specs/indices.delete.json +++ b/api_generator/rest_specs/indices.delete.json @@ -5,6 +5,10 @@ "description":"Deletes an index." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.delete_alias.json b/api_generator/rest_specs/indices.delete_alias.json index 13abf70c..7ec072a4 100644 --- a/api_generator/rest_specs/indices.delete_alias.json +++ b/api_generator/rest_specs/indices.delete_alias.json @@ -5,6 +5,10 @@ "description":"Deletes an alias." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.delete_data_stream.json b/api_generator/rest_specs/indices.delete_data_stream.json index c7b562f3..26f015f6 100644 --- a/api_generator/rest_specs/indices.delete_data_stream.json +++ b/api_generator/rest_specs/indices.delete_data_stream.json @@ -5,6 +5,10 @@ "description":"Deletes a data stream." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { @@ -21,6 +25,19 @@ } ] }, - "params":{} + "params":{ + "expand_wildcards":{ + "type":"enum", + "options":[ + "open", + "closed", + "hidden", + "none", + "all" + ], + "default":"open", + "description":"Whether wildcard expressions should get expanded to open or closed indices (default: open)" + } + } } } diff --git a/api_generator/rest_specs/indices.delete_index_template.json b/api_generator/rest_specs/indices.delete_index_template.json index d037b03d..a07d6540 100644 --- a/api_generator/rest_specs/indices.delete_index_template.json +++ b/api_generator/rest_specs/indices.delete_index_template.json @@ -4,7 +4,11 @@ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html", "description":"Deletes an index template." }, - "stability":"experimental", + "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.delete_template.json b/api_generator/rest_specs/indices.delete_template.json index ca484a73..7d79c2ab 100644 --- a/api_generator/rest_specs/indices.delete_template.json +++ b/api_generator/rest_specs/indices.delete_template.json @@ -5,6 +5,10 @@ "description":"Deletes an index template." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.exists.json b/api_generator/rest_specs/indices.exists.json index 7539f44a..b8e18348 100644 --- a/api_generator/rest_specs/indices.exists.json +++ b/api_generator/rest_specs/indices.exists.json @@ -5,6 +5,10 @@ "description":"Returns information about whether a particular index exists." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.exists_alias.json b/api_generator/rest_specs/indices.exists_alias.json index 66e5ce92..b70854fd 100644 --- a/api_generator/rest_specs/indices.exists_alias.json +++ b/api_generator/rest_specs/indices.exists_alias.json @@ -5,6 +5,10 @@ "description":"Returns information about whether a particular alias exists." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.exists_index_template.json b/api_generator/rest_specs/indices.exists_index_template.json index c5312680..dc0f9ed5 100644 --- a/api_generator/rest_specs/indices.exists_index_template.json +++ b/api_generator/rest_specs/indices.exists_index_template.json @@ -4,7 +4,11 @@ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html", "description":"Returns information about whether a particular index template exists." }, - "stability":"experimental", + "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.exists_template.json b/api_generator/rest_specs/indices.exists_template.json index 9796bdd9..9d2b6b15 100644 --- a/api_generator/rest_specs/indices.exists_template.json +++ b/api_generator/rest_specs/indices.exists_template.json @@ -5,6 +5,10 @@ "description":"Returns information about whether a particular index template exists." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.exists_type.json b/api_generator/rest_specs/indices.exists_type.json index c854d0e8..1a3fb54c 100644 --- a/api_generator/rest_specs/indices.exists_type.json +++ b/api_generator/rest_specs/indices.exists_type.json @@ -5,6 +5,10 @@ "description":"Returns information about whether a particular document type exists. (DEPRECATED)" }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.flush.json b/api_generator/rest_specs/indices.flush.json index 35138b92..f48f9ad1 100644 --- a/api_generator/rest_specs/indices.flush.json +++ b/api_generator/rest_specs/indices.flush.json @@ -5,6 +5,10 @@ "description":"Performs the flush operation on one or more indices." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.forcemerge.json b/api_generator/rest_specs/indices.forcemerge.json index 6036b75b..9afc86cc 100644 --- a/api_generator/rest_specs/indices.forcemerge.json +++ b/api_generator/rest_specs/indices.forcemerge.json @@ -5,6 +5,10 @@ "description":"Performs the force merge operation on one or more indices." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.freeze.json b/api_generator/rest_specs/indices.freeze.json index 2966db1d..e743a53c 100644 --- a/api_generator/rest_specs/indices.freeze.json +++ b/api_generator/rest_specs/indices.freeze.json @@ -5,6 +5,10 @@ "description":"Freezes an index. A frozen index has almost no overhead on the cluster (except for maintaining its metadata in memory) and is read-only." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.get.json b/api_generator/rest_specs/indices.get.json index 90a1274e..fb4dee07 100644 --- a/api_generator/rest_specs/indices.get.json +++ b/api_generator/rest_specs/indices.get.json @@ -5,6 +5,10 @@ "description":"Returns information about one or more indices." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.get_alias.json b/api_generator/rest_specs/indices.get_alias.json index 5bfdd985..0a4e4bb9 100644 --- a/api_generator/rest_specs/indices.get_alias.json +++ b/api_generator/rest_specs/indices.get_alias.json @@ -5,6 +5,10 @@ "description":"Returns an alias." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.get_data_stream.json b/api_generator/rest_specs/indices.get_data_stream.json index b75ae14a..3b41a9e1 100644 --- a/api_generator/rest_specs/indices.get_data_stream.json +++ b/api_generator/rest_specs/indices.get_data_stream.json @@ -5,6 +5,10 @@ "description":"Returns data streams." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { @@ -28,6 +32,18 @@ ] }, "params":{ + "expand_wildcards":{ + "type":"enum", + "options":[ + "open", + "closed", + "hidden", + "none", + "all" + ], + "default":"open", + "description":"Whether wildcard expressions should get expanded to open or closed indices (default: open)" + } } } } diff --git a/api_generator/rest_specs/indices.get_field_mapping.json b/api_generator/rest_specs/indices.get_field_mapping.json index 0e71b6d3..8609eb6c 100644 --- a/api_generator/rest_specs/indices.get_field_mapping.json +++ b/api_generator/rest_specs/indices.get_field_mapping.json @@ -5,6 +5,10 @@ "description":"Returns mapping for one or more fields." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.get_index_template.json b/api_generator/rest_specs/indices.get_index_template.json index 7ea6dd29..7d47e088 100644 --- a/api_generator/rest_specs/indices.get_index_template.json +++ b/api_generator/rest_specs/indices.get_index_template.json @@ -4,7 +4,11 @@ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html", "description":"Returns an index template." }, - "stability":"experimental", + "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.get_mapping.json b/api_generator/rest_specs/indices.get_mapping.json index 24fd6680..4f12862e 100644 --- a/api_generator/rest_specs/indices.get_mapping.json +++ b/api_generator/rest_specs/indices.get_mapping.json @@ -5,6 +5,10 @@ "description":"Returns mappings for one or more indices." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.get_settings.json b/api_generator/rest_specs/indices.get_settings.json index 68e32544..027b337f 100644 --- a/api_generator/rest_specs/indices.get_settings.json +++ b/api_generator/rest_specs/indices.get_settings.json @@ -5,6 +5,10 @@ "description":"Returns settings for one or more indices." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.get_template.json b/api_generator/rest_specs/indices.get_template.json index 33701676..e1f7c1c0 100644 --- a/api_generator/rest_specs/indices.get_template.json +++ b/api_generator/rest_specs/indices.get_template.json @@ -5,6 +5,10 @@ "description":"Returns an index template." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.get_upgrade.json b/api_generator/rest_specs/indices.get_upgrade.json deleted file mode 100644 index 68cfdf25..00000000 --- a/api_generator/rest_specs/indices.get_upgrade.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "indices.get_upgrade":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html", - "description":"DEPRECATED Returns a progress status of current upgrade." - }, - "stability":"stable", - "url":{ - "paths":[ - { - "path":"/_upgrade", - "methods":[ - "GET" - ], - "deprecated":{ - "version":"8.0.0", - "description":"The _upgrade API is no longer useful and will be removed. Instead, see _reindex API." - } - }, - { - "path":"/{index}/_upgrade", - "methods":[ - "GET" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices" - } - }, - "deprecated":{ - "version":"8.0.0", - "description":"The _upgrade API is no longer useful and will be removed. Instead, see _reindex API." - } - } - ] - }, - "params":{ - "ignore_unavailable":{ - "type":"boolean", - "description":"Whether specified concrete indices should be ignored when unavailable (missing or closed)" - }, - "allow_no_indices":{ - "type":"boolean", - "description":"Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)" - }, - "expand_wildcards":{ - "type":"enum", - "options":[ - "open", - "closed", - "hidden", - "none", - "all" - ], - "default":"open", - "description":"Whether to expand wildcard expression to concrete indices that are open, closed or both." - } - } - } -} diff --git a/api_generator/rest_specs/indices.migrate_to_data_stream.json b/api_generator/rest_specs/indices.migrate_to_data_stream.json new file mode 100644 index 00000000..4254ae79 --- /dev/null +++ b/api_generator/rest_specs/indices.migrate_to_data_stream.json @@ -0,0 +1,31 @@ +{ + "indices.migrate_to_data_stream":{ + "documentation":{ + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html", + "description":"Migrates an alias to a data stream" + }, + "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, + "url":{ + "paths":[ + { + "path":"/_data_stream/_migrate/{name}", + "methods":[ + "POST" + ], + "parts":{ + "name":{ + "type":"string", + "description":"The name of the alias to migrate" + } + } + } + ] + }, + "params":{ + } + } +} diff --git a/api_generator/rest_specs/indices.open.json b/api_generator/rest_specs/indices.open.json index 1dab468c..e6c1646d 100644 --- a/api_generator/rest_specs/indices.open.json +++ b/api_generator/rest_specs/indices.open.json @@ -5,6 +5,10 @@ "description":"Opens an index." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.promote_data_stream.json b/api_generator/rest_specs/indices.promote_data_stream.json new file mode 100644 index 00000000..5b51a900 --- /dev/null +++ b/api_generator/rest_specs/indices.promote_data_stream.json @@ -0,0 +1,31 @@ +{ + "indices.promote_data_stream":{ + "documentation":{ + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html", + "description":"Promotes a data stream from a replicated data stream managed by CCR to a regular data stream" + }, + "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, + "url":{ + "paths":[ + { + "path":"/_data_stream/_promote/{name}", + "methods":[ + "POST" + ], + "parts":{ + "name":{ + "type":"string", + "description":"The name of the data stream" + } + } + } + ] + }, + "params":{ + } + } +} diff --git a/api_generator/rest_specs/indices.put_alias.json b/api_generator/rest_specs/indices.put_alias.json index 603f24b6..953f119a 100644 --- a/api_generator/rest_specs/indices.put_alias.json +++ b/api_generator/rest_specs/indices.put_alias.json @@ -5,6 +5,11 @@ "description":"Creates or updates an alias." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.put_index_template.json b/api_generator/rest_specs/indices.put_index_template.json index 3f758e18..542f316a 100644 --- a/api_generator/rest_specs/indices.put_index_template.json +++ b/api_generator/rest_specs/indices.put_index_template.json @@ -4,7 +4,12 @@ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html", "description":"Creates or updates an index template." }, - "stability":"experimental", + "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.put_mapping.json b/api_generator/rest_specs/indices.put_mapping.json index 451cbccd..266a926f 100644 --- a/api_generator/rest_specs/indices.put_mapping.json +++ b/api_generator/rest_specs/indices.put_mapping.json @@ -5,6 +5,11 @@ "description":"Updates the index mappings." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.put_settings.json b/api_generator/rest_specs/indices.put_settings.json index 66fe23ba..c1f30799 100644 --- a/api_generator/rest_specs/indices.put_settings.json +++ b/api_generator/rest_specs/indices.put_settings.json @@ -5,6 +5,11 @@ "description":"Updates the index settings." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.put_template.json b/api_generator/rest_specs/indices.put_template.json index 75a328af..e87c625d 100644 --- a/api_generator/rest_specs/indices.put_template.json +++ b/api_generator/rest_specs/indices.put_template.json @@ -5,6 +5,11 @@ "description":"Creates or updates an index template." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.recovery.json b/api_generator/rest_specs/indices.recovery.json index 8b134bbe..b1174b89 100644 --- a/api_generator/rest_specs/indices.recovery.json +++ b/api_generator/rest_specs/indices.recovery.json @@ -5,6 +5,10 @@ "description":"Returns information about ongoing index shard recoveries." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.refresh.json b/api_generator/rest_specs/indices.refresh.json index 950e0a62..0932d77e 100644 --- a/api_generator/rest_specs/indices.refresh.json +++ b/api_generator/rest_specs/indices.refresh.json @@ -5,6 +5,10 @@ "description":"Performs the refresh operation in one or more indices." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.reload_search_analyzers.json b/api_generator/rest_specs/indices.reload_search_analyzers.json index 2c021497..67a1d7ac 100644 --- a/api_generator/rest_specs/indices.reload_search_analyzers.json +++ b/api_generator/rest_specs/indices.reload_search_analyzers.json @@ -5,6 +5,10 @@ "description":"Reloads an index's search analyzers and their resources." }, "stability" : "stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.resolve_index.json b/api_generator/rest_specs/indices.resolve_index.json index 41d60981..e51c2d52 100644 --- a/api_generator/rest_specs/indices.resolve_index.json +++ b/api_generator/rest_specs/indices.resolve_index.json @@ -5,6 +5,10 @@ "description":"Returns information about any matching indices, aliases, and data streams" }, "stability":"experimental", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.rollover.json b/api_generator/rest_specs/indices.rollover.json index fef1f03d..603883da 100644 --- a/api_generator/rest_specs/indices.rollover.json +++ b/api_generator/rest_specs/indices.rollover.json @@ -5,6 +5,11 @@ "description":"Updates an alias to point to a new index when the existing index\nis considered to be too large or too old." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.segments.json b/api_generator/rest_specs/indices.segments.json index 83430a9a..18eecb68 100644 --- a/api_generator/rest_specs/indices.segments.json +++ b/api_generator/rest_specs/indices.segments.json @@ -5,6 +5,10 @@ "description":"Provides low-level information about segments in a Lucene index." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.shard_stores.json b/api_generator/rest_specs/indices.shard_stores.json index 7e48e999..739107dc 100644 --- a/api_generator/rest_specs/indices.shard_stores.json +++ b/api_generator/rest_specs/indices.shard_stores.json @@ -5,6 +5,10 @@ "description":"Provides store information for shard copies of indices." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.shrink.json b/api_generator/rest_specs/indices.shrink.json index b4a489d2..cc9bc7c1 100644 --- a/api_generator/rest_specs/indices.shrink.json +++ b/api_generator/rest_specs/indices.shrink.json @@ -5,6 +5,11 @@ "description":"Allow to shrink an existing index into a new index with fewer primary shards." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.simulate_index_template.json b/api_generator/rest_specs/indices.simulate_index_template.json index 2b81572f..a7d2e21d 100644 --- a/api_generator/rest_specs/indices.simulate_index_template.json +++ b/api_generator/rest_specs/indices.simulate_index_template.json @@ -4,7 +4,12 @@ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html", "description": "Simulate matching the given index name against the index templates in the system" }, - "stability":"experimental", + "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.simulate_template.json b/api_generator/rest_specs/indices.simulate_template.json index 364547dd..23a41a13 100644 --- a/api_generator/rest_specs/indices.simulate_template.json +++ b/api_generator/rest_specs/indices.simulate_template.json @@ -4,7 +4,12 @@ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html", "description": "Simulate resolving the given template name or body" }, - "stability":"experimental", + "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.split.json b/api_generator/rest_specs/indices.split.json index 96517918..ed623fd1 100644 --- a/api_generator/rest_specs/indices.split.json +++ b/api_generator/rest_specs/indices.split.json @@ -5,6 +5,11 @@ "description":"Allows you to split an existing index into a new index with more primary shards." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.stats.json b/api_generator/rest_specs/indices.stats.json index 2a3659df..0cd4f66e 100644 --- a/api_generator/rest_specs/indices.stats.json +++ b/api_generator/rest_specs/indices.stats.json @@ -5,6 +5,10 @@ "description":"Provides statistics on operations happening in an index." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { @@ -37,7 +41,6 @@ "segments", "store", "warmer", - "suggest", "bulk" ], "description":"Limit the information returned the specific metrics." @@ -84,7 +87,6 @@ "segments", "store", "warmer", - "suggest", "bulk" ], "description":"Limit the information returned the specific metrics." @@ -96,11 +98,11 @@ "params":{ "completion_fields":{ "type":"list", - "description":"A comma-separated list of fields for `fielddata` and `suggest` index metric (supports wildcards)" + "description":"A comma-separated list of fields for the `completion` index metric (supports wildcards)" }, "fielddata_fields":{ "type":"list", - "description":"A comma-separated list of fields for `fielddata` index metric (supports wildcards)" + "description":"A comma-separated list of fields for the `fielddata` index metric (supports wildcards)" }, "fields":{ "type":"list", diff --git a/api_generator/rest_specs/indices.unfreeze.json b/api_generator/rest_specs/indices.unfreeze.json index bc527f6f..c51f70e1 100644 --- a/api_generator/rest_specs/indices.unfreeze.json +++ b/api_generator/rest_specs/indices.unfreeze.json @@ -5,6 +5,10 @@ "description":"Unfreezes an index. When a frozen index is unfrozen, the index goes through the normal recovery process and becomes writeable again." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.update_aliases.json b/api_generator/rest_specs/indices.update_aliases.json index d4a222f2..76b33ad1 100644 --- a/api_generator/rest_specs/indices.update_aliases.json +++ b/api_generator/rest_specs/indices.update_aliases.json @@ -5,6 +5,11 @@ "description":"Updates index aliases." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/indices.upgrade.json b/api_generator/rest_specs/indices.upgrade.json deleted file mode 100644 index 406fbacd..00000000 --- a/api_generator/rest_specs/indices.upgrade.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "indices.upgrade":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html", - "description":"DEPRECATED Upgrades to the current version of Lucene." - }, - "stability":"stable", - "url":{ - "paths":[ - { - "path":"/_upgrade", - "methods":[ - "POST" - ], - "deprecated":{ - "version":"8.0.0", - "description":"The _upgrade API is no longer useful and will be removed. Instead, see _reindex API." - } - }, - { - "path":"/{index}/_upgrade", - "methods":[ - "POST" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices" - } - }, - "deprecated":{ - "version":"8.0.0", - "description":"The _upgrade API is no longer useful and will be removed. Instead, see _reindex API." - } - } - ] - }, - "params":{ - "allow_no_indices":{ - "type":"boolean", - "description":"Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)" - }, - "expand_wildcards":{ - "type":"enum", - "options":[ - "open", - "closed", - "hidden", - "none", - "all" - ], - "default":"open", - "description":"Whether to expand wildcard expression to concrete indices that are open, closed or both." - }, - "ignore_unavailable":{ - "type":"boolean", - "description":"Whether specified concrete indices should be ignored when unavailable (missing or closed)" - }, - "wait_for_completion":{ - "type":"boolean", - "description":"Specify whether the request should block until the all segments are upgraded (default: false)" - }, - "only_ancient_segments":{ - "type":"boolean", - "description":"If true, only ancient (an older Lucene major release) segments will be upgraded" - } - } - } -} diff --git a/api_generator/rest_specs/indices.validate_query.json b/api_generator/rest_specs/indices.validate_query.json index 3becec00..9dbe4025 100644 --- a/api_generator/rest_specs/indices.validate_query.json +++ b/api_generator/rest_specs/indices.validate_query.json @@ -5,6 +5,11 @@ "description":"Allows a user to validate a potentially expensive query without executing it." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/info.json b/api_generator/rest_specs/info.json index 1c48f05d..286a06f7 100644 --- a/api_generator/rest_specs/info.json +++ b/api_generator/rest_specs/info.json @@ -5,6 +5,10 @@ "description":"Returns basic information about the cluster." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ingest.delete_pipeline.json b/api_generator/rest_specs/ingest.delete_pipeline.json index 29b42190..a1f6c0f7 100644 --- a/api_generator/rest_specs/ingest.delete_pipeline.json +++ b/api_generator/rest_specs/ingest.delete_pipeline.json @@ -5,6 +5,10 @@ "description":"Deletes a pipeline." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ingest.get_pipeline.json b/api_generator/rest_specs/ingest.get_pipeline.json index 65fc4f91..c438c3bd 100644 --- a/api_generator/rest_specs/ingest.get_pipeline.json +++ b/api_generator/rest_specs/ingest.get_pipeline.json @@ -5,6 +5,10 @@ "description":"Returns a pipeline." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ingest.processor_grok.json b/api_generator/rest_specs/ingest.processor_grok.json index ac8ad6e6..e150d953 100644 --- a/api_generator/rest_specs/ingest.processor_grok.json +++ b/api_generator/rest_specs/ingest.processor_grok.json @@ -5,6 +5,10 @@ "description":"Returns a list of the built-in patterns." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ingest.put_pipeline.json b/api_generator/rest_specs/ingest.put_pipeline.json index 4d210586..981d4f75 100644 --- a/api_generator/rest_specs/ingest.put_pipeline.json +++ b/api_generator/rest_specs/ingest.put_pipeline.json @@ -5,6 +5,11 @@ "description":"Creates or updates a pipeline." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ingest.simulate.json b/api_generator/rest_specs/ingest.simulate.json index 8122f7a0..04b70464 100644 --- a/api_generator/rest_specs/ingest.simulate.json +++ b/api_generator/rest_specs/ingest.simulate.json @@ -5,6 +5,11 @@ "description":"Allows to simulate a pipeline with example documents." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/license.delete.json b/api_generator/rest_specs/license.delete.json index 153f38b2..0ecc702b 100644 --- a/api_generator/rest_specs/license.delete.json +++ b/api_generator/rest_specs/license.delete.json @@ -5,6 +5,10 @@ "description":"Deletes licensing information for the cluster" }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/license.get.json b/api_generator/rest_specs/license.get.json index 1820affb..16f2c086 100644 --- a/api_generator/rest_specs/license.get.json +++ b/api_generator/rest_specs/license.get.json @@ -5,6 +5,10 @@ "description":"Retrieves licensing information for the cluster" }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/license.get_basic_status.json b/api_generator/rest_specs/license.get_basic_status.json index d29bc9ff..a689daf4 100644 --- a/api_generator/rest_specs/license.get_basic_status.json +++ b/api_generator/rest_specs/license.get_basic_status.json @@ -5,6 +5,10 @@ "description":"Retrieves information about the status of the basic license." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/license.get_trial_status.json b/api_generator/rest_specs/license.get_trial_status.json index 71c854b4..dffa2932 100644 --- a/api_generator/rest_specs/license.get_trial_status.json +++ b/api_generator/rest_specs/license.get_trial_status.json @@ -5,6 +5,10 @@ "description":"Retrieves information about the status of the trial license." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/license.post.json b/api_generator/rest_specs/license.post.json index 2b637f85..476aa334 100644 --- a/api_generator/rest_specs/license.post.json +++ b/api_generator/rest_specs/license.post.json @@ -5,6 +5,11 @@ "description":"Updates the license for the cluster." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/license.post_start_basic.json b/api_generator/rest_specs/license.post_start_basic.json index 855a90cf..8cf6c7b0 100644 --- a/api_generator/rest_specs/license.post_start_basic.json +++ b/api_generator/rest_specs/license.post_start_basic.json @@ -5,6 +5,10 @@ "description":"Starts an indefinite basic license." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/license.post_start_trial.json b/api_generator/rest_specs/license.post_start_trial.json index ebf5f718..3da1801d 100644 --- a/api_generator/rest_specs/license.post_start_trial.json +++ b/api_generator/rest_specs/license.post_start_trial.json @@ -5,6 +5,10 @@ "description":"starts a limited time trial license." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/logstash.delete_pipeline.json b/api_generator/rest_specs/logstash.delete_pipeline.json new file mode 100644 index 00000000..8650f5f7 --- /dev/null +++ b/api_generator/rest_specs/logstash.delete_pipeline.json @@ -0,0 +1,28 @@ +{ + "logstash.delete_pipeline":{ + "documentation":{ + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-delete-pipeline.html", + "description":"Deletes Logstash Pipelines used by Central Management" + }, + "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, + "url":{ + "paths":[ + { + "path":"/_logstash/pipeline/{id}", + "methods":[ "DELETE" ], + "parts":{ + "id":{ + "type":"string", + "description":"The ID of the Pipeline" + } + } + } + ] + }, + "params":{} + } +} diff --git a/api_generator/rest_specs/logstash.get_pipeline.json b/api_generator/rest_specs/logstash.get_pipeline.json new file mode 100644 index 00000000..061e49e0 --- /dev/null +++ b/api_generator/rest_specs/logstash.get_pipeline.json @@ -0,0 +1,28 @@ +{ + "logstash.get_pipeline":{ + "documentation":{ + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-get-pipeline.html", + "description":"Retrieves Logstash Pipelines used by Central Management" + }, + "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, + "url":{ + "paths":[ + { + "path":"/_logstash/pipeline/{id}", + "methods":[ "GET" ], + "parts":{ + "id":{ + "type":"string", + "description":"A comma-separated list of Pipeline IDs" + } + } + } + ] + }, + "params":{} + } +} diff --git a/api_generator/rest_specs/logstash.put_pipeline.json b/api_generator/rest_specs/logstash.put_pipeline.json new file mode 100644 index 00000000..e8ec9b0d --- /dev/null +++ b/api_generator/rest_specs/logstash.put_pipeline.json @@ -0,0 +1,34 @@ +{ + "logstash.put_pipeline":{ + "documentation":{ + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-put-pipeline.html", + "description":"Adds and updates Logstash Pipelines used for Central Management" + }, + "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, + "url":{ + "paths":[ + { + "path":"/_logstash/pipeline/{id}", + "methods":[ "PUT" ], + "parts":{ + "id":{ + "type":"string", + "description":"The ID of the Pipeline" + } + } + } + ] + }, + "params":{ + }, + "body":{ + "description":"The Pipeline to add or update", + "required":true + } + } +} diff --git a/api_generator/rest_specs/mget.json b/api_generator/rest_specs/mget.json index 12496718..1b771b77 100644 --- a/api_generator/rest_specs/mget.json +++ b/api_generator/rest_specs/mget.json @@ -5,6 +5,11 @@ "description":"Allows to get multiple documents in one request." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/migration.deprecations.json b/api_generator/rest_specs/migration.deprecations.json index ca19147c..6906cacc 100644 --- a/api_generator/rest_specs/migration.deprecations.json +++ b/api_generator/rest_specs/migration.deprecations.json @@ -5,6 +5,10 @@ "description":"Retrieves information about different cluster, node, and index level settings that use deprecated features that will be removed or changed in the next major version." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.close_job.json b/api_generator/rest_specs/ml.close_job.json index 5d738298..364ae545 100644 --- a/api_generator/rest_specs/ml.close_job.json +++ b/api_generator/rest_specs/ml.close_job.json @@ -5,6 +5,11 @@ "description":"Closes one or more anomaly detection jobs. A job can be opened and closed multiple times throughout its lifecycle." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.delete_calendar.json b/api_generator/rest_specs/ml.delete_calendar.json index 7cf3501b..b224c870 100644 --- a/api_generator/rest_specs/ml.delete_calendar.json +++ b/api_generator/rest_specs/ml.delete_calendar.json @@ -5,6 +5,10 @@ "description":"Deletes a calendar." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.delete_calendar_event.json b/api_generator/rest_specs/ml.delete_calendar_event.json index aa6e2d31..92fe4ea3 100644 --- a/api_generator/rest_specs/ml.delete_calendar_event.json +++ b/api_generator/rest_specs/ml.delete_calendar_event.json @@ -5,6 +5,10 @@ "description":"Deletes scheduled events from a calendar." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.delete_calendar_job.json b/api_generator/rest_specs/ml.delete_calendar_job.json index 075ddcac..e122c41f 100644 --- a/api_generator/rest_specs/ml.delete_calendar_job.json +++ b/api_generator/rest_specs/ml.delete_calendar_job.json @@ -5,6 +5,10 @@ "description":"Deletes anomaly detection jobs from a calendar." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.delete_data_frame_analytics.json b/api_generator/rest_specs/ml.delete_data_frame_analytics.json index 69f7cc9f..89818ac5 100644 --- a/api_generator/rest_specs/ml.delete_data_frame_analytics.json +++ b/api_generator/rest_specs/ml.delete_data_frame_analytics.json @@ -5,6 +5,10 @@ "description":"Deletes an existing data frame analytics job." }, "stability":"beta", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.delete_datafeed.json b/api_generator/rest_specs/ml.delete_datafeed.json index d3abeaa6..8cff1cbf 100644 --- a/api_generator/rest_specs/ml.delete_datafeed.json +++ b/api_generator/rest_specs/ml.delete_datafeed.json @@ -5,6 +5,10 @@ "description":"Deletes an existing datafeed." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.delete_expired_data.json b/api_generator/rest_specs/ml.delete_expired_data.json index 6b6a1ec0..c45ca323 100644 --- a/api_generator/rest_specs/ml.delete_expired_data.json +++ b/api_generator/rest_specs/ml.delete_expired_data.json @@ -5,6 +5,10 @@ "description":"Deletes expired and unused machine learning data." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.delete_filter.json b/api_generator/rest_specs/ml.delete_filter.json index 9556a0fe..e275a9dc 100644 --- a/api_generator/rest_specs/ml.delete_filter.json +++ b/api_generator/rest_specs/ml.delete_filter.json @@ -5,6 +5,10 @@ "description":"Deletes a filter." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.delete_forecast.json b/api_generator/rest_specs/ml.delete_forecast.json index 08f4a79e..45235187 100644 --- a/api_generator/rest_specs/ml.delete_forecast.json +++ b/api_generator/rest_specs/ml.delete_forecast.json @@ -5,6 +5,10 @@ "description":"Deletes forecasts from a machine learning job." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.delete_job.json b/api_generator/rest_specs/ml.delete_job.json index eb820441..a10e115a 100644 --- a/api_generator/rest_specs/ml.delete_job.json +++ b/api_generator/rest_specs/ml.delete_job.json @@ -5,6 +5,10 @@ "description":"Deletes an existing anomaly detection job." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.delete_model_snapshot.json b/api_generator/rest_specs/ml.delete_model_snapshot.json index b6caa438..499cb3b1 100644 --- a/api_generator/rest_specs/ml.delete_model_snapshot.json +++ b/api_generator/rest_specs/ml.delete_model_snapshot.json @@ -5,6 +5,10 @@ "description":"Deletes an existing model snapshot." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.delete_trained_model.json b/api_generator/rest_specs/ml.delete_trained_model.json index 2a865096..a7954a6b 100644 --- a/api_generator/rest_specs/ml.delete_trained_model.json +++ b/api_generator/rest_specs/ml.delete_trained_model.json @@ -5,6 +5,10 @@ "description":"Deletes an existing trained inference model that is currently not referenced by an ingest pipeline." }, "stability":"beta", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.estimate_model_memory.json b/api_generator/rest_specs/ml.estimate_model_memory.json index 4a024f93..75bff3b5 100644 --- a/api_generator/rest_specs/ml.estimate_model_memory.json +++ b/api_generator/rest_specs/ml.estimate_model_memory.json @@ -5,6 +5,11 @@ "description":"Estimates the model memory" }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.evaluate_data_frame.json b/api_generator/rest_specs/ml.evaluate_data_frame.json index fcabe433..f003155d 100644 --- a/api_generator/rest_specs/ml.evaluate_data_frame.json +++ b/api_generator/rest_specs/ml.evaluate_data_frame.json @@ -5,6 +5,11 @@ "description":"Evaluates the data frame analytics for an annotated index." }, "stability":"beta", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.explain_data_frame_analytics.json b/api_generator/rest_specs/ml.explain_data_frame_analytics.json index 895c868c..d1cd6840 100644 --- a/api_generator/rest_specs/ml.explain_data_frame_analytics.json +++ b/api_generator/rest_specs/ml.explain_data_frame_analytics.json @@ -5,6 +5,11 @@ "description":"Explains a data frame analytics config." }, "stability":"beta", + "visibility":"public", + "headers":{ + "accept":[ "application/json"], + "content_type":["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.flush_job.json b/api_generator/rest_specs/ml.flush_job.json index 3e2f7f36..71abaf95 100644 --- a/api_generator/rest_specs/ml.flush_job.json +++ b/api_generator/rest_specs/ml.flush_job.json @@ -5,6 +5,11 @@ "description":"Forces any buffered data to be processed by the job." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.forecast.json b/api_generator/rest_specs/ml.forecast.json index 28ba5132..8a88e904 100644 --- a/api_generator/rest_specs/ml.forecast.json +++ b/api_generator/rest_specs/ml.forecast.json @@ -5,6 +5,10 @@ "description":"Predicts the future behavior of a time series by using its historical behavior." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.get_buckets.json b/api_generator/rest_specs/ml.get_buckets.json index 90f7cede..dcf9a2cb 100644 --- a/api_generator/rest_specs/ml.get_buckets.json +++ b/api_generator/rest_specs/ml.get_buckets.json @@ -5,6 +5,11 @@ "description":"Retrieves anomaly detection job results for one or more buckets." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.get_calendar_events.json b/api_generator/rest_specs/ml.get_calendar_events.json index 0bb10780..0b3435ff 100644 --- a/api_generator/rest_specs/ml.get_calendar_events.json +++ b/api_generator/rest_specs/ml.get_calendar_events.json @@ -5,6 +5,10 @@ "description":"Retrieves information about the scheduled events in calendars." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.get_calendars.json b/api_generator/rest_specs/ml.get_calendars.json index ec6268ac..d7666f69 100644 --- a/api_generator/rest_specs/ml.get_calendars.json +++ b/api_generator/rest_specs/ml.get_calendars.json @@ -5,6 +5,11 @@ "description":"Retrieves configuration information for calendars." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.get_categories.json b/api_generator/rest_specs/ml.get_categories.json index 654a9635..6dfa2e64 100644 --- a/api_generator/rest_specs/ml.get_categories.json +++ b/api_generator/rest_specs/ml.get_categories.json @@ -5,6 +5,11 @@ "description":"Retrieves anomaly detection job results for one or more categories." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.get_data_frame_analytics.json b/api_generator/rest_specs/ml.get_data_frame_analytics.json index f81f52d6..8986067b 100644 --- a/api_generator/rest_specs/ml.get_data_frame_analytics.json +++ b/api_generator/rest_specs/ml.get_data_frame_analytics.json @@ -5,6 +5,10 @@ "description":"Retrieves configuration information for data frame analytics jobs." }, "stability":"beta", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.get_data_frame_analytics_stats.json b/api_generator/rest_specs/ml.get_data_frame_analytics_stats.json index b40472b3..baeef37d 100644 --- a/api_generator/rest_specs/ml.get_data_frame_analytics_stats.json +++ b/api_generator/rest_specs/ml.get_data_frame_analytics_stats.json @@ -5,6 +5,10 @@ "description":"Retrieves usage information for data frame analytics jobs." }, "stability":"beta", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.get_datafeed_stats.json b/api_generator/rest_specs/ml.get_datafeed_stats.json index fda166f2..72d84a27 100644 --- a/api_generator/rest_specs/ml.get_datafeed_stats.json +++ b/api_generator/rest_specs/ml.get_datafeed_stats.json @@ -5,6 +5,10 @@ "description":"Retrieves usage information for datafeeds." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.get_datafeeds.json b/api_generator/rest_specs/ml.get_datafeeds.json index 90dc0b72..f61a7dae 100644 --- a/api_generator/rest_specs/ml.get_datafeeds.json +++ b/api_generator/rest_specs/ml.get_datafeeds.json @@ -5,6 +5,10 @@ "description":"Retrieves configuration information for datafeeds." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.get_filters.json b/api_generator/rest_specs/ml.get_filters.json index b56518c5..1f195a42 100644 --- a/api_generator/rest_specs/ml.get_filters.json +++ b/api_generator/rest_specs/ml.get_filters.json @@ -5,6 +5,10 @@ "description":"Retrieves filters." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.get_influencers.json b/api_generator/rest_specs/ml.get_influencers.json index 25f68ab0..bf4e43d4 100644 --- a/api_generator/rest_specs/ml.get_influencers.json +++ b/api_generator/rest_specs/ml.get_influencers.json @@ -5,6 +5,11 @@ "description":"Retrieves anomaly detection job results for one or more influencers." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.get_job_stats.json b/api_generator/rest_specs/ml.get_job_stats.json index cdabc22a..456cf923 100644 --- a/api_generator/rest_specs/ml.get_job_stats.json +++ b/api_generator/rest_specs/ml.get_job_stats.json @@ -5,6 +5,10 @@ "description":"Retrieves usage information for anomaly detection jobs." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.get_jobs.json b/api_generator/rest_specs/ml.get_jobs.json index fce31733..2d716238 100644 --- a/api_generator/rest_specs/ml.get_jobs.json +++ b/api_generator/rest_specs/ml.get_jobs.json @@ -5,6 +5,10 @@ "description":"Retrieves configuration information for anomaly detection jobs." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.get_model_snapshots.json b/api_generator/rest_specs/ml.get_model_snapshots.json index 5dafaa43..1a9c9147 100644 --- a/api_generator/rest_specs/ml.get_model_snapshots.json +++ b/api_generator/rest_specs/ml.get_model_snapshots.json @@ -5,6 +5,11 @@ "description":"Retrieves information about model snapshots." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.get_overall_buckets.json b/api_generator/rest_specs/ml.get_overall_buckets.json index 7bfa7e8e..646275ec 100644 --- a/api_generator/rest_specs/ml.get_overall_buckets.json +++ b/api_generator/rest_specs/ml.get_overall_buckets.json @@ -5,6 +5,11 @@ "description":"Retrieves overall bucket results that summarize the bucket results of multiple anomaly detection jobs." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.get_records.json b/api_generator/rest_specs/ml.get_records.json index 9d865897..9af20f70 100644 --- a/api_generator/rest_specs/ml.get_records.json +++ b/api_generator/rest_specs/ml.get_records.json @@ -5,6 +5,11 @@ "description":"Retrieves anomaly records for an anomaly detection job." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.get_trained_models.json b/api_generator/rest_specs/ml.get_trained_models.json index 045f8483..8f08856f 100644 --- a/api_generator/rest_specs/ml.get_trained_models.json +++ b/api_generator/rest_specs/ml.get_trained_models.json @@ -5,6 +5,10 @@ "description":"Retrieves configuration information for a trained inference model." }, "stability":"beta", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.get_trained_models_stats.json b/api_generator/rest_specs/ml.get_trained_models_stats.json index e335a9f0..3b988843 100644 --- a/api_generator/rest_specs/ml.get_trained_models_stats.json +++ b/api_generator/rest_specs/ml.get_trained_models_stats.json @@ -5,6 +5,10 @@ "description":"Retrieves usage information for trained inference models." }, "stability":"beta", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.info.json b/api_generator/rest_specs/ml.info.json index 22c15971..25659abf 100644 --- a/api_generator/rest_specs/ml.info.json +++ b/api_generator/rest_specs/ml.info.json @@ -5,6 +5,10 @@ "description":"Returns defaults and limits used by machine learning." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.open_job.json b/api_generator/rest_specs/ml.open_job.json index 436d4541..07b9e666 100644 --- a/api_generator/rest_specs/ml.open_job.json +++ b/api_generator/rest_specs/ml.open_job.json @@ -5,6 +5,10 @@ "description":"Opens one or more anomaly detection jobs." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.post_calendar_events.json b/api_generator/rest_specs/ml.post_calendar_events.json index 42dcb38f..a23472b7 100644 --- a/api_generator/rest_specs/ml.post_calendar_events.json +++ b/api_generator/rest_specs/ml.post_calendar_events.json @@ -5,6 +5,11 @@ "description":"Posts scheduled events in a calendar." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.post_data.json b/api_generator/rest_specs/ml.post_data.json index 52b8f158..cd2deb10 100644 --- a/api_generator/rest_specs/ml.post_data.json +++ b/api_generator/rest_specs/ml.post_data.json @@ -5,6 +5,11 @@ "description":"Sends data to an anomaly detection job for analysis." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/x-ndjson", "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.preview_datafeed.json b/api_generator/rest_specs/ml.preview_datafeed.json index 30926f4a..5cd94bc2 100644 --- a/api_generator/rest_specs/ml.preview_datafeed.json +++ b/api_generator/rest_specs/ml.preview_datafeed.json @@ -5,6 +5,10 @@ "description":"Previews a datafeed." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.put_calendar.json b/api_generator/rest_specs/ml.put_calendar.json index 88b747a7..597b5d95 100644 --- a/api_generator/rest_specs/ml.put_calendar.json +++ b/api_generator/rest_specs/ml.put_calendar.json @@ -5,6 +5,11 @@ "description":"Instantiates a calendar." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.put_calendar_job.json b/api_generator/rest_specs/ml.put_calendar_job.json index 3f478243..e7e0476a 100644 --- a/api_generator/rest_specs/ml.put_calendar_job.json +++ b/api_generator/rest_specs/ml.put_calendar_job.json @@ -5,6 +5,10 @@ "description":"Adds an anomaly detection job to a calendar." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.put_data_frame_analytics.json b/api_generator/rest_specs/ml.put_data_frame_analytics.json index 193e08df..42f89d2c 100644 --- a/api_generator/rest_specs/ml.put_data_frame_analytics.json +++ b/api_generator/rest_specs/ml.put_data_frame_analytics.json @@ -5,6 +5,11 @@ "description":"Instantiates a data frame analytics job." }, "stability":"beta", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.put_datafeed.json b/api_generator/rest_specs/ml.put_datafeed.json index 29d5bbb2..147290cf 100644 --- a/api_generator/rest_specs/ml.put_datafeed.json +++ b/api_generator/rest_specs/ml.put_datafeed.json @@ -5,6 +5,11 @@ "description":"Instantiates a datafeed." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.put_filter.json b/api_generator/rest_specs/ml.put_filter.json index 647e9963..0e7de69a 100644 --- a/api_generator/rest_specs/ml.put_filter.json +++ b/api_generator/rest_specs/ml.put_filter.json @@ -5,6 +5,11 @@ "description":"Instantiates a filter." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.put_job.json b/api_generator/rest_specs/ml.put_job.json index 4a15a755..24fa08e4 100644 --- a/api_generator/rest_specs/ml.put_job.json +++ b/api_generator/rest_specs/ml.put_job.json @@ -5,6 +5,11 @@ "description":"Instantiates an anomaly detection job." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.put_trained_model.json b/api_generator/rest_specs/ml.put_trained_model.json index 1e8afc31..b76e56c0 100644 --- a/api_generator/rest_specs/ml.put_trained_model.json +++ b/api_generator/rest_specs/ml.put_trained_model.json @@ -5,6 +5,11 @@ "description":"Creates an inference trained model." }, "stability":"beta", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.revert_model_snapshot.json b/api_generator/rest_specs/ml.revert_model_snapshot.json index 3c0ae924..02ae0edd 100644 --- a/api_generator/rest_specs/ml.revert_model_snapshot.json +++ b/api_generator/rest_specs/ml.revert_model_snapshot.json @@ -5,6 +5,11 @@ "description":"Reverts to a specific snapshot." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.set_upgrade_mode.json b/api_generator/rest_specs/ml.set_upgrade_mode.json index 3092b48b..0ef2ad9a 100644 --- a/api_generator/rest_specs/ml.set_upgrade_mode.json +++ b/api_generator/rest_specs/ml.set_upgrade_mode.json @@ -5,6 +5,10 @@ "description":"Sets a cluster wide upgrade_mode setting that prepares machine learning indices for an upgrade." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.start_data_frame_analytics.json b/api_generator/rest_specs/ml.start_data_frame_analytics.json index 0081bf03..eca008ec 100644 --- a/api_generator/rest_specs/ml.start_data_frame_analytics.json +++ b/api_generator/rest_specs/ml.start_data_frame_analytics.json @@ -5,6 +5,11 @@ "description":"Starts a data frame analytics job." }, "stability":"beta", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.start_datafeed.json b/api_generator/rest_specs/ml.start_datafeed.json index 1348478c..9e923180 100644 --- a/api_generator/rest_specs/ml.start_datafeed.json +++ b/api_generator/rest_specs/ml.start_datafeed.json @@ -5,6 +5,11 @@ "description":"Starts one or more datafeeds." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.stop_data_frame_analytics.json b/api_generator/rest_specs/ml.stop_data_frame_analytics.json index 0b02af10..78b6f92f 100644 --- a/api_generator/rest_specs/ml.stop_data_frame_analytics.json +++ b/api_generator/rest_specs/ml.stop_data_frame_analytics.json @@ -5,6 +5,11 @@ "description":"Stops one or more data frame analytics jobs." }, "stability":"beta", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.stop_datafeed.json b/api_generator/rest_specs/ml.stop_datafeed.json index a93af8f1..5dca1e79 100644 --- a/api_generator/rest_specs/ml.stop_datafeed.json +++ b/api_generator/rest_specs/ml.stop_datafeed.json @@ -5,6 +5,10 @@ "description":"Stops one or more datafeeds." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.update_data_frame_analytics.json b/api_generator/rest_specs/ml.update_data_frame_analytics.json index a3615c78..d6fb79f8 100644 --- a/api_generator/rest_specs/ml.update_data_frame_analytics.json +++ b/api_generator/rest_specs/ml.update_data_frame_analytics.json @@ -5,6 +5,11 @@ "description":"Updates certain properties of a data frame analytics job." }, "stability":"beta", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.update_datafeed.json b/api_generator/rest_specs/ml.update_datafeed.json index 29397ced..8c353a55 100644 --- a/api_generator/rest_specs/ml.update_datafeed.json +++ b/api_generator/rest_specs/ml.update_datafeed.json @@ -5,6 +5,11 @@ "description":"Updates certain properties of a datafeed." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.update_filter.json b/api_generator/rest_specs/ml.update_filter.json index b945940f..f237c45c 100644 --- a/api_generator/rest_specs/ml.update_filter.json +++ b/api_generator/rest_specs/ml.update_filter.json @@ -5,6 +5,11 @@ "description":"Updates the description of a filter, adds items, or removes items." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.update_job.json b/api_generator/rest_specs/ml.update_job.json index ddc39113..69bdcd01 100644 --- a/api_generator/rest_specs/ml.update_job.json +++ b/api_generator/rest_specs/ml.update_job.json @@ -5,6 +5,11 @@ "description":"Updates certain properties of an anomaly detection job." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.update_model_snapshot.json b/api_generator/rest_specs/ml.update_model_snapshot.json index 08e17529..77414590 100644 --- a/api_generator/rest_specs/ml.update_model_snapshot.json +++ b/api_generator/rest_specs/ml.update_model_snapshot.json @@ -5,6 +5,11 @@ "description":"Updates certain properties of a snapshot." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.upgrade_job_snapshot.json b/api_generator/rest_specs/ml.upgrade_job_snapshot.json new file mode 100644 index 00000000..22de8d49 --- /dev/null +++ b/api_generator/rest_specs/ml.upgrade_job_snapshot.json @@ -0,0 +1,45 @@ +{ + "ml.upgrade_job_snapshot":{ + "documentation":{ + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-upgrade-job-model-snapshot.html", + "description":"Upgrades a given job snapshot to the current major version." + }, + "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, + "url":{ + "paths":[ + { + "path":"/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_upgrade", + "methods":[ + "POST" + ], + "parts":{ + "job_id":{ + "type":"string", + "description":"The ID of the job" + }, + "snapshot_id":{ + "type":"string", + "description":"The ID of the snapshot" + } + } + } + ] + }, + "params":{ + "timeout":{ + "type":"time", + "required":false, + "description":"How long should the API wait for the job to be opened and the old snapshot to be loaded." + }, + "wait_for_completion":{ + "type":"boolean", + "required":false, + "description":"Should the request wait until the task is complete before responding to the caller. Default is false." + } + } + } +} diff --git a/api_generator/rest_specs/ml.validate.json b/api_generator/rest_specs/ml.validate.json index 46f6e833..5db5f91d 100644 --- a/api_generator/rest_specs/ml.validate.json +++ b/api_generator/rest_specs/ml.validate.json @@ -5,6 +5,11 @@ "description":"Validates an anomaly detection job." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.validate_detector.json b/api_generator/rest_specs/ml.validate_detector.json index 336b81aa..30a24b1c 100644 --- a/api_generator/rest_specs/ml.validate_detector.json +++ b/api_generator/rest_specs/ml.validate_detector.json @@ -5,6 +5,11 @@ "description":"Validates an anomaly detection detector." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/monitoring.bulk.json b/api_generator/rest_specs/monitoring.bulk.json index ff48044c..e34bdfe8 100644 --- a/api_generator/rest_specs/monitoring.bulk.json +++ b/api_generator/rest_specs/monitoring.bulk.json @@ -5,6 +5,11 @@ "description":"Used by the monitoring features to send monitoring data." }, "stability":"experimental", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/msearch.json b/api_generator/rest_specs/msearch.json index 968ccfd8..0dde4206 100644 --- a/api_generator/rest_specs/msearch.json +++ b/api_generator/rest_specs/msearch.json @@ -5,6 +5,11 @@ "description":"Allows to execute several search operations in one request." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/x-ndjson"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/msearch_template.json b/api_generator/rest_specs/msearch_template.json index 2d8be2f1..72b899c1 100644 --- a/api_generator/rest_specs/msearch_template.json +++ b/api_generator/rest_specs/msearch_template.json @@ -5,6 +5,11 @@ "description":"Allows to execute several search template operations in one request." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/x-ndjson"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/mtermvectors.json b/api_generator/rest_specs/mtermvectors.json index 0afe5a31..fd7a5493 100644 --- a/api_generator/rest_specs/mtermvectors.json +++ b/api_generator/rest_specs/mtermvectors.json @@ -5,6 +5,11 @@ "description":"Returns multiple termvectors in one request." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/nodes.hot_threads.json b/api_generator/rest_specs/nodes.hot_threads.json index e69b6acd..12379299 100644 --- a/api_generator/rest_specs/nodes.hot_threads.json +++ b/api_generator/rest_specs/nodes.hot_threads.json @@ -5,6 +5,10 @@ "description":"Returns information about hot threads on each node in the cluster." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "text/plain"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/nodes.info.json b/api_generator/rest_specs/nodes.info.json index 37279edd..78da8caa 100644 --- a/api_generator/rest_specs/nodes.info.json +++ b/api_generator/rest_specs/nodes.info.json @@ -5,6 +5,10 @@ "description":"Returns information about nodes in the cluster." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/nodes.reload_secure_settings.json b/api_generator/rest_specs/nodes.reload_secure_settings.json index fd5420d0..777a62a7 100644 --- a/api_generator/rest_specs/nodes.reload_secure_settings.json +++ b/api_generator/rest_specs/nodes.reload_secure_settings.json @@ -5,6 +5,11 @@ "description":"Reloads secure settings." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": [ "application/json" ] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/nodes.stats.json b/api_generator/rest_specs/nodes.stats.json index fcc0f1d1..f4600abd 100644 --- a/api_generator/rest_specs/nodes.stats.json +++ b/api_generator/rest_specs/nodes.stats.json @@ -5,6 +5,10 @@ "description":"Returns statistical information about nodes in the cluster." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { @@ -123,7 +127,6 @@ "segments", "store", "warmer", - "suggest", "bulk" ], "description":"Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified." @@ -172,7 +175,6 @@ "segments", "store", "warmer", - "suggest", "bulk" ], "description":"Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified." @@ -188,11 +190,11 @@ "params":{ "completion_fields":{ "type":"list", - "description":"A comma-separated list of fields for `fielddata` and `suggest` index metric (supports wildcards)" + "description":"A comma-separated list of fields for the `completion` index metric (supports wildcards)" }, "fielddata_fields":{ "type":"list", - "description":"A comma-separated list of fields for `fielddata` index metric (supports wildcards)" + "description":"A comma-separated list of fields for the `fielddata` index metric (supports wildcards)" }, "fields":{ "type":"list", diff --git a/api_generator/rest_specs/nodes.usage.json b/api_generator/rest_specs/nodes.usage.json index 5acbf7a5..09aeaba8 100644 --- a/api_generator/rest_specs/nodes.usage.json +++ b/api_generator/rest_specs/nodes.usage.json @@ -5,6 +5,10 @@ "description":"Returns low-level information about REST actions usage on nodes." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/open_point_in_time.json b/api_generator/rest_specs/open_point_in_time.json index c388235d..d33ead15 100644 --- a/api_generator/rest_specs/open_point_in_time.json +++ b/api_generator/rest_specs/open_point_in_time.json @@ -5,6 +5,10 @@ "description":"Open a point in time that can be used in subsequent searches" }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ping.json b/api_generator/rest_specs/ping.json index 0e787e03..6615f789 100644 --- a/api_generator/rest_specs/ping.json +++ b/api_generator/rest_specs/ping.json @@ -5,6 +5,10 @@ "description":"Returns whether the cluster is running." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/put_script.json b/api_generator/rest_specs/put_script.json index 750f7fdf..29e95184 100644 --- a/api_generator/rest_specs/put_script.json +++ b/api_generator/rest_specs/put_script.json @@ -5,6 +5,11 @@ "description":"Creates or updates a script." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/rank_eval.json b/api_generator/rest_specs/rank_eval.json index eadf2401..ec123f3f 100644 --- a/api_generator/rest_specs/rank_eval.json +++ b/api_generator/rest_specs/rank_eval.json @@ -5,6 +5,11 @@ "description":"Allows to evaluate the quality of ranked search results over a set of typical search queries" }, "stability":"experimental", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/reindex.json b/api_generator/rest_specs/reindex.json index 2fbaf86c..f8038853 100644 --- a/api_generator/rest_specs/reindex.json +++ b/api_generator/rest_specs/reindex.json @@ -5,6 +5,11 @@ "description":"Allows 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." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/reindex_rethrottle.json b/api_generator/rest_specs/reindex_rethrottle.json index d91365b3..f53157c3 100644 --- a/api_generator/rest_specs/reindex_rethrottle.json +++ b/api_generator/rest_specs/reindex_rethrottle.json @@ -5,6 +5,10 @@ "description":"Changes the number of requests per second for a particular Reindex operation." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/render_search_template.json b/api_generator/rest_specs/render_search_template.json index c2c474ed..b962c069 100644 --- a/api_generator/rest_specs/render_search_template.json +++ b/api_generator/rest_specs/render_search_template.json @@ -5,6 +5,11 @@ "description":"Allows to use the Mustache language to pre-render a search definition." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/rollup.delete_job.json b/api_generator/rest_specs/rollup.delete_job.json index 574ae3df..0a60a10e 100644 --- a/api_generator/rest_specs/rollup.delete_job.json +++ b/api_generator/rest_specs/rollup.delete_job.json @@ -5,6 +5,10 @@ "description":"Deletes an existing rollup job." }, "stability":"experimental", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/rollup.get_jobs.json b/api_generator/rest_specs/rollup.get_jobs.json index f585edfd..46ac1c4d 100644 --- a/api_generator/rest_specs/rollup.get_jobs.json +++ b/api_generator/rest_specs/rollup.get_jobs.json @@ -5,6 +5,10 @@ "description":"Retrieves the configuration, stats, and status of rollup jobs." }, "stability":"experimental", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/rollup.get_rollup_caps.json b/api_generator/rest_specs/rollup.get_rollup_caps.json index d139899a..7dcc83ee 100644 --- a/api_generator/rest_specs/rollup.get_rollup_caps.json +++ b/api_generator/rest_specs/rollup.get_rollup_caps.json @@ -5,6 +5,10 @@ "description":"Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern." }, "stability":"experimental", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/rollup.get_rollup_index_caps.json b/api_generator/rest_specs/rollup.get_rollup_index_caps.json index 33bb81f9..c0e81ff7 100644 --- a/api_generator/rest_specs/rollup.get_rollup_index_caps.json +++ b/api_generator/rest_specs/rollup.get_rollup_index_caps.json @@ -5,6 +5,10 @@ "description":"Returns the rollup capabilities of all jobs inside of a rollup index (e.g. the index where rollup data is stored)." }, "stability":"experimental", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/rollup.put_job.json b/api_generator/rest_specs/rollup.put_job.json index 8fb10631..2ba845cf 100644 --- a/api_generator/rest_specs/rollup.put_job.json +++ b/api_generator/rest_specs/rollup.put_job.json @@ -5,6 +5,11 @@ "description":"Creates a rollup job." }, "stability":"experimental", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/rollup.rollup.json b/api_generator/rest_specs/rollup.rollup.json new file mode 100644 index 00000000..3774df02 --- /dev/null +++ b/api_generator/rest_specs/rollup.rollup.json @@ -0,0 +1,41 @@ +{ + "rollup.rollup":{ + "documentation":{ + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-api.html", + "description":"Rollup an index" + }, + "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/{index}/_rollup/{rollup_index}", + "methods": [ + "POST" + ], + "parts": { + "index": { + "type": "string", + "description": "The index to roll up", + "required": true + }, + "rollup_index": { + "type": "string", + "description": "The name of the rollup index to create", + "required": true + } + } + } + ] + }, + "params":{}, + "body":{ + "description":"The rollup configuration", + "required":true + } + } +} diff --git a/api_generator/rest_specs/rollup.rollup_search.json b/api_generator/rest_specs/rollup.rollup_search.json index 2ca1b53f..6ad72da0 100644 --- a/api_generator/rest_specs/rollup.rollup_search.json +++ b/api_generator/rest_specs/rollup.rollup_search.json @@ -5,6 +5,11 @@ "description":"Enables searching rolled-up data using the standard query DSL." }, "stability":"experimental", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/rollup.start_job.json b/api_generator/rest_specs/rollup.start_job.json index b42924d0..85250cfc 100644 --- a/api_generator/rest_specs/rollup.start_job.json +++ b/api_generator/rest_specs/rollup.start_job.json @@ -5,6 +5,10 @@ "description":"Starts an existing, stopped rollup job." }, "stability":"experimental", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/rollup.stop_job.json b/api_generator/rest_specs/rollup.stop_job.json index d2b65fb8..f6405cc9 100644 --- a/api_generator/rest_specs/rollup.stop_job.json +++ b/api_generator/rest_specs/rollup.stop_job.json @@ -5,6 +5,10 @@ "description":"Stops an existing, started rollup job." }, "stability":"experimental", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/scripts_painless_execute.json b/api_generator/rest_specs/scripts_painless_execute.json index 9f761fb4..b26d31fb 100644 --- a/api_generator/rest_specs/scripts_painless_execute.json +++ b/api_generator/rest_specs/scripts_painless_execute.json @@ -5,6 +5,11 @@ "description":"Allows an arbitrary script to be executed and a result to be returned" }, "stability":"experimental", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/scroll.json b/api_generator/rest_specs/scroll.json index ea0cbe26..553ee835 100644 --- a/api_generator/rest_specs/scroll.json +++ b/api_generator/rest_specs/scroll.json @@ -5,6 +5,11 @@ "description":"Allows to retrieve a large numbers of results from a single search request." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/search.json b/api_generator/rest_specs/search.json index 03ca1870..00dd8cb0 100644 --- a/api_generator/rest_specs/search.json +++ b/api_generator/rest_specs/search.json @@ -5,6 +5,11 @@ "description":"Returns results matching a query." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { @@ -225,6 +230,10 @@ "type":"boolean", "description":"Indicates whether hits.total should be rendered as an integer or an object in the rest search response", "default":false + }, + "min_compatible_shard_node":{ + "type":"string", + "description":"The minimum compatible version that all shards involved in search should have for this request to be successful" } }, "body":{ diff --git a/api_generator/rest_specs/search_shards.json b/api_generator/rest_specs/search_shards.json index 74b7055b..f9afdbfb 100644 --- a/api_generator/rest_specs/search_shards.json +++ b/api_generator/rest_specs/search_shards.json @@ -5,6 +5,10 @@ "description":"Returns information about the indices and shards that a search request would be executed against." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/search_template.json b/api_generator/rest_specs/search_template.json index 1d239376..82d7eb76 100644 --- a/api_generator/rest_specs/search_template.json +++ b/api_generator/rest_specs/search_template.json @@ -5,6 +5,11 @@ "description":"Allows to use the Mustache language to pre-render a search definition." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/searchable_snapshots.clear_cache.json b/api_generator/rest_specs/searchable_snapshots.clear_cache.json index 1f204ccf..d2d70001 100644 --- a/api_generator/rest_specs/searchable_snapshots.clear_cache.json +++ b/api_generator/rest_specs/searchable_snapshots.clear_cache.json @@ -5,6 +5,10 @@ "description" : "Clear the cache of searchable snapshots." }, "stability": "experimental", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url": { "paths": [ { diff --git a/api_generator/rest_specs/searchable_snapshots.mount.json b/api_generator/rest_specs/searchable_snapshots.mount.json index 71db967a..6e379eae 100644 --- a/api_generator/rest_specs/searchable_snapshots.mount.json +++ b/api_generator/rest_specs/searchable_snapshots.mount.json @@ -5,6 +5,11 @@ "description": "Mount a snapshot as a searchable index." }, "stability": "experimental", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url": { "paths": [ { @@ -34,6 +39,11 @@ "type":"boolean", "description":"Should this request wait until the operation has completed before returning", "default":false + }, + "storage":{ + "type":"string", + "description":"Selects the kind of local storage used to accelerate searches. Experimental, and defaults to `full_copy`", + "default":false } }, "body":{ diff --git a/api_generator/rest_specs/searchable_snapshots.stats.json b/api_generator/rest_specs/searchable_snapshots.stats.json index 2407146f..d4f45417 100644 --- a/api_generator/rest_specs/searchable_snapshots.stats.json +++ b/api_generator/rest_specs/searchable_snapshots.stats.json @@ -5,6 +5,10 @@ "description": "Retrieve various statistics about searchable snapshots." }, "stability": "experimental", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url": { "paths": [ { @@ -26,6 +30,18 @@ } } ] + }, + "params": { + "level":{ + "type":"enum", + "description":"Return stats aggregated at cluster, index or shard level", + "options":[ + "cluster", + "indices", + "shards" + ], + "default":"indices" + } } } } diff --git a/api_generator/rest_specs/security.authenticate.json b/api_generator/rest_specs/security.authenticate.json index 35455c78..3b65a7ee 100644 --- a/api_generator/rest_specs/security.authenticate.json +++ b/api_generator/rest_specs/security.authenticate.json @@ -5,6 +5,10 @@ "description":"Enables authentication as a user and retrieve information about the authenticated user." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/security.change_password.json b/api_generator/rest_specs/security.change_password.json index 1195d82b..c2b1391c 100644 --- a/api_generator/rest_specs/security.change_password.json +++ b/api_generator/rest_specs/security.change_password.json @@ -5,6 +5,11 @@ "description":"Changes the passwords of users in the native realm and built-in users." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/security.clear_api_key_cache.json b/api_generator/rest_specs/security.clear_api_key_cache.json index e87e265e..2f3ce2f2 100644 --- a/api_generator/rest_specs/security.clear_api_key_cache.json +++ b/api_generator/rest_specs/security.clear_api_key_cache.json @@ -5,6 +5,10 @@ "description":"Clear a subset or all entries from the API key cache." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/security.clear_cached_privileges.json b/api_generator/rest_specs/security.clear_cached_privileges.json index e2c66a32..f90fbf9c 100644 --- a/api_generator/rest_specs/security.clear_cached_privileges.json +++ b/api_generator/rest_specs/security.clear_cached_privileges.json @@ -5,6 +5,10 @@ "description":"Evicts application privileges from the native application privileges cache." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/security.clear_cached_realms.json b/api_generator/rest_specs/security.clear_cached_realms.json index 1e0119af..3b24c6ef 100644 --- a/api_generator/rest_specs/security.clear_cached_realms.json +++ b/api_generator/rest_specs/security.clear_cached_realms.json @@ -5,6 +5,10 @@ "description":"Evicts users from the user cache. Can completely clear the cache or evict specific users." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/security.clear_cached_roles.json b/api_generator/rest_specs/security.clear_cached_roles.json index 72c8ac21..64a0efe5 100644 --- a/api_generator/rest_specs/security.clear_cached_roles.json +++ b/api_generator/rest_specs/security.clear_cached_roles.json @@ -5,6 +5,10 @@ "description":"Evicts roles from the native role cache." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/security.create_api_key.json b/api_generator/rest_specs/security.create_api_key.json index e6da6598..31ab3993 100644 --- a/api_generator/rest_specs/security.create_api_key.json +++ b/api_generator/rest_specs/security.create_api_key.json @@ -5,6 +5,11 @@ "description":"Creates an API key for access without requiring basic authentication." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/security.delete_privileges.json b/api_generator/rest_specs/security.delete_privileges.json index 8069ed79..53347374 100644 --- a/api_generator/rest_specs/security.delete_privileges.json +++ b/api_generator/rest_specs/security.delete_privileges.json @@ -5,6 +5,10 @@ "description":"Removes application privileges." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/security.delete_role.json b/api_generator/rest_specs/security.delete_role.json index d718ec77..65b2495f 100644 --- a/api_generator/rest_specs/security.delete_role.json +++ b/api_generator/rest_specs/security.delete_role.json @@ -5,6 +5,10 @@ "description":"Removes roles in the native realm." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/security.delete_role_mapping.json b/api_generator/rest_specs/security.delete_role_mapping.json index ee0bc3ad..ac73fb4d 100644 --- a/api_generator/rest_specs/security.delete_role_mapping.json +++ b/api_generator/rest_specs/security.delete_role_mapping.json @@ -5,6 +5,10 @@ "description":"Removes role mappings." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/security.delete_user.json b/api_generator/rest_specs/security.delete_user.json index 7c10cd3f..2c7e1091 100644 --- a/api_generator/rest_specs/security.delete_user.json +++ b/api_generator/rest_specs/security.delete_user.json @@ -5,6 +5,10 @@ "description":"Deletes users from the native realm." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/security.disable_user.json b/api_generator/rest_specs/security.disable_user.json index 4877870b..0dead4d5 100644 --- a/api_generator/rest_specs/security.disable_user.json +++ b/api_generator/rest_specs/security.disable_user.json @@ -5,6 +5,10 @@ "description":"Disables users in the native realm." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/security.enable_user.json b/api_generator/rest_specs/security.enable_user.json index 58d7f64f..6218a04c 100644 --- a/api_generator/rest_specs/security.enable_user.json +++ b/api_generator/rest_specs/security.enable_user.json @@ -5,6 +5,10 @@ "description":"Enables users in the native realm." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/security.get_api_key.json b/api_generator/rest_specs/security.get_api_key.json index 8c508f25..5eebcfb4 100644 --- a/api_generator/rest_specs/security.get_api_key.json +++ b/api_generator/rest_specs/security.get_api_key.json @@ -5,6 +5,10 @@ "description":"Retrieves information for one or more API keys." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/security.get_builtin_privileges.json b/api_generator/rest_specs/security.get_builtin_privileges.json index cd20a32b..96ab86a6 100644 --- a/api_generator/rest_specs/security.get_builtin_privileges.json +++ b/api_generator/rest_specs/security.get_builtin_privileges.json @@ -5,6 +5,10 @@ "description":"Retrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/security.get_privileges.json b/api_generator/rest_specs/security.get_privileges.json index b216ac98..278e8ad2 100644 --- a/api_generator/rest_specs/security.get_privileges.json +++ b/api_generator/rest_specs/security.get_privileges.json @@ -5,6 +5,10 @@ "description":"Retrieves application privileges." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/security.get_role.json b/api_generator/rest_specs/security.get_role.json index 530bcfb2..d5a583f0 100644 --- a/api_generator/rest_specs/security.get_role.json +++ b/api_generator/rest_specs/security.get_role.json @@ -5,6 +5,10 @@ "description":"Retrieves roles in the native realm." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/security.get_role_mapping.json b/api_generator/rest_specs/security.get_role_mapping.json index 06818b03..88a2f33d 100644 --- a/api_generator/rest_specs/security.get_role_mapping.json +++ b/api_generator/rest_specs/security.get_role_mapping.json @@ -5,6 +5,10 @@ "description":"Retrieves role mappings." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/security.get_token.json b/api_generator/rest_specs/security.get_token.json index 84a87a75..356391a6 100644 --- a/api_generator/rest_specs/security.get_token.json +++ b/api_generator/rest_specs/security.get_token.json @@ -5,6 +5,11 @@ "description":"Creates a bearer token for access without requiring basic authentication." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/security.get_user.json b/api_generator/rest_specs/security.get_user.json index cb1c64ce..6f0ce577 100644 --- a/api_generator/rest_specs/security.get_user.json +++ b/api_generator/rest_specs/security.get_user.json @@ -5,6 +5,10 @@ "description":"Retrieves information about users in the native realm and built-in users." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/security.get_user_privileges.json b/api_generator/rest_specs/security.get_user_privileges.json index 7dacebae..f8aab200 100644 --- a/api_generator/rest_specs/security.get_user_privileges.json +++ b/api_generator/rest_specs/security.get_user_privileges.json @@ -5,6 +5,10 @@ "description":"Retrieves application privileges." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/security.grant_api_key.json b/api_generator/rest_specs/security.grant_api_key.json index a64f0366..f3cc37bd 100644 --- a/api_generator/rest_specs/security.grant_api_key.json +++ b/api_generator/rest_specs/security.grant_api_key.json @@ -5,6 +5,11 @@ "description":"Creates an API key on behalf of another user." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/security.has_privileges.json b/api_generator/rest_specs/security.has_privileges.json index d19f4158..3e6efeb1 100644 --- a/api_generator/rest_specs/security.has_privileges.json +++ b/api_generator/rest_specs/security.has_privileges.json @@ -5,6 +5,11 @@ "description":"Determines whether the specified user has a specified list of privileges." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/security.invalidate_api_key.json b/api_generator/rest_specs/security.invalidate_api_key.json index 15a7e543..bdf33859 100644 --- a/api_generator/rest_specs/security.invalidate_api_key.json +++ b/api_generator/rest_specs/security.invalidate_api_key.json @@ -5,6 +5,11 @@ "description":"Invalidates one or more API keys." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/security.invalidate_token.json b/api_generator/rest_specs/security.invalidate_token.json index 75a3283c..cf4b56a4 100644 --- a/api_generator/rest_specs/security.invalidate_token.json +++ b/api_generator/rest_specs/security.invalidate_token.json @@ -5,6 +5,11 @@ "description":"Invalidates one or more access tokens or refresh tokens." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/security.put_privileges.json b/api_generator/rest_specs/security.put_privileges.json index 36f5bfa2..da63002b 100644 --- a/api_generator/rest_specs/security.put_privileges.json +++ b/api_generator/rest_specs/security.put_privileges.json @@ -5,6 +5,11 @@ "description":"Adds or updates application privileges." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/security.put_role.json b/api_generator/rest_specs/security.put_role.json index 61aeca51..687bbe56 100644 --- a/api_generator/rest_specs/security.put_role.json +++ b/api_generator/rest_specs/security.put_role.json @@ -5,6 +5,11 @@ "description":"Adds and updates roles in the native realm." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/security.put_role_mapping.json b/api_generator/rest_specs/security.put_role_mapping.json index 167c13c9..12c7e8b1 100644 --- a/api_generator/rest_specs/security.put_role_mapping.json +++ b/api_generator/rest_specs/security.put_role_mapping.json @@ -5,6 +5,11 @@ "description":"Creates and updates role mappings." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/security.put_user.json b/api_generator/rest_specs/security.put_user.json index 70dff7ab..a3a170b2 100644 --- a/api_generator/rest_specs/security.put_user.json +++ b/api_generator/rest_specs/security.put_user.json @@ -5,6 +5,11 @@ "description":"Adds and updates users in the native realm. These users are commonly referred to as native users." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/slm.delete_lifecycle.json b/api_generator/rest_specs/slm.delete_lifecycle.json index 07b21da6..12202a7a 100644 --- a/api_generator/rest_specs/slm.delete_lifecycle.json +++ b/api_generator/rest_specs/slm.delete_lifecycle.json @@ -5,6 +5,10 @@ "description":"Deletes an existing snapshot lifecycle policy." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/slm.execute_lifecycle.json b/api_generator/rest_specs/slm.execute_lifecycle.json index 74f57492..1395a3d3 100644 --- a/api_generator/rest_specs/slm.execute_lifecycle.json +++ b/api_generator/rest_specs/slm.execute_lifecycle.json @@ -5,6 +5,10 @@ "description":"Immediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/slm.execute_retention.json b/api_generator/rest_specs/slm.execute_retention.json index 6448a1d2..f6ce3e75 100644 --- a/api_generator/rest_specs/slm.execute_retention.json +++ b/api_generator/rest_specs/slm.execute_retention.json @@ -5,6 +5,10 @@ "description":"Deletes any snapshots that are expired according to the policy's retention rules." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/slm.get_lifecycle.json b/api_generator/rest_specs/slm.get_lifecycle.json index 4a208ebb..94d0772a 100644 --- a/api_generator/rest_specs/slm.get_lifecycle.json +++ b/api_generator/rest_specs/slm.get_lifecycle.json @@ -5,6 +5,10 @@ "description":"Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/slm.get_stats.json b/api_generator/rest_specs/slm.get_stats.json index b4fe2f23..aa693ad3 100644 --- a/api_generator/rest_specs/slm.get_stats.json +++ b/api_generator/rest_specs/slm.get_stats.json @@ -5,6 +5,10 @@ "description":"Returns global and policy-level statistics about actions taken by snapshot lifecycle management." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/slm.get_status.json b/api_generator/rest_specs/slm.get_status.json index 38240243..92ba1b4c 100644 --- a/api_generator/rest_specs/slm.get_status.json +++ b/api_generator/rest_specs/slm.get_status.json @@ -5,6 +5,10 @@ "description":"Retrieves the status of snapshot lifecycle management (SLM)." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/slm.put_lifecycle.json b/api_generator/rest_specs/slm.put_lifecycle.json index 9f2b8fe1..7e7babb9 100644 --- a/api_generator/rest_specs/slm.put_lifecycle.json +++ b/api_generator/rest_specs/slm.put_lifecycle.json @@ -5,6 +5,11 @@ "description":"Creates or updates a snapshot lifecycle policy." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/slm.start.json b/api_generator/rest_specs/slm.start.json index 8d06c51d..52ee7baa 100644 --- a/api_generator/rest_specs/slm.start.json +++ b/api_generator/rest_specs/slm.start.json @@ -5,6 +5,10 @@ "description":"Turns on snapshot lifecycle management (SLM)." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/slm.stop.json b/api_generator/rest_specs/slm.stop.json index e35ec0aa..767ce6b6 100644 --- a/api_generator/rest_specs/slm.stop.json +++ b/api_generator/rest_specs/slm.stop.json @@ -5,6 +5,10 @@ "description":"Turns off snapshot lifecycle management (SLM)." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/snapshot.cleanup_repository.json b/api_generator/rest_specs/snapshot.cleanup_repository.json index 727fe791..3d048bf6 100644 --- a/api_generator/rest_specs/snapshot.cleanup_repository.json +++ b/api_generator/rest_specs/snapshot.cleanup_repository.json @@ -5,6 +5,10 @@ "description": "Removes stale data from repository." }, "stability": "stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url": { "paths": [ { diff --git a/api_generator/rest_specs/snapshot.clone.json b/api_generator/rest_specs/snapshot.clone.json index 18122bc2..da940911 100644 --- a/api_generator/rest_specs/snapshot.clone.json +++ b/api_generator/rest_specs/snapshot.clone.json @@ -5,6 +5,11 @@ "description":"Clones indices from one snapshot into another snapshot in the same repository." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/snapshot.create.json b/api_generator/rest_specs/snapshot.create.json index da8cb991..7f70def7 100644 --- a/api_generator/rest_specs/snapshot.create.json +++ b/api_generator/rest_specs/snapshot.create.json @@ -5,6 +5,11 @@ "description":"Creates a snapshot in a repository." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/snapshot.create_repository.json b/api_generator/rest_specs/snapshot.create_repository.json index 431ac3c6..504abd3d 100644 --- a/api_generator/rest_specs/snapshot.create_repository.json +++ b/api_generator/rest_specs/snapshot.create_repository.json @@ -5,6 +5,11 @@ "description":"Creates a repository." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/snapshot.delete.json b/api_generator/rest_specs/snapshot.delete.json index 0f3bb091..5cdb9765 100644 --- a/api_generator/rest_specs/snapshot.delete.json +++ b/api_generator/rest_specs/snapshot.delete.json @@ -5,6 +5,10 @@ "description":"Deletes one or more snapshots." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/snapshot.delete_repository.json b/api_generator/rest_specs/snapshot.delete_repository.json index b60aeba8..8b6ce52d 100644 --- a/api_generator/rest_specs/snapshot.delete_repository.json +++ b/api_generator/rest_specs/snapshot.delete_repository.json @@ -5,6 +5,10 @@ "description":"Deletes a repository." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/snapshot.get.json b/api_generator/rest_specs/snapshot.get.json index 20006f6f..e37a9797 100644 --- a/api_generator/rest_specs/snapshot.get.json +++ b/api_generator/rest_specs/snapshot.get.json @@ -5,6 +5,10 @@ "description":"Returns information about a snapshot." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/snapshot.get_features.json b/api_generator/rest_specs/snapshot.get_features.json new file mode 100644 index 00000000..76b340d3 --- /dev/null +++ b/api_generator/rest_specs/snapshot.get_features.json @@ -0,0 +1,29 @@ +{ + "snapshot.get_features":{ + "documentation":{ + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html", + "description":"Returns a list of features which can be snapshotted in this cluster." + }, + "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, + "url":{ + "paths":[ + { + "path":"/_snapshottable_features", + "methods":[ + "GET" + ] + } + ] + }, + "params":{ + "master_timeout":{ + "type":"time", + "description":"Explicit operation timeout for connection to master node" + } + } + } +} diff --git a/api_generator/rest_specs/snapshot.get_repository.json b/api_generator/rest_specs/snapshot.get_repository.json index 8c91caa4..c85d0180 100644 --- a/api_generator/rest_specs/snapshot.get_repository.json +++ b/api_generator/rest_specs/snapshot.get_repository.json @@ -5,6 +5,10 @@ "description":"Returns information about a repository." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/snapshot.restore.json b/api_generator/rest_specs/snapshot.restore.json index 697ea395..c4ecb557 100644 --- a/api_generator/rest_specs/snapshot.restore.json +++ b/api_generator/rest_specs/snapshot.restore.json @@ -5,6 +5,11 @@ "description":"Restores a snapshot." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/snapshot.status.json b/api_generator/rest_specs/snapshot.status.json index 70a7ba23..e5f1af20 100644 --- a/api_generator/rest_specs/snapshot.status.json +++ b/api_generator/rest_specs/snapshot.status.json @@ -5,6 +5,10 @@ "description":"Returns information about the status of a snapshot." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/snapshot.verify_repository.json b/api_generator/rest_specs/snapshot.verify_repository.json index de638c19..ce5c1d29 100644 --- a/api_generator/rest_specs/snapshot.verify_repository.json +++ b/api_generator/rest_specs/snapshot.verify_repository.json @@ -5,6 +5,10 @@ "description":"Verifies a repository." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/sql.clear_cursor.json b/api_generator/rest_specs/sql.clear_cursor.json index 7cef02fb..26d4f039 100644 --- a/api_generator/rest_specs/sql.clear_cursor.json +++ b/api_generator/rest_specs/sql.clear_cursor.json @@ -5,6 +5,11 @@ "description":"Clears the SQL cursor" }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/sql.query.json b/api_generator/rest_specs/sql.query.json index f36ca006..2cd1f9ac 100644 --- a/api_generator/rest_specs/sql.query.json +++ b/api_generator/rest_specs/sql.query.json @@ -5,6 +5,11 @@ "description":"Executes a SQL request" }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/sql.translate.json b/api_generator/rest_specs/sql.translate.json index 37a66bd2..09623c9b 100644 --- a/api_generator/rest_specs/sql.translate.json +++ b/api_generator/rest_specs/sql.translate.json @@ -5,6 +5,11 @@ "description":"Translates SQL into Elasticsearch queries" }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ssl.certificates.json b/api_generator/rest_specs/ssl.certificates.json index 0dd7bce0..233bc088 100644 --- a/api_generator/rest_specs/ssl.certificates.json +++ b/api_generator/rest_specs/ssl.certificates.json @@ -5,6 +5,10 @@ "description":"Retrieves information about the X.509 certificates used to encrypt communications in the cluster." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/tasks.cancel.json b/api_generator/rest_specs/tasks.cancel.json index 966197f4..525c72aa 100644 --- a/api_generator/rest_specs/tasks.cancel.json +++ b/api_generator/rest_specs/tasks.cancel.json @@ -4,7 +4,11 @@ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html", "description":"Cancels a task, if it can be cancelled through an API." }, - "stability":"stable", + "stability":"experimental", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/tasks.get.json b/api_generator/rest_specs/tasks.get.json index 63bd1b6a..0863e05b 100644 --- a/api_generator/rest_specs/tasks.get.json +++ b/api_generator/rest_specs/tasks.get.json @@ -4,7 +4,11 @@ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html", "description":"Returns information about a task." }, - "stability":"stable", + "stability":"experimental", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/tasks.list.json b/api_generator/rest_specs/tasks.list.json index 0aba6d63..058ff363 100644 --- a/api_generator/rest_specs/tasks.list.json +++ b/api_generator/rest_specs/tasks.list.json @@ -4,7 +4,11 @@ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html", "description":"Returns a list of tasks." }, - "stability":"stable", + "stability":"experimental", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/termvectors.json b/api_generator/rest_specs/termvectors.json index d9ba7c0b..de8cfc68 100644 --- a/api_generator/rest_specs/termvectors.json +++ b/api_generator/rest_specs/termvectors.json @@ -5,6 +5,11 @@ "description":"Returns information and statistics about terms in the fields of a particular document." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/ml.find_file_structure.json b/api_generator/rest_specs/text_structure.find_structure.json similarity index 92% rename from api_generator/rest_specs/ml.find_file_structure.json rename to api_generator/rest_specs/text_structure.find_structure.json index 13594031..934bc785 100644 --- a/api_generator/rest_specs/ml.find_file_structure.json +++ b/api_generator/rest_specs/text_structure.find_structure.json @@ -1,14 +1,19 @@ { - "ml.find_file_structure":{ + "text_structure.find_structure":{ "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-find-file-structure.html", + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/find-structure.html", "description":"Finds the structure of a text file. The text file must contain data that is suitable to be ingested into Elasticsearch." }, "stability":"experimental", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/x-ndjson"] + }, "url":{ "paths":[ { - "path":"/_ml/find_file_structure", + "path":"/_text_structure/find_structure", "methods":[ "POST" ] diff --git a/api_generator/rest_specs/transform.delete_transform.json b/api_generator/rest_specs/transform.delete_transform.json index 7378f247..0b0e2377 100644 --- a/api_generator/rest_specs/transform.delete_transform.json +++ b/api_generator/rest_specs/transform.delete_transform.json @@ -5,6 +5,10 @@ "description":"Deletes an existing transform." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/transform.get_transform.json b/api_generator/rest_specs/transform.get_transform.json index 69e87d97..334537d4 100644 --- a/api_generator/rest_specs/transform.get_transform.json +++ b/api_generator/rest_specs/transform.get_transform.json @@ -5,6 +5,10 @@ "description":"Retrieves configuration information for transforms." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/transform.get_transform_stats.json b/api_generator/rest_specs/transform.get_transform_stats.json index 1691d550..f425c41f 100644 --- a/api_generator/rest_specs/transform.get_transform_stats.json +++ b/api_generator/rest_specs/transform.get_transform_stats.json @@ -5,6 +5,10 @@ "description":"Retrieves usage information for transforms." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/transform.preview_transform.json b/api_generator/rest_specs/transform.preview_transform.json index 83ecc006..89636eb9 100644 --- a/api_generator/rest_specs/transform.preview_transform.json +++ b/api_generator/rest_specs/transform.preview_transform.json @@ -5,6 +5,11 @@ "description":"Previews a transform." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/transform.put_transform.json b/api_generator/rest_specs/transform.put_transform.json index 47ade4a0..1e81629b 100644 --- a/api_generator/rest_specs/transform.put_transform.json +++ b/api_generator/rest_specs/transform.put_transform.json @@ -5,6 +5,11 @@ "description":"Instantiates a transform." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/transform.start_transform.json b/api_generator/rest_specs/transform.start_transform.json index 9316e500..7c002957 100644 --- a/api_generator/rest_specs/transform.start_transform.json +++ b/api_generator/rest_specs/transform.start_transform.json @@ -5,6 +5,10 @@ "description":"Starts one or more transforms." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/transform.stop_transform.json b/api_generator/rest_specs/transform.stop_transform.json index 49721981..1beb8066 100644 --- a/api_generator/rest_specs/transform.stop_transform.json +++ b/api_generator/rest_specs/transform.stop_transform.json @@ -5,6 +5,10 @@ "description":"Stops one or more transforms." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/transform.update_transform.json b/api_generator/rest_specs/transform.update_transform.json index fe74376e..c103570a 100644 --- a/api_generator/rest_specs/transform.update_transform.json +++ b/api_generator/rest_specs/transform.update_transform.json @@ -5,6 +5,11 @@ "description":"Updates certain properties of a transform." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept":[ "application/json"], + "content_type":["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/update.json b/api_generator/rest_specs/update.json index 81bc1016..450f20c0 100644 --- a/api_generator/rest_specs/update.json +++ b/api_generator/rest_specs/update.json @@ -5,6 +5,11 @@ "description":"Updates a document with a script or partial document." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/update_by_query.json b/api_generator/rest_specs/update_by_query.json index 86fa8a60..6083ecce 100644 --- a/api_generator/rest_specs/update_by_query.json +++ b/api_generator/rest_specs/update_by_query.json @@ -5,6 +5,11 @@ "description":"Performs an update on every document in the index without changing the source,\nfor example to pick up a mapping change." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/update_by_query_rethrottle.json b/api_generator/rest_specs/update_by_query_rethrottle.json index bd70f6e1..18895ad4 100644 --- a/api_generator/rest_specs/update_by_query_rethrottle.json +++ b/api_generator/rest_specs/update_by_query_rethrottle.json @@ -5,6 +5,10 @@ "description":"Changes the number of requests per second for a particular Update By Query operation." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/watcher.ack_watch.json b/api_generator/rest_specs/watcher.ack_watch.json index 0b9126a8..0c048889 100644 --- a/api_generator/rest_specs/watcher.ack_watch.json +++ b/api_generator/rest_specs/watcher.ack_watch.json @@ -5,6 +5,10 @@ "description":"Acknowledges a watch, manually throttling the execution of the watch's actions." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/watcher.activate_watch.json b/api_generator/rest_specs/watcher.activate_watch.json index d0a892de..698b08f3 100644 --- a/api_generator/rest_specs/watcher.activate_watch.json +++ b/api_generator/rest_specs/watcher.activate_watch.json @@ -5,6 +5,10 @@ "description":"Activates a currently inactive watch." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/watcher.deactivate_watch.json b/api_generator/rest_specs/watcher.deactivate_watch.json index 90385dfd..e9b7407e 100644 --- a/api_generator/rest_specs/watcher.deactivate_watch.json +++ b/api_generator/rest_specs/watcher.deactivate_watch.json @@ -5,6 +5,10 @@ "description":"Deactivates a currently active watch." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/watcher.delete_watch.json b/api_generator/rest_specs/watcher.delete_watch.json index c42ec9cb..9417a8a5 100644 --- a/api_generator/rest_specs/watcher.delete_watch.json +++ b/api_generator/rest_specs/watcher.delete_watch.json @@ -5,6 +5,10 @@ "description":"Removes a watch from Watcher." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/watcher.execute_watch.json b/api_generator/rest_specs/watcher.execute_watch.json index 3704eb4a..a011669c 100644 --- a/api_generator/rest_specs/watcher.execute_watch.json +++ b/api_generator/rest_specs/watcher.execute_watch.json @@ -5,6 +5,11 @@ "description":"Forces the execution of a stored watch." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/watcher.get_watch.json b/api_generator/rest_specs/watcher.get_watch.json index e81dcd7e..26899aef 100644 --- a/api_generator/rest_specs/watcher.get_watch.json +++ b/api_generator/rest_specs/watcher.get_watch.json @@ -5,6 +5,10 @@ "description":"Retrieves a watch by its ID." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/watcher.put_watch.json b/api_generator/rest_specs/watcher.put_watch.json index 6aa29c5f..46258019 100644 --- a/api_generator/rest_specs/watcher.put_watch.json +++ b/api_generator/rest_specs/watcher.put_watch.json @@ -5,6 +5,11 @@ "description":"Creates a new watch, or updates an existing one." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/watcher.query_watches.json b/api_generator/rest_specs/watcher.query_watches.json new file mode 100644 index 00000000..b730f66a --- /dev/null +++ b/api_generator/rest_specs/watcher.query_watches.json @@ -0,0 +1,30 @@ +{ + "watcher.query_watches":{ + "documentation":{ + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-query-watches.html", + "description":"Retrieves stored watches." + }, + "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, + "url":{ + "paths":[ + { + "path":"/_watcher/_query/watches", + "methods":[ + "GET", + "POST" + ] + } + ] + }, + "params":{}, + "body":{ + "description":"From, size, query, sort and search_after", + "required":false + } + } +} diff --git a/api_generator/rest_specs/watcher.start.json b/api_generator/rest_specs/watcher.start.json index eb393a25..a7884a41 100644 --- a/api_generator/rest_specs/watcher.start.json +++ b/api_generator/rest_specs/watcher.start.json @@ -5,6 +5,10 @@ "description":"Starts Watcher if it is not already running." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/watcher.stats.json b/api_generator/rest_specs/watcher.stats.json index 75854017..35e90cbd 100644 --- a/api_generator/rest_specs/watcher.stats.json +++ b/api_generator/rest_specs/watcher.stats.json @@ -5,6 +5,10 @@ "description":"Retrieves the current Watcher metrics." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/watcher.stop.json b/api_generator/rest_specs/watcher.stop.json index c5014be0..c3e85287 100644 --- a/api_generator/rest_specs/watcher.stop.json +++ b/api_generator/rest_specs/watcher.stop.json @@ -5,6 +5,10 @@ "description":"Stops Watcher if it is running." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/xpack.info.json b/api_generator/rest_specs/xpack.info.json index 64580d39..68b2a5d2 100644 --- a/api_generator/rest_specs/xpack.info.json +++ b/api_generator/rest_specs/xpack.info.json @@ -5,6 +5,10 @@ "description":"Retrieves information about the installed X-Pack features." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/api_generator/rest_specs/xpack.usage.json b/api_generator/rest_specs/xpack.usage.json index 2f99c477..e01f4034 100644 --- a/api_generator/rest_specs/xpack.usage.json +++ b/api_generator/rest_specs/xpack.usage.json @@ -5,6 +5,10 @@ "description":"Retrieves usage information about the installed X-Pack features." }, "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, "url":{ "paths":[ { diff --git a/elasticsearch/src/.generated.toml b/elasticsearch/src/.generated.toml index 05fad15f..a41004e0 100644 --- a/elasticsearch/src/.generated.toml +++ b/elasticsearch/src/.generated.toml @@ -1,25 +1,33 @@ written = [ 'async_search.rs', + 'autoscaling.rs', 'cat.rs', 'ccr.rs', 'cluster.rs', 'dangling_indices.rs', + 'data_frame_transform_deprecated.rs', 'enrich.rs', + 'eql.rs', 'graph.rs', 'ilm.rs', 'indices.rs', 'ingest.rs', 'license.rs', + 'logstash.rs', 'migration.rs', 'ml.rs', + 'monitoring.rs', 'nodes.rs', + 'rollup.rs', 'root/mod.rs', + 'searchable_snapshots.rs', 'security.rs', 'slm.rs', 'snapshot.rs', 'sql.rs', 'ssl.rs', 'tasks.rs', + 'text_structure.rs', 'transform.rs', 'watcher.rs', 'xpack.rs', diff --git a/elasticsearch/src/async_search.rs b/elasticsearch/src/async_search.rs index 73101c7d..47c242aa 100644 --- a/elasticsearch/src/async_search.rs +++ b/elasticsearch/src/async_search.rs @@ -310,6 +310,124 @@ impl<'a, 'b> AsyncSearchGet<'a, 'b> { } } #[derive(Debug, Clone, PartialEq)] +#[doc = "API parts for the Async Search Status API"] +pub enum AsyncSearchStatusParts<'b> { + #[doc = "Id"] + Id(&'b str), +} +impl<'b> AsyncSearchStatusParts<'b> { + #[doc = "Builds a relative URL path to the Async Search Status API"] + pub fn url(self) -> Cow<'static, str> { + match self { + AsyncSearchStatusParts::Id(ref id) => { + let encoded_id: Cow = percent_encode(id.as_bytes(), PARTS_ENCODED).into(); + let mut p = String::with_capacity(22usize + encoded_id.len()); + p.push_str("/_async_search/status/"); + p.push_str(encoded_id.as_ref()); + p.into() + } + } + } +} +#[derive(Clone, Debug)] +#[doc = "Builder for the [Async Search Status API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/async-search.html)\n\nRetrieves the status of a previously submitted async search request given its ID."] +pub struct AsyncSearchStatus<'a, 'b> { + transport: &'a Transport, + parts: AsyncSearchStatusParts<'b>, + 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> AsyncSearchStatus<'a, 'b> { + #[doc = "Creates a new instance of [AsyncSearchStatus] with the specified API parts"] + pub fn new(transport: &'a Transport, parts: AsyncSearchStatusParts<'b>) -> Self { + let headers = HeaderMap::new(); + AsyncSearchStatus { + 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 Async Search Status API that can be awaited"] + pub async fn send(self) -> Result { + let path = self.parts.url(); + let method = 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)] #[doc = "API parts for the Async Search Submit API"] pub enum AsyncSearchSubmitParts<'b> { #[doc = "No parts"] @@ -895,6 +1013,10 @@ impl<'a> AsyncSearch<'a> { 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/8.0/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/8.0/async-search.html)\n\nExecutes a search request asynchronously."] pub fn submit<'b>( &'a self, diff --git a/elasticsearch/src/autoscaling.rs b/elasticsearch/src/autoscaling.rs new file mode 100644 index 00000000..0bec67a1 --- /dev/null +++ b/elasticsearch/src/autoscaling.rs @@ -0,0 +1,578 @@ +/* + * 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::{ + headers::{HeaderMap, HeaderName, HeaderValue, ACCEPT, CONTENT_TYPE}, + request::{Body, JsonBody, NdBody, PARTS_ENCODED}, + response::Response, + transport::Transport, + Method, + }, + params::*, +}; +use percent_encoding::percent_encode; +use serde::Serialize; +use std::{borrow::Cow, time::Duration}; +#[derive(Debug, Clone, PartialEq)] +#[doc = "API parts for the Autoscaling Delete Autoscaling Policy API"] +pub enum AutoscalingDeleteAutoscalingPolicyParts<'b> { + #[doc = "Name"] + Name(&'b str), +} +impl<'b> AutoscalingDeleteAutoscalingPolicyParts<'b> { + #[doc = "Builds a relative URL path to the Autoscaling Delete Autoscaling Policy API"] + pub fn url(self) -> Cow<'static, str> { + match self { + AutoscalingDeleteAutoscalingPolicyParts::Name(ref name) => { + let encoded_name: Cow = percent_encode(name.as_bytes(), PARTS_ENCODED).into(); + let mut p = String::with_capacity(21usize + encoded_name.len()); + p.push_str("/_autoscaling/policy/"); + p.push_str(encoded_name.as_ref()); + p.into() + } + } + } +} +#[derive(Clone, Debug)] +#[doc = "Builder for the [Autoscaling Delete Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/8.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."] +pub struct AutoscalingDeleteAutoscalingPolicy<'a, 'b> { + transport: &'a Transport, + parts: AutoscalingDeleteAutoscalingPolicyParts<'b>, + 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> AutoscalingDeleteAutoscalingPolicy<'a, 'b> { + #[doc = "Creates a new instance of [AutoscalingDeleteAutoscalingPolicy] with the specified API parts"] + pub fn new( + transport: &'a Transport, + parts: AutoscalingDeleteAutoscalingPolicyParts<'b>, + ) -> Self { + let headers = HeaderMap::new(); + AutoscalingDeleteAutoscalingPolicy { + 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 Autoscaling Delete Autoscaling Policy API that can be awaited"] + pub async fn send(self) -> Result { + let path = self.parts.url(); + let method = 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")] + 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)] +#[doc = "API parts for the Autoscaling Get Autoscaling Capacity API"] +pub enum AutoscalingGetAutoscalingCapacityParts { + #[doc = "No parts"] + None, +} +impl AutoscalingGetAutoscalingCapacityParts { + #[doc = "Builds a relative URL path to the Autoscaling Get Autoscaling Capacity API"] + pub fn url(self) -> Cow<'static, str> { + match self { + AutoscalingGetAutoscalingCapacityParts::None => "/_autoscaling/capacity".into(), + } + } +} +#[derive(Clone, Debug)] +#[doc = "Builder for the [Autoscaling Get Autoscaling Capacity API](https://www.elastic.co/guide/en/elasticsearch/reference/8.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."] +pub struct AutoscalingGetAutoscalingCapacity<'a, 'b> { + transport: &'a Transport, + parts: AutoscalingGetAutoscalingCapacityParts, + 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> AutoscalingGetAutoscalingCapacity<'a, 'b> { + #[doc = "Creates a new instance of [AutoscalingGetAutoscalingCapacity]"] + pub fn new(transport: &'a Transport) -> Self { + let headers = HeaderMap::new(); + AutoscalingGetAutoscalingCapacity { + transport, + parts: AutoscalingGetAutoscalingCapacityParts::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 Autoscaling Get Autoscaling Capacity API that can be awaited"] + pub async fn send(self) -> Result { + let path = self.parts.url(); + let method = 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)] +#[doc = "API parts for the Autoscaling Get Autoscaling Policy API"] +pub enum AutoscalingGetAutoscalingPolicyParts<'b> { + #[doc = "Name"] + Name(&'b str), +} +impl<'b> AutoscalingGetAutoscalingPolicyParts<'b> { + #[doc = "Builds a relative URL path to the Autoscaling Get Autoscaling Policy API"] + pub fn url(self) -> Cow<'static, str> { + match self { + AutoscalingGetAutoscalingPolicyParts::Name(ref name) => { + let encoded_name: Cow = percent_encode(name.as_bytes(), PARTS_ENCODED).into(); + let mut p = String::with_capacity(21usize + encoded_name.len()); + p.push_str("/_autoscaling/policy/"); + p.push_str(encoded_name.as_ref()); + p.into() + } + } + } +} +#[derive(Clone, Debug)] +#[doc = "Builder for the [Autoscaling Get Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/8.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."] +pub struct AutoscalingGetAutoscalingPolicy<'a, 'b> { + transport: &'a Transport, + parts: AutoscalingGetAutoscalingPolicyParts<'b>, + 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> AutoscalingGetAutoscalingPolicy<'a, 'b> { + #[doc = "Creates a new instance of [AutoscalingGetAutoscalingPolicy] with the specified API parts"] + pub fn new(transport: &'a Transport, parts: AutoscalingGetAutoscalingPolicyParts<'b>) -> Self { + let headers = HeaderMap::new(); + AutoscalingGetAutoscalingPolicy { + 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 Autoscaling Get Autoscaling Policy API that can be awaited"] + pub async fn send(self) -> Result { + let path = self.parts.url(); + let method = 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)] +#[doc = "API parts for the Autoscaling Put Autoscaling Policy API"] +pub enum AutoscalingPutAutoscalingPolicyParts<'b> { + #[doc = "Name"] + Name(&'b str), +} +impl<'b> AutoscalingPutAutoscalingPolicyParts<'b> { + #[doc = "Builds a relative URL path to the Autoscaling Put Autoscaling Policy API"] + pub fn url(self) -> Cow<'static, str> { + match self { + AutoscalingPutAutoscalingPolicyParts::Name(ref name) => { + let encoded_name: Cow = percent_encode(name.as_bytes(), PARTS_ENCODED).into(); + let mut p = String::with_capacity(21usize + encoded_name.len()); + p.push_str("/_autoscaling/policy/"); + p.push_str(encoded_name.as_ref()); + p.into() + } + } + } +} +#[derive(Clone, Debug)] +#[doc = "Builder for the [Autoscaling Put Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/8.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."] +pub struct AutoscalingPutAutoscalingPolicy<'a, 'b, B> { + transport: &'a Transport, + parts: AutoscalingPutAutoscalingPolicyParts<'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> AutoscalingPutAutoscalingPolicy<'a, 'b, B> +where + B: Body, +{ + #[doc = "Creates a new instance of [AutoscalingPutAutoscalingPolicy] with the specified API parts"] + pub fn new(transport: &'a Transport, parts: AutoscalingPutAutoscalingPolicyParts<'b>) -> Self { + let headers = HeaderMap::new(); + AutoscalingPutAutoscalingPolicy { + 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) -> AutoscalingPutAutoscalingPolicy<'a, 'b, JsonBody> + where + T: Serialize, + { + AutoscalingPutAutoscalingPolicy { + 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 Autoscaling Put Autoscaling Policy API that can be awaited"] + pub async fn send(self) -> Result { + let path = self.parts.url(); + let method = 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) + } +} +#[doc = "Namespace client for Autoscaling APIs"] +pub struct Autoscaling<'a> { + transport: &'a Transport, +} +impl<'a> Autoscaling<'a> { + #[doc = "Creates a new instance of [Autoscaling]"] + pub fn new(transport: &'a Transport) -> Self { + Self { transport } + } + pub fn transport(&self) -> &Transport { + self.transport + } + #[doc = "[Autoscaling Delete Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/8.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."] + 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/8.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."] + 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/8.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."] + 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/8.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."] + pub fn put_autoscaling_policy<'b>( + &'a self, + parts: AutoscalingPutAutoscalingPolicyParts<'b>, + ) -> AutoscalingPutAutoscalingPolicy<'a, 'b, ()> { + AutoscalingPutAutoscalingPolicy::new(self.transport(), parts) + } +} +impl Elasticsearch { + #[doc = "Creates a namespace client for Autoscaling APIs"] + pub fn autoscaling(&self) -> Autoscaling { + Autoscaling::new(self.transport()) + } +} diff --git a/elasticsearch/src/cat.rs b/elasticsearch/src/cat.rs index b83739f2..c37b1938 100644 --- a/elasticsearch/src/cat.rs +++ b/elasticsearch/src/cat.rs @@ -1241,7 +1241,6 @@ pub struct CatIndices<'a, 'b> { help: Option, human: Option, include_unloaded_segments: Option, - local: Option, master_timeout: Option<&'b str>, pretty: Option, pri: Option, @@ -1271,7 +1270,6 @@ impl<'a, 'b> CatIndices<'a, 'b> { help: None, human: None, include_unloaded_segments: None, - local: None, master_timeout: None, pretty: None, pri: None, @@ -1337,11 +1335,6 @@ impl<'a, 'b> CatIndices<'a, 'b> { self.include_unloaded_segments = Some(include_unloaded_segments); 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 = "Explicit operation timeout for connection to master node"] pub fn master_timeout(mut self, master_timeout: &'b str) -> Self { self.master_timeout = Some(master_timeout); @@ -1405,7 +1398,6 @@ impl<'a, 'b> CatIndices<'a, 'b> { help: Option, human: Option, include_unloaded_segments: Option, - local: Option, master_timeout: Option<&'b str>, pretty: Option, pri: Option, @@ -1426,7 +1418,6 @@ impl<'a, 'b> CatIndices<'a, 'b> { help: self.help, human: self.human, include_unloaded_segments: self.include_unloaded_segments, - local: self.local, master_timeout: self.master_timeout, pretty: self.pretty, pri: self.pri, @@ -3032,6 +3023,7 @@ pub struct CatPlugins<'a, 'b> { headers: HeaderMap, help: Option, human: Option, + include_bootstrap: Option, local: Option, master_timeout: Option<&'b str>, pretty: Option, @@ -3056,6 +3048,7 @@ impl<'a, 'b> CatPlugins<'a, 'b> { h: None, help: None, human: None, + include_bootstrap: None, local: None, master_timeout: None, pretty: None, @@ -3100,6 +3093,11 @@ impl<'a, 'b> CatPlugins<'a, 'b> { self.human = Some(human); self } + #[doc = "Include bootstrap plugins in the response"] + pub fn include_bootstrap(mut self, include_bootstrap: bool) -> Self { + self.include_bootstrap = Some(include_bootstrap); + 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); @@ -3153,6 +3151,7 @@ impl<'a, 'b> CatPlugins<'a, 'b> { h: Option<&'b [&'b str]>, help: Option, human: Option, + include_bootstrap: Option, local: Option, master_timeout: Option<&'b str>, pretty: Option, @@ -3168,6 +3167,7 @@ impl<'a, 'b> CatPlugins<'a, 'b> { h: self.h, help: self.help, human: self.human, + include_bootstrap: self.include_bootstrap, local: self.local, master_timeout: self.master_timeout, pretty: self.pretty, @@ -3801,7 +3801,6 @@ pub struct CatShards<'a, 'b> { headers: HeaderMap, help: Option, human: Option, - local: Option, master_timeout: Option<&'b str>, pretty: Option, request_timeout: Option, @@ -3827,7 +3826,6 @@ impl<'a, 'b> CatShards<'a, 'b> { h: None, help: None, human: None, - local: None, master_timeout: None, pretty: None, request_timeout: None, @@ -3877,11 +3875,6 @@ impl<'a, 'b> CatShards<'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 = "Explicit operation timeout for connection to master node"] pub fn master_timeout(mut self, master_timeout: &'b str) -> Self { self.master_timeout = Some(master_timeout); @@ -3936,7 +3929,6 @@ impl<'a, 'b> CatShards<'a, 'b> { h: Option<&'b [&'b str]>, help: Option, human: Option, - local: Option, master_timeout: Option<&'b str>, pretty: Option, #[serde(serialize_with = "crate::client::serialize_coll_qs")] @@ -3953,7 +3945,6 @@ impl<'a, 'b> CatShards<'a, 'b> { h: self.h, help: self.help, human: self.human, - local: self.local, master_timeout: self.master_timeout, pretty: self.pretty, s: self.s, @@ -4170,12 +4161,14 @@ impl<'a, 'b> CatSnapshots<'a, 'b> { Ok(response) } } +#[cfg(feature = "experimental-apis")] #[derive(Debug, Clone, PartialEq)] #[doc = "API parts for the Cat Tasks API"] pub enum CatTasksParts { #[doc = "No parts"] None, } +#[cfg(feature = "experimental-apis")] impl CatTasksParts { #[doc = "Builds a relative URL path to the Cat Tasks API"] pub fn url(self) -> Cow<'static, str> { @@ -4186,6 +4179,7 @@ impl CatTasksParts { } #[derive(Clone, Debug)] #[doc = "Builder for the [Cat Tasks API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/tasks.html)\n\nReturns information about the tasks currently executing on one or more nodes in the cluster."] +#[cfg(feature = "experimental-apis")] pub struct CatTasks<'a, 'b> { transport: &'a Transport, parts: CatTasksParts, @@ -4198,8 +4192,8 @@ pub struct CatTasks<'a, 'b> { headers: HeaderMap, help: Option, human: Option, - node_id: Option<&'b [&'b str]>, - parent_task: Option, + nodes: Option<&'b [&'b str]>, + parent_task_id: Option<&'b str>, pretty: Option, request_timeout: Option, s: Option<&'b [&'b str]>, @@ -4207,6 +4201,7 @@ pub struct CatTasks<'a, 'b> { time: Option